--- gforth/configure.in 2003/01/27 08:03:46 1.106 +++ gforth/configure.in 2003/02/01 19:59:15 1.112 @@ -20,11 +20,11 @@ dnl Process this file with autoconf to p dnl We use some automake macros here, dnl but don't use automake for creating Makefile.in -AC_INIT([gforth],[0.5.9-20030127],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth]) +AC_INIT([gforth],[0.5.9-20030201],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth]) #snapshots have numbers major.minor.release-YYYYMMDD #note that lexicographic ordering must be heeded. #I.e., 0.4.1-YYYYMMDD must not exist before 0.4.1! -UPDATED="27 January 2003" +UPDATED="February 1st, 2003" AC_SUBST(UPDATED) AC_CONFIG_HEADERS(engine/config.h) @@ -120,7 +120,7 @@ case "$host_cpu" in machine=hppa $srcdir/mkinstalldirs arch/hppa AC_LIBOBJ(../arch/hppa/cache) - LDFLAGS="$LDFLAGS -Xlinker -N" + #LDFLAGS="$LDFLAGS -Xlinker -N" LIBS="$LIBS -L/lib/pa1.1/" ;; sparc*) @@ -193,7 +193,6 @@ case "$host_cpu" in AC_MSG_WARN(Disabling dynamic native code generation by default (speed penalty factor ~2)) esac AC_SUBST(host) -AC_SUBST(ENGINE_FLAGS) dnl the following macro produces a warning with autoconf-2.1 AC_CHECK_SIZEOF(char *) @@ -282,11 +281,35 @@ test $ac_cv_sizeof_off_t -gt $ac_cv_size ac_small_off_t=$? AC_DEFINE_UNQUOTED(SMALL_OFF_T,$ac_small_off_t,[1 if off_t fits in a Cell]) +ENGINE_FLAGS= +AC_SUBST(ENGINE_FLAGS) + +# Try if GCC understands -fno-gcse + +AC_MSG_CHECKING([if $CC understands -fno-gcse]) +CFLAGS_1="$CFLAGS" +CFLAGS="$CFLAGS -fno-gcse" +AC_TRY_COMPILE(,,ac_nogcse=yes;ENGINE_FLAGS="$ENGINE_FLAGS -fno-gcse",ac_nogcse=no) +CFLAGS="$CFLAGS_1" +AC_MSG_RESULT($ac_nogcse) + +# Try if GCC understands -fno-strict-aliasing + +AC_MSG_CHECKING([if $CC understands -fno-strict-aliasing]) +CFLAGS_1="$CFLAGS" +CFLAGS="$CFLAGS -fno-strict-aliasing" +AC_TRY_COMPILE(,,ac_nostrictaliasing=yes;ENGINE_FLAGS="$ENGINE_FLAGS -fno-strict-aliasing",ac_nostrictaliasing=no) +CFLAGS="$CFLAGS_1" +AC_MSG_RESULT($ac_nostrictaliasing) + # Try if GCC understands -fno-cross-jump +AC_MSG_CHECKING([if $CC understands -fno-cross-jump]) CFLAGS_1="$CFLAGS" CFLAGS="$CFLAGS -fno-cross-jump" -AC_TRY_COMPILE(,,,CFLAGS="$CFLAGS_1") +AC_TRY_COMPILE(,,ac_nocrossjump=yes;ENGINE_FLAGS="$ENGINE_FLAGS -fno-cross-jump",ac_nocrossjump=no) +CFLAGS="$CFLAGS_1" +AC_MSG_RESULT($ac_nocrossjump) AC_CHECK_PROG(asm_fs,asm.fs,arch/$machine/asm.fs,,$srcdir/arch/$machine) AC_SUBST(asm_fs) @@ -295,23 +318,19 @@ AC_CHECK_PROG(disasm_fs,disasm.fs,arch/$ AC_SUBST(disasm_fs) case "$host_os" in - *win32) - EXE=".exe" - DIRSEP="\\" + *win32|cygwin) + DIRSEP="\\\\" ;; *darwin*) #Darwin uses some funny preprocessor by default; eliminate it: AC_MSG_NOTICE([using -traditional-cpp on Darwin]) CFLAGS="$CFLAGS -traditional-cpp" - EXE="" DIRSEP="/" ;; *) - EXE="" DIRSEP="/" ;; esac -AC_SUBST(EXE) AC_SUBST(DIRSEP) AC_DEFINE_UNQUOTED(DIRSEP,'$DIRSEP',[a directory separator character]) @@ -415,7 +434,7 @@ fi AC_REPLACE_FUNCS(memmove strtoul pow10 strerror strsignal atanh) AC_FUNC_FSEEKO AC_CHECK_FUNCS(ftello dlopen sys_siglist getrusage) -AC_CHECK_TYPES(stack_t) +AC_CHECK_TYPES(stack_t,,,[#include ]) AC_DECL_SYS_SIGLIST AC_CHECK_FUNC(getopt_long,true,AC_LIBOBJ(getopt); AC_LIBOBJ(getopt1)) AC_CHECK_FUNCS(expm1 log1p)