--- gforth/configure.in 2003/01/27 22:00:10 1.108 +++ gforth/configure.in 2003/03/02 13:12:32 1.114 @@ -20,11 +20,12 @@ 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]) +AC_PREREQ(2.54) #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 +121,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 +194,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 +282,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) @@ -294,6 +318,12 @@ AC_SUBST(asm_fs) AC_CHECK_PROG(disasm_fs,disasm.fs,arch/$machine/disasm.fs,,$srcdir/arch/$machine) AC_SUBST(disasm_fs) +AC_PATH_PROG(INSTALL_INFO,install-info,false,$PATH:/sbin:/usr/sbin:/usr/local/sbin) +if $INSTALL_INFO --version|grep -i debian >/dev/null; then + INSTALL_INFO=false + AC_MSG_WARN([Debian install-info; disabling it]) +fi + case "$host_os" in *win32|cygwin) DIRSEP="\\\\" @@ -411,7 +441,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)