Annotation of gforth/configure, revision 1.7

1.1       pazsan      1: #!/bin/sh
                      2: 
1.6       anton       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=
1.1       pazsan     52: 
1.6       anton      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
1.5       pazsan     68: 
1.6       anton      69:   # Accept the important Cygnus configure options, so we can diagnose typos.
1.1       pazsan     70: 
1.6       anton      71:   case "$ac_option" in
1.1       pazsan     72: 
1.6       anton      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'" ;;
1.1       pazsan    106: 
1.6       anton     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'" ;;
1.1       pazsan    247: 
1.6       anton     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" ;;
1.1       pazsan    274: 
1.6       anton     275:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    276:     ;;
1.1       pazsan    277: 
1.6       anton     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:     ;;
1.1       pazsan    287: 
1.6       anton     288:   esac
                    289: done
1.1       pazsan    290: 
1.6       anton     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
1.1       pazsan    294: 
1.6       anton     295: trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
1.1       pazsan    296: 
1.6       anton     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
1.1       pazsan    310: 
1.6       anton     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
1.1       pazsan    320: do
1.6       anton     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" ;;
1.1       pazsan    329:   esac
                    330: done
                    331: 
1.6       anton     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
1.1       pazsan    347: 
1.6       anton     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%'`
1.1       pazsan    370: 
1.6       anton     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
1.1       pazsan    385: 
1.6       anton     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
1.1       pazsan    392: fi
                    393: 
1.6       anton     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=
1.1       pazsan    410: fi
                    411: 
1.6       anton     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: 
1.1       pazsan    421: fi
                    422: 
1.6       anton     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: 
1.1       pazsan    430: fi
                    431: 
1.6       anton     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: 
1.1       pazsan    439: fi
                    440: 
1.6       anton     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; }
1.1       pazsan    458: fi
1.6       anton     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: 
1.1       pazsan    463: 
1.6       anton     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; }
1.1       pazsan    467: fi
                    468: 
1.6       anton     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
1.1       pazsan    488: 
1.6       anton     489: case "$host_cpu" in
1.1       pazsan    490:        hppa*)
1.6       anton     491:                mach_h=hppa
1.1       pazsan    492:                ;;
                    493:        sparc*)
1.6       anton     494:                mach_h=sparc
1.1       pazsan    495:                ;;
1.6       anton     496:        i386|i486|i586)
                    497:                mach_h=386
                    498:                #!! direct/indirect threading switch
                    499:                #!! -m486 flag
1.5       pazsan    500:                ;;
1.6       anton     501:        m68*)
                    502:                mach_h=m68k
1.1       pazsan    503:                ;;
1.6       anton     504:        mips*)
                    505:                mach_h=mips
                    506:                #!! link text and data segment into the same 256M region!
                    507:                #!! does cacheflush work on OSs other than Ultrix?
1.1       pazsan    508:                ;;
                    509:        *)
1.6       anton     510:                echo "No direct threading support for $host_cpu, using indirect threading."
                    511:                echo "Using a generic 32-bit machine description. It will only work if char * AND"
                    512:                echo "long values have 32 bits."
                    513:                echo "I'll assume that C floats and doubles are represented by IEEE single and"
                    514:                echo "double numbers. If this is not so, SF@ etc. will not work correctly."
                    515:                mach_h=32bit
1.1       pazsan    516: esac
                    517: 
1.6       anton     518: 
                    519: MAKE_EXE=""
                    520: 
                    521: 
                    522: LINK_KERNL32L=""
                    523: 
                    524: LINK_KERNL32B=""
                    525: 
                    526: #if test $host_os=dos
                    527: #then
                    528: #  echo Configuring for DOS!!!
                    529: #  MAKE_EXE="coff2exe gforth"
                    530: #  LINK_KERNL32L='$(CP) kernl32l.fi gforth.fi'
                    531: #fi
                    532: 
                    533: # If we cannot run a trivial program, we must be cross compiling.
                    534: echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
                    535: if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
                    536:   echo $ac_n "(cached) $ac_c" 1>&4
                    537: else
                    538:   if test "$cross_compiling" = yes; then
                    539:   ac_cv_cross=yes
                    540: else
                    541: cat > conftest.$ac_ext <<EOF
                    542: #line 543 "configure"
                    543: #include "confdefs.h"
                    544: main(){return(0);}
                    545: EOF
                    546: eval $ac_link
                    547: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                    548:   ac_cv_c_cross=no
                    549: else
                    550:   ac_cv_c_cross=yes
                    551: fi
                    552: fi
                    553: rm -fr conftest*
                    554: fi
                    555: cross_compiling=$ac_cv_c_cross
                    556: echo "$ac_t""$ac_cv_c_cross" 1>&4
                    557: 
                    558: echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&4
                    559: if eval "test \"`echo '${'ac_cv_c_bigendian'+set}'`\" = set"; then
                    560:   echo $ac_n "(cached) $ac_c" 1>&4
                    561: else
                    562:   if test "$cross_compiling" = yes; then
                    563:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                    564: else
                    565: cat > conftest.$ac_ext <<EOF
                    566: #line 567 "configure"
                    567: #include "confdefs.h"
                    568: main () {
                    569:   /* Are we little or big endian?  From Harbison&Steele.  */
                    570:   union
                    571:   {
                    572:     long l;
                    573:     char c[sizeof (long)];
                    574:   } u;
                    575:   u.l = 1;
                    576:   exit (u.c[sizeof (long) - 1] == 1);
                    577: }
                    578: EOF
                    579: eval $ac_link
                    580: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                    581:   ac_cv_c_bigendian=no
                    582: else
                    583:   ac_cv_c_bigendian=yes
                    584: fi
                    585: fi
                    586: rm -fr conftest*
                    587: fi
                    588: echo "$ac_t""$ac_cv_c_bigendian" 1>&4
                    589: if test $ac_cv_c_bigendian = yes; then
                    590:   cat >> confdefs.h <<\EOF
                    591: #define WORDS_BIGENDIAN 1
                    592: EOF
                    593: 
                    594: fi
                    595: 
                    596: if test $ac_cv_c_bigendian = yes; then
                    597:   bytesex=b
                    598: else
                    599:   bytesex=l
                    600: fi
                    601: 
                    602: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&4
                    603: if eval "test \"`echo '${'ac_cv_prog_LN_S'+set}'`\" = set"; then
                    604:   echo $ac_n "(cached) $ac_c" 1>&4
                    605: else
                    606:   rm -f conftestdata
                    607: if ln -s X conftestdata 2>/dev/null
1.1       pazsan    608: then
1.6       anton     609:   rm -f conftestdata
                    610:   ac_cv_prog_LN_S="ln -s"
                    611: else
                    612:   ac_cv_prog_LN_S=ln
                    613: fi
1.1       pazsan    614: fi
1.6       anton     615: LN_S="$ac_cv_prog_LN_S"
                    616: if test "$ac_cv_prog_LN_S" = "ln -s"; then
                    617:   echo "$ac_t""yes" 1>&4
                    618: else
                    619:   echo "$ac_t""no" 1>&4
                    620: fi
                    621: 
                    622: # Find a good install program.  We prefer a C program (faster),
                    623: # so one script is as good as another.  But avoid the broken or
                    624: # incompatible versions:
                    625: # SysV /etc/install, /usr/sbin/install
                    626: # SunOS /usr/etc/install
                    627: # IRIX /sbin/install
                    628: # AIX /bin/install
                    629: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                    630: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                    631: # ./install, which can be erroneously created by make from ./install.sh.
                    632: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
                    633: if test -z "$INSTALL"; then
                    634: if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
                    635:   echo $ac_n "(cached) $ac_c" 1>&4
                    636: else
                    637:     IFS="${IFS=        }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                    638:   for ac_dir in $PATH; do
                    639:     case "$ac_dir" in
                    640:     ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
                    641:     *)
                    642:       # OSF1 and SCO ODT 3.0 have their own names for install.
                    643:       for ac_prog in ginstall installbsd scoinst install; do
                    644:         if test -f $ac_dir/$ac_prog; then
                    645:          if test $ac_prog = install &&
                    646:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                    647:            # AIX install.  It has an incompatible calling convention.
                    648:            # OSF/1 installbsd also uses dspmsg, but is usable.
                    649:            :
                    650:          else
                    651:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                    652:            break 2
                    653:          fi
                    654:        fi
                    655:       done
                    656:       ;;
                    657:     esac
                    658:   done
                    659:   IFS="$ac_save_ifs"
                    660:   # As a last resort, use the slow shell script.
                    661:   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
                    662: fi
                    663:   INSTALL="$ac_cv_path_install"
                    664: fi
                    665: echo "$ac_t""$INSTALL" 1>&4
                    666: 
                    667: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                    668: # It thinks the first close brace ends the variable substitution.
                    669: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                    670: 
                    671: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                    672: 
                    673: 
1.7     ! anton     674: echo $ac_n "checking for -lm""... $ac_c" 1>&4
        !           675: if eval "test \"`echo '${'ac_cv_lib_m'+set}'`\" = set"; then
        !           676:   echo $ac_n "(cached) $ac_c" 1>&4
        !           677: else
        !           678:   ac_save_LIBS="$LIBS"
        !           679: LIBS="$LIBS -lm "
        !           680: cat > conftest.$ac_ext <<EOF
        !           681: #line 682 "configure"
        !           682: #include "confdefs.h"
        !           683: 
        !           684: int main() { return 0; }
        !           685: int t() {
        !           686: asin()
        !           687: ; return 0; }
        !           688: EOF
        !           689: if eval $ac_link; then
        !           690:   rm -rf conftest*
        !           691:   eval "ac_cv_lib_m=yes"
        !           692: else
        !           693:   rm -rf conftest*
        !           694:   eval "ac_cv_lib_m=no"
        !           695: fi
        !           696: rm -f conftest*
        !           697: LIBS="$ac_save_LIBS"
        !           698: 
        !           699: fi
        !           700: if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
        !           701:   echo "$ac_t""yes" 1>&4
        !           702:     ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
        !           703:   cat >> confdefs.h <<EOF
        !           704: #define $ac_tr_lib 1
        !           705: EOF
        !           706: 
        !           707:   LIBS="$LIBS -lm"
        !           708: 
        !           709: else
        !           710:   echo "$ac_t""no" 1>&4
        !           711: fi
        !           712: 
1.6       anton     713: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&4
                    714: if eval "test \"`echo '${'ac_cv_func_memcmp'+set}'`\" = set"; then
                    715:   echo $ac_n "(cached) $ac_c" 1>&4
                    716: else
                    717:   if test "$cross_compiling" = yes; then
                    718:   ac_cv_func_memcmp=no
                    719: else
                    720: cat > conftest.$ac_ext <<EOF
1.7     ! anton     721: #line 722 "configure"
1.6       anton     722: #include "confdefs.h"
                    723: 
                    724: main()
                    725: {
                    726:   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
                    727:   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
                    728: }
                    729: 
                    730: EOF
                    731: eval $ac_link
                    732: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                    733:   ac_cv_func_memcmp=yes
                    734: else
                    735:   ac_cv_func_memcmp=no
                    736: fi
                    737: fi
                    738: rm -fr conftest*
                    739: fi
                    740: echo "$ac_t""$ac_cv_func_memcmp" 1>&4
                    741: test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
                    742: 
                    743: for ac_func in memmove strtoul
                    744: do
                    745: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
                    746: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
                    747:   echo $ac_n "(cached) $ac_c" 1>&4
                    748: else
                    749:   cat > conftest.$ac_ext <<EOF
1.7     ! anton     750: #line 751 "configure"
1.6       anton     751: #include "confdefs.h"
                    752: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
                    753: /* Override any gcc2 internal prototype to avoid an error.  */
                    754: char $ac_func(); 
                    755: 
                    756: int main() { return 0; }
                    757: int t() {
                    758: 
                    759: /* The GNU C library defines this for functions which it implements
                    760:     to always fail with ENOSYS.  Some functions are actually named
                    761:     something starting with __ and the normal name is an alias.  */
                    762: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                    763: choke me
                    764: #else
                    765: $ac_func();
                    766: #endif
                    767: 
                    768: ; return 0; }
                    769: EOF
                    770: if eval $ac_link; then
                    771:   rm -rf conftest*
                    772:   eval "ac_cv_func_$ac_func=yes"
                    773: else
                    774:   rm -rf conftest*
                    775:   eval "ac_cv_func_$ac_func=no"
                    776: fi
                    777: rm -f conftest*
                    778: 
                    779: fi
                    780: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                    781:   echo "$ac_t""yes" 1>&4
                    782:   :
                    783: else
                    784:   echo "$ac_t""no" 1>&4
                    785: LIBOBJS="$LIBOBJS ${ac_func}.o"
                    786: fi
                    787: 
                    788: done
                    789: 
                    790: echo $ac_n "checking for getopt_long""... $ac_c" 1>&4
                    791: if eval "test \"`echo '${'ac_cv_func_getopt_long'+set}'`\" = set"; then
                    792:   echo $ac_n "(cached) $ac_c" 1>&4
                    793: else
                    794:   cat > conftest.$ac_ext <<EOF
1.7     ! anton     795: #line 796 "configure"
1.6       anton     796: #include "confdefs.h"
                    797: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
                    798: /* Override any gcc2 internal prototype to avoid an error.  */
                    799: char getopt_long(); 
                    800: 
                    801: int main() { return 0; }
                    802: int t() {
                    803: 
                    804: /* The GNU C library defines this for functions which it implements
                    805:     to always fail with ENOSYS.  Some functions are actually named
                    806:     something starting with __ and the normal name is an alias.  */
                    807: #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
                    808: choke me
                    809: #else
                    810: getopt_long();
                    811: #endif
                    812: 
                    813: ; return 0; }
                    814: EOF
                    815: if eval $ac_link; then
                    816:   rm -rf conftest*
                    817:   eval "ac_cv_func_getopt_long=yes"
                    818: else
                    819:   rm -rf conftest*
                    820:   eval "ac_cv_func_getopt_long=no"
                    821: fi
                    822: rm -f conftest*
                    823: 
                    824: fi
                    825: if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
                    826:   echo "$ac_t""yes" 1>&4
                    827:   getop_long=""
                    828: else
                    829:   echo "$ac_t""no" 1>&4
                    830: getopt_long="getopt.o getopt1.o"
                    831: fi
                    832: 
                    833: 
1.7     ! anton     834: for ac_func in rint expm1 log1p
1.6       anton     835: do
                    836: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
                    837: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
                    838:   echo $ac_n "(cached) $ac_c" 1>&4
                    839: else
                    840:   cat > conftest.$ac_ext <<EOF
                    841: #line 842 "configure"
                    842: #include "confdefs.h"
                    843: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
                    844: /* Override any gcc2 internal prototype to avoid an error.  */
                    845: char $ac_func(); 
                    846: 
                    847: int main() { return 0; }
                    848: int t() {
                    849: 
                    850: /* The GNU C library defines this for functions which it implements
                    851:     to always fail with ENOSYS.  Some functions are actually named
                    852:     something starting with __ and the normal name is an alias.  */
                    853: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                    854: choke me
                    855: #else
                    856: $ac_func();
                    857: #endif
                    858: 
                    859: ; return 0; }
                    860: EOF
                    861: if eval $ac_link; then
                    862:   rm -rf conftest*
                    863:   eval "ac_cv_func_$ac_func=yes"
                    864: else
                    865:   rm -rf conftest*
                    866:   eval "ac_cv_func_$ac_func=no"
                    867: fi
                    868: rm -f conftest*
                    869: 
                    870: fi
                    871: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                    872:   echo "$ac_t""yes" 1>&4
                    873:     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
                    874:   cat >> confdefs.h <<EOF
                    875: #define $ac_tr_func 1
                    876: EOF
                    877:  
                    878: else
                    879:   echo "$ac_t""no" 1>&4
                    880: fi
                    881: done
                    882: 
                    883: for ac_func in ecvt
                    884: do
                    885: echo $ac_n "checking for $ac_func""... $ac_c" 1>&4
                    886: if eval "test \"`echo '${'ac_cv_func_$ac_func'+set}'`\" = set"; then
                    887:   echo $ac_n "(cached) $ac_c" 1>&4
                    888: else
                    889:   cat > conftest.$ac_ext <<EOF
                    890: #line 891 "configure"
                    891: #include "confdefs.h"
                    892: #include <ctype.h> /* Arbitrary system header to define __stub macros. */
                    893: /* Override any gcc2 internal prototype to avoid an error.  */
                    894: char $ac_func(); 
                    895: 
                    896: int main() { return 0; }
                    897: int t() {
                    898: 
                    899: /* The GNU C library defines this for functions which it implements
                    900:     to always fail with ENOSYS.  Some functions are actually named
                    901:     something starting with __ and the normal name is an alias.  */
                    902: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                    903: choke me
                    904: #else
                    905: $ac_func();
                    906: #endif
                    907: 
                    908: ; return 0; }
                    909: EOF
                    910: if eval $ac_link; then
                    911:   rm -rf conftest*
                    912:   eval "ac_cv_func_$ac_func=yes"
                    913: else
                    914:   rm -rf conftest*
                    915:   eval "ac_cv_func_$ac_func=no"
                    916: fi
                    917: rm -f conftest*
1.1       pazsan    918: 
1.6       anton     919: fi
                    920: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                    921:   echo "$ac_t""yes" 1>&4
                    922:   :
1.1       pazsan    923: else
1.6       anton     924:   echo "$ac_t""no" 1>&4
                    925: LIBOBJS="$LIBOBJS ${ac_func}.o"
1.1       pazsan    926: fi
                    927: 
1.6       anton     928: done
                    929: 
                    930: 
                    931: 
                    932: trap '' 1 2 15
                    933: if test -w $cache_file; then
                    934: echo "updating cache $cache_file"
                    935: cat > $cache_file <<\EOF
                    936: # This file is a shell script that caches the results of configure
                    937: # tests run on this system so they can be shared between configure
                    938: # scripts and configure runs.  It is not useful on other systems.
                    939: # If it contains results you don't want to keep, you may remove or edit it.
                    940: #
                    941: # By default, configure uses ./config.cache as the cache file,
                    942: # creating it if it does not exist already.  You can give configure
                    943: # the --cache-file=FILE option to use a different cache file; that is
                    944: # what configure does when it calls configure scripts in
                    945: # subdirectories, so they share the cache.
                    946: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                    947: # config.status only pays attention to the cache file if you give it the
                    948: # --recheck option to rerun configure.
                    949: #
                    950: EOF
                    951: # Ultrix sh set writes to stderr and can't be redirected directly.
                    952: (set) 2>&1 |
                    953:   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \
                    954:   >> $cache_file
                    955: else
                    956: echo "not updating unwritable cache $cache_file"
1.3       pazsan    957: fi
                    958: 
1.6       anton     959: trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
                    960: 
                    961: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                    962: # Let make expand exec_prefix.
                    963: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                    964: 
                    965: # Any assignment to VPATH causes Sun make to only execute
                    966: # the first set of double-colon rules, so remove it if not needed.
                    967: # If there is a colon in the path, we need to keep it.
                    968: if test "x$srcdir" = x.; then
                    969:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
1.5       pazsan    970: fi
1.1       pazsan    971: 
1.6       anton     972: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                    973: 
                    974: # Transform confdefs.h into DEFS.
                    975: # Protect against shell expansion while executing Makefile rules.
                    976: # Protect against Makefile macro expansion.
                    977: cat > conftest.defs <<\EOF
                    978: s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
                    979: s%[    `~#$^&*(){}\\|;'"<>?]%\\&%g
                    980: s%\[%\\&%g
                    981: s%\]%\\&%g
                    982: s%\$%$$%g
                    983: EOF
                    984: DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
                    985: rm -f conftest.defs
                    986: 
                    987: 
                    988: # Without the "./", some shells look in PATH for config.status.
                    989: : ${CONFIG_STATUS=./config.status}
                    990: 
                    991: echo creating $CONFIG_STATUS
                    992: rm -f $CONFIG_STATUS
                    993: cat > $CONFIG_STATUS <<EOF
                    994: #!/bin/sh
                    995: # Generated automatically by configure.
                    996: # Run this file to recreate the current configuration.
                    997: # This directory was configured as follows,
                    998: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                    999: #
                   1000: # $0 $ac_configure_args
                   1001: #
                   1002: # Compiler output produced by configure, useful for debugging
                   1003: # configure, is in ./config.log if it exists.
                   1004: 
                   1005: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   1006: for ac_option
                   1007: do
                   1008:   case "\$ac_option" in
                   1009:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   1010:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   1011:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   1012:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   1013:     echo "$CONFIG_STATUS generated by autoconf version 2.1"
                   1014:     exit 0 ;;
                   1015:   -help | --help | --hel | --he | --h)
                   1016:     echo "\$ac_cs_usage"; exit 0 ;;
                   1017:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   1018:   esac
                   1019: done
                   1020: 
                   1021: ac_given_srcdir=$srcdir
                   1022: ac_given_INSTALL="$INSTALL"
                   1023: 
                   1024: trap 'rm -f Makefile; exit 1' 1 2 15
                   1025: 
                   1026: # Protect against being on the right side of a sed subst in config.status. 
                   1027: sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
                   1028:  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
                   1029: $ac_vpsub
                   1030: $extrasub
                   1031: s%@CFLAGS@%$CFLAGS%g
                   1032: s%@CPPFLAGS@%$CPPFLAGS%g
                   1033: s%@CXXFLAGS@%$CXXFLAGS%g
                   1034: s%@DEFS@%$DEFS%g
                   1035: s%@LDFLAGS@%$LDFLAGS%g
                   1036: s%@LIBS@%$LIBS%g
                   1037: s%@exec_prefix@%$exec_prefix%g
                   1038: s%@prefix@%$prefix%g
                   1039: s%@program_transform_name@%$program_transform_name%g
                   1040: s%@host@%$host%g
                   1041: s%@host_alias@%$host_alias%g
                   1042: s%@host_cpu@%$host_cpu%g
                   1043: s%@host_vendor@%$host_vendor%g
                   1044: s%@host_os@%$host_os%g
                   1045: s%@MAKE_EXE@%$MAKE_EXE%g
                   1046: s%@LINK_KERNL32L@%$LINK_KERNL32L%g
                   1047: s%@LINK_KERNL32B@%$LINK_KERNL32B%g
                   1048: s%@LN_S@%$LN_S%g
                   1049: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
                   1050: s%@INSTALL_DATA@%$INSTALL_DATA%g
                   1051: s%@LIBOBJS@%$LIBOBJS%g
                   1052: s%@getopt_long@%$getopt_long%g
                   1053: 
                   1054: CEOF
                   1055: EOF
                   1056: cat >> $CONFIG_STATUS <<EOF
                   1057: 
                   1058: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
                   1059: EOF
                   1060: cat >> $CONFIG_STATUS <<\EOF
                   1061: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   1062:   # Support "outfile[:infile]", defaulting infile="outfile.in".
                   1063:   case "$ac_file" in
                   1064:   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
                   1065:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   1066:   *) ac_file_in="${ac_file}.in" ;;
                   1067:   esac
                   1068: 
                   1069:   # Adjust relative srcdir, etc. for subdirectories.
                   1070: 
                   1071:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   1072:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   1073:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   1074:     # The file is in a subdirectory.
                   1075:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   1076:     ac_dir_suffix="/$ac_dir"
                   1077:     # A "../" for each directory in $ac_dir_suffix.
                   1078:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   1079:   else
                   1080:     ac_dir_suffix= ac_dots=
                   1081:   fi
                   1082: 
                   1083:   case "$ac_given_srcdir" in
                   1084:   .)  srcdir=.
                   1085:       if test -z "$ac_dots"; then top_srcdir=.
                   1086:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   1087:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   1088:   *) # Relative path.
                   1089:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   1090:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   1091:   esac
                   1092: 
                   1093:   case "$ac_given_INSTALL" in
                   1094:   [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   1095:   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   1096:   esac
                   1097:   echo creating "$ac_file"
                   1098:   rm -f "$ac_file"
                   1099:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   1100:   case "$ac_file" in
                   1101:   *Makefile*) ac_comsub="1i\\
                   1102: # $configure_input" ;;
                   1103:   *) ac_comsub= ;;
                   1104:   esac
                   1105:   sed -e "$ac_comsub
                   1106: s%@configure_input@%$configure_input%g
                   1107: s%@srcdir@%$srcdir%g
                   1108: s%@top_srcdir@%$top_srcdir%g
                   1109: s%@INSTALL@%$INSTALL%g
                   1110: " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
                   1111: fi; done
                   1112: rm -f conftest.subs
                   1113: 
                   1114: EOF
                   1115: 
                   1116: cat >> $CONFIG_STATUS <<EOF
                   1117: ac_sources="${mach_h}.h kernl32${bytesex}.fi"
                   1118: ac_dests="machine.h gforth.fi"
                   1119: EOF
                   1120: 
                   1121: cat >> $CONFIG_STATUS <<\EOF
                   1122: srcdir=$ac_given_srcdir
                   1123: while test -n "$ac_sources"; do
                   1124:   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
                   1125:   set $ac_sources; ac_source=$1; shift; ac_sources=$*
                   1126: 
                   1127:   echo "linking $srcdir/$ac_source to $ac_dest"
                   1128: 
                   1129:   if test ! -r $srcdir/$ac_source; then
                   1130:     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
                   1131:   fi
                   1132:   rm -f $ac_dest
                   1133: 
                   1134:   # Make relative symlinks.
                   1135:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   1136:   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
                   1137:   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
                   1138:     # The dest file is in a subdirectory.
                   1139:     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
                   1140:     ac_dest_dir_suffix="/$ac_dest_dir"
                   1141:     # A "../" for each directory in $ac_dest_dir_suffix.
                   1142:     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
                   1143:   else
                   1144:     ac_dest_dir_suffix= ac_dots=
                   1145:   fi
                   1146: 
                   1147:   case "$srcdir" in
                   1148:   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
                   1149:   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
                   1150:   esac
                   1151: 
                   1152:   # Make a symlink if possible; otherwise try a hard link.
                   1153:   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
                   1154:     ln $srcdir/$ac_source $ac_dest; then :
                   1155:   else
                   1156:     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
                   1157:   fi
                   1158: done
                   1159: 
                   1160: 
1.1       pazsan   1161: exit 0
1.6       anton    1162: EOF
                   1163: chmod +x $CONFIG_STATUS
                   1164: rm -fr confdefs* $ac_clean_files
                   1165: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS
                   1166: 
1.1       pazsan   1167: 

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