Annotation of uae/configure, revision 1.1.1.18

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

unix.superglobalmegacorp.com

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