Annotation of uae/configure, revision 1.1.1.8

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

unix.superglobalmegacorp.com

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