Annotation of uae/configure, revision 1.1.1.3

1.1       root        1: #! /bin/sh
                      2: 
                      3: # Guess values for system-dependent variables and create Makefiles.
                      4: # Generated automatically using autoconf version 2.10 
                      5: # Copyright (C) 1992, 93, 94, 95, 96 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:   --with-x                use the X Window System"
1.1.1.2   root       16: ac_help="$ac_help
1.1.1.3 ! root       17: --enable-profiling        Build a profiling (SLOW!) version"
1.1.1.2   root       18: ac_help="$ac_help
1.1.1.3 ! root       19: --disable-gui             Don't use any GUI"
        !            20: ac_help="$ac_help
        !            21: --enable-dga              Use the DGA extension"
        !            22: ac_help="$ac_help
        !            23: --enable-xfgui            Use the XForms GUI instead of Tcl/Tk"
1.1       root       24: 
                     25: # Initialize some variables set by options.
                     26: # The variables have the same names as the options, with
                     27: # dashes changed to underlines.
                     28: build=NONE
                     29: cache_file=./config.cache
                     30: exec_prefix=NONE
                     31: host=NONE
                     32: no_create=
                     33: nonopt=NONE
                     34: no_recursion=
                     35: prefix=NONE
                     36: program_prefix=NONE
                     37: program_suffix=NONE
                     38: program_transform_name=s,x,x,
                     39: silent=
                     40: site=
                     41: srcdir=
                     42: target=NONE
                     43: verbose=
                     44: x_includes=NONE
                     45: x_libraries=NONE
                     46: bindir='${exec_prefix}/bin'
                     47: sbindir='${exec_prefix}/sbin'
                     48: libexecdir='${exec_prefix}/libexec'
                     49: datadir='${prefix}/share'
                     50: sysconfdir='${prefix}/etc'
                     51: sharedstatedir='${prefix}/com'
                     52: localstatedir='${prefix}/var'
                     53: libdir='${exec_prefix}/lib'
                     54: includedir='${prefix}/include'
                     55: oldincludedir='/usr/include'
                     56: infodir='${prefix}/info'
                     57: mandir='${prefix}/man'
                     58: 
                     59: # Initialize some other variables.
                     60: subdirs=
                     61: MFLAGS= MAKEFLAGS=
                     62: 
                     63: ac_prev=
                     64: for ac_option
                     65: do
                     66: 
                     67:   # If the previous option needs an argument, assign it.
                     68:   if test -n "$ac_prev"; then
                     69:     eval "$ac_prev=\$ac_option"
                     70:     ac_prev=
                     71:     continue
                     72:   fi
                     73: 
                     74:   case "$ac_option" in
                     75:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                     76:   *) ac_optarg= ;;
                     77:   esac
                     78: 
                     79:   # Accept the important Cygnus configure options, so we can diagnose typos.
                     80: 
                     81:   case "$ac_option" in
                     82: 
                     83:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                     84:     ac_prev=bindir ;;
                     85:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                     86:     bindir="$ac_optarg" ;;
                     87: 
                     88:   -build | --build | --buil | --bui | --bu)
                     89:     ac_prev=build ;;
                     90:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                     91:     build="$ac_optarg" ;;
                     92: 
                     93:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                     94:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                     95:     ac_prev=cache_file ;;
                     96:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                     97:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                     98:     cache_file="$ac_optarg" ;;
                     99: 
                    100:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    101:     ac_prev=datadir ;;
                    102:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    103:   | --da=*)
                    104:     datadir="$ac_optarg" ;;
                    105: 
                    106:   -disable-* | --disable-*)
                    107:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    108:     # Reject names that are not valid shell variable names.
                    109:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    110:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    111:     fi
                    112:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    113:     eval "enable_${ac_feature}=no" ;;
                    114: 
                    115:   -enable-* | --enable-*)
                    116:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    117:     # Reject names that are not valid shell variable names.
                    118:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    119:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    120:     fi
                    121:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    122:     case "$ac_option" in
                    123:       *=*) ;;
                    124:       *) ac_optarg=yes ;;
                    125:     esac
                    126:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    127: 
                    128:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    129:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    130:   | --exec | --exe | --ex)
                    131:     ac_prev=exec_prefix ;;
                    132:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    133:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    134:   | --exec=* | --exe=* | --ex=*)
                    135:     exec_prefix="$ac_optarg" ;;
                    136: 
                    137:   -gas | --gas | --ga | --g)
                    138:     # Obsolete; use --with-gas.
                    139:     with_gas=yes ;;
                    140: 
                    141:   -help | --help | --hel | --he)
                    142:     # Omit some internal or obsolete options to make the list less imposing.
                    143:     # This message is too long to be a string in the A/UX 3.1 sh.
                    144:     cat << EOF
                    145: Usage: configure [options] [host]
                    146: Options: [defaults in brackets after descriptions]
                    147: Configuration:
                    148:   --cache-file=FILE       cache test results in FILE
                    149:   --help                  print this message
                    150:   --no-create             do not create output files
                    151:   --quiet, --silent       do not print \`checking...' messages
                    152:   --version               print the version of autoconf that created configure
                    153: Directory and file names:
                    154:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    155:                           [$ac_default_prefix]
                    156:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    157:                           [same as prefix]
                    158:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    159:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    160:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    161:   --datadir=DIR           read-only architecture-independent data in DIR
                    162:                           [PREFIX/share]
                    163:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    164:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    165:                           [PREFIX/com]
                    166:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    167:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    168:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    169:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    170:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    171:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    172:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    173:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    174:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    175:   --program-transform-name=PROGRAM
                    176:                           run sed PROGRAM on installed program names
                    177: EOF
                    178:     cat << EOF
                    179: Host type:
                    180:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    181:   --host=HOST             configure for HOST [guessed]
                    182:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    183: Features and packages:
                    184:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    185:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    186:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    187:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    188:   --x-includes=DIR        X include files are in DIR
                    189:   --x-libraries=DIR       X library files are in DIR
                    190: EOF
                    191:     if test -n "$ac_help"; then
                    192:       echo "--enable and --with options recognized:$ac_help"
                    193:     fi
                    194:     exit 0 ;;
                    195: 
                    196:   -host | --host | --hos | --ho)
                    197:     ac_prev=host ;;
                    198:   -host=* | --host=* | --hos=* | --ho=*)
                    199:     host="$ac_optarg" ;;
                    200: 
                    201:   -includedir | --includedir | --includedi | --included | --include \
                    202:   | --includ | --inclu | --incl | --inc)
                    203:     ac_prev=includedir ;;
                    204:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    205:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    206:     includedir="$ac_optarg" ;;
                    207: 
                    208:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    209:     ac_prev=infodir ;;
                    210:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    211:     infodir="$ac_optarg" ;;
                    212: 
                    213:   -libdir | --libdir | --libdi | --libd)
                    214:     ac_prev=libdir ;;
                    215:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    216:     libdir="$ac_optarg" ;;
                    217: 
                    218:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    219:   | --libexe | --libex | --libe)
                    220:     ac_prev=libexecdir ;;
                    221:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    222:   | --libexe=* | --libex=* | --libe=*)
                    223:     libexecdir="$ac_optarg" ;;
                    224: 
                    225:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    226:   | --localstate | --localstat | --localsta | --localst \
                    227:   | --locals | --local | --loca | --loc | --lo)
                    228:     ac_prev=localstatedir ;;
                    229:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    230:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    231:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    232:     localstatedir="$ac_optarg" ;;
                    233: 
                    234:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    235:     ac_prev=mandir ;;
                    236:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    237:     mandir="$ac_optarg" ;;
                    238: 
                    239:   -nfp | --nfp | --nf)
                    240:     # Obsolete; use --without-fp.
                    241:     with_fp=no ;;
                    242: 
                    243:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    244:   | --no-cr | --no-c)
                    245:     no_create=yes ;;
                    246: 
                    247:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    248:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    249:     no_recursion=yes ;;
                    250: 
                    251:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    252:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    253:   | --oldin | --oldi | --old | --ol | --o)
                    254:     ac_prev=oldincludedir ;;
                    255:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    256:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    257:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    258:     oldincludedir="$ac_optarg" ;;
                    259: 
                    260:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    261:     ac_prev=prefix ;;
                    262:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    263:     prefix="$ac_optarg" ;;
                    264: 
                    265:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    266:   | --program-pre | --program-pr | --program-p)
                    267:     ac_prev=program_prefix ;;
                    268:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    269:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    270:     program_prefix="$ac_optarg" ;;
                    271: 
                    272:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    273:   | --program-suf | --program-su | --program-s)
                    274:     ac_prev=program_suffix ;;
                    275:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    276:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    277:     program_suffix="$ac_optarg" ;;
                    278: 
                    279:   -program-transform-name | --program-transform-name \
                    280:   | --program-transform-nam | --program-transform-na \
                    281:   | --program-transform-n | --program-transform- \
                    282:   | --program-transform | --program-transfor \
                    283:   | --program-transfo | --program-transf \
                    284:   | --program-trans | --program-tran \
                    285:   | --progr-tra | --program-tr | --program-t)
                    286:     ac_prev=program_transform_name ;;
                    287:   -program-transform-name=* | --program-transform-name=* \
                    288:   | --program-transform-nam=* | --program-transform-na=* \
                    289:   | --program-transform-n=* | --program-transform-=* \
                    290:   | --program-transform=* | --program-transfor=* \
                    291:   | --program-transfo=* | --program-transf=* \
                    292:   | --program-trans=* | --program-tran=* \
                    293:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    294:     program_transform_name="$ac_optarg" ;;
                    295: 
                    296:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    297:   | -silent | --silent | --silen | --sile | --sil)
                    298:     silent=yes ;;
                    299: 
                    300:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    301:     ac_prev=sbindir ;;
                    302:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    303:   | --sbi=* | --sb=*)
                    304:     sbindir="$ac_optarg" ;;
                    305: 
                    306:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    307:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    308:   | --sharedst | --shareds | --shared | --share | --shar \
                    309:   | --sha | --sh)
                    310:     ac_prev=sharedstatedir ;;
                    311:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    312:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    313:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    314:   | --sha=* | --sh=*)
                    315:     sharedstatedir="$ac_optarg" ;;
                    316: 
                    317:   -site | --site | --sit)
                    318:     ac_prev=site ;;
                    319:   -site=* | --site=* | --sit=*)
                    320:     site="$ac_optarg" ;;
                    321: 
                    322:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    323:     ac_prev=srcdir ;;
                    324:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    325:     srcdir="$ac_optarg" ;;
                    326: 
                    327:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    328:   | --syscon | --sysco | --sysc | --sys | --sy)
                    329:     ac_prev=sysconfdir ;;
                    330:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    331:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    332:     sysconfdir="$ac_optarg" ;;
                    333: 
                    334:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    335:     ac_prev=target ;;
                    336:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    337:     target="$ac_optarg" ;;
                    338: 
                    339:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    340:     verbose=yes ;;
                    341: 
                    342:   -version | --version | --versio | --versi | --vers)
                    343:     echo "configure generated by autoconf version 2.10"
                    344:     exit 0 ;;
                    345: 
                    346:   -with-* | --with-*)
                    347:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    348:     # Reject names that are not valid shell variable names.
                    349:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    350:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    351:     fi
                    352:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    353:     case "$ac_option" in
                    354:       *=*) ;;
                    355:       *) ac_optarg=yes ;;
                    356:     esac
                    357:     eval "with_${ac_package}='$ac_optarg'" ;;
                    358: 
                    359:   -without-* | --without-*)
                    360:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    361:     # Reject names that are not valid shell variable names.
                    362:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    363:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    364:     fi
                    365:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    366:     eval "with_${ac_package}=no" ;;
                    367: 
                    368:   --x)
                    369:     # Obsolete; use --with-x.
                    370:     with_x=yes ;;
                    371: 
                    372:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    373:   | --x-incl | --x-inc | --x-in | --x-i)
                    374:     ac_prev=x_includes ;;
                    375:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    376:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    377:     x_includes="$ac_optarg" ;;
                    378: 
                    379:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    380:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    381:     ac_prev=x_libraries ;;
                    382:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    383:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    384:     x_libraries="$ac_optarg" ;;
                    385: 
                    386:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    387:     ;;
                    388: 
                    389:   *)
                    390:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    391:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    392:     fi
                    393:     if test "x$nonopt" != xNONE; then
                    394:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    395:     fi
                    396:     nonopt="$ac_option"
                    397:     ;;
                    398: 
                    399:   esac
                    400: done
                    401: 
                    402: if test -n "$ac_prev"; then
                    403:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    404: fi
                    405: 
                    406: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    407: 
                    408: # File descriptor usage:
                    409: # 0 standard input
                    410: # 1 file creation
                    411: # 2 errors and warnings
                    412: # 3 some systems may open it to /dev/tty
                    413: # 4 used on the Kubota Titan
                    414: # 6 checking for... messages and results
                    415: # 5 compiler messages saved in config.log
                    416: if test "$silent" = yes; then
                    417:   exec 6>/dev/null
                    418: else
                    419:   exec 6>&1
                    420: fi
                    421: exec 5>./config.log
                    422: 
                    423: echo "\
                    424: This file contains any messages produced by compilers while
                    425: running configure, to aid debugging if configure makes a mistake.
                    426: " 1>&5
                    427: 
                    428: # Strip out --no-create and --no-recursion so they do not pile up.
                    429: # Also quote any args containing shell metacharacters.
                    430: ac_configure_args=
                    431: for ac_arg
                    432: do
                    433:   case "$ac_arg" in
                    434:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    435:   | --no-cr | --no-c) ;;
                    436:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    437:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    438:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    439:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    440:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    441:   esac
                    442: done
                    443: 
                    444: # NLS nuisances.
                    445: # Only set LANG and LC_ALL to C if already set.
                    446: # These must not be set unconditionally because not all systems understand
                    447: # e.g. LANG=C (notably SCO).
                    448: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    449: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    450: 
                    451: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    452: rm -rf conftest* confdefs.h
                    453: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    454: echo > confdefs.h
                    455: 
                    456: # A filename unique to this package, relative to the directory that
                    457: # configure is in, which we can look for to find out if srcdir is correct.
1.1.1.2   root      458: ac_unique_file=amiga/source/transdisk.c
1.1       root      459: 
                    460: # Find the source files, if location was not specified.
                    461: if test -z "$srcdir"; then
                    462:   ac_srcdir_defaulted=yes
                    463:   # Try the directory containing this script, then its parent.
                    464:   ac_prog=$0
                    465:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    466:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    467:   srcdir=$ac_confdir
                    468:   if test ! -r $srcdir/$ac_unique_file; then
                    469:     srcdir=..
                    470:   fi
                    471: else
                    472:   ac_srcdir_defaulted=no
                    473: fi
                    474: if test ! -r $srcdir/$ac_unique_file; then
                    475:   if test "$ac_srcdir_defaulted" = yes; then
                    476:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    477:   else
                    478:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    479:   fi
                    480: fi
                    481: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    482: 
                    483: # Prefer explicitly selected file to automatically selected ones.
                    484: if test -z "$CONFIG_SITE"; then
                    485:   if test "x$prefix" != xNONE; then
                    486:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    487:   else
                    488:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    489:   fi
                    490: fi
                    491: for ac_site_file in $CONFIG_SITE; do
                    492:   if test -r "$ac_site_file"; then
                    493:     echo "loading site script $ac_site_file"
                    494:     . "$ac_site_file"
                    495:   fi
                    496: done
                    497: 
                    498: if test -r "$cache_file"; then
                    499:   echo "loading cache $cache_file"
                    500:   . $cache_file
                    501: else
                    502:   echo "creating cache $cache_file"
                    503:   > $cache_file
                    504: fi
                    505: 
                    506: ac_ext=c
                    507: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    508: ac_cpp='$CPP $CPPFLAGS'
                    509: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    510: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    511: 
                    512: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    513:   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
                    514:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    515:     ac_n= ac_c='
                    516: ' ac_t='       '
                    517:   else
                    518:     ac_n=-n ac_c= ac_t=
                    519:   fi
                    520: else
                    521:   ac_n= ac_c='\c' ac_t=
                    522: fi
                    523: 
                    524: 
                    525: 
                    526: # Extract the first word of "gcc", so it can be a program name with args.
                    527: set dummy gcc; ac_word=$2
                    528: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                    529: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    530:   echo $ac_n "(cached) $ac_c" 1>&6
                    531: else
                    532:   if test -n "$CC"; then
                    533:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    534: else
                    535:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                    536:   for ac_dir in $PATH; do
                    537:     test -z "$ac_dir" && ac_dir=.
                    538:     if test -f $ac_dir/$ac_word; then
                    539:       ac_cv_prog_CC="gcc"
                    540:       break
                    541:     fi
                    542:   done
                    543:   IFS="$ac_save_ifs"
                    544: fi
                    545: fi
                    546: CC="$ac_cv_prog_CC"
                    547: if test -n "$CC"; then
                    548:   echo "$ac_t""$CC" 1>&6
                    549: else
                    550:   echo "$ac_t""no" 1>&6
                    551: fi
                    552: 
                    553: if test -z "$CC"; then
                    554:   # Extract the first word of "cc", so it can be a program name with args.
                    555: set dummy cc; ac_word=$2
                    556: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                    557: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    558:   echo $ac_n "(cached) $ac_c" 1>&6
                    559: else
                    560:   if test -n "$CC"; then
                    561:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    562: else
                    563:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                    564:   ac_prog_rejected=no
                    565:   for ac_dir in $PATH; do
                    566:     test -z "$ac_dir" && ac_dir=.
                    567:     if test -f $ac_dir/$ac_word; then
                    568:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                    569:         ac_prog_rejected=yes
                    570:        continue
                    571:       fi
                    572:       ac_cv_prog_CC="cc"
                    573:       break
                    574:     fi
                    575:   done
                    576:   IFS="$ac_save_ifs"
                    577: if test $ac_prog_rejected = yes; then
                    578:   # We found a bogon in the path, so make sure we never use it.
                    579:   set dummy $ac_cv_prog_CC
                    580:   shift
                    581:   if test $# -gt 0; then
                    582:     # We chose a different compiler from the bogus one.
                    583:     # However, it has the same basename, so the bogon will be chosen
                    584:     # first if we set CC to just the basename; use the full file name.
                    585:     shift
                    586:     set dummy "$ac_dir/$ac_word" "$@"
                    587:     shift
                    588:     ac_cv_prog_CC="$@"
                    589:   fi
                    590: fi
                    591: fi
                    592: fi
                    593: CC="$ac_cv_prog_CC"
                    594: if test -n "$CC"; then
                    595:   echo "$ac_t""$CC" 1>&6
                    596: else
                    597:   echo "$ac_t""no" 1>&6
                    598: fi
                    599: 
                    600:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                    601: fi
                    602: 
                    603: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
                    604: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                    605:   echo $ac_n "(cached) $ac_c" 1>&6
                    606: else
                    607:   cat > conftest.c <<EOF
                    608: #ifdef __GNUC__
                    609:   yes;
                    610: #endif
                    611: EOF
1.1.1.3 ! root      612: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       root      613:   ac_cv_prog_gcc=yes
                    614: else
                    615:   ac_cv_prog_gcc=no
                    616: fi
                    617: fi
                    618: 
                    619: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
                    620: if test $ac_cv_prog_gcc = yes; then
                    621:   GCC=yes
                    622:   if test "${CFLAGS+set}" != set; then
                    623:     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
                    624: if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
                    625:   echo $ac_n "(cached) $ac_c" 1>&6
                    626: else
                    627:   echo 'void f(){}' > conftest.c
                    628: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
                    629:   ac_cv_prog_gcc_g=yes
                    630: else
                    631:   ac_cv_prog_gcc_g=no
                    632: fi
                    633: rm -f conftest*
                    634: 
                    635: fi
                    636: 
                    637: echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
                    638:     if test $ac_cv_prog_gcc_g = yes; then
                    639:       CFLAGS="-g -O"
                    640:     else
                    641:       CFLAGS="-O"
                    642:     fi
                    643:   fi
                    644: else
                    645:   GCC=
                    646:   test "${CFLAGS+set}" = set || CFLAGS="-g"
                    647: fi
                    648: 
                    649: 
                    650: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
                    651: # On Suns, sometimes $CPP names a directory.
                    652: if test -n "$CPP" && test -d "$CPP"; then
                    653:   CPP=
                    654: fi
                    655: if test -z "$CPP"; then
                    656: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
                    657:   echo $ac_n "(cached) $ac_c" 1>&6
                    658: else
                    659:     # This must be in double quotes, not single quotes, because CPP may get
                    660:   # substituted into the Makefile and "${CC-cc}" will confuse make.
                    661:   CPP="${CC-cc} -E"
                    662:   # On the NeXT, cc -E runs the code through the compiler's parser,
                    663:   # not just through cpp.
                    664:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root      665: #line 666 "configure"
1.1       root      666: #include "confdefs.h"
                    667: #include <assert.h>
                    668: Syntax Error
                    669: EOF
                    670: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! root      671: { (eval echo configure:672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root      672: ac_err=`grep -v '^ *+' conftest.out`
                    673: if test -z "$ac_err"; then
                    674:   :
                    675: else
                    676:   echo "$ac_err" >&5
                    677:   rm -rf conftest*
                    678:   CPP="${CC-cc} -E -traditional-cpp"
                    679:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root      680: #line 681 "configure"
1.1       root      681: #include "confdefs.h"
                    682: #include <assert.h>
                    683: Syntax Error
                    684: EOF
                    685: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! root      686: { (eval echo configure:687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root      687: ac_err=`grep -v '^ *+' conftest.out`
                    688: if test -z "$ac_err"; then
                    689:   :
                    690: else
                    691:   echo "$ac_err" >&5
                    692:   rm -rf conftest*
                    693:   CPP=/lib/cpp
                    694: fi
                    695: rm -f conftest*
                    696: fi
                    697: rm -f conftest*
                    698:   ac_cv_prog_CPP="$CPP"
                    699: fi
                    700:   CPP="$ac_cv_prog_CPP"
                    701: else
                    702:   ac_cv_prog_CPP="$CPP"
                    703: fi
                    704: echo "$ac_t""$CPP" 1>&6
                    705: 
                    706: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
                    707: set dummy ${MAKE-make}; ac_make=$2
                    708: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    709:   echo $ac_n "(cached) $ac_c" 1>&6
                    710: else
                    711:   cat > conftestmake <<\EOF
                    712: all:
                    713:        @echo 'ac_maketemp="${MAKE}"'
                    714: EOF
                    715: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    716: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    717: if test -n "$ac_maketemp"; then
                    718:   eval ac_cv_prog_make_${ac_make}_set=yes
                    719: else
                    720:   eval ac_cv_prog_make_${ac_make}_set=no
                    721: fi
                    722: rm -f conftestmake
                    723: fi
                    724: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    725:   echo "$ac_t""yes" 1>&6
                    726:   SET_MAKE=
                    727: else
                    728:   echo "$ac_t""no" 1>&6
                    729:   SET_MAKE="MAKE=${MAKE-make}"
                    730: fi
                    731: 
                    732: 
                    733: echo $ac_n "checking for AIX""... $ac_c" 1>&6
                    734: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root      735: #line 736 "configure"
1.1       root      736: #include "confdefs.h"
                    737: #ifdef _AIX
                    738:   yes
                    739: #endif
                    740: 
                    741: EOF
                    742: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                    743:   egrep "yes" >/dev/null 2>&1; then
                    744:   rm -rf conftest*
                    745:   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
                    746: #define _ALL_SOURCE 1
                    747: EOF
                    748: 
                    749: else
                    750:   rm -rf conftest*
                    751:   echo "$ac_t""no" 1>&6
                    752: fi
                    753: rm -f conftest*
                    754: 
                    755: 
                    756: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
                    757: if test -d /etc/conf/kconfig.d &&
                    758:   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
                    759: then
                    760:   echo "$ac_t""yes" 1>&6
                    761:   ISC=yes # If later tests want to check for ISC.
                    762:   cat >> confdefs.h <<\EOF
                    763: #define _POSIX_SOURCE 1
                    764: EOF
                    765: 
                    766:   if test "$GCC" = yes; then
                    767:     CC="$CC -posix"
                    768:   else
                    769:     CC="$CC -Xp"
                    770:   fi
                    771: else
                    772:   echo "$ac_t""no" 1>&6
                    773:   ISC=
                    774: fi
                    775: 
                    776: 
                    777: HAVE_BEBOX=n
                    778: echo $ac_n "checking for -lMedia_s""... $ac_c" 1>&6
                    779: ac_lib_var=`echo Media_s'_'main | tr './+\055' '__p_'`
                    780: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                    781:   echo $ac_n "(cached) $ac_c" 1>&6
                    782: else
                    783:   ac_save_LIBS="$LIBS"
                    784: LIBS="-lMedia_s  $LIBS"
                    785: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root      786: #line 787 "configure"
1.1       root      787: #include "confdefs.h"
                    788: 
                    789: int main() { return 0; }
                    790: int t() {
                    791: main()
                    792: ; return 0; }
                    793: EOF
1.1.1.3 ! root      794: if { (eval echo configure:795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root      795:   rm -rf conftest*
                    796:   eval "ac_cv_lib_$ac_lib_var=yes"
                    797: else
                    798:   rm -rf conftest*
                    799:   eval "ac_cv_lib_$ac_lib_var=no"
                    800: fi
                    801: rm -f conftest*
                    802: LIBS="$ac_save_LIBS"
                    803: 
                    804: fi
                    805: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                    806:   echo "$ac_t""yes" 1>&6
                    807:   HAVE_MEDIA_LIB=y
                    808: else
                    809:   echo "$ac_t""no" 1>&6
                    810: HAVE_MEDIA_LIB=n
                    811: fi
                    812: 
                    813: echo $ac_n "checking for -lNeXT_s""... $ac_c" 1>&6
                    814: ac_lib_var=`echo NeXT_s'_'main | tr './+\055' '__p_'`
                    815: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                    816:   echo $ac_n "(cached) $ac_c" 1>&6
                    817: else
                    818:   ac_save_LIBS="$LIBS"
                    819: LIBS="-lNeXT_s  $LIBS"
                    820: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root      821: #line 822 "configure"
1.1       root      822: #include "confdefs.h"
                    823: 
                    824: int main() { return 0; }
                    825: int t() {
                    826: main()
                    827: ; return 0; }
                    828: EOF
1.1.1.3 ! root      829: if { (eval echo configure:830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root      830:   rm -rf conftest*
                    831:   eval "ac_cv_lib_$ac_lib_var=yes"
                    832: else
                    833:   rm -rf conftest*
                    834:   eval "ac_cv_lib_$ac_lib_var=no"
                    835: fi
                    836: rm -f conftest*
                    837: LIBS="$ac_save_LIBS"
                    838: 
                    839: fi
                    840: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                    841:   echo "$ac_t""yes" 1>&6
                    842:   HAVE_NEXT_LIB=y
                    843: else
                    844:   echo "$ac_t""no" 1>&6
                    845: HAVE_NEXT_LIB=n
                    846: fi
                    847: 
1.1.1.3 ! root      848: echo $ac_n "checking for -lamiga""... $ac_c" 1>&6
        !           849: ac_lib_var=`echo amiga'_'OpenLibrary | tr './+\055' '__p_'`
        !           850: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
        !           851:   echo $ac_n "(cached) $ac_c" 1>&6
        !           852: else
        !           853:   ac_save_LIBS="$LIBS"
        !           854: LIBS="-lamiga  $LIBS"
        !           855: cat > conftest.$ac_ext <<EOF
        !           856: #line 857 "configure"
        !           857: #include "confdefs.h"
        !           858: /* Override any gcc2 internal prototype to avoid an error.  */
        !           859: /* We use char because int might match the return type of a gcc2
        !           860:     builtin and then its argument prototype would still apply.  */
        !           861: char OpenLibrary();
        !           862: 
        !           863: int main() { return 0; }
        !           864: int t() {
        !           865: OpenLibrary()
        !           866: ; return 0; }
        !           867: EOF
        !           868: if { (eval echo configure:869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
        !           869:   rm -rf conftest*
        !           870:   eval "ac_cv_lib_$ac_lib_var=yes"
        !           871: else
        !           872:   rm -rf conftest*
        !           873:   eval "ac_cv_lib_$ac_lib_var=no"
        !           874: fi
        !           875: rm -f conftest*
        !           876: LIBS="$ac_save_LIBS"
        !           877: 
        !           878: fi
        !           879: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
        !           880:   echo "$ac_t""yes" 1>&6
        !           881:   HAVE_AMIGA_LIB=y
        !           882: else
        !           883:   echo "$ac_t""no" 1>&6
        !           884: HAVE_AMIGA_LIB=n
        !           885: fi
        !           886: 
1.1       root      887: echo $ac_n "checking for -lvga""... $ac_c" 1>&6
                    888: ac_lib_var=`echo vga'_'vga_setmode | tr './+\055' '__p_'`
                    889: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                    890:   echo $ac_n "(cached) $ac_c" 1>&6
                    891: else
                    892:   ac_save_LIBS="$LIBS"
                    893: LIBS="-lvga  $LIBS"
                    894: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root      895: #line 896 "configure"
1.1       root      896: #include "confdefs.h"
                    897: /* Override any gcc2 internal prototype to avoid an error.  */
                    898: /* We use char because int might match the return type of a gcc2
                    899:     builtin and then its argument prototype would still apply.  */
                    900: char vga_setmode();
                    901: 
                    902: int main() { return 0; }
                    903: int t() {
                    904: vga_setmode()
                    905: ; return 0; }
                    906: EOF
1.1.1.3 ! root      907: if { (eval echo configure:908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root      908:   rm -rf conftest*
                    909:   eval "ac_cv_lib_$ac_lib_var=yes"
                    910: else
                    911:   rm -rf conftest*
                    912:   eval "ac_cv_lib_$ac_lib_var=no"
                    913: fi
                    914: rm -f conftest*
                    915: LIBS="$ac_save_LIBS"
                    916: 
                    917: fi
                    918: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                    919:   echo "$ac_t""yes" 1>&6
                    920:   HAVE_SVGA_LIB=y
                    921: else
                    922:   echo "$ac_t""no" 1>&6
                    923: HAVE_SVGA_LIB=n
                    924: fi
                    925: 
                    926: echo $ac_n "checking for -lAF""... $ac_c" 1>&6
                    927: ac_lib_var=`echo AF'_'AFOpenAudioConn | tr './+\055' '__p_'`
                    928: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                    929:   echo $ac_n "(cached) $ac_c" 1>&6
                    930: else
                    931:   ac_save_LIBS="$LIBS"
                    932: LIBS="-lAF  $LIBS"
                    933: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root      934: #line 935 "configure"
1.1       root      935: #include "confdefs.h"
                    936: /* Override any gcc2 internal prototype to avoid an error.  */
                    937: /* We use char because int might match the return type of a gcc2
                    938:     builtin and then its argument prototype would still apply.  */
                    939: char AFOpenAudioConn();
                    940: 
                    941: int main() { return 0; }
                    942: int t() {
                    943: AFOpenAudioConn()
                    944: ; return 0; }
                    945: EOF
1.1.1.3 ! root      946: if { (eval echo configure:947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root      947:   rm -rf conftest*
                    948:   eval "ac_cv_lib_$ac_lib_var=yes"
                    949: else
                    950:   rm -rf conftest*
                    951:   eval "ac_cv_lib_$ac_lib_var=no"
                    952: fi
                    953: rm -f conftest*
                    954: LIBS="$ac_save_LIBS"
                    955: 
                    956: fi
                    957: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                    958:   echo "$ac_t""yes" 1>&6
                    959:   HAVE_AF_LIB=y
                    960: else
                    961:   echo "$ac_t""no" 1>&6
                    962: HAVE_AF_LIB=n
                    963: fi
                    964: 
                    965: 
                    966: # If we find X, set shell vars x_includes and x_libraries to the
                    967: # paths, otherwise set no_x=yes.
                    968: # Uses ac_ vars as temps to allow command line to override cache and checks.
                    969: # --without-x overrides everything else, but does not touch the cache.
                    970: echo $ac_n "checking for X""... $ac_c" 1>&6
                    971: 
                    972: # Check whether --with-x or --without-x was given.
                    973: if test "${with_x+set}" = set; then
                    974:   withval="$with_x"
                    975:   :
                    976: fi
                    977: 
                    978: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                    979: if test "x$with_x" = xno; then
                    980:   # The user explicitly disabled X.
                    981:   have_x=disabled
                    982: else
                    983:   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
                    984:     # Both variables are already set.
                    985:     have_x=yes
                    986:   else
                    987: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
                    988:   echo $ac_n "(cached) $ac_c" 1>&6
                    989: else
                    990:   # One or both of the vars are not set, and there is no cached value.
                    991: ac_x_includes=NO ac_x_libraries=NO
                    992: rm -fr conftestdir
                    993: if mkdir conftestdir; then
                    994:   cd conftestdir
                    995:   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
                    996:   cat > Imakefile <<'EOF'
                    997: acfindx:
                    998:        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
                    999: EOF
                   1000:   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
                   1001:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   1002:     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
                   1003:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   1004:     for ac_extension in a so sl; do
                   1005:       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
                   1006:         test -f $ac_im_libdir/libX11.$ac_extension; then
                   1007:         ac_im_usrlibdir=$ac_im_libdir; break
                   1008:       fi
                   1009:     done
                   1010:     # Screen out bogus values from the imake configuration.
                   1011:     case "$ac_im_incroot" in
                   1012:        /usr/include) ;;
                   1013:        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
                   1014:     esac
                   1015:     case "$ac_im_usrlibdir" in
                   1016:        /usr/lib | /lib) ;;
                   1017:        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
                   1018:     esac
                   1019:   fi
                   1020:   cd ..
                   1021:   rm -fr conftestdir
                   1022: fi
                   1023: 
                   1024: if test "$ac_x_includes" = NO; then
                   1025:   # Guess where to find include files, by looking for this one X11 .h file.
                   1026:   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
                   1027: 
                   1028:   # First, try using that file with no special directory specified.
                   1029: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1030: #line 1031 "configure"
1.1       root     1031: #include "confdefs.h"
                   1032: #include <$x_direct_test_include>
                   1033: EOF
                   1034: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! root     1035: { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root     1036: ac_err=`grep -v '^ *+' conftest.out`
                   1037: if test -z "$ac_err"; then
                   1038:   rm -rf conftest*
                   1039:   # We can compile using X headers with no special include directory.
                   1040: ac_x_includes=
                   1041: else
                   1042:   echo "$ac_err" >&5
                   1043:   rm -rf conftest*
                   1044:   # Look for the header file in a standard set of common directories.
                   1045:   for ac_dir in               \
                   1046:     /usr/X11R6/include        \
                   1047:     /usr/X11R5/include        \
                   1048:     /usr/X11R4/include        \
                   1049:                               \
                   1050:     /usr/include/X11R6        \
                   1051:     /usr/include/X11R5        \
                   1052:     /usr/include/X11R4        \
                   1053:                               \
                   1054:     /usr/local/X11R6/include  \
                   1055:     /usr/local/X11R5/include  \
                   1056:     /usr/local/X11R4/include  \
                   1057:                               \
                   1058:     /usr/local/include/X11R6  \
                   1059:     /usr/local/include/X11R5  \
                   1060:     /usr/local/include/X11R4  \
                   1061:                               \
                   1062:     /usr/X11/include          \
                   1063:     /usr/include/X11          \
                   1064:     /usr/local/X11/include    \
                   1065:     /usr/local/include/X11    \
                   1066:                               \
                   1067:     /usr/X386/include         \
                   1068:     /usr/x386/include         \
                   1069:     /usr/XFree86/include/X11  \
                   1070:                               \
                   1071:     /usr/include              \
                   1072:     /usr/local/include        \
                   1073:     /usr/unsupported/include  \
                   1074:     /usr/athena/include       \
                   1075:     /usr/local/x11r5/include  \
                   1076:     /usr/lpp/Xamples/include  \
                   1077:                               \
                   1078:     /usr/openwin/include      \
                   1079:     /usr/openwin/share/include \
                   1080:     ; \
                   1081:   do
                   1082:     if test -r "$ac_dir/$x_direct_test_include"; then
                   1083:       ac_x_includes=$ac_dir
                   1084:       break
                   1085:     fi
                   1086:   done
                   1087: fi
                   1088: rm -f conftest*
                   1089: fi # $ac_x_includes = NO
                   1090: 
                   1091: if test "$ac_x_libraries" = NO; then
                   1092:   # Check for the libraries.
                   1093: 
                   1094:   test -z "$x_direct_test_library" && x_direct_test_library=Xt
                   1095:   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
                   1096: 
                   1097:   # See if we find them without any special options.
                   1098:   # Don't add to $LIBS permanently.
                   1099:   ac_save_LIBS="$LIBS"
                   1100:   LIBS="-l$x_direct_test_library $LIBS"
                   1101: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1102: #line 1103 "configure"
1.1       root     1103: #include "confdefs.h"
                   1104: 
                   1105: int main() { return 0; }
                   1106: int t() {
                   1107: ${x_direct_test_function}()
                   1108: ; return 0; }
                   1109: EOF
1.1.1.3 ! root     1110: if { (eval echo configure:1111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root     1111:   rm -rf conftest*
                   1112:   LIBS="$ac_save_LIBS"
                   1113: # We can link X programs with no special library path.
                   1114: ac_x_libraries=
                   1115: else
                   1116:   rm -rf conftest*
                   1117:   LIBS="$ac_save_LIBS"
                   1118: # First see if replacing the include by lib works.
                   1119: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
                   1120:     /usr/X11R6/lib        \
                   1121:     /usr/X11R5/lib        \
                   1122:     /usr/X11R4/lib        \
                   1123:                           \
                   1124:     /usr/lib/X11R6        \
                   1125:     /usr/lib/X11R5        \
                   1126:     /usr/lib/X11R4        \
                   1127:                           \
                   1128:     /usr/local/X11R6/lib  \
                   1129:     /usr/local/X11R5/lib  \
                   1130:     /usr/local/X11R4/lib  \
                   1131:                           \
                   1132:     /usr/local/lib/X11R6  \
                   1133:     /usr/local/lib/X11R5  \
                   1134:     /usr/local/lib/X11R4  \
                   1135:                           \
                   1136:     /usr/X11/lib          \
                   1137:     /usr/lib/X11          \
                   1138:     /usr/local/X11/lib    \
                   1139:     /usr/local/lib/X11    \
                   1140:                           \
                   1141:     /usr/X386/lib         \
                   1142:     /usr/x386/lib         \
                   1143:     /usr/XFree86/lib/X11  \
                   1144:                           \
                   1145:     /usr/lib              \
                   1146:     /usr/local/lib        \
                   1147:     /usr/unsupported/lib  \
                   1148:     /usr/athena/lib       \
                   1149:     /usr/local/x11r5/lib  \
                   1150:     /usr/lpp/Xamples/lib  \
                   1151:                           \
                   1152:     /usr/openwin/lib      \
                   1153:     /usr/openwin/share/lib \
                   1154:     ; \
                   1155: do
                   1156:   for ac_extension in a so sl; do
                   1157:     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
                   1158:       ac_x_libraries=$ac_dir
                   1159:       break 2
                   1160:     fi
                   1161:   done
                   1162: done
                   1163: fi
                   1164: rm -f conftest*
                   1165: 
                   1166: fi # $ac_x_libraries = NO
                   1167: 
                   1168: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
                   1169:   # Didn't find X anywhere.  Cache the known absence of X.
                   1170:   ac_cv_have_x="have_x=no"
                   1171: else
                   1172:   # Record where we found X for the cache.
                   1173:   ac_cv_have_x="have_x=yes \
                   1174:                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
                   1175: fi
                   1176: fi
                   1177:   fi
                   1178:   eval "$ac_cv_have_x"
                   1179: fi # $with_x != no
                   1180: 
                   1181: if test "$have_x" != yes; then
                   1182:   echo "$ac_t""$have_x" 1>&6
                   1183:   no_x=yes
                   1184: else
                   1185:   # If each of the values was on the command line, it overrides each guess.
                   1186:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   1187:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   1188:   # Update the cache value to reflect the command line values.
                   1189:   ac_cv_have_x="have_x=yes \
                   1190:                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
                   1191:   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
                   1192: fi
                   1193: 
                   1194: if test "$no_x" = yes; then
                   1195:   # Not all programs may use this symbol, but it does not hurt to define it.
                   1196:   X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
                   1197: else
                   1198:   if test -n "$x_includes"; then
                   1199:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   1200:   fi
                   1201: 
                   1202:   # It would be nice to have a more robust check for the -R ld option than
                   1203:   # just checking for Solaris.
                   1204:   # It would also be nice to do this for all -L options, not just this one.
                   1205:   if test -n "$x_libraries"; then
                   1206:     X_LIBS="$X_LIBS -L$x_libraries"
                   1207:     if test "`(uname) 2>/dev/null`" = SunOS &&
                   1208:       uname -r | grep '^5' >/dev/null; then
                   1209:       X_LIBS="$X_LIBS -R $x_libraries"
                   1210:     fi
                   1211:   fi
                   1212: 
                   1213:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   1214: 
                   1215:   ac_save_LDFLAGS="$LDFLAGS"
                   1216:   LDFLAGS="$LDFLAGS -L$x_libraries"
                   1217:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   1218:   # check for ICE first), but we must link in the order -lSM -lICE or
                   1219:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   1220:   # These have to be linked with before -lX11, unlike the other
                   1221:   # libraries we check for below, so use a different variable.
                   1222:   #  [email protected], [email protected].
                   1223:   echo $ac_n "checking for -lICE""... $ac_c" 1>&6
                   1224: ac_lib_var=`echo ICE'_'IceConnectionNumber | tr './+\055' '__p_'`
                   1225: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1226:   echo $ac_n "(cached) $ac_c" 1>&6
                   1227: else
                   1228:   ac_save_LIBS="$LIBS"
                   1229: LIBS="-lICE  $LIBS"
                   1230: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1231: #line 1232 "configure"
1.1       root     1232: #include "confdefs.h"
                   1233: /* Override any gcc2 internal prototype to avoid an error.  */
                   1234: /* We use char because int might match the return type of a gcc2
                   1235:     builtin and then its argument prototype would still apply.  */
                   1236: char IceConnectionNumber();
                   1237: 
                   1238: int main() { return 0; }
                   1239: int t() {
                   1240: IceConnectionNumber()
                   1241: ; return 0; }
                   1242: EOF
1.1.1.3 ! root     1243: if { (eval echo configure:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root     1244:   rm -rf conftest*
                   1245:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1246: else
                   1247:   rm -rf conftest*
                   1248:   eval "ac_cv_lib_$ac_lib_var=no"
                   1249: fi
                   1250: rm -f conftest*
                   1251: LIBS="$ac_save_LIBS"
                   1252: 
                   1253: fi
                   1254: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1255:   echo "$ac_t""yes" 1>&6
                   1256:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   1257: else
                   1258:   echo "$ac_t""no" 1>&6
                   1259: fi
                   1260: 
                   1261:   LDFLAGS="$ac_save_LDFLAGS"
                   1262: 
                   1263:   # Check for system-dependent libraries X programs must link with.
                   1264: 
                   1265:   if test "$ISC" = yes; then
                   1266:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   1267:   else
                   1268:     # [email protected] says this is needed for Ultrix, if the X
                   1269:     # libraries were built with DECnet support.  And [email protected] says
                   1270:     # the Alpha needs dnet_stub (dnet does not exist).
                   1271:     echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
                   1272: ac_lib_var=`echo dnet'_'dnet_ntoa | tr './+\055' '__p_'`
                   1273: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1274:   echo $ac_n "(cached) $ac_c" 1>&6
                   1275: else
                   1276:   ac_save_LIBS="$LIBS"
                   1277: LIBS="-ldnet  $LIBS"
                   1278: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1279: #line 1280 "configure"
1.1       root     1280: #include "confdefs.h"
                   1281: /* Override any gcc2 internal prototype to avoid an error.  */
                   1282: /* We use char because int might match the return type of a gcc2
                   1283:     builtin and then its argument prototype would still apply.  */
                   1284: char dnet_ntoa();
                   1285: 
                   1286: int main() { return 0; }
                   1287: int t() {
                   1288: dnet_ntoa()
                   1289: ; return 0; }
                   1290: EOF
1.1.1.3 ! root     1291: if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root     1292:   rm -rf conftest*
                   1293:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1294: else
                   1295:   rm -rf conftest*
                   1296:   eval "ac_cv_lib_$ac_lib_var=no"
                   1297: fi
                   1298: rm -f conftest*
                   1299: LIBS="$ac_save_LIBS"
                   1300: 
                   1301: fi
                   1302: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1303:   echo "$ac_t""yes" 1>&6
                   1304:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
                   1305: else
                   1306:   echo "$ac_t""no" 1>&6
                   1307: fi
                   1308: 
                   1309:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   1310:       echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
                   1311: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | tr './+\055' '__p_'`
                   1312: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1313:   echo $ac_n "(cached) $ac_c" 1>&6
                   1314: else
                   1315:   ac_save_LIBS="$LIBS"
                   1316: LIBS="-ldnet_stub  $LIBS"
                   1317: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1318: #line 1319 "configure"
1.1       root     1319: #include "confdefs.h"
                   1320: /* Override any gcc2 internal prototype to avoid an error.  */
                   1321: /* We use char because int might match the return type of a gcc2
                   1322:     builtin and then its argument prototype would still apply.  */
                   1323: char dnet_ntoa();
                   1324: 
                   1325: int main() { return 0; }
                   1326: int t() {
                   1327: dnet_ntoa()
                   1328: ; return 0; }
                   1329: EOF
1.1.1.3 ! root     1330: if { (eval echo configure:1331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root     1331:   rm -rf conftest*
                   1332:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1333: else
                   1334:   rm -rf conftest*
                   1335:   eval "ac_cv_lib_$ac_lib_var=no"
                   1336: fi
                   1337: rm -f conftest*
                   1338: LIBS="$ac_save_LIBS"
                   1339: 
                   1340: fi
                   1341: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1342:   echo "$ac_t""yes" 1>&6
                   1343:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   1344: else
                   1345:   echo "$ac_t""no" 1>&6
                   1346: fi
                   1347: 
                   1348:     fi
                   1349: 
                   1350:     # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
                   1351:     # to get the SysV transport functions.
                   1352:     # Not sure which flavor of 386 UNIX this is, but it seems harmless to
                   1353:     # check for it.
                   1354:     echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
                   1355: ac_lib_var=`echo nsl'_'t_accept | tr './+\055' '__p_'`
                   1356: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1357:   echo $ac_n "(cached) $ac_c" 1>&6
                   1358: else
                   1359:   ac_save_LIBS="$LIBS"
                   1360: LIBS="-lnsl  $LIBS"
                   1361: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1362: #line 1363 "configure"
1.1       root     1363: #include "confdefs.h"
                   1364: /* Override any gcc2 internal prototype to avoid an error.  */
                   1365: /* We use char because int might match the return type of a gcc2
                   1366:     builtin and then its argument prototype would still apply.  */
                   1367: char t_accept();
                   1368: 
                   1369: int main() { return 0; }
                   1370: int t() {
                   1371: t_accept()
                   1372: ; return 0; }
                   1373: EOF
1.1.1.3 ! root     1374: if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root     1375:   rm -rf conftest*
                   1376:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1377: else
                   1378:   rm -rf conftest*
                   1379:   eval "ac_cv_lib_$ac_lib_var=no"
                   1380: fi
                   1381: rm -f conftest*
                   1382: LIBS="$ac_save_LIBS"
                   1383: 
                   1384: fi
                   1385: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1386:   echo "$ac_t""yes" 1>&6
                   1387:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   1388: else
                   1389:   echo "$ac_t""no" 1>&6
                   1390: fi
                   1391: 
                   1392: 
                   1393:     # [email protected] says without -lsocket,
                   1394:     # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
                   1395:     # But -lsocket is broken on IRIX, according to [email protected].
                   1396:     if test "`(uname) 2>/dev/null`" != IRIX; then
                   1397:       echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
                   1398: ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
                   1399: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1400:   echo $ac_n "(cached) $ac_c" 1>&6
                   1401: else
                   1402:   ac_save_LIBS="$LIBS"
                   1403: LIBS="-lsocket  $LIBS"
                   1404: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1405: #line 1406 "configure"
1.1       root     1406: #include "confdefs.h"
                   1407: /* Override any gcc2 internal prototype to avoid an error.  */
                   1408: /* We use char because int might match the return type of a gcc2
                   1409:     builtin and then its argument prototype would still apply.  */
                   1410: char socket();
                   1411: 
                   1412: int main() { return 0; }
                   1413: int t() {
                   1414: socket()
                   1415: ; return 0; }
                   1416: EOF
1.1.1.3 ! root     1417: if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root     1418:   rm -rf conftest*
                   1419:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1420: else
                   1421:   rm -rf conftest*
                   1422:   eval "ac_cv_lib_$ac_lib_var=no"
                   1423: fi
                   1424: rm -f conftest*
                   1425: LIBS="$ac_save_LIBS"
                   1426: 
                   1427: fi
                   1428: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1429:   echo "$ac_t""yes" 1>&6
                   1430:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
                   1431: else
                   1432:   echo "$ac_t""no" 1>&6
                   1433: fi
                   1434: 
                   1435:     fi
                   1436:   fi
                   1437: fi
                   1438: 
                   1439: 
                   1440: 
1.1.1.3 ! root     1441: DO_PROFILING=no
        !          1442: # Check whether --enable-profiling or --disable-profiling was given.
        !          1443: if test "${enable_profiling+set}" = set; then
        !          1444:   enableval="$enable_profiling"
        !          1445:   DO_PROFILING=$enableval
        !          1446: fi
        !          1447: 
        !          1448: 
1.1       root     1449: ac_header_dirent=no
                   1450: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
                   1451: do
                   1452: ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
                   1453: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
                   1454: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
                   1455:   echo $ac_n "(cached) $ac_c" 1>&6
                   1456: else
                   1457:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1458: #line 1459 "configure"
1.1       root     1459: #include "confdefs.h"
                   1460: #include <sys/types.h>
                   1461: #include <$ac_hdr>
                   1462: int main() { return 0; }
                   1463: int t() {
                   1464: DIR *dirp = 0;
                   1465: ; return 0; }
                   1466: EOF
1.1.1.3 ! root     1467: if { (eval echo configure:1468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     1468:   rm -rf conftest*
                   1469:   eval "ac_cv_header_dirent_$ac_safe=yes"
                   1470: else
                   1471:   rm -rf conftest*
                   1472:   eval "ac_cv_header_dirent_$ac_safe=no"
                   1473: fi
                   1474: rm -f conftest*
                   1475: 
                   1476: fi
                   1477: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
                   1478:   echo "$ac_t""yes" 1>&6
                   1479:     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
                   1480:   cat >> confdefs.h <<EOF
                   1481: #define $ac_tr_hdr 1
                   1482: EOF
                   1483:  ac_header_dirent=$ac_hdr; break
                   1484: else
                   1485:   echo "$ac_t""no" 1>&6
                   1486: fi
                   1487: done
                   1488: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   1489: if test $ac_header_dirent = dirent.h; then
                   1490: echo $ac_n "checking for -ldir""... $ac_c" 1>&6
                   1491: ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
                   1492: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1493:   echo $ac_n "(cached) $ac_c" 1>&6
                   1494: else
                   1495:   ac_save_LIBS="$LIBS"
                   1496: LIBS="-ldir  $LIBS"
                   1497: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1498: #line 1499 "configure"
1.1       root     1499: #include "confdefs.h"
                   1500: /* Override any gcc2 internal prototype to avoid an error.  */
                   1501: /* We use char because int might match the return type of a gcc2
                   1502:     builtin and then its argument prototype would still apply.  */
                   1503: char opendir();
                   1504: 
                   1505: int main() { return 0; }
                   1506: int t() {
                   1507: opendir()
                   1508: ; return 0; }
                   1509: EOF
1.1.1.3 ! root     1510: if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root     1511:   rm -rf conftest*
                   1512:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1513: else
                   1514:   rm -rf conftest*
                   1515:   eval "ac_cv_lib_$ac_lib_var=no"
                   1516: fi
                   1517: rm -f conftest*
                   1518: LIBS="$ac_save_LIBS"
                   1519: 
                   1520: fi
                   1521: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1522:   echo "$ac_t""yes" 1>&6
                   1523:   LIBS="$LIBS -ldir"
                   1524: else
                   1525:   echo "$ac_t""no" 1>&6
                   1526: fi
                   1527: 
                   1528: else
                   1529: echo $ac_n "checking for -lx""... $ac_c" 1>&6
                   1530: ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
                   1531: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1532:   echo $ac_n "(cached) $ac_c" 1>&6
                   1533: else
                   1534:   ac_save_LIBS="$LIBS"
                   1535: LIBS="-lx  $LIBS"
                   1536: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1537: #line 1538 "configure"
1.1       root     1538: #include "confdefs.h"
                   1539: /* Override any gcc2 internal prototype to avoid an error.  */
                   1540: /* We use char because int might match the return type of a gcc2
                   1541:     builtin and then its argument prototype would still apply.  */
                   1542: char opendir();
                   1543: 
                   1544: int main() { return 0; }
                   1545: int t() {
                   1546: opendir()
                   1547: ; return 0; }
                   1548: EOF
1.1.1.3 ! root     1549: if { (eval echo configure:1550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root     1550:   rm -rf conftest*
                   1551:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1552: else
                   1553:   rm -rf conftest*
                   1554:   eval "ac_cv_lib_$ac_lib_var=no"
                   1555: fi
                   1556: rm -f conftest*
                   1557: LIBS="$ac_save_LIBS"
                   1558: 
                   1559: fi
                   1560: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1561:   echo "$ac_t""yes" 1>&6
                   1562:   LIBS="$LIBS -lx"
                   1563: else
                   1564:   echo "$ac_t""no" 1>&6
                   1565: fi
                   1566: 
                   1567: fi
                   1568: 
                   1569: # If we cannot run a trivial program, we must be cross compiling.
                   1570: echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
                   1571: if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
                   1572:   echo $ac_n "(cached) $ac_c" 1>&6
                   1573: else
                   1574:   if test "$cross_compiling" = yes; then
                   1575:   ac_cv_c_cross=yes
                   1576: else
                   1577: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1578: #line 1579 "configure"
1.1       root     1579: #include "confdefs.h"
                   1580: main(){return(0);}
                   1581: EOF
1.1.1.3 ! root     1582: { (eval echo configure:1583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1       root     1583: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                   1584:   ac_cv_c_cross=no
                   1585: else
                   1586:   ac_cv_c_cross=yes
                   1587: fi
                   1588: fi
                   1589: rm -fr conftest*
                   1590: fi
                   1591: 
                   1592: echo "$ac_t""$ac_cv_c_cross" 1>&6
                   1593: cross_compiling=$ac_cv_c_cross
                   1594: 
                   1595: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
                   1596: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   1597:   echo $ac_n "(cached) $ac_c" 1>&6
                   1598: else
                   1599:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1600: #line 1601 "configure"
1.1       root     1601: #include "confdefs.h"
                   1602: #include <stdlib.h>
                   1603: #include <stdarg.h>
                   1604: #include <string.h>
                   1605: #include <float.h>
                   1606: EOF
                   1607: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! root     1608: { (eval echo configure:1609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root     1609: ac_err=`grep -v '^ *+' conftest.out`
                   1610: if test -z "$ac_err"; then
                   1611:   rm -rf conftest*
                   1612:   ac_cv_header_stdc=yes
                   1613: else
                   1614:   echo "$ac_err" >&5
                   1615:   rm -rf conftest*
                   1616:   ac_cv_header_stdc=no
                   1617: fi
                   1618: rm -f conftest*
                   1619: 
                   1620: if test $ac_cv_header_stdc = yes; then
                   1621:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   1622: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1623: #line 1624 "configure"
1.1       root     1624: #include "confdefs.h"
                   1625: #include <string.h>
                   1626: EOF
                   1627: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1628:   egrep "memchr" >/dev/null 2>&1; then
                   1629:   :
                   1630: else
                   1631:   rm -rf conftest*
                   1632:   ac_cv_header_stdc=no
                   1633: fi
                   1634: rm -f conftest*
                   1635: 
                   1636: fi
                   1637: 
                   1638: if test $ac_cv_header_stdc = yes; then
                   1639:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   1640: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1641: #line 1642 "configure"
1.1       root     1642: #include "confdefs.h"
                   1643: #include <stdlib.h>
                   1644: EOF
                   1645: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1646:   egrep "free" >/dev/null 2>&1; then
                   1647:   :
                   1648: else
                   1649:   rm -rf conftest*
                   1650:   ac_cv_header_stdc=no
                   1651: fi
                   1652: rm -f conftest*
                   1653: 
                   1654: fi
                   1655: 
                   1656: if test $ac_cv_header_stdc = yes; then
                   1657:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   1658: if test "$cross_compiling" = yes; then
                   1659:   :
                   1660: else
                   1661: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1662: #line 1663 "configure"
1.1       root     1663: #include "confdefs.h"
                   1664: #include <ctype.h>
                   1665: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   1666: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   1667: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   1668: int main () { int i; for (i = 0; i < 256; i++)
                   1669: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   1670: exit (0); }
                   1671: 
                   1672: EOF
1.1.1.3 ! root     1673: { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1       root     1674: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                   1675:   :
                   1676: else
                   1677:   ac_cv_header_stdc=no
                   1678: fi
                   1679: fi
                   1680: rm -fr conftest*
                   1681: fi
                   1682: fi
                   1683: 
                   1684: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   1685: if test $ac_cv_header_stdc = yes; then
                   1686:   cat >> confdefs.h <<\EOF
                   1687: #define STDC_HEADERS 1
                   1688: EOF
                   1689: 
                   1690: fi
                   1691: 
1.1.1.3 ! root     1692: for ac_hdr in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h
1.1       root     1693: do
                   1694: ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
                   1695: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
                   1696: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   1697:   echo $ac_n "(cached) $ac_c" 1>&6
                   1698: else
                   1699:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1700: #line 1701 "configure"
1.1       root     1701: #include "confdefs.h"
                   1702: #include <$ac_hdr>
                   1703: EOF
                   1704: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! root     1705: { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root     1706: ac_err=`grep -v '^ *+' conftest.out`
                   1707: if test -z "$ac_err"; then
                   1708:   rm -rf conftest*
                   1709:   eval "ac_cv_header_$ac_safe=yes"
                   1710: else
                   1711:   echo "$ac_err" >&5
                   1712:   rm -rf conftest*
                   1713:   eval "ac_cv_header_$ac_safe=no"
                   1714: fi
                   1715: rm -f conftest*
                   1716: fi
                   1717: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   1718:   echo "$ac_t""yes" 1>&6
                   1719:     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
                   1720:   cat >> confdefs.h <<EOF
                   1721: #define $ac_tr_hdr 1
                   1722: EOF
                   1723:  
                   1724: else
                   1725:   echo "$ac_t""no" 1>&6
                   1726: fi
                   1727: done
                   1728: 
1.1.1.2   root     1729: for ac_hdr in sys/vfs.h sys/mount.h sys/select.h sys/param.h sys/statfs.h sys/statvfs.h sys/stat.h linux/joystick.h
1.1       root     1730: do
                   1731: ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
                   1732: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
                   1733: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   1734:   echo $ac_n "(cached) $ac_c" 1>&6
                   1735: else
                   1736:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1737: #line 1738 "configure"
        !          1738: #include "confdefs.h"
        !          1739: #include <$ac_hdr>
        !          1740: EOF
        !          1741: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
        !          1742: { (eval echo configure:1743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
        !          1743: ac_err=`grep -v '^ *+' conftest.out`
        !          1744: if test -z "$ac_err"; then
        !          1745:   rm -rf conftest*
        !          1746:   eval "ac_cv_header_$ac_safe=yes"
        !          1747: else
        !          1748:   echo "$ac_err" >&5
        !          1749:   rm -rf conftest*
        !          1750:   eval "ac_cv_header_$ac_safe=no"
        !          1751: fi
        !          1752: rm -f conftest*
        !          1753: fi
        !          1754: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
        !          1755:   echo "$ac_t""yes" 1>&6
        !          1756:     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
        !          1757:   cat >> confdefs.h <<EOF
        !          1758: #define $ac_tr_hdr 1
        !          1759: EOF
        !          1760:  
        !          1761: else
        !          1762:   echo "$ac_t""no" 1>&6
        !          1763: fi
        !          1764: done
        !          1765: 
        !          1766: for ac_hdr in X11/forms.h forms.h
        !          1767: do
        !          1768: ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
        !          1769: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
        !          1770: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
        !          1771:   echo $ac_n "(cached) $ac_c" 1>&6
        !          1772: else
        !          1773:   cat > conftest.$ac_ext <<EOF
        !          1774: #line 1775 "configure"
1.1       root     1775: #include "confdefs.h"
                   1776: #include <$ac_hdr>
                   1777: EOF
                   1778: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! root     1779: { (eval echo configure:1780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root     1780: ac_err=`grep -v '^ *+' conftest.out`
                   1781: if test -z "$ac_err"; then
                   1782:   rm -rf conftest*
                   1783:   eval "ac_cv_header_$ac_safe=yes"
                   1784: else
                   1785:   echo "$ac_err" >&5
                   1786:   rm -rf conftest*
                   1787:   eval "ac_cv_header_$ac_safe=no"
                   1788: fi
                   1789: rm -f conftest*
                   1790: fi
                   1791: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   1792:   echo "$ac_t""yes" 1>&6
                   1793:     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
                   1794:   cat >> confdefs.h <<EOF
                   1795: #define $ac_tr_hdr 1
                   1796: EOF
                   1797:  
                   1798: else
                   1799:   echo "$ac_t""no" 1>&6
                   1800: fi
                   1801: done
                   1802: 
                   1803: 
1.1.1.3 ! root     1804: if [ "$ac_cv_header_linux_joystick_h" = "yes" ]; then
1.1       root     1805:   echo $ac_n "checking whether linux/joystick.h is broken""... $ac_c" 1>&6
                   1806:   if grep "#include" /usr/include/linux/joystick.h >/dev/null; then
                   1807:     echo "$ac_t""yes" 1>&6
                   1808:     BROKEN_JOYSTICK_H=1
1.1.1.3 ! root     1809:     grep -v "#include" /usr/include/linux/joystick.h >src/include/joystick.h
1.1       root     1810:   else
                   1811:     echo "$ac_t""no" 1>&6
                   1812:     BROKEN_JOYSTICK_H=0
                   1813:   fi
                   1814: fi
                   1815: 
                   1816: echo $ac_n "checking size of char""... $ac_c" 1>&6
                   1817: if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
                   1818:   echo $ac_n "(cached) $ac_c" 1>&6
                   1819: else
                   1820:   if test "$cross_compiling" = yes; then
                   1821:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   1822: else
                   1823: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1824: #line 1825 "configure"
1.1       root     1825: #include "confdefs.h"
                   1826: #include <stdio.h>
                   1827: main()
                   1828: {
                   1829:   FILE *f=fopen("conftestval", "w");
                   1830:   if (!f) exit(1);
                   1831:   fprintf(f, "%d\n", sizeof(char));
                   1832:   exit(0);
                   1833: }
                   1834: EOF
1.1.1.3 ! root     1835: { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1       root     1836: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                   1837:   ac_cv_sizeof_char=`cat conftestval`
                   1838: else
                   1839:   ac_cv_sizeof_char=0
                   1840: fi
                   1841: fi
                   1842: rm -fr conftest*
                   1843: fi
                   1844: echo "$ac_t""$ac_cv_sizeof_char" 1>&6
                   1845: cat >> confdefs.h <<EOF
                   1846: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   1847: EOF
                   1848: 
                   1849: 
                   1850: echo $ac_n "checking size of short""... $ac_c" 1>&6
                   1851: if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
                   1852:   echo $ac_n "(cached) $ac_c" 1>&6
                   1853: else
                   1854:   if test "$cross_compiling" = yes; then
                   1855:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   1856: else
                   1857: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1858: #line 1859 "configure"
1.1       root     1859: #include "confdefs.h"
                   1860: #include <stdio.h>
                   1861: main()
                   1862: {
                   1863:   FILE *f=fopen("conftestval", "w");
                   1864:   if (!f) exit(1);
                   1865:   fprintf(f, "%d\n", sizeof(short));
                   1866:   exit(0);
                   1867: }
                   1868: EOF
1.1.1.3 ! root     1869: { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1       root     1870: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                   1871:   ac_cv_sizeof_short=`cat conftestval`
                   1872: else
                   1873:   ac_cv_sizeof_short=0
                   1874: fi
                   1875: fi
                   1876: rm -fr conftest*
                   1877: fi
                   1878: echo "$ac_t""$ac_cv_sizeof_short" 1>&6
                   1879: cat >> confdefs.h <<EOF
                   1880: #define SIZEOF_SHORT $ac_cv_sizeof_short
                   1881: EOF
                   1882: 
                   1883: 
                   1884: echo $ac_n "checking size of int""... $ac_c" 1>&6
                   1885: if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
                   1886:   echo $ac_n "(cached) $ac_c" 1>&6
                   1887: else
                   1888:   if test "$cross_compiling" = yes; then
                   1889:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   1890: else
                   1891: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1892: #line 1893 "configure"
1.1       root     1893: #include "confdefs.h"
                   1894: #include <stdio.h>
                   1895: main()
                   1896: {
                   1897:   FILE *f=fopen("conftestval", "w");
                   1898:   if (!f) exit(1);
                   1899:   fprintf(f, "%d\n", sizeof(int));
                   1900:   exit(0);
                   1901: }
                   1902: EOF
1.1.1.3 ! root     1903: { (eval echo configure:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1       root     1904: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                   1905:   ac_cv_sizeof_int=`cat conftestval`
                   1906: else
                   1907:   ac_cv_sizeof_int=0
                   1908: fi
                   1909: fi
                   1910: rm -fr conftest*
                   1911: fi
                   1912: echo "$ac_t""$ac_cv_sizeof_int" 1>&6
                   1913: cat >> confdefs.h <<EOF
                   1914: #define SIZEOF_INT $ac_cv_sizeof_int
                   1915: EOF
                   1916: 
                   1917: 
                   1918: echo $ac_n "checking size of long""... $ac_c" 1>&6
                   1919: if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
                   1920:   echo $ac_n "(cached) $ac_c" 1>&6
                   1921: else
                   1922:   if test "$cross_compiling" = yes; then
                   1923:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   1924: else
                   1925: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1926: #line 1927 "configure"
1.1       root     1927: #include "confdefs.h"
                   1928: #include <stdio.h>
                   1929: main()
                   1930: {
                   1931:   FILE *f=fopen("conftestval", "w");
                   1932:   if (!f) exit(1);
                   1933:   fprintf(f, "%d\n", sizeof(long));
                   1934:   exit(0);
                   1935: }
                   1936: EOF
1.1.1.3 ! root     1937: { (eval echo configure:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1       root     1938: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                   1939:   ac_cv_sizeof_long=`cat conftestval`
                   1940: else
                   1941:   ac_cv_sizeof_long=0
                   1942: fi
                   1943: fi
                   1944: rm -fr conftest*
                   1945: fi
                   1946: echo "$ac_t""$ac_cv_sizeof_long" 1>&6
                   1947: cat >> confdefs.h <<EOF
                   1948: #define SIZEOF_LONG $ac_cv_sizeof_long
                   1949: EOF
                   1950: 
                   1951: 
                   1952: echo $ac_n "checking size of long long""... $ac_c" 1>&6
                   1953: if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
                   1954:   echo $ac_n "(cached) $ac_c" 1>&6
                   1955: else
                   1956:   if test "$cross_compiling" = yes; then
                   1957:     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
                   1958: else
                   1959: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1960: #line 1961 "configure"
1.1       root     1961: #include "confdefs.h"
                   1962: #include <stdio.h>
                   1963: main()
                   1964: {
                   1965:   FILE *f=fopen("conftestval", "w");
                   1966:   if (!f) exit(1);
                   1967:   fprintf(f, "%d\n", sizeof(long long));
                   1968:   exit(0);
                   1969: }
                   1970: EOF
1.1.1.3 ! root     1971: { (eval echo configure:1972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1       root     1972: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                   1973:   ac_cv_sizeof_long_long=`cat conftestval`
                   1974: else
                   1975:   ac_cv_sizeof_long_long=0
                   1976: fi
                   1977: fi
                   1978: rm -fr conftest*
                   1979: fi
                   1980: echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
                   1981: cat >> confdefs.h <<EOF
                   1982: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
                   1983: EOF
                   1984: 
                   1985: 
                   1986: 
                   1987: echo $ac_n "checking for working const""... $ac_c" 1>&6
                   1988: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
                   1989:   echo $ac_n "(cached) $ac_c" 1>&6
                   1990: else
                   1991:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     1992: #line 1993 "configure"
1.1       root     1993: #include "confdefs.h"
                   1994: 
                   1995: int main() { return 0; }
                   1996: int t() {
                   1997: 
                   1998: /* Ultrix mips cc rejects this.  */
                   1999: typedef int charset[2]; const charset x;
                   2000: /* SunOS 4.1.1 cc rejects this.  */
                   2001: char const *const *ccp;
                   2002: char **p;
                   2003: /* NEC SVR4.0.2 mips cc rejects this.  */
                   2004: struct point {int x, y;};
                   2005: static struct point const zero = {0,0};
                   2006: /* AIX XL C 1.02.0.0 rejects this.
                   2007:    It does not let you subtract one const X* pointer from another in an arm
                   2008:    of an if-expression whose if-part is not a constant expression */
                   2009: const char *g = "string";
                   2010: ccp = &g + (g ? g-g : 0);
                   2011: /* HPUX 7.0 cc rejects these. */
                   2012: ++ccp;
                   2013: p = (char**) ccp;
                   2014: ccp = (char const *const *) p;
                   2015: { /* SCO 3.2v4 cc rejects this.  */
                   2016:   char *t;
                   2017:   char const *s = 0 ? (char *) 0 : (char const *) 0;
                   2018: 
                   2019:   *t++ = 0;
                   2020: }
                   2021: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   2022:   int x[] = {25, 17};
                   2023:   const int *foo = &x[0];
                   2024:   ++foo;
                   2025: }
                   2026: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   2027:   typedef const int *iptr;
                   2028:   iptr p = 0;
                   2029:   ++p;
                   2030: }
                   2031: { /* AIX XL C 1.02.0.0 rejects this saying
                   2032:      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   2033:   struct s { int j; const int *ap[3]; };
                   2034:   struct s *b; b->j = 5;
                   2035: }
                   2036: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   2037:   const int foo = 10;
                   2038: }
                   2039: 
                   2040: ; return 0; }
                   2041: EOF
1.1.1.3 ! root     2042: if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2043:   rm -rf conftest*
                   2044:   ac_cv_c_const=yes
                   2045: else
                   2046:   rm -rf conftest*
                   2047:   ac_cv_c_const=no
                   2048: fi
                   2049: rm -f conftest*
                   2050: 
                   2051: fi
                   2052: 
                   2053: echo "$ac_t""$ac_cv_c_const" 1>&6
                   2054: if test $ac_cv_c_const = no; then
                   2055:   cat >> confdefs.h <<\EOF
                   2056: #define const 
                   2057: EOF
                   2058: 
                   2059: fi
                   2060: 
                   2061: echo $ac_n "checking for inline""... $ac_c" 1>&6
                   2062: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
                   2063:   echo $ac_n "(cached) $ac_c" 1>&6
                   2064: else
                   2065:   ac_cv_c_inline=no
                   2066: for ac_kw in inline __inline__ __inline; do
                   2067:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2068: #line 2069 "configure"
1.1       root     2069: #include "confdefs.h"
                   2070: 
                   2071: int main() { return 0; }
                   2072: int t() {
                   2073: } $ac_kw foo() {
                   2074: ; return 0; }
                   2075: EOF
1.1.1.3 ! root     2076: if { (eval echo configure:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2077:   rm -rf conftest*
                   2078:   ac_cv_c_inline=$ac_kw; break
                   2079: fi
                   2080: rm -f conftest*
                   2081: 
                   2082: done
                   2083: 
                   2084: fi
                   2085: 
                   2086: echo "$ac_t""$ac_cv_c_inline" 1>&6
                   2087: case "$ac_cv_c_inline" in
                   2088:   inline | yes) ;;
                   2089:   no) cat >> confdefs.h <<\EOF
                   2090: #define inline 
                   2091: EOF
                   2092:  ;;
                   2093:   *)  cat >> confdefs.h <<EOF
                   2094: #define inline $ac_cv_c_inline
                   2095: EOF
                   2096:  ;;
                   2097: esac
                   2098: 
                   2099: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
                   2100: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
                   2101:   echo $ac_n "(cached) $ac_c" 1>&6
                   2102: else
                   2103:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2104: #line 2105 "configure"
1.1       root     2105: #include "confdefs.h"
                   2106: #include <sys/types.h>
                   2107: #if STDC_HEADERS
                   2108: #include <stdlib.h>
                   2109: #endif
                   2110: EOF
                   2111: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2112:   egrep "mode_t" >/dev/null 2>&1; then
                   2113:   rm -rf conftest*
                   2114:   ac_cv_type_mode_t=yes
                   2115: else
                   2116:   rm -rf conftest*
                   2117:   ac_cv_type_mode_t=no
                   2118: fi
                   2119: rm -f conftest*
                   2120: 
                   2121: fi
                   2122: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
                   2123: if test $ac_cv_type_mode_t = no; then
                   2124:   cat >> confdefs.h <<\EOF
                   2125: #define mode_t int
                   2126: EOF
                   2127: 
                   2128: fi
                   2129: 
                   2130: echo $ac_n "checking for off_t""... $ac_c" 1>&6
                   2131: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
                   2132:   echo $ac_n "(cached) $ac_c" 1>&6
                   2133: else
                   2134:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2135: #line 2136 "configure"
1.1       root     2136: #include "confdefs.h"
                   2137: #include <sys/types.h>
                   2138: #if STDC_HEADERS
                   2139: #include <stdlib.h>
                   2140: #endif
                   2141: EOF
                   2142: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2143:   egrep "off_t" >/dev/null 2>&1; then
                   2144:   rm -rf conftest*
                   2145:   ac_cv_type_off_t=yes
                   2146: else
                   2147:   rm -rf conftest*
                   2148:   ac_cv_type_off_t=no
                   2149: fi
                   2150: rm -f conftest*
                   2151: 
                   2152: fi
                   2153: echo "$ac_t""$ac_cv_type_off_t" 1>&6
                   2154: if test $ac_cv_type_off_t = no; then
                   2155:   cat >> confdefs.h <<\EOF
                   2156: #define off_t long
                   2157: EOF
                   2158: 
                   2159: fi
                   2160: 
                   2161: echo $ac_n "checking for pid_t""... $ac_c" 1>&6
                   2162: if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
                   2163:   echo $ac_n "(cached) $ac_c" 1>&6
                   2164: else
                   2165:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2166: #line 2167 "configure"
1.1       root     2167: #include "confdefs.h"
                   2168: #include <sys/types.h>
                   2169: #if STDC_HEADERS
                   2170: #include <stdlib.h>
                   2171: #endif
                   2172: EOF
                   2173: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2174:   egrep "pid_t" >/dev/null 2>&1; then
                   2175:   rm -rf conftest*
                   2176:   ac_cv_type_pid_t=yes
                   2177: else
                   2178:   rm -rf conftest*
                   2179:   ac_cv_type_pid_t=no
                   2180: fi
                   2181: rm -f conftest*
                   2182: 
                   2183: fi
                   2184: echo "$ac_t""$ac_cv_type_pid_t" 1>&6
                   2185: if test $ac_cv_type_pid_t = no; then
                   2186:   cat >> confdefs.h <<\EOF
                   2187: #define pid_t int
                   2188: EOF
                   2189: 
                   2190: fi
                   2191: 
                   2192: echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
                   2193: if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
                   2194:   echo $ac_n "(cached) $ac_c" 1>&6
                   2195: else
                   2196:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2197: #line 2198 "configure"
1.1       root     2198: #include "confdefs.h"
                   2199: #include <sys/types.h>
                   2200: #include <sys/stat.h>
                   2201: int main() { return 0; }
                   2202: int t() {
                   2203: struct stat s; s.st_blocks;
                   2204: ; return 0; }
                   2205: EOF
1.1.1.3 ! root     2206: if { (eval echo configure:2207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2207:   rm -rf conftest*
                   2208:   ac_cv_struct_st_blocks=yes
                   2209: else
                   2210:   rm -rf conftest*
                   2211:   ac_cv_struct_st_blocks=no
                   2212: fi
                   2213: rm -f conftest*
                   2214: 
                   2215: fi
                   2216: 
                   2217: echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
                   2218: if test $ac_cv_struct_st_blocks = yes; then
                   2219:   cat >> confdefs.h <<\EOF
                   2220: #define HAVE_ST_BLOCKS 1
                   2221: EOF
                   2222: 
                   2223: else
                   2224:   LIBOBJS="$LIBOBJS fileblocks.o"
                   2225: fi
                   2226: 
                   2227: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
                   2228: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
                   2229:   echo $ac_n "(cached) $ac_c" 1>&6
                   2230: else
                   2231:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2232: #line 2233 "configure"
1.1       root     2233: #include "confdefs.h"
                   2234: #include <sys/types.h>
                   2235: #include <sys/time.h>
                   2236: #include <time.h>
                   2237: int main() { return 0; }
                   2238: int t() {
                   2239: struct tm *tp;
                   2240: ; return 0; }
                   2241: EOF
1.1.1.3 ! root     2242: if { (eval echo configure:2243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2243:   rm -rf conftest*
                   2244:   ac_cv_header_time=yes
                   2245: else
                   2246:   rm -rf conftest*
                   2247:   ac_cv_header_time=no
                   2248: fi
                   2249: rm -f conftest*
                   2250: 
                   2251: fi
                   2252: 
                   2253: echo "$ac_t""$ac_cv_header_time" 1>&6
                   2254: if test $ac_cv_header_time = yes; then
                   2255:   cat >> confdefs.h <<\EOF
                   2256: #define TIME_WITH_SYS_TIME 1
                   2257: EOF
                   2258: 
                   2259: fi
                   2260: 
                   2261: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
                   2262: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
                   2263:   echo $ac_n "(cached) $ac_c" 1>&6
                   2264: else
                   2265:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2266: #line 2267 "configure"
1.1       root     2267: #include "confdefs.h"
                   2268: #include <sys/types.h>
                   2269: #include <time.h>
                   2270: int main() { return 0; }
                   2271: int t() {
                   2272: struct tm *tp; tp->tm_sec;
                   2273: ; return 0; }
                   2274: EOF
1.1.1.3 ! root     2275: if { (eval echo configure:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2276:   rm -rf conftest*
                   2277:   ac_cv_struct_tm=time.h
                   2278: else
                   2279:   rm -rf conftest*
                   2280:   ac_cv_struct_tm=sys/time.h
                   2281: fi
                   2282: rm -f conftest*
                   2283: 
                   2284: fi
                   2285: 
                   2286: echo "$ac_t""$ac_cv_struct_tm" 1>&6
                   2287: if test $ac_cv_struct_tm = sys/time.h; then
                   2288:   cat >> confdefs.h <<\EOF
                   2289: #define TM_IN_SYS_TIME 1
                   2290: EOF
                   2291: 
                   2292: fi
                   2293: 
                   2294: 
                   2295: if test $ac_cv_prog_gcc = yes; then
                   2296:     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
                   2297: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
                   2298:   echo $ac_n "(cached) $ac_c" 1>&6
                   2299: else
                   2300:     ac_pattern="Autoconf.*'x'"
                   2301:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2302: #line 2303 "configure"
1.1       root     2303: #include "confdefs.h"
                   2304: #include <sgtty.h>
                   2305: Autoconf TIOCGETP
                   2306: EOF
                   2307: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2308:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   2309:   rm -rf conftest*
                   2310:   ac_cv_prog_gcc_traditional=yes
                   2311: else
                   2312:   rm -rf conftest*
                   2313:   ac_cv_prog_gcc_traditional=no
                   2314: fi
                   2315: rm -f conftest*
                   2316: 
                   2317: 
                   2318:   if test $ac_cv_prog_gcc_traditional = no; then
                   2319:     cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2320: #line 2321 "configure"
1.1       root     2321: #include "confdefs.h"
                   2322: #include <termio.h>
                   2323: Autoconf TCGETA
                   2324: EOF
                   2325: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2326:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   2327:   rm -rf conftest*
                   2328:   ac_cv_prog_gcc_traditional=yes
                   2329: fi
                   2330: rm -f conftest*
                   2331: 
                   2332:   fi
                   2333: fi
                   2334: 
                   2335: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
                   2336:   if test $ac_cv_prog_gcc_traditional = yes; then
                   2337:     CC="$CC -traditional"
                   2338:   fi
                   2339: fi
                   2340: 
                   2341: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
                   2342: if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
                   2343:   echo $ac_n "(cached) $ac_c" 1>&6
                   2344: else
                   2345:   if test "$cross_compiling" = yes; then
                   2346:   ac_cv_func_memcmp=no
                   2347: else
                   2348: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2349: #line 2350 "configure"
1.1       root     2350: #include "confdefs.h"
                   2351: 
                   2352: main()
                   2353: {
                   2354:   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
                   2355:   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
                   2356: }
                   2357: 
                   2358: EOF
1.1.1.3 ! root     2359: { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1       root     2360: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                   2361:   ac_cv_func_memcmp=yes
                   2362: else
                   2363:   ac_cv_func_memcmp=no
                   2364: fi
                   2365: fi
                   2366: rm -fr conftest*
                   2367: fi
                   2368: 
                   2369: echo "$ac_t""$ac_cv_func_memcmp" 1>&6
                   2370: test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
                   2371: 
                   2372: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
                   2373: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
                   2374:   echo $ac_n "(cached) $ac_c" 1>&6
                   2375: else
                   2376:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2377: #line 2378 "configure"
1.1       root     2378: #include "confdefs.h"
                   2379: #include <sys/types.h>
                   2380: #include <signal.h>
                   2381: #ifdef signal
                   2382: #undef signal
                   2383: #endif
                   2384: #ifdef __cplusplus
                   2385: extern "C" void (*signal (int, void (*)(int)))(int);
                   2386: #else
                   2387: void (*signal ()) ();
                   2388: #endif
                   2389: 
                   2390: int main() { return 0; }
                   2391: int t() {
                   2392: int i;
                   2393: ; return 0; }
                   2394: EOF
1.1.1.3 ! root     2395: if { (eval echo configure:2396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2396:   rm -rf conftest*
                   2397:   ac_cv_type_signal=void
                   2398: else
                   2399:   rm -rf conftest*
                   2400:   ac_cv_type_signal=int
                   2401: fi
                   2402: rm -f conftest*
                   2403: 
                   2404: fi
                   2405: 
                   2406: echo "$ac_t""$ac_cv_type_signal" 1>&6
                   2407: cat >> confdefs.h <<EOF
                   2408: #define RETSIGTYPE $ac_cv_type_signal
                   2409: EOF
                   2410: 
                   2411: 
                   2412: echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
                   2413: if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
                   2414:   echo $ac_n "(cached) $ac_c" 1>&6
                   2415: else
                   2416:   rm -f conftestdata; > conftestdata
                   2417: # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
                   2418: if test "$cross_compiling" = yes; then
                   2419:   ac_cv_func_utime_null=no
                   2420: else
                   2421: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2422: #line 2423 "configure"
1.1       root     2423: #include "confdefs.h"
                   2424: #include <sys/types.h>
                   2425: #include <sys/stat.h>
                   2426: main() {
                   2427: struct stat s, t;
                   2428: exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
                   2429: && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
                   2430: && t.st_mtime - s.st_mtime < 120));
                   2431: }
                   2432: EOF
1.1.1.3 ! root     2433: { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1       root     2434: if test -s conftest && (./conftest; exit) 2>/dev/null; then
                   2435:   ac_cv_func_utime_null=yes
                   2436: else
                   2437:   ac_cv_func_utime_null=no
                   2438: fi
                   2439: fi
                   2440: rm -fr conftest*
                   2441: rm -f core core.* *.core
                   2442: fi
                   2443: 
                   2444: echo "$ac_t""$ac_cv_func_utime_null" 1>&6
                   2445: if test $ac_cv_func_utime_null = yes; then
                   2446:   cat >> confdefs.h <<\EOF
                   2447: #define HAVE_UTIME_NULL 1
                   2448: EOF
                   2449: 
                   2450: fi
                   2451: 
1.1.1.3 ! root     2452: for ac_func in gettimeofday sigaction mkdir rmdir select strerror strstr statfs
1.1       root     2453: do
                   2454: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
                   2455: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   2456:   echo $ac_n "(cached) $ac_c" 1>&6
                   2457: else
                   2458:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2459: #line 2460 "configure"
1.1       root     2460: #include "confdefs.h"
                   2461: /* System header to define __stub macros and hopefully few prototypes,
                   2462:     which can conflict with char $ac_func(); below.  */
                   2463: #include <assert.h>
                   2464: /* Override any gcc2 internal prototype to avoid an error.  */
                   2465: /* We use char because int might match the return type of a gcc2
                   2466:     builtin and then its argument prototype would still apply.  */
                   2467: char $ac_func();
                   2468: 
                   2469: int main() { return 0; }
                   2470: int t() {
                   2471: 
                   2472: /* The GNU C library defines this for functions which it implements
                   2473:     to always fail with ENOSYS.  Some functions are actually named
                   2474:     something starting with __ and the normal name is an alias.  */
                   2475: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   2476: choke me
                   2477: #else
                   2478: $ac_func();
                   2479: #endif
                   2480: 
                   2481: ; return 0; }
                   2482: EOF
1.1.1.3 ! root     2483: if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1       root     2484:   rm -rf conftest*
                   2485:   eval "ac_cv_func_$ac_func=yes"
                   2486: else
                   2487:   rm -rf conftest*
                   2488:   eval "ac_cv_func_$ac_func=no"
                   2489: fi
                   2490: rm -f conftest*
                   2491: 
                   2492: fi
                   2493: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   2494:   echo "$ac_t""yes" 1>&6
                   2495:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   2496:   cat >> confdefs.h <<EOF
                   2497: #define $ac_tr_func 1
                   2498: EOF
                   2499:  
                   2500: else
                   2501:   echo "$ac_t""no" 1>&6
                   2502: fi
                   2503: done
                   2504: 
                   2505: 
                   2506: echo $ac_n "checking how many args statfs takes""... $ac_c" 1>&6
1.1.1.3 ! root     2507: if [ "$ac_cv_func_statfs" = "yes" ]; then
1.1       root     2508:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2509: #line 2510 "configure"
1.1       root     2510: #include "confdefs.h"
                   2511: 
                   2512: #include "confdefs.h"
1.1.1.2   root     2513: #ifdef HAVE_SYS_TYPES_H
                   2514: #include <sys/types.h>
                   2515: #endif
                   2516: #ifdef HAVE_SYS_PARAM_H
                   2517: #include <sys/param.h>
                   2518: #endif
1.1       root     2519: #ifdef HAVE_SYS_MOUNT_H
                   2520: #include <sys/mount.h>
                   2521: #endif
1.1.1.2   root     2522: #ifdef HAVE_SYS_SELECT_H
                   2523: #include <sys/select.h>
                   2524: #endif
1.1       root     2525: #ifdef HAVE_SYS_VFS_H
                   2526: #include <sys/vfs.h>
                   2527: #endif
                   2528: #ifdef HAVE_SYS_STATFS_H
                   2529: #include <sys/statfs.h>
                   2530: #endif
                   2531: #ifdef HAVE_SYS_STATVFS_H
                   2532: #include <sys/statvfs.h>
                   2533: #endif
                   2534: int main() { return 0; }
                   2535: int t() {
                   2536: struct statfs statbuf;statfs("/",&statbuf);
                   2537: ; return 0; }
                   2538: EOF
1.1.1.3 ! root     2539: if { (eval echo configure:2540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2540:   rm -rf conftest*
                   2541:   echo "$ac_t""2" 1>&6 
                   2542: STATFS_NO_ARGS=2
                   2543: else
                   2544:   rm -rf conftest*
                   2545:   echo "$ac_t""4" 1>&6
                   2546: STATFS_NO_ARGS=4
                   2547: fi
                   2548: rm -f conftest*
                   2549: 
                   2550: fi
                   2551: 
                   2552: echo $ac_n "checking whether to use f_bavail or f_bfree""... $ac_c" 1>&6
                   2553: if [ $ac_cv_func_statfs = "yes" ]; then
                   2554:   cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2555: #line 2556 "configure"
1.1       root     2556: #include "confdefs.h"
                   2557: 
                   2558: #include "confdefs.h"
1.1.1.2   root     2559: #ifdef HAVE_SYS_TYPES_H
                   2560: #include <sys/types.h>
                   2561: #endif
                   2562: #ifdef HAVE_SYS_PARAM_H
                   2563: #include <sys/param.h>
                   2564: #endif
1.1       root     2565: #ifdef HAVE_SYS_MOUNT_H
                   2566: #include <sys/mount.h>
                   2567: #endif
1.1.1.2   root     2568: #ifdef HAVE_SYS_SELECT_H
                   2569: #include <sys/select.h>
                   2570: #endif
1.1       root     2571: #ifdef HAVE_SYS_VFS_H
                   2572: #include <sys/vfs.h>
                   2573: #endif
                   2574: #ifdef HAVE_SYS_STATFS_H
                   2575: #include <sys/statfs.h>
                   2576: #endif
                   2577: #ifdef HAVE_SYS_STATVFS_H
                   2578: #include <sys/statvfs.h>
                   2579: #endif
                   2580: int main() { return 0; }
                   2581: int t() {
                   2582: struct statfs statbuf;statbuf.f_bavail;
                   2583: ; return 0; }
                   2584: EOF
1.1.1.3 ! root     2585: if { (eval echo configure:2586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2586:   rm -rf conftest*
                   2587:   echo "$ac_t""f_bavail" 1>&6 
                   2588: STATBUF_BAVAIL=f_bavail
                   2589: else
                   2590:   rm -rf conftest*
                   2591:   echo "$ac_t""f_bfree" 1>&6
                   2592: STATBUF_BAVAIL=f_bfree
                   2593: fi
                   2594: rm -f conftest*
                   2595: 
                   2596: fi
                   2597: 
1.1.1.2   root     2598: USE_GUI=yes
                   2599: # Check whether --enable-gui or --disable-gui was given.
                   2600: if test "${enable_gui+set}" = set; then
                   2601:   enableval="$enable_gui"
                   2602:   USE_GUI=$enableval
                   2603: fi
                   2604: 
1.1.1.3 ! root     2605: if [ x$USE_GUI = "xyes" ]; then
1.1.1.2   root     2606:   # Extract the first word of "wish4.0", so it can be a program name with args.
                   2607: set dummy wish4.0; ac_word=$2
                   2608: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
                   2609: if eval "test \"`echo '$''{'ac_cv_prog_USE_GUI'+set}'`\" = set"; then
                   2610:   echo $ac_n "(cached) $ac_c" 1>&6
                   2611: else
                   2612:   if test -n "$USE_GUI"; then
                   2613:   ac_cv_prog_USE_GUI="$USE_GUI" # Let the user override the test.
                   2614: else
                   2615:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                   2616:   for ac_dir in $PATH; do
                   2617:     test -z "$ac_dir" && ac_dir=.
                   2618:     if test -f $ac_dir/$ac_word; then
                   2619:       ac_cv_prog_USE_GUI="yes"
                   2620:       break
                   2621:     fi
                   2622:   done
                   2623:   IFS="$ac_save_ifs"
                   2624:   test -z "$ac_cv_prog_USE_GUI" && ac_cv_prog_USE_GUI="no"
                   2625: fi
                   2626: fi
                   2627: USE_GUI="$ac_cv_prog_USE_GUI"
                   2628: if test -n "$USE_GUI"; then
                   2629:   echo "$ac_t""$USE_GUI" 1>&6
                   2630: else
                   2631:   echo "$ac_t""no" 1>&6
                   2632: fi
                   2633: 
                   2634: else
                   2635:   echo "Disabling the GUI."
                   2636: fi
                   2637: 
1.1.1.3 ! root     2638: MATHLIB=-lm
        !          2639: 
1.1       root     2640: echo $ac_n "checking which target to use""... $ac_c" 1>&6
                   2641: if [ $HAVE_BEBOX = "y" ]; then
                   2642:   echo "$ac_t""BeBox" 1>&6
                   2643:   TARGET=be
                   2644:   GFXOBJS="bebox.o nogui.o"
                   2645:   ac_cv_c_inline=
1.1.1.3 ! root     2646: else if [ $HAVE_AMIGA_LIB = "y" ]; then
        !          2647:   echo "$ac_t""AmigaOS" 1>&6
        !          2648:   TARGET=amigaos
        !          2649:   GFXOBJS="amiga.o"
        !          2650: else if [ $HAVE_NEXT_LIB = "y" ]; then
        !          2651:   echo "$ac_t""NeXTStep" 1>&6
        !          2652:   MATHLIB=
        !          2653:   TARGET=next
        !          2654:   GFXOBJS="NeXTwin.o"
        !          2655:   LIBRARIES="-sectcreate __ICON __header ../Uae.app/Uae.iconheader -segprot __ICON r r -sectcreate __ICON app ../Uae.app/Uae.tiff -lMedia_s -lNeXT_s"
        !          2656: else if [ x$no_x = "xyes" ]; then
        !          2657:   if [ $HAVE_SVGA_LIB = "n" ]; then
        !          2658:     echo "$ac_t""Ummm...." 1>&6
        !          2659:     echo "Neither X nor SVGAlib found, don't know what target to use."
        !          2660:     exit 1
1.1       root     2661:   else
1.1.1.3 ! root     2662:     echo "$ac_t""SVGAlib" 1>&6
        !          2663:     TARGET=svgalib
        !          2664:     echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
1.1.1.2   root     2665: ac_lib_var=`echo ncurses'_'waddch | tr './+\055' '__p_'`
                   2666: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2667:   echo $ac_n "(cached) $ac_c" 1>&6
                   2668: else
                   2669:   ac_save_LIBS="$LIBS"
                   2670: LIBS="-lncurses  $LIBS"
                   2671: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2672: #line 2673 "configure"
1.1.1.2   root     2673: #include "confdefs.h"
                   2674: /* Override any gcc2 internal prototype to avoid an error.  */
                   2675: /* We use char because int might match the return type of a gcc2
                   2676:     builtin and then its argument prototype would still apply.  */
                   2677: char waddch();
                   2678: 
                   2679: int main() { return 0; }
                   2680: int t() {
                   2681: waddch()
                   2682: ; return 0; }
                   2683: EOF
1.1.1.3 ! root     2684: if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1.1.2   root     2685:   rm -rf conftest*
                   2686:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2687: else
                   2688:   rm -rf conftest*
                   2689:   eval "ac_cv_lib_$ac_lib_var=no"
                   2690: fi
                   2691: rm -f conftest*
                   2692: LIBS="$ac_save_LIBS"
                   2693: 
                   2694: fi
                   2695: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2696:   echo "$ac_t""yes" 1>&6
                   2697:     ac_tr_lib=HAVE_LIB`echo ncurses | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   2698:   cat >> confdefs.h <<EOF
                   2699: #define $ac_tr_lib 1
                   2700: EOF
                   2701: 
                   2702:   LIBS="-lncurses $LIBS"
                   2703: 
                   2704: else
                   2705:   echo "$ac_t""no" 1>&6
                   2706: HAVE_GUI=no
                   2707: fi
                   2708: 
1.1.1.3 ! root     2709:     if [ x$USE_GUI = "xyes" ]; then
        !          2710:       GFXOBJS="svga.o tui.o svgancui.o"
        !          2711:       LIBRARIES="-lvga -lncurses"
        !          2712:       if [ $ac_cv_header_ncurses_h = "no" ]; then
        !          2713:         echo "Found libncurses, but no ncurses.h. Unfortunately, newer ncurses"
        !          2714:        echo "installations don't come with ncurses.h. I'll try to use curses.h instead."
        !          2715:        echo "If you get linker or compiler errors in svgancui.c, please remove"
        !          2716:        echo "all traces of an existing ncurses-installation and re-install ncurses."
1.1       root     2717:       fi
                   2718:     else
1.1.1.3 ! root     2719:       GFXOBJS="svga.o nogui.o"
        !          2720:       LIBRARIES="-lvga"
        !          2721:     fi
        !          2722:   fi
        !          2723: else
        !          2724:   echo "$ac_t""X Window System" 1>&6
        !          2725:   TARGET=x11
        !          2726: 
        !          2727:   # Check whether --enable-dga or --disable-dga was given.
        !          2728: if test "${enable_dga+set}" = set; then
        !          2729:   enableval="$enable_dga"
1.1.1.2   root     2730:   USEDGA=$enableval
                   2731: fi
                   2732: 
1.1.1.3 ! root     2733:   if [ x$USE_GUI = "xyes" ]; then
        !          2734:     if [ x$USE_DGA = "xyes" ]; then
        !          2735:       echo "Can't use the GUI with DGA - disabling DGA."
        !          2736:     fi
        !          2737:     USEDGA=no
        !          2738:   fi  
        !          2739:     HAVE_XFORMS=no
        !          2740:   if [ "$ac_cv_header_forms_h" = "yes" -o "$ac_cv_header_X11_forms_h" = "yes" ]; then
        !          2741:     TMP_SAVE_LIBS=$LIBS
        !          2742:     LIBS="$X_LIBS $LIBS -lforms -lX11 -lm"
        !          2743:     echo $ac_n "checking for -lforms""... $ac_c" 1>&6
        !          2744: ac_lib_var=`echo forms'_'fl_library_version | tr './+\055' '__p_'`
        !          2745: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
        !          2746:   echo $ac_n "(cached) $ac_c" 1>&6
        !          2747: else
        !          2748:   ac_save_LIBS="$LIBS"
        !          2749: LIBS="-lforms  $LIBS"
        !          2750: cat > conftest.$ac_ext <<EOF
        !          2751: #line 2752 "configure"
        !          2752: #include "confdefs.h"
        !          2753: /* Override any gcc2 internal prototype to avoid an error.  */
        !          2754: /* We use char because int might match the return type of a gcc2
        !          2755:     builtin and then its argument prototype would still apply.  */
        !          2756: char fl_library_version();
        !          2757: 
        !          2758: int main() { return 0; }
        !          2759: int t() {
        !          2760: fl_library_version()
        !          2761: ; return 0; }
        !          2762: EOF
        !          2763: if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
        !          2764:   rm -rf conftest*
        !          2765:   eval "ac_cv_lib_$ac_lib_var=yes"
        !          2766: else
        !          2767:   rm -rf conftest*
        !          2768:   eval "ac_cv_lib_$ac_lib_var=no"
        !          2769: fi
        !          2770: rm -f conftest*
        !          2771: LIBS="$ac_save_LIBS"
        !          2772: 
        !          2773: fi
        !          2774: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
        !          2775:   echo "$ac_t""yes" 1>&6
        !          2776:   HAVE_XFORMS=yes
        !          2777: else
        !          2778:   echo "$ac_t""no" 1>&6
        !          2779: fi
        !          2780: 
        !          2781:     LIBS=$TMP_SAVE_LIBS
        !          2782:     if [ "$ac_cv_header_forms_h" = "yes" ]; then
        !          2783:       FORMS_HEADER=forms.h
        !          2784:     else
        !          2785:       FORMS_HEADER=X11/forms.h
        !          2786:     fi
        !          2787:   fi
        !          2788:   if [ x$HAVE_XFORMS = "xyes" ]; then
        !          2789:     echo '#include "'$FORMS_HEADER\" >conftest.c
        !          2790:     cat >>conftest.c << EOF
        !          2791: int main()
        !          2792: {
        !          2793:   if (fl_library_version(NULL, NULL) == FL_INCLUDE_VERSION
        !          2794:       && FL_INCLUDE_VERSION >= 80)
        !          2795:       printf("OK\n");
        !          2796: return 0;
        !          2797: }
        !          2798: EOF
        !          2799:     $CC conftest.c -c -o conftest.o  $CFLAGS
        !          2800:     $CC conftest.o -o conftest $X_LIBS $LIBS -lforms -lX11 -lm
        !          2801:     ./conftest >conftest.file
        !          2802:     if grep OK conftest.file >/dev/null; then
        !          2803:       echo "X Forms include and library version match."
        !          2804:     else
        !          2805:       echo "Installation problem with the X Forms library, versions don't match!"
        !          2806:       HAVE_XFORMS = no
        !          2807:     fi
        !          2808:   fi
        !          2809: 
        !          2810:   if [ x$USEDGA = "xyes" ]; then
        !          2811:     TMP_SAVE_LIBS=$LIBS
        !          2812:     LIBS="$X_LIBS $LIBS"
        !          2813:     echo $ac_n "checking for -lXxf86dga""... $ac_c" 1>&6
1.1.1.2   root     2814: ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | tr './+\055' '__p_'`
                   2815: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1       root     2816:   echo $ac_n "(cached) $ac_c" 1>&6
                   2817: else
1.1.1.2   root     2818:   ac_save_LIBS="$LIBS"
1.1.1.3 ! root     2819: LIBS="-lXxf86dga  -lXext -lX11  $LIBS"
1.1.1.2   root     2820: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! root     2821: #line 2822 "configure"
1.1.1.2   root     2822: #include "confdefs.h"
                   2823: /* Override any gcc2 internal prototype to avoid an error.  */
                   2824: /* We use char because int might match the return type of a gcc2
                   2825:     builtin and then its argument prototype would still apply.  */
                   2826: char XF86DGAQueryExtension();
                   2827: 
                   2828: int main() { return 0; }
                   2829: int t() {
                   2830: XF86DGAQueryExtension()
                   2831: ; return 0; }
                   2832: EOF
1.1.1.3 ! root     2833: if { (eval echo configure:2834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1.1.2   root     2834:   rm -rf conftest*
                   2835:   eval "ac_cv_lib_$ac_lib_var=yes"
1.1       root     2836: else
1.1.1.2   root     2837:   rm -rf conftest*
                   2838:   eval "ac_cv_lib_$ac_lib_var=no"
1.1       root     2839: fi
1.1.1.2   root     2840: rm -f conftest*
                   2841: LIBS="$ac_save_LIBS"
                   2842: 
1.1       root     2843: fi
1.1.1.2   root     2844: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2845:   echo "$ac_t""yes" 1>&6
                   2846:   USEDGA=yes
1.1       root     2847: else
                   2848:   echo "$ac_t""no" 1>&6
1.1.1.2   root     2849: USEDGA=no
1.1       root     2850: fi
                   2851: 
1.1.1.3 ! root     2852:     LIBS=$TMP_SAVE_LIBS
        !          2853:   fi
        !          2854:   
        !          2855:   if [ x$USEDGA = "xyes" ]; then
        !          2856:     LIBRARIES="$X_LIBS $X_PRE_LIBS -lXxf86dga -lXext -lX11 $X_EXTRA_LIBS"
        !          2857:     X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION"
        !          2858:   else
        !          2859:     LIBRARIES="$X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
        !          2860:   fi
        !          2861: 
        !          2862:   if [ x$USE_GUI = "xyes" ]; then
        !          2863:     USE_XFGUI=no
        !          2864:     # Check whether --enable-xfgui or --disable-xfgui was given.
        !          2865: if test "${enable_xfgui+set}" = set; then
        !          2866:   enableval="$enable_xfgui"
        !          2867:   USE_XFGUI=$enableval
        !          2868: fi
        !          2869: 
        !          2870:     if [ x$USE_XFGUI = "xyes" ]; then
        !          2871:       if [ x$HAVE_XFORMS = "xyes" ]; then 
        !          2872:         echo "Using XForms GUI."
        !          2873:         LIBRARIES="$LIBRARIES -lforms"
        !          2874:         GFXOBJS="xwin.o"
1.1       root     2875:       else
1.1.1.3 ! root     2876:         echo "You don't have XForms. Disabling GUI!"
        !          2877:         USE_XFGUI=no
        !          2878:         USE_GUI=no
        !          2879:         GFXOBJS="xwin.o nogui.o"
1.1       root     2880:       fi
1.1.1.3 ! root     2881:     else
        !          2882:       echo "Using Tcl/Tk GUI."
        !          2883:       GFXOBJS="xwin.o xui.o" 
1.1       root     2884:     fi
1.1.1.3 ! root     2885:   else
        !          2886:     GFXOBJS="xwin.o nogui.o"
1.1       root     2887:   fi
                   2888: fi
1.1.1.3 ! root     2889: fi
        !          2890: fi
        !          2891: fi
1.1       root     2892: 
1.1.1.3 ! root     2893: if [ x$USE_XFGUI = "xyes" ]; then
        !          2894:   DEBUGOBJS="xdebug.o"
        !          2895: else
        !          2896:   DEBUGOBJS="debug.o"
        !          2897: fi
        !          2898:  
        !          2899: 
        !          2900: LINUXELF=n
        !          2901: HAVEGCC27=n
        !          2902: HAVEI386=n
1.1       root     2903: ASMOBJS=
1.1.1.2   root     2904: CPUOBJS="cpu0.o cpu1.o cpu2.o cpu3.o cpu4.o cpu5.o cpu6.o cpu7.o cpu8.o cpu9.o cpuA.o cpuB.o cpuC.o cpuD.o cpuE.o cpuF.o"
1.1.1.3 ! root     2905: CPUOBJS1="cpu_d0.o cpu_d1.o cpu_d2.o cpu_d3.o cpu_d4.o cpu_d5.o cpu_d6.o cpu_d7.o cpu_d8.o cpu_d9.o cpu_dA.o cpu_dB.o cpu_dC.o cpu_dD.o cpu_dE.o cpu_dF.o"
        !          2906: 
        !          2907: cat >conftest.c << EOF
        !          2908: int main()
        !          2909: {
        !          2910: #if defined(__GNUC__) && defined(__GNUC_MINOR__)
        !          2911: #if __GNUC__ > 2 || __GNUC_MINOR__ > 6
        !          2912: printf("GNU\n");
        !          2913: #endif
        !          2914: #endif
        !          2915: return 0;
        !          2916: }
        !          2917: EOF
        !          2918: 
        !          2919: $CC conftest.c -c -o conftest.o
        !          2920: $CC conftest.o -o conftest
        !          2921: ./conftest >conftest.file
        !          2922: if grep GNU conftest.file >/dev/null; then
        !          2923:   HAVEGCC27=y
        !          2924:   echo "Good news. Found GCC 2.7 or better."
        !          2925: else
        !          2926:   if [ "$CC" = "gcc" ]; then
        !          2927:     echo "I suggest you upgrade to at least version 2.7 of GCC"
        !          2928:   else
        !          2929:     echo "Couldn't find GCC. UAE may or may not compile and run correctly."
        !          2930:   fi
        !          2931: fi
        !          2932: 
        !          2933: if [ x$DO_PROFILING = "xyes" ]; then
        !          2934:   if [ "$CC" = "gcc" ]; then
        !          2935:     CFLAGS="-O -g -fno-inline-functions -fno-omit-frame-pointer -pg -DUSE_PROFILING"
        !          2936:     LDFLAGS="-pg"
        !          2937:   fi
        !          2938: else
        !          2939:   if [ "$CC" = "gcc" ]; then
        !          2940:     CFLAGS="-O3 -fomit-frame-pointer -Wall -Wtraditional -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes"
        !          2941:   fi
        !          2942: fi
        !          2943: 
        !          2944: if [ x$HAVEGCC27 = "xy" ]; then
        !          2945:   CFLAGS="$CFLAGS -DGCCCONSTFUNC=\"__attribute__((const))\""
        !          2946: else
        !          2947:   CFLAGS="$CFLAGS -DGCCCONSTFUNC="
        !          2948: fi
1.1.1.2   root     2949: 
1.1.1.3 ! root     2950: cat >conftest.c << EOF
        !          2951: int main()
        !          2952: {
        !          2953: #ifdef __i386__
        !          2954: printf("386\n");
        !          2955: #endif
        !          2956: return 0;
        !          2957: }
        !          2958: EOF
1.1       root     2959: 
1.1.1.3 ! root     2960: $CC conftest.c -c -o conftest.o
        !          2961: $CC conftest.o -o conftest
        !          2962: ./conftest >conftest.file
        !          2963: if grep 386 conftest.file >/dev/null; then
        !          2964:   HAVEI386=y
        !          2965:   echo "You seem to be using a x86 CPU (UAE will require a 486 to run)"
        !          2966: else
        !          2967:   echo "No special hacks for your CPU, sorry."
        !          2968: fi
        !          2969: 
        !          2970: rm -f conftest*
        !          2971: 
        !          2972: 
        !          2973: if [ "$HAVEGCC27" = "y" -a "$HAVEI386" = "y" -a x$DO_PROFILING = "xno" ]; then
        !          2974:         echo $ac_n "checking whether we are on a Linux/i386 ELF system""... $ac_c" 1>&6
1.1       root     2975:   if MACHINE=`uname -a 2>/dev/null`; then
                   2976:     cat >conftest.c << EOF
                   2977: int main() { return 0; }
                   2978: EOF
                   2979:     case $MACHINE in
                   2980:     Linux*i*86)
                   2981:       gcc conftest.c -o conftest
                   2982:       file conftest >conftest.file
                   2983:       if grep ELF conftest.file >/dev/null; then
                   2984:         LINUXELF=y
                   2985:       fi
                   2986:       ;;
                   2987:     esac
                   2988:     rm -f conftest*
                   2989:   fi
                   2990:   if [ $LINUXELF = "n" ]; then
                   2991:     echo "$ac_t""no" 1>&6
                   2992:   else
                   2993:     echo "$ac_t""yes" 1>&6
                   2994:     ASMOBJS=X86.o
1.1.1.3 ! root     2995:     CPUOBJS="cpu_f0.o cpu_f1.o cpu_f2.o cpu_f3.o cpu_f4.o cpu_f5.o cpu_f6.o cpu_f7.o cpu_f8.o cpu_f9.o cpu_fA.o cpu_fB.o cpu_fC.o cpu_fD.o cpu_fE.o cpu_fF.o"
        !          2996:     CPUOBJS1="cpu_f_d0.o cpu_f_d1.o cpu_f_d2.o cpu_f_d3.o cpu_f_d4.o cpu_f_d5.o cpu_f_d6.o cpu_f_d7.o cpu_f_d8.o cpu_f_d9.o cpu_f_dA.o cpu_f_dB.o cpu_f_dC.o cpu_f_dD.o cpu_f_dE.o cpu_f_dF.o"
1.1       root     2997:     CFLAGS="$CFLAGS -DX86_ASSEMBLY"
                   2998:   fi
1.1.1.3 ! root     2999: fi
        !          3000: 
        !          3001: 
        !          3002: rm -f src/machdep
        !          3003: if [ "$LINUXELF" = "y" -a x$DO_PROFILING = "xno"  ]; then
        !          3004:   ln -s md-i386-linux src/machdep
        !          3005:   CFLAGS="$CFLAGS -fno-strength-reduce -DINTEL_FLAG_OPT=1 -DREGPARAM=\"__attribute__((regparm(3)))\""
        !          3006: else if [ "$HAVEGCC27" = "y" -a "$HAVEI386" = "y" -a x$DO_PROFILING = "xno" ]; then
        !          3007:   ln -s md-i386-gcc src/machdep
        !          3008:   CFLAGS="$CFLAGS -fno-strength-reduce -DINTEL_FLAG_OPT=1 -DREGPARAM=\"__attribute__((regparm(3)))\""
        !          3009: else if [ "$TARGET" = "amigaos" ]; then
        !          3010:   ln -s md-amiga src/machdep
        !          3011:   CFLAGS="$CFLAGS -DREGPARAM=\"__attribute__((regargs(4)))\" -DM68K_FLAG_OPT=1"
1.1       root     3012: else
1.1.1.3 ! root     3013:   ln -s md-generic src/machdep
        !          3014:   CFLAGS="$CFLAGS -DREGPARAM="
        !          3015: fi
        !          3016: fi
1.1       root     3017: fi
                   3018: 
1.1.1.2   root     3019: if [ $TARGET = "x11" -o $TARGET = "svgalib" ]; then
                   3020:     CFLAGS="$CFLAGS -DUSE_ZFILE"
                   3021: fi
                   3022: 
1.1.1.3 ! root     3023: if [ $TARGET = "amigaos" ]; then
        !          3024:   CFLAGS="$CFLAGS -DUSE_ZFILE"
        !          3025: 
        !          3026:     echo $ac_n "checking which CPU to use""... $ac_c" 1>&6
        !          3027:   cpu=`cpu | cut -d' ' -f2`
        !          3028:   echo "$ac_t""$cpu" 1>&6
        !          3029:   CFLAGS="$CFLAGS -m$cpu"
        !          3030: 
        !          3031:     echo $ac_n "checking which FPU to use""... $ac_c" 1>&6
        !          3032:   fpu=`cpu | cut -d' ' -f3 | grep '^68[0-9]*$'`
        !          3033:   if [ ! "x$fpu" = "x" ]; then
        !          3034:     echo "$ac_t""$fpu" 1>&6
        !          3035:     CFLAGS="$CFLAGS -m$fpu"
        !          3036:   else
        !          3037:     echo "$ac_t""none" 1>&6
        !          3038:   fi
        !          3039: fi
        !          3040:  
        !          3041: 
1.1.1.2   root     3042: 
                   3043: 
1.1       root     3044: 
                   3045: 
                   3046: 
                   3047: 
                   3048: 
                   3049: 
                   3050: 
                   3051: 
                   3052: 
1.1.1.3 ! root     3053: 
        !          3054: if [ "$FORMS_HEADER" = "forms.h" ]; then
        !          3055:   FORMS_H_VARIANT=0
        !          3056: else
        !          3057:   FORMS_H_VARIANT=1
        !          3058: fi
        !          3059: 
        !          3060: 
        !          3061: 
1.1       root     3062: trap '' 1 2 15
                   3063: cat > confcache <<\EOF
                   3064: # This file is a shell script that caches the results of configure
                   3065: # tests run on this system so they can be shared between configure
                   3066: # scripts and configure runs.  It is not useful on other systems.
                   3067: # If it contains results you don't want to keep, you may remove or edit it.
                   3068: #
                   3069: # By default, configure uses ./config.cache as the cache file,
                   3070: # creating it if it does not exist already.  You can give configure
                   3071: # the --cache-file=FILE option to use a different cache file; that is
                   3072: # what configure does when it calls configure scripts in
                   3073: # subdirectories, so they share the cache.
                   3074: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   3075: # config.status only pays attention to the cache file if you give it the
                   3076: # --recheck option to rerun configure.
                   3077: #
                   3078: EOF
                   3079: # Ultrix sh set writes to stderr and can't be redirected directly,
                   3080: # and sets the high bit in the cache file unless we assign to the vars.
                   3081: (set) 2>&1 |
                   3082:   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
                   3083:   >> confcache
                   3084: if cmp -s $cache_file confcache; then
                   3085:   :
                   3086: else
                   3087:   if test -w $cache_file; then
                   3088:     echo "updating cache $cache_file"
                   3089:     cat confcache > $cache_file
                   3090:   else
                   3091:     echo "not updating unwritable cache $cache_file"
                   3092:   fi
                   3093: fi
                   3094: rm -f confcache
                   3095: 
                   3096: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   3097: 
                   3098: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   3099: # Let make expand exec_prefix.
                   3100: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   3101: 
                   3102: # Any assignment to VPATH causes Sun make to only execute
                   3103: # the first set of double-colon rules, so remove it if not needed.
                   3104: # If there is a colon in the path, we need to keep it.
                   3105: if test "x$srcdir" = x.; then
                   3106:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   3107: fi
                   3108: 
                   3109: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   3110: 
                   3111: DEFS=-DHAVE_CONFIG_H
                   3112: 
                   3113: # Without the "./", some shells look in PATH for config.status.
                   3114: : ${CONFIG_STATUS=./config.status}
                   3115: 
                   3116: echo creating $CONFIG_STATUS
                   3117: rm -f $CONFIG_STATUS
                   3118: cat > $CONFIG_STATUS <<EOF
                   3119: #! /bin/sh
                   3120: # Generated automatically by configure.
                   3121: # Run this file to recreate the current configuration.
                   3122: # This directory was configured as follows,
                   3123: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   3124: #
                   3125: # $0 $ac_configure_args
                   3126: #
                   3127: # Compiler output produced by configure, useful for debugging
                   3128: # configure, is in ./config.log if it exists.
                   3129: 
                   3130: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   3131: for ac_option
                   3132: do
                   3133:   case "\$ac_option" in
                   3134:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   3135:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   3136:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   3137:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   3138:     echo "$CONFIG_STATUS generated by autoconf version 2.10"
                   3139:     exit 0 ;;
                   3140:   -help | --help | --hel | --he | --h)
                   3141:     echo "\$ac_cs_usage"; exit 0 ;;
                   3142:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   3143:   esac
                   3144: done
                   3145: 
                   3146: ac_given_srcdir=$srcdir
                   3147: 
1.1.1.2   root     3148: trap 'rm -fr `echo "src/Makefile Makefile src/include/sysconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1       root     3149: EOF
                   3150: cat >> $CONFIG_STATUS <<EOF
                   3151: 
                   3152: # Protect against being on the right side of a sed subst in config.status.
                   3153: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   3154:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   3155: $ac_vpsub
                   3156: $extrasub
                   3157: s%@CFLAGS@%$CFLAGS%g
                   3158: s%@CPPFLAGS@%$CPPFLAGS%g
                   3159: s%@CXXFLAGS@%$CXXFLAGS%g
                   3160: s%@DEFS@%$DEFS%g
                   3161: s%@LDFLAGS@%$LDFLAGS%g
                   3162: s%@LIBS@%$LIBS%g
                   3163: s%@exec_prefix@%$exec_prefix%g
                   3164: s%@prefix@%$prefix%g
                   3165: s%@program_transform_name@%$program_transform_name%g
                   3166: s%@bindir@%$bindir%g
                   3167: s%@sbindir@%$sbindir%g
                   3168: s%@libexecdir@%$libexecdir%g
                   3169: s%@datadir@%$datadir%g
                   3170: s%@sysconfdir@%$sysconfdir%g
                   3171: s%@sharedstatedir@%$sharedstatedir%g
                   3172: s%@localstatedir@%$localstatedir%g
                   3173: s%@libdir@%$libdir%g
                   3174: s%@includedir@%$includedir%g
                   3175: s%@oldincludedir@%$oldincludedir%g
                   3176: s%@infodir@%$infodir%g
                   3177: s%@mandir@%$mandir%g
                   3178: s%@CC@%$CC%g
                   3179: s%@CPP@%$CPP%g
                   3180: s%@SET_MAKE@%$SET_MAKE%g
                   3181: s%@X_CFLAGS@%$X_CFLAGS%g
                   3182: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
                   3183: s%@X_LIBS@%$X_LIBS%g
                   3184: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
                   3185: s%@LIBOBJS@%$LIBOBJS%g
1.1.1.2   root     3186: s%@USE_GUI@%$USE_GUI%g
1.1       root     3187: s%@ac_cv_c_inline@%$ac_cv_c_inline%g
                   3188: s%@STATFS_NO_ARGS@%$STATFS_NO_ARGS%g
                   3189: s%@BROKEN_JOYSTICK_H@%$BROKEN_JOYSTICK_H%g
                   3190: s%@STATBUF_BAVAIL@%$STATBUF_BAVAIL%g
                   3191: s%@LIBRARIES@%$LIBRARIES%g
                   3192: s%@TARGET@%$TARGET%g
                   3193: s%@GFXOBJS@%$GFXOBJS%g
                   3194: s%@ASMOBJS@%$ASMOBJS%g
1.1.1.2   root     3195: s%@CPUOBJS@%$CPUOBJS%g
1.1.1.3 ! root     3196: s%@CPUOBJS1@%$CPUOBJS1%g
        !          3197: s%@DEBUGOBJS@%$DEBUGOBJS%g
        !          3198: s%@MATHLIB@%$MATHLIB%g
        !          3199: s%@FORMS_H_VARIANT@%$FORMS_H_VARIANT%g
        !          3200: s%@top_srcdir@%$top_srcdir%g
1.1       root     3201: 
                   3202: CEOF
                   3203: EOF
                   3204: cat >> $CONFIG_STATUS <<EOF
                   3205: 
1.1.1.2   root     3206: CONFIG_FILES=\${CONFIG_FILES-"src/Makefile Makefile"}
1.1       root     3207: EOF
                   3208: cat >> $CONFIG_STATUS <<\EOF
                   3209: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   3210:   # Support "outfile[:infile]", defaulting infile="outfile.in".
                   3211:   case "$ac_file" in
                   3212:   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
                   3213:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   3214:   *) ac_file_in="${ac_file}.in" ;;
                   3215:   esac
                   3216: 
                   3217:   # Adjust relative srcdir, etc. for subdirectories.
                   3218: 
                   3219:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   3220:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   3221:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   3222:     # The file is in a subdirectory.
                   3223:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   3224:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   3225:     # A "../" for each directory in $ac_dir_suffix.
                   3226:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   3227:   else
                   3228:     ac_dir_suffix= ac_dots=
                   3229:   fi
                   3230: 
                   3231:   case "$ac_given_srcdir" in
                   3232:   .)  srcdir=.
                   3233:       if test -z "$ac_dots"; then top_srcdir=.
                   3234:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   3235:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   3236:   *) # Relative path.
                   3237:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   3238:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   3239:   esac
                   3240: 
                   3241:   echo creating "$ac_file"
                   3242:   rm -f "$ac_file"
                   3243:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   3244:   case "$ac_file" in
                   3245:   *Makefile*) ac_comsub="1i\\
                   3246: # $configure_input" ;;
                   3247:   *) ac_comsub= ;;
                   3248:   esac
                   3249:   sed -e "$ac_comsub
                   3250: s%@configure_input@%$configure_input%g
                   3251: s%@srcdir@%$srcdir%g
                   3252: s%@top_srcdir@%$top_srcdir%g
                   3253: " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
                   3254: fi; done
                   3255: rm -f conftest.subs
                   3256: 
                   3257: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   3258: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   3259: #
                   3260: # ac_d sets the value in "#define NAME VALUE" lines.
                   3261: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   3262: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   3263: ac_dC='\3'
                   3264: ac_dD='%g'
                   3265: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   3266: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   3267: ac_uB='\([     ]\)%\1#\2define\3'
                   3268: ac_uC=' '
                   3269: ac_uD='\4%g'
                   3270: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   3271: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   3272: ac_eB='$%\1#\2define\3'
                   3273: ac_eC=' '
                   3274: ac_eD='%g'
                   3275: 
1.1.1.2   root     3276: CONFIG_HEADERS=${CONFIG_HEADERS-"src/include/sysconfig.h"}
1.1       root     3277: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
                   3278:   # Support "outfile[:infile]", defaulting infile="outfile.in".
                   3279:   case "$ac_file" in
                   3280:   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
                   3281:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   3282:   *) ac_file_in="${ac_file}.in" ;;
                   3283:   esac
                   3284: 
                   3285:   echo creating $ac_file
                   3286: 
                   3287:   rm -f conftest.frag conftest.in conftest.out
                   3288:   cp $ac_given_srcdir/$ac_file_in conftest.in
                   3289: 
                   3290: EOF
                   3291: 
                   3292: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   3293: # the proper values into config.h.in to produce config.h.  And first:
                   3294: # Protect against being on the right side of a sed subst in config.status.
                   3295: # Protect against being in an unquoted here document in config.status.
                   3296: rm -f conftest.vals
                   3297: cat > conftest.hdr <<\EOF
                   3298: s/[\\&%]/\\&/g
                   3299: s%[\\$`]%\\&%g
                   3300: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   3301: s%ac_d%ac_u%gp
                   3302: s%ac_u%ac_e%gp
                   3303: EOF
                   3304: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   3305: rm -f conftest.hdr
                   3306: 
                   3307: # This sed command replaces #undef with comments.  This is necessary, for
                   3308: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   3309: # on some systems where configure will not decide to define it.
                   3310: cat >> conftest.vals <<\EOF
                   3311: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   3312: EOF
                   3313: 
                   3314: # Break up conftest.vals because some shells have a limit on
                   3315: # the size of here documents, and old seds have small limits too.
                   3316: # Maximum number of lines to put in a single here document.
                   3317: ac_max_here_lines=12
                   3318: 
                   3319: rm -f conftest.tail
                   3320: while :
                   3321: do
                   3322:   ac_lines=`grep -c . conftest.vals`
                   3323:   # grep -c gives empty output for an empty file on some AIX systems.
                   3324:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   3325:   # Write a limited-size here document to conftest.frag.
                   3326:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   3327:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   3328:   echo 'CEOF
                   3329:   sed -f conftest.frag conftest.in > conftest.out
                   3330:   rm -f conftest.in
                   3331:   mv conftest.out conftest.in
                   3332: ' >> $CONFIG_STATUS
                   3333:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   3334:   rm -f conftest.vals
                   3335:   mv conftest.tail conftest.vals
                   3336: done
                   3337: rm -f conftest.vals
                   3338: 
                   3339: cat >> $CONFIG_STATUS <<\EOF
                   3340:   rm -f conftest.frag conftest.h
                   3341:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   3342:   cat conftest.in >> conftest.h
                   3343:   rm -f conftest.in
                   3344:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   3345:     echo "$ac_file is unchanged"
                   3346:     rm -f conftest.h
                   3347:   else
                   3348:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   3349:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   3350:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   3351:       # The file is in a subdirectory.
                   3352:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   3353:     fi
                   3354:     rm -f $ac_file
                   3355:     mv conftest.h $ac_file
                   3356:   fi
                   3357: fi; done
                   3358: 
                   3359: 
                   3360: 
                   3361: exit 0
                   3362: EOF
                   3363: chmod +x $CONFIG_STATUS
                   3364: rm -fr confdefs* $ac_clean_files
                   3365: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   3366: 
1.1.1.3 ! root     3367: if [ x$DO_PROFILING = "xyes" ]; then
        !          3368:   echo "Building a profiling version of UAE (select this option only if you know"
        !          3369:   echo "what you are doing)"
        !          3370: fi

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.