Annotation of uae/configure, revision 1.1.1.15

1.1       root        1: #! /bin/sh
                      2: 
                      3: # Guess values for system-dependent variables and create Makefiles.
1.1.1.9   root        4: # Generated automatically using autoconf version 2.13 
1.1       root        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.4   root       17:   --enable-profiling      Build a profiling (SLOW!) version"
1.1.1.2   root       18: ac_help="$ac_help
1.1.1.4   root       19:   --with-svgalib          Use SVGAlib for graphics output"
1.1.1.3   root       20: ac_help="$ac_help
1.1.1.4   root       21:   --with-asciiart         Use ncurses ascii art for graphics output"
                     22: ac_help="$ac_help
                     23:   --enable-dga            X11 version: Use the DGA extension"
                     24: ac_help="$ac_help
                     25:   --enable-vidmode        X11 version: Use the XF86VidMode extension"
                     26: ac_help="$ac_help
                     27:   --enable-ui             Use a user interface if possible (default on)"
                     28: ac_help="$ac_help
                     29:   --with-elf              Explicitly state that this system is ELF"
                     30: ac_help="$ac_help
                     31:   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
                     32: ac_help="$ac_help
                     33:   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
                     34: ac_help="$ac_help
                     35:   --disable-gtktest       Do not try to compile and run a test GTK program"
                     36: ac_help="$ac_help
1.1.1.10  root       37:   --enable-threads        Enable some generally useful thread support"
1.1.1.4   root       38: ac_help="$ac_help
1.1.1.10  root       39:   --enable-file-sound     Enable sound output to file"
                     40: ac_help="$ac_help
1.1.1.14  root       41:   --enable-scsi-device    Enable the uaescsi.device"
1.1       root       42: 
                     43: # Initialize some variables set by options.
                     44: # The variables have the same names as the options, with
                     45: # dashes changed to underlines.
                     46: build=NONE
                     47: cache_file=./config.cache
                     48: exec_prefix=NONE
                     49: host=NONE
                     50: no_create=
                     51: nonopt=NONE
                     52: no_recursion=
                     53: prefix=NONE
                     54: program_prefix=NONE
                     55: program_suffix=NONE
                     56: program_transform_name=s,x,x,
                     57: silent=
                     58: site=
                     59: srcdir=
                     60: target=NONE
                     61: verbose=
                     62: x_includes=NONE
                     63: x_libraries=NONE
                     64: bindir='${exec_prefix}/bin'
                     65: sbindir='${exec_prefix}/sbin'
                     66: libexecdir='${exec_prefix}/libexec'
                     67: datadir='${prefix}/share'
                     68: sysconfdir='${prefix}/etc'
                     69: sharedstatedir='${prefix}/com'
                     70: localstatedir='${prefix}/var'
                     71: libdir='${exec_prefix}/lib'
                     72: includedir='${prefix}/include'
                     73: oldincludedir='/usr/include'
                     74: infodir='${prefix}/info'
                     75: mandir='${prefix}/man'
                     76: 
                     77: # Initialize some other variables.
                     78: subdirs=
                     79: MFLAGS= MAKEFLAGS=
1.1.1.9   root       80: SHELL=${CONFIG_SHELL-/bin/sh}
1.1.1.4   root       81: # Maximum number of lines to put in a shell here document.
                     82: ac_max_here_lines=12
1.1       root       83: 
                     84: ac_prev=
                     85: for ac_option
                     86: do
                     87: 
                     88:   # If the previous option needs an argument, assign it.
                     89:   if test -n "$ac_prev"; then
                     90:     eval "$ac_prev=\$ac_option"
                     91:     ac_prev=
                     92:     continue
                     93:   fi
                     94: 
                     95:   case "$ac_option" in
                     96:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                     97:   *) ac_optarg= ;;
                     98:   esac
                     99: 
                    100:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    101: 
                    102:   case "$ac_option" in
                    103: 
                    104:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    105:     ac_prev=bindir ;;
                    106:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    107:     bindir="$ac_optarg" ;;
                    108: 
                    109:   -build | --build | --buil | --bui | --bu)
                    110:     ac_prev=build ;;
                    111:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    112:     build="$ac_optarg" ;;
                    113: 
                    114:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    115:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    116:     ac_prev=cache_file ;;
                    117:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    118:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    119:     cache_file="$ac_optarg" ;;
                    120: 
                    121:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    122:     ac_prev=datadir ;;
                    123:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    124:   | --da=*)
                    125:     datadir="$ac_optarg" ;;
                    126: 
                    127:   -disable-* | --disable-*)
                    128:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    129:     # Reject names that are not valid shell variable names.
                    130:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    131:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    132:     fi
                    133:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    134:     eval "enable_${ac_feature}=no" ;;
                    135: 
                    136:   -enable-* | --enable-*)
                    137:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    138:     # Reject names that are not valid shell variable names.
                    139:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    140:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    141:     fi
                    142:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    143:     case "$ac_option" in
                    144:       *=*) ;;
                    145:       *) ac_optarg=yes ;;
                    146:     esac
                    147:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    148: 
                    149:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    150:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    151:   | --exec | --exe | --ex)
                    152:     ac_prev=exec_prefix ;;
                    153:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    154:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    155:   | --exec=* | --exe=* | --ex=*)
                    156:     exec_prefix="$ac_optarg" ;;
                    157: 
                    158:   -gas | --gas | --ga | --g)
                    159:     # Obsolete; use --with-gas.
                    160:     with_gas=yes ;;
                    161: 
                    162:   -help | --help | --hel | --he)
                    163:     # Omit some internal or obsolete options to make the list less imposing.
                    164:     # This message is too long to be a string in the A/UX 3.1 sh.
                    165:     cat << EOF
                    166: Usage: configure [options] [host]
                    167: Options: [defaults in brackets after descriptions]
                    168: Configuration:
                    169:   --cache-file=FILE       cache test results in FILE
                    170:   --help                  print this message
                    171:   --no-create             do not create output files
                    172:   --quiet, --silent       do not print \`checking...' messages
                    173:   --version               print the version of autoconf that created configure
                    174: Directory and file names:
                    175:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    176:                           [$ac_default_prefix]
                    177:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    178:                           [same as prefix]
                    179:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    180:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    181:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    182:   --datadir=DIR           read-only architecture-independent data in DIR
                    183:                           [PREFIX/share]
                    184:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    185:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    186:                           [PREFIX/com]
                    187:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    188:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    189:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    190:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    191:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    192:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    193:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    194:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    195:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    196:   --program-transform-name=PROGRAM
                    197:                           run sed PROGRAM on installed program names
                    198: EOF
                    199:     cat << EOF
                    200: Host type:
                    201:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    202:   --host=HOST             configure for HOST [guessed]
                    203:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    204: Features and packages:
                    205:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    206:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    207:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    208:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    209:   --x-includes=DIR        X include files are in DIR
                    210:   --x-libraries=DIR       X library files are in DIR
                    211: EOF
                    212:     if test -n "$ac_help"; then
                    213:       echo "--enable and --with options recognized:$ac_help"
                    214:     fi
                    215:     exit 0 ;;
                    216: 
                    217:   -host | --host | --hos | --ho)
                    218:     ac_prev=host ;;
                    219:   -host=* | --host=* | --hos=* | --ho=*)
                    220:     host="$ac_optarg" ;;
                    221: 
                    222:   -includedir | --includedir | --includedi | --included | --include \
                    223:   | --includ | --inclu | --incl | --inc)
                    224:     ac_prev=includedir ;;
                    225:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    226:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    227:     includedir="$ac_optarg" ;;
                    228: 
                    229:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    230:     ac_prev=infodir ;;
                    231:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    232:     infodir="$ac_optarg" ;;
                    233: 
                    234:   -libdir | --libdir | --libdi | --libd)
                    235:     ac_prev=libdir ;;
                    236:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    237:     libdir="$ac_optarg" ;;
                    238: 
                    239:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    240:   | --libexe | --libex | --libe)
                    241:     ac_prev=libexecdir ;;
                    242:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    243:   | --libexe=* | --libex=* | --libe=*)
                    244:     libexecdir="$ac_optarg" ;;
                    245: 
                    246:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    247:   | --localstate | --localstat | --localsta | --localst \
                    248:   | --locals | --local | --loca | --loc | --lo)
                    249:     ac_prev=localstatedir ;;
                    250:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    251:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    252:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    253:     localstatedir="$ac_optarg" ;;
                    254: 
                    255:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    256:     ac_prev=mandir ;;
                    257:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    258:     mandir="$ac_optarg" ;;
                    259: 
                    260:   -nfp | --nfp | --nf)
                    261:     # Obsolete; use --without-fp.
                    262:     with_fp=no ;;
                    263: 
                    264:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    265:   | --no-cr | --no-c)
                    266:     no_create=yes ;;
                    267: 
                    268:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    269:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    270:     no_recursion=yes ;;
                    271: 
                    272:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    273:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    274:   | --oldin | --oldi | --old | --ol | --o)
                    275:     ac_prev=oldincludedir ;;
                    276:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    277:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    278:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    279:     oldincludedir="$ac_optarg" ;;
                    280: 
                    281:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    282:     ac_prev=prefix ;;
                    283:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    284:     prefix="$ac_optarg" ;;
                    285: 
                    286:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    287:   | --program-pre | --program-pr | --program-p)
                    288:     ac_prev=program_prefix ;;
                    289:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    290:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    291:     program_prefix="$ac_optarg" ;;
                    292: 
                    293:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    294:   | --program-suf | --program-su | --program-s)
                    295:     ac_prev=program_suffix ;;
                    296:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    297:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    298:     program_suffix="$ac_optarg" ;;
                    299: 
                    300:   -program-transform-name | --program-transform-name \
                    301:   | --program-transform-nam | --program-transform-na \
                    302:   | --program-transform-n | --program-transform- \
                    303:   | --program-transform | --program-transfor \
                    304:   | --program-transfo | --program-transf \
                    305:   | --program-trans | --program-tran \
                    306:   | --progr-tra | --program-tr | --program-t)
                    307:     ac_prev=program_transform_name ;;
                    308:   -program-transform-name=* | --program-transform-name=* \
                    309:   | --program-transform-nam=* | --program-transform-na=* \
                    310:   | --program-transform-n=* | --program-transform-=* \
                    311:   | --program-transform=* | --program-transfor=* \
                    312:   | --program-transfo=* | --program-transf=* \
                    313:   | --program-trans=* | --program-tran=* \
                    314:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    315:     program_transform_name="$ac_optarg" ;;
                    316: 
                    317:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    318:   | -silent | --silent | --silen | --sile | --sil)
                    319:     silent=yes ;;
                    320: 
                    321:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    322:     ac_prev=sbindir ;;
                    323:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    324:   | --sbi=* | --sb=*)
                    325:     sbindir="$ac_optarg" ;;
                    326: 
                    327:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    328:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    329:   | --sharedst | --shareds | --shared | --share | --shar \
                    330:   | --sha | --sh)
                    331:     ac_prev=sharedstatedir ;;
                    332:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    333:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    334:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    335:   | --sha=* | --sh=*)
                    336:     sharedstatedir="$ac_optarg" ;;
                    337: 
                    338:   -site | --site | --sit)
                    339:     ac_prev=site ;;
                    340:   -site=* | --site=* | --sit=*)
                    341:     site="$ac_optarg" ;;
                    342: 
                    343:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    344:     ac_prev=srcdir ;;
                    345:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    346:     srcdir="$ac_optarg" ;;
                    347: 
                    348:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    349:   | --syscon | --sysco | --sysc | --sys | --sy)
                    350:     ac_prev=sysconfdir ;;
                    351:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    352:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    353:     sysconfdir="$ac_optarg" ;;
                    354: 
                    355:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    356:     ac_prev=target ;;
                    357:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    358:     target="$ac_optarg" ;;
                    359: 
                    360:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    361:     verbose=yes ;;
                    362: 
                    363:   -version | --version | --versio | --versi | --vers)
1.1.1.9   root      364:     echo "configure generated by autoconf version 2.13"
1.1       root      365:     exit 0 ;;
                    366: 
                    367:   -with-* | --with-*)
                    368:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    369:     # Reject names that are not valid shell variable names.
                    370:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    371:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    372:     fi
                    373:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    374:     case "$ac_option" in
                    375:       *=*) ;;
                    376:       *) ac_optarg=yes ;;
                    377:     esac
                    378:     eval "with_${ac_package}='$ac_optarg'" ;;
                    379: 
                    380:   -without-* | --without-*)
                    381:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    382:     # Reject names that are not valid shell variable names.
                    383:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    384:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    385:     fi
                    386:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    387:     eval "with_${ac_package}=no" ;;
                    388: 
                    389:   --x)
                    390:     # Obsolete; use --with-x.
                    391:     with_x=yes ;;
                    392: 
                    393:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    394:   | --x-incl | --x-inc | --x-in | --x-i)
                    395:     ac_prev=x_includes ;;
                    396:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    397:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    398:     x_includes="$ac_optarg" ;;
                    399: 
                    400:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    401:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    402:     ac_prev=x_libraries ;;
                    403:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    404:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    405:     x_libraries="$ac_optarg" ;;
                    406: 
                    407:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    408:     ;;
                    409: 
                    410:   *)
                    411:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    412:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    413:     fi
                    414:     if test "x$nonopt" != xNONE; then
                    415:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    416:     fi
                    417:     nonopt="$ac_option"
                    418:     ;;
                    419: 
                    420:   esac
                    421: done
                    422: 
                    423: if test -n "$ac_prev"; then
                    424:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    425: fi
                    426: 
                    427: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    428: 
                    429: # File descriptor usage:
                    430: # 0 standard input
                    431: # 1 file creation
                    432: # 2 errors and warnings
                    433: # 3 some systems may open it to /dev/tty
                    434: # 4 used on the Kubota Titan
                    435: # 6 checking for... messages and results
                    436: # 5 compiler messages saved in config.log
                    437: if test "$silent" = yes; then
                    438:   exec 6>/dev/null
                    439: else
                    440:   exec 6>&1
                    441: fi
                    442: exec 5>./config.log
                    443: 
                    444: echo "\
                    445: This file contains any messages produced by compilers while
                    446: running configure, to aid debugging if configure makes a mistake.
                    447: " 1>&5
                    448: 
                    449: # Strip out --no-create and --no-recursion so they do not pile up.
                    450: # Also quote any args containing shell metacharacters.
                    451: ac_configure_args=
                    452: for ac_arg
                    453: do
                    454:   case "$ac_arg" in
                    455:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    456:   | --no-cr | --no-c) ;;
                    457:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    458:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    459:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    460:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    461:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    462:   esac
                    463: done
                    464: 
                    465: # NLS nuisances.
1.1.1.4   root      466: # Only set these to C if already set.  These must not be set unconditionally
                    467: # because not all systems understand e.g. LANG=C (notably SCO).
                    468: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    469: # Non-C LC_CTYPE values break the ctype check.
1.1       root      470: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
1.1.1.4   root      471: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    472: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    473: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
1.1       root      474: 
                    475: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    476: rm -rf conftest* confdefs.h
                    477: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    478: echo > confdefs.h
                    479: 
                    480: # A filename unique to this package, relative to the directory that
                    481: # configure is in, which we can look for to find out if srcdir is correct.
1.1.1.2   root      482: ac_unique_file=amiga/source/transdisk.c
1.1       root      483: 
                    484: # Find the source files, if location was not specified.
                    485: if test -z "$srcdir"; then
                    486:   ac_srcdir_defaulted=yes
                    487:   # Try the directory containing this script, then its parent.
                    488:   ac_prog=$0
                    489:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    490:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    491:   srcdir=$ac_confdir
                    492:   if test ! -r $srcdir/$ac_unique_file; then
                    493:     srcdir=..
                    494:   fi
                    495: else
                    496:   ac_srcdir_defaulted=no
                    497: fi
                    498: if test ! -r $srcdir/$ac_unique_file; then
                    499:   if test "$ac_srcdir_defaulted" = yes; then
                    500:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    501:   else
                    502:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    503:   fi
                    504: fi
                    505: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    506: 
                    507: # Prefer explicitly selected file to automatically selected ones.
                    508: if test -z "$CONFIG_SITE"; then
                    509:   if test "x$prefix" != xNONE; then
                    510:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    511:   else
                    512:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    513:   fi
                    514: fi
                    515: for ac_site_file in $CONFIG_SITE; do
                    516:   if test -r "$ac_site_file"; then
                    517:     echo "loading site script $ac_site_file"
                    518:     . "$ac_site_file"
                    519:   fi
                    520: done
                    521: 
                    522: if test -r "$cache_file"; then
                    523:   echo "loading cache $cache_file"
                    524:   . $cache_file
                    525: else
                    526:   echo "creating cache $cache_file"
                    527:   > $cache_file
                    528: fi
                    529: 
                    530: ac_ext=c
                    531: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    532: ac_cpp='$CPP $CPPFLAGS'
                    533: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1.1.1.9   root      534: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1.1.1.4   root      535: cross_compiling=$ac_cv_prog_cc_cross
1.1       root      536: 
1.1.1.9   root      537: ac_exeext=
                    538: ac_objext=o
1.1       root      539: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    540:   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
                    541:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    542:     ac_n= ac_c='
                    543: ' ac_t='       '
                    544:   else
                    545:     ac_n=-n ac_c= ac_t=
                    546:   fi
                    547: else
                    548:   ac_n= ac_c='\c' ac_t=
                    549: fi
                    550: 
                    551: 
                    552: 
1.1.1.4   root      553: 
1.1       root      554: # Extract the first word of "gcc", so it can be a program name with args.
                    555: set dummy gcc; ac_word=$2
                    556: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.13  root      557: echo "configure:558: checking for $ac_word" >&5
1.1       root      558: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    559:   echo $ac_n "(cached) $ac_c" 1>&6
                    560: else
                    561:   if test -n "$CC"; then
                    562:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    563: else
1.1.1.9   root      564:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    565:   ac_dummy="$PATH"
                    566:   for ac_dir in $ac_dummy; do
1.1       root      567:     test -z "$ac_dir" && ac_dir=.
                    568:     if test -f $ac_dir/$ac_word; then
                    569:       ac_cv_prog_CC="gcc"
                    570:       break
                    571:     fi
                    572:   done
                    573:   IFS="$ac_save_ifs"
                    574: fi
                    575: fi
                    576: CC="$ac_cv_prog_CC"
                    577: if test -n "$CC"; then
                    578:   echo "$ac_t""$CC" 1>&6
                    579: else
                    580:   echo "$ac_t""no" 1>&6
                    581: fi
                    582: 
                    583: if test -z "$CC"; then
                    584:   # Extract the first word of "cc", so it can be a program name with args.
                    585: set dummy cc; ac_word=$2
                    586: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.13  root      587: echo "configure:588: checking for $ac_word" >&5
1.1       root      588: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    589:   echo $ac_n "(cached) $ac_c" 1>&6
                    590: else
                    591:   if test -n "$CC"; then
                    592:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    593: else
1.1.1.9   root      594:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
1.1       root      595:   ac_prog_rejected=no
1.1.1.9   root      596:   ac_dummy="$PATH"
                    597:   for ac_dir in $ac_dummy; do
1.1       root      598:     test -z "$ac_dir" && ac_dir=.
                    599:     if test -f $ac_dir/$ac_word; then
                    600:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                    601:         ac_prog_rejected=yes
                    602:        continue
                    603:       fi
                    604:       ac_cv_prog_CC="cc"
                    605:       break
                    606:     fi
                    607:   done
                    608:   IFS="$ac_save_ifs"
                    609: if test $ac_prog_rejected = yes; then
                    610:   # We found a bogon in the path, so make sure we never use it.
                    611:   set dummy $ac_cv_prog_CC
                    612:   shift
                    613:   if test $# -gt 0; then
                    614:     # We chose a different compiler from the bogus one.
                    615:     # However, it has the same basename, so the bogon will be chosen
                    616:     # first if we set CC to just the basename; use the full file name.
                    617:     shift
                    618:     set dummy "$ac_dir/$ac_word" "$@"
                    619:     shift
                    620:     ac_cv_prog_CC="$@"
                    621:   fi
                    622: fi
                    623: fi
                    624: fi
                    625: CC="$ac_cv_prog_CC"
                    626: if test -n "$CC"; then
                    627:   echo "$ac_t""$CC" 1>&6
                    628: else
                    629:   echo "$ac_t""no" 1>&6
                    630: fi
                    631: 
1.1.1.9   root      632:   if test -z "$CC"; then
                    633:     case "`uname -s`" in
                    634:     *win32* | *WIN32*)
                    635:       # Extract the first word of "cl", so it can be a program name with args.
                    636: set dummy cl; ac_word=$2
                    637: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.13  root      638: echo "configure:639: checking for $ac_word" >&5
1.1.1.9   root      639: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    640:   echo $ac_n "(cached) $ac_c" 1>&6
                    641: else
                    642:   if test -n "$CC"; then
                    643:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    644: else
                    645:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    646:   ac_dummy="$PATH"
                    647:   for ac_dir in $ac_dummy; do
                    648:     test -z "$ac_dir" && ac_dir=.
                    649:     if test -f $ac_dir/$ac_word; then
                    650:       ac_cv_prog_CC="cl"
                    651:       break
                    652:     fi
                    653:   done
                    654:   IFS="$ac_save_ifs"
                    655: fi
                    656: fi
                    657: CC="$ac_cv_prog_CC"
                    658: if test -n "$CC"; then
                    659:   echo "$ac_t""$CC" 1>&6
                    660: else
                    661:   echo "$ac_t""no" 1>&6
                    662: fi
                    663:  ;;
                    664:     esac
                    665:   fi
1.1       root      666:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                    667: fi
                    668: 
1.1.1.4   root      669: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.1.1.13  root      670: echo "configure:671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1.1.4   root      671: 
                    672: ac_ext=c
                    673: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    674: ac_cpp='$CPP $CPPFLAGS'
                    675: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1.1.1.9   root      676: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1.1.1.4   root      677: cross_compiling=$ac_cv_prog_cc_cross
                    678: 
1.1.1.9   root      679: cat > conftest.$ac_ext << EOF
                    680: 
1.1.1.13  root      681: #line 682 "configure"
1.1.1.4   root      682: #include "confdefs.h"
1.1.1.9   root      683: 
1.1.1.4   root      684: main(){return(0);}
                    685: EOF
1.1.1.13  root      686: if { (eval echo configure:687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root      687:   ac_cv_prog_cc_works=yes
                    688:   # If we can't run a trivial program, we are probably using a cross compiler.
                    689:   if (./conftest; exit) 2>/dev/null; then
                    690:     ac_cv_prog_cc_cross=no
                    691:   else
                    692:     ac_cv_prog_cc_cross=yes
                    693:   fi
                    694: else
                    695:   echo "configure: failed program was:" >&5
                    696:   cat conftest.$ac_ext >&5
                    697:   ac_cv_prog_cc_works=no
                    698: fi
                    699: rm -fr conftest*
1.1.1.9   root      700: ac_ext=c
                    701: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    702: ac_cpp='$CPP $CPPFLAGS'
                    703: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    704: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    705: cross_compiling=$ac_cv_prog_cc_cross
1.1.1.4   root      706: 
                    707: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                    708: if test $ac_cv_prog_cc_works = no; then
                    709:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                    710: fi
                    711: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.1.1.13  root      712: echo "configure:713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1.1.4   root      713: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                    714: cross_compiling=$ac_cv_prog_cc_cross
                    715: 
1.1       root      716: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.1.1.13  root      717: echo "configure:718: checking whether we are using GNU C" >&5
1.1       root      718: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                    719:   echo $ac_n "(cached) $ac_c" 1>&6
                    720: else
                    721:   cat > conftest.c <<EOF
                    722: #ifdef __GNUC__
                    723:   yes;
                    724: #endif
                    725: EOF
1.1.1.13  root      726: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       root      727:   ac_cv_prog_gcc=yes
                    728: else
                    729:   ac_cv_prog_gcc=no
                    730: fi
                    731: fi
                    732: 
                    733: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1.1.1.4   root      734: 
1.1       root      735: if test $ac_cv_prog_gcc = yes; then
                    736:   GCC=yes
1.1.1.9   root      737: else
                    738:   GCC=
                    739: fi
                    740: 
                    741: ac_test_CFLAGS="${CFLAGS+set}"
                    742: ac_save_CFLAGS="$CFLAGS"
                    743: CFLAGS=
                    744: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.1.1.13  root      745: echo "configure:746: checking whether ${CC-cc} accepts -g" >&5
1.1.1.4   root      746: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1.1       root      747:   echo $ac_n "(cached) $ac_c" 1>&6
                    748: else
                    749:   echo 'void f(){}' > conftest.c
                    750: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1.1.1.4   root      751:   ac_cv_prog_cc_g=yes
1.1       root      752: else
1.1.1.4   root      753:   ac_cv_prog_cc_g=no
1.1       root      754: fi
                    755: rm -f conftest*
                    756: 
                    757: fi
                    758: 
1.1.1.4   root      759: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1.1.1.9   root      760: if test "$ac_test_CFLAGS" = set; then
                    761:   CFLAGS="$ac_save_CFLAGS"
                    762: elif test $ac_cv_prog_cc_g = yes; then
                    763:   if test "$GCC" = yes; then
1.1.1.4   root      764:     CFLAGS="-g -O2"
                    765:   else
1.1.1.9   root      766:     CFLAGS="-g"
1.1       root      767:   fi
                    768: else
1.1.1.9   root      769:   if test "$GCC" = yes; then
                    770:     CFLAGS="-O2"
                    771:   else
                    772:     CFLAGS=
                    773:   fi
1.1       root      774: fi
                    775: 
                    776: 
                    777: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.1.1.13  root      778: echo "configure:779: checking how to run the C preprocessor" >&5
1.1       root      779: # On Suns, sometimes $CPP names a directory.
                    780: if test -n "$CPP" && test -d "$CPP"; then
                    781:   CPP=
                    782: fi
                    783: if test -z "$CPP"; then
                    784: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
                    785:   echo $ac_n "(cached) $ac_c" 1>&6
                    786: else
                    787:     # This must be in double quotes, not single quotes, because CPP may get
                    788:   # substituted into the Makefile and "${CC-cc}" will confuse make.
                    789:   CPP="${CC-cc} -E"
                    790:   # On the NeXT, cc -E runs the code through the compiler's parser,
                    791:   # not just through cpp.
                    792:   cat > conftest.$ac_ext <<EOF
1.1.1.13  root      793: #line 794 "configure"
1.1       root      794: #include "confdefs.h"
                    795: #include <assert.h>
                    796: Syntax Error
                    797: EOF
                    798: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.13  root      799: { (eval echo configure:800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root      800: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root      801: if test -z "$ac_err"; then
                    802:   :
                    803: else
                    804:   echo "$ac_err" >&5
1.1.1.4   root      805:   echo "configure: failed program was:" >&5
                    806:   cat conftest.$ac_ext >&5
1.1       root      807:   rm -rf conftest*
                    808:   CPP="${CC-cc} -E -traditional-cpp"
                    809:   cat > conftest.$ac_ext <<EOF
1.1.1.13  root      810: #line 811 "configure"
1.1.1.9   root      811: #include "confdefs.h"
                    812: #include <assert.h>
                    813: Syntax Error
                    814: EOF
                    815: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.13  root      816: { (eval echo configure:817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root      817: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                    818: if test -z "$ac_err"; then
                    819:   :
                    820: else
                    821:   echo "$ac_err" >&5
                    822:   echo "configure: failed program was:" >&5
                    823:   cat conftest.$ac_ext >&5
                    824:   rm -rf conftest*
                    825:   CPP="${CC-cc} -nologo -E"
                    826:   cat > conftest.$ac_ext <<EOF
1.1.1.13  root      827: #line 828 "configure"
1.1       root      828: #include "confdefs.h"
                    829: #include <assert.h>
                    830: Syntax Error
                    831: EOF
                    832: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.13  root      833: { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root      834: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root      835: if test -z "$ac_err"; then
                    836:   :
                    837: else
                    838:   echo "$ac_err" >&5
1.1.1.4   root      839:   echo "configure: failed program was:" >&5
                    840:   cat conftest.$ac_ext >&5
1.1       root      841:   rm -rf conftest*
                    842:   CPP=/lib/cpp
                    843: fi
                    844: rm -f conftest*
                    845: fi
                    846: rm -f conftest*
1.1.1.9   root      847: fi
                    848: rm -f conftest*
1.1       root      849:   ac_cv_prog_CPP="$CPP"
                    850: fi
                    851:   CPP="$ac_cv_prog_CPP"
                    852: else
                    853:   ac_cv_prog_CPP="$CPP"
                    854: fi
                    855: echo "$ac_t""$CPP" 1>&6
                    856: 
                    857: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.1.1.13  root      858: echo "configure:859: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1.1.4   root      859: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1.1       root      860: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    861:   echo $ac_n "(cached) $ac_c" 1>&6
                    862: else
                    863:   cat > conftestmake <<\EOF
                    864: all:
                    865:        @echo 'ac_maketemp="${MAKE}"'
                    866: EOF
                    867: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    868: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    869: if test -n "$ac_maketemp"; then
                    870:   eval ac_cv_prog_make_${ac_make}_set=yes
                    871: else
                    872:   eval ac_cv_prog_make_${ac_make}_set=no
                    873: fi
                    874: rm -f conftestmake
                    875: fi
                    876: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    877:   echo "$ac_t""yes" 1>&6
                    878:   SET_MAKE=
                    879: else
                    880:   echo "$ac_t""no" 1>&6
                    881:   SET_MAKE="MAKE=${MAKE-make}"
                    882: fi
                    883: 
1.1.1.11  root      884: # Extract the first word of "makedepend", so it can be a program name with args.
                    885: set dummy makedepend; ac_word=$2
                    886: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.13  root      887: echo "configure:888: checking for $ac_word" >&5
1.1.1.11  root      888: if eval "test \"`echo '$''{'ac_cv_path_MAKEDEPPRG'+set}'`\" = set"; then
                    889:   echo $ac_n "(cached) $ac_c" 1>&6
                    890: else
                    891:   case "$MAKEDEPPRG" in
                    892:   /*)
                    893:   ac_cv_path_MAKEDEPPRG="$MAKEDEPPRG" # Let the user override the test with a path.
                    894:   ;;
                    895:   ?:/*)                         
                    896:   ac_cv_path_MAKEDEPPRG="$MAKEDEPPRG" # Let the user override the test with a dos path.
                    897:   ;;
                    898:   *)
                    899:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    900:   ac_dummy="$PATH"
                    901:   for ac_dir in $ac_dummy; do 
                    902:     test -z "$ac_dir" && ac_dir=.
                    903:     if test -f $ac_dir/$ac_word; then
                    904:       ac_cv_path_MAKEDEPPRG="$ac_dir/$ac_word"
                    905:       break
                    906:     fi
                    907:   done
                    908:   IFS="$ac_save_ifs"
                    909:   test -z "$ac_cv_path_MAKEDEPPRG" && ac_cv_path_MAKEDEPPRG="not-found"
                    910:   ;;
                    911: esac
                    912: fi
                    913: MAKEDEPPRG="$ac_cv_path_MAKEDEPPRG"
                    914: if test -n "$MAKEDEPPRG"; then
                    915:   echo "$ac_t""$MAKEDEPPRG" 1>&6
                    916: else
                    917:   echo "$ac_t""no" 1>&6
                    918: fi
                    919: 
1.1.1.4   root      920: # Extract the first word of "file", so it can be a program name with args.
                    921: set dummy file; ac_word=$2
                    922: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.13  root      923: echo "configure:924: checking for $ac_word" >&5
1.1.1.4   root      924: if eval "test \"`echo '$''{'ac_cv_path_FILEPRG'+set}'`\" = set"; then
                    925:   echo $ac_n "(cached) $ac_c" 1>&6
                    926: else
                    927:   case "$FILEPRG" in
                    928:   /*)
                    929:   ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a path.
                    930:   ;;
1.1.1.9   root      931:   ?:/*)                         
                    932:   ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a dos path.
                    933:   ;;
1.1.1.4   root      934:   *)
1.1.1.9   root      935:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    936:   ac_dummy="$PATH"
                    937:   for ac_dir in $ac_dummy; do 
1.1.1.4   root      938:     test -z "$ac_dir" && ac_dir=.
                    939:     if test -f $ac_dir/$ac_word; then
                    940:       ac_cv_path_FILEPRG="$ac_dir/$ac_word"
                    941:       break
                    942:     fi
                    943:   done
                    944:   IFS="$ac_save_ifs"
                    945:   test -z "$ac_cv_path_FILEPRG" && ac_cv_path_FILEPRG="not-found"
                    946:   ;;
                    947: esac
                    948: fi
                    949: FILEPRG="$ac_cv_path_FILEPRG"
                    950: if test -n "$FILEPRG"; then
                    951:   echo "$ac_t""$FILEPRG" 1>&6
                    952: else
                    953:   echo "$ac_t""no" 1>&6
                    954: fi
                    955: 
1.1.1.6   root      956: # Extract the first word of "wrc", so it can be a program name with args.
                    957: set dummy wrc; ac_word=$2
                    958: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.13  root      959: echo "configure:960: checking for $ac_word" >&5
1.1.1.6   root      960: if eval "test \"`echo '$''{'ac_cv_path_WRCPRG'+set}'`\" = set"; then
                    961:   echo $ac_n "(cached) $ac_c" 1>&6
                    962: else
                    963:   case "$WRCPRG" in
                    964:   /*)
                    965:   ac_cv_path_WRCPRG="$WRCPRG" # Let the user override the test with a path.
                    966:   ;;
1.1.1.9   root      967:   ?:/*)                         
                    968:   ac_cv_path_WRCPRG="$WRCPRG" # Let the user override the test with a dos path.
                    969:   ;;
1.1.1.6   root      970:   *)
1.1.1.9   root      971:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    972:   ac_dummy="$PATH"
                    973:   for ac_dir in $ac_dummy; do 
1.1.1.6   root      974:     test -z "$ac_dir" && ac_dir=.
                    975:     if test -f $ac_dir/$ac_word; then
                    976:       ac_cv_path_WRCPRG="$ac_dir/$ac_word"
                    977:       break
                    978:     fi
                    979:   done
                    980:   IFS="$ac_save_ifs"
                    981:   test -z "$ac_cv_path_WRCPRG" && ac_cv_path_WRCPRG="not-found"
                    982:   ;;
                    983: esac
                    984: fi
                    985: WRCPRG="$ac_cv_path_WRCPRG"
                    986: if test -n "$WRCPRG"; then
                    987:   echo "$ac_t""$WRCPRG" 1>&6
                    988: else
                    989:   echo "$ac_t""no" 1>&6
                    990: fi
                    991: 
                    992: # Extract the first word of "rcl", so it can be a program name with args.
                    993: set dummy rcl; ac_word=$2
                    994: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.13  root      995: echo "configure:996: checking for $ac_word" >&5
1.1.1.6   root      996: if eval "test \"`echo '$''{'ac_cv_path_RCLPRG'+set}'`\" = set"; then
                    997:   echo $ac_n "(cached) $ac_c" 1>&6
                    998: else
                    999:   case "$RCLPRG" in
                   1000:   /*)
                   1001:   ac_cv_path_RCLPRG="$RCLPRG" # Let the user override the test with a path.
                   1002:   ;;
1.1.1.9   root     1003:   ?:/*)                         
                   1004:   ac_cv_path_RCLPRG="$RCLPRG" # Let the user override the test with a dos path.
                   1005:   ;;
1.1.1.6   root     1006:   *)
1.1.1.9   root     1007:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1008:   ac_dummy="$PATH"
                   1009:   for ac_dir in $ac_dummy; do 
1.1.1.6   root     1010:     test -z "$ac_dir" && ac_dir=.
                   1011:     if test -f $ac_dir/$ac_word; then
                   1012:       ac_cv_path_RCLPRG="$ac_dir/$ac_word"
                   1013:       break
                   1014:     fi
                   1015:   done
                   1016:   IFS="$ac_save_ifs"
                   1017:   test -z "$ac_cv_path_RCLPRG" && ac_cv_path_RCLPRG="not-found"
                   1018:   ;;
                   1019: esac
                   1020: fi
                   1021: RCLPRG="$ac_cv_path_RCLPRG"
                   1022: if test -n "$RCLPRG"; then
                   1023:   echo "$ac_t""$RCLPRG" 1>&6
                   1024: else
                   1025:   echo "$ac_t""no" 1>&6
                   1026: fi
                   1027: 
1.1       root     1028: 
                   1029: echo $ac_n "checking for AIX""... $ac_c" 1>&6
1.1.1.13  root     1030: echo "configure:1031: checking for AIX" >&5
1.1       root     1031: cat > conftest.$ac_ext <<EOF
1.1.1.13  root     1032: #line 1033 "configure"
1.1       root     1033: #include "confdefs.h"
                   1034: #ifdef _AIX
                   1035:   yes
                   1036: #endif
                   1037: 
                   1038: EOF
                   1039: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1040:   egrep "yes" >/dev/null 2>&1; then
                   1041:   rm -rf conftest*
                   1042:   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
                   1043: #define _ALL_SOURCE 1
                   1044: EOF
                   1045: 
                   1046: else
                   1047:   rm -rf conftest*
                   1048:   echo "$ac_t""no" 1>&6
                   1049: fi
                   1050: rm -f conftest*
                   1051: 
                   1052: 
                   1053: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1.1.1.13  root     1054: echo "configure:1055: checking for POSIXized ISC" >&5
1.1       root     1055: if test -d /etc/conf/kconfig.d &&
                   1056:   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
                   1057: then
                   1058:   echo "$ac_t""yes" 1>&6
                   1059:   ISC=yes # If later tests want to check for ISC.
                   1060:   cat >> confdefs.h <<\EOF
                   1061: #define _POSIX_SOURCE 1
                   1062: EOF
                   1063: 
                   1064:   if test "$GCC" = yes; then
                   1065:     CC="$CC -posix"
                   1066:   else
                   1067:     CC="$CC -Xp"
                   1068:   fi
                   1069: else
                   1070:   echo "$ac_t""no" 1>&6
                   1071:   ISC=
                   1072: fi
                   1073: 
                   1074: 
1.1.1.6   root     1075: echo $ac_n "checking for Watcom C""... $ac_c" 1>&6
1.1.1.13  root     1076: echo "configure:1077: checking for Watcom C" >&5
1.1.1.6   root     1077: cat > conftest.$ac_ext <<EOF
1.1.1.13  root     1078: #line 1079 "configure"
1.1.1.6   root     1079: #include "confdefs.h"
                   1080: #ifdef __WATCOMC__
                   1081:   yes
                   1082: #endif
                   1083: 
                   1084: EOF
                   1085: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1086:   egrep "yes" >/dev/null 2>&1; then
                   1087:   rm -rf conftest*
                   1088:   uae_cv_prog_cc_watcom=yes
                   1089: else
                   1090:   rm -rf conftest*
                   1091:   uae_cv_prog_cc_watcom=no
                   1092: fi
                   1093: rm -f conftest*
                   1094: 
                   1095: echo "$ac_t""$uae_cv_prog_cc_watcom" 1>&6
                   1096: 
                   1097: echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1.1.1.13  root     1098: echo "configure:1099: checking for Cygwin32 environment" >&5
1.1.1.6   root     1099: if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
                   1100:   echo $ac_n "(cached) $ac_c" 1>&6
                   1101: else
                   1102:   cat > conftest.$ac_ext <<EOF
1.1.1.13  root     1103: #line 1104 "configure"
1.1.1.6   root     1104: #include "confdefs.h"
                   1105: 
                   1106: int main() {
                   1107: return __CYGWIN32__;
                   1108: ; return 0; }
                   1109: EOF
1.1.1.13  root     1110: if { (eval echo configure:1111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.6   root     1111:   rm -rf conftest*
                   1112:   am_cv_cygwin32=yes
                   1113: else
                   1114:   echo "configure: failed program was:" >&5
                   1115:   cat conftest.$ac_ext >&5
                   1116:   rm -rf conftest*
                   1117:   am_cv_cygwin32=no
                   1118: fi
                   1119: rm -f conftest*
                   1120: rm -f conftest*
                   1121: fi
                   1122: 
                   1123: echo "$ac_t""$am_cv_cygwin32" 1>&6
                   1124: CYGWIN32=
                   1125: test "$am_cv_cygwin32" = yes && CYGWIN32=yes
                   1126: echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
1.1.1.13  root     1127: echo "configure:1128: checking for Mingw32 environment" >&5
1.1.1.6   root     1128: if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
                   1129:   echo $ac_n "(cached) $ac_c" 1>&6
                   1130: else
                   1131:   cat > conftest.$ac_ext <<EOF
1.1.1.13  root     1132: #line 1133 "configure"
1.1.1.6   root     1133: #include "confdefs.h"
                   1134: 
                   1135: int main() {
                   1136: return __MINGW32__;
                   1137: ; return 0; }
                   1138: EOF
1.1.1.13  root     1139: if { (eval echo configure:1140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.6   root     1140:   rm -rf conftest*
                   1141:   am_cv_mingw32=yes
                   1142: else
                   1143:   echo "configure: failed program was:" >&5
                   1144:   cat conftest.$ac_ext >&5
                   1145:   rm -rf conftest*
                   1146:   am_cv_mingw32=no
                   1147: fi
                   1148: rm -f conftest*
                   1149: rm -f conftest*
                   1150: fi
                   1151: 
                   1152: echo "$ac_t""$am_cv_mingw32" 1>&6
                   1153: MINGW32=
                   1154: test "$am_cv_mingw32" = yes && MINGW32=yes
                   1155: 
                   1156: 
                   1157: echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1.1.1.13  root     1158: echo "configure:1159: checking for executable suffix" >&5
1.1.1.6   root     1159: if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
                   1160:   echo $ac_n "(cached) $ac_c" 1>&6
                   1161: else
                   1162:   if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
                   1163: am_cv_exeext=.exe
                   1164: else
                   1165: cat > am_c_test.c << 'EOF'
                   1166: int main() {
                   1167: /* Nothing needed here */
                   1168: }
                   1169: EOF
                   1170: ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
                   1171: am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
                   1172: rm -f am_c_test*
                   1173: fi
                   1174: 
                   1175: test x"${am_cv_exeext}" = x && am_cv_exeext=no
                   1176: fi
                   1177: EXEEXT=""
                   1178: test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
                   1179: echo "$ac_t""${am_cv_exeext}" 1>&6
                   1180: 
                   1181: 
1.1.1.4   root     1182: NR_WARNINGS=0
                   1183: NR_ERRORS=0
                   1184: 
1.1.1.6   root     1185: tmp_save_dir=`pwd`
                   1186: cd $srcdir
                   1187: abssrcdir=`pwd`
                   1188: cd $tmp_save_dir
                   1189: 
1.1.1.4   root     1190: NEED_THREAD_SUPPORT=no
                   1191: 
                   1192: ADDITIONAL_CFLAGS=
                   1193: OPTIMIZE_CFLAGS=
                   1194: WARNING_CFLAGS=
                   1195: DEBUG_CFLAGS=
                   1196: NO_SCHED_CFLAGS=
1.1.1.14  root     1197: LDFLAGS="$LDFLAGS -L."
1.1.1.4   root     1198: 
                   1199: HAVE_BEOS=no
                   1200: HAVE_POS=no
                   1201: echo $ac_n "checking for main in -lMedia_s""... $ac_c" 1>&6
1.1.1.14  root     1202: echo "configure:1203: checking for main in -lMedia_s" >&5
1.1.1.4   root     1203: ac_lib_var=`echo Media_s'_'main | sed 'y%./+-%__p_%'`
1.1       root     1204: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1205:   echo $ac_n "(cached) $ac_c" 1>&6
                   1206: else
                   1207:   ac_save_LIBS="$LIBS"
                   1208: LIBS="-lMedia_s  $LIBS"
                   1209: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1210: #line 1211 "configure"
1.1       root     1211: #include "confdefs.h"
                   1212: 
1.1.1.4   root     1213: int main() {
1.1       root     1214: main()
                   1215: ; return 0; }
                   1216: EOF
1.1.1.14  root     1217: if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1218:   rm -rf conftest*
                   1219:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1220: else
1.1.1.4   root     1221:   echo "configure: failed program was:" >&5
                   1222:   cat conftest.$ac_ext >&5
1.1       root     1223:   rm -rf conftest*
                   1224:   eval "ac_cv_lib_$ac_lib_var=no"
                   1225: fi
                   1226: rm -f conftest*
                   1227: LIBS="$ac_save_LIBS"
                   1228: 
                   1229: fi
                   1230: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1231:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     1232:   HAVE_MEDIA_LIB=yes
1.1       root     1233: else
                   1234:   echo "$ac_t""no" 1>&6
1.1.1.4   root     1235: HAVE_MEDIA_LIB=no
1.1       root     1236: fi
                   1237: 
1.1.1.4   root     1238: echo $ac_n "checking for main in -lNeXT_s""... $ac_c" 1>&6
1.1.1.14  root     1239: echo "configure:1240: checking for main in -lNeXT_s" >&5
1.1.1.4   root     1240: ac_lib_var=`echo NeXT_s'_'main | sed 'y%./+-%__p_%'`
1.1       root     1241: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1242:   echo $ac_n "(cached) $ac_c" 1>&6
                   1243: else
                   1244:   ac_save_LIBS="$LIBS"
                   1245: LIBS="-lNeXT_s  $LIBS"
                   1246: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1247: #line 1248 "configure"
1.1       root     1248: #include "confdefs.h"
                   1249: 
1.1.1.4   root     1250: int main() {
1.1       root     1251: main()
                   1252: ; return 0; }
                   1253: EOF
1.1.1.14  root     1254: if { (eval echo configure:1255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1255:   rm -rf conftest*
                   1256:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1257: else
1.1.1.4   root     1258:   echo "configure: failed program was:" >&5
                   1259:   cat conftest.$ac_ext >&5
1.1       root     1260:   rm -rf conftest*
                   1261:   eval "ac_cv_lib_$ac_lib_var=no"
                   1262: fi
                   1263: rm -f conftest*
                   1264: LIBS="$ac_save_LIBS"
                   1265: 
                   1266: fi
                   1267: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1268:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     1269:   HAVE_NEXT_LIB=yes
1.1       root     1270: else
                   1271:   echo "$ac_t""no" 1>&6
1.1.1.4   root     1272: HAVE_NEXT_LIB=no
1.1       root     1273: fi
                   1274: 
1.1.1.11  root     1275: echo $ac_n "checking for cos in -lmoto""... $ac_c" 1>&6
1.1.1.14  root     1276: echo "configure:1277: checking for cos in -lmoto" >&5
1.1.1.11  root     1277: ac_lib_var=`echo moto'_'cos | sed 'y%./+-%__p_%'`
                   1278: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1279:   echo $ac_n "(cached) $ac_c" 1>&6
                   1280: else
                   1281:   ac_save_LIBS="$LIBS"
                   1282: LIBS="-lmoto  $LIBS"
                   1283: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1284: #line 1285 "configure"
1.1.1.11  root     1285: #include "confdefs.h"
                   1286: /* Override any gcc2 internal prototype to avoid an error.  */
                   1287: /* We use char because int might match the return type of a gcc2
                   1288:     builtin and then its argument prototype would still apply.  */
                   1289: char cos();
                   1290: 
                   1291: int main() {
                   1292: cos()
                   1293: ; return 0; }
                   1294: EOF
1.1.1.14  root     1295: if { (eval echo configure:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.11  root     1296:   rm -rf conftest*
                   1297:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1298: else
                   1299:   echo "configure: failed program was:" >&5
                   1300:   cat conftest.$ac_ext >&5
                   1301:   rm -rf conftest*
                   1302:   eval "ac_cv_lib_$ac_lib_var=no"
                   1303: fi
                   1304: rm -f conftest*
                   1305: LIBS="$ac_save_LIBS"
                   1306: 
                   1307: fi
                   1308: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1309:   echo "$ac_t""yes" 1>&6
                   1310:   HAVE_MOTO_LIB=yes
                   1311: else
                   1312:   echo "$ac_t""no" 1>&6
                   1313: HAVE_MOTO_LIB=no
                   1314: fi
                   1315: 
1.1.1.4   root     1316: echo $ac_n "checking for OpenLibrary in -lamiga""... $ac_c" 1>&6
1.1.1.14  root     1317: echo "configure:1318: checking for OpenLibrary in -lamiga" >&5
1.1.1.4   root     1318: ac_lib_var=`echo amiga'_'OpenLibrary | sed 'y%./+-%__p_%'`
1.1.1.3   root     1319: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1320:   echo $ac_n "(cached) $ac_c" 1>&6
                   1321: else
                   1322:   ac_save_LIBS="$LIBS"
                   1323: LIBS="-lamiga  $LIBS"
                   1324: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1325: #line 1326 "configure"
1.1.1.3   root     1326: #include "confdefs.h"
                   1327: /* Override any gcc2 internal prototype to avoid an error.  */
                   1328: /* We use char because int might match the return type of a gcc2
                   1329:     builtin and then its argument prototype would still apply.  */
                   1330: char OpenLibrary();
                   1331: 
1.1.1.4   root     1332: int main() {
1.1.1.3   root     1333: OpenLibrary()
                   1334: ; return 0; }
                   1335: EOF
1.1.1.14  root     1336: if { (eval echo configure:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.3   root     1337:   rm -rf conftest*
                   1338:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1339: else
1.1.1.4   root     1340:   echo "configure: failed program was:" >&5
                   1341:   cat conftest.$ac_ext >&5
1.1.1.3   root     1342:   rm -rf conftest*
                   1343:   eval "ac_cv_lib_$ac_lib_var=no"
                   1344: fi
                   1345: rm -f conftest*
                   1346: LIBS="$ac_save_LIBS"
                   1347: 
                   1348: fi
                   1349: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1350:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     1351:   HAVE_AMIGA_LIB=yes
1.1.1.3   root     1352: else
                   1353:   echo "$ac_t""no" 1>&6
                   1354: HAVE_AMIGA_LIB=n
                   1355: fi
                   1356: 
1.1.1.4   root     1357: echo $ac_n "checking for vga_setmode in -lvga""... $ac_c" 1>&6
1.1.1.14  root     1358: echo "configure:1359: checking for vga_setmode in -lvga" >&5
1.1.1.4   root     1359: ac_lib_var=`echo vga'_'vga_setmode | sed 'y%./+-%__p_%'`
1.1       root     1360: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1361:   echo $ac_n "(cached) $ac_c" 1>&6
                   1362: else
                   1363:   ac_save_LIBS="$LIBS"
                   1364: LIBS="-lvga  $LIBS"
                   1365: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1366: #line 1367 "configure"
1.1       root     1367: #include "confdefs.h"
                   1368: /* Override any gcc2 internal prototype to avoid an error.  */
                   1369: /* We use char because int might match the return type of a gcc2
                   1370:     builtin and then its argument prototype would still apply.  */
                   1371: char vga_setmode();
                   1372: 
1.1.1.4   root     1373: int main() {
1.1       root     1374: vga_setmode()
                   1375: ; return 0; }
                   1376: EOF
1.1.1.14  root     1377: if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1378:   rm -rf conftest*
                   1379:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1380: else
1.1.1.4   root     1381:   echo "configure: failed program was:" >&5
                   1382:   cat conftest.$ac_ext >&5
1.1       root     1383:   rm -rf conftest*
                   1384:   eval "ac_cv_lib_$ac_lib_var=no"
                   1385: fi
                   1386: rm -f conftest*
                   1387: LIBS="$ac_save_LIBS"
                   1388: 
                   1389: fi
                   1390: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1391:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     1392:   HAVE_SVGA_LIB=yes
1.1       root     1393: else
                   1394:   echo "$ac_t""no" 1>&6
1.1.1.4   root     1395: HAVE_SVGA_LIB=no
1.1       root     1396: fi
                   1397: 
1.1.1.4   root     1398: echo $ac_n "checking for AFOpenAudioConn in -lAF""... $ac_c" 1>&6
1.1.1.14  root     1399: echo "configure:1400: checking for AFOpenAudioConn in -lAF" >&5
1.1.1.4   root     1400: ac_lib_var=`echo AF'_'AFOpenAudioConn | sed 'y%./+-%__p_%'`
1.1       root     1401: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1402:   echo $ac_n "(cached) $ac_c" 1>&6
                   1403: else
                   1404:   ac_save_LIBS="$LIBS"
                   1405: LIBS="-lAF  $LIBS"
                   1406: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1407: #line 1408 "configure"
1.1       root     1408: #include "confdefs.h"
                   1409: /* Override any gcc2 internal prototype to avoid an error.  */
                   1410: /* We use char because int might match the return type of a gcc2
                   1411:     builtin and then its argument prototype would still apply.  */
                   1412: char AFOpenAudioConn();
                   1413: 
1.1.1.4   root     1414: int main() {
1.1       root     1415: AFOpenAudioConn()
                   1416: ; return 0; }
                   1417: EOF
1.1.1.14  root     1418: if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     1419:   rm -rf conftest*
                   1420:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1421: else
                   1422:   echo "configure: failed program was:" >&5
                   1423:   cat conftest.$ac_ext >&5
                   1424:   rm -rf conftest*
                   1425:   eval "ac_cv_lib_$ac_lib_var=no"
                   1426: fi
                   1427: rm -f conftest*
                   1428: LIBS="$ac_save_LIBS"
                   1429: 
                   1430: fi
                   1431: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1432:   echo "$ac_t""yes" 1>&6
                   1433:   HAVE_AF_LIB=yes
                   1434: else
                   1435:   echo "$ac_t""no" 1>&6
                   1436: HAVE_AF_LIB=no
                   1437: fi
                   1438: 
1.1.1.6   root     1439: echo $ac_n "checking for waveOutGetNumDevs in -lmme""... $ac_c" 1>&6
1.1.1.14  root     1440: echo "configure:1441: checking for waveOutGetNumDevs in -lmme" >&5
1.1.1.6   root     1441: ac_lib_var=`echo mme'_'waveOutGetNumDevs | sed 'y%./+-%__p_%'`
                   1442: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1443:   echo $ac_n "(cached) $ac_c" 1>&6
                   1444: else
                   1445:   ac_save_LIBS="$LIBS"
                   1446: LIBS="-lmme  $LIBS"
                   1447: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1448: #line 1449 "configure"
1.1.1.6   root     1449: #include "confdefs.h"
                   1450: /* Override any gcc2 internal prototype to avoid an error.  */
                   1451: /* We use char because int might match the return type of a gcc2
                   1452:     builtin and then its argument prototype would still apply.  */
                   1453: char waveOutGetNumDevs();
                   1454: 
                   1455: int main() {
                   1456: waveOutGetNumDevs()
                   1457: ; return 0; }
                   1458: EOF
1.1.1.14  root     1459: if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     1460:   rm -rf conftest*
                   1461:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1462: else
                   1463:   echo "configure: failed program was:" >&5
                   1464:   cat conftest.$ac_ext >&5
                   1465:   rm -rf conftest*
                   1466:   eval "ac_cv_lib_$ac_lib_var=no"
                   1467: fi
                   1468: rm -f conftest*
                   1469: LIBS="$ac_save_LIBS"
                   1470: 
                   1471: fi
                   1472: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1473:   echo "$ac_t""yes" 1>&6
                   1474:   HAVE_MME_LIB=yes
                   1475: else
                   1476:   echo "$ac_t""no" 1>&6
                   1477: HAVE_MME_LIB=no
                   1478: fi
                   1479: 
1.1.1.4   root     1480: echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
1.1.1.14  root     1481: echo "configure:1482: checking for waddch in -lncurses" >&5
1.1.1.4   root     1482: ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
                   1483: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1484:   echo $ac_n "(cached) $ac_c" 1>&6
                   1485: else
                   1486:   ac_save_LIBS="$LIBS"
                   1487: LIBS="-lncurses  $LIBS"
                   1488: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1489: #line 1490 "configure"
1.1.1.4   root     1490: #include "confdefs.h"
                   1491: /* Override any gcc2 internal prototype to avoid an error.  */
                   1492: /* We use char because int might match the return type of a gcc2
                   1493:     builtin and then its argument prototype would still apply.  */
                   1494: char waddch();
                   1495: 
                   1496: int main() {
                   1497: waddch()
                   1498: ; return 0; }
                   1499: EOF
1.1.1.14  root     1500: if { (eval echo configure:1501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     1501:   rm -rf conftest*
                   1502:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1503: else
                   1504:   echo "configure: failed program was:" >&5
                   1505:   cat conftest.$ac_ext >&5
                   1506:   rm -rf conftest*
                   1507:   eval "ac_cv_lib_$ac_lib_var=no"
                   1508: fi
                   1509: rm -f conftest*
                   1510: LIBS="$ac_save_LIBS"
                   1511: 
                   1512: fi
                   1513: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1514:   echo "$ac_t""yes" 1>&6
                   1515:   HAVE_NCURSES_LIB=yes
                   1516: else
                   1517:   echo "$ac_t""no" 1>&6
                   1518: HAVE_NCURSES_LIB=no
                   1519: fi
                   1520: 
1.1.1.6   root     1521: echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
1.1.1.14  root     1522: echo "configure:1523: checking for sem_init in -lposix4" >&5
1.1.1.6   root     1523: ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
1.1.1.4   root     1524: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1525:   echo $ac_n "(cached) $ac_c" 1>&6
                   1526: else
                   1527:   ac_save_LIBS="$LIBS"
1.1.1.6   root     1528: LIBS="-lposix4  $LIBS"
1.1.1.4   root     1529: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1530: #line 1531 "configure"
1.1.1.4   root     1531: #include "confdefs.h"
                   1532: /* Override any gcc2 internal prototype to avoid an error.  */
                   1533: /* We use char because int might match the return type of a gcc2
                   1534:     builtin and then its argument prototype would still apply.  */
1.1.1.6   root     1535: char sem_init();
1.1.1.4   root     1536: 
                   1537: int main() {
1.1.1.6   root     1538: sem_init()
1.1.1.4   root     1539: ; return 0; }
                   1540: EOF
1.1.1.14  root     1541: if { (eval echo configure:1542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     1542:   rm -rf conftest*
                   1543:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1544: else
                   1545:   echo "configure: failed program was:" >&5
                   1546:   cat conftest.$ac_ext >&5
                   1547:   rm -rf conftest*
                   1548:   eval "ac_cv_lib_$ac_lib_var=no"
                   1549: fi
                   1550: rm -f conftest*
                   1551: LIBS="$ac_save_LIBS"
                   1552: 
                   1553: fi
                   1554: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1555:   echo "$ac_t""yes" 1>&6
1.1.1.6   root     1556:   HAVE_POSIX4_LIB=yes
1.1.1.4   root     1557: else
                   1558:   echo "$ac_t""no" 1>&6
1.1.1.6   root     1559: HAVE_POSIX4_LIB=no
1.1.1.4   root     1560: fi
                   1561: 
1.1.1.6   root     1562: echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
1.1.1.14  root     1563: echo "configure:1564: checking for sem_init in -lrt" >&5
1.1.1.6   root     1564: ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
1.1.1.4   root     1565: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1566:   echo $ac_n "(cached) $ac_c" 1>&6
                   1567: else
                   1568:   ac_save_LIBS="$LIBS"
1.1.1.6   root     1569: LIBS="-lrt  $LIBS"
1.1.1.4   root     1570: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1571: #line 1572 "configure"
1.1.1.4   root     1572: #include "confdefs.h"
                   1573: /* Override any gcc2 internal prototype to avoid an error.  */
                   1574: /* We use char because int might match the return type of a gcc2
                   1575:     builtin and then its argument prototype would still apply.  */
                   1576: char sem_init();
                   1577: 
                   1578: int main() {
                   1579: sem_init()
                   1580: ; return 0; }
                   1581: EOF
1.1.1.14  root     1582: if { (eval echo configure:1583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     1583:   rm -rf conftest*
                   1584:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1585: else
                   1586:   echo "configure: failed program was:" >&5
                   1587:   cat conftest.$ac_ext >&5
                   1588:   rm -rf conftest*
                   1589:   eval "ac_cv_lib_$ac_lib_var=no"
                   1590: fi
                   1591: rm -f conftest*
                   1592: LIBS="$ac_save_LIBS"
                   1593: 
                   1594: fi
                   1595: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1596:   echo "$ac_t""yes" 1>&6
1.1.1.6   root     1597:   HAVE_RT_LIB=yes
1.1.1.4   root     1598: else
                   1599:   echo "$ac_t""no" 1>&6
1.1.1.6   root     1600: HAVE_RT_LIB=no
1.1.1.4   root     1601: fi
                   1602: 
1.1.1.8   root     1603: echo $ac_n "checking for alOpenPort in -laudio""... $ac_c" 1>&6
1.1.1.14  root     1604: echo "configure:1605: checking for alOpenPort in -laudio" >&5
1.1.1.8   root     1605: ac_lib_var=`echo audio'_'alOpenPort | sed 'y%./+-%__p_%'`
                   1606: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1607:   echo $ac_n "(cached) $ac_c" 1>&6
                   1608: else
                   1609:   ac_save_LIBS="$LIBS"
                   1610: LIBS="-laudio  $LIBS"
                   1611: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1612: #line 1613 "configure"
1.1.1.8   root     1613: #include "confdefs.h"
                   1614: /* Override any gcc2 internal prototype to avoid an error.  */
                   1615: /* We use char because int might match the return type of a gcc2
                   1616:     builtin and then its argument prototype would still apply.  */
                   1617: char alOpenPort();
                   1618: 
                   1619: int main() {
                   1620: alOpenPort()
                   1621: ; return 0; }
                   1622: EOF
1.1.1.14  root     1623: if { (eval echo configure:1624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.8   root     1624:   rm -rf conftest*
                   1625:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1626: else
                   1627:   echo "configure: failed program was:" >&5
                   1628:   cat conftest.$ac_ext >&5
                   1629:   rm -rf conftest*
                   1630:   eval "ac_cv_lib_$ac_lib_var=no"
                   1631: fi
                   1632: rm -f conftest*
                   1633: LIBS="$ac_save_LIBS"
                   1634: 
                   1635: fi
                   1636: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1637:   echo "$ac_t""yes" 1>&6
                   1638:   HAVE_SGIAUDIO_LIB=yes
                   1639: else
                   1640:   echo "$ac_t""no" 1>&6
                   1641: HAVE_SGIAUDIO_LIB=no
                   1642: fi
                   1643: 
1.1       root     1644: 
                   1645: # If we find X, set shell vars x_includes and x_libraries to the
                   1646: # paths, otherwise set no_x=yes.
                   1647: # Uses ac_ vars as temps to allow command line to override cache and checks.
                   1648: # --without-x overrides everything else, but does not touch the cache.
                   1649: echo $ac_n "checking for X""... $ac_c" 1>&6
1.1.1.14  root     1650: echo "configure:1651: checking for X" >&5
1.1       root     1651: 
                   1652: # Check whether --with-x or --without-x was given.
                   1653: if test "${with_x+set}" = set; then
                   1654:   withval="$with_x"
                   1655:   :
                   1656: fi
                   1657: 
                   1658: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   1659: if test "x$with_x" = xno; then
                   1660:   # The user explicitly disabled X.
                   1661:   have_x=disabled
                   1662: else
                   1663:   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
                   1664:     # Both variables are already set.
                   1665:     have_x=yes
                   1666:   else
                   1667: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
                   1668:   echo $ac_n "(cached) $ac_c" 1>&6
                   1669: else
                   1670:   # One or both of the vars are not set, and there is no cached value.
                   1671: ac_x_includes=NO ac_x_libraries=NO
                   1672: rm -fr conftestdir
                   1673: if mkdir conftestdir; then
                   1674:   cd conftestdir
                   1675:   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
                   1676:   cat > Imakefile <<'EOF'
                   1677: acfindx:
                   1678:        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
                   1679: EOF
                   1680:   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
                   1681:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   1682:     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
                   1683:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   1684:     for ac_extension in a so sl; do
                   1685:       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
                   1686:         test -f $ac_im_libdir/libX11.$ac_extension; then
                   1687:         ac_im_usrlibdir=$ac_im_libdir; break
                   1688:       fi
                   1689:     done
1.1.1.4   root     1690:     # Screen out bogus values from the imake configuration.  They are
                   1691:     # bogus both because they are the default anyway, and because
                   1692:     # using them would break gcc on systems where it needs fixed includes.
1.1       root     1693:     case "$ac_im_incroot" in
                   1694:        /usr/include) ;;
                   1695:        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
                   1696:     esac
                   1697:     case "$ac_im_usrlibdir" in
                   1698:        /usr/lib | /lib) ;;
                   1699:        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
                   1700:     esac
                   1701:   fi
                   1702:   cd ..
                   1703:   rm -fr conftestdir
                   1704: fi
                   1705: 
                   1706: if test "$ac_x_includes" = NO; then
                   1707:   # Guess where to find include files, by looking for this one X11 .h file.
                   1708:   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
                   1709: 
                   1710:   # First, try using that file with no special directory specified.
                   1711: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1712: #line 1713 "configure"
1.1       root     1713: #include "confdefs.h"
                   1714: #include <$x_direct_test_include>
                   1715: EOF
                   1716: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     1717: { (eval echo configure:1718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     1718: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root     1719: if test -z "$ac_err"; then
                   1720:   rm -rf conftest*
                   1721:   # We can compile using X headers with no special include directory.
                   1722: ac_x_includes=
                   1723: else
                   1724:   echo "$ac_err" >&5
1.1.1.4   root     1725:   echo "configure: failed program was:" >&5
                   1726:   cat conftest.$ac_ext >&5
1.1       root     1727:   rm -rf conftest*
                   1728:   # Look for the header file in a standard set of common directories.
1.1.1.4   root     1729: # Check X11 before X11Rn because it is often a symlink to the current release.
1.1       root     1730:   for ac_dir in               \
1.1.1.4   root     1731:     /usr/X11/include          \
1.1       root     1732:     /usr/X11R6/include        \
                   1733:     /usr/X11R5/include        \
                   1734:     /usr/X11R4/include        \
                   1735:                               \
1.1.1.4   root     1736:     /usr/include/X11          \
1.1       root     1737:     /usr/include/X11R6        \
                   1738:     /usr/include/X11R5        \
                   1739:     /usr/include/X11R4        \
                   1740:                               \
1.1.1.4   root     1741:     /usr/local/X11/include    \
1.1       root     1742:     /usr/local/X11R6/include  \
                   1743:     /usr/local/X11R5/include  \
                   1744:     /usr/local/X11R4/include  \
                   1745:                               \
1.1.1.4   root     1746:     /usr/local/include/X11    \
1.1       root     1747:     /usr/local/include/X11R6  \
                   1748:     /usr/local/include/X11R5  \
                   1749:     /usr/local/include/X11R4  \
                   1750:                               \
                   1751:     /usr/X386/include         \
                   1752:     /usr/x386/include         \
                   1753:     /usr/XFree86/include/X11  \
                   1754:                               \
                   1755:     /usr/include              \
                   1756:     /usr/local/include        \
                   1757:     /usr/unsupported/include  \
                   1758:     /usr/athena/include       \
                   1759:     /usr/local/x11r5/include  \
                   1760:     /usr/lpp/Xamples/include  \
                   1761:                               \
                   1762:     /usr/openwin/include      \
                   1763:     /usr/openwin/share/include \
                   1764:     ; \
                   1765:   do
                   1766:     if test -r "$ac_dir/$x_direct_test_include"; then
                   1767:       ac_x_includes=$ac_dir
                   1768:       break
                   1769:     fi
                   1770:   done
                   1771: fi
                   1772: rm -f conftest*
                   1773: fi # $ac_x_includes = NO
                   1774: 
                   1775: if test "$ac_x_libraries" = NO; then
                   1776:   # Check for the libraries.
                   1777: 
                   1778:   test -z "$x_direct_test_library" && x_direct_test_library=Xt
                   1779:   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
                   1780: 
                   1781:   # See if we find them without any special options.
                   1782:   # Don't add to $LIBS permanently.
                   1783:   ac_save_LIBS="$LIBS"
                   1784:   LIBS="-l$x_direct_test_library $LIBS"
                   1785: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1786: #line 1787 "configure"
1.1       root     1787: #include "confdefs.h"
                   1788: 
1.1.1.4   root     1789: int main() {
1.1       root     1790: ${x_direct_test_function}()
                   1791: ; return 0; }
                   1792: EOF
1.1.1.14  root     1793: if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1794:   rm -rf conftest*
                   1795:   LIBS="$ac_save_LIBS"
                   1796: # We can link X programs with no special library path.
                   1797: ac_x_libraries=
                   1798: else
1.1.1.4   root     1799:   echo "configure: failed program was:" >&5
                   1800:   cat conftest.$ac_ext >&5
1.1       root     1801:   rm -rf conftest*
                   1802:   LIBS="$ac_save_LIBS"
                   1803: # First see if replacing the include by lib works.
1.1.1.4   root     1804: # Check X11 before X11Rn because it is often a symlink to the current release.
1.1       root     1805: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1.1.1.4   root     1806:     /usr/X11/lib          \
1.1       root     1807:     /usr/X11R6/lib        \
                   1808:     /usr/X11R5/lib        \
                   1809:     /usr/X11R4/lib        \
                   1810:                           \
1.1.1.4   root     1811:     /usr/lib/X11          \
1.1       root     1812:     /usr/lib/X11R6        \
                   1813:     /usr/lib/X11R5        \
                   1814:     /usr/lib/X11R4        \
                   1815:                           \
1.1.1.4   root     1816:     /usr/local/X11/lib    \
1.1       root     1817:     /usr/local/X11R6/lib  \
                   1818:     /usr/local/X11R5/lib  \
                   1819:     /usr/local/X11R4/lib  \
                   1820:                           \
1.1.1.4   root     1821:     /usr/local/lib/X11    \
1.1       root     1822:     /usr/local/lib/X11R6  \
                   1823:     /usr/local/lib/X11R5  \
                   1824:     /usr/local/lib/X11R4  \
                   1825:                           \
                   1826:     /usr/X386/lib         \
                   1827:     /usr/x386/lib         \
                   1828:     /usr/XFree86/lib/X11  \
                   1829:                           \
                   1830:     /usr/lib              \
                   1831:     /usr/local/lib        \
                   1832:     /usr/unsupported/lib  \
                   1833:     /usr/athena/lib       \
                   1834:     /usr/local/x11r5/lib  \
                   1835:     /usr/lpp/Xamples/lib  \
1.1.1.4   root     1836:     /lib/usr/lib/X11     \
1.1       root     1837:                           \
                   1838:     /usr/openwin/lib      \
                   1839:     /usr/openwin/share/lib \
                   1840:     ; \
                   1841: do
                   1842:   for ac_extension in a so sl; do
                   1843:     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
                   1844:       ac_x_libraries=$ac_dir
                   1845:       break 2
                   1846:     fi
                   1847:   done
                   1848: done
                   1849: fi
                   1850: rm -f conftest*
                   1851: fi # $ac_x_libraries = NO
                   1852: 
                   1853: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
                   1854:   # Didn't find X anywhere.  Cache the known absence of X.
                   1855:   ac_cv_have_x="have_x=no"
                   1856: else
                   1857:   # Record where we found X for the cache.
                   1858:   ac_cv_have_x="have_x=yes \
                   1859:                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
                   1860: fi
                   1861: fi
                   1862:   fi
                   1863:   eval "$ac_cv_have_x"
                   1864: fi # $with_x != no
                   1865: 
                   1866: if test "$have_x" != yes; then
                   1867:   echo "$ac_t""$have_x" 1>&6
                   1868:   no_x=yes
                   1869: else
                   1870:   # If each of the values was on the command line, it overrides each guess.
                   1871:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   1872:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   1873:   # Update the cache value to reflect the command line values.
                   1874:   ac_cv_have_x="have_x=yes \
                   1875:                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
                   1876:   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
                   1877: fi
                   1878: 
                   1879: if test "$no_x" = yes; then
                   1880:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1.1.4   root     1881:   cat >> confdefs.h <<\EOF
                   1882: #define X_DISPLAY_MISSING 1
                   1883: EOF
                   1884: 
                   1885:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       root     1886: else
                   1887:   if test -n "$x_includes"; then
                   1888:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   1889:   fi
                   1890: 
                   1891:   # It would also be nice to do this for all -L options, not just this one.
                   1892:   if test -n "$x_libraries"; then
                   1893:     X_LIBS="$X_LIBS -L$x_libraries"
1.1.1.4   root     1894:     # For Solaris; some versions of Sun CC require a space after -R and
                   1895:     # others require no space.  Words are not sufficient . . . .
                   1896:     case "`(uname -sr) 2>/dev/null`" in
                   1897:     "SunOS 5"*)
                   1898:       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1.1.1.14  root     1899: echo "configure:1900: checking whether -R must be followed by a space" >&5
1.1.1.4   root     1900:       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
                   1901:       cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1902: #line 1903 "configure"
1.1.1.4   root     1903: #include "confdefs.h"
1.1       root     1904: 
1.1.1.4   root     1905: int main() {
1.1       root     1906: 
1.1.1.4   root     1907: ; return 0; }
                   1908: EOF
1.1.1.14  root     1909: if { (eval echo configure:1910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     1910:   rm -rf conftest*
                   1911:   ac_R_nospace=yes
1.1       root     1912: else
1.1.1.4   root     1913:   echo "configure: failed program was:" >&5
                   1914:   cat conftest.$ac_ext >&5
                   1915:   rm -rf conftest*
                   1916:   ac_R_nospace=no
                   1917: fi
                   1918: rm -f conftest*
                   1919:       if test $ac_R_nospace = yes; then
                   1920:        echo "$ac_t""no" 1>&6
                   1921:        X_LIBS="$X_LIBS -R$x_libraries"
                   1922:       else
                   1923:        LIBS="$ac_xsave_LIBS -R $x_libraries"
                   1924:        cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1925: #line 1926 "configure"
1.1       root     1926: #include "confdefs.h"
                   1927: 
1.1.1.4   root     1928: int main() {
                   1929: 
1.1       root     1930: ; return 0; }
                   1931: EOF
1.1.1.14  root     1932: if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1933:   rm -rf conftest*
1.1.1.4   root     1934:   ac_R_space=yes
1.1       root     1935: else
1.1.1.4   root     1936:   echo "configure: failed program was:" >&5
                   1937:   cat conftest.$ac_ext >&5
1.1       root     1938:   rm -rf conftest*
1.1.1.4   root     1939:   ac_R_space=no
1.1       root     1940: fi
                   1941: rm -f conftest*
1.1.1.4   root     1942:        if test $ac_R_space = yes; then
                   1943:          echo "$ac_t""yes" 1>&6
                   1944:          X_LIBS="$X_LIBS -R $x_libraries"
                   1945:        else
                   1946:          echo "$ac_t""neither works" 1>&6
                   1947:        fi
                   1948:       fi
                   1949:       LIBS="$ac_xsave_LIBS"
                   1950:     esac
                   1951:   fi
1.1       root     1952: 
                   1953:   # Check for system-dependent libraries X programs must link with.
1.1.1.4   root     1954:   # Do this before checking for the system-independent R6 libraries
                   1955:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       root     1956: 
                   1957:   if test "$ISC" = yes; then
                   1958:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   1959:   else
                   1960:     # [email protected] says this is needed for Ultrix, if the X
                   1961:     # libraries were built with DECnet support.  And [email protected] says
                   1962:     # the Alpha needs dnet_stub (dnet does not exist).
1.1.1.4   root     1963:     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1.1.1.14  root     1964: echo "configure:1965: checking for dnet_ntoa in -ldnet" >&5
1.1.1.4   root     1965: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1.1       root     1966: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1967:   echo $ac_n "(cached) $ac_c" 1>&6
                   1968: else
                   1969:   ac_save_LIBS="$LIBS"
                   1970: LIBS="-ldnet  $LIBS"
                   1971: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     1972: #line 1973 "configure"
1.1       root     1973: #include "confdefs.h"
                   1974: /* Override any gcc2 internal prototype to avoid an error.  */
                   1975: /* We use char because int might match the return type of a gcc2
                   1976:     builtin and then its argument prototype would still apply.  */
                   1977: char dnet_ntoa();
                   1978: 
1.1.1.4   root     1979: int main() {
1.1       root     1980: dnet_ntoa()
                   1981: ; return 0; }
                   1982: EOF
1.1.1.14  root     1983: if { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     1984:   rm -rf conftest*
                   1985:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1986: else
1.1.1.4   root     1987:   echo "configure: failed program was:" >&5
                   1988:   cat conftest.$ac_ext >&5
1.1       root     1989:   rm -rf conftest*
                   1990:   eval "ac_cv_lib_$ac_lib_var=no"
                   1991: fi
                   1992: rm -f conftest*
                   1993: LIBS="$ac_save_LIBS"
                   1994: 
                   1995: fi
                   1996: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1997:   echo "$ac_t""yes" 1>&6
                   1998:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
                   1999: else
                   2000:   echo "$ac_t""no" 1>&6
                   2001: fi
                   2002: 
                   2003:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.1.1.4   root     2004:       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1.1.1.14  root     2005: echo "configure:2006: checking for dnet_ntoa in -ldnet_stub" >&5
1.1.1.4   root     2006: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1.1       root     2007: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2008:   echo $ac_n "(cached) $ac_c" 1>&6
                   2009: else
                   2010:   ac_save_LIBS="$LIBS"
                   2011: LIBS="-ldnet_stub  $LIBS"
                   2012: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2013: #line 2014 "configure"
1.1       root     2014: #include "confdefs.h"
                   2015: /* Override any gcc2 internal prototype to avoid an error.  */
                   2016: /* We use char because int might match the return type of a gcc2
                   2017:     builtin and then its argument prototype would still apply.  */
                   2018: char dnet_ntoa();
                   2019: 
1.1.1.4   root     2020: int main() {
1.1       root     2021: dnet_ntoa()
                   2022: ; return 0; }
                   2023: EOF
1.1.1.14  root     2024: if { (eval echo configure:2025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2025:   rm -rf conftest*
                   2026:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2027: else
1.1.1.4   root     2028:   echo "configure: failed program was:" >&5
                   2029:   cat conftest.$ac_ext >&5
1.1       root     2030:   rm -rf conftest*
                   2031:   eval "ac_cv_lib_$ac_lib_var=no"
                   2032: fi
                   2033: rm -f conftest*
                   2034: LIBS="$ac_save_LIBS"
                   2035: 
                   2036: fi
                   2037: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2038:   echo "$ac_t""yes" 1>&6
                   2039:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   2040: else
                   2041:   echo "$ac_t""no" 1>&6
                   2042: fi
                   2043: 
                   2044:     fi
                   2045: 
                   2046:     # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
                   2047:     # to get the SysV transport functions.
1.1.1.4   root     2048:     # [email protected] says the Pyramis MIS-ES running DC/OSx (SVR4)
                   2049:     # needs -lnsl.
                   2050:     # The nsl library prevents programs from opening the X display
                   2051:     # on Irix 5.2, according to [email protected].
                   2052:     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1.1.1.14  root     2053: echo "configure:2054: checking for gethostbyname" >&5
1.1.1.4   root     2054: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
                   2055:   echo $ac_n "(cached) $ac_c" 1>&6
                   2056: else
                   2057:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2058: #line 2059 "configure"
1.1.1.4   root     2059: #include "confdefs.h"
                   2060: /* System header to define __stub macros and hopefully few prototypes,
                   2061:     which can conflict with char gethostbyname(); below.  */
                   2062: #include <assert.h>
                   2063: /* Override any gcc2 internal prototype to avoid an error.  */
                   2064: /* We use char because int might match the return type of a gcc2
                   2065:     builtin and then its argument prototype would still apply.  */
                   2066: char gethostbyname();
                   2067: 
                   2068: int main() {
                   2069: 
                   2070: /* The GNU C library defines this for functions which it implements
                   2071:     to always fail with ENOSYS.  Some functions are actually named
                   2072:     something starting with __ and the normal name is an alias.  */
                   2073: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
                   2074: choke me
                   2075: #else
                   2076: gethostbyname();
                   2077: #endif
                   2078: 
                   2079: ; return 0; }
                   2080: EOF
1.1.1.14  root     2081: if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2082:   rm -rf conftest*
                   2083:   eval "ac_cv_func_gethostbyname=yes"
                   2084: else
                   2085:   echo "configure: failed program was:" >&5
                   2086:   cat conftest.$ac_ext >&5
                   2087:   rm -rf conftest*
                   2088:   eval "ac_cv_func_gethostbyname=no"
                   2089: fi
                   2090: rm -f conftest*
                   2091: fi
                   2092: 
                   2093: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
                   2094:   echo "$ac_t""yes" 1>&6
                   2095:   :
                   2096: else
                   2097:   echo "$ac_t""no" 1>&6
                   2098: fi
                   2099: 
                   2100:     if test $ac_cv_func_gethostbyname = no; then
                   2101:       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.1.1.14  root     2102: echo "configure:2103: checking for gethostbyname in -lnsl" >&5
1.1.1.4   root     2103: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1.1       root     2104: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2105:   echo $ac_n "(cached) $ac_c" 1>&6
                   2106: else
                   2107:   ac_save_LIBS="$LIBS"
                   2108: LIBS="-lnsl  $LIBS"
                   2109: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2110: #line 2111 "configure"
1.1       root     2111: #include "confdefs.h"
                   2112: /* Override any gcc2 internal prototype to avoid an error.  */
                   2113: /* We use char because int might match the return type of a gcc2
                   2114:     builtin and then its argument prototype would still apply.  */
1.1.1.4   root     2115: char gethostbyname();
1.1       root     2116: 
1.1.1.4   root     2117: int main() {
                   2118: gethostbyname()
1.1       root     2119: ; return 0; }
                   2120: EOF
1.1.1.14  root     2121: if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2122:   rm -rf conftest*
                   2123:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2124: else
1.1.1.4   root     2125:   echo "configure: failed program was:" >&5
                   2126:   cat conftest.$ac_ext >&5
1.1       root     2127:   rm -rf conftest*
                   2128:   eval "ac_cv_lib_$ac_lib_var=no"
                   2129: fi
                   2130: rm -f conftest*
                   2131: LIBS="$ac_save_LIBS"
                   2132: 
                   2133: fi
                   2134: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2135:   echo "$ac_t""yes" 1>&6
                   2136:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   2137: else
                   2138:   echo "$ac_t""no" 1>&6
                   2139: fi
                   2140: 
1.1.1.4   root     2141:     fi
1.1       root     2142: 
                   2143:     # [email protected] says without -lsocket,
1.1.1.4   root     2144:     # socket/setsockopt and other routines are undefined under SCO ODT
                   2145:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   2146:     # on later versions), says [email protected]: it contains
                   2147:     # gethostby* variants that don't use the nameserver (or something).
                   2148:     # -lsocket must be given before -lnsl if both are needed.
                   2149:     # We assume that if connect needs -lnsl, so does gethostbyname.
                   2150:     echo $ac_n "checking for connect""... $ac_c" 1>&6
1.1.1.14  root     2151: echo "configure:2152: checking for connect" >&5
1.1.1.4   root     2152: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
                   2153:   echo $ac_n "(cached) $ac_c" 1>&6
                   2154: else
                   2155:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2156: #line 2157 "configure"
1.1.1.4   root     2157: #include "confdefs.h"
                   2158: /* System header to define __stub macros and hopefully few prototypes,
                   2159:     which can conflict with char connect(); below.  */
                   2160: #include <assert.h>
                   2161: /* Override any gcc2 internal prototype to avoid an error.  */
                   2162: /* We use char because int might match the return type of a gcc2
                   2163:     builtin and then its argument prototype would still apply.  */
                   2164: char connect();
                   2165: 
                   2166: int main() {
                   2167: 
                   2168: /* The GNU C library defines this for functions which it implements
                   2169:     to always fail with ENOSYS.  Some functions are actually named
                   2170:     something starting with __ and the normal name is an alias.  */
                   2171: #if defined (__stub_connect) || defined (__stub___connect)
                   2172: choke me
                   2173: #else
                   2174: connect();
                   2175: #endif
                   2176: 
                   2177: ; return 0; }
                   2178: EOF
1.1.1.14  root     2179: if { (eval echo configure:2180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2180:   rm -rf conftest*
                   2181:   eval "ac_cv_func_connect=yes"
                   2182: else
                   2183:   echo "configure: failed program was:" >&5
                   2184:   cat conftest.$ac_ext >&5
                   2185:   rm -rf conftest*
                   2186:   eval "ac_cv_func_connect=no"
                   2187: fi
                   2188: rm -f conftest*
                   2189: fi
                   2190: 
                   2191: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
                   2192:   echo "$ac_t""yes" 1>&6
                   2193:   :
                   2194: else
                   2195:   echo "$ac_t""no" 1>&6
                   2196: fi
                   2197: 
                   2198:     if test $ac_cv_func_connect = no; then
                   2199:       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1.1.1.14  root     2200: echo "configure:2201: checking for connect in -lsocket" >&5
1.1.1.4   root     2201: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1.1       root     2202: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2203:   echo $ac_n "(cached) $ac_c" 1>&6
                   2204: else
                   2205:   ac_save_LIBS="$LIBS"
1.1.1.4   root     2206: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.1       root     2207: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2208: #line 2209 "configure"
1.1       root     2209: #include "confdefs.h"
                   2210: /* Override any gcc2 internal prototype to avoid an error.  */
                   2211: /* We use char because int might match the return type of a gcc2
                   2212:     builtin and then its argument prototype would still apply.  */
1.1.1.4   root     2213: char connect();
1.1       root     2214: 
1.1.1.4   root     2215: int main() {
                   2216: connect()
1.1       root     2217: ; return 0; }
                   2218: EOF
1.1.1.14  root     2219: if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2220:   rm -rf conftest*
                   2221:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2222: else
1.1.1.4   root     2223:   echo "configure: failed program was:" >&5
                   2224:   cat conftest.$ac_ext >&5
1.1       root     2225:   rm -rf conftest*
                   2226:   eval "ac_cv_lib_$ac_lib_var=no"
                   2227: fi
                   2228: rm -f conftest*
                   2229: LIBS="$ac_save_LIBS"
                   2230: 
                   2231: fi
                   2232: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2233:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     2234:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   2235: else
                   2236:   echo "$ac_t""no" 1>&6
                   2237: fi
                   2238: 
                   2239:     fi
                   2240: 
                   2241:     # [email protected] says -lposix is necessary on A/UX.
                   2242:     echo $ac_n "checking for remove""... $ac_c" 1>&6
1.1.1.14  root     2243: echo "configure:2244: checking for remove" >&5
1.1.1.4   root     2244: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
                   2245:   echo $ac_n "(cached) $ac_c" 1>&6
                   2246: else
                   2247:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2248: #line 2249 "configure"
1.1.1.4   root     2249: #include "confdefs.h"
                   2250: /* System header to define __stub macros and hopefully few prototypes,
                   2251:     which can conflict with char remove(); below.  */
                   2252: #include <assert.h>
                   2253: /* Override any gcc2 internal prototype to avoid an error.  */
                   2254: /* We use char because int might match the return type of a gcc2
                   2255:     builtin and then its argument prototype would still apply.  */
                   2256: char remove();
                   2257: 
                   2258: int main() {
                   2259: 
                   2260: /* The GNU C library defines this for functions which it implements
                   2261:     to always fail with ENOSYS.  Some functions are actually named
                   2262:     something starting with __ and the normal name is an alias.  */
                   2263: #if defined (__stub_remove) || defined (__stub___remove)
                   2264: choke me
                   2265: #else
                   2266: remove();
                   2267: #endif
                   2268: 
                   2269: ; return 0; }
                   2270: EOF
1.1.1.14  root     2271: if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2272:   rm -rf conftest*
                   2273:   eval "ac_cv_func_remove=yes"
                   2274: else
                   2275:   echo "configure: failed program was:" >&5
                   2276:   cat conftest.$ac_ext >&5
                   2277:   rm -rf conftest*
                   2278:   eval "ac_cv_func_remove=no"
                   2279: fi
                   2280: rm -f conftest*
                   2281: fi
                   2282: 
                   2283: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
                   2284:   echo "$ac_t""yes" 1>&6
                   2285:   :
                   2286: else
                   2287:   echo "$ac_t""no" 1>&6
                   2288: fi
                   2289: 
                   2290:     if test $ac_cv_func_remove = no; then
                   2291:       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1.1.1.14  root     2292: echo "configure:2293: checking for remove in -lposix" >&5
1.1.1.4   root     2293: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
                   2294: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2295:   echo $ac_n "(cached) $ac_c" 1>&6
                   2296: else
                   2297:   ac_save_LIBS="$LIBS"
                   2298: LIBS="-lposix  $LIBS"
                   2299: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2300: #line 2301 "configure"
1.1.1.4   root     2301: #include "confdefs.h"
                   2302: /* Override any gcc2 internal prototype to avoid an error.  */
                   2303: /* We use char because int might match the return type of a gcc2
                   2304:     builtin and then its argument prototype would still apply.  */
                   2305: char remove();
                   2306: 
                   2307: int main() {
                   2308: remove()
                   2309: ; return 0; }
                   2310: EOF
1.1.1.14  root     2311: if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2312:   rm -rf conftest*
                   2313:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2314: else
                   2315:   echo "configure: failed program was:" >&5
                   2316:   cat conftest.$ac_ext >&5
                   2317:   rm -rf conftest*
                   2318:   eval "ac_cv_lib_$ac_lib_var=no"
                   2319: fi
                   2320: rm -f conftest*
                   2321: LIBS="$ac_save_LIBS"
                   2322: 
                   2323: fi
                   2324: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2325:   echo "$ac_t""yes" 1>&6
                   2326:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
                   2327: else
                   2328:   echo "$ac_t""no" 1>&6
                   2329: fi
                   2330: 
                   2331:     fi
                   2332: 
                   2333:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   2334:     echo $ac_n "checking for shmat""... $ac_c" 1>&6
1.1.1.14  root     2335: echo "configure:2336: checking for shmat" >&5
1.1.1.4   root     2336: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
                   2337:   echo $ac_n "(cached) $ac_c" 1>&6
                   2338: else
                   2339:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2340: #line 2341 "configure"
1.1.1.4   root     2341: #include "confdefs.h"
                   2342: /* System header to define __stub macros and hopefully few prototypes,
                   2343:     which can conflict with char shmat(); below.  */
                   2344: #include <assert.h>
                   2345: /* Override any gcc2 internal prototype to avoid an error.  */
                   2346: /* We use char because int might match the return type of a gcc2
                   2347:     builtin and then its argument prototype would still apply.  */
                   2348: char shmat();
                   2349: 
                   2350: int main() {
                   2351: 
                   2352: /* The GNU C library defines this for functions which it implements
                   2353:     to always fail with ENOSYS.  Some functions are actually named
                   2354:     something starting with __ and the normal name is an alias.  */
                   2355: #if defined (__stub_shmat) || defined (__stub___shmat)
                   2356: choke me
                   2357: #else
                   2358: shmat();
                   2359: #endif
                   2360: 
                   2361: ; return 0; }
                   2362: EOF
1.1.1.14  root     2363: if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2364:   rm -rf conftest*
                   2365:   eval "ac_cv_func_shmat=yes"
                   2366: else
                   2367:   echo "configure: failed program was:" >&5
                   2368:   cat conftest.$ac_ext >&5
                   2369:   rm -rf conftest*
                   2370:   eval "ac_cv_func_shmat=no"
                   2371: fi
                   2372: rm -f conftest*
                   2373: fi
                   2374: 
                   2375: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
                   2376:   echo "$ac_t""yes" 1>&6
                   2377:   :
                   2378: else
                   2379:   echo "$ac_t""no" 1>&6
                   2380: fi
                   2381: 
                   2382:     if test $ac_cv_func_shmat = no; then
                   2383:       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1.1.1.14  root     2384: echo "configure:2385: checking for shmat in -lipc" >&5
1.1.1.4   root     2385: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
                   2386: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2387:   echo $ac_n "(cached) $ac_c" 1>&6
                   2388: else
                   2389:   ac_save_LIBS="$LIBS"
                   2390: LIBS="-lipc  $LIBS"
                   2391: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2392: #line 2393 "configure"
1.1.1.4   root     2393: #include "confdefs.h"
                   2394: /* Override any gcc2 internal prototype to avoid an error.  */
                   2395: /* We use char because int might match the return type of a gcc2
                   2396:     builtin and then its argument prototype would still apply.  */
                   2397: char shmat();
                   2398: 
                   2399: int main() {
                   2400: shmat()
                   2401: ; return 0; }
                   2402: EOF
1.1.1.14  root     2403: if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2404:   rm -rf conftest*
                   2405:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2406: else
                   2407:   echo "configure: failed program was:" >&5
                   2408:   cat conftest.$ac_ext >&5
                   2409:   rm -rf conftest*
                   2410:   eval "ac_cv_lib_$ac_lib_var=no"
                   2411: fi
                   2412: rm -f conftest*
                   2413: LIBS="$ac_save_LIBS"
                   2414: 
                   2415: fi
                   2416: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2417:   echo "$ac_t""yes" 1>&6
                   2418:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1.1       root     2419: else
                   2420:   echo "$ac_t""no" 1>&6
                   2421: fi
                   2422: 
                   2423:     fi
                   2424:   fi
1.1.1.4   root     2425: 
                   2426:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   2427:   ac_save_LDFLAGS="$LDFLAGS"
                   2428:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   2429:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   2430:   # check for ICE first), but we must link in the order -lSM -lICE or
                   2431:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   2432:   # These have to be linked with before -lX11, unlike the other
                   2433:   # libraries we check for below, so use a different variable.
                   2434:   #  [email protected], [email protected].
                   2435:   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1.1.1.14  root     2436: echo "configure:2437: checking for IceConnectionNumber in -lICE" >&5
1.1.1.4   root     2437: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
                   2438: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2439:   echo $ac_n "(cached) $ac_c" 1>&6
                   2440: else
                   2441:   ac_save_LIBS="$LIBS"
1.1.1.9   root     2442: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1.1.1.4   root     2443: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2444: #line 2445 "configure"
1.1.1.4   root     2445: #include "confdefs.h"
                   2446: /* Override any gcc2 internal prototype to avoid an error.  */
                   2447: /* We use char because int might match the return type of a gcc2
                   2448:     builtin and then its argument prototype would still apply.  */
                   2449: char IceConnectionNumber();
                   2450: 
                   2451: int main() {
                   2452: IceConnectionNumber()
                   2453: ; return 0; }
                   2454: EOF
1.1.1.14  root     2455: if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     2456:   rm -rf conftest*
                   2457:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2458: else
                   2459:   echo "configure: failed program was:" >&5
                   2460:   cat conftest.$ac_ext >&5
                   2461:   rm -rf conftest*
                   2462:   eval "ac_cv_lib_$ac_lib_var=no"
1.1       root     2463: fi
1.1.1.4   root     2464: rm -f conftest*
                   2465: LIBS="$ac_save_LIBS"
1.1       root     2466: 
1.1.1.4   root     2467: fi
                   2468: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2469:   echo "$ac_t""yes" 1>&6
                   2470:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   2471: else
                   2472:   echo "$ac_t""no" 1>&6
                   2473: fi
1.1       root     2474: 
1.1.1.4   root     2475:   LDFLAGS="$ac_save_LDFLAGS"
1.1       root     2476: 
1.1.1.3   root     2477: fi
                   2478: 
                   2479: 
1.1.1.4   root     2480: 
1.1       root     2481: ac_header_dirent=no
                   2482: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
                   2483: do
1.1.1.4   root     2484: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1       root     2485: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1.1.1.14  root     2486: echo "configure:2487: checking for $ac_hdr that defines DIR" >&5
1.1       root     2487: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
                   2488:   echo $ac_n "(cached) $ac_c" 1>&6
                   2489: else
                   2490:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2491: #line 2492 "configure"
1.1       root     2492: #include "confdefs.h"
                   2493: #include <sys/types.h>
                   2494: #include <$ac_hdr>
1.1.1.4   root     2495: int main() {
1.1       root     2496: DIR *dirp = 0;
                   2497: ; return 0; }
                   2498: EOF
1.1.1.14  root     2499: if { (eval echo configure:2500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2500:   rm -rf conftest*
                   2501:   eval "ac_cv_header_dirent_$ac_safe=yes"
                   2502: else
1.1.1.4   root     2503:   echo "configure: failed program was:" >&5
                   2504:   cat conftest.$ac_ext >&5
1.1       root     2505:   rm -rf conftest*
                   2506:   eval "ac_cv_header_dirent_$ac_safe=no"
                   2507: fi
                   2508: rm -f conftest*
                   2509: fi
                   2510: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
                   2511:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     2512:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1       root     2513:   cat >> confdefs.h <<EOF
                   2514: #define $ac_tr_hdr 1
                   2515: EOF
                   2516:  ac_header_dirent=$ac_hdr; break
                   2517: else
                   2518:   echo "$ac_t""no" 1>&6
                   2519: fi
                   2520: done
                   2521: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   2522: if test $ac_header_dirent = dirent.h; then
1.1.1.4   root     2523: echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1.1.1.14  root     2524: echo "configure:2525: checking for opendir in -ldir" >&5
1.1.1.4   root     2525: ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1.1       root     2526: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2527:   echo $ac_n "(cached) $ac_c" 1>&6
                   2528: else
                   2529:   ac_save_LIBS="$LIBS"
                   2530: LIBS="-ldir  $LIBS"
                   2531: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2532: #line 2533 "configure"
1.1       root     2533: #include "confdefs.h"
                   2534: /* Override any gcc2 internal prototype to avoid an error.  */
                   2535: /* We use char because int might match the return type of a gcc2
                   2536:     builtin and then its argument prototype would still apply.  */
                   2537: char opendir();
                   2538: 
1.1.1.4   root     2539: int main() {
1.1       root     2540: opendir()
                   2541: ; return 0; }
                   2542: EOF
1.1.1.14  root     2543: if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2544:   rm -rf conftest*
                   2545:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2546: else
1.1.1.4   root     2547:   echo "configure: failed program was:" >&5
                   2548:   cat conftest.$ac_ext >&5
1.1       root     2549:   rm -rf conftest*
                   2550:   eval "ac_cv_lib_$ac_lib_var=no"
                   2551: fi
                   2552: rm -f conftest*
                   2553: LIBS="$ac_save_LIBS"
                   2554: 
                   2555: fi
                   2556: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2557:   echo "$ac_t""yes" 1>&6
                   2558:   LIBS="$LIBS -ldir"
                   2559: else
                   2560:   echo "$ac_t""no" 1>&6
                   2561: fi
                   2562: 
                   2563: else
1.1.1.4   root     2564: echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1.1.1.14  root     2565: echo "configure:2566: checking for opendir in -lx" >&5
1.1.1.4   root     2566: ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1.1       root     2567: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2568:   echo $ac_n "(cached) $ac_c" 1>&6
                   2569: else
                   2570:   ac_save_LIBS="$LIBS"
                   2571: LIBS="-lx  $LIBS"
                   2572: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2573: #line 2574 "configure"
1.1       root     2574: #include "confdefs.h"
                   2575: /* Override any gcc2 internal prototype to avoid an error.  */
                   2576: /* We use char because int might match the return type of a gcc2
                   2577:     builtin and then its argument prototype would still apply.  */
                   2578: char opendir();
                   2579: 
1.1.1.4   root     2580: int main() {
1.1       root     2581: opendir()
                   2582: ; return 0; }
                   2583: EOF
1.1.1.14  root     2584: if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     2585:   rm -rf conftest*
                   2586:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2587: else
1.1.1.4   root     2588:   echo "configure: failed program was:" >&5
                   2589:   cat conftest.$ac_ext >&5
1.1       root     2590:   rm -rf conftest*
                   2591:   eval "ac_cv_lib_$ac_lib_var=no"
                   2592: fi
                   2593: rm -f conftest*
                   2594: LIBS="$ac_save_LIBS"
                   2595: 
                   2596: fi
                   2597: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2598:   echo "$ac_t""yes" 1>&6
                   2599:   LIBS="$LIBS -lx"
                   2600: else
                   2601:   echo "$ac_t""no" 1>&6
                   2602: fi
                   2603: 
                   2604: fi
                   2605: 
                   2606: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.1.1.14  root     2607: echo "configure:2608: checking for ANSI C header files" >&5
1.1       root     2608: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   2609:   echo $ac_n "(cached) $ac_c" 1>&6
                   2610: else
                   2611:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2612: #line 2613 "configure"
1.1       root     2613: #include "confdefs.h"
                   2614: #include <stdlib.h>
                   2615: #include <stdarg.h>
                   2616: #include <string.h>
                   2617: #include <float.h>
                   2618: EOF
                   2619: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     2620: { (eval echo configure:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2621: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root     2622: if test -z "$ac_err"; then
                   2623:   rm -rf conftest*
                   2624:   ac_cv_header_stdc=yes
                   2625: else
                   2626:   echo "$ac_err" >&5
1.1.1.4   root     2627:   echo "configure: failed program was:" >&5
                   2628:   cat conftest.$ac_ext >&5
1.1       root     2629:   rm -rf conftest*
                   2630:   ac_cv_header_stdc=no
                   2631: fi
                   2632: rm -f conftest*
                   2633: 
                   2634: if test $ac_cv_header_stdc = yes; then
                   2635:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   2636: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2637: #line 2638 "configure"
1.1       root     2638: #include "confdefs.h"
                   2639: #include <string.h>
                   2640: EOF
                   2641: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2642:   egrep "memchr" >/dev/null 2>&1; then
                   2643:   :
                   2644: else
                   2645:   rm -rf conftest*
                   2646:   ac_cv_header_stdc=no
                   2647: fi
                   2648: rm -f conftest*
                   2649: 
                   2650: fi
                   2651: 
                   2652: if test $ac_cv_header_stdc = yes; then
                   2653:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   2654: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2655: #line 2656 "configure"
1.1       root     2656: #include "confdefs.h"
                   2657: #include <stdlib.h>
                   2658: EOF
                   2659: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2660:   egrep "free" >/dev/null 2>&1; then
                   2661:   :
                   2662: else
                   2663:   rm -rf conftest*
                   2664:   ac_cv_header_stdc=no
                   2665: fi
                   2666: rm -f conftest*
                   2667: 
                   2668: fi
                   2669: 
                   2670: if test $ac_cv_header_stdc = yes; then
                   2671:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   2672: if test "$cross_compiling" = yes; then
                   2673:   :
                   2674: else
1.1.1.4   root     2675:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2676: #line 2677 "configure"
1.1       root     2677: #include "confdefs.h"
                   2678: #include <ctype.h>
                   2679: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   2680: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   2681: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   2682: int main () { int i; for (i = 0; i < 256; i++)
                   2683: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   2684: exit (0); }
                   2685: 
                   2686: EOF
1.1.1.14  root     2687: if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     2688: then
1.1       root     2689:   :
                   2690: else
1.1.1.4   root     2691:   echo "configure: failed program was:" >&5
                   2692:   cat conftest.$ac_ext >&5
                   2693:   rm -fr conftest*
1.1       root     2694:   ac_cv_header_stdc=no
                   2695: fi
                   2696: rm -fr conftest*
                   2697: fi
1.1.1.4   root     2698: 
                   2699: fi
1.1       root     2700: fi
                   2701: 
                   2702: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   2703: if test $ac_cv_header_stdc = yes; then
                   2704:   cat >> confdefs.h <<\EOF
                   2705: #define STDC_HEADERS 1
                   2706: EOF
                   2707: 
                   2708: fi
                   2709: 
1.1.1.4   root     2710: 
                   2711: for ac_hdr in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h curses.h
                   2712: do
                   2713: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2714: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.14  root     2715: echo "configure:2716: checking for $ac_hdr" >&5
1.1.1.4   root     2716: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2717:   echo $ac_n "(cached) $ac_c" 1>&6
                   2718: else
                   2719:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2720: #line 2721 "configure"
1.1.1.4   root     2721: #include "confdefs.h"
                   2722: #include <$ac_hdr>
                   2723: EOF
                   2724: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     2725: { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2726: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.4   root     2727: if test -z "$ac_err"; then
                   2728:   rm -rf conftest*
                   2729:   eval "ac_cv_header_$ac_safe=yes"
                   2730: else
                   2731:   echo "$ac_err" >&5
                   2732:   echo "configure: failed program was:" >&5
                   2733:   cat conftest.$ac_ext >&5
                   2734:   rm -rf conftest*
                   2735:   eval "ac_cv_header_$ac_safe=no"
                   2736: fi
                   2737: rm -f conftest*
                   2738: fi
                   2739: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2740:   echo "$ac_t""yes" 1>&6
                   2741:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   2742:   cat >> confdefs.h <<EOF
                   2743: #define $ac_tr_hdr 1
                   2744: EOF
                   2745:  
                   2746: else
                   2747:   echo "$ac_t""no" 1>&6
                   2748: fi
                   2749: done
                   2750: 
1.1.1.6   root     2751: for ac_hdr in sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h getopt.h features.h sys/termios.h
1.1       root     2752: do
1.1.1.4   root     2753: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1       root     2754: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.14  root     2755: echo "configure:2756: checking for $ac_hdr" >&5
1.1       root     2756: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2757:   echo $ac_n "(cached) $ac_c" 1>&6
                   2758: else
                   2759:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2760: #line 2761 "configure"
1.1       root     2761: #include "confdefs.h"
                   2762: #include <$ac_hdr>
                   2763: EOF
                   2764: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     2765: { (eval echo configure:2766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2766: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root     2767: if test -z "$ac_err"; then
                   2768:   rm -rf conftest*
                   2769:   eval "ac_cv_header_$ac_safe=yes"
                   2770: else
                   2771:   echo "$ac_err" >&5
1.1.1.4   root     2772:   echo "configure: failed program was:" >&5
                   2773:   cat conftest.$ac_ext >&5
1.1       root     2774:   rm -rf conftest*
                   2775:   eval "ac_cv_header_$ac_safe=no"
                   2776: fi
                   2777: rm -f conftest*
                   2778: fi
                   2779: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2780:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     2781:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1       root     2782:   cat >> confdefs.h <<EOF
                   2783: #define $ac_tr_hdr 1
                   2784: EOF
                   2785:  
                   2786: else
                   2787:   echo "$ac_t""no" 1>&6
                   2788: fi
                   2789: done
                   2790: 
1.1.1.6   root     2791: for ac_hdr in posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h sys/stat.h sys/utime.h
1.1       root     2792: do
1.1.1.4   root     2793: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1       root     2794: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.14  root     2795: echo "configure:2796: checking for $ac_hdr" >&5
1.1       root     2796: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2797:   echo $ac_n "(cached) $ac_c" 1>&6
                   2798: else
                   2799:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2800: #line 2801 "configure"
1.1.1.3   root     2801: #include "confdefs.h"
                   2802: #include <$ac_hdr>
                   2803: EOF
                   2804: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     2805: { (eval echo configure:2806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2806: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1       root     2807: if test -z "$ac_err"; then
                   2808:   rm -rf conftest*
                   2809:   eval "ac_cv_header_$ac_safe=yes"
                   2810: else
                   2811:   echo "$ac_err" >&5
1.1.1.4   root     2812:   echo "configure: failed program was:" >&5
                   2813:   cat conftest.$ac_ext >&5
1.1       root     2814:   rm -rf conftest*
                   2815:   eval "ac_cv_header_$ac_safe=no"
                   2816: fi
                   2817: rm -f conftest*
                   2818: fi
                   2819: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2820:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     2821:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1       root     2822:   cat >> confdefs.h <<EOF
                   2823: #define $ac_tr_hdr 1
                   2824: EOF
                   2825:  
                   2826: else
                   2827:   echo "$ac_t""no" 1>&6
                   2828: fi
                   2829: done
                   2830: 
1.1.1.6   root     2831: for ac_hdr in windows.h ddraw.h
1.1.1.4   root     2832: do
                   2833: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2834: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.14  root     2835: echo "configure:2836: checking for $ac_hdr" >&5
1.1.1.4   root     2836: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2837:   echo $ac_n "(cached) $ac_c" 1>&6
                   2838: else
                   2839:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2840: #line 2841 "configure"
1.1.1.4   root     2841: #include "confdefs.h"
                   2842: #include <$ac_hdr>
                   2843: EOF
                   2844: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     2845: { (eval echo configure:2846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2846: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.4   root     2847: if test -z "$ac_err"; then
                   2848:   rm -rf conftest*
                   2849:   eval "ac_cv_header_$ac_safe=yes"
                   2850: else
                   2851:   echo "$ac_err" >&5
                   2852:   echo "configure: failed program was:" >&5
                   2853:   cat conftest.$ac_ext >&5
                   2854:   rm -rf conftest*
                   2855:   eval "ac_cv_header_$ac_safe=no"
                   2856: fi
                   2857: rm -f conftest*
                   2858: fi
                   2859: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2860:   echo "$ac_t""yes" 1>&6
                   2861:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   2862:   cat >> confdefs.h <<EOF
                   2863: #define $ac_tr_hdr 1
                   2864: EOF
                   2865:  
                   2866: else
                   2867:   echo "$ac_t""no" 1>&6
                   2868: fi
                   2869: done
1.1       root     2870: 
1.1.1.4   root     2871: ac_safe=`echo "be_math.h" | sed 'y%./+-%__p_%'`
                   2872: echo $ac_n "checking for be_math.h""... $ac_c" 1>&6
1.1.1.14  root     2873: echo "configure:2874: checking for be_math.h" >&5
1.1.1.4   root     2874: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2875:   echo $ac_n "(cached) $ac_c" 1>&6
                   2876: else
                   2877:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2878: #line 2879 "configure"
1.1.1.4   root     2879: #include "confdefs.h"
                   2880: #include <be_math.h>
                   2881: EOF
                   2882: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     2883: { (eval echo configure:2884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2884: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.4   root     2885: if test -z "$ac_err"; then
                   2886:   rm -rf conftest*
                   2887:   eval "ac_cv_header_$ac_safe=yes"
                   2888: else
                   2889:   echo "$ac_err" >&5
                   2890:   echo "configure: failed program was:" >&5
                   2891:   cat conftest.$ac_ext >&5
                   2892:   rm -rf conftest*
                   2893:   eval "ac_cv_header_$ac_safe=no"
                   2894: fi
                   2895: rm -f conftest*
                   2896: fi
                   2897: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2898:   echo "$ac_t""yes" 1>&6
                   2899:   HAVE_BEOS=yes
                   2900: else
                   2901:   echo "$ac_t""no" 1>&6
                   2902: HAVE_BEOS=no
1.1       root     2903: fi
                   2904: 
1.1.1.6   root     2905: for ac_hdr in machine/joystick.h
                   2906: do
                   2907: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2908: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.14  root     2909: echo "configure:2910: checking for $ac_hdr" >&5
1.1.1.6   root     2910: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1.1       root     2911:   echo $ac_n "(cached) $ac_c" 1>&6
                   2912: else
1.1.1.4   root     2913:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2914: #line 2915 "configure"
1.1       root     2915: #include "confdefs.h"
1.1.1.6   root     2916: #include <$ac_hdr>
1.1       root     2917: EOF
1.1.1.6   root     2918: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     2919: { (eval echo configure:2920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2920: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     2921: if test -z "$ac_err"; then
                   2922:   rm -rf conftest*
                   2923:   eval "ac_cv_header_$ac_safe=yes"
1.1       root     2924: else
1.1.1.6   root     2925:   echo "$ac_err" >&5
1.1.1.4   root     2926:   echo "configure: failed program was:" >&5
                   2927:   cat conftest.$ac_ext >&5
1.1.1.6   root     2928:   rm -rf conftest*
                   2929:   eval "ac_cv_header_$ac_safe=no"
1.1       root     2930: fi
1.1.1.6   root     2931: rm -f conftest*
1.1.1.4   root     2932: fi
1.1.1.6   root     2933: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2934:   echo "$ac_t""yes" 1>&6
                   2935:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   2936:   cat >> confdefs.h <<EOF
                   2937: #define $ac_tr_hdr 1
1.1       root     2938: EOF
1.1.1.6   root     2939:  
                   2940: else
                   2941:   echo "$ac_t""no" 1>&6
                   2942: fi
                   2943: done
1.1       root     2944: 
1.1.1.6   root     2945: for ac_hdr in devices/ahi.h
                   2946: do
                   2947: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2948: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.14  root     2949: echo "configure:2950: checking for $ac_hdr" >&5
1.1.1.6   root     2950: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1.1       root     2951:   echo $ac_n "(cached) $ac_c" 1>&6
                   2952: else
1.1.1.4   root     2953:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2954: #line 2955 "configure"
1.1       root     2955: #include "confdefs.h"
1.1.1.6   root     2956: #include <$ac_hdr>
1.1       root     2957: EOF
1.1.1.6   root     2958: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     2959: { (eval echo configure:2960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     2960: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.8   root     2961: if test -z "$ac_err"; then
                   2962:   rm -rf conftest*
                   2963:   eval "ac_cv_header_$ac_safe=yes"
                   2964: else
                   2965:   echo "$ac_err" >&5
                   2966:   echo "configure: failed program was:" >&5
                   2967:   cat conftest.$ac_ext >&5
                   2968:   rm -rf conftest*
                   2969:   eval "ac_cv_header_$ac_safe=no"
                   2970: fi
                   2971: rm -f conftest*
                   2972: fi
                   2973: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2974:   echo "$ac_t""yes" 1>&6
                   2975:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   2976:   cat >> confdefs.h <<EOF
                   2977: #define $ac_tr_hdr 1
                   2978: EOF
                   2979:  
                   2980: else
                   2981:   echo "$ac_t""no" 1>&6
                   2982: fi
                   2983: done
                   2984: 
                   2985: for ac_hdr in dmedia/audio.h
                   2986: do
                   2987: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2988: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.14  root     2989: echo "configure:2990: checking for $ac_hdr" >&5
1.1.1.8   root     2990: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2991:   echo $ac_n "(cached) $ac_c" 1>&6
                   2992: else
                   2993:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     2994: #line 2995 "configure"
1.1.1.8   root     2995: #include "confdefs.h"
                   2996: #include <$ac_hdr>
                   2997: EOF
                   2998: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     2999: { (eval echo configure:3000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     3000: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     3001: if test -z "$ac_err"; then
                   3002:   rm -rf conftest*
                   3003:   eval "ac_cv_header_$ac_safe=yes"
1.1       root     3004: else
1.1.1.6   root     3005:   echo "$ac_err" >&5
1.1.1.4   root     3006:   echo "configure: failed program was:" >&5
                   3007:   cat conftest.$ac_ext >&5
1.1.1.6   root     3008:   rm -rf conftest*
                   3009:   eval "ac_cv_header_$ac_safe=no"
                   3010: fi
                   3011: rm -f conftest*
                   3012: fi
                   3013: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   3014:   echo "$ac_t""yes" 1>&6
                   3015:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   3016:   cat >> confdefs.h <<EOF
                   3017: #define $ac_tr_hdr 1
                   3018: EOF
                   3019:  
                   3020: else
                   3021:   echo "$ac_t""no" 1>&6
                   3022: fi
                   3023: done
                   3024: 
                   3025: for ac_hdr in libraries/cybergraphics.h cybergraphx/cybergraphics.h
                   3026: do
                   3027: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   3028: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.14  root     3029: echo "configure:3030: checking for $ac_hdr" >&5
1.1.1.6   root     3030: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   3031:   echo $ac_n "(cached) $ac_c" 1>&6
                   3032: else
                   3033:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3034: #line 3035 "configure"
1.1.1.6   root     3035: #include "confdefs.h"
                   3036: #include <$ac_hdr>
                   3037: EOF
                   3038: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     3039: { (eval echo configure:3040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     3040: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     3041: if test -z "$ac_err"; then
                   3042:   rm -rf conftest*
                   3043:   eval "ac_cv_header_$ac_safe=yes"
                   3044: else
                   3045:   echo "$ac_err" >&5
                   3046:   echo "configure: failed program was:" >&5
                   3047:   cat conftest.$ac_ext >&5
                   3048:   rm -rf conftest*
                   3049:   eval "ac_cv_header_$ac_safe=no"
                   3050: fi
                   3051: rm -f conftest*
                   3052: fi
                   3053: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   3054:   echo "$ac_t""yes" 1>&6
                   3055:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   3056:   cat >> confdefs.h <<EOF
                   3057: #define $ac_tr_hdr 1
                   3058: EOF
                   3059:  
                   3060: else
                   3061:   echo "$ac_t""no" 1>&6
                   3062: fi
                   3063: done
                   3064: 
                   3065: 
                   3066: echo $ac_n "checking size of char""... $ac_c" 1>&6
1.1.1.14  root     3067: echo "configure:3068: checking size of char" >&5
1.1.1.6   root     3068: if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
                   3069:   echo $ac_n "(cached) $ac_c" 1>&6
                   3070: else
                   3071:   if test "$cross_compiling" = yes; then
                   3072:   ac_cv_sizeof_char=1
                   3073: else
                   3074:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3075: #line 3076 "configure"
1.1.1.6   root     3076: #include "confdefs.h"
                   3077: #include <stdio.h>
                   3078: main()
                   3079: {
                   3080:   FILE *f=fopen("conftestval", "w");
                   3081:   if (!f) exit(1);
                   3082:   fprintf(f, "%d\n", sizeof(char));
                   3083:   exit(0);
                   3084: }
                   3085: EOF
1.1.1.14  root     3086: if { (eval echo configure:3087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     3087: then
                   3088:   ac_cv_sizeof_char=`cat conftestval`
                   3089: else
                   3090:   echo "configure: failed program was:" >&5
                   3091:   cat conftest.$ac_ext >&5
                   3092:   rm -fr conftest*
                   3093:   ac_cv_sizeof_char=0
                   3094: fi
                   3095: rm -fr conftest*
                   3096: fi
                   3097: 
                   3098: fi
                   3099: echo "$ac_t""$ac_cv_sizeof_char" 1>&6
                   3100: cat >> confdefs.h <<EOF
                   3101: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   3102: EOF
                   3103: 
                   3104: 
                   3105: echo $ac_n "checking size of short""... $ac_c" 1>&6
1.1.1.14  root     3106: echo "configure:3107: checking size of short" >&5
1.1.1.6   root     3107: if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
                   3108:   echo $ac_n "(cached) $ac_c" 1>&6
                   3109: else
                   3110:   if test "$cross_compiling" = yes; then
                   3111:   ac_cv_sizeof_short=2
                   3112: else
                   3113:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3114: #line 3115 "configure"
1.1.1.6   root     3115: #include "confdefs.h"
                   3116: #include <stdio.h>
                   3117: main()
                   3118: {
                   3119:   FILE *f=fopen("conftestval", "w");
                   3120:   if (!f) exit(1);
                   3121:   fprintf(f, "%d\n", sizeof(short));
                   3122:   exit(0);
                   3123: }
                   3124: EOF
1.1.1.14  root     3125: if { (eval echo configure:3126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     3126: then
                   3127:   ac_cv_sizeof_short=`cat conftestval`
                   3128: else
                   3129:   echo "configure: failed program was:" >&5
                   3130:   cat conftest.$ac_ext >&5
                   3131:   rm -fr conftest*
                   3132:   ac_cv_sizeof_short=0
1.1       root     3133: fi
                   3134: rm -fr conftest*
                   3135: fi
1.1.1.4   root     3136: 
                   3137: fi
1.1       root     3138: echo "$ac_t""$ac_cv_sizeof_short" 1>&6
                   3139: cat >> confdefs.h <<EOF
                   3140: #define SIZEOF_SHORT $ac_cv_sizeof_short
                   3141: EOF
                   3142: 
                   3143: 
                   3144: echo $ac_n "checking size of int""... $ac_c" 1>&6
1.1.1.14  root     3145: echo "configure:3146: checking size of int" >&5
1.1       root     3146: if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
                   3147:   echo $ac_n "(cached) $ac_c" 1>&6
                   3148: else
                   3149:   if test "$cross_compiling" = yes; then
1.1.1.4   root     3150:   ac_cv_sizeof_int=4
1.1       root     3151: else
1.1.1.4   root     3152:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3153: #line 3154 "configure"
1.1       root     3154: #include "confdefs.h"
                   3155: #include <stdio.h>
                   3156: main()
                   3157: {
                   3158:   FILE *f=fopen("conftestval", "w");
                   3159:   if (!f) exit(1);
                   3160:   fprintf(f, "%d\n", sizeof(int));
                   3161:   exit(0);
                   3162: }
                   3163: EOF
1.1.1.14  root     3164: if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     3165: then
1.1       root     3166:   ac_cv_sizeof_int=`cat conftestval`
                   3167: else
1.1.1.4   root     3168:   echo "configure: failed program was:" >&5
                   3169:   cat conftest.$ac_ext >&5
                   3170:   rm -fr conftest*
1.1       root     3171:   ac_cv_sizeof_int=0
                   3172: fi
                   3173: rm -fr conftest*
                   3174: fi
1.1.1.4   root     3175: 
                   3176: fi
1.1       root     3177: echo "$ac_t""$ac_cv_sizeof_int" 1>&6
                   3178: cat >> confdefs.h <<EOF
                   3179: #define SIZEOF_INT $ac_cv_sizeof_int
                   3180: EOF
                   3181: 
                   3182: 
                   3183: echo $ac_n "checking size of long""... $ac_c" 1>&6
1.1.1.14  root     3184: echo "configure:3185: checking size of long" >&5
1.1       root     3185: if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
                   3186:   echo $ac_n "(cached) $ac_c" 1>&6
                   3187: else
                   3188:   if test "$cross_compiling" = yes; then
1.1.1.4   root     3189:   ac_cv_sizeof_long=4
1.1       root     3190: else
1.1.1.4   root     3191:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3192: #line 3193 "configure"
1.1       root     3193: #include "confdefs.h"
                   3194: #include <stdio.h>
                   3195: main()
                   3196: {
                   3197:   FILE *f=fopen("conftestval", "w");
                   3198:   if (!f) exit(1);
                   3199:   fprintf(f, "%d\n", sizeof(long));
                   3200:   exit(0);
                   3201: }
                   3202: EOF
1.1.1.14  root     3203: if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     3204: then
1.1       root     3205:   ac_cv_sizeof_long=`cat conftestval`
                   3206: else
1.1.1.4   root     3207:   echo "configure: failed program was:" >&5
                   3208:   cat conftest.$ac_ext >&5
                   3209:   rm -fr conftest*
1.1       root     3210:   ac_cv_sizeof_long=0
                   3211: fi
                   3212: rm -fr conftest*
                   3213: fi
1.1.1.4   root     3214: 
                   3215: fi
1.1       root     3216: echo "$ac_t""$ac_cv_sizeof_long" 1>&6
                   3217: cat >> confdefs.h <<EOF
                   3218: #define SIZEOF_LONG $ac_cv_sizeof_long
                   3219: EOF
                   3220: 
                   3221: 
                   3222: echo $ac_n "checking size of long long""... $ac_c" 1>&6
1.1.1.14  root     3223: echo "configure:3224: checking size of long long" >&5
1.1       root     3224: if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
                   3225:   echo $ac_n "(cached) $ac_c" 1>&6
                   3226: else
                   3227:   if test "$cross_compiling" = yes; then
1.1.1.4   root     3228:   ac_cv_sizeof_long_long=8
1.1       root     3229: else
1.1.1.4   root     3230:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3231: #line 3232 "configure"
1.1       root     3232: #include "confdefs.h"
                   3233: #include <stdio.h>
                   3234: main()
                   3235: {
                   3236:   FILE *f=fopen("conftestval", "w");
                   3237:   if (!f) exit(1);
                   3238:   fprintf(f, "%d\n", sizeof(long long));
                   3239:   exit(0);
                   3240: }
                   3241: EOF
1.1.1.14  root     3242: if { (eval echo configure:3243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     3243: then
1.1       root     3244:   ac_cv_sizeof_long_long=`cat conftestval`
                   3245: else
1.1.1.4   root     3246:   echo "configure: failed program was:" >&5
                   3247:   cat conftest.$ac_ext >&5
                   3248:   rm -fr conftest*
1.1       root     3249:   ac_cv_sizeof_long_long=0
                   3250: fi
                   3251: rm -fr conftest*
                   3252: fi
1.1.1.4   root     3253: 
                   3254: fi
1.1       root     3255: echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
                   3256: cat >> confdefs.h <<EOF
                   3257: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
                   3258: EOF
                   3259: 
                   3260: 
1.1.1.6   root     3261: echo $ac_n "checking size of __int64""... $ac_c" 1>&6
1.1.1.14  root     3262: echo "configure:3263: checking size of __int64" >&5
1.1.1.6   root     3263: if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
                   3264:   echo $ac_n "(cached) $ac_c" 1>&6
                   3265: else
                   3266:   if test "$cross_compiling" = yes; then
                   3267:   ac_cv_sizeof___int64=8
                   3268: else
                   3269:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3270: #line 3271 "configure"
1.1.1.6   root     3271: #include "confdefs.h"
                   3272: #include <stdio.h>
                   3273: main()
                   3274: {
                   3275:   FILE *f=fopen("conftestval", "w");
                   3276:   if (!f) exit(1);
                   3277:   fprintf(f, "%d\n", sizeof(__int64));
                   3278:   exit(0);
                   3279: }
                   3280: EOF
1.1.1.14  root     3281: if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     3282: then
                   3283:   ac_cv_sizeof___int64=`cat conftestval`
                   3284: else
                   3285:   echo "configure: failed program was:" >&5
                   3286:   cat conftest.$ac_ext >&5
                   3287:   rm -fr conftest*
                   3288:   ac_cv_sizeof___int64=0
                   3289: fi
                   3290: rm -fr conftest*
                   3291: fi
                   3292: 
                   3293: fi
                   3294: echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
                   3295: cat >> confdefs.h <<EOF
                   3296: #define SIZEOF___INT64 $ac_cv_sizeof___int64
                   3297: EOF
                   3298: 
                   3299: 
1.1       root     3300: 
                   3301: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.1.1.14  root     3302: echo "configure:3303: checking for working const" >&5
1.1       root     3303: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
                   3304:   echo $ac_n "(cached) $ac_c" 1>&6
                   3305: else
                   3306:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3307: #line 3308 "configure"
1.1       root     3308: #include "confdefs.h"
                   3309: 
1.1.1.4   root     3310: int main() {
1.1       root     3311: 
                   3312: /* Ultrix mips cc rejects this.  */
                   3313: typedef int charset[2]; const charset x;
                   3314: /* SunOS 4.1.1 cc rejects this.  */
                   3315: char const *const *ccp;
                   3316: char **p;
                   3317: /* NEC SVR4.0.2 mips cc rejects this.  */
                   3318: struct point {int x, y;};
                   3319: static struct point const zero = {0,0};
                   3320: /* AIX XL C 1.02.0.0 rejects this.
                   3321:    It does not let you subtract one const X* pointer from another in an arm
                   3322:    of an if-expression whose if-part is not a constant expression */
                   3323: const char *g = "string";
                   3324: ccp = &g + (g ? g-g : 0);
                   3325: /* HPUX 7.0 cc rejects these. */
                   3326: ++ccp;
                   3327: p = (char**) ccp;
                   3328: ccp = (char const *const *) p;
                   3329: { /* SCO 3.2v4 cc rejects this.  */
                   3330:   char *t;
                   3331:   char const *s = 0 ? (char *) 0 : (char const *) 0;
                   3332: 
                   3333:   *t++ = 0;
                   3334: }
                   3335: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   3336:   int x[] = {25, 17};
                   3337:   const int *foo = &x[0];
                   3338:   ++foo;
                   3339: }
                   3340: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   3341:   typedef const int *iptr;
                   3342:   iptr p = 0;
                   3343:   ++p;
                   3344: }
                   3345: { /* AIX XL C 1.02.0.0 rejects this saying
                   3346:      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   3347:   struct s { int j; const int *ap[3]; };
                   3348:   struct s *b; b->j = 5;
                   3349: }
                   3350: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   3351:   const int foo = 10;
                   3352: }
                   3353: 
                   3354: ; return 0; }
                   3355: EOF
1.1.1.14  root     3356: if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3357:   rm -rf conftest*
                   3358:   ac_cv_c_const=yes
                   3359: else
1.1.1.4   root     3360:   echo "configure: failed program was:" >&5
                   3361:   cat conftest.$ac_ext >&5
1.1       root     3362:   rm -rf conftest*
                   3363:   ac_cv_c_const=no
                   3364: fi
                   3365: rm -f conftest*
                   3366: fi
                   3367: 
                   3368: echo "$ac_t""$ac_cv_c_const" 1>&6
                   3369: if test $ac_cv_c_const = no; then
                   3370:   cat >> confdefs.h <<\EOF
                   3371: #define const 
                   3372: EOF
                   3373: 
                   3374: fi
                   3375: 
                   3376: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.1.1.14  root     3377: echo "configure:3378: checking for inline" >&5
1.1       root     3378: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
                   3379:   echo $ac_n "(cached) $ac_c" 1>&6
                   3380: else
                   3381:   ac_cv_c_inline=no
                   3382: for ac_kw in inline __inline__ __inline; do
                   3383:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3384: #line 3385 "configure"
1.1       root     3385: #include "confdefs.h"
                   3386: 
1.1.1.4   root     3387: int main() {
1.1       root     3388: } $ac_kw foo() {
                   3389: ; return 0; }
                   3390: EOF
1.1.1.14  root     3391: if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3392:   rm -rf conftest*
                   3393:   ac_cv_c_inline=$ac_kw; break
1.1.1.4   root     3394: else
                   3395:   echo "configure: failed program was:" >&5
                   3396:   cat conftest.$ac_ext >&5
1.1       root     3397: fi
                   3398: rm -f conftest*
                   3399: done
                   3400: 
                   3401: fi
                   3402: 
                   3403: echo "$ac_t""$ac_cv_c_inline" 1>&6
                   3404: case "$ac_cv_c_inline" in
                   3405:   inline | yes) ;;
                   3406:   no) cat >> confdefs.h <<\EOF
                   3407: #define inline 
                   3408: EOF
                   3409:  ;;
                   3410:   *)  cat >> confdefs.h <<EOF
                   3411: #define inline $ac_cv_c_inline
                   3412: EOF
                   3413:  ;;
                   3414: esac
                   3415: 
1.1.1.4   root     3416: if [ "x$ac_cv_c_inline" = "xno" ]; then
                   3417:   ac_cv_c_inline=
                   3418: fi
1.1       root     3419: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1.1.1.14  root     3420: echo "configure:3421: checking for mode_t" >&5
1.1       root     3421: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
                   3422:   echo $ac_n "(cached) $ac_c" 1>&6
                   3423: else
                   3424:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3425: #line 3426 "configure"
1.1       root     3426: #include "confdefs.h"
                   3427: #include <sys/types.h>
                   3428: #if STDC_HEADERS
                   3429: #include <stdlib.h>
1.1.1.4   root     3430: #include <stddef.h>
1.1       root     3431: #endif
                   3432: EOF
                   3433: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.9   root     3434:   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1       root     3435:   rm -rf conftest*
                   3436:   ac_cv_type_mode_t=yes
                   3437: else
                   3438:   rm -rf conftest*
                   3439:   ac_cv_type_mode_t=no
                   3440: fi
                   3441: rm -f conftest*
                   3442: 
                   3443: fi
                   3444: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
                   3445: if test $ac_cv_type_mode_t = no; then
                   3446:   cat >> confdefs.h <<\EOF
                   3447: #define mode_t int
                   3448: EOF
                   3449: 
                   3450: fi
                   3451: 
                   3452: echo $ac_n "checking for off_t""... $ac_c" 1>&6
1.1.1.14  root     3453: echo "configure:3454: checking for off_t" >&5
1.1       root     3454: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
                   3455:   echo $ac_n "(cached) $ac_c" 1>&6
                   3456: else
                   3457:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3458: #line 3459 "configure"
1.1       root     3459: #include "confdefs.h"
                   3460: #include <sys/types.h>
                   3461: #if STDC_HEADERS
                   3462: #include <stdlib.h>
1.1.1.4   root     3463: #include <stddef.h>
1.1       root     3464: #endif
                   3465: EOF
                   3466: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.9   root     3467:   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1       root     3468:   rm -rf conftest*
                   3469:   ac_cv_type_off_t=yes
                   3470: else
                   3471:   rm -rf conftest*
                   3472:   ac_cv_type_off_t=no
                   3473: fi
                   3474: rm -f conftest*
                   3475: 
                   3476: fi
                   3477: echo "$ac_t""$ac_cv_type_off_t" 1>&6
                   3478: if test $ac_cv_type_off_t = no; then
                   3479:   cat >> confdefs.h <<\EOF
                   3480: #define off_t long
                   3481: EOF
                   3482: 
                   3483: fi
                   3484: 
                   3485: echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1.1.1.14  root     3486: echo "configure:3487: checking for pid_t" >&5
1.1       root     3487: if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
                   3488:   echo $ac_n "(cached) $ac_c" 1>&6
                   3489: else
                   3490:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3491: #line 3492 "configure"
1.1       root     3492: #include "confdefs.h"
                   3493: #include <sys/types.h>
                   3494: #if STDC_HEADERS
                   3495: #include <stdlib.h>
1.1.1.4   root     3496: #include <stddef.h>
1.1       root     3497: #endif
                   3498: EOF
                   3499: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.9   root     3500:   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1       root     3501:   rm -rf conftest*
                   3502:   ac_cv_type_pid_t=yes
                   3503: else
                   3504:   rm -rf conftest*
                   3505:   ac_cv_type_pid_t=no
                   3506: fi
                   3507: rm -f conftest*
                   3508: 
                   3509: fi
                   3510: echo "$ac_t""$ac_cv_type_pid_t" 1>&6
                   3511: if test $ac_cv_type_pid_t = no; then
                   3512:   cat >> confdefs.h <<\EOF
                   3513: #define pid_t int
                   3514: EOF
                   3515: 
                   3516: fi
                   3517: 
                   3518: echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1.1.1.14  root     3519: echo "configure:3520: checking for st_blocks in struct stat" >&5
1.1       root     3520: if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
                   3521:   echo $ac_n "(cached) $ac_c" 1>&6
                   3522: else
                   3523:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3524: #line 3525 "configure"
1.1       root     3525: #include "confdefs.h"
                   3526: #include <sys/types.h>
                   3527: #include <sys/stat.h>
1.1.1.4   root     3528: int main() {
1.1       root     3529: struct stat s; s.st_blocks;
                   3530: ; return 0; }
                   3531: EOF
1.1.1.14  root     3532: if { (eval echo configure:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3533:   rm -rf conftest*
                   3534:   ac_cv_struct_st_blocks=yes
                   3535: else
1.1.1.4   root     3536:   echo "configure: failed program was:" >&5
                   3537:   cat conftest.$ac_ext >&5
1.1       root     3538:   rm -rf conftest*
                   3539:   ac_cv_struct_st_blocks=no
                   3540: fi
                   3541: rm -f conftest*
                   3542: fi
                   3543: 
                   3544: echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
                   3545: if test $ac_cv_struct_st_blocks = yes; then
                   3546:   cat >> confdefs.h <<\EOF
                   3547: #define HAVE_ST_BLOCKS 1
                   3548: EOF
                   3549: 
                   3550: else
1.1.1.9   root     3551:   LIBOBJS="$LIBOBJS fileblocks.${ac_objext}"
1.1       root     3552: fi
                   3553: 
                   3554: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.1.1.14  root     3555: echo "configure:3556: checking whether time.h and sys/time.h may both be included" >&5
1.1       root     3556: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
                   3557:   echo $ac_n "(cached) $ac_c" 1>&6
                   3558: else
                   3559:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3560: #line 3561 "configure"
1.1       root     3561: #include "confdefs.h"
                   3562: #include <sys/types.h>
                   3563: #include <sys/time.h>
                   3564: #include <time.h>
1.1.1.4   root     3565: int main() {
1.1       root     3566: struct tm *tp;
                   3567: ; return 0; }
                   3568: EOF
1.1.1.14  root     3569: if { (eval echo configure:3570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3570:   rm -rf conftest*
                   3571:   ac_cv_header_time=yes
                   3572: else
1.1.1.4   root     3573:   echo "configure: failed program was:" >&5
                   3574:   cat conftest.$ac_ext >&5
1.1       root     3575:   rm -rf conftest*
                   3576:   ac_cv_header_time=no
                   3577: fi
                   3578: rm -f conftest*
                   3579: fi
                   3580: 
                   3581: echo "$ac_t""$ac_cv_header_time" 1>&6
                   3582: if test $ac_cv_header_time = yes; then
                   3583:   cat >> confdefs.h <<\EOF
                   3584: #define TIME_WITH_SYS_TIME 1
                   3585: EOF
                   3586: 
                   3587: fi
                   3588: 
                   3589: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1.1.1.14  root     3590: echo "configure:3591: checking whether struct tm is in sys/time.h or time.h" >&5
1.1       root     3591: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
                   3592:   echo $ac_n "(cached) $ac_c" 1>&6
                   3593: else
                   3594:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3595: #line 3596 "configure"
1.1       root     3596: #include "confdefs.h"
                   3597: #include <sys/types.h>
                   3598: #include <time.h>
1.1.1.4   root     3599: int main() {
1.1       root     3600: struct tm *tp; tp->tm_sec;
                   3601: ; return 0; }
                   3602: EOF
1.1.1.14  root     3603: if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3604:   rm -rf conftest*
                   3605:   ac_cv_struct_tm=time.h
                   3606: else
1.1.1.4   root     3607:   echo "configure: failed program was:" >&5
                   3608:   cat conftest.$ac_ext >&5
1.1       root     3609:   rm -rf conftest*
                   3610:   ac_cv_struct_tm=sys/time.h
                   3611: fi
                   3612: rm -f conftest*
                   3613: fi
                   3614: 
                   3615: echo "$ac_t""$ac_cv_struct_tm" 1>&6
                   3616: if test $ac_cv_struct_tm = sys/time.h; then
                   3617:   cat >> confdefs.h <<\EOF
                   3618: #define TM_IN_SYS_TIME 1
                   3619: EOF
                   3620: 
                   3621: fi
                   3622: 
                   3623: 
                   3624: if test $ac_cv_prog_gcc = yes; then
                   3625:     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1.1.1.14  root     3626: echo "configure:3627: checking whether ${CC-cc} needs -traditional" >&5
1.1       root     3627: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
                   3628:   echo $ac_n "(cached) $ac_c" 1>&6
                   3629: else
                   3630:     ac_pattern="Autoconf.*'x'"
                   3631:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3632: #line 3633 "configure"
1.1       root     3633: #include "confdefs.h"
                   3634: #include <sgtty.h>
                   3635: Autoconf TIOCGETP
                   3636: EOF
                   3637: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   3638:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   3639:   rm -rf conftest*
                   3640:   ac_cv_prog_gcc_traditional=yes
                   3641: else
                   3642:   rm -rf conftest*
                   3643:   ac_cv_prog_gcc_traditional=no
                   3644: fi
                   3645: rm -f conftest*
                   3646: 
                   3647: 
                   3648:   if test $ac_cv_prog_gcc_traditional = no; then
                   3649:     cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3650: #line 3651 "configure"
1.1       root     3651: #include "confdefs.h"
                   3652: #include <termio.h>
                   3653: Autoconf TCGETA
                   3654: EOF
                   3655: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   3656:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   3657:   rm -rf conftest*
                   3658:   ac_cv_prog_gcc_traditional=yes
                   3659: fi
                   3660: rm -f conftest*
                   3661: 
                   3662:   fi
                   3663: fi
                   3664: 
                   3665: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
                   3666:   if test $ac_cv_prog_gcc_traditional = yes; then
                   3667:     CC="$CC -traditional"
                   3668:   fi
                   3669: fi
                   3670: 
                   3671: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1.1.1.14  root     3672: echo "configure:3673: checking for 8-bit clean memcmp" >&5
1.1.1.4   root     3673: if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1.1       root     3674:   echo $ac_n "(cached) $ac_c" 1>&6
                   3675: else
                   3676:   if test "$cross_compiling" = yes; then
1.1.1.4   root     3677:   ac_cv_func_memcmp_clean=no
1.1       root     3678: else
1.1.1.4   root     3679:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3680: #line 3681 "configure"
1.1       root     3681: #include "confdefs.h"
                   3682: 
                   3683: main()
                   3684: {
                   3685:   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
                   3686:   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
                   3687: }
                   3688: 
                   3689: EOF
1.1.1.14  root     3690: if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     3691: then
                   3692:   ac_cv_func_memcmp_clean=yes
1.1       root     3693: else
1.1.1.4   root     3694:   echo "configure: failed program was:" >&5
                   3695:   cat conftest.$ac_ext >&5
                   3696:   rm -fr conftest*
                   3697:   ac_cv_func_memcmp_clean=no
1.1       root     3698: fi
                   3699: rm -fr conftest*
                   3700: fi
                   3701: 
1.1.1.4   root     3702: fi
                   3703: 
                   3704: echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1.1.1.9   root     3705: test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1.1       root     3706: 
                   3707: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1.1.1.14  root     3708: echo "configure:3709: checking return type of signal handlers" >&5
1.1       root     3709: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
                   3710:   echo $ac_n "(cached) $ac_c" 1>&6
                   3711: else
                   3712:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3713: #line 3714 "configure"
1.1       root     3714: #include "confdefs.h"
                   3715: #include <sys/types.h>
                   3716: #include <signal.h>
                   3717: #ifdef signal
                   3718: #undef signal
                   3719: #endif
                   3720: #ifdef __cplusplus
                   3721: extern "C" void (*signal (int, void (*)(int)))(int);
                   3722: #else
                   3723: void (*signal ()) ();
                   3724: #endif
                   3725: 
1.1.1.4   root     3726: int main() {
1.1       root     3727: int i;
                   3728: ; return 0; }
                   3729: EOF
1.1.1.14  root     3730: if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3731:   rm -rf conftest*
                   3732:   ac_cv_type_signal=void
                   3733: else
1.1.1.4   root     3734:   echo "configure: failed program was:" >&5
                   3735:   cat conftest.$ac_ext >&5
1.1       root     3736:   rm -rf conftest*
                   3737:   ac_cv_type_signal=int
                   3738: fi
                   3739: rm -f conftest*
                   3740: fi
                   3741: 
                   3742: echo "$ac_t""$ac_cv_type_signal" 1>&6
                   3743: cat >> confdefs.h <<EOF
                   3744: #define RETSIGTYPE $ac_cv_type_signal
                   3745: EOF
                   3746: 
                   3747: 
                   3748: echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
1.1.1.14  root     3749: echo "configure:3750: checking whether utime accepts a null argument" >&5
1.1       root     3750: if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
                   3751:   echo $ac_n "(cached) $ac_c" 1>&6
                   3752: else
                   3753:   rm -f conftestdata; > conftestdata
                   3754: # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
                   3755: if test "$cross_compiling" = yes; then
                   3756:   ac_cv_func_utime_null=no
                   3757: else
1.1.1.4   root     3758:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3759: #line 3760 "configure"
1.1       root     3760: #include "confdefs.h"
                   3761: #include <sys/types.h>
                   3762: #include <sys/stat.h>
                   3763: main() {
                   3764: struct stat s, t;
                   3765: exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
                   3766: && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
                   3767: && t.st_mtime - s.st_mtime < 120));
                   3768: }
                   3769: EOF
1.1.1.14  root     3770: if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     3771: then
1.1       root     3772:   ac_cv_func_utime_null=yes
                   3773: else
1.1.1.4   root     3774:   echo "configure: failed program was:" >&5
                   3775:   cat conftest.$ac_ext >&5
                   3776:   rm -fr conftest*
1.1       root     3777:   ac_cv_func_utime_null=no
                   3778: fi
                   3779: rm -fr conftest*
1.1.1.4   root     3780: fi
                   3781: 
1.1       root     3782: rm -f core core.* *.core
                   3783: fi
                   3784: 
                   3785: echo "$ac_t""$ac_cv_func_utime_null" 1>&6
                   3786: if test $ac_cv_func_utime_null = yes; then
                   3787:   cat >> confdefs.h <<\EOF
                   3788: #define HAVE_UTIME_NULL 1
                   3789: EOF
                   3790: 
                   3791: fi
                   3792: 
1.1.1.6   root     3793: for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir select strerror strstr
                   3794: do
                   3795: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.14  root     3796: echo "configure:3797: checking for $ac_func" >&5
1.1.1.6   root     3797: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3798:   echo $ac_n "(cached) $ac_c" 1>&6
                   3799: else
                   3800:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3801: #line 3802 "configure"
1.1.1.6   root     3802: #include "confdefs.h"
                   3803: /* System header to define __stub macros and hopefully few prototypes,
                   3804:     which can conflict with char $ac_func(); below.  */
                   3805: #include <assert.h>
                   3806: /* Override any gcc2 internal prototype to avoid an error.  */
                   3807: /* We use char because int might match the return type of a gcc2
                   3808:     builtin and then its argument prototype would still apply.  */
                   3809: char $ac_func();
                   3810: 
                   3811: int main() {
                   3812: 
                   3813: /* The GNU C library defines this for functions which it implements
                   3814:     to always fail with ENOSYS.  Some functions are actually named
                   3815:     something starting with __ and the normal name is an alias.  */
                   3816: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3817: choke me
                   3818: #else
                   3819: $ac_func();
                   3820: #endif
                   3821: 
                   3822: ; return 0; }
                   3823: EOF
1.1.1.14  root     3824: if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     3825:   rm -rf conftest*
                   3826:   eval "ac_cv_func_$ac_func=yes"
                   3827: else
                   3828:   echo "configure: failed program was:" >&5
                   3829:   cat conftest.$ac_ext >&5
                   3830:   rm -rf conftest*
                   3831:   eval "ac_cv_func_$ac_func=no"
                   3832: fi
                   3833: rm -f conftest*
                   3834: fi
                   3835: 
                   3836: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3837:   echo "$ac_t""yes" 1>&6
                   3838:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3839:   cat >> confdefs.h <<EOF
                   3840: #define $ac_tr_func 1
                   3841: EOF
                   3842:  
                   3843: else
                   3844:   echo "$ac_t""no" 1>&6
                   3845: fi
                   3846: done
                   3847: 
                   3848: for ac_func in tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf
1.1       root     3849: do
                   3850: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.14  root     3851: echo "configure:3852: checking for $ac_func" >&5
1.1       root     3852: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3853:   echo $ac_n "(cached) $ac_c" 1>&6
                   3854: else
                   3855:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3856: #line 3857 "configure"
1.1       root     3857: #include "confdefs.h"
                   3858: /* System header to define __stub macros and hopefully few prototypes,
                   3859:     which can conflict with char $ac_func(); below.  */
                   3860: #include <assert.h>
                   3861: /* Override any gcc2 internal prototype to avoid an error.  */
                   3862: /* We use char because int might match the return type of a gcc2
                   3863:     builtin and then its argument prototype would still apply.  */
                   3864: char $ac_func();
                   3865: 
1.1.1.4   root     3866: int main() {
1.1       root     3867: 
                   3868: /* The GNU C library defines this for functions which it implements
                   3869:     to always fail with ENOSYS.  Some functions are actually named
                   3870:     something starting with __ and the normal name is an alias.  */
                   3871: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3872: choke me
                   3873: #else
                   3874: $ac_func();
                   3875: #endif
                   3876: 
                   3877: ; return 0; }
                   3878: EOF
1.1.1.14  root     3879: if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     3880:   rm -rf conftest*
                   3881:   eval "ac_cv_func_$ac_func=yes"
                   3882: else
1.1.1.4   root     3883:   echo "configure: failed program was:" >&5
                   3884:   cat conftest.$ac_ext >&5
1.1       root     3885:   rm -rf conftest*
                   3886:   eval "ac_cv_func_$ac_func=no"
                   3887: fi
                   3888: rm -f conftest*
1.1.1.4   root     3889: fi
                   3890: 
                   3891: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3892:   echo "$ac_t""yes" 1>&6
                   3893:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3894:   cat >> confdefs.h <<EOF
                   3895: #define $ac_tr_func 1
                   3896: EOF
                   3897:  
                   3898: else
                   3899:   echo "$ac_t""no" 1>&6
                   3900: fi
1.1.1.6   root     3901: done
                   3902: 
                   3903: 
                   3904: DO_FILEUTILS_CHECK=yes
                   3905: if test $uae_cv_prog_cc_watcom = yes -o $am_cv_mingw32 = yes; then
                   3906:   DO_FILEUTILS_CHECK=no
                   3907: fi
                   3908: if test $DO_FILEUTILS_CHECK = yes; then
                   3909:        
                   3910: for ac_hdr in fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
                   3911: mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
                   3912: sys/filsys.h sys/fs_types.h sys/fs/s5param.h
                   3913: do
                   3914: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   3915: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.14  root     3916: echo "configure:3917: checking for $ac_hdr" >&5
1.1.1.6   root     3917: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   3918:   echo $ac_n "(cached) $ac_c" 1>&6
                   3919: else
                   3920:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3921: #line 3922 "configure"
1.1.1.6   root     3922: #include "confdefs.h"
                   3923: #include <$ac_hdr>
                   3924: EOF
                   3925: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     3926: { (eval echo configure:3927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     3927: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     3928: if test -z "$ac_err"; then
                   3929:   rm -rf conftest*
                   3930:   eval "ac_cv_header_$ac_safe=yes"
                   3931: else
                   3932:   echo "$ac_err" >&5
                   3933:   echo "configure: failed program was:" >&5
                   3934:   cat conftest.$ac_ext >&5
                   3935:   rm -rf conftest*
                   3936:   eval "ac_cv_header_$ac_safe=no"
                   3937: fi
                   3938: rm -f conftest*
                   3939: fi
                   3940: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   3941:   echo "$ac_t""yes" 1>&6
                   3942:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   3943:   cat >> confdefs.h <<EOF
                   3944: #define $ac_tr_hdr 1
                   3945: EOF
                   3946:  
                   3947: else
                   3948:   echo "$ac_t""no" 1>&6
                   3949: fi
                   3950: done
                   3951: 
                   3952: 
                   3953: for ac_func in bcopy endgrent endpwent fchdir ftime ftruncate \
                   3954: getcwd getmntinfo gettimeofday isascii lchown \
                   3955: listmntent memcpy mkfifo strchr strerror strrchr
                   3956: do
                   3957: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.14  root     3958: echo "configure:3959: checking for $ac_func" >&5
1.1.1.6   root     3959: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3960:   echo $ac_n "(cached) $ac_c" 1>&6
                   3961: else
                   3962:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     3963: #line 3964 "configure"
1.1.1.6   root     3964: #include "confdefs.h"
                   3965: /* System header to define __stub macros and hopefully few prototypes,
                   3966:     which can conflict with char $ac_func(); below.  */
                   3967: #include <assert.h>
                   3968: /* Override any gcc2 internal prototype to avoid an error.  */
                   3969: /* We use char because int might match the return type of a gcc2
                   3970:     builtin and then its argument prototype would still apply.  */
                   3971: char $ac_func();
                   3972: 
                   3973: int main() {
                   3974: 
                   3975: /* The GNU C library defines this for functions which it implements
                   3976:     to always fail with ENOSYS.  Some functions are actually named
                   3977:     something starting with __ and the normal name is an alias.  */
                   3978: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3979: choke me
                   3980: #else
                   3981: $ac_func();
                   3982: #endif
                   3983: 
                   3984: ; return 0; }
                   3985: EOF
1.1.1.14  root     3986: if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     3987:   rm -rf conftest*
                   3988:   eval "ac_cv_func_$ac_func=yes"
                   3989: else
                   3990:   echo "configure: failed program was:" >&5
                   3991:   cat conftest.$ac_ext >&5
                   3992:   rm -rf conftest*
                   3993:   eval "ac_cv_func_$ac_func=no"
                   3994: fi
                   3995: rm -f conftest*
                   3996: fi
                   3997: 
                   3998: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3999:   echo "$ac_t""yes" 1>&6
                   4000:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   4001:   cat >> confdefs.h <<EOF
                   4002: #define $ac_tr_func 1
                   4003: EOF
                   4004:  
                   4005: else
                   4006:   echo "$ac_t""no" 1>&6
                   4007: fi
                   4008: done
                   4009: 
                   4010: 
                   4011: # Determine how to get the list of mounted filesystems.
                   4012: list_mounted_fs=
                   4013: 
                   4014: # If the getmntent function is available but not in the standard library,
                   4015: # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
                   4016: # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
                   4017: echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
1.1.1.14  root     4018: echo "configure:4019: checking for getmntent in -lsun" >&5
1.1.1.6   root     4019: ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
                   4020: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4021:   echo $ac_n "(cached) $ac_c" 1>&6
                   4022: else
                   4023:   ac_save_LIBS="$LIBS"
                   4024: LIBS="-lsun  $LIBS"
                   4025: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4026: #line 4027 "configure"
1.1.1.6   root     4027: #include "confdefs.h"
                   4028: /* Override any gcc2 internal prototype to avoid an error.  */
                   4029: /* We use char because int might match the return type of a gcc2
                   4030:     builtin and then its argument prototype would still apply.  */
                   4031: char getmntent();
                   4032: 
                   4033: int main() {
                   4034: getmntent()
                   4035: ; return 0; }
                   4036: EOF
1.1.1.14  root     4037: if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4038:   rm -rf conftest*
                   4039:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4040: else
                   4041:   echo "configure: failed program was:" >&5
                   4042:   cat conftest.$ac_ext >&5
                   4043:   rm -rf conftest*
                   4044:   eval "ac_cv_lib_$ac_lib_var=no"
                   4045: fi
                   4046: rm -f conftest*
                   4047: LIBS="$ac_save_LIBS"
                   4048: 
                   4049: fi
                   4050: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4051:   echo "$ac_t""yes" 1>&6
                   4052:   LIBS="-lsun $LIBS"
                   4053: else
                   4054:   echo "$ac_t""no" 1>&6
                   4055: echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
1.1.1.14  root     4056: echo "configure:4057: checking for getmntent in -lseq" >&5
1.1.1.6   root     4057: ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
                   4058: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4059:   echo $ac_n "(cached) $ac_c" 1>&6
                   4060: else
                   4061:   ac_save_LIBS="$LIBS"
                   4062: LIBS="-lseq  $LIBS"
                   4063: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4064: #line 4065 "configure"
1.1.1.6   root     4065: #include "confdefs.h"
                   4066: /* Override any gcc2 internal prototype to avoid an error.  */
                   4067: /* We use char because int might match the return type of a gcc2
                   4068:     builtin and then its argument prototype would still apply.  */
                   4069: char getmntent();
                   4070: 
                   4071: int main() {
                   4072: getmntent()
                   4073: ; return 0; }
                   4074: EOF
1.1.1.14  root     4075: if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4076:   rm -rf conftest*
                   4077:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4078: else
                   4079:   echo "configure: failed program was:" >&5
                   4080:   cat conftest.$ac_ext >&5
                   4081:   rm -rf conftest*
                   4082:   eval "ac_cv_lib_$ac_lib_var=no"
                   4083: fi
                   4084: rm -f conftest*
                   4085: LIBS="$ac_save_LIBS"
                   4086: 
                   4087: fi
                   4088: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4089:   echo "$ac_t""yes" 1>&6
                   4090:   LIBS="-lseq $LIBS"
                   4091: else
                   4092:   echo "$ac_t""no" 1>&6
                   4093: echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
1.1.1.14  root     4094: echo "configure:4095: checking for getmntent in -lgen" >&5
1.1.1.6   root     4095: ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
                   4096: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4097:   echo $ac_n "(cached) $ac_c" 1>&6
                   4098: else
                   4099:   ac_save_LIBS="$LIBS"
                   4100: LIBS="-lgen  $LIBS"
                   4101: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4102: #line 4103 "configure"
1.1.1.6   root     4103: #include "confdefs.h"
                   4104: /* Override any gcc2 internal prototype to avoid an error.  */
                   4105: /* We use char because int might match the return type of a gcc2
                   4106:     builtin and then its argument prototype would still apply.  */
                   4107: char getmntent();
                   4108: 
                   4109: int main() {
                   4110: getmntent()
                   4111: ; return 0; }
                   4112: EOF
1.1.1.14  root     4113: if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4114:   rm -rf conftest*
                   4115:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4116: else
                   4117:   echo "configure: failed program was:" >&5
                   4118:   cat conftest.$ac_ext >&5
                   4119:   rm -rf conftest*
                   4120:   eval "ac_cv_lib_$ac_lib_var=no"
                   4121: fi
                   4122: rm -f conftest*
                   4123: LIBS="$ac_save_LIBS"
                   4124: 
                   4125: fi
                   4126: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4127:   echo "$ac_t""yes" 1>&6
                   4128:   LIBS="-lgen $LIBS"
                   4129: else
                   4130:   echo "$ac_t""no" 1>&6
                   4131: fi
                   4132: 
                   4133: fi
                   4134: 
                   4135: fi
                   4136: 
                   4137: echo $ac_n "checking for getmntent""... $ac_c" 1>&6
1.1.1.14  root     4138: echo "configure:4139: checking for getmntent" >&5
1.1.1.6   root     4139: if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
                   4140:   echo $ac_n "(cached) $ac_c" 1>&6
                   4141: else
                   4142:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4143: #line 4144 "configure"
1.1.1.6   root     4144: #include "confdefs.h"
                   4145: /* System header to define __stub macros and hopefully few prototypes,
                   4146:     which can conflict with char getmntent(); below.  */
                   4147: #include <assert.h>
                   4148: /* Override any gcc2 internal prototype to avoid an error.  */
                   4149: /* We use char because int might match the return type of a gcc2
                   4150:     builtin and then its argument prototype would still apply.  */
                   4151: char getmntent();
                   4152: 
                   4153: int main() {
                   4154: 
                   4155: /* The GNU C library defines this for functions which it implements
                   4156:     to always fail with ENOSYS.  Some functions are actually named
                   4157:     something starting with __ and the normal name is an alias.  */
                   4158: #if defined (__stub_getmntent) || defined (__stub___getmntent)
                   4159: choke me
                   4160: #else
                   4161: getmntent();
                   4162: #endif
                   4163: 
                   4164: ; return 0; }
                   4165: EOF
1.1.1.14  root     4166: if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4167:   rm -rf conftest*
                   4168:   eval "ac_cv_func_getmntent=yes"
                   4169: else
                   4170:   echo "configure: failed program was:" >&5
                   4171:   cat conftest.$ac_ext >&5
                   4172:   rm -rf conftest*
                   4173:   eval "ac_cv_func_getmntent=no"
                   4174: fi
                   4175: rm -f conftest*
                   4176: fi
                   4177: 
                   4178: if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
                   4179:   echo "$ac_t""yes" 1>&6
                   4180:   cat >> confdefs.h <<\EOF
                   4181: #define HAVE_GETMNTENT 1
                   4182: EOF
                   4183: 
                   4184: else
                   4185:   echo "$ac_t""no" 1>&6
                   4186: fi
                   4187: 
                   4188: 
                   4189: # This test must precede the ones for getmntent because Unicos-9 is
                   4190: # reported to have the getmntent function, but its support is incompatible
                   4191: # with other getmntent implementations.
                   4192: 
                   4193: # NOTE: Normally, I wouldn't use a check for system type as I've done for
                   4194: # `CRAY' below since that goes against the whole autoconf philosophy.  But
                   4195: # I think there is too great a chance that some non-Cray system has a
                   4196: # function named listmntent to risk the false positive.
                   4197: 
                   4198: if test -z "$list_mounted_fs"; then
                   4199: # Cray UNICOS 9
                   4200: echo $ac_n "checking for listmntent of Cray/Unicos-9""... $ac_c" 1>&6
1.1.1.14  root     4201: echo "configure:4202: checking for listmntent of Cray/Unicos-9" >&5
1.1.1.6   root     4202: if eval "test \"`echo '$''{'fu_cv_sys_mounted_cray_listmntent'+set}'`\" = set"; then
                   4203:   echo $ac_n "(cached) $ac_c" 1>&6
                   4204: else
                   4205:   fu_cv_sys_mounted_cray_listmntent=no
                   4206: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4207: #line 4208 "configure"
1.1.1.6   root     4208: #include "confdefs.h"
                   4209: #ifdef _CRAY
                   4210: yes
                   4211: #endif
                   4212: 
                   4213: EOF
                   4214: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4215:   egrep "yes" >/dev/null 2>&1; then
                   4216:   rm -rf conftest*
                   4217:   test $ac_cv_func_listmntent = yes \
                   4218: && fu_cv_sys_mounted_cray_listmntent=yes
                   4219: 
                   4220: fi
                   4221: rm -f conftest*
                   4222: 
                   4223: 
                   4224: 
                   4225: fi
                   4226: 
                   4227: echo "$ac_t""$fu_cv_sys_mounted_cray_listmntent" 1>&6
                   4228: if test $fu_cv_sys_mounted_cray_listmntent = yes; then
                   4229: list_mounted_fs=found
                   4230: cat >> confdefs.h <<\EOF
                   4231: #define MOUNTED_LISTMNTENT 1
                   4232: EOF
                   4233: 
                   4234: fi
                   4235: fi
                   4236: 
                   4237: if test $ac_cv_func_getmntent = yes; then
                   4238: 
                   4239: # This system has the getmntent function.
                   4240: # Determine whether it's the one-argument variant or the two-argument one.
                   4241: 
                   4242: if test -z "$list_mounted_fs"; then
                   4243: # 4.3BSD, SunOS, HP-UX, Dynix, Irix
                   4244: echo $ac_n "checking for one-argument getmntent function""... $ac_c" 1>&6
1.1.1.14  root     4245: echo "configure:4246: checking for one-argument getmntent function" >&5
1.1.1.6   root     4246: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent1'+set}'`\" = set"; then
                   4247:   echo $ac_n "(cached) $ac_c" 1>&6
                   4248: else
                   4249:   test $ac_cv_header_mntent_h = yes \
                   4250: && fu_cv_sys_mounted_getmntent1=yes \
                   4251: || fu_cv_sys_mounted_getmntent1=no
                   4252: fi
                   4253: 
                   4254: echo "$ac_t""$fu_cv_sys_mounted_getmntent1" 1>&6
                   4255: if test $fu_cv_sys_mounted_getmntent1 = yes; then
                   4256: list_mounted_fs=found
                   4257: cat >> confdefs.h <<\EOF
                   4258: #define MOUNTED_GETMNTENT1 1
                   4259: EOF
                   4260: 
                   4261: fi
                   4262: fi
                   4263: 
                   4264: if test -z "$list_mounted_fs"; then
                   4265: # SVR4
                   4266: echo $ac_n "checking for two-argument getmntent function""... $ac_c" 1>&6
1.1.1.14  root     4267: echo "configure:4268: checking for two-argument getmntent function" >&5
1.1.1.6   root     4268: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent2'+set}'`\" = set"; then
                   4269:   echo $ac_n "(cached) $ac_c" 1>&6
                   4270: else
                   4271:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4272: #line 4273 "configure"
1.1.1.6   root     4273: #include "confdefs.h"
                   4274: #include <sys/mnttab.h>
                   4275: EOF
                   4276: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4277:   egrep "getmntent" >/dev/null 2>&1; then
                   4278:   rm -rf conftest*
                   4279:   fu_cv_sys_mounted_getmntent2=yes
                   4280: else
                   4281:   rm -rf conftest*
                   4282:   fu_cv_sys_mounted_getmntent2=no
                   4283: fi
                   4284: rm -f conftest*
                   4285: 
                   4286: fi
                   4287: 
                   4288: echo "$ac_t""$fu_cv_sys_mounted_getmntent2" 1>&6
                   4289: if test $fu_cv_sys_mounted_getmntent2 = yes; then
                   4290: list_mounted_fs=found
                   4291: cat >> confdefs.h <<\EOF
                   4292: #define MOUNTED_GETMNTENT2 1
                   4293: EOF
                   4294: 
                   4295: fi
                   4296: fi
                   4297: 
                   4298: if test -z "$list_mounted_fs"; then
                   4299: { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
                   4300: fi
                   4301: 
                   4302: fi
                   4303: 
                   4304: if test -z "$list_mounted_fs"; then
                   4305: # DEC Alpha running OSF/1.
                   4306: echo $ac_n "checking for getfsstat function""... $ac_c" 1>&6
1.1.1.14  root     4307: echo "configure:4308: checking for getfsstat function" >&5
1.1.1.6   root     4308: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getsstat'+set}'`\" = set"; then
                   4309:   echo $ac_n "(cached) $ac_c" 1>&6
                   4310: else
                   4311:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4312: #line 4313 "configure"
1.1.1.6   root     4313: #include "confdefs.h"
                   4314: 
                   4315: #include <sys/types.h>
                   4316: #include <sys/mount.h>
                   4317: #include <sys/fs_types.h>
                   4318: int main() {
                   4319: struct statfs *stats;
                   4320: int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); 
                   4321: ; return 0; }
                   4322: EOF
1.1.1.14  root     4323: if { (eval echo configure:4324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4324:   rm -rf conftest*
                   4325:   fu_cv_sys_mounted_getsstat=yes
                   4326: else
                   4327:   echo "configure: failed program was:" >&5
                   4328:   cat conftest.$ac_ext >&5
                   4329:   rm -rf conftest*
                   4330:   fu_cv_sys_mounted_getsstat=no
                   4331: fi
                   4332: rm -f conftest*
                   4333: fi
                   4334: 
                   4335: echo "$ac_t""$fu_cv_sys_mounted_getsstat" 1>&6
                   4336: if test $fu_cv_sys_mounted_getsstat = yes; then
                   4337: list_mounted_fs=found
                   4338: cat >> confdefs.h <<\EOF
                   4339: #define MOUNTED_GETFSSTAT 1
                   4340: EOF
                   4341: 
                   4342: fi
                   4343: fi
                   4344: 
                   4345: if test -z "$list_mounted_fs"; then
                   4346: # AIX.
                   4347: echo $ac_n "checking for mntctl function and struct vmount""... $ac_c" 1>&6
1.1.1.14  root     4348: echo "configure:4349: checking for mntctl function and struct vmount" >&5
1.1.1.6   root     4349: if eval "test \"`echo '$''{'fu_cv_sys_mounted_vmount'+set}'`\" = set"; then
                   4350:   echo $ac_n "(cached) $ac_c" 1>&6
                   4351: else
                   4352:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4353: #line 4354 "configure"
1.1.1.6   root     4354: #include "confdefs.h"
                   4355: #include <fshelp.h>
                   4356: EOF
                   4357: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     4358: { (eval echo configure:4359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4359: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4360: if test -z "$ac_err"; then
                   4361:   rm -rf conftest*
                   4362:   fu_cv_sys_mounted_vmount=yes
                   4363: else
                   4364:   echo "$ac_err" >&5
                   4365:   echo "configure: failed program was:" >&5
                   4366:   cat conftest.$ac_ext >&5
                   4367:   rm -rf conftest*
                   4368:   fu_cv_sys_mounted_vmount=no
                   4369: fi
                   4370: rm -f conftest*
                   4371: fi
                   4372: 
                   4373: echo "$ac_t""$fu_cv_sys_mounted_vmount" 1>&6
                   4374: if test $fu_cv_sys_mounted_vmount = yes; then
                   4375: list_mounted_fs=found
                   4376: cat >> confdefs.h <<\EOF
                   4377: #define MOUNTED_VMOUNT 1
                   4378: EOF
                   4379: 
                   4380: fi
                   4381: fi
                   4382: 
                   4383: if test -z "$list_mounted_fs"; then
                   4384: # SVR3
                   4385: echo $ac_n "checking for FIXME existence of three headers""... $ac_c" 1>&6
1.1.1.14  root     4386: echo "configure:4387: checking for FIXME existence of three headers" >&5
1.1.1.6   root     4387: if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread_fstyp'+set}'`\" = set"; then
                   4388:   echo $ac_n "(cached) $ac_c" 1>&6
                   4389: else
                   4390:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4391: #line 4392 "configure"
1.1.1.6   root     4392: #include "confdefs.h"
                   4393: 
                   4394: #include <sys/statfs.h>
                   4395: #include <sys/fstyp.h>
                   4396: #include <mnttab.h>
                   4397: EOF
                   4398: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     4399: { (eval echo configure:4400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4400: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4401: if test -z "$ac_err"; then
                   4402:   rm -rf conftest*
                   4403:   fu_cv_sys_mounted_fread_fstyp=yes
                   4404: else
                   4405:   echo "$ac_err" >&5
                   4406:   echo "configure: failed program was:" >&5
                   4407:   cat conftest.$ac_ext >&5
                   4408:   rm -rf conftest*
                   4409:   fu_cv_sys_mounted_fread_fstyp=no
                   4410: fi
                   4411: rm -f conftest*
                   4412: fi
                   4413: 
                   4414: echo "$ac_t""$fu_cv_sys_mounted_fread_fstyp" 1>&6
                   4415: if test $fu_cv_sys_mounted_fread_fstyp = yes; then
                   4416: list_mounted_fs=found
                   4417: cat >> confdefs.h <<\EOF
                   4418: #define MOUNTED_FREAD_FSTYP 1
                   4419: EOF
                   4420: 
                   4421: fi
                   4422: fi
                   4423: 
                   4424: if test -z "$list_mounted_fs"; then
                   4425: # 4.4BSD and DEC OSF/1.
                   4426: echo $ac_n "checking for getmntinfo function""... $ac_c" 1>&6
1.1.1.14  root     4427: echo "configure:4428: checking for getmntinfo function" >&5
1.1.1.6   root     4428: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntinfo'+set}'`\" = set"; then
                   4429:   echo $ac_n "(cached) $ac_c" 1>&6
                   4430: else
                   4431:   
                   4432: ok=
                   4433: if test $ac_cv_func_getmntinfo = yes; then
                   4434: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4435: #line 4436 "configure"
1.1.1.6   root     4436: #include "confdefs.h"
                   4437: #include <sys/mount.h>
                   4438: EOF
                   4439: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   4440:   egrep "f_type;" >/dev/null 2>&1; then
                   4441:   rm -rf conftest*
                   4442:   ok=yes
                   4443: fi
                   4444: rm -f conftest*
                   4445: 
                   4446: fi
                   4447: test -n "$ok" \
                   4448: && fu_cv_sys_mounted_getmntinfo=yes \
                   4449: || fu_cv_sys_mounted_getmntinfo=no
                   4450: 
                   4451: fi
                   4452: 
                   4453: echo "$ac_t""$fu_cv_sys_mounted_getmntinfo" 1>&6
                   4454: if test $fu_cv_sys_mounted_getmntinfo = yes; then
                   4455: list_mounted_fs=found
                   4456: cat >> confdefs.h <<\EOF
                   4457: #define MOUNTED_GETMNTINFO 1
                   4458: EOF
                   4459: 
                   4460: fi
                   4461: fi
                   4462: 
                   4463: # FIXME: add a test for netbsd-1.1 here
                   4464: 
                   4465: if test -z "$list_mounted_fs"; then
                   4466: # Ultrix
                   4467: echo $ac_n "checking for getmnt function""... $ac_c" 1>&6
1.1.1.14  root     4468: echo "configure:4469: checking for getmnt function" >&5
1.1.1.6   root     4469: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmnt'+set}'`\" = set"; then
                   4470:   echo $ac_n "(cached) $ac_c" 1>&6
                   4471: else
                   4472:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4473: #line 4474 "configure"
1.1.1.6   root     4474: #include "confdefs.h"
                   4475: 
                   4476: #include <sys/fs_types.h>
                   4477: #include <sys/mount.h>
                   4478: EOF
                   4479: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     4480: { (eval echo configure:4481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4481: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4482: if test -z "$ac_err"; then
                   4483:   rm -rf conftest*
                   4484:   fu_cv_sys_mounted_getmnt=yes
                   4485: else
                   4486:   echo "$ac_err" >&5
                   4487:   echo "configure: failed program was:" >&5
                   4488:   cat conftest.$ac_ext >&5
                   4489:   rm -rf conftest*
                   4490:   fu_cv_sys_mounted_getmnt=no
                   4491: fi
                   4492: rm -f conftest*
                   4493: fi
                   4494: 
                   4495: echo "$ac_t""$fu_cv_sys_mounted_getmnt" 1>&6
                   4496: if test $fu_cv_sys_mounted_getmnt = yes; then
                   4497: list_mounted_fs=found
                   4498: cat >> confdefs.h <<\EOF
                   4499: #define MOUNTED_GETMNT 1
                   4500: EOF
                   4501: 
                   4502: fi
                   4503: fi
                   4504: 
                   4505: if test -z "$list_mounted_fs"; then
                   4506: # SVR2
                   4507: echo $ac_n "checking whether it is possible to resort to fread on /etc/mnttab""... $ac_c" 1>&6
1.1.1.14  root     4508: echo "configure:4509: checking whether it is possible to resort to fread on /etc/mnttab" >&5
1.1.1.6   root     4509: if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread'+set}'`\" = set"; then
                   4510:   echo $ac_n "(cached) $ac_c" 1>&6
                   4511: else
                   4512:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4513: #line 4514 "configure"
1.1.1.6   root     4514: #include "confdefs.h"
                   4515: #include <mnttab.h>
                   4516: EOF
                   4517: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     4518: { (eval echo configure:4519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4519: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4520: if test -z "$ac_err"; then
                   4521:   rm -rf conftest*
                   4522:   fu_cv_sys_mounted_fread=yes
                   4523: else
                   4524:   echo "$ac_err" >&5
                   4525:   echo "configure: failed program was:" >&5
                   4526:   cat conftest.$ac_ext >&5
                   4527:   rm -rf conftest*
                   4528:   fu_cv_sys_mounted_fread=no
                   4529: fi
                   4530: rm -f conftest*
                   4531: fi
                   4532: 
                   4533: echo "$ac_t""$fu_cv_sys_mounted_fread" 1>&6
                   4534: if test $fu_cv_sys_mounted_fread = yes; then
                   4535: list_mounted_fs=found
                   4536: cat >> confdefs.h <<\EOF
                   4537: #define MOUNTED_FREAD 1
                   4538: EOF
                   4539: 
                   4540: fi
                   4541: fi
                   4542: 
                   4543: if test -z "$list_mounted_fs"; then
                   4544: { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
                   4545: # FIXME -- no need to abort building the whole package
                   4546: # Can't build mountlist.c or anything that needs its functions
                   4547: fi
                   4548: 
                   4549: echo "checking how to get filesystem space usage" 1>&6
1.1.1.14  root     4550: echo "configure:4551: checking how to get filesystem space usage" >&5
1.1.1.6   root     4551: space=no
                   4552: 
                   4553: # Perform only the link test since it seems there are no variants of the
                   4554: # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
                   4555: # because that got a false positive on SCO OSR5.  Adding the declaration
                   4556: # of a `struct statvfs' causes this test to fail (as it should) on such
                   4557: # systems.  That system is reported to work fine with STAT_STATFS4 which
                   4558: # is what it gets when this test fails.
                   4559: if test $space = no; then
                   4560: # SVR4
                   4561: echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
1.1.1.14  root     4562: echo "configure:4563: checking statvfs function (SVR4)" >&5
1.1.1.6   root     4563: if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
                   4564:   echo $ac_n "(cached) $ac_c" 1>&6
                   4565: else
                   4566:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4567: #line 4568 "configure"
1.1.1.6   root     4568: #include "confdefs.h"
                   4569: #include <sys/types.h>
                   4570: #include <sys/statvfs.h>
                   4571: int main() {
                   4572: struct statvfs fsd; statvfs (0, &fsd);
                   4573: ; return 0; }
                   4574: EOF
1.1.1.14  root     4575: if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     4576:   rm -rf conftest*
                   4577:   fu_cv_sys_stat_statvfs=yes
                   4578: else
                   4579:   echo "configure: failed program was:" >&5
                   4580:   cat conftest.$ac_ext >&5
                   4581:   rm -rf conftest*
                   4582:   fu_cv_sys_stat_statvfs=no
                   4583: fi
                   4584: rm -f conftest*
                   4585: fi
                   4586: 
                   4587: echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
                   4588: if test $fu_cv_sys_stat_statvfs = yes; then
                   4589: space=yes
                   4590: cat >> confdefs.h <<\EOF
                   4591: #define STAT_STATVFS 1
                   4592: EOF
                   4593: 
                   4594: fi
                   4595: fi
                   4596: 
                   4597: if test $space = no; then
                   4598: # DEC Alpha running OSF/1
                   4599: echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
1.1.1.14  root     4600: echo "configure:4601: checking for 3-argument statfs function (DEC OSF/1)" >&5
1.1.1.6   root     4601: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
                   4602:   echo $ac_n "(cached) $ac_c" 1>&6
                   4603: else
                   4604:   if test "$cross_compiling" = yes; then
                   4605:   fu_cv_sys_stat_statfs3_osf1=no
                   4606: else
                   4607:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4608: #line 4609 "configure"
1.1.1.6   root     4609: #include "confdefs.h"
                   4610: 
                   4611: #include <sys/param.h>
                   4612: #include <sys/types.h>
                   4613: #include <sys/mount.h>
                   4614: main ()
                   4615: {
                   4616: struct statfs fsd;
                   4617: fsd.f_fsize = 0;
                   4618: exit (statfs (".", &fsd, sizeof (struct statfs)));
                   4619: }
                   4620: EOF
1.1.1.14  root     4621: if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     4622: then
                   4623:   fu_cv_sys_stat_statfs3_osf1=yes
                   4624: else
                   4625:   echo "configure: failed program was:" >&5
                   4626:   cat conftest.$ac_ext >&5
                   4627:   rm -fr conftest*
                   4628:   fu_cv_sys_stat_statfs3_osf1=no
                   4629: fi
                   4630: rm -fr conftest*
                   4631: fi
                   4632: 
                   4633: fi
                   4634: 
                   4635: echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
                   4636: if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
                   4637: space=yes
                   4638: cat >> confdefs.h <<\EOF
                   4639: #define STAT_STATFS3_OSF1 1
                   4640: EOF
                   4641: 
                   4642: fi
                   4643: fi
                   4644: 
                   4645: if test $space = no; then
                   4646: # AIX
                   4647: echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
1.1.1.14  root     4648: echo "configure:4649: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
1.1.1.6   root     4649: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
                   4650:   echo $ac_n "(cached) $ac_c" 1>&6
                   4651: else
                   4652:   if test "$cross_compiling" = yes; then
                   4653:   fu_cv_sys_stat_statfs2_bsize=no
                   4654: else
                   4655:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4656: #line 4657 "configure"
1.1.1.6   root     4657: #include "confdefs.h"
                   4658: 
                   4659: #ifdef HAVE_SYS_PARAM_H
                   4660: #include <sys/param.h>
                   4661: #endif
                   4662: #ifdef HAVE_SYS_MOUNT_H
                   4663: #include <sys/mount.h>
                   4664: #endif
                   4665: #ifdef HAVE_SYS_VFS_H
                   4666: #include <sys/vfs.h>
                   4667: #endif
                   4668: main ()
                   4669: {
                   4670: struct statfs fsd;
                   4671: fsd.f_bsize = 0;
                   4672: exit (statfs (".", &fsd));
                   4673: }
                   4674: EOF
1.1.1.14  root     4675: if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     4676: then
                   4677:   fu_cv_sys_stat_statfs2_bsize=yes
                   4678: else
                   4679:   echo "configure: failed program was:" >&5
                   4680:   cat conftest.$ac_ext >&5
                   4681:   rm -fr conftest*
                   4682:   fu_cv_sys_stat_statfs2_bsize=no
                   4683: fi
                   4684: rm -fr conftest*
                   4685: fi
                   4686: 
                   4687: fi
                   4688: 
                   4689: echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
                   4690: if test $fu_cv_sys_stat_statfs2_bsize = yes; then
                   4691: space=yes
                   4692: cat >> confdefs.h <<\EOF
                   4693: #define STAT_STATFS2_BSIZE 1
                   4694: EOF
                   4695: 
                   4696: fi
                   4697: fi
                   4698: 
                   4699: if test $space = no; then
                   4700: # SVR3
                   4701: echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
1.1.1.14  root     4702: echo "configure:4703: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
1.1.1.6   root     4703: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
                   4704:   echo $ac_n "(cached) $ac_c" 1>&6
                   4705: else
                   4706:   if test "$cross_compiling" = yes; then
                   4707:   fu_cv_sys_stat_statfs4=no
                   4708: else
                   4709:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4710: #line 4711 "configure"
1.1.1.6   root     4711: #include "confdefs.h"
                   4712: #include <sys/types.h>
                   4713: #include <sys/statfs.h>
                   4714: main ()
                   4715: {
                   4716: struct statfs fsd;
                   4717: exit (statfs (".", &fsd, sizeof fsd, 0));
                   4718: }
                   4719: EOF
1.1.1.14  root     4720: if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     4721: then
                   4722:   fu_cv_sys_stat_statfs4=yes
                   4723: else
                   4724:   echo "configure: failed program was:" >&5
                   4725:   cat conftest.$ac_ext >&5
                   4726:   rm -fr conftest*
                   4727:   fu_cv_sys_stat_statfs4=no
                   4728: fi
                   4729: rm -fr conftest*
                   4730: fi
                   4731: 
                   4732: fi
                   4733: 
                   4734: echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
                   4735: if test $fu_cv_sys_stat_statfs4 = yes; then
                   4736: space=yes
                   4737: cat >> confdefs.h <<\EOF
                   4738: #define STAT_STATFS4 1
                   4739: EOF
                   4740: 
                   4741: fi
                   4742: fi
                   4743: 
                   4744: if test $space = no; then
                   4745: # 4.4BSD and NetBSD
                   4746: echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
1.1.1.14  root     4747: echo "configure:4748: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
1.1.1.6   root     4748: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
                   4749:   echo $ac_n "(cached) $ac_c" 1>&6
                   4750: else
                   4751:   if test "$cross_compiling" = yes; then
                   4752:   fu_cv_sys_stat_statfs2_fsize=no
                   4753: else
                   4754:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4755: #line 4756 "configure"
1.1.1.6   root     4756: #include "confdefs.h"
                   4757: #include <sys/types.h>
                   4758: #ifdef HAVE_SYS_PARAM_H
                   4759: #include <sys/param.h>
                   4760: #endif
                   4761: #ifdef HAVE_SYS_MOUNT_H
                   4762: #include <sys/mount.h>
                   4763: #endif
                   4764: main ()
                   4765: {
                   4766: struct statfs fsd;
                   4767: fsd.f_fsize = 0;
                   4768: exit (statfs (".", &fsd));
                   4769: }
                   4770: EOF
1.1.1.14  root     4771: if { (eval echo configure:4772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     4772: then
                   4773:   fu_cv_sys_stat_statfs2_fsize=yes
                   4774: else
                   4775:   echo "configure: failed program was:" >&5
                   4776:   cat conftest.$ac_ext >&5
                   4777:   rm -fr conftest*
                   4778:   fu_cv_sys_stat_statfs2_fsize=no
                   4779: fi
                   4780: rm -fr conftest*
                   4781: fi
                   4782: 
                   4783: fi
                   4784: 
                   4785: echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
                   4786: if test $fu_cv_sys_stat_statfs2_fsize = yes; then
                   4787: space=yes
                   4788: cat >> confdefs.h <<\EOF
                   4789: #define STAT_STATFS2_FSIZE 1
                   4790: EOF
                   4791: 
                   4792: fi
                   4793: fi
                   4794: 
                   4795: if test $space = no; then
                   4796: # Ultrix
                   4797: echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
1.1.1.14  root     4798: echo "configure:4799: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
1.1.1.6   root     4799: if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
                   4800:   echo $ac_n "(cached) $ac_c" 1>&6
                   4801: else
                   4802:   if test "$cross_compiling" = yes; then
                   4803:   fu_cv_sys_stat_fs_data=no
                   4804: else
                   4805:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4806: #line 4807 "configure"
1.1.1.6   root     4807: #include "confdefs.h"
                   4808: #include <sys/types.h>
                   4809: #ifdef HAVE_SYS_PARAM_H
                   4810: #include <sys/param.h>
                   4811: #endif
                   4812: #ifdef HAVE_SYS_MOUNT_H
                   4813: #include <sys/mount.h>
                   4814: #endif
                   4815: #ifdef HAVE_SYS_FS_TYPES_H
                   4816: #include <sys/fs_types.h>
                   4817: #endif
                   4818: main ()
                   4819: {
                   4820: struct fs_data fsd;
                   4821: /* Ultrix's statfs returns 1 for success,
                   4822: 0 for not mounted, -1 for failure.  */
                   4823: exit (statfs (".", &fsd) != 1);
                   4824: }
                   4825: EOF
1.1.1.14  root     4826: if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.6   root     4827: then
                   4828:   fu_cv_sys_stat_fs_data=yes
                   4829: else
                   4830:   echo "configure: failed program was:" >&5
                   4831:   cat conftest.$ac_ext >&5
                   4832:   rm -fr conftest*
                   4833:   fu_cv_sys_stat_fs_data=no
                   4834: fi
                   4835: rm -fr conftest*
                   4836: fi
                   4837: 
                   4838: fi
                   4839: 
                   4840: echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
                   4841: if test $fu_cv_sys_stat_fs_data = yes; then
                   4842: space=yes
                   4843: cat >> confdefs.h <<\EOF
                   4844: #define STAT_STATFS2_FS_DATA 1
                   4845: EOF
                   4846: 
                   4847: fi
                   4848: fi
                   4849: 
                   4850: if test $space = no; then
                   4851: # SVR2
                   4852: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4853: #line 4854 "configure"
1.1.1.6   root     4854: #include "confdefs.h"
                   4855: #include <sys/filsys.h>
                   4856: EOF
                   4857: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.14  root     4858: { (eval echo configure:4859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.9   root     4859: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1.1.1.6   root     4860: if test -z "$ac_err"; then
                   4861:   rm -rf conftest*
                   4862:   cat >> confdefs.h <<\EOF
                   4863: #define STAT_READ_FILSYS 1
                   4864: EOF
                   4865:  space=yes
                   4866: else
                   4867:   echo "$ac_err" >&5
                   4868:   echo "configure: failed program was:" >&5
                   4869:   cat conftest.$ac_ext >&5
                   4870: fi
                   4871: rm -f conftest*
                   4872: fi
                   4873: 
                   4874: if test -n "$list_mounted_fs" && test $space != no; then
                   4875: DF_PROG="df"
                   4876: LIBOBJS="$LIBOBJS fsusage.o"
                   4877: LIBOBJS="$LIBOBJS mountlist.o"
                   4878: fi
1.1.1.4   root     4879: 
1.1.1.6   root     4880: for ac_func in ftruncate
1.1.1.4   root     4881: do
                   4882: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.14  root     4883: echo "configure:4884: checking for $ac_func" >&5
1.1.1.4   root     4884: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   4885:   echo $ac_n "(cached) $ac_c" 1>&6
                   4886: else
                   4887:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4888: #line 4889 "configure"
1.1.1.4   root     4889: #include "confdefs.h"
                   4890: /* System header to define __stub macros and hopefully few prototypes,
                   4891:     which can conflict with char $ac_func(); below.  */
                   4892: #include <assert.h>
                   4893: /* Override any gcc2 internal prototype to avoid an error.  */
                   4894: /* We use char because int might match the return type of a gcc2
                   4895:     builtin and then its argument prototype would still apply.  */
                   4896: char $ac_func();
                   4897: 
                   4898: int main() {
                   4899: 
                   4900: /* The GNU C library defines this for functions which it implements
                   4901:     to always fail with ENOSYS.  Some functions are actually named
                   4902:     something starting with __ and the normal name is an alias.  */
                   4903: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   4904: choke me
                   4905: #else
                   4906: $ac_func();
                   4907: #endif
1.1       root     4908: 
1.1.1.4   root     4909: ; return 0; }
                   4910: EOF
1.1.1.14  root     4911: if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     4912:   rm -rf conftest*
                   4913:   eval "ac_cv_func_$ac_func=yes"
                   4914: else
                   4915:   echo "configure: failed program was:" >&5
                   4916:   cat conftest.$ac_ext >&5
                   4917:   rm -rf conftest*
                   4918:   eval "ac_cv_func_$ac_func=no"
                   4919: fi
                   4920: rm -f conftest*
1.1       root     4921: fi
1.1.1.4   root     4922: 
1.1       root     4923: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   4924:   echo "$ac_t""yes" 1>&6
                   4925:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   4926:   cat >> confdefs.h <<EOF
                   4927: #define $ac_tr_func 1
                   4928: EOF
                   4929:  
                   4930: else
                   4931:   echo "$ac_t""no" 1>&6
1.1.1.6   root     4932: ftruncate_missing=yes
1.1       root     4933: fi
                   4934: done
                   4935: 
                   4936: 
1.1.1.6   root     4937: if test "$ftruncate_missing" = yes; then
                   4938: echo $ac_n "checking fcntl emulation of ftruncate""... $ac_c" 1>&6
1.1.1.14  root     4939: echo "configure:4940: checking fcntl emulation of ftruncate" >&5
1.1.1.6   root     4940: if eval "test \"`echo '$''{'fu_cv_sys_ftruncate_emulation'+set}'`\" = set"; then
                   4941:   echo $ac_n "(cached) $ac_c" 1>&6
                   4942: else
1.1       root     4943:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4944: #line 4945 "configure"
1.1       root     4945: #include "confdefs.h"
                   4946: 
1.1.1.2   root     4947: #include <sys/types.h>
1.1.1.6   root     4948: #include <fcntl.h>
1.1.1.4   root     4949: int main() {
1.1.1.6   root     4950: 
                   4951: #if !defined(F_CHSIZE) && !defined(F_FREESP)
                   4952: chsize();
                   4953: #endif
                   4954: 
1.1       root     4955: ; return 0; }
                   4956: EOF
1.1.1.14  root     4957: if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       root     4958:   rm -rf conftest*
1.1.1.6   root     4959:   fu_cv_sys_ftruncate_emulation=yes
1.1       root     4960: else
1.1.1.4   root     4961:   echo "configure: failed program was:" >&5
                   4962:   cat conftest.$ac_ext >&5
1.1       root     4963:   rm -rf conftest*
1.1.1.6   root     4964:   fu_cv_sys_ftruncate_emulation=no
1.1       root     4965: fi
                   4966: rm -f conftest*
                   4967: fi
                   4968: 
1.1.1.6   root     4969: echo "$ac_t""$fu_cv_sys_ftruncate_emulation" 1>&6
                   4970: if test $fu_cv_sys_ftruncate_emulation = yes; then
                   4971: LIBOBJS="$LIBOBJS ftruncate.o"
                   4972: fi
                   4973: fi
                   4974: 
                   4975: case "$LIBOBJS" in
                   4976: *rename.o*)
                   4977: MVDIR_PROG="mvdir"
                   4978: ;;
                   4979: esac
                   4980: 
                   4981: # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
                   4982: # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
                   4983: # enable the work-around code in fsusage.c.
                   4984: echo $ac_n "checking for statfs that truncates block counts""... $ac_c" 1>&6
1.1.1.14  root     4985: echo "configure:4986: checking for statfs that truncates block counts" >&5
1.1.1.6   root     4986: if eval "test \"`echo '$''{'fu_cv_sys_truncating_statfs'+set}'`\" = set"; then
                   4987:   echo $ac_n "(cached) $ac_c" 1>&6
                   4988: else
1.1       root     4989:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     4990: #line 4991 "configure"
1.1       root     4991: #include "confdefs.h"
                   4992: 
1.1.1.6   root     4993: #if !defined(sun) && !defined(__sun)
                   4994: choke -- this is a workaround for a Sun-specific problem
1.1       root     4995: #endif
1.1.1.6   root     4996: #include <sys/types.h>
1.1       root     4997: #include <sys/vfs.h>
1.1.1.4   root     4998: int main() {
1.1.1.6   root     4999: struct statfs t; long c = *(t.f_spare);
1.1       root     5000: ; return 0; }
                   5001: EOF
1.1.1.14  root     5002: if { (eval echo configure:5003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     5003:   rm -rf conftest*
1.1.1.6   root     5004:   fu_cv_sys_truncating_statfs=yes
1.1       root     5005: else
1.1.1.4   root     5006:   echo "configure: failed program was:" >&5
                   5007:   cat conftest.$ac_ext >&5
1.1       root     5008:   rm -rf conftest*
1.1.1.6   root     5009:   fu_cv_sys_truncating_statfs=no
                   5010: fi
                   5011: rm -f conftest*
                   5012: fi
                   5013: 
                   5014: if test $fu_cv_sys_truncating_statfs = yes; then
                   5015: cat >> confdefs.h <<\EOF
                   5016: #define STATFS_TRUNCATES_BLOCK_COUNTS 1
                   5017: EOF
                   5018: 
                   5019: fi
                   5020: echo "$ac_t""$fu_cv_sys_truncating_statfs" 1>&6
                   5021: 
                   5022: echo "checking for AFS" 1>&6
1.1.1.14  root     5023: echo "configure:5024: checking for AFS" >&5
1.1.1.6   root     5024: test -d /afs && cat >> confdefs.h <<\EOF
                   5025: #define AFS 1
                   5026: EOF
                   5027: 
                   5028: 
                   5029: fi
                   5030: 
                   5031: if [ $target = "p.os" ]; then
                   5032:     HAVE_POS=yes
                   5033: else
                   5034:   echo $ac_n "checking for pOS""... $ac_c" 1>&6
1.1.1.14  root     5035: echo "configure:5036: checking for pOS" >&5
1.1.1.6   root     5036:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     5037: #line 5038 "configure"
1.1.1.6   root     5038: #include "confdefs.h"
                   5039: #ifdef __POS__
                   5040:     yes
                   5041:   #endif
                   5042:   
                   5043: EOF
                   5044: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5045:   egrep "yes" >/dev/null 2>&1; then
                   5046:   rm -rf conftest*
                   5047:   echo "$ac_t""yes" 1>&6; HAVE_POS=yes
                   5048: else
                   5049:   rm -rf conftest*
                   5050:   echo "$ac_t""no" 1>&6; HAVE_POS=no
1.1       root     5051: fi
                   5052: rm -f conftest*
1.1.1.6   root     5053: 
1.1       root     5054: fi
                   5055: 
1.1.1.2   root     5056: 
1.1.1.4   root     5057: if [ "x$HAVE_NCURSES_LIB" = "xyes" ]; then
                   5058:   if [ "x$ac_cv_header_ncurses_h" = "xno" -a "x$ac_cv_header_curses_h" = "xno" ]; then
                   5059:     echo "Installation problem, found libncurses but neither curses.h nor ncurses.h!"
                   5060:     HAVE_NCURSES_LIB=no
                   5061:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5062:   else
                   5063:     if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
                   5064:       echo $ac_n "checking for attr_t in curses.h""... $ac_c" 1>&6
1.1.1.14  root     5065: echo "configure:5066: checking for attr_t in curses.h" >&5
1.1.1.4   root     5066:       cat > conftest.$ac_ext <<EOF
1.1.1.14  root     5067: #line 5068 "configure"
1.1.1.4   root     5068: #include "confdefs.h"
                   5069: #include <curses.h>
                   5070: int main() {
                   5071: { attr_t a; a = A_NORMAL; }
                   5072: ; return 0; }
                   5073: EOF
1.1.1.14  root     5074: if { (eval echo configure:5075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4   root     5075:   rm -rf conftest*
                   5076:   echo "$ac_t""yes" 1>&6
1.1.1.2   root     5077: else
1.1.1.4   root     5078:   echo "configure: failed program was:" >&5
                   5079:   cat conftest.$ac_ext >&5
                   5080:   rm -rf conftest*
                   5081:   
                   5082:         ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
                   5083:         echo "$ac_t""no" 1>&6
                   5084:        NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   5085:        echo "Please install a newer version of libncurses if you can."
                   5086:       
                   5087: fi
                   5088: rm -f conftest*
                   5089:     else
                   5090:       echo $ac_n "checking for attr_t in ncurses.h""... $ac_c" 1>&6
1.1.1.14  root     5091: echo "configure:5092: checking for attr_t in ncurses.h" >&5
1.1.1.4   root     5092:       cat > conftest.$ac_ext <<EOF
1.1.1.14  root     5093: #line 5094 "configure"
1.1.1.4   root     5094: #include "confdefs.h"
                   5095: #include <ncurses.h>
                   5096: int main() {
                   5097: { attr_t a; a = A_NORMAL; }
                   5098: ; return 0; }
                   5099: EOF
1.1.1.14  root     5100: if { (eval echo configure:5101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4   root     5101:   rm -rf conftest*
                   5102:   echo "$ac_t""yes" 1>&6
1.1.1.2   root     5103: else
1.1.1.4   root     5104:   echo "configure: failed program was:" >&5
                   5105:   cat conftest.$ac_ext >&5
                   5106:   rm -rf conftest*
                   5107:   
                   5108:         ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
                   5109:         echo "$ac_t""no" 1>&6
                   5110:        NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   5111:        echo "Please install a newer version of libncurses if you can."
                   5112:       
                   5113: fi
                   5114: rm -f conftest*
1.1.1.2   root     5115:     fi
1.1.1.4   root     5116:   fi
1.1.1.2   root     5117: fi
1.1.1.4   root     5118: 
1.1.1.6   root     5119: 
                   5120: echo $ac_n "checking for pthread library""... $ac_c" 1>&6
1.1.1.14  root     5121: echo "configure:5122: checking for pthread library" >&5
1.1.1.6   root     5122: TMP_SAVE_CFLAGS=$CFLAGS
                   5123: TMP_SAVE_LIBS=$LIBS
                   5124: LIBS="$LIBS -lpthread"
                   5125: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     5126: #line 5127 "configure"
1.1.1.6   root     5127: #include "confdefs.h"
                   5128: 
                   5129: #include "confdefs.h"
                   5130: #ifdef HAVE_SYS_TYPES_H
                   5131: #include <sys/types.h>
                   5132: #endif
                   5133: #include <pthread.h>
                   5134: int main() {
                   5135: 
                   5136: pthread_exit (0);
1.1.1.10  root     5137: 
1.1.1.6   root     5138: ; return 0; }
                   5139: EOF
1.1.1.14  root     5140: if { (eval echo configure:5141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     5141:   rm -rf conftest*
                   5142:   HAVE_PTHREAD_LIB=yes
                   5143: echo "$ac_t""yes" 1>&6
                   5144: else
                   5145:   echo "configure: failed program was:" >&5
                   5146:   cat conftest.$ac_ext >&5
                   5147:   rm -rf conftest*
                   5148:   HAVE_PTHREAD_LIB=no
                   5149: echo "$ac_t""no" 1>&6
                   5150: fi
                   5151: rm -f conftest*
                   5152: CFLAGS=$TMP_SAVE_CFLAGS
                   5153: LIBS=$TMP_SAVE_LIBS
                   5154: 
                   5155: echo $ac_n "checking for DirectX""... $ac_c" 1>&6
1.1.1.14  root     5156: echo "configure:5157: checking for DirectX" >&5
1.1.1.6   root     5157: TMP_SAVE_CFLAGS=$CFLAGS
                   5158: TMP_SAVE_LIBS=$LIBS
                   5159: CFLAGS="$CFLAGS $X_CFLAGS"
                   5160: LIBS="$LIBS -lddraw"
                   5161: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     5162: #line 5163 "configure"
1.1.1.6   root     5163: #include "confdefs.h"
                   5164: 
                   5165: #include "confdefs.h"
                   5166: #ifdef HAVE_SYS_TYPES_H
                   5167: #include <sys/types.h>
                   5168: #endif
                   5169: #include <windows.h>
                   5170: #include <ddraw.h>
                   5171: int main() {
                   5172: 
                   5173: LPDIRECTDRAW lpDD;
                   5174: IDirectDraw_CreateSurface(lpDD, 0, 0, 0);
                   5175: 
                   5176: ; return 0; }
                   5177: EOF
1.1.1.14  root     5178: if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.6   root     5179:   rm -rf conftest*
                   5180:   HAVE_DIRECTX=yes
                   5181: echo "$ac_t""yes" 1>&6
                   5182: else
                   5183:   echo "configure: failed program was:" >&5
                   5184:   cat conftest.$ac_ext >&5
                   5185:   rm -rf conftest*
                   5186:   HAVE_DIRECTX=no
                   5187: echo "$ac_t""no" 1>&6
                   5188: fi
                   5189: rm -f conftest*
                   5190: CFLAGS=$TMP_SAVE_CFLAGS
                   5191: LIBS=$TMP_SAVE_LIBS
                   5192: 
1.1.1.4   root     5193: DO_PROFILING=no
                   5194: WANT_SVGALIB=dunno
                   5195: WANT_ASCIIART=dunno
                   5196: WANT_UI=dunno
                   5197: WANT_NCURSES_UI=no
                   5198: WANT_DGA=no
                   5199: WANT_VIDMODE=no
                   5200: SYSTEM_IS_ELF=dunno
                   5201: 
                   5202: # Check whether --enable-profiling or --disable-profiling was given.
                   5203: if test "${enable_profiling+set}" = set; then
                   5204:   enableval="$enable_profiling"
                   5205:   DO_PROFILING=$enableval
1.1.1.2   root     5206: fi
1.1.1.4   root     5207: 
                   5208: # Check whether --with-svgalib or --without-svgalib was given.
                   5209: if test "${with_svgalib+set}" = set; then
                   5210:   withval="$with_svgalib"
                   5211:   WANT_SVGALIB=$withval
1.1.1.2   root     5212: fi
                   5213: 
1.1.1.4   root     5214: # Check whether --with-asciiart or --without-asciiart was given.
                   5215: if test "${with_asciiart+set}" = set; then
                   5216:   withval="$with_asciiart"
                   5217:   WANT_ASCIIART=$withval
                   5218: fi
1.1.1.3   root     5219: 
1.1.1.4   root     5220: # Check whether --enable-dga or --disable-dga was given.
                   5221: if test "${enable_dga+set}" = set; then
                   5222:   enableval="$enable_dga"
                   5223:   WANT_DGA=$enableval
                   5224: fi
                   5225: 
                   5226: # Check whether --enable-vidmode or --disable-vidmode was given.
                   5227: if test "${enable_vidmode+set}" = set; then
                   5228:   enableval="$enable_vidmode"
                   5229:   WANT_VIDMODE=$enableval
                   5230: fi
                   5231: 
                   5232: # Check whether --enable-ui or --disable-ui was given.
                   5233: if test "${enable_ui+set}" = set; then
                   5234:   enableval="$enable_ui"
                   5235:   WANT_UI=$enableval
                   5236: fi
                   5237: 
                   5238: # Check whether --with-elf or --without-elf was given.
                   5239: if test "${with_elf+set}" = set; then
                   5240:   withval="$with_elf"
                   5241:   SYSTEM_IS_ELF=$withval
                   5242: fi
                   5243: 
                   5244: 
                   5245: 
                   5246: if [ "x$WANT_DGA" = "xyes" ]; then
1.1.1.13  root     5247:   if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_ASCIIART" = "xyes" ]; then
                   5248:     echo "You can't enable DGA for SVGAlib and ncurses targets!"
1.1.1.4   root     5249:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5250:     WANT_DGA=no
                   5251:   fi
                   5252: fi
                   5253: 
                   5254: if [ "x$WANT_DGA" = "xyes" -a "x$no_x" = "xyes" ]; then
                   5255:   echo "Ignoring --enable-dga, since X was disabled or not found."
                   5256:   NR_ERRORS=`expr $NR_ERRORS + 1`
                   5257:   WANT_DGA=no
                   5258: fi
                   5259: 
                   5260: if [ "x$WANT_DGA" = "xno" -a "x$WANT_VIDMODE" = "xyes" ]; then
                   5261:   echo "The XF86VidMode extension can only be used in DGA mode. Disabling it."
                   5262:   NR_ERRORS=`expr $NR_ERRORS + 1`
                   5263:   WANT_VIDMODE=no
                   5264: fi
                   5265: 
                   5266: 
                   5267: if [ "x$WANT_SVGALIB" = "xyes" ]; then
                   5268:   if [ "x$HAVE_SVGA_LIB" = "xno" ]; then
                   5269:     echo "Could not find libsvga, disabling svgalib support."
                   5270:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5271:     WANT_SVGALIB=no
1.1       root     5272:   else
1.1.1.4   root     5273:     no_x=yes
                   5274:   fi
                   5275: fi
                   5276: 
                   5277: if [ "x$WANT_ASCIIART" = "xyes" ]; then
                   5278:   if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
                   5279:     echo "Could not find libncurses, disabling ascii art support."
                   5280:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5281:     WANT_ASCIIART=no
1.1.1.13  root     5282:   else if [ "x$WANT_SVGALIB" = "xyes" ]; then
1.1.1.4   root     5283:     echo "You can't configure for both ncurses and another target. Disabling ncurses."
                   5284:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5285:     WANT_ASCIIART=no
                   5286:   else
                   5287:     no_x=yes
                   5288:   fi
                   5289:   fi
                   5290: fi
                   5291: 
                   5292: 
                   5293: if [ "x$WANT_DGA" = "xyes" ]; then
                   5294:   TMP_SAVE_LIBS=$LIBS
                   5295:   LIBS="$X_LIBS $LIBS"
                   5296:   echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
1.1.1.14  root     5297: echo "configure:5298: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
1.1.1.4   root     5298: ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
1.1.1.2   root     5299: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   5300:   echo $ac_n "(cached) $ac_c" 1>&6
                   5301: else
                   5302:   ac_save_LIBS="$LIBS"
1.1.1.4   root     5303: LIBS="-lXxf86dga  $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS  $LIBS"
1.1.1.2   root     5304: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     5305: #line 5306 "configure"
1.1.1.2   root     5306: #include "confdefs.h"
                   5307: /* Override any gcc2 internal prototype to avoid an error.  */
                   5308: /* We use char because int might match the return type of a gcc2
                   5309:     builtin and then its argument prototype would still apply.  */
1.1.1.4   root     5310: char XF86DGAQueryExtension();
1.1.1.2   root     5311: 
1.1.1.4   root     5312: int main() {
                   5313: XF86DGAQueryExtension()
1.1.1.2   root     5314: ; return 0; }
                   5315: EOF
1.1.1.14  root     5316: if { (eval echo configure:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2   root     5317:   rm -rf conftest*
                   5318:   eval "ac_cv_lib_$ac_lib_var=yes"
                   5319: else
1.1.1.4   root     5320:   echo "configure: failed program was:" >&5
                   5321:   cat conftest.$ac_ext >&5
1.1.1.2   root     5322:   rm -rf conftest*
                   5323:   eval "ac_cv_lib_$ac_lib_var=no"
                   5324: fi
                   5325: rm -f conftest*
                   5326: LIBS="$ac_save_LIBS"
                   5327: 
                   5328: fi
                   5329: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   5330:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     5331:   HAVE_DGA=yes
1.1.1.2   root     5332: else
                   5333:   echo "$ac_t""no" 1>&6
1.1.1.4   root     5334: HAVE_DGA=no
1.1.1.2   root     5335: fi
                   5336: 
1.1.1.4   root     5337:   LIBS=$TMP_SAVE_LIBS
                   5338:   if [ "x$HAVE_DGA" = "xno" ]; then
                   5339:     echo "Could not find DGA extension, ignoring --enable-dga."
                   5340:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5341:     WANT_DGA=no
1.1.1.3   root     5342:   fi
1.1.1.2   root     5343: fi
                   5344: 
1.1.1.4   root     5345: if [ "x$WANT_VIDMODE" = "xyes" ]; then
                   5346:   TMP_SAVE_LIBS=$LIBS
                   5347:   LIBS="$X_LIBS $LIBS"
                   5348:   echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
1.1.1.14  root     5349: echo "configure:5350: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
1.1.1.4   root     5350: ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
1.1.1.3   root     5351: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   5352:   echo $ac_n "(cached) $ac_c" 1>&6
                   5353: else
                   5354:   ac_save_LIBS="$LIBS"
1.1.1.4   root     5355: LIBS="-lXxf86vm  $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS  $LIBS"
1.1.1.3   root     5356: cat > conftest.$ac_ext <<EOF
1.1.1.14  root     5357: #line 5358 "configure"
1.1.1.3   root     5358: #include "confdefs.h"
                   5359: /* Override any gcc2 internal prototype to avoid an error.  */
                   5360: /* We use char because int might match the return type of a gcc2
                   5361:     builtin and then its argument prototype would still apply.  */
1.1.1.4   root     5362: char XF86VidModeQueryExtension();
1.1.1.3   root     5363: 
1.1.1.4   root     5364: int main() {
                   5365: XF86VidModeQueryExtension()
1.1.1.3   root     5366: ; return 0; }
                   5367: EOF
1.1.1.14  root     5368: if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.3   root     5369:   rm -rf conftest*
                   5370:   eval "ac_cv_lib_$ac_lib_var=yes"
                   5371: else
1.1.1.4   root     5372:   echo "configure: failed program was:" >&5
                   5373:   cat conftest.$ac_ext >&5
1.1.1.3   root     5374:   rm -rf conftest*
                   5375:   eval "ac_cv_lib_$ac_lib_var=no"
                   5376: fi
                   5377: rm -f conftest*
                   5378: LIBS="$ac_save_LIBS"
                   5379: 
                   5380: fi
                   5381: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   5382:   echo "$ac_t""yes" 1>&6
1.1.1.4   root     5383:   HAVE_VIDMODE=yes
1.1.1.3   root     5384: else
                   5385:   echo "$ac_t""no" 1>&6
1.1.1.4   root     5386: HAVE_VIDMODE=no
1.1.1.3   root     5387: fi
                   5388: 
1.1.1.4   root     5389:   LIBS=$TMP_SAVE_LIBS
                   5390:   if [ "x$HAVE_VIDMODE" = "xno" ]; then
                   5391:     echo "Could not find VidMode extension, ignoring --enable-vidmode."
                   5392:     NR_ERRORS=`expr $NR_ERRORS + 1`
                   5393:     WANT_VIDMODE=no
1.1.1.3   root     5394:   fi
1.1.1.4   root     5395: fi
                   5396: 
                   5397: # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
                   5398: if test "${with_gtk_prefix+set}" = set; then
                   5399:   withval="$with_gtk_prefix"
                   5400:   gtk_config_prefix="$withval"
                   5401: else
                   5402:   gtk_config_prefix=""
                   5403: fi
                   5404: 
                   5405: # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
                   5406: if test "${with_gtk_exec_prefix+set}" = set; then
                   5407:   withval="$with_gtk_exec_prefix"
                   5408:   gtk_config_exec_prefix="$withval"
                   5409: else
                   5410:   gtk_config_exec_prefix=""
                   5411: fi
                   5412: 
                   5413: # Check whether --enable-gtktest or --disable-gtktest was given.
                   5414: if test "${enable_gtktest+set}" = set; then
                   5415:   enableval="$enable_gtktest"
                   5416:   :
                   5417: else
                   5418:   enable_gtktest=yes
                   5419: fi
                   5420: 
                   5421: 
                   5422:   if test x$gtk_config_exec_prefix != x ; then
                   5423:      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
                   5424:      if test x${GTK_CONFIG+set} != xset ; then
                   5425:         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
                   5426:      fi
                   5427:   fi
                   5428:   if test x$gtk_config_prefix != x ; then
                   5429:      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
                   5430:      if test x${GTK_CONFIG+set} != xset ; then
                   5431:         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
                   5432:      fi
                   5433:   fi
                   5434: 
                   5435:   # Extract the first word of "gtk-config", so it can be a program name with args.
                   5436: set dummy gtk-config; ac_word=$2
                   5437: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.14  root     5438: echo "configure:5439: checking for $ac_word" >&5
1.1.1.4   root     5439: if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
                   5440:   echo $ac_n "(cached) $ac_c" 1>&6
                   5441: else
                   5442:   case "$GTK_CONFIG" in
                   5443:   /*)
                   5444:   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
                   5445:   ;;
1.1.1.9   root     5446:   ?:/*)                         
                   5447:   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
                   5448:   ;;
1.1.1.4   root     5449:   *)
1.1.1.9   root     5450:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   5451:   ac_dummy="$PATH"
                   5452:   for ac_dir in $ac_dummy; do 
1.1.1.4   root     5453:     test -z "$ac_dir" && ac_dir=.
                   5454:     if test -f $ac_dir/$ac_word; then
                   5455:       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
                   5456:       break
                   5457:     fi
                   5458:   done
                   5459:   IFS="$ac_save_ifs"
                   5460:   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
                   5461:   ;;
                   5462: esac
                   5463: fi
                   5464: GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
                   5465: if test -n "$GTK_CONFIG"; then
                   5466:   echo "$ac_t""$GTK_CONFIG" 1>&6
                   5467: else
                   5468:   echo "$ac_t""no" 1>&6
                   5469: fi
                   5470: 
                   5471:   min_gtk_version=0.99.7
                   5472:   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1.1.1.14  root     5473: echo "configure:5474: checking for GTK - version >= $min_gtk_version" >&5
1.1.1.4   root     5474:   no_gtk=""
                   5475:   if test "$GTK_CONFIG" = "no" ; then
                   5476:     no_gtk=yes
                   5477:   else
                   5478:     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
                   5479:     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
                   5480:     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
                   5481:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
                   5482:     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
                   5483:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
                   5484:     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
                   5485:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
                   5486:     if test "x$enable_gtktest" = "xyes" ; then
                   5487:       ac_save_CFLAGS="$CFLAGS"
                   5488:       ac_save_LIBS="$LIBS"
                   5489:       CFLAGS="$CFLAGS $GTK_CFLAGS"
                   5490:       LIBS="$LIBS $GTK_LIBS"
                   5491:       rm -f conf.gtktest
                   5492:       if test "$cross_compiling" = yes; then
                   5493:   echo $ac_n "cross compiling; assumed OK... $ac_c"
                   5494: else
                   5495:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     5496: #line 5497 "configure"
1.1.1.4   root     5497: #include "confdefs.h"
                   5498: 
                   5499: #include <gtk/gtk.h>
                   5500: #include <stdio.h>
                   5501: 
                   5502: int 
                   5503: main ()
1.1.1.3   root     5504: {
1.1.1.4   root     5505:   int major, minor, micro;
                   5506: 
                   5507:   system ("touch conf.gtktest");
                   5508: 
                   5509:   if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
                   5510:      printf("%s, bad version string\n", "$min_gtk_version");
                   5511:      exit(1);
                   5512:    }
                   5513: 
                   5514:   if ((gtk_major_version != $gtk_config_major_version) ||
                   5515:       (gtk_minor_version != $gtk_config_minor_version) ||
                   5516:       (gtk_micro_version != $gtk_config_micro_version))
                   5517:     {
                   5518:       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
                   5519:              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
                   5520:              gtk_major_version, gtk_minor_version, gtk_micro_version);
                   5521:       printf ("*** was found! If gtk-config was correct, then it is best\n");
                   5522:       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
                   5523:       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
                   5524:       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
                   5525:       printf("*** required on your system.\n");
                   5526:       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
                   5527:       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
                   5528:       printf("*** before re-running configure\n");
                   5529:     } 
                   5530:   else
                   5531:     {
                   5532:       if ((gtk_major_version > major) ||
                   5533:         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
                   5534:         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
                   5535:       {
                   5536:         return 0;
                   5537:        }
                   5538:      else
                   5539:       {
                   5540:         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
                   5541:                gtk_major_version, gtk_minor_version, gtk_micro_version);
                   5542:         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
                   5543:               major, minor, micro);
                   5544:         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
                   5545:         printf("***\n");
                   5546:         printf("*** If you have already installed a sufficiently new version, this error\n");
                   5547:         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
                   5548:         printf("*** being found. The easiest way to fix this is to remove the old version\n");
                   5549:         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
                   5550:         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
                   5551:         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
                   5552:         printf("*** so that the correct libraries are found at run-time))\n");
                   5553:       }
                   5554:     }
                   5555:   return 1;
1.1.1.3   root     5556: }
1.1.1.4   root     5557: 
                   5558: EOF
1.1.1.14  root     5559: if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1.1.4   root     5560: then
                   5561:   :
                   5562: else
                   5563:   echo "configure: failed program was:" >&5
                   5564:   cat conftest.$ac_ext >&5
                   5565:   rm -fr conftest*
                   5566:   no_gtk=yes
                   5567: fi
                   5568: rm -fr conftest*
                   5569: fi
                   5570: 
                   5571:        CFLAGS="$ac_save_CFLAGS"
                   5572:        LIBS="$ac_save_LIBS"
                   5573:      fi
                   5574:   fi
                   5575:   if test "x$no_gtk" = x ; then
                   5576:      echo "$ac_t""yes" 1>&6
                   5577:      :     
                   5578:   else
                   5579:      echo "$ac_t""no" 1>&6
                   5580:      if test "$GTK_CONFIG" = "no" ; then
                   5581:        echo "*** The gtk-config script installed by GTK could not be found"
                   5582:        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
                   5583:        echo "*** your path, or set the GTK_CONFIG environment variable to the"
                   5584:        echo "*** full path to gtk-config."
                   5585:      else
                   5586:        if test -f conf.gtktest ; then
                   5587:         :
                   5588:        else
                   5589:           echo "*** Could not run GTK test program, checking why..."
                   5590:           CFLAGS="$CFLAGS $GTK_CFLAGS"
                   5591:           LIBS="$LIBS $GTK_LIBS"
                   5592:           cat > conftest.$ac_ext <<EOF
1.1.1.14  root     5593: #line 5594 "configure"
1.1.1.4   root     5594: #include "confdefs.h"
                   5595: 
                   5596: #include <gtk/gtk.h>
                   5597: #include <stdio.h>
                   5598: 
                   5599: int main() {
                   5600:  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
                   5601: ; return 0; }
1.1.1.3   root     5602: EOF
1.1.1.14  root     5603: if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.4   root     5604:   rm -rf conftest*
                   5605:    echo "*** The test program compiled, but did not run. This usually means"
                   5606:           echo "*** that the run-time linker is not finding GTK or finding the wrong"
                   5607:           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
                   5608:           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
                   5609:           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
                   5610:           echo "*** is required on your system"
                   5611:          echo "***"
                   5612:           echo "*** If you have an old version installed, it is best to remove it, although"
                   5613:           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
                   5614:           echo "***"
                   5615:           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
                   5616:           echo "*** came with the system with the command"
                   5617:           echo "***"
                   5618:           echo "***    rpm --erase --nodeps gtk gtk-devel" 
                   5619: else
                   5620:   echo "configure: failed program was:" >&5
                   5621:   cat conftest.$ac_ext >&5
                   5622:   rm -rf conftest*
                   5623:    echo "*** The test program failed to compile or link. See the file config.log for the"
                   5624:           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
                   5625:           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
                   5626:           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
                   5627: fi
                   5628: rm -f conftest*
                   5629:           CFLAGS="$ac_save_CFLAGS"
                   5630:           LIBS="$ac_save_LIBS"
                   5631:        fi
                   5632:      fi
                   5633:      GTK_CFLAGS=""
                   5634:      GTK_LIBS=""
                   5635:      :
1.1.1.3   root     5636:   fi
1.1.1.4   root     5637:   
                   5638:   
                   5639:   rm -f conf.gtktest
1.1.1.3   root     5640: 
1.1.1.4   root     5641: 
                   5642: 
                   5643: SHM_SUPPORT_LINKS=0
1.1.1.6   root     5644: if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
1.1.1.4   root     5645:   echo $ac_n "checking whether the X11 MIT-SHM extension can be compiled in""... $ac_c" 1>&6
1.1.1.14  root     5646: echo "configure:5647: checking whether the X11 MIT-SHM extension can be compiled in" >&5
1.1.1.4   root     5647:   TMP_SAVE_CFLAGS=$CFLAGS
                   5648:   TMP_SAVE_LIBS=$LIBS
                   5649:   CFLAGS="$CFLAGS $X_CFLAGS"
                   5650:   LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"
                   5651:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     5652: #line 5653 "configure"
1.1.1.2   root     5653: #include "confdefs.h"
                   5654: 
1.1.1.4   root     5655: #include "confdefs.h"
                   5656: #ifdef HAVE_SYS_TYPES_H
                   5657: #include <sys/types.h>
                   5658: #endif
                   5659: #include <X11/Xlib.h>
                   5660: #include <X11/Xutil.h>
                   5661: #include <X11/keysym.h>
                   5662: #include <X11/cursorfont.h>
                   5663: #include <sys/ipc.h>
                   5664: #include <sys/shm.h>
                   5665: #include <X11/extensions/XShm.h>
                   5666: int main() {
                   5667: 
                   5668: static XShmSegmentInfo shminfo;
                   5669: static Display *display;
                   5670: XShmAttach(display, &shminfo);
                   5671: XSync(display,0);
                   5672: shmctl(shminfo.shmid, IPC_RMID, 0);
1.1.1.10  root     5673: 
1.1.1.2   root     5674: ; return 0; }
                   5675: EOF
1.1.1.14  root     5676: if { (eval echo configure:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2   root     5677:   rm -rf conftest*
1.1.1.4   root     5678:   SHM_SUPPORT_LINKS=1
                   5679: echo "$ac_t""yes" 1>&6
1.1       root     5680: else
1.1.1.4   root     5681:   echo "configure: failed program was:" >&5
                   5682:   cat conftest.$ac_ext >&5
1.1.1.2   root     5683:   rm -rf conftest*
1.1.1.4   root     5684:   SHM_SUPPORT_LINKS=0
                   5685: echo "$ac_t""no" 1>&6
1.1       root     5686: fi
1.1.1.2   root     5687: rm -f conftest*
1.1.1.4   root     5688:   CFLAGS=$TMP_SAVE_CFLAGS
                   5689:   LIBS=$TMP_SAVE_LIBS
1.1       root     5690: fi
                   5691: 
1.1.1.4   root     5692: MATHLIB=-lm
                   5693: DEBUGOBJS="debug.o"
                   5694: 
                   5695: echo $ac_n "checking which target to use""... $ac_c" 1>&6
1.1.1.14  root     5696: echo "configure:5697: checking which target to use" >&5
1.1.1.4   root     5697: 
1.1.1.6   root     5698: if [ "x$HAVE_DIRECTX" = "xyes" ]; then
                   5699:   echo "$ac_t""Win32/DirectX" 1>&6
                   5700:   MATHLIB=
                   5701:   TARGET=win32
                   5702:   TARGETDEP=t-win32.h
                   5703:   GFXOBJS="osdep/win32.o osdep/win32gui.o osdep/parser.o osdep/keyboard.o osdep/posixemu.o"
                   5704:   RESOBJS="osdep/winuae.res"
                   5705: else if [ "x$HAVE_BEOS" = "xyes" ]; then
1.1.1.4   root     5706:   echo "$ac_t""BeOS" 1>&6
                   5707:   MATHLIB=
                   5708:   TARGET=beos
                   5709:   TARGETDEP=t-beos.h
                   5710:   GFXOBJS=osdep/beos.o
                   5711:   GUIOBJS=
                   5712:   OPTIMIZE_CFLAGS=-O7
                   5713: else if [ "x$HAVE_POS" = "xyes" ]; then
                   5714:   echo "$ac_t""p.OS" 1>&6
                   5715:   TARGET=p_os
                   5716:   TARGETDEP=t-pos.h
                   5717:   GFXOBJS="osdep/pos-win.o osdep/pos-disk.o osdep/pos-rexx.o"
                   5718:   GUIOBJS="osdep/pos-gui.o"
                   5719: else if [ "x$HAVE_AMIGA_LIB" = "xyes" ]; then
                   5720:   echo "$ac_t""AmigaOS" 1>&6
                   5721:   TARGET=amigaos
                   5722:   TARGETDEP=t-amiga.h
                   5723:   GFXOBJS="osdep/ami-win.o osdep/ami-disk.o osdep/ami-rexx.o osdep/ami-appw.o"
                   5724:   GUIOBJS="osdep/ami-gui.o"
                   5725: else if [ "x$HAVE_NEXT_LIB" = "xyes" ]; then
                   5726:   echo "$ac_t""NeXTStep" 1>&6
                   5727:   MATHLIB=
                   5728:   TARGET=next
                   5729:   GFXOBJS="NeXTwin.o"
                   5730:   GUIOBJS=
                   5731:   TARGETDEP=t-next.h
                   5732:   LIBRARIES="-sectcreate __ICON __header ../Uae.app/Uae.iconheader -segprot __ICON r r -sectcreate __ICON app ../Uae.app/Uae.tiff -lMedia_s -lNeXT_s"
                   5733: else
                   5734:     
                   5735:   if [ "x$no_x" = "xyes" ]; then
1.1.1.13  root     5736:     if [ "x$WANT_SVGALIB" != "xyes" -a "x$WANT_ASCIIART" != "xyes" ]; then
1.1.1.4   root     5737:       if [ "x$WANT_SVGALIB" != "xno" -a "x$HAVE_SVGA_LIB" = "xyes" ]; then
                   5738:         WANT_SVGALIB=yes
                   5739:       else if [ "x$WANT_ASCIIART" != "xno" -a "x$HAVE_NCURSES_LIB" = "xyes" ]; then
                   5740:         WANT_ASCIIART=yes
                   5741:       fi
                   5742:       fi
                   5743:     fi
1.1.1.3   root     5744:   fi
1.1.1.4   root     5745: 
1.1.1.13  root     5746:   if [ "x$WANT_SVGALIB" = "xyes" ]; then
1.1.1.4   root     5747:     echo "$ac_t""SVGAlib" 1>&6
                   5748:     TARGET=svgalib
                   5749:     TARGETDEP=t-svgalib.h
                   5750:     GFXOBJS=svga.o
                   5751:     LIBRARIES="-lvga"
                   5752:     WANT_NCURSES_UI=yes
                   5753:   else if [ "x$WANT_ASCIIART" = "xyes" ]; then
                   5754:     echo "$ac_t""ncurses ASCII art" 1>&6
                   5755:     TARGET=asciiart
                   5756:     TARGETDEP=t-ascii.h
                   5757:     GFXOBJS="ncurses.o"
                   5758:     GUIOBJS="tui.o svgancui.o"
                   5759:     LIBRARIES="-lncurses"
                   5760:   else if [ "x$no_x" = "xyes" ]; then
                   5761:     echo "$ac_t""Ummm...." 1>&6
                   5762:     echo "Fatal error: No graphics system found, don't know what target to use."
                   5763:     exit 1
                   5764:   else
                   5765:     echo "$ac_t""X11" 1>&6
                   5766:     TARGET=x11
                   5767:     TARGETDEP=t-x11.h
                   5768:     GFXOBJS=xwin.o
                   5769:     GUIOBJS=nogui.o
                   5770: 
                   5771:     LIBRARIES="$X_LIBS $X_PRE_LIBS"
                   5772:         if [ "x$WANT_DGA" = "xyes" ]; then
                   5773:       LIBRARIES="$LIBRARIES -lXxf86dga"
                   5774:       X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION"
                   5775:       if [ "x$WANT_VIDMODE" = "xyes" ]; then
                   5776:         LIBRARIES="$LIBRARIES -lXxf86vm"
                   5777:        X_CFLAGS="$X_CFLAGS -DUSE_VIDMODE_EXTENSION"
                   5778:       fi
                   5779:     fi
                   5780:     LIBRARIES="$LIBRARIES -lXext -lX11 $X_EXTRA_LIBS"
                   5781: 
                   5782:     if [ "x$WANT_UI" != "xno" ]; then
                   5783:       if [ "x$no_gtk" = "xyes" ]; then
                   5784:        echo "Did not find gtk+, disabling user interface"
                   5785:        GTK_CFLAGS=
                   5786:        GTK_LIBS=
                   5787:        if [ "x$WANT_UI" = "xyes" ]; then
                   5788:          NR_ERRORS=`expr $NR_ERRORS + 1`
                   5789:        fi
1.1       root     5790:       else
1.1.1.4   root     5791:         echo "Using gtk+ GUI."
                   5792:        NEED_THREAD_SUPPORT=yes
                   5793:        ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_GTK_GUI"
                   5794:        GUIOBJS=gtkui.o
1.1       root     5795:       fi
                   5796:     fi
1.1.1.4   root     5797:   fi
                   5798:   fi
                   5799:   fi
1.1       root     5800: fi
1.1.1.3   root     5801: fi
                   5802: fi
                   5803: fi
1.1.1.6   root     5804: fi
1.1       root     5805: 
1.1.1.4   root     5806: if [ "x$WANT_NCURSES_UI" = "xyes" ]; then
                   5807:   if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
                   5808:     if [ "x$WANT_UI" = "xyes" ]; then
                   5809:       echo "ncurses is unavailable, can't provide a user interface"
                   5810:       NR_ERRORS=`expr $NR_ERRORS + 1`      
                   5811:     fi
                   5812:     WANT_UI=no
                   5813:   fi
                   5814:   if [ "x$WANT_UI" != "xno" ]; then
                   5815:     GUIOBJS="tui.o svgancui.o"
                   5816:     LIBRARIES="$LIBRARIES -lncurses"
                   5817:     ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_CURSES_UI"
                   5818:     if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
                   5819:       echo "Found libncurses, but no ncurses.h. This is normal with recent versions"
                   5820:       echo "of ncurses, but it might indicate a problem with older versions."
                   5821:       NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   5822:     fi
                   5823:   else
                   5824:     GUIOBJS=nogui.o
                   5825:   fi
1.1.1.3   root     5826: fi
                   5827:  
1.1.1.4   root     5828: GFXOBJS="$GFXOBJS $GUIOBJS"
                   5829:  
                   5830: 
                   5831: MACHDEP=md-generic
                   5832: OSDEP=od-generic
                   5833: THREADDEP=td-none
                   5834: SOUNDDEP=od-generic
                   5835: 
1.1.1.11  root     5836: FPP_H=fpp-unknown.h
1.1.1.4   root     5837: USE_THREADS=no
                   5838: USE_FILE_SOUND=no
1.1.1.10  root     5839: USE_SCSI_DEVICE=no
1.1.1.4   root     5840: 
1.1.1.6   root     5841: USE_UNDERSCORE=dunno
                   5842: 
1.1.1.4   root     5843: HAVELINUX=no
1.1.1.6   root     5844: HAVEBSD=no
1.1.1.4   root     5845: HAVEGCC27=no
                   5846: HAVEI386=no
                   5847: HAVE68K=no
1.1.1.11  root     5848: HAVEPPC=no
1.1.1.4   root     5849: HAVEGLIBC2=no
1.1.1.3   root     5850: 
1.1       root     5851: ASMOBJS=
1.1.1.4   root     5852: CPUOBJS=cpuemu.o
1.1.1.3   root     5853: 
1.1.1.4   root     5854: echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
1.1.1.13  root     5855: echo "configure:5856: checking for GCC 2.7 or higher" >&5
1.1.1.6   root     5856: cat > conftest.$ac_ext <<EOF
1.1.1.13  root     5857: #line 5858 "configure"
1.1.1.6   root     5858: #include "confdefs.h"
                   5859: #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
                   5860:   yes
1.1.1.3   root     5861: #endif
                   5862: 
1.1.1.6   root     5863: EOF
                   5864: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5865:   egrep "yes" >/dev/null 2>&1; then
                   5866:   rm -rf conftest*
                   5867:   echo "$ac_t""yes" 1>&6; HAVEGCC27=yes
1.1.1.3   root     5868: else
1.1.1.6   root     5869:   rm -rf conftest*
1.1.1.4   root     5870:   echo "$ac_t""no" 1>&6
1.1.1.6   root     5871: fi
                   5872: rm -f conftest*
                   5873: 
                   5874: 
                   5875: if test $ac_cv_prog_gcc = yes; then
                   5876:   if test $HAVEGCC27 != yes; then
1.1.1.3   root     5877:     echo "I suggest you upgrade to at least version 2.7 of GCC"
1.1.1.6   root     5878:   fi
                   5879: else
                   5880:   if test $uae_cv_prog_cc_watcom != yes; then
1.1.1.3   root     5881:     echo "Couldn't find GCC. UAE may or may not compile and run correctly."
1.1.1.4   root     5882:     NR_WARNINGS=`expr $NR_WARNINGS + 1`
1.1.1.3   root     5883:   fi
                   5884: fi
                   5885: 
1.1.1.4   root     5886: if [ "x$ac_cv_header_features_h" = "xyes" ]; then
1.1.1.6   root     5887:   echo $ac_n "checking for glibc-2.0 or higher""... $ac_c" 1>&6
1.1.1.13  root     5888: echo "configure:5889: checking for glibc-2.0 or higher" >&5
1.1.1.6   root     5889:   cat > conftest.$ac_ext <<EOF
1.1.1.13  root     5890: #line 5891 "configure"
1.1.1.6   root     5891: #include "confdefs.h"
1.1.1.4   root     5892: #include <features.h>
1.1.1.6   root     5893: #if __GLIBC__ - 1 >= 1
                   5894:   yes
1.1.1.4   root     5895: #endif
                   5896: 
1.1.1.6   root     5897: EOF
                   5898: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5899:   egrep "yes" >/dev/null 2>&1; then
                   5900:   rm -rf conftest*
                   5901:   echo "$ac_t""yes" 1>&6; HAVEGLIBC2=yes
1.1.1.3   root     5902: else
1.1.1.6   root     5903:   rm -rf conftest*
1.1.1.4   root     5904:   echo "$ac_t""no" 1>&6
                   5905: fi
1.1.1.6   root     5906: rm -f conftest*
                   5907: 
                   5908: fi
1.1.1.4   root     5909: 
1.1.1.6   root     5910: if test $ac_cv_prog_gcc = yes; then
1.1.1.4   root     5911:   WARNING_CFLAGS="-Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes"
                   5912:   OPTIMIZE_CFLAGS="-O2 -fomit-frame-pointer"
                   5913:     CFLAGS=
                   5914: fi
                   5915: 
                   5916: if [ "x$DO_PROFILING" = "xyes" ]; then
                   5917:   if [ "x$CC" = "xgcc" ]; then
                   5918:     OPTIMIZE_CFLAGS="-O"
                   5919:     DEBUG_CFLAGS="-g -fno-inline -fno-omit-frame-pointer -pg -DUSE_PROFILING"
                   5920:     LDFLAGS="-pg"
                   5921:   else
                   5922:     DO_PROFILING=no
                   5923:     echo "Don't know how to set up profiling for your compiler."
                   5924:     NR_ERRORS=`expr $NR_ERRORS + 1`
1.1.1.3   root     5925:   fi
                   5926: fi
                   5927: 
1.1.1.4   root     5928: CFLAGS="$OPTIMIZE_CFLAGS $DEBUG_CFLAGS $WARNING_CFLAGS $CFLAGS $ADDITIONAL_CFLAGS"
                   5929: 
                   5930: if [ "x$HAVEGCC27" = "xyes" ]; then
1.1.1.3   root     5931:   CFLAGS="$CFLAGS -DGCCCONSTFUNC=\"__attribute__((const))\""
                   5932: else
                   5933:   CFLAGS="$CFLAGS -DGCCCONSTFUNC="
                   5934: fi
1.1.1.2   root     5935: 
1.1.1.6   root     5936: echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6
1.1.1.13  root     5937: echo "configure:5938: checking for x86 target CPU" >&5
1.1.1.6   root     5938: cat > conftest.$ac_ext <<EOF
1.1.1.13  root     5939: #line 5940 "configure"
1.1.1.6   root     5940: #include "confdefs.h"
                   5941: 
1.1.1.3   root     5942: #ifdef __i386__
1.1.1.6   root     5943:   yes
1.1.1.3   root     5944: #endif
1.1       root     5945: 
1.1.1.6   root     5946: EOF
                   5947: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5948:   egrep "yes" >/dev/null 2>&1; then
                   5949:   rm -rf conftest*
                   5950:   echo "$ac_t""yes" 1>&6; HAVEI386=yes
1.1.1.3   root     5951: else
1.1.1.6   root     5952:   rm -rf conftest*
                   5953:   echo "$ac_t""no" 1>&6
                   5954: fi
                   5955: rm -f conftest*
                   5956: 
                   5957: 
                   5958: echo $ac_n "checking for m68k target CPU""... $ac_c" 1>&6
1.1.1.13  root     5959: echo "configure:5960: checking for m68k target CPU" >&5
1.1.1.6   root     5960: cat > conftest.$ac_ext <<EOF
1.1.1.13  root     5961: #line 5962 "configure"
1.1.1.6   root     5962: #include "confdefs.h"
                   5963: 
                   5964: #ifdef __m68k__
                   5965:   yes
                   5966: #endif
1.1.1.3   root     5967: 
1.1.1.6   root     5968: EOF
                   5969: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5970:   egrep "yes" >/dev/null 2>&1; then
                   5971:   rm -rf conftest*
1.1.1.7   root     5972:   echo "$ac_t""yes" 1>&6; HAVE68K=yes
1.1.1.6   root     5973: else
                   5974:   rm -rf conftest*
                   5975:   echo "$ac_t""no" 1>&6
                   5976: fi
1.1.1.3   root     5977: rm -f conftest*
                   5978: 
1.1.1.6   root     5979: 
1.1.1.11  root     5980: echo $ac_n "checking for ppc target CPU""... $ac_c" 1>&6
1.1.1.13  root     5981: echo "configure:5982: checking for ppc target CPU" >&5
1.1.1.11  root     5982: cat > conftest.$ac_ext <<EOF
1.1.1.13  root     5983: #line 5984 "configure"
1.1.1.11  root     5984: #include "confdefs.h"
                   5985: 
                   5986: #ifdef __powerpc__
                   5987:   yes
                   5988: #endif
                   5989: 
                   5990: EOF
                   5991: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5992:   egrep "yes" >/dev/null 2>&1; then
                   5993:   rm -rf conftest*
                   5994:   echo "$ac_t""yes" 1>&6; HAVEPPC=yes
                   5995: else
                   5996:   rm -rf conftest*
                   5997:   echo "$ac_t""no" 1>&6
                   5998: fi
                   5999: rm -f conftest*
                   6000: 
                   6001: 
1.1.1.4   root     6002: if MACHINE=`uname -a 2>/dev/null`; then
                   6003:   case "$MACHINE" in
                   6004:   Linux*)
                   6005:     HAVELINUX=yes
                   6006:     ;;
                   6007:   esac
                   6008: fi
                   6009: 
1.1.1.3   root     6010: 
1.1.1.6   root     6011: echo $ac_n "checking whether assembler symbols need an underscore""... $ac_c" 1>&6
1.1.1.14  root     6012: echo "configure:6013: checking whether assembler symbols need an underscore" >&5
1.1.1.6   root     6013: cat >conftest1.S << EOF
                   6014:        .text
                   6015:        .globl _symbol
                   6016: _symbol:
                   6017: EOF
                   6018: cat >conftest2.c << EOF
                   6019: extern void symbol ();
                   6020: int main ()
                   6021: {
                   6022: symbol ();
                   6023: }
                   6024: EOF
                   6025: $CC conftest1.S -c -o conftest1.o >/dev/null 2>&1
                   6026: $CC conftest2.c -c -o conftest2.o >/dev/null 2>&1
                   6027: if $CC conftest1.o conftest2.o -o conftest >/dev/null 2>&1; then
                   6028:   USE_UNDERSCORE=yes
                   6029:   CFLAGS="$CFLAGS -DUSE_UNDERSCORE"
1.1.1.4   root     6030: else
1.1.1.6   root     6031:   USE_UNDERSCORE=no
1.1.1.4   root     6032: fi
1.1.1.6   root     6033: echo "$ac_t""$USE_UNDERSCORE" 1>&6
1.1.1.4   root     6034: 
                   6035: rm -f conftest*
                   6036: 
                   6037: # Check whether --enable-threads or --disable-threads was given.
                   6038: if test "${enable_threads+set}" = set; then
                   6039:   enableval="$enable_threads"
                   6040:   USE_THREADS=$enableval
                   6041: fi
                   6042: 
                   6043: 
                   6044: if [ "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
1.1.1.12  root     6045:   if [ "x$USE_THREADS" != "xyes" ]; then
1.1.1.4   root     6046:     echo "The gtk+ GUI needs threads; enabling thread support."
                   6047:   fi
                   6048: fi
                   6049: 
1.1.1.12  root     6050: if [ "x$USE_THREADS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
1.1.1.4   root     6051:   if [ "x$HAVE_PTHREAD_LIB" = "xyes" ]; then
                   6052:     THREADDEP=td-posix
                   6053:     CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT"
                   6054:     LIBS="$LIBS -lpthread"
                   6055:     if [ "x$HAVE_POSIX4_LIB" = "xyes" ]; then
                   6056:       LIBS="$LIBS -lposix4"
                   6057:     fi
                   6058: 
                   6059:     if [ "x$USE_THREADS" = "xyes" ]; then    
                   6060:       CFLAGS="$CFLAGS -DUAE_FILESYS_THREADS"
                   6061:     fi
                   6062: 
                   6063:     if [ "x$HAVELINUX" = "xno" -o "x$HAVEGLIBC2" = "xno" ]; then
1.1.1.6   root     6064:       echo "Thread support has only been tested on Linux systems with glibc-2.0"
1.1.1.4   root     6065:       NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   6066:     fi
                   6067:     if [ "x$TARGET" = "xsvgalib" ]; then
                   6068:       echo "If you didn't compile a fixed version of SVGAlib then thread support"
                   6069:       echo "in UAE will lock your machine real hard."
                   6070:       NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   6071:     fi
1.1       root     6072:   else
1.1.1.4   root     6073:     echo "You tried to enable threads, but I couldn't find a thread library!"
                   6074:     NR_ERRORS=`expr $NR_ERRORS + 1`
1.1       root     6075:   fi
1.1.1.3   root     6076: fi
                   6077: 
                   6078: 
1.1.1.4   root     6079: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
                   6080:   SAVECFLAGS=$CFLAGS
                   6081:   CFLAGS="$CFLAGS -mno-schedule-prologue"
                   6082:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     6083: #line 6084 "configure"
1.1.1.4   root     6084: #include "confdefs.h"
                   6085: 
                   6086: int main() {
                   6087: int main(){return 0;}
                   6088: ; return 0; }
                   6089: EOF
1.1.1.14  root     6090: if { (eval echo configure:6091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4   root     6091:   rm -rf conftest*
                   6092:   NO_SCHED_CFLAGS="-mno-schedule-prologue"
                   6093: else
                   6094:   echo "configure: failed program was:" >&5
                   6095:   cat conftest.$ac_ext >&5
                   6096: fi
                   6097: rm -f conftest*
                   6098:   CFLAGS=$SAVECFLAGS
                   6099: fi
                   6100: 
1.1.1.10  root     6101: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
                   6102:   SAVECFLAGS=$CFLAGS
                   6103:   CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
                   6104:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     6105: #line 6106 "configure"
1.1.1.10  root     6106: #include "confdefs.h"
                   6107: 
                   6108: int main() {
                   6109: int main(){return 0;}
                   6110: ; return 0; }
                   6111: EOF
1.1.1.14  root     6112: if { (eval echo configure:6113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.10  root     6113:   rm -rf conftest*
                   6114:   SAVECFLAGS=$CFLAGS
                   6115: else
                   6116:   echo "configure: failed program was:" >&5
                   6117:   cat conftest.$ac_ext >&5
                   6118: fi
                   6119: rm -f conftest*
                   6120:   CFLAGS=$SAVECFLAGS
                   6121: fi
                   6122: 
1.1.1.4   root     6123: 
                   6124: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
                   6125:   SAVECFLAGS=$CFLAGS
                   6126:   CFLAGS="$CFLAGS -fno-exceptions"
                   6127:   NOEXCEPTIONS=no
                   6128:   cat > conftest.$ac_ext <<EOF
1.1.1.14  root     6129: #line 6130 "configure"
1.1.1.4   root     6130: #include "confdefs.h"
                   6131: 
                   6132: int main() {
                   6133: int main(){return 0;}
                   6134: ; return 0; }
                   6135: EOF
1.1.1.14  root     6136: if { (eval echo configure:6137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4   root     6137:   rm -rf conftest*
                   6138:   NOEXCEPTIONS=yes
                   6139: else
                   6140:   echo "configure: failed program was:" >&5
                   6141:   cat conftest.$ac_ext >&5
                   6142: fi
                   6143: rm -f conftest*
                   6144:   if [ "x$NOEXCEPTIONS" = "xno" ]; then
                   6145:     CFLAGS=$SAVECFLAGS
                   6146:   fi
                   6147: fi
                   6148: 
                   6149: 
                   6150: 
                   6151: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
                   6152:   MACHDEP=md-i386-gcc
1.1.1.6   root     6153:         CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
                   6154: 
1.1.1.14  root     6155:   CFLAGS="$CFLAGS -DX86_ASSEMBLY -DOPTIMIZED_FLAGS"
                   6156:   ASMOBJS=md-X86.o
                   6157:   CPUOBJS=cpufast.o
1.1.1.6   root     6158: else if test $uae_cv_prog_cc_watcom = yes; then
                   6159:   MACHDEP=md-i386-watcom
                   6160:   echo CFLAGS before: $CFLAGS
                   6161:   CFLAGS=`echo $CFLAGS | sed 's, -g , ,' |sed 's,^-g ,,'`
                   6162:   CFLAGS="$CFLAGS --/--bm --/--mf --/--w4 --/--s --/--ei --/--zp4 --/--5r"
                   6163:   CFLAGS="$CFLAGS --/--oe=50 --/--oi --/--ok --/--ol --/--ot --/--oh --/--or --/--zq"
                   6164:   CFLAGS="$CFLAGS -DREGPARAM= -DUNALIGNED_PROFITABLE"
                   6165:   echo CFLAGS after:  $CFLAGS
1.1.1.11  root     6166: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEPPC" = "xyes" ]; then
                   6167:   MACHDEP=md-ppc-gcc
                   6168:   CFLAGS="$CFLAGS -DREGPARAM="
                   6169:   if [ "x$HAVE_MOTO_LIB" = "xyes" ]; then
                   6170:     MATHLIB="-lmoto $MATHLIB"
                   6171:   fi
1.1.1.4   root     6172: else if [ "x$TARGET" = "xp_os" ]; then
                   6173:   CPU=`uname -m`
                   6174:   if [ "x$CPU" = "xm68k" ]; then
                   6175:      MACHDEP=md-68k
1.1.1.7   root     6176:      CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
1.1.1.4   root     6177:   else if [ "x$CPU" = "xppc" ]; then
                   6178:      MACHDEP=md-ppc
                   6179:      CFLAGS="$CFLAGS -DREGPARAM="
                   6180:   else if [ "x$CPU" = "xi386" ]; then
                   6181:           MACHDEP=md-i386-gcc
                   6182:      CFLAGS="$CFLAGS -DX86_ASSEMBLY -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
                   6183:   else
                   6184:      echo "Unsupported CPU: $CPU!"
                   6185:      exit 5
                   6186:   fi
                   6187:   fi
                   6188:   fi
                   6189:   CFLAGS="$CFLAGS -nostdinc -I/gg/include -I/p/../inc -D__POS__"
                   6190:   OSDEP=od-pos
                   6191:   CPUOBJS="cpufast.o"
1.1.1.7   root     6192: else if [ "x$TARGET" = "xamigaos" ]; then
1.1.1.4   root     6193:   OSDEP=od-amiga
1.1.1.7   root     6194:   CPU=`uname -m`
                   6195:   if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" ]; then
                   6196:     MACHDEP=md-68k
                   6197:     CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
                   6198:     CPUOBJS="cpufast1.o cpufast2.o cpufast3.o cpufast4.o cpufast5.o cpufast6.o cpufast7.o cpufast8.o"
                   6199:   else if [ "x$HAVEGCC27" = "xyes" -a "x$CPU" = "xppc" ]; then
                   6200:     MACHDEP=md-ppc-gcc
                   6201:   else
                   6202:         CFLAGS="$CFLAGS -O -DREGPARAM="
                   6203:     CPUOBJS="cpuemu1.o cpuemu2.o cpuemu3.o cpuemu4.o cpuemu5.o cpuemu6.o cpuemu7.o cpuemu8.o"
                   6204:   fi
                   6205:   fi
1.1.1.4   root     6206: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
                   6207:     MACHDEP=md-68k
                   6208:   CFLAGS="$CFLAGS -DM68K_FLAG_OPT=1 -DREGPARAM="
                   6209:   CPUOBJS="cpufast.o"
                   6210: else if [ "x$TARGET" = "xbeos" ]; then
                   6211:   MACHDEP=md-ppc
                   6212:   CFLAGS="$CFLAGS -DREGPARAM="
                   6213:   OSDEP=od-beos
1.1       root     6214: else
1.1.1.3   root     6215:   CFLAGS="$CFLAGS -DREGPARAM="
                   6216: fi
                   6217: fi
1.1       root     6218: fi
1.1.1.4   root     6219: fi
                   6220: fi
                   6221: fi
1.1.1.11  root     6222: fi
1.1.1.4   root     6223: 
1.1.1.6   root     6224: if [ "x$TARGET" = "xwin32" ]; then
                   6225:   OSDEP=od-win32
                   6226:   if test $ac_cv_prog_gcc = yes; then
                   6227:     LIBS="$LIBS -lddraw -lwinmm -lcomctl32 -lcomdlg32 -luser32 -lgdi32 -lkernel32 -ladvapi32 -lshell32"
                   6228:   else if test $uae_cv_prog_cc_watcom = yes; then
                   6229:     LIBS="$LIBS -lddraw -lwinmm -lcomctl32"
                   6230:   fi
                   6231:   fi
                   6232: else if [ "x$HAVELINUX" = "xyes" ]; then
1.1.1.4   root     6233:   OSDEP=od-linux
                   6234: fi
1.1.1.6   root     6235: fi
1.1       root     6236: 
1.1.1.4   root     6237: if [ "x$TARGET" = "xx11" -o "x$TARGET" = "xsvgalib" -o "x$TARGET" = "xamigaos" \
1.1.1.13  root     6238:      -o "x$TARGET" = "xbeos" -o "x$TARGET" = "xasciiart" -o "x$TARGET" = "xp_os" ]; then
1.1.1.2   root     6239:     CFLAGS="$CFLAGS -DUSE_ZFILE"
                   6240: fi
                   6241: 
1.1.1.4   root     6242: HAVE_USS_SOUND=no
                   6243: if [ "x$ac_cv_header_sys_soundcard_h" = "xyes" -o "x$ac_cv_header_machine_soundcard_h" = "xyes" ]; then
                   6244:     echo $ac_n "checking whether sys/soundcard.h or machine/soundcard.h works""... $ac_c" 1>&6
1.1.1.15! root     6245: echo "configure:6246: checking whether sys/soundcard.h or machine/soundcard.h works" >&5
1.1.1.4   root     6246:   cat > conftest.$ac_ext <<EOF
1.1.1.15! root     6247: #line 6248 "configure"
1.1.1.4   root     6248: #include "confdefs.h"
                   6249: 
                   6250: #include "confdefs.h"
                   6251: #ifdef HAVE_SYS_SOUNDCARD_H
                   6252: #include <sys/soundcard.h>
                   6253: #else
                   6254: #include <machine/soundcard.h>
                   6255: #endif
                   6256: #include <sys/ioctl.h>
                   6257: 
                   6258: int main() {
                   6259: int soundfd; ioctl (soundfd, SNDCTL_DSP_GETFMTS, 0);
                   6260: ; return 0; }
                   6261: EOF
1.1.1.15! root     6262: if { (eval echo configure:6263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4   root     6263:   rm -rf conftest*
                   6264:   echo "$ac_t""yes" 1>&6
                   6265: HAVE_USS_SOUND=yes
                   6266: else
                   6267:   echo "configure: failed program was:" >&5
                   6268:   cat conftest.$ac_ext >&5
                   6269:   rm -rf conftest*
                   6270:   echo "$ac_t""no" 1>&6
                   6271: fi
                   6272: rm -f conftest*
                   6273: fi
                   6274: 
1.1.1.8   root     6275: if [ "x$ac_cv_header_dmedia_audio.h" = "xno" ]; then
                   6276:   HAVE_SGIAUDIO_LIB=no
                   6277: fi
                   6278: 
1.1.1.4   root     6279: echo $ac_n "checking which sound system to use""... $ac_c" 1>&6
1.1.1.15! root     6280: echo "configure:6281: checking which sound system to use" >&5
1.1.1.4   root     6281: # Check whether --enable-file-sound or --disable-file-sound was given.
                   6282: if test "${enable_file_sound+set}" = set; then
                   6283:   enableval="$enable_file_sound"
                   6284:   USE_FILE_SOUND=$enableval
                   6285: fi
                   6286: 
                   6287: 
                   6288: if [ "x$USE_FILE_SOUND" = "xyes" ]; then
1.1.1.7   root     6289:   echo "$ac_t""file output" 1>&6
                   6290:   SOUNDDEP=sd-file
                   6291:   USE_SOUND=yes  
                   6292: else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then
                   6293:   echo "$ac_t""USS" 1>&6
                   6294:   SOUNDDEP=sd-uss
1.1.1.4   root     6295:   USE_SOUND=yes
1.1.1.7   root     6296: else if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then
                   6297:   echo "$ac_t""Solaris/NetBSD" 1>&6
                   6298:   SOUNDDEP=sd-solaris
                   6299:   USE_SOUND=yes
                   6300: else if [ "x$HAVE_AF_LIB" = "xyes" ]; then
                   6301:   echo "$ac_t""AF sound" 1>&6
                   6302:   SOUNDDEP=sd-af
                   6303:   LIBS="$LIBS -lAF"
                   6304:   USE_SOUND=yes
1.1.1.8   root     6305: else if [ "x$HAVE_SGIAUDIO_LIB" = "xyes" ]; then
                   6306:   echo "$ac_t""SGI sound" 1>&6
                   6307:   SOUNDDEP=sd-sgi
                   6308:   LIBS="$LIBS -laudio"
                   6309:   USE_SOUND=yes
1.1.1.7   root     6310: else if [ "x$HAVE_MME_LIB" = "xyes" ]; then
                   6311:   echo "$ac_t""MME sound" 1>&6
                   6312:   SOUNDDEP=sd-mme
                   6313:   LIBS="$LIBS -lmme"
                   6314:   USE_SOUND=yes
                   6315: else if [ "x$TARGET" = "xp_os" ]; then
                   6316:   echo "$ac_t""pAudio.device" 1>&6
                   6317:   SOUNDDEP=od-pos
                   6318:   USE_SOUND=yes
                   6319: else if [ "x$TARGET" = "xamigaos" ]; then
                   6320:   if [ "x$ac_cv_header_devices_ahi_h" = "xyes" ]; then
                   6321:     echo "$ac_t""Amiga AHI.device" 1>&6
1.1.1.4   root     6322:   else
1.1.1.7   root     6323:     echo "$ac_t""Amiga audio.device" 1>&6
1.1.1.6   root     6324:   fi
1.1.1.7   root     6325:   SOUNDDEP=od-amiga
                   6326:   USE_SOUND=yes
                   6327: else if [ "x$TARGET" = "xbeos" ]; then
                   6328:   echo "$ac_t""BeOS sound" 1>&6
                   6329:   SOUNDDEP=od-beos
                   6330:   USE_SOUND=yes
                   6331: else if [ "x$TARGET" = "xwin32" ]; then
                   6332:   echo "$ac_t""Win32 sound" 1>&6
                   6333:   SOUNDDEP=od-win32
                   6334:   USE_SOUND=yes
                   6335: else
                   6336:   echo "no known sound system found"
                   6337:   NR_ERRORS=`expr $NR_ERRORS + 1`
                   6338: fi
                   6339: fi
                   6340: fi
                   6341: fi
1.1.1.4   root     6342: fi
1.1.1.7   root     6343: fi
                   6344: fi
                   6345: fi
                   6346: fi
1.1.1.8   root     6347: fi
1.1.1.7   root     6348: 
1.1.1.10  root     6349: SCSIOBJS=scsi-none.o
                   6350: # Check whether --enable-scsi-device or --disable-scsi-device was given.
                   6351: if test "${enable_scsi_device+set}" = set; then
                   6352:   enableval="$enable_scsi_device"
                   6353:   USE_SCSI_DEVICE=$enableval
                   6354: fi
                   6355: 
                   6356: if [ "x$USE_SCSI_DEVICE" = "xyes" ]; then
1.1.1.13  root     6357:   echo $ac_n "checking "availability of libscg headers and lib"""... $ac_c" 1>&6
1.1.1.15! root     6358: echo "configure:6359: checking "availability of libscg headers and lib"" >&5
1.1.1.13  root     6359:   OLDLIBS="$LIBS"
1.1.1.14  root     6360:   OLDCFLAGS="$CFLAGS"
                   6361:   CFLAGS="$CFLAGS -Isrc/include"
                   6362:   LIBS="-Lsrc $LIBS -lscg -lschily"
1.1.1.13  root     6363:   cat > conftest.$ac_ext <<EOF
1.1.1.15! root     6364: #line 6365 "configure"
1.1.1.13  root     6365: #include "confdefs.h"
1.1.1.14  root     6366: typedef int BOOL;
1.1.1.13  root     6367: #include "scg/scgcmd.h"
                   6368: #include "scg/scsitransp.h"
                   6369: #include "scg/scsireg.h"
                   6370: int main() {
                   6371: {SCSI *scgp = open_scsi ((void *)0, (void *)0, 0, 1, 1);}
                   6372: ; return 0; }
                   6373: EOF
1.1.1.15! root     6374: if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.13  root     6375:   rm -rf conftest*
                   6376:   
                   6377:     echo "$ac_t""available" 1>&6
1.1.1.10  root     6378:     SCSIOBJS=scsidev.o
1.1.1.13  root     6379:   
                   6380: else
                   6381:   echo "configure: failed program was:" >&5
                   6382:   cat conftest.$ac_ext >&5
                   6383:   rm -rf conftest*
                   6384:   
                   6385:      echo "$ac_t""not available" 1>&6
                   6386:      NR_WARNINGS=`expr $NR_WARNINGS + 1`
                   6387:      echo "Please refer to the UAE SCSI device section in docs/README for installation instructions."
                   6388:      LIBS="$OLDLIBS"
                   6389:   
                   6390: fi
                   6391: rm -f conftest*
1.1.1.14  root     6392:   CFLAGS="$OLDCFLAGS"
1.1.1.10  root     6393: fi
                   6394: 
                   6395: 
                   6396: if [ "x$HAVE_MACHINE_JOYSTICK_H" = "xyes" ]; then
                   6397:   cat > conftest.$ac_ext <<EOF
1.1.1.15! root     6398: #line 6399 "configure"
1.1.1.10  root     6399: #include "confdefs.h"
                   6400: #include <machine/joystick.h>
                   6401: int main() {
                   6402: { struct joystick a; }
                   6403: ; return 0; }
                   6404: EOF
1.1.1.15! root     6405: if { (eval echo configure:6406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.10  root     6406:   rm -rf conftest*
                   6407:   OD_JOYSTICK=od-linux/joystick.c
                   6408: else
                   6409:   echo "configure: failed program was:" >&5
                   6410:   cat conftest.$ac_ext >&5
                   6411: fi
                   6412: rm -f conftest*
                   6413: else
                   6414:     OD_JOYSTICK=$OSDEP/joystick.c
                   6415: fi
1.1.1.4   root     6416: 
                   6417: rm -f src/machdep
                   6418: rm -f src/osdep
                   6419: rm -f src/threaddep
                   6420: rm -f src/sounddep
1.1.1.10  root     6421: rm -f src/scsidep
1.1.1.4   root     6422: rm -f src/target.h
1.1.1.5   root     6423: rm -f src/config.h
1.1.1.6   root     6424: rm -f src/sd-sound.c
                   6425: rm -f src/od-joy.c
                   6426: rm -f src/md-support.c
                   6427: rm -f src/md-X86.S
1.1.1.10  root     6428: rm -f src/scsi-support.c
1.1.1.3   root     6429: 
1.1.1.4   root     6430: if [ "x$TARGET" = "xamigaos" -o "x$TARGET" = "xp_os" ]; then
1.1.1.3   root     6431:     echo $ac_n "checking which CPU to use""... $ac_c" 1>&6
1.1.1.15! root     6432: echo "configure:6433: checking which CPU to use" >&5
1.1.1.3   root     6433:   cpu=`cpu | cut -d' ' -f2`
                   6434:   echo "$ac_t""$cpu" 1>&6
                   6435:   CFLAGS="$CFLAGS -m$cpu"
                   6436: 
                   6437:     echo $ac_n "checking which FPU to use""... $ac_c" 1>&6
1.1.1.15! root     6438: echo "configure:6439: checking which FPU to use" >&5
1.1.1.4   root     6439:   fpu=`cpu | cut -d' ' -f3 | grep '^688812$'`
                   6440:   if [ "x$fpu" != "x" ]; then
                   6441:         echo "$ac_t""68881" 1>&6
                   6442:     CFLAGS="$CFLAGS -m68881"
1.1.1.3   root     6443:   else
                   6444:     echo "$ac_t""none" 1>&6
                   6445:   fi
                   6446: fi
                   6447: 
1.1.1.2   root     6448: 
                   6449: 
1.1       root     6450: 
                   6451: 
                   6452: 
                   6453: 
                   6454: 
                   6455: 
                   6456: 
                   6457: 
                   6458: 
1.1.1.3   root     6459: 
1.1.1.4   root     6460: 
1.1.1.3   root     6461: 
                   6462: 
                   6463: 
1.1.1.6   root     6464: 
1.1       root     6465: trap '' 1 2 15
                   6466: cat > confcache <<\EOF
                   6467: # This file is a shell script that caches the results of configure
                   6468: # tests run on this system so they can be shared between configure
                   6469: # scripts and configure runs.  It is not useful on other systems.
                   6470: # If it contains results you don't want to keep, you may remove or edit it.
                   6471: #
                   6472: # By default, configure uses ./config.cache as the cache file,
                   6473: # creating it if it does not exist already.  You can give configure
                   6474: # the --cache-file=FILE option to use a different cache file; that is
                   6475: # what configure does when it calls configure scripts in
                   6476: # subdirectories, so they share the cache.
                   6477: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   6478: # config.status only pays attention to the cache file if you give it the
                   6479: # --recheck option to rerun configure.
                   6480: #
                   6481: EOF
1.1.1.4   root     6482: # The following way of writing the cache mishandles newlines in values,
                   6483: # but we know of no workaround that is simple, portable, and efficient.
                   6484: # So, don't put newlines in cache variables' values.
1.1       root     6485: # Ultrix sh set writes to stderr and can't be redirected directly,
                   6486: # and sets the high bit in the cache file unless we assign to the vars.
                   6487: (set) 2>&1 |
1.1.1.9   root     6488:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1.1.1.4   root     6489:   *ac_space=\ *)
                   6490:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   6491:     # turns \\\\ into \\, and sed turns \\ into \).
                   6492:     sed -n \
                   6493:       -e "s/'/'\\\\''/g" \
                   6494:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   6495:     ;;
                   6496:   *)
                   6497:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   6498:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   6499:     ;;
                   6500:   esac >> confcache
1.1       root     6501: if cmp -s $cache_file confcache; then
                   6502:   :
                   6503: else
                   6504:   if test -w $cache_file; then
                   6505:     echo "updating cache $cache_file"
                   6506:     cat confcache > $cache_file
                   6507:   else
                   6508:     echo "not updating unwritable cache $cache_file"
                   6509:   fi
                   6510: fi
                   6511: rm -f confcache
                   6512: 
                   6513: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   6514: 
                   6515: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   6516: # Let make expand exec_prefix.
                   6517: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   6518: 
                   6519: # Any assignment to VPATH causes Sun make to only execute
                   6520: # the first set of double-colon rules, so remove it if not needed.
                   6521: # If there is a colon in the path, we need to keep it.
                   6522: if test "x$srcdir" = x.; then
                   6523:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   6524: fi
                   6525: 
                   6526: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   6527: 
                   6528: DEFS=-DHAVE_CONFIG_H
                   6529: 
                   6530: # Without the "./", some shells look in PATH for config.status.
                   6531: : ${CONFIG_STATUS=./config.status}
                   6532: 
                   6533: echo creating $CONFIG_STATUS
                   6534: rm -f $CONFIG_STATUS
                   6535: cat > $CONFIG_STATUS <<EOF
                   6536: #! /bin/sh
                   6537: # Generated automatically by configure.
                   6538: # Run this file to recreate the current configuration.
                   6539: # This directory was configured as follows,
                   6540: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   6541: #
                   6542: # $0 $ac_configure_args
                   6543: #
                   6544: # Compiler output produced by configure, useful for debugging
                   6545: # configure, is in ./config.log if it exists.
                   6546: 
                   6547: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   6548: for ac_option
                   6549: do
                   6550:   case "\$ac_option" in
                   6551:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   6552:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   6553:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   6554:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1.1.1.9   root     6555:     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1.1       root     6556:     exit 0 ;;
                   6557:   -help | --help | --hel | --he | --h)
                   6558:     echo "\$ac_cs_usage"; exit 0 ;;
                   6559:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   6560:   esac
                   6561: done
                   6562: 
                   6563: ac_given_srcdir=$srcdir
                   6564: 
1.1.1.4   root     6565: trap 'rm -fr `echo "src/Makefile Makefile src/sysconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1       root     6566: EOF
                   6567: cat >> $CONFIG_STATUS <<EOF
                   6568: 
                   6569: # Protect against being on the right side of a sed subst in config.status.
                   6570: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   6571:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   6572: $ac_vpsub
                   6573: $extrasub
1.1.1.9   root     6574: s%@SHELL@%$SHELL%g
1.1       root     6575: s%@CFLAGS@%$CFLAGS%g
                   6576: s%@CPPFLAGS@%$CPPFLAGS%g
                   6577: s%@CXXFLAGS@%$CXXFLAGS%g
1.1.1.9   root     6578: s%@FFLAGS@%$FFLAGS%g
1.1       root     6579: s%@DEFS@%$DEFS%g
                   6580: s%@LDFLAGS@%$LDFLAGS%g
                   6581: s%@LIBS@%$LIBS%g
                   6582: s%@exec_prefix@%$exec_prefix%g
                   6583: s%@prefix@%$prefix%g
                   6584: s%@program_transform_name@%$program_transform_name%g
                   6585: s%@bindir@%$bindir%g
                   6586: s%@sbindir@%$sbindir%g
                   6587: s%@libexecdir@%$libexecdir%g
                   6588: s%@datadir@%$datadir%g
                   6589: s%@sysconfdir@%$sysconfdir%g
                   6590: s%@sharedstatedir@%$sharedstatedir%g
                   6591: s%@localstatedir@%$localstatedir%g
                   6592: s%@libdir@%$libdir%g
                   6593: s%@includedir@%$includedir%g
                   6594: s%@oldincludedir@%$oldincludedir%g
                   6595: s%@infodir@%$infodir%g
                   6596: s%@mandir@%$mandir%g
                   6597: s%@CC@%$CC%g
                   6598: s%@CPP@%$CPP%g
                   6599: s%@SET_MAKE@%$SET_MAKE%g
1.1.1.11  root     6600: s%@MAKEDEPPRG@%$MAKEDEPPRG%g
1.1.1.4   root     6601: s%@FILEPRG@%$FILEPRG%g
1.1.1.6   root     6602: s%@WRCPRG@%$WRCPRG%g
                   6603: s%@RCLPRG@%$RCLPRG%g
                   6604: s%@EXEEXT@%$EXEEXT%g
1.1       root     6605: s%@X_CFLAGS@%$X_CFLAGS%g
                   6606: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
                   6607: s%@X_LIBS@%$X_LIBS%g
                   6608: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
                   6609: s%@LIBOBJS@%$LIBOBJS%g
1.1.1.4   root     6610: s%@GTK_CONFIG@%$GTK_CONFIG%g
                   6611: s%@GTK_CFLAGS@%$GTK_CFLAGS%g
                   6612: s%@GTK_LIBS@%$GTK_LIBS%g
1.1       root     6613: s%@ac_cv_c_inline@%$ac_cv_c_inline%g
1.1.1.6   root     6614: s%@WRC@%$WRC%g
1.1.1.4   root     6615: s%@NO_SCHED_CFLAGS@%$NO_SCHED_CFLAGS%g
1.1       root     6616: s%@LIBRARIES@%$LIBRARIES%g
                   6617: s%@TARGET@%$TARGET%g
                   6618: s%@GFXOBJS@%$GFXOBJS%g
1.1.1.6   root     6619: s%@RESOBJS@%$RESOBJS%g
1.1       root     6620: s%@ASMOBJS@%$ASMOBJS%g
1.1.1.10  root     6621: s%@SCSIOBJS@%$SCSIOBJS%g
1.1.1.2   root     6622: s%@CPUOBJS@%$CPUOBJS%g
1.1.1.3   root     6623: s%@DEBUGOBJS@%$DEBUGOBJS%g
                   6624: s%@MATHLIB@%$MATHLIB%g
1.1.1.4   root     6625: s%@SHM_SUPPORT_LINKS@%$SHM_SUPPORT_LINKS%g
1.1.1.3   root     6626: s%@top_srcdir@%$top_srcdir%g
1.1       root     6627: 
                   6628: CEOF
                   6629: EOF
1.1.1.4   root     6630: 
                   6631: cat >> $CONFIG_STATUS <<\EOF
                   6632: 
                   6633: # Split the substitutions into bite-sized pieces for seds with
                   6634: # small command number limits, like on Digital OSF/1 and HP-UX.
                   6635: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   6636: ac_file=1 # Number of current file.
                   6637: ac_beg=1 # First line for current file.
                   6638: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   6639: ac_more_lines=:
                   6640: ac_sed_cmds=""
                   6641: while $ac_more_lines; do
                   6642:   if test $ac_beg -gt 1; then
                   6643:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   6644:   else
                   6645:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   6646:   fi
                   6647:   if test ! -s conftest.s$ac_file; then
                   6648:     ac_more_lines=false
                   6649:     rm -f conftest.s$ac_file
                   6650:   else
                   6651:     if test -z "$ac_sed_cmds"; then
                   6652:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   6653:     else
                   6654:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   6655:     fi
                   6656:     ac_file=`expr $ac_file + 1`
                   6657:     ac_beg=$ac_end
                   6658:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   6659:   fi
                   6660: done
                   6661: if test -z "$ac_sed_cmds"; then
                   6662:   ac_sed_cmds=cat
                   6663: fi
                   6664: EOF
                   6665: 
1.1       root     6666: cat >> $CONFIG_STATUS <<EOF
                   6667: 
1.1.1.2   root     6668: CONFIG_FILES=\${CONFIG_FILES-"src/Makefile Makefile"}
1.1       root     6669: EOF
                   6670: cat >> $CONFIG_STATUS <<\EOF
                   6671: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1.1.1.4   root     6672:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1       root     6673:   case "$ac_file" in
1.1.1.4   root     6674:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.1       root     6675:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   6676:   *) ac_file_in="${ac_file}.in" ;;
                   6677:   esac
                   6678: 
1.1.1.4   root     6679:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1.1       root     6680: 
                   6681:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   6682:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   6683:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   6684:     # The file is in a subdirectory.
                   6685:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   6686:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   6687:     # A "../" for each directory in $ac_dir_suffix.
                   6688:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   6689:   else
                   6690:     ac_dir_suffix= ac_dots=
                   6691:   fi
                   6692: 
                   6693:   case "$ac_given_srcdir" in
                   6694:   .)  srcdir=.
                   6695:       if test -z "$ac_dots"; then top_srcdir=.
                   6696:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   6697:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   6698:   *) # Relative path.
                   6699:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   6700:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   6701:   esac
                   6702: 
1.1.1.4   root     6703: 
1.1       root     6704:   echo creating "$ac_file"
                   6705:   rm -f "$ac_file"
                   6706:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   6707:   case "$ac_file" in
                   6708:   *Makefile*) ac_comsub="1i\\
                   6709: # $configure_input" ;;
                   6710:   *) ac_comsub= ;;
                   6711:   esac
1.1.1.4   root     6712: 
                   6713:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1.1       root     6714:   sed -e "$ac_comsub
                   6715: s%@configure_input@%$configure_input%g
                   6716: s%@srcdir@%$srcdir%g
                   6717: s%@top_srcdir@%$top_srcdir%g
1.1.1.4   root     6718: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1.1       root     6719: fi; done
1.1.1.4   root     6720: rm -f conftest.s*
1.1       root     6721: 
                   6722: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   6723: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   6724: #
                   6725: # ac_d sets the value in "#define NAME VALUE" lines.
                   6726: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   6727: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   6728: ac_dC='\3'
                   6729: ac_dD='%g'
                   6730: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   6731: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   6732: ac_uB='\([     ]\)%\1#\2define\3'
                   6733: ac_uC=' '
                   6734: ac_uD='\4%g'
                   6735: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   6736: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   6737: ac_eB='$%\1#\2define\3'
                   6738: ac_eC=' '
                   6739: ac_eD='%g'
                   6740: 
1.1.1.4   root     6741: if test "${CONFIG_HEADERS+set}" != set; then
                   6742: EOF
                   6743: cat >> $CONFIG_STATUS <<EOF
                   6744:   CONFIG_HEADERS="src/sysconfig.h"
                   6745: EOF
                   6746: cat >> $CONFIG_STATUS <<\EOF
                   6747: fi
1.1       root     6748: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1.1.1.4   root     6749:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1       root     6750:   case "$ac_file" in
1.1.1.4   root     6751:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.1       root     6752:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   6753:   *) ac_file_in="${ac_file}.in" ;;
                   6754:   esac
                   6755: 
                   6756:   echo creating $ac_file
                   6757: 
                   6758:   rm -f conftest.frag conftest.in conftest.out
1.1.1.4   root     6759:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   6760:   cat $ac_file_inputs > conftest.in
1.1       root     6761: 
                   6762: EOF
                   6763: 
                   6764: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   6765: # the proper values into config.h.in to produce config.h.  And first:
                   6766: # Protect against being on the right side of a sed subst in config.status.
                   6767: # Protect against being in an unquoted here document in config.status.
                   6768: rm -f conftest.vals
                   6769: cat > conftest.hdr <<\EOF
                   6770: s/[\\&%]/\\&/g
                   6771: s%[\\$`]%\\&%g
                   6772: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   6773: s%ac_d%ac_u%gp
                   6774: s%ac_u%ac_e%gp
                   6775: EOF
                   6776: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   6777: rm -f conftest.hdr
                   6778: 
                   6779: # This sed command replaces #undef with comments.  This is necessary, for
                   6780: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   6781: # on some systems where configure will not decide to define it.
                   6782: cat >> conftest.vals <<\EOF
                   6783: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   6784: EOF
                   6785: 
                   6786: # Break up conftest.vals because some shells have a limit on
                   6787: # the size of here documents, and old seds have small limits too.
                   6788: 
                   6789: rm -f conftest.tail
                   6790: while :
                   6791: do
                   6792:   ac_lines=`grep -c . conftest.vals`
                   6793:   # grep -c gives empty output for an empty file on some AIX systems.
                   6794:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   6795:   # Write a limited-size here document to conftest.frag.
                   6796:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   6797:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   6798:   echo 'CEOF
                   6799:   sed -f conftest.frag conftest.in > conftest.out
                   6800:   rm -f conftest.in
                   6801:   mv conftest.out conftest.in
                   6802: ' >> $CONFIG_STATUS
                   6803:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   6804:   rm -f conftest.vals
                   6805:   mv conftest.tail conftest.vals
                   6806: done
                   6807: rm -f conftest.vals
                   6808: 
                   6809: cat >> $CONFIG_STATUS <<\EOF
                   6810:   rm -f conftest.frag conftest.h
                   6811:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   6812:   cat conftest.in >> conftest.h
                   6813:   rm -f conftest.in
                   6814:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   6815:     echo "$ac_file is unchanged"
                   6816:     rm -f conftest.h
                   6817:   else
                   6818:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   6819:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   6820:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   6821:       # The file is in a subdirectory.
                   6822:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   6823:     fi
                   6824:     rm -f $ac_file
                   6825:     mv conftest.h $ac_file
                   6826:   fi
                   6827: fi; done
                   6828: 
1.1.1.4   root     6829: EOF
                   6830: cat >> $CONFIG_STATUS <<EOF
1.1       root     6831: 
1.1.1.4   root     6832: EOF
                   6833: cat >> $CONFIG_STATUS <<\EOF
1.1       root     6834: 
                   6835: exit 0
                   6836: EOF
                   6837: chmod +x $CONFIG_STATUS
                   6838: rm -fr confdefs* $ac_clean_files
                   6839: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   6840: 
1.1.1.4   root     6841: if [ "x$DO_PROFILING" = "xyes" ]; then
1.1.1.3   root     6842:   echo "Building a profiling version of UAE (select this option only if you know"
                   6843:   echo "what you are doing)"
                   6844: fi
1.1.1.4   root     6845: 
                   6846: 
                   6847: 
                   6848: 
1.1.1.10  root     6849: if test -f $abssrcdir/src/target.h
1.1.1.6   root     6850: then
                   6851:   echo
                   6852:   echo "Fatal error: Can't configure in the current directory, because"
                   6853:   echo "configure was run in the source directory. Go to the source"
                   6854:   echo "directory, type"
                   6855:   echo "  make streifenfrei"
                   6856:   echo "and try again."
                   6857:   exit 1
                   6858: fi
1.1.1.4   root     6859: 
                   6860: ln -s $abssrcdir/src/$MACHDEP src/machdep
                   6861: ln -s $abssrcdir/src/$OSDEP src/osdep
                   6862: ln -s $abssrcdir/src/$THREADDEP src/threaddep
                   6863: ln -s $abssrcdir/src/$SOUNDDEP src/sounddep
1.1.1.6   root     6864: 
1.1.1.10  root     6865: echo "#include \"$abssrcdir/src/targets/$TARGETDEP\"" > src/target.h
                   6866: echo "#include \"$abssrcdir/config.h\"" > src/config.h
1.1.1.6   root     6867: 
1.1.1.10  root     6868: echo "#include \"$abssrcdir/src/$SOUNDDEP/sound.c\"" >src/sd-sound.c
                   6869: echo "#include \"$abssrcdir/src/$OD_JOYSTICK\"" >src/od-joy.c
                   6870: echo "#include \"$abssrcdir/src/$MACHDEP/support.c\"" >src/md-support.c
                   6871: 
1.1.1.6   root     6872: if [ "x$MACHDEP" = "xmd-i386-gcc" ]; then
1.1.1.10  root     6873:   echo "#include \"machdep/X86.S\"" >src/md-X86.S
1.1.1.6   root     6874: fi
1.1.1.11  root     6875: echo "#include \"$abssrcdir/src/include/$FPP_H\"" >src/md-fpp.h
1.1.1.6   root     6876: 
                   6877: 
1.1.1.4   root     6878: echo
                   6879: echo
                   6880: if [ "x$NR_ERRORS" = "x0" ]; then
                   6881:   if [ "x$NR_WARNINGS" = "x0" ]; then
                   6882:     echo "Configuration was successful!"
                   6883:   else
                   6884:     echo "There were $NR_WARNINGS warnings. That is usually harmless, but read the output"
                   6885:     echo "from configure carefully if you run into problems."
                   6886:   fi
                   6887: else
                   6888:   echo "There were $NR_ERRORS errors. UAE may still build and run cleanly, but you may"
                   6889:   echo "not get all the features you asked for."
                   6890: fi
                   6891: echo

unix.superglobalmegacorp.com

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