Diff for /gforth/configure.in between versions 1.139 and 1.147

version 1.139, 2004/06/13 17:04:28 version 1.147, 2005/01/23 09:55:12
Line 1 Line 1
 dnl Process this file with autoconf to produce a configure script.  dnl Process this file with autoconf to produce a configure script.
   
 #Copyright (C) 1995,1996,1997,1998,2000,2003 Free Software Foundation, Inc.  #Copyright (C) 1995,1996,1997,1998,2000,2003,2004 Free Software Foundation, Inc.
   
 #This file is part of Gforth.  #This file is part of Gforth.
   
Line 39  AC_ARG_ENABLE(force-reg, Line 39  AC_ARG_ENABLE(force-reg,
                           but also incorrect code with some gcc versions on                            but also incorrect code with some gcc versions on
                           some processors (default disabled).],                            some processors (default disabled).],
 AC_DEFINE(FORCE_REG,,[Define if you want to use explicit register declarations for better performance or for more convenient CODE words (does not work with all GCC versions on all machines)]))  AC_DEFINE(FORCE_REG,,[Define if you want to use explicit register declarations for better performance or for more convenient CODE words (does not work with all GCC versions on all machines)]))
   AC_ARG_ENABLE(force-ll,
   [  --enable-force-ll      Use explicit long long declarations if they appear in
                             the machine.h file. This can cause a good speedup,
                             but also incorrect code with some gcc versions on
                             some processors (default disabled).],
   AC_DEFINE(FORCE_LL,,[Define if you want to use explicit long long declarations for better performance (does not work with all GCC versions on all machines)]))
 AC_SUBST(PROFEXES)  AC_SUBST(PROFEXES)
 AC_SUBST(PROFOBJS)  AC_SUBST(PROFOBJS)
   
   AC_ARG_ENABLE(gcc-pr15242-workaround,
                 AC_HELP_STRING([--disable-gcc-pr15242-workaround],[Disables
                                dynamic code generation on some versions of gcc
                                (slowdown~2 on Athlon) and causes slower building
                                of gforth (but gforth speedups) on others.
                                (default enabled)]),
                   ,enable_gcc_pr15242_workaround=yes)
   test "$enable_gcc_pr15242_workaround" = "no"||
   AC_DEFINE(GCC_PR15242_WORKAROUND,,[Define if you want to get dynamic code
   generation on gccs affected by PR15242])
   
 AC_ARG_ENABLE(prof,  AC_ARG_ENABLE(prof,
 [  --enable-prof          Build gforth-prof, which outputs frequently occuring  [  --enable-prof          Build gforth-prof, which outputs frequently occuring
                           sequences of primitives.],                            sequences of primitives.],
Line 71  AC_ARG_VAR(ac_cv_sizeof_long, [sizeof(lo Line 89  AC_ARG_VAR(ac_cv_sizeof_long, [sizeof(lo
 AC_ARG_VAR(ac_cv_sizeof_long_long, [sizeof(long long)])  AC_ARG_VAR(ac_cv_sizeof_long_long, [sizeof(long long)])
 AC_ARG_VAR(ac_cv_sizeof_intptr_t, [sizeof(intptr_t)])  AC_ARG_VAR(ac_cv_sizeof_intptr_t, [sizeof(intptr_t)])
 AC_ARG_VAR(ac_cv_sizeof_int128_t, [sizeof(int128_t)])  AC_ARG_VAR(ac_cv_sizeof_int128_t, [sizeof(int128_t)])
   AC_ARG_VAR(ac_cv_sizeof_uint128_t, [sizeof(uint128_t)])
 AC_ARG_VAR(ac_cv_c_bigendian, [Is the target big-endian ("yes" or "no")?])  AC_ARG_VAR(ac_cv_c_bigendian, [Is the target big-endian ("yes" or "no")?])
 AC_ARG_VAR(no_dynamic_default, [run gforth with --dynamic (0) or --no-dynamic (1) by default])  AC_ARG_VAR(no_dynamic_default, [run gforth with --dynamic (0) or --no-dynamic (1) by default])
 AC_ARG_VAR(skip_code, [assembly code for skipping 16 bytes of code])  AC_ARG_VAR(skip_code, [assembly code for skipping 16 bytes of code])
Line 221  case "$host_cpu" in Line 240  case "$host_cpu" in
 esac  esac
 AC_SUBST(host)  AC_SUBST(host)
   
   if test "${enable_force_ll+set}" = set; then
      ac_includes_default="$ac_includes_default
   #include \"arch/generic/128bit.h\""
   fi
   
 dnl the following macro produces a warning with autoconf-2.1  dnl the following macro produces a warning with autoconf-2.1
 AC_CHECK_SIZEOF(char *)  AC_CHECK_SIZEOF(char *)
 case "$ac_cv_sizeof_char_p" in  case "$ac_cv_sizeof_char_p" in
Line 242  AC_CHECK_SIZEOF(long) Line 266  AC_CHECK_SIZEOF(long)
 AC_CHECK_SIZEOF(long long)  AC_CHECK_SIZEOF(long long)
 AC_CHECK_SIZEOF(intptr_t)  AC_CHECK_SIZEOF(intptr_t)
 AC_CHECK_SIZEOF(int128_t)  AC_CHECK_SIZEOF(int128_t)
   AC_CHECK_SIZEOF(uint128_t)
   
 AC_MSG_CHECKING([for a C type for cells])  AC_MSG_CHECKING([for a C type for cells])
 ac_cv_int_type_cell=none  ac_cv_int_type_cell=none
Line 294  case `expr 2 '*' "$ac_cv_sizeof_char_p"` Line 319  case `expr 2 '*' "$ac_cv_sizeof_char_p"`
     ;;      ;;
 esac  esac
 AC_MSG_RESULT($ac_cv_int_type_double_cell)  AC_MSG_RESULT($ac_cv_int_type_double_cell)
 if test "$ac_cv_int_type_double_cell" = none; then  
   AC_MSG_CHECKING([for a C type for unsigned double-cells])
   ac_cv_int_type_double_ucell=none
   case `expr 2 '*' "$ac_cv_sizeof_char_p"` in
     $ac_cv_sizeof_short)
       ac_cv_int_type_double_ucell="unsigned short"
       ;;
     $ac_cv_sizeof_int)
       ac_cv_int_type_double_ucell="unsigned int"
       ;;
     $ac_cv_sizeof_long)
       ac_cv_int_type_double_ucell="unsigned long"
       ;;
     $ac_cv_sizeof_long_long)
       ac_cv_int_type_double_ucell="unsigned long long"
       ;;
     $ac_cv_sizeof_intptr_t)
       ac_cv_int_type_double_ucell="unsigned intptr_t"
       ;;
     $ac_cv_sizeof_uint128_t)
       ac_cv_int_type_double_ucell="uint128_t"
       ;;
   esac
   AC_MSG_RESULT($ac_cv_int_type_double_ucell)
   
   if test "$ac_cv_int_type_double_cell" = none || \
      test "$ac_cv_int_type_double_ucell" = none
   then
         AC_MSG_WARN([Emulating double-cell arithmetic. This may be slow.])          AC_MSG_WARN([Emulating double-cell arithmetic. This may be slow.])
         AC_LIBOBJ(dblsub)          AC_LIBOBJ(dblsub)
         AC_DEFINE(BUGGY_LONG_LONG,,[define this if there is no working DOUBLE_CELL_TYPE on your machine])          AC_DEFINE(BUGGY_LONG_LONG,,[define this if there is no working DOUBLE_CELL_TYPE on your machine])
 else  else
         AC_DEFINE_UNQUOTED(DOUBLE_CELL_TYPE,$ac_cv_int_type_double_cell,[an integer type that is twice as long as a pointer])          AC_DEFINE_UNQUOTED(DOUBLE_CELL_TYPE,$ac_cv_int_type_double_cell,[an integer type that is twice as long as a pointer])
           AC_DEFINE_UNQUOTED(DOUBLE_UCELL_TYPE,$ac_cv_int_type_double_ucell,[an unsigned integer type that is twice as long as a pointer])
 fi  fi
   
 AC_TYPE_OFF_T  AC_TYPE_OFF_T
Line 356  AC_SUBST(asm_fs) Line 409  AC_SUBST(asm_fs)
 AC_CHECK_PROG(disasm_fs,disasm.fs,arch/$machine/disasm.fs,,$srcdir/arch/$machine)  AC_CHECK_PROG(disasm_fs,disasm.fs,arch/$machine/disasm.fs,,$srcdir/arch/$machine)
 AC_SUBST(disasm_fs)  AC_SUBST(disasm_fs)
   
 #programs needed for dis-gdb.fs  
 #it would be better to check for them at run-time, though  
 AC_CHECK_PROG([disgdb_fs1],[mktemp],[dis-gdb.fs],)  
 AC_CHECK_PROG([disgdb_fs],[gdb],[$disgdb_fs1],)  
   
 AC_PATH_PROG(INSTALL_INFO,install-info,[echo '>>>>Please make info dir entry:'],$PATH:/sbin:/usr/sbin:/usr/local/sbin)  AC_PATH_PROG(INSTALL_INFO,install-info,[echo '>>>>Please make info dir entry:'],$PATH:/sbin:/usr/sbin:/usr/local/sbin)
   
 case "$host_os" in  case "$host_os" in
         *win32|cygwin)          *win32|cygwin)
                 DIRSEP="\\\\"                  DIRSEP="\\\\"
                 PATHSEP=";"                  PATHSEP=";"
                   #we want the builtins of command.com/cmd.exe and its
                   # handling of .com files.
                   #$COMSPEC contains the name of the Windows shell;
                   # the ./ is there, because the bash does not recognize
                   # absolute DOS filenames
                   DEFAULTSYSTEMPREFIX="./$COMSPEC /c "
                 ;;                  ;;
         *darwin*)          *darwin*)
                 #Darwin uses some funny preprocessor by default; eliminate it:                  #Darwin uses some funny preprocessor by default; eliminate it:
Line 374  case "$host_os" in Line 428  case "$host_os" in
                 CFLAGS="$CFLAGS -no-cpp-precomp"                  CFLAGS="$CFLAGS -no-cpp-precomp"
                 DIRSEP="/"                  DIRSEP="/"
                 PATHSEP=":"                  PATHSEP=":"
                   DEFAULTSYSTEMPREFIX=""
                 ;;                  ;;
         *)          *)
                 DIRSEP="/"                  DIRSEP="/"
                 PATHSEP=":"                  PATHSEP=":"
                   DEFAULTSYSTEMPREFIX=""
                 ;;                  ;;
 esac  esac
 AC_SUBST(DIRSEP)  AC_SUBST(DIRSEP)
 AC_DEFINE_UNQUOTED(DIRSEP,'$DIRSEP',[a directory separator character])  AC_DEFINE_UNQUOTED(DIRSEP,'$DIRSEP',[a directory separator character])
 AC_SUBST(PATHSEP)  AC_SUBST(PATHSEP)
 AC_DEFINE_UNQUOTED(PATHSEP,'$PATHSEP',[a path separator character])  AC_DEFINE_UNQUOTED(PATHSEP,'$PATHSEP',[a path separator character])
   AC_SUBST(DEFAULTSYSTEMPREFIX)
   AC_DEFINE_UNQUOTED(DEFAULTSYSTEMPREFIX,"$DEFAULTSYSTEMPREFIX",[default for environment variable GFORTHSYSTEMPREFIX])
   
 dnl Now a little support for DOS/DJGCC  dnl Now a little support for DOS/DJGCC
 AC_SUBST(GFORTH_EXE)  AC_SUBST(GFORTH_EXE)

Removed from v.1.139  
changed lines
  Added in v.1.147


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