File:  [gforth] / gforth / Attic / configure
Revision 1.8: download - view: text, annotated - select for diffs
Thu Dec 15 12:35:09 1994 UTC (28 years, 9 months ago) by pazsan
Branches: MAIN
CVS tags: HEAD
Reimplemented [IF] [ELSE] [THEN] etc.
Corrected a bug concerning redefinitions in Kernal
Added config info for HP-PA
Added replacement for rint

    1: #!/bin/sh
    2: 
    3: # Guess values for system-dependent variables and create Makefiles.
    4: # Generated automatically using autoconf version 2.1 
    5: # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
    6: #
    7: # This configure script is free software; the Free Software Foundation
    8: # gives unlimited permission to copy, distribute and modify it.
    9: 
   10: # Defaults:
   11: ac_help=
   12: ac_default_prefix=/usr/local
   13: # Any additions from configure.in:
   14: ac_help="$ac_help
   15:   --enable-force-reg	  Use explicit register declarations if they appear in
   16: 			  the machine.h file. This can cause a good speedup,
   17: 			  but also incorrect code with some gcc versions on
   18: 			  some processors (default disabled)."
   19: ac_help="$ac_help
   20:   --enable-direct-threaded	Force direct threading. This may not work on
   21: 				some machines and may cause slowdown on others.
   22: 				(default processor-dependent)"
   23: ac_help="$ac_help
   24:   --enable-indirect-threaded	Force indirect threading. This can cause a
   25: 				slowdown on some machines.
   26: 				(default processor-dependent)"
   27: 
   28: # Initialize some variables set by options.
   29: # The variables have the same names as the options, with
   30: # dashes changed to underlines.
   31: build=NONE
   32: cache_file=./config.cache
   33: exec_prefix=NONE
   34: host=NONE
   35: no_create=
   36: nonopt=NONE
   37: no_recursion=
   38: prefix=NONE
   39: program_prefix=NONE
   40: program_suffix=NONE
   41: program_transform_name=s,x,x,
   42: silent=
   43: site=
   44: srcdir=
   45: target=NONE
   46: verbose=
   47: x_includes=NONE
   48: x_libraries=NONE
   49: 
   50: # Initialize some other variables.
   51: subdirs=
   52: 
   53: ac_prev=
   54: for ac_option
   55: do
   56: 
   57:   # If the previous option needs an argument, assign it.
   58:   if test -n "$ac_prev"; then
   59:     eval "$ac_prev=\$ac_option"
   60:     ac_prev=
   61:     continue
   62:   fi
   63: 
   64:   case "$ac_option" in
   65:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
   66:   *) ac_optarg= ;;
   67:   esac
   68: 
   69:   # Accept the important Cygnus configure options, so we can diagnose typos.
   70: 
   71:   case "$ac_option" in
   72: 
   73:   -build | --build | --buil | --bui | --bu | --b)
   74:     ac_prev=build ;;
   75:   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
   76:     build="$ac_optarg" ;;
   77: 
   78:   -cache-file | --cache-file | --cache-fil | --cache-fi \
   79:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   80:     ac_prev=cache_file ;;
   81:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   82:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   83:     cache_file="$ac_optarg" ;;
   84: 
   85:   -disable-* | --disable-*)
   86:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
   87:     # Reject names that are not valid shell variable names.
   88:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
   89:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
   90:     fi
   91:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
   92:     eval "enable_${ac_feature}=no" ;;
   93: 
   94:   -enable-* | --enable-*)
   95:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
   96:     # Reject names that are not valid shell variable names.
   97:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
   98:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
   99:     fi
  100:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  101:     case "$ac_option" in
  102:       *=*) ;;
  103:       *) ac_optarg=yes ;;
  104:     esac
  105:     eval "enable_${ac_feature}='$ac_optarg'" ;;
  106: 
  107:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  108:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  109:   | --exec | --exe | --ex)
  110:     ac_prev=exec_prefix ;;
  111:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  112:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  113:   | --exec=* | --exe=* | --ex=*)
  114:     exec_prefix="$ac_optarg" ;;
  115: 
  116:   -gas | --gas | --ga | --g)
  117:     # Obsolete; use --with-gas.
  118:     with_gas=yes ;;
  119: 
  120:   -help | --help | --hel | --he)
  121:     # Omit some internal or obsolete options to make the list less imposing.
  122:     # This message is too long to be a string in the A/UX 3.1 sh.
  123:     cat << EOF
  124: Usage: configure [options] [host]
  125: Options: [defaults in brackets after descriptions]
  126: Configuration:
  127:   --cache-file=FILE       cache test results in FILE
  128:   --help                  print this message
  129:   --no-create             do not create output files
  130:   --quiet, --silent       do not print \`checking...' messages
  131:   --version               print the version of autoconf that created configure
  132: Directory and file names:
  133:   --prefix=PREFIX         install architecture-independent files in PREFIX
  134:                           [$ac_default_prefix]
  135:   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  136:                           [same as prefix]
  137:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  138:   --program-prefix=PREFIX prepend PREFIX to installed program names
  139:   --program-suffix=SUFFIX append SUFFIX to installed program names
  140:   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  141: Host type:
  142:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  143:   --host=HOST             configure for HOST [guessed]
  144:   --target=TARGET         configure for TARGET [TARGET=HOST]
  145: Features and packages:
  146:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  147:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  148:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  149:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  150:   --x-includes=DIR        X include files are in DIR
  151:   --x-libraries=DIR       X library files are in DIR
  152: --enable and --with options recognized:$ac_help
  153: EOF
  154:     exit 0 ;;
  155: 
  156:   -host | --host | --hos | --ho)
  157:     ac_prev=host ;;
  158:   -host=* | --host=* | --hos=* | --ho=*)
  159:     host="$ac_optarg" ;;
  160: 
  161:   -nfp | --nfp | --nf)
  162:     # Obsolete; use --without-fp.
  163:     with_fp=no ;;
  164: 
  165:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  166:   | --no-cr | --no-c)
  167:     no_create=yes ;;
  168: 
  169:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  170:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  171:     no_recursion=yes ;;
  172: 
  173:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  174:     ac_prev=prefix ;;
  175:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  176:     prefix="$ac_optarg" ;;
  177: 
  178:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  179:   | --program-pre | --program-pr | --program-p)
  180:     ac_prev=program_prefix ;;
  181:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  182:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  183:     program_prefix="$ac_optarg" ;;
  184: 
  185:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  186:   | --program-suf | --program-su | --program-s)
  187:     ac_prev=program_suffix ;;
  188:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  189:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  190:     program_suffix="$ac_optarg" ;;
  191: 
  192:   -program-transform-name | --program-transform-name \
  193:   | --program-transform-nam | --program-transform-na \
  194:   | --program-transform-n | --program-transform- \
  195:   | --program-transform | --program-transfor \
  196:   | --program-transfo | --program-transf \
  197:   | --program-trans | --program-tran \
  198:   | --progr-tra | --program-tr | --program-t)
  199:     ac_prev=program_transform_name ;;
  200:   -program-transform-name=* | --program-transform-name=* \
  201:   | --program-transform-nam=* | --program-transform-na=* \
  202:   | --program-transform-n=* | --program-transform-=* \
  203:   | --program-transform=* | --program-transfor=* \
  204:   | --program-transfo=* | --program-transf=* \
  205:   | --program-trans=* | --program-tran=* \
  206:   | --progr-tra=* | --program-tr=* | --program-t=*)
  207:     program_transform_name="$ac_optarg" ;;
  208: 
  209:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  210:   | -silent | --silent | --silen | --sile | --sil)
  211:     silent=yes ;;
  212: 
  213:   -site | --site | --sit)
  214:     ac_prev=site ;;
  215:   -site=* | --site=* | --sit=*)
  216:     site="$ac_optarg" ;;
  217: 
  218:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  219:     ac_prev=srcdir ;;
  220:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  221:     srcdir="$ac_optarg" ;;
  222: 
  223:   -target | --target | --targe | --targ | --tar | --ta | --t)
  224:     ac_prev=target ;;
  225:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  226:     target="$ac_optarg" ;;
  227: 
  228:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  229:     verbose=yes ;;
  230: 
  231:   -version | --version | --versio | --versi | --vers)
  232:     echo "configure generated by autoconf version 2.1"
  233:     exit 0 ;;
  234: 
  235:   -with-* | --with-*)
  236:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  237:     # Reject names that are not valid shell variable names.
  238:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  239:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  240:     fi
  241:     ac_package=`echo $ac_package| sed 's/-/_/g'`
  242:     case "$ac_option" in
  243:       *=*) ;;
  244:       *) ac_optarg=yes ;;
  245:     esac
  246:     eval "with_${ac_package}='$ac_optarg'" ;;
  247: 
  248:   -without-* | --without-*)
  249:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  250:     # Reject names that are not valid shell variable names.
  251:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  252:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  253:     fi
  254:     ac_package=`echo $ac_package| sed 's/-/_/g'`
  255:     eval "with_${ac_package}=no" ;;
  256: 
  257:   --x)
  258:     # Obsolete; use --with-x.
  259:     with_x=yes ;;
  260: 
  261:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  262:   | --x-incl | --x-inc | --x-in | --x-i)
  263:     ac_prev=x_includes ;;
  264:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  265:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  266:     x_includes="$ac_optarg" ;;
  267: 
  268:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  269:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  270:     ac_prev=x_libraries ;;
  271:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  272:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  273:     x_libraries="$ac_optarg" ;;
  274: 
  275:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  276:     ;;
  277: 
  278:   *) 
  279:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  280:       echo "configure: warning: $ac_option: invalid host type" 1>&2
  281:     fi
  282:     if test "x$nonopt" != xNONE; then
  283:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  284:     fi
  285:     nonopt="$ac_option"
  286:     ;;
  287: 
  288:   esac
  289: done
  290: 
  291: if test -n "$ac_prev"; then
  292:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  293: fi
  294: 
  295: trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  296: 
  297: # File descriptor usage:
  298: # 0 unused; standard input
  299: # 1 file creation
  300: # 2 errors and warnings
  301: # 3 unused; some systems may open it to /dev/tty
  302: # 4 checking for... messages and results
  303: # 5 compiler messages saved in config.log
  304: if test "$silent" = yes; then
  305:   exec 4>/dev/null
  306: else
  307:   exec 4>&1
  308: fi
  309: exec 5>./config.log
  310: 
  311: echo "\
  312: This file contains any messages produced by compilers while
  313: running configure, to aid debugging if configure makes a mistake.
  314: " 1>&5
  315: 
  316: # Strip out --no-create and --no-recursion so they do not pile up.
  317: # Also quote any args containing shell metacharacters.
  318: ac_configure_args=
  319: for ac_arg
  320: do
  321:   case "$ac_arg" in
  322:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  323:   | --no-cr | --no-c) ;;
  324:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  325:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  326:   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  327:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  328:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  329:   esac
  330: done
  331: 
  332: # NLS nuisances.
  333: # Only set LANG and LC_ALL to C if already set.
  334: # These must not be set unconditionally because not all systems understand
  335: # e.g. LANG=C (notably SCO).
  336: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  337: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  338: 
  339: # confdefs.h avoids OS command line length limits that DEFS can exceed.
  340: rm -rf conftest* confdefs.h
  341: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  342: echo > confdefs.h
  343: 
  344: # A filename unique to this package, relative to the directory that
  345: # configure is in, which we can look for to find out if srcdir is correct.
  346: ac_unique_file=engine.c
  347: 
  348: # Find the source files, if location was not specified.
  349: if test -z "$srcdir"; then
  350:   ac_srcdir_defaulted=yes
  351:   # Try the directory containing this script, then its parent.
  352:   ac_prog=$0
  353:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  354:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  355:   srcdir=$ac_confdir
  356:   if test ! -r $srcdir/$ac_unique_file; then
  357:     srcdir=..
  358:   fi
  359: else
  360:   ac_srcdir_defaulted=no
  361: fi
  362: if test ! -r $srcdir/$ac_unique_file; then
  363:   if test "$ac_srcdir_defaulted" = yes; then
  364:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  365:   else
  366:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  367:   fi
  368: fi
  369: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  370: 
  371: # Prefer explicitly selected file to automatically selected ones.
  372: if test -z "$CONFIG_SITE"; then
  373:   if test "x$prefix" != xNONE; then
  374:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  375:   else
  376:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  377:   fi
  378: fi
  379: for ac_site_file in $CONFIG_SITE; do
  380:   if test -r "$ac_site_file"; then
  381:     echo "loading site script $ac_site_file"
  382:     . "$ac_site_file"
  383:   fi
  384: done
  385: 
  386: if test -r "$cache_file"; then
  387:   echo "loading cache $cache_file"
  388:   . $cache_file
  389: else
  390:   echo "creating cache $cache_file"
  391:   > $cache_file
  392: fi
  393: 
  394: ac_ext=c
  395: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  396: ac_cpp='$CPP $CPPFLAGS'
  397: ac_compile='${CC-cc} $CFLAGS $CPPFLAGS conftest.$ac_ext -c 1>&5 2>&5'
  398: ac_link='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext -o conftest $LIBS 1>&5 2>&5'
  399: 
  400: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  401:   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  402:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  403:     ac_n= ac_c='
  404: ' ac_t='	'
  405:   else
  406:     ac_n=-n ac_c= ac_t=
  407:   fi
  408: else
  409:   ac_n= ac_c='\c' ac_t=
  410: fi
  411: 
  412: 
  413: 
  414: # Check whether --enable-force-reg or --disable-force-reg was given.
  415: enableval="$enable_force_reg"
  416: if test -n "$enableval"; then
  417:   cat >> confdefs.h <<\EOF
  418: #define FORCE_REG 1
  419: EOF
  420: 
  421: fi
  422: 
  423: # Check whether --enable-direct-threaded or --disable-direct-threaded was given.
  424: enableval="$enable_direct_threaded"
  425: if test -n "$enableval"; then
  426:   cat >> confdefs.h <<\EOF
  427: #define DIRECT_THREADED 1
  428: EOF
  429: 
  430: fi
  431: 
  432: # Check whether --enable-indirect-threaded or --disable-indirect-threaded was given.
  433: enableval="$enable_indirect_threaded"
  434: if test -n "$enableval"; then
  435:   cat >> confdefs.h <<\EOF
  436: #define INDIRECT_THREADED 1
  437: EOF
  438: 
  439: fi
  440: 
  441: 
  442: #terminology is a bit unusual here: The host is the system on which
  443: #gforth will run; the system on which configure will run is the `build'
  444: ac_aux_dir=
  445: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  446:   if test -f $ac_dir/install-sh; then
  447:     ac_aux_dir=$ac_dir
  448:     ac_install_sh="$ac_aux_dir/install-sh -c"
  449:     break
  450:   elif test -f $ac_dir/install.sh; then
  451:     ac_aux_dir=$ac_dir
  452:     ac_install_sh="$ac_aux_dir/install.sh -c"
  453:     break
  454:   fi
  455: done
  456: if test -z "$ac_aux_dir"; then
  457:   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  458: fi
  459: ac_config_guess=$ac_aux_dir/config.guess
  460: ac_config_sub=$ac_aux_dir/config.sub
  461: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  462: 
  463: 
  464: # Make sure we can run config.sub.
  465: if $ac_config_sub sun4 >/dev/null 2>&1; then :
  466: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  467: fi
  468: 
  469: echo $ac_n "checking host system type""... $ac_c" 1>&4
  470: 
  471: host_alias=$host
  472: case "$host_alias" in
  473: NONE)
  474:   case $nonopt in
  475:   NONE)
  476:     if host_alias=`$ac_config_guess`; then :
  477:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  478:     fi ;;
  479:   *) host_alias=$nonopt ;;
  480:   esac ;;
  481: esac
  482: 
  483: host=`$ac_config_sub $host_alias`
  484: host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
  485: host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
  486: host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
  487: echo "$ac_t""$host" 1>&4
  488: 
  489: case "$host_cpu" in
  490: 	hppa*)
  491: 		mach_h=hppa
  492: 		LIBOBJS="cache.o"
  493: 		;;
  494: 	sparc*)
  495: 		mach_h=sparc
  496: 		;;
  497: 	i386|i486|i586)
  498: 		mach_h=386
  499: 		#!! direct/indirect threading switch
  500: 		#!! -m486 flag
  501: 		;;
  502: 	m68*)
  503: 		mach_h=m68k
  504: 		;;
  505: 	mips*)
  506: 		mach_h=mips
  507: 		#!! link text and data segment into the same 256M region!
  508: 		#!! does cacheflush work on OSs other than Ultrix?
  509: 		;;
  510: 	*)
  511: 		echo "No direct threading support for $host_cpu, using indirect threading."
  512: 		echo "Using a generic 32-bit machine description. It will only work if char * AND"
  513: 		echo "long values have 32 bits."
  514: 		echo "I'll assume that C floats and doubles are represented by IEEE single and"
  515: 		echo "double numbers. If this is not so, SF@ etc. will not work correctly."
  516: 		mach_h=32bit
  517: esac
  518: 
  519: 
  520: MAKE_EXE=""
  521: 
  522: 
  523: LINK_KERNL32L=""
  524: 
  525: LINK_KERNL32B=""
  526: 
  527: #if test $host_os=dos
  528: #then
  529: #  echo Configuring for DOS!!!
  530: #  MAKE_EXE="coff2exe gforth"
  531: #  LINK_KERNL32L='$(CP) kernl32l.fi gforth.fi'
  532: #fi
  533: 
  534: # If we cannot run a trivial program, we must be cross compiling.
  535: echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
  536: if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
  537:   echo $ac_n "(cached) $ac_c" 1>&4
  538: else
  539:   if test "$cross_compiling" = yes; then
  540:   ac_cv_cross=yes
  541: else
  542: cat > conftest.$ac_ext <<EOF
  543: #line 544 "configure"
  544: #include "confdefs.h"
  545: main(){return(0);}
  546: EOF
  547: eval $ac_link
  548: if test -s conftest && (./conftest; exit) 2>/dev/null; then
  549:   ac_cv_c_cross=no
  550: else
  551:   ac_cv_c_cross=yes
  552: fi
  553: fi
  554: rm -fr conftest*
  555: fi
  556: cross_compiling=$ac_cv_c_cross
  557: echo "$ac_t""$ac_cv_c_cross" 1>&4
  558: 
  559: echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&4
  560: if eval "test \"`echo '${'ac_cv_c_bigendian'+set}'`\" = set"; then
  561:   echo $ac_n "(cached) $ac_c" 1>&4
  562: else
  563:   if test "$cross_compiling" = yes; then
  564:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  565: else
  566: cat > conftest.$ac_ext <<EOF
  567: #line 568 "configure"
  568: #include "confdefs.h"
  569: main () {
  570:   /* Are we little or big endian?  From Harbison&Steele.  */
  571:   union
  572:   {
  573:     long l;
  574:     char c[sizeof (long)];
  575:   } u;
  576:   u.l = 1;
  577:   exit (u.c[sizeof (long) - 1] == 1);
  578: }
  579: EOF
  580: eval $ac_link
  581: if test -s conftest && (./conftest; exit) 2>/dev/null; then
  582:   ac_cv_c_bigendian=no
  583: else
  584:   ac_cv_c_bigendian=yes
  585: fi
  586: fi
  587: rm -fr conftest*
  588: fi
  589: echo "$ac_t""$ac_cv_c_bigendian" 1>&4
  590: if test $ac_cv_c_bigendian = yes; then
  591:   cat >> confdefs.h <<\EOF
  592: #define WORDS_BIGENDIAN 1
  593: EOF
  594: 
  595: fi
  596: 
  597: if test $ac_cv_c_bigendian = yes; then
  598:   bytesex=b
  599: else
  600:   bytesex=l
  601: fi
  602: 
  603: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&4
  604: if eval "test \"`echo '${'ac_cv_prog_LN_S'+set}'`\" = set"; then
  605:   echo $ac_n "(cached) $ac_c" 1>&4
  606: else
  607:   rm -f conftestdata
  608: if ln -s X conftestdata 2>/dev/null
  609: then
  610:   rm -f conftestdata
  611:   ac_cv_prog_LN_S="ln -s"
  612: else
  613:   ac_cv_prog_LN_S=ln
  614: fi
  615: fi
  616: LN_S="$ac_cv_prog_LN_S"
  617: if test "$ac_cv_prog_LN_S" = "ln -s"; then
  618:   echo "$ac_t""yes" 1>&4
  619: else
  620:   echo "$ac_t""no" 1>&4
  621: fi
  622: 
  623: # Find a good install program.  We prefer a C program (faster),
  624: # so one script is as good as another.  But avoid the broken or
  625: # incompatible versions:
  626: # SysV /etc/install, /usr/sbin/install
  627: # SunOS /usr/etc/install
  628: # IRIX /sbin/install
  629: # AIX /bin/install
  630: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  631: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  632: # ./install, which can be erroneously created by make from ./install.sh.
  633: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
  634: if test -z "$INSTALL"; then
  635: if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
  636:   echo $ac_n "(cached) $ac_c" 1>&4
  637: else
  638:     IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  639:   for ac_dir in $PATH; do
  640:     case "$ac_dir" in
  641:     ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
  642:     *)
  643:       # OSF1 and SCO ODT 3.0 have their own names for install.
  644:       for ac_prog in ginstall installbsd scoinst install; do
  645:         if test -f $ac_dir/$ac_prog; then
  646: 	  if test $ac_prog = install &&
  647:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  648: 	    # AIX install.  It has an incompatible calling convention.
  649: 	    # OSF/1 installbsd also uses dspmsg, but is usable.
  650: 	    :
  651: 	  else
  652: 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
  653: 	    break 2
  654: 	  fi
  655: 	fi
  656:       done
  657:       ;;
  658:     esac
  659:   done
  660:   IFS="$ac_save_ifs"
  661:   # As a last resort, use the slow shell script.
  662:   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  663: fi
  664:   INSTALL="$ac_cv_path_install"
  665: fi
  666: echo "$ac_t""$INSTALL" 1>&4
  667: 
  668: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  669: # It thinks the first close brace ends the variable substitution.
  670: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  671: 
  672: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  673: 
  674: 
  675: echo $ac_n "checking for -lm""... $ac_c" 1>&4
  676: if eval "test \"`echo '${'ac_cv_lib_m'+set}'`\" = set"; then
  677:   echo $ac_n "(cached) $ac_c" 1>&4
  678: else
  679:   ac_save_LIBS="$LIBS"
  680: LIBS="$LIBS -lm "
  681: cat > conftest.$ac_ext <<EOF
  682: #line 683 "configure"
  683: #include "confdefs.h"
  684: 
  685: int main() { return 0; }
  686: int t() {
  687: asin()
  688: ; return 0; }
  689: EOF
  690: if eval $ac_link; then
  691:   rm -rf conftest*
  692:   eval "ac_cv_lib_m=yes"
  693: else
  694:   rm -rf conftest*
  695:   eval "ac_cv_lib_m=no"
  696: fi
  697: rm -f conftest*
  698: LIBS="$ac_save_LIBS"
  699: 
  700: fi
  701: if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
  702:   echo "$ac_t""yes" 1>&4
  703:     ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
  704:   cat >> confdefs.h <<EOF
  705: #define $ac_tr_lib 1
  706: EOF
  707: 
  708:   LIBS="$LIBS -lm"
  709: 
  710: else
  711:   echo "$ac_t""no" 1>&4
  712: fi
  713: 
  714: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&4
  715: if eval "test \"`echo '${'ac_cv_func_memcmp'+set}'`\" = set"; then
  716:   echo $ac_n "(cached) $ac_c" 1>&4
  717: else
  718:   if test "$cross_compiling" = yes; then
  719:   ac_cv_func_memcmp=no
  720: else
  721: cat > conftest.$ac_ext <<EOF
  722: #line 723 "configure"
  723: #include "confdefs.h"
  724: 
  725: main()
  726: {
  727:   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  728:   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  729: }
  730: 
  731: EOF
  732: eval $ac_link
  733: if test -s conftest && (./conftest; exit) 2>/dev/null; then
  734:   ac_cv_func_memcmp=yes
  735: else
  736:   ac_cv_func_memcmp=no
  737: fi
  738: fi
  739: rm -fr conftest*
  740: fi
  741: echo "$ac_t""$ac_cv_func_memcmp" 1>&4
  742: test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
  743: 
  744: for ac_func in memmove strtoul
  745: do
  746: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  747: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  748:   echo $ac_n "(cached) $ac_c" 1>&4
  749: else
  750:   cat > conftest.$ac_ext <<EOF
  751: #line 752 "configure"
  752: #include "confdefs.h"
  753: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  754: /* Override any gcc2 internal prototype to avoid an error.  */
  755: char $ac_func(); 
  756: 
  757: int main() { return 0; }
  758: int t() {
  759: 
  760: /* The GNU C library defines this for functions which it implements
  761:     to always fail with ENOSYS.  Some functions are actually named
  762:     something starting with __ and the normal name is an alias.  */
  763: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  764: choke me
  765: #else
  766: $ac_func();
  767: #endif
  768: 
  769: ; return 0; }
  770: EOF
  771: if eval $ac_link; then
  772:   rm -rf conftest*
  773:   eval "ac_cv_func_$ac_func=yes"
  774: else
  775:   rm -rf conftest*
  776:   eval "ac_cv_func_$ac_func=no"
  777: fi
  778: rm -f conftest*
  779: 
  780: fi
  781: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  782:   echo "$ac_t""yes" 1>&4
  783:   :
  784: else
  785:   echo "$ac_t""no" 1>&4
  786: LIBOBJS="$LIBOBJS ${ac_func}.o"
  787: fi
  788: 
  789: done
  790: 
  791: echo $ac_n "checking for getopt_long""... $ac_c" 1>&4
  792: if eval "test \"`echo '${'ac_cv_func_getopt_long'+set}'`\" = set"; then
  793:   echo $ac_n "(cached) $ac_c" 1>&4
  794: else
  795:   cat > conftest.$ac_ext <<EOF
  796: #line 797 "configure"
  797: #include "confdefs.h"
  798: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  799: /* Override any gcc2 internal prototype to avoid an error.  */
  800: char getopt_long(); 
  801: 
  802: int main() { return 0; }
  803: int t() {
  804: 
  805: /* The GNU C library defines this for functions which it implements
  806:     to always fail with ENOSYS.  Some functions are actually named
  807:     something starting with __ and the normal name is an alias.  */
  808: #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
  809: choke me
  810: #else
  811: getopt_long();
  812: #endif
  813: 
  814: ; return 0; }
  815: EOF
  816: if eval $ac_link; then
  817:   rm -rf conftest*
  818:   eval "ac_cv_func_getopt_long=yes"
  819: else
  820:   rm -rf conftest*
  821:   eval "ac_cv_func_getopt_long=no"
  822: fi
  823: rm -f conftest*
  824: 
  825: fi
  826: if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  827:   echo "$ac_t""yes" 1>&4
  828:   getop_long=""
  829: else
  830:   echo "$ac_t""no" 1>&4
  831: getopt_long="getopt.o getopt1.o"
  832: fi
  833: 
  834: 
  835: for ac_func in rint expm1 log1p
  836: do
  837: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  838: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  839:   echo $ac_n "(cached) $ac_c" 1>&4
  840: else
  841:   cat > conftest.$ac_ext <<EOF
  842: #line 843 "configure"
  843: #include "confdefs.h"
  844: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  845: /* Override any gcc2 internal prototype to avoid an error.  */
  846: char $ac_func(); 
  847: 
  848: int main() { return 0; }
  849: int t() {
  850: 
  851: /* The GNU C library defines this for functions which it implements
  852:     to always fail with ENOSYS.  Some functions are actually named
  853:     something starting with __ and the normal name is an alias.  */
  854: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  855: choke me
  856: #else
  857: $ac_func();
  858: #endif
  859: 
  860: ; return 0; }
  861: EOF
  862: if eval $ac_link; then
  863:   rm -rf conftest*
  864:   eval "ac_cv_func_$ac_func=yes"
  865: else
  866:   rm -rf conftest*
  867:   eval "ac_cv_func_$ac_func=no"
  868: fi
  869: rm -f conftest*
  870: 
  871: fi
  872: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  873:   echo "$ac_t""yes" 1>&4
  874:     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  875:   cat >> confdefs.h <<EOF
  876: #define $ac_tr_func 1
  877: EOF
  878:  
  879: else
  880:   echo "$ac_t""no" 1>&4
  881: fi
  882: done
  883: 
  884: for ac_func in ecvt
  885: do
  886: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
  887: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
  888:   echo $ac_n "(cached) $ac_c" 1>&4
  889: else
  890:   cat > conftest.$ac_ext <<EOF
  891: #line 892 "configure"
  892: #include "confdefs.h"
  893: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
  894: /* Override any gcc2 internal prototype to avoid an error.  */
  895: char $ac_func(); 
  896: 
  897: int main() { return 0; }
  898: int t() {
  899: 
  900: /* The GNU C library defines this for functions which it implements
  901:     to always fail with ENOSYS.  Some functions are actually named
  902:     something starting with __ and the normal name is an alias.  */
  903: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  904: choke me
  905: #else
  906: $ac_func();
  907: #endif
  908: 
  909: ; return 0; }
  910: EOF
  911: if eval $ac_link; then
  912:   rm -rf conftest*
  913:   eval "ac_cv_func_$ac_func=yes"
  914: else
  915:   rm -rf conftest*
  916:   eval "ac_cv_func_$ac_func=no"
  917: fi
  918: rm -f conftest*
  919: 
  920: fi
  921: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  922:   echo "$ac_t""yes" 1>&4
  923:   :
  924: else
  925:   echo "$ac_t""no" 1>&4
  926: LIBOBJS="$LIBOBJS ${ac_func}.o"
  927: fi
  928: 
  929: done
  930: 
  931: 
  932: 
  933: trap '' 1 2 15
  934: if test -w $cache_file; then
  935: echo "updating cache $cache_file"
  936: cat > $cache_file <<\EOF
  937: # This file is a shell script that caches the results of configure
  938: # tests run on this system so they can be shared between configure
  939: # scripts and configure runs.  It is not useful on other systems.
  940: # If it contains results you don't want to keep, you may remove or edit it.
  941: #
  942: # By default, configure uses ./config.cache as the cache file,
  943: # creating it if it does not exist already.  You can give configure
  944: # the --cache-file=FILE option to use a different cache file; that is
  945: # what configure does when it calls configure scripts in
  946: # subdirectories, so they share the cache.
  947: # Giving --cache-file=/dev/null disables caching, for debugging configure.
  948: # config.status only pays attention to the cache file if you give it the
  949: # --recheck option to rerun configure.
  950: #
  951: EOF
  952: # Ultrix sh set writes to stderr and can't be redirected directly.
  953: (set) 2>&1 |
  954:   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
  955:   >> $cache_file
  956: else
  957: echo "not updating unwritable cache $cache_file"
  958: fi
  959: 
  960: trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
  961: 
  962: test "x$prefix" = xNONE && prefix=$ac_default_prefix
  963: # Let make expand exec_prefix.
  964: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  965: 
  966: # Any assignment to VPATH causes Sun make to only execute
  967: # the first set of double-colon rules, so remove it if not needed.
  968: # If there is a colon in the path, we need to keep it.
  969: if test "x$srcdir" = x.; then
  970:   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
  971: fi
  972: 
  973: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  974: 
  975: # Transform confdefs.h into DEFS.
  976: # Protect against shell expansion while executing Makefile rules.
  977: # Protect against Makefile macro expansion.
  978: cat > conftest.defs <<\EOF
  979: s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
  980: s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
  981: s%\[%\\&%g
  982: s%\]%\\&%g
  983: s%\$%$$%g
  984: EOF
  985: DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  986: rm -f conftest.defs
  987: 
  988: 
  989: # Without the "./", some shells look in PATH for config.status.
  990: : ${CONFIG_STATUS=./config.status}
  991: 
  992: echo creating $CONFIG_STATUS
  993: rm -f $CONFIG_STATUS
  994: cat > $CONFIG_STATUS <<EOF
  995: #!/bin/sh
  996: # Generated automatically by configure.
  997: # Run this file to recreate the current configuration.
  998: # This directory was configured as follows,
  999: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 1000: #
 1001: # $0 $ac_configure_args
 1002: #
 1003: # Compiler output produced by configure, useful for debugging
 1004: # configure, is in ./config.log if it exists.
 1005: 
 1006: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 1007: for ac_option
 1008: do
 1009:   case "\$ac_option" in
 1010:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 1011:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 1012:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 1013:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 1014:     echo "$CONFIG_STATUS generated by autoconf version 2.1"
 1015:     exit 0 ;;
 1016:   -help | --help | --hel | --he | --h)
 1017:     echo "\$ac_cs_usage"; exit 0 ;;
 1018:   *) echo "\$ac_cs_usage"; exit 1 ;;
 1019:   esac
 1020: done
 1021: 
 1022: ac_given_srcdir=$srcdir
 1023: ac_given_INSTALL="$INSTALL"
 1024: 
 1025: trap 'rm -f Makefile; exit 1' 1 2 15
 1026: 
 1027: # Protect against being on the right side of a sed subst in config.status. 
 1028: sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
 1029:  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
 1030: $ac_vpsub
 1031: $extrasub
 1032: s%@CFLAGS@%$CFLAGS%g
 1033: s%@CPPFLAGS@%$CPPFLAGS%g
 1034: s%@CXXFLAGS@%$CXXFLAGS%g
 1035: s%@DEFS@%$DEFS%g
 1036: s%@LDFLAGS@%$LDFLAGS%g
 1037: s%@LIBS@%$LIBS%g
 1038: s%@exec_prefix@%$exec_prefix%g
 1039: s%@prefix@%$prefix%g
 1040: s%@program_transform_name@%$program_transform_name%g
 1041: s%@host@%$host%g
 1042: s%@host_alias@%$host_alias%g
 1043: s%@host_cpu@%$host_cpu%g
 1044: s%@host_vendor@%$host_vendor%g
 1045: s%@host_os@%$host_os%g
 1046: s%@MAKE_EXE@%$MAKE_EXE%g
 1047: s%@LINK_KERNL32L@%$LINK_KERNL32L%g
 1048: s%@LINK_KERNL32B@%$LINK_KERNL32B%g
 1049: s%@LN_S@%$LN_S%g
 1050: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 1051: s%@INSTALL_DATA@%$INSTALL_DATA%g
 1052: s%@LIBOBJS@%$LIBOBJS%g
 1053: s%@getopt_long@%$getopt_long%g
 1054: 
 1055: CEOF
 1056: EOF
 1057: cat >> $CONFIG_STATUS <<EOF
 1058: 
 1059: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
 1060: EOF
 1061: cat >> $CONFIG_STATUS <<\EOF
 1062: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 1063:   # Support "outfile[:infile]", defaulting infile="outfile.in".
 1064:   case "$ac_file" in
 1065:   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
 1066:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 1067:   *) ac_file_in="${ac_file}.in" ;;
 1068:   esac
 1069: 
 1070:   # Adjust relative srcdir, etc. for subdirectories.
 1071: 
 1072:   # Remove last slash and all that follows it.  Not all systems have dirname.
 1073:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 1074:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 1075:     # The file is in a subdirectory.
 1076:     test ! -d "$ac_dir" && mkdir "$ac_dir"
 1077:     ac_dir_suffix="/$ac_dir"
 1078:     # A "../" for each directory in $ac_dir_suffix.
 1079:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 1080:   else
 1081:     ac_dir_suffix= ac_dots=
 1082:   fi
 1083: 
 1084:   case "$ac_given_srcdir" in
 1085:   .)  srcdir=.
 1086:       if test -z "$ac_dots"; then top_srcdir=.
 1087:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 1088:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 1089:   *) # Relative path.
 1090:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 1091:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
 1092:   esac
 1093: 
 1094:   case "$ac_given_INSTALL" in
 1095:   [/$]*) INSTALL="$ac_given_INSTALL" ;;
 1096:   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 1097:   esac
 1098:   echo creating "$ac_file"
 1099:   rm -f "$ac_file"
 1100:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 1101:   case "$ac_file" in
 1102:   *Makefile*) ac_comsub="1i\\
 1103: # $configure_input" ;;
 1104:   *) ac_comsub= ;;
 1105:   esac
 1106:   sed -e "$ac_comsub
 1107: s%@configure_input@%$configure_input%g
 1108: s%@srcdir@%$srcdir%g
 1109: s%@top_srcdir@%$top_srcdir%g
 1110: s%@INSTALL@%$INSTALL%g
 1111: " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
 1112: fi; done
 1113: rm -f conftest.subs
 1114: 
 1115: EOF
 1116: 
 1117: cat >> $CONFIG_STATUS <<EOF
 1118: ac_sources="${mach_h}.h kernl32${bytesex}.fi"
 1119: ac_dests="machine.h gforth.fi"
 1120: EOF
 1121: 
 1122: cat >> $CONFIG_STATUS <<\EOF
 1123: srcdir=$ac_given_srcdir
 1124: while test -n "$ac_sources"; do
 1125:   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
 1126:   set $ac_sources; ac_source=$1; shift; ac_sources=$*
 1127: 
 1128:   echo "linking $srcdir/$ac_source to $ac_dest"
 1129: 
 1130:   if test ! -r $srcdir/$ac_source; then
 1131:     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
 1132:   fi
 1133:   rm -f $ac_dest
 1134: 
 1135:   # Make relative symlinks.
 1136:   # Remove last slash and all that follows it.  Not all systems have dirname.
 1137:   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
 1138:   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
 1139:     # The dest file is in a subdirectory.
 1140:     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
 1141:     ac_dest_dir_suffix="/$ac_dest_dir"
 1142:     # A "../" for each directory in $ac_dest_dir_suffix.
 1143:     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
 1144:   else
 1145:     ac_dest_dir_suffix= ac_dots=
 1146:   fi
 1147: 
 1148:   case "$srcdir" in
 1149:   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
 1150:   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
 1151:   esac
 1152: 
 1153:   # Make a symlink if possible; otherwise try a hard link.
 1154:   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
 1155:     ln $srcdir/$ac_source $ac_dest; then :
 1156:   else
 1157:     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
 1158:   fi
 1159: done
 1160: 
 1161: 
 1162: exit 0
 1163: EOF
 1164: chmod +x $CONFIG_STATUS
 1165: rm -fr confdefs* $ac_clean_files
 1166: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
 1167: 
 1168: 

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