Diff for /gforth/configure.in between versions 1.180 and 1.185

version 1.180, 2007/04/01 13:31:26 version 1.185, 2007/04/22 22:04:28
Line 21  dnl Process this file with autoconf to p Line 21  dnl Process this file with autoconf to p
   
 dnl We use some automake macros here,  dnl We use some automake macros here,
 dnl but don't use automake for creating Makefile.in  dnl but don't use automake for creating Makefile.in
 AC_INIT([gforth],[0.6.2-20060709],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth])  AC_INIT([gforth],[0.6.9-20070401],[https://savannah.gnu.org/bugs/?func=addbug&group=gforth])
 AC_PREREQ(2.54)  AC_PREREQ(2.54)
 #snapshots have numbers major.minor.release-YYYYMMDD  #snapshots have numbers major.minor.release-YYYYMMDD
 #note that lexicographic ordering must be heeded.  #note that lexicographic ordering must be heeded.
Line 86  dnl   --without-peephole disables peepho Line 86  dnl   --without-peephole disables peepho
 dnl                     but slower images.],  dnl                     but slower images.],
 dnl PEEPHOLE="$withval")  dnl PEEPHOLE="$withval")
   
 AC_ARG_ENABLE(ec,  GCC_LD="\$(GCC)"
         AC_HELP_STRING([--enable-ec],  EC_MODE="false"
   EC=""
   engine2="engine2.o"
   engine_fast2="engine-fast2.o"
   no_dynamic=""
   image_i=""
   signals_o="io.o signals.o"
   
   AC_ARG_WITH(ec,
           AC_HELP_STRING([--with-ec=<arch>],
                         [  Build gforth for systems without OS.]),                          [  Build gforth for systems without OS.]),
         ,enable_ec=no)  [if test "$withval" = "no"; then
 if test "$enable_ec" = "yes"; then    echo "defining hosted system"
   echo "defining standalone system"  else
     echo "defining standalone system (${withval})"
   AC_DEFINE(STANDALONE,,[Define if you want a Gforth without OS])    AC_DEFINE(STANDALONE,,[Define if you want a Gforth without OS])
   EC_MODE="true"    EC_MODE="true"
   EC="-ec"    EC="-ec"
Line 99  if test "$enable_ec" = "yes"; then Line 109  if test "$enable_ec" = "yes"; then
   engine_fast2=""    engine_fast2=""
   no_dynamic="-DNO_DYNAMIC"    no_dynamic="-DNO_DYNAMIC"
   image_i="image.i"    image_i="image.i"
   signals_o=""    if test "$withval" != "yes"; then
 else      signals_o="io-${withval}.o"
   echo "defining hosted system"    else
   EC_MODE="false"      signals_o="io.o"
   EC=""    fi
   engine2="engine2.o"    GCC_PATH=$(which $CC)
   engine_fast2="engine-fast2.o"    LIB_PATH=${GCC_PATH%/*/*}
   no_dynamic=""    GCC_LD="\$(LD)"
   image_i=""    platform=${withval}
   signals_o="signals.o"  fi])
 fi  
   
 #variables mentioned in INSTALL  #variables mentioned in INSTALL
 AC_ARG_VAR(CC, [The C compiler (must support GNU C 2.x); gcc-2.95 recommended.])  AC_ARG_VAR(CC, [The C compiler (must support GNU C 2.x); gcc-2.95 recommended.])
Line 118  AC_ARG_VAR(STACK_CACHE_DEFAULT_FAST, [nu Line 127  AC_ARG_VAR(STACK_CACHE_DEFAULT_FAST, [nu
 AC_ARG_VAR(GCC_PR15242_WORKAROUND, [Force the enabling (1) or disabling (0) of a workaround for a gcc-3.x performance bug (default unset: use workaround for gcc-3.x)])  AC_ARG_VAR(GCC_PR15242_WORKAROUND, [Force the enabling (1) or disabling (0) of a workaround for a gcc-3.x performance bug (default unset: use workaround for gcc-3.x)])
   
 AC_ARG_VAR(ac_cv_sizeof_char_p, [sizeof(char *)])  AC_ARG_VAR(ac_cv_sizeof_char_p, [sizeof(char *)])
   AC_ARG_VAR(ac_cv_sizeof_void_p, [sizeof(void *)])
 AC_ARG_VAR(ac_cv_sizeof_char, [sizeof(char)])  AC_ARG_VAR(ac_cv_sizeof_char, [sizeof(char)])
 AC_ARG_VAR(ac_cv_sizeof_short, [sizeof(short)])  AC_ARG_VAR(ac_cv_sizeof_short, [sizeof(short)])
 AC_ARG_VAR(ac_cv_sizeof_int, [sizeof(int)])  AC_ARG_VAR(ac_cv_sizeof_int, [sizeof(int)])
Line 156  AC_PROG_CC Line 166  AC_PROG_CC
 test "$GCC" = "yes" || AC_MSG_ERROR(Gforth uses GNU C extensions and requires GCC 2.0 or higher)  test "$GCC" = "yes" || AC_MSG_ERROR(Gforth uses GNU C extensions and requires GCC 2.0 or higher)
   
 AC_SUBST(CC)  AC_SUBST(CC)
   AC_SUBST(GCC_LD)
 AC_SUBST(DEBUGFLAG)  AC_SUBST(DEBUGFLAG)
 AC_SUBST(EC)  AC_SUBST(EC)
 AC_SUBST(EC_MODE)  AC_SUBST(EC_MODE)
Line 191  case "$host_cpu" in Line 202  case "$host_cpu" in
         arm*)          arm*)
                 machine=arm                  machine=arm
                 CFLAGS="$CFLAGS -fomit-frame-pointer"                  CFLAGS="$CFLAGS -fomit-frame-pointer"
                   if test x$platform = xnxt; then
                      CFLAGS="$CFLAGS -mthumb -mthumb-interwork"
                   fi
                 if test -z $arm_cacheflush; then                  if test -z $arm_cacheflush; then
                     no_dynamic_default=1                      no_dynamic_default=1
                     arm_cacheflush=arch/arm/cacheflush0                      arm_cacheflush=arch/arm/cacheflush0
Line 293  case "$host_cpu" in Line 307  case "$host_cpu" in
 esac  esac
 AC_SUBST(host)  AC_SUBST(host)
   
   MAKEINC=""
   
   echo "Check for arch/$machine/$platform/gforth.ld ($EC_MODE)"
   if test x$EC_MODE = xtrue
   then
           echo "Check for arch/$machine/$platform/gforth.ld"
           if test -f arch/$machine/$platform/gforth.ld
           then
                   LDFLAGS="-T ../arch/$machine/$platform/gforth.ld -Map \$@.map -cref --gc-sections $LDFLAGS"
                   if test x$platform = xnxt; then
                           LIBS="$LIB_PATH/lib/gcc/arm-elf/$($CC --version | grep GCC | cut -d' ' -f3)/interwork/libgcc.a $LIB_PATH/arm-elf/lib/interwork/libc.a $LIBS"
                   fi
           fi
           if test -f arch/$machine/$platform/make.inc
           then
                   MAKEINC="include ../arch/$machine/$platform/make.inc"
           fi
   fi
   AC_SUBST(MAKEINC)
   
 test x$STACK_CACHE_DEFAULT_FAST = x && STACK_CACHE_DEFAULT_FAST=1  test x$STACK_CACHE_DEFAULT_FAST = x && STACK_CACHE_DEFAULT_FAST=1
 AC_DEFINE_UNQUOTED(STACK_CACHE_DEFAULT_FAST, $STACK_CACHE_DEFAULT_FAST,  AC_DEFINE_UNQUOTED(STACK_CACHE_DEFAULT_FAST, $STACK_CACHE_DEFAULT_FAST,
                    [number of registers in the default stack cache state for gforth-fast and gforth-native])                     [number of registers in the default stack cache state for gforth-fast and gforth-native])
Line 324  case "$ac_cv_sizeof_char_p" in Line 358  case "$ac_cv_sizeof_char_p" in
     ;;      ;;
 esac  esac
   
   AC_CHECK_SIZEOF(void *)
   case "$ac_cv_sizeof_void_p" in
     2)
       vwordsize=16
       ;;
     4)
       vwordsize=32
       ;;
     8)
       vwordsize=64
       ;;
   esac
   
 AC_CHECK_SIZEOF(char)  AC_CHECK_SIZEOF(char)
 AC_CHECK_SIZEOF(short)  AC_CHECK_SIZEOF(short)
 AC_CHECK_SIZEOF(int)  AC_CHECK_SIZEOF(int)
Line 736  test $ac_cv_func_fnmatch_works = yes || Line 783  test $ac_cv_func_fnmatch_works = yes ||
 AC_CHECK_FUNCS(mmap sysconf getpagesize)  AC_CHECK_FUNCS(mmap sysconf getpagesize)
 AM_PATH_LISPDIR  AM_PATH_LISPDIR
   
 kernel_fi=kernl${wordsize}${bytesex}.fi  kernel_fi=kernl${vwordsize}${bytesex}.fi
 include_fi=kernl${wordsize}${bytesex}${EC}.fi  include_fi=kernl${wordsize}${bytesex}${EC}.fi
 AC_SUBST(kernel_fi)  AC_SUBST(kernel_fi)
 AC_SUBST(include_fi)  AC_SUBST(include_fi)

Removed from v.1.180  
changed lines
  Added in v.1.185


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>