Annotation of uae/configure, revision 1.1.1.4

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-sound          Enable sound support"
        !            44: ac_help="$ac_help
        !            45:   --enable-file-sound          Enable sound output to file"
1.1       root       46: 
                     47: # Initialize some variables set by options.
                     48: # The variables have the same names as the options, with
                     49: # dashes changed to underlines.
                     50: build=NONE
                     51: cache_file=./config.cache
                     52: exec_prefix=NONE
                     53: host=NONE
                     54: no_create=
                     55: nonopt=NONE
                     56: no_recursion=
                     57: prefix=NONE
                     58: program_prefix=NONE
                     59: program_suffix=NONE
                     60: program_transform_name=s,x,x,
                     61: silent=
                     62: site=
                     63: srcdir=
                     64: target=NONE
                     65: verbose=
                     66: x_includes=NONE
                     67: x_libraries=NONE
                     68: bindir='${exec_prefix}/bin'
                     69: sbindir='${exec_prefix}/sbin'
                     70: libexecdir='${exec_prefix}/libexec'
                     71: datadir='${prefix}/share'
                     72: sysconfdir='${prefix}/etc'
                     73: sharedstatedir='${prefix}/com'
                     74: localstatedir='${prefix}/var'
                     75: libdir='${exec_prefix}/lib'
                     76: includedir='${prefix}/include'
                     77: oldincludedir='/usr/include'
                     78: infodir='${prefix}/info'
                     79: mandir='${prefix}/man'
                     80: 
                     81: # Initialize some other variables.
                     82: subdirs=
                     83: MFLAGS= MAKEFLAGS=
1.1.1.4 ! root       84: # Maximum number of lines to put in a shell here document.
        !            85: ac_max_here_lines=12
1.1       root       86: 
                     87: ac_prev=
                     88: for ac_option
                     89: do
                     90: 
                     91:   # If the previous option needs an argument, assign it.
                     92:   if test -n "$ac_prev"; then
                     93:     eval "$ac_prev=\$ac_option"
                     94:     ac_prev=
                     95:     continue
                     96:   fi
                     97: 
                     98:   case "$ac_option" in
                     99:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                    100:   *) ac_optarg= ;;
                    101:   esac
                    102: 
                    103:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    104: 
                    105:   case "$ac_option" in
                    106: 
                    107:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    108:     ac_prev=bindir ;;
                    109:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    110:     bindir="$ac_optarg" ;;
                    111: 
                    112:   -build | --build | --buil | --bui | --bu)
                    113:     ac_prev=build ;;
                    114:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    115:     build="$ac_optarg" ;;
                    116: 
                    117:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    118:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    119:     ac_prev=cache_file ;;
                    120:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    121:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    122:     cache_file="$ac_optarg" ;;
                    123: 
                    124:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    125:     ac_prev=datadir ;;
                    126:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    127:   | --da=*)
                    128:     datadir="$ac_optarg" ;;
                    129: 
                    130:   -disable-* | --disable-*)
                    131:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    132:     # Reject names that are not valid shell variable names.
                    133:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    134:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    135:     fi
                    136:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    137:     eval "enable_${ac_feature}=no" ;;
                    138: 
                    139:   -enable-* | --enable-*)
                    140:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    141:     # Reject names that are not valid shell variable names.
                    142:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    143:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    144:     fi
                    145:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    146:     case "$ac_option" in
                    147:       *=*) ;;
                    148:       *) ac_optarg=yes ;;
                    149:     esac
                    150:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    151: 
                    152:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    153:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    154:   | --exec | --exe | --ex)
                    155:     ac_prev=exec_prefix ;;
                    156:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    157:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    158:   | --exec=* | --exe=* | --ex=*)
                    159:     exec_prefix="$ac_optarg" ;;
                    160: 
                    161:   -gas | --gas | --ga | --g)
                    162:     # Obsolete; use --with-gas.
                    163:     with_gas=yes ;;
                    164: 
                    165:   -help | --help | --hel | --he)
                    166:     # Omit some internal or obsolete options to make the list less imposing.
                    167:     # This message is too long to be a string in the A/UX 3.1 sh.
                    168:     cat << EOF
                    169: Usage: configure [options] [host]
                    170: Options: [defaults in brackets after descriptions]
                    171: Configuration:
                    172:   --cache-file=FILE       cache test results in FILE
                    173:   --help                  print this message
                    174:   --no-create             do not create output files
                    175:   --quiet, --silent       do not print \`checking...' messages
                    176:   --version               print the version of autoconf that created configure
                    177: Directory and file names:
                    178:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    179:                           [$ac_default_prefix]
                    180:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    181:                           [same as prefix]
                    182:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    183:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    184:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    185:   --datadir=DIR           read-only architecture-independent data in DIR
                    186:                           [PREFIX/share]
                    187:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    188:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    189:                           [PREFIX/com]
                    190:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    191:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    192:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    193:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    194:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    195:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    196:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    197:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    198:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    199:   --program-transform-name=PROGRAM
                    200:                           run sed PROGRAM on installed program names
                    201: EOF
                    202:     cat << EOF
                    203: Host type:
                    204:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    205:   --host=HOST             configure for HOST [guessed]
                    206:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    207: Features and packages:
                    208:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    209:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    210:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    211:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    212:   --x-includes=DIR        X include files are in DIR
                    213:   --x-libraries=DIR       X library files are in DIR
                    214: EOF
                    215:     if test -n "$ac_help"; then
                    216:       echo "--enable and --with options recognized:$ac_help"
                    217:     fi
                    218:     exit 0 ;;
                    219: 
                    220:   -host | --host | --hos | --ho)
                    221:     ac_prev=host ;;
                    222:   -host=* | --host=* | --hos=* | --ho=*)
                    223:     host="$ac_optarg" ;;
                    224: 
                    225:   -includedir | --includedir | --includedi | --included | --include \
                    226:   | --includ | --inclu | --incl | --inc)
                    227:     ac_prev=includedir ;;
                    228:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    229:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    230:     includedir="$ac_optarg" ;;
                    231: 
                    232:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    233:     ac_prev=infodir ;;
                    234:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    235:     infodir="$ac_optarg" ;;
                    236: 
                    237:   -libdir | --libdir | --libdi | --libd)
                    238:     ac_prev=libdir ;;
                    239:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    240:     libdir="$ac_optarg" ;;
                    241: 
                    242:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    243:   | --libexe | --libex | --libe)
                    244:     ac_prev=libexecdir ;;
                    245:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    246:   | --libexe=* | --libex=* | --libe=*)
                    247:     libexecdir="$ac_optarg" ;;
                    248: 
                    249:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    250:   | --localstate | --localstat | --localsta | --localst \
                    251:   | --locals | --local | --loca | --loc | --lo)
                    252:     ac_prev=localstatedir ;;
                    253:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    254:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    255:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    256:     localstatedir="$ac_optarg" ;;
                    257: 
                    258:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    259:     ac_prev=mandir ;;
                    260:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    261:     mandir="$ac_optarg" ;;
                    262: 
                    263:   -nfp | --nfp | --nf)
                    264:     # Obsolete; use --without-fp.
                    265:     with_fp=no ;;
                    266: 
                    267:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    268:   | --no-cr | --no-c)
                    269:     no_create=yes ;;
                    270: 
                    271:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    272:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    273:     no_recursion=yes ;;
                    274: 
                    275:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    276:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    277:   | --oldin | --oldi | --old | --ol | --o)
                    278:     ac_prev=oldincludedir ;;
                    279:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    280:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    281:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    282:     oldincludedir="$ac_optarg" ;;
                    283: 
                    284:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    285:     ac_prev=prefix ;;
                    286:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    287:     prefix="$ac_optarg" ;;
                    288: 
                    289:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    290:   | --program-pre | --program-pr | --program-p)
                    291:     ac_prev=program_prefix ;;
                    292:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    293:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    294:     program_prefix="$ac_optarg" ;;
                    295: 
                    296:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    297:   | --program-suf | --program-su | --program-s)
                    298:     ac_prev=program_suffix ;;
                    299:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    300:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    301:     program_suffix="$ac_optarg" ;;
                    302: 
                    303:   -program-transform-name | --program-transform-name \
                    304:   | --program-transform-nam | --program-transform-na \
                    305:   | --program-transform-n | --program-transform- \
                    306:   | --program-transform | --program-transfor \
                    307:   | --program-transfo | --program-transf \
                    308:   | --program-trans | --program-tran \
                    309:   | --progr-tra | --program-tr | --program-t)
                    310:     ac_prev=program_transform_name ;;
                    311:   -program-transform-name=* | --program-transform-name=* \
                    312:   | --program-transform-nam=* | --program-transform-na=* \
                    313:   | --program-transform-n=* | --program-transform-=* \
                    314:   | --program-transform=* | --program-transfor=* \
                    315:   | --program-transfo=* | --program-transf=* \
                    316:   | --program-trans=* | --program-tran=* \
                    317:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    318:     program_transform_name="$ac_optarg" ;;
                    319: 
                    320:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    321:   | -silent | --silent | --silen | --sile | --sil)
                    322:     silent=yes ;;
                    323: 
                    324:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    325:     ac_prev=sbindir ;;
                    326:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    327:   | --sbi=* | --sb=*)
                    328:     sbindir="$ac_optarg" ;;
                    329: 
                    330:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    331:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    332:   | --sharedst | --shareds | --shared | --share | --shar \
                    333:   | --sha | --sh)
                    334:     ac_prev=sharedstatedir ;;
                    335:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    336:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    337:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    338:   | --sha=* | --sh=*)
                    339:     sharedstatedir="$ac_optarg" ;;
                    340: 
                    341:   -site | --site | --sit)
                    342:     ac_prev=site ;;
                    343:   -site=* | --site=* | --sit=*)
                    344:     site="$ac_optarg" ;;
                    345: 
                    346:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    347:     ac_prev=srcdir ;;
                    348:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    349:     srcdir="$ac_optarg" ;;
                    350: 
                    351:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    352:   | --syscon | --sysco | --sysc | --sys | --sy)
                    353:     ac_prev=sysconfdir ;;
                    354:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    355:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    356:     sysconfdir="$ac_optarg" ;;
                    357: 
                    358:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    359:     ac_prev=target ;;
                    360:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    361:     target="$ac_optarg" ;;
                    362: 
                    363:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    364:     verbose=yes ;;
                    365: 
                    366:   -version | --version | --versio | --versi | --vers)
1.1.1.4 ! root      367:     echo "configure generated by autoconf version 2.12"
1.1       root      368:     exit 0 ;;
                    369: 
                    370:   -with-* | --with-*)
                    371:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    372:     # Reject names that are not valid shell variable names.
                    373:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    374:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    375:     fi
                    376:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    377:     case "$ac_option" in
                    378:       *=*) ;;
                    379:       *) ac_optarg=yes ;;
                    380:     esac
                    381:     eval "with_${ac_package}='$ac_optarg'" ;;
                    382: 
                    383:   -without-* | --without-*)
                    384:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    385:     # Reject names that are not valid shell variable names.
                    386:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    387:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    388:     fi
                    389:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    390:     eval "with_${ac_package}=no" ;;
                    391: 
                    392:   --x)
                    393:     # Obsolete; use --with-x.
                    394:     with_x=yes ;;
                    395: 
                    396:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    397:   | --x-incl | --x-inc | --x-in | --x-i)
                    398:     ac_prev=x_includes ;;
                    399:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    400:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    401:     x_includes="$ac_optarg" ;;
                    402: 
                    403:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    404:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    405:     ac_prev=x_libraries ;;
                    406:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    407:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    408:     x_libraries="$ac_optarg" ;;
                    409: 
                    410:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    411:     ;;
                    412: 
                    413:   *)
                    414:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    415:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    416:     fi
                    417:     if test "x$nonopt" != xNONE; then
                    418:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    419:     fi
                    420:     nonopt="$ac_option"
                    421:     ;;
                    422: 
                    423:   esac
                    424: done
                    425: 
                    426: if test -n "$ac_prev"; then
                    427:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    428: fi
                    429: 
                    430: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    431: 
                    432: # File descriptor usage:
                    433: # 0 standard input
                    434: # 1 file creation
                    435: # 2 errors and warnings
                    436: # 3 some systems may open it to /dev/tty
                    437: # 4 used on the Kubota Titan
                    438: # 6 checking for... messages and results
                    439: # 5 compiler messages saved in config.log
                    440: if test "$silent" = yes; then
                    441:   exec 6>/dev/null
                    442: else
                    443:   exec 6>&1
                    444: fi
                    445: exec 5>./config.log
                    446: 
                    447: echo "\
                    448: This file contains any messages produced by compilers while
                    449: running configure, to aid debugging if configure makes a mistake.
                    450: " 1>&5
                    451: 
                    452: # Strip out --no-create and --no-recursion so they do not pile up.
                    453: # Also quote any args containing shell metacharacters.
                    454: ac_configure_args=
                    455: for ac_arg
                    456: do
                    457:   case "$ac_arg" in
                    458:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    459:   | --no-cr | --no-c) ;;
                    460:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    461:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    462:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    463:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    464:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    465:   esac
                    466: done
                    467: 
                    468: # NLS nuisances.
1.1.1.4 ! root      469: # Only set these to C if already set.  These must not be set unconditionally
        !           470: # because not all systems understand e.g. LANG=C (notably SCO).
        !           471: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
        !           472: # Non-C LC_CTYPE values break the ctype check.
1.1       root      473: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
1.1.1.4 ! root      474: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
        !           475: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
        !           476: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
1.1       root      477: 
                    478: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    479: rm -rf conftest* confdefs.h
                    480: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    481: echo > confdefs.h
                    482: 
                    483: # A filename unique to this package, relative to the directory that
                    484: # configure is in, which we can look for to find out if srcdir is correct.
1.1.1.2   root      485: ac_unique_file=amiga/source/transdisk.c
1.1       root      486: 
                    487: # Find the source files, if location was not specified.
                    488: if test -z "$srcdir"; then
                    489:   ac_srcdir_defaulted=yes
                    490:   # Try the directory containing this script, then its parent.
                    491:   ac_prog=$0
                    492:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    493:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    494:   srcdir=$ac_confdir
                    495:   if test ! -r $srcdir/$ac_unique_file; then
                    496:     srcdir=..
                    497:   fi
                    498: else
                    499:   ac_srcdir_defaulted=no
                    500: fi
                    501: if test ! -r $srcdir/$ac_unique_file; then
                    502:   if test "$ac_srcdir_defaulted" = yes; then
                    503:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    504:   else
                    505:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    506:   fi
                    507: fi
                    508: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    509: 
                    510: # Prefer explicitly selected file to automatically selected ones.
                    511: if test -z "$CONFIG_SITE"; then
                    512:   if test "x$prefix" != xNONE; then
                    513:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    514:   else
                    515:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    516:   fi
                    517: fi
                    518: for ac_site_file in $CONFIG_SITE; do
                    519:   if test -r "$ac_site_file"; then
                    520:     echo "loading site script $ac_site_file"
                    521:     . "$ac_site_file"
                    522:   fi
                    523: done
                    524: 
                    525: if test -r "$cache_file"; then
                    526:   echo "loading cache $cache_file"
                    527:   . $cache_file
                    528: else
                    529:   echo "creating cache $cache_file"
                    530:   > $cache_file
                    531: fi
                    532: 
                    533: ac_ext=c
                    534: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    535: ac_cpp='$CPP $CPPFLAGS'
                    536: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    537: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1.1.1.4 ! root      538: cross_compiling=$ac_cv_prog_cc_cross
1.1       root      539: 
                    540: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    541:   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
                    542:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    543:     ac_n= ac_c='
                    544: ' ac_t='       '
                    545:   else
                    546:     ac_n=-n ac_c= ac_t=
                    547:   fi
                    548: else
                    549:   ac_n= ac_c='\c' ac_t=
                    550: fi
                    551: 
                    552: 
                    553: 
1.1.1.4 ! root      554: 
1.1       root      555: # Extract the first word of "gcc", so it can be a program name with args.
                    556: set dummy gcc; ac_word=$2
                    557: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.4 ! root      558: echo "configure:559: checking for $ac_word" >&5
1.1       root      559: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    560:   echo $ac_n "(cached) $ac_c" 1>&6
                    561: else
                    562:   if test -n "$CC"; then
                    563:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    564: else
                    565:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                    566:   for ac_dir in $PATH; do
                    567:     test -z "$ac_dir" && ac_dir=.
                    568:     if test -f $ac_dir/$ac_word; then
                    569:       ac_cv_prog_CC="gcc"
                    570:       break
                    571:     fi
                    572:   done
                    573:   IFS="$ac_save_ifs"
                    574: fi
                    575: fi
                    576: CC="$ac_cv_prog_CC"
                    577: if test -n "$CC"; then
                    578:   echo "$ac_t""$CC" 1>&6
                    579: else
                    580:   echo "$ac_t""no" 1>&6
                    581: fi
                    582: 
                    583: if test -z "$CC"; then
                    584:   # Extract the first word of "cc", so it can be a program name with args.
                    585: set dummy cc; ac_word=$2
                    586: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.4 ! root      587: echo "configure:588: checking for $ac_word" >&5
1.1       root      588: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    589:   echo $ac_n "(cached) $ac_c" 1>&6
                    590: else
                    591:   if test -n "$CC"; then
                    592:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    593: else
                    594:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
                    595:   ac_prog_rejected=no
                    596:   for ac_dir in $PATH; do
                    597:     test -z "$ac_dir" && ac_dir=.
                    598:     if test -f $ac_dir/$ac_word; then
                    599:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                    600:         ac_prog_rejected=yes
                    601:        continue
                    602:       fi
                    603:       ac_cv_prog_CC="cc"
                    604:       break
                    605:     fi
                    606:   done
                    607:   IFS="$ac_save_ifs"
                    608: if test $ac_prog_rejected = yes; then
                    609:   # We found a bogon in the path, so make sure we never use it.
                    610:   set dummy $ac_cv_prog_CC
                    611:   shift
                    612:   if test $# -gt 0; then
                    613:     # We chose a different compiler from the bogus one.
                    614:     # However, it has the same basename, so the bogon will be chosen
                    615:     # first if we set CC to just the basename; use the full file name.
                    616:     shift
                    617:     set dummy "$ac_dir/$ac_word" "$@"
                    618:     shift
                    619:     ac_cv_prog_CC="$@"
                    620:   fi
                    621: fi
                    622: fi
                    623: fi
                    624: CC="$ac_cv_prog_CC"
                    625: if test -n "$CC"; then
                    626:   echo "$ac_t""$CC" 1>&6
                    627: else
                    628:   echo "$ac_t""no" 1>&6
                    629: fi
                    630: 
                    631:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                    632: fi
                    633: 
1.1.1.4 ! root      634: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
        !           635: echo "configure:636: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
        !           636: 
        !           637: ac_ext=c
        !           638: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
        !           639: ac_cpp='$CPP $CPPFLAGS'
        !           640: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
        !           641: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
        !           642: cross_compiling=$ac_cv_prog_cc_cross
        !           643: 
        !           644: cat > conftest.$ac_ext <<EOF
        !           645: #line 646 "configure"
        !           646: #include "confdefs.h"
        !           647: main(){return(0);}
        !           648: EOF
        !           649: if { (eval echo configure:650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !           650:   ac_cv_prog_cc_works=yes
        !           651:   # If we can't run a trivial program, we are probably using a cross compiler.
        !           652:   if (./conftest; exit) 2>/dev/null; then
        !           653:     ac_cv_prog_cc_cross=no
        !           654:   else
        !           655:     ac_cv_prog_cc_cross=yes
        !           656:   fi
        !           657: else
        !           658:   echo "configure: failed program was:" >&5
        !           659:   cat conftest.$ac_ext >&5
        !           660:   ac_cv_prog_cc_works=no
        !           661: fi
        !           662: rm -fr conftest*
        !           663: 
        !           664: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
        !           665: if test $ac_cv_prog_cc_works = no; then
        !           666:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
        !           667: fi
        !           668: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
        !           669: echo "configure:670: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
        !           670: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
        !           671: cross_compiling=$ac_cv_prog_cc_cross
        !           672: 
1.1       root      673: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.1.1.4 ! root      674: echo "configure:675: checking whether we are using GNU C" >&5
1.1       root      675: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                    676:   echo $ac_n "(cached) $ac_c" 1>&6
                    677: else
                    678:   cat > conftest.c <<EOF
                    679: #ifdef __GNUC__
                    680:   yes;
                    681: #endif
                    682: EOF
1.1.1.4 ! root      683: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       root      684:   ac_cv_prog_gcc=yes
                    685: else
                    686:   ac_cv_prog_gcc=no
                    687: fi
                    688: fi
                    689: 
                    690: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1.1.1.4 ! root      691: 
1.1       root      692: if test $ac_cv_prog_gcc = yes; then
                    693:   GCC=yes
1.1.1.4 ! root      694:   ac_test_CFLAGS="${CFLAGS+set}"
        !           695:   ac_save_CFLAGS="$CFLAGS"
        !           696:   CFLAGS=
        !           697:   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
        !           698: echo "configure:699: checking whether ${CC-cc} accepts -g" >&5
        !           699: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1.1       root      700:   echo $ac_n "(cached) $ac_c" 1>&6
                    701: else
                    702:   echo 'void f(){}' > conftest.c
                    703: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1.1.1.4 ! root      704:   ac_cv_prog_cc_g=yes
1.1       root      705: else
1.1.1.4 ! root      706:   ac_cv_prog_cc_g=no
1.1       root      707: fi
                    708: rm -f conftest*
                    709: 
                    710: fi
                    711: 
1.1.1.4 ! root      712: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
        !           713:   if test "$ac_test_CFLAGS" = set; then
        !           714:     CFLAGS="$ac_save_CFLAGS"
        !           715:   elif test $ac_cv_prog_cc_g = yes; then
        !           716:     CFLAGS="-g -O2"
        !           717:   else
        !           718:     CFLAGS="-O2"
1.1       root      719:   fi
                    720: else
                    721:   GCC=
                    722:   test "${CFLAGS+set}" = set || CFLAGS="-g"
                    723: fi
                    724: 
                    725: 
                    726: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.1.1.4 ! root      727: echo "configure:728: checking how to run the C preprocessor" >&5
1.1       root      728: # On Suns, sometimes $CPP names a directory.
                    729: if test -n "$CPP" && test -d "$CPP"; then
                    730:   CPP=
                    731: fi
                    732: if test -z "$CPP"; then
                    733: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
                    734:   echo $ac_n "(cached) $ac_c" 1>&6
                    735: else
                    736:     # This must be in double quotes, not single quotes, because CPP may get
                    737:   # substituted into the Makefile and "${CC-cc}" will confuse make.
                    738:   CPP="${CC-cc} -E"
                    739:   # On the NeXT, cc -E runs the code through the compiler's parser,
                    740:   # not just through cpp.
                    741:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root      742: #line 743 "configure"
1.1       root      743: #include "confdefs.h"
                    744: #include <assert.h>
                    745: Syntax Error
                    746: EOF
                    747: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.4 ! root      748: { (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root      749: ac_err=`grep -v '^ *+' conftest.out`
                    750: if test -z "$ac_err"; then
                    751:   :
                    752: else
                    753:   echo "$ac_err" >&5
1.1.1.4 ! root      754:   echo "configure: failed program was:" >&5
        !           755:   cat conftest.$ac_ext >&5
1.1       root      756:   rm -rf conftest*
                    757:   CPP="${CC-cc} -E -traditional-cpp"
                    758:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root      759: #line 760 "configure"
1.1       root      760: #include "confdefs.h"
                    761: #include <assert.h>
                    762: Syntax Error
                    763: EOF
                    764: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.4 ! root      765: { (eval echo configure:766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root      766: ac_err=`grep -v '^ *+' conftest.out`
                    767: if test -z "$ac_err"; then
                    768:   :
                    769: else
                    770:   echo "$ac_err" >&5
1.1.1.4 ! root      771:   echo "configure: failed program was:" >&5
        !           772:   cat conftest.$ac_ext >&5
1.1       root      773:   rm -rf conftest*
                    774:   CPP=/lib/cpp
                    775: fi
                    776: rm -f conftest*
                    777: fi
                    778: rm -f conftest*
                    779:   ac_cv_prog_CPP="$CPP"
                    780: fi
                    781:   CPP="$ac_cv_prog_CPP"
                    782: else
                    783:   ac_cv_prog_CPP="$CPP"
                    784: fi
                    785: echo "$ac_t""$CPP" 1>&6
                    786: 
                    787: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.1.1.4 ! root      788: echo "configure:789: checking whether ${MAKE-make} sets \${MAKE}" >&5
        !           789: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1.1       root      790: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    791:   echo $ac_n "(cached) $ac_c" 1>&6
                    792: else
                    793:   cat > conftestmake <<\EOF
                    794: all:
                    795:        @echo 'ac_maketemp="${MAKE}"'
                    796: EOF
                    797: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    798: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    799: if test -n "$ac_maketemp"; then
                    800:   eval ac_cv_prog_make_${ac_make}_set=yes
                    801: else
                    802:   eval ac_cv_prog_make_${ac_make}_set=no
                    803: fi
                    804: rm -f conftestmake
                    805: fi
                    806: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    807:   echo "$ac_t""yes" 1>&6
                    808:   SET_MAKE=
                    809: else
                    810:   echo "$ac_t""no" 1>&6
                    811:   SET_MAKE="MAKE=${MAKE-make}"
                    812: fi
                    813: 
1.1.1.4 ! root      814: # Extract the first word of "file", so it can be a program name with args.
        !           815: set dummy file; ac_word=$2
        !           816: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
        !           817: echo "configure:818: checking for $ac_word" >&5
        !           818: if eval "test \"`echo '$''{'ac_cv_path_FILEPRG'+set}'`\" = set"; then
        !           819:   echo $ac_n "(cached) $ac_c" 1>&6
        !           820: else
        !           821:   case "$FILEPRG" in
        !           822:   /*)
        !           823:   ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a path.
        !           824:   ;;
        !           825:   *)
        !           826:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
        !           827:   for ac_dir in $PATH; do
        !           828:     test -z "$ac_dir" && ac_dir=.
        !           829:     if test -f $ac_dir/$ac_word; then
        !           830:       ac_cv_path_FILEPRG="$ac_dir/$ac_word"
        !           831:       break
        !           832:     fi
        !           833:   done
        !           834:   IFS="$ac_save_ifs"
        !           835:   test -z "$ac_cv_path_FILEPRG" && ac_cv_path_FILEPRG="not-found"
        !           836:   ;;
        !           837: esac
        !           838: fi
        !           839: FILEPRG="$ac_cv_path_FILEPRG"
        !           840: if test -n "$FILEPRG"; then
        !           841:   echo "$ac_t""$FILEPRG" 1>&6
        !           842: else
        !           843:   echo "$ac_t""no" 1>&6
        !           844: fi
        !           845: 
1.1       root      846: 
                    847: echo $ac_n "checking for AIX""... $ac_c" 1>&6
1.1.1.4 ! root      848: echo "configure:849: checking for AIX" >&5
1.1       root      849: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root      850: #line 851 "configure"
1.1       root      851: #include "confdefs.h"
                    852: #ifdef _AIX
                    853:   yes
                    854: #endif
                    855: 
                    856: EOF
                    857: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                    858:   egrep "yes" >/dev/null 2>&1; then
                    859:   rm -rf conftest*
                    860:   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
                    861: #define _ALL_SOURCE 1
                    862: EOF
                    863: 
                    864: else
                    865:   rm -rf conftest*
                    866:   echo "$ac_t""no" 1>&6
                    867: fi
                    868: rm -f conftest*
                    869: 
                    870: 
                    871: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1.1.1.4 ! root      872: echo "configure:873: checking for POSIXized ISC" >&5
1.1       root      873: if test -d /etc/conf/kconfig.d &&
                    874:   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
                    875: then
                    876:   echo "$ac_t""yes" 1>&6
                    877:   ISC=yes # If later tests want to check for ISC.
                    878:   cat >> confdefs.h <<\EOF
                    879: #define _POSIX_SOURCE 1
                    880: EOF
                    881: 
                    882:   if test "$GCC" = yes; then
                    883:     CC="$CC -posix"
                    884:   else
                    885:     CC="$CC -Xp"
                    886:   fi
                    887: else
                    888:   echo "$ac_t""no" 1>&6
                    889:   ISC=
                    890: fi
                    891: 
                    892: 
1.1.1.4 ! root      893: NR_WARNINGS=0
        !           894: NR_ERRORS=0
        !           895: 
        !           896: NEED_THREAD_SUPPORT=no
        !           897: 
        !           898: ADDITIONAL_CFLAGS=
        !           899: OPTIMIZE_CFLAGS=
        !           900: WARNING_CFLAGS=
        !           901: DEBUG_CFLAGS=
        !           902: NO_SCHED_CFLAGS=
        !           903: 
        !           904: HAVE_BEOS=no
        !           905: HAVE_POS=no
        !           906: echo $ac_n "checking for main in -lMedia_s""... $ac_c" 1>&6
        !           907: echo "configure:908: checking for main in -lMedia_s" >&5
        !           908: ac_lib_var=`echo Media_s'_'main | sed 'y%./+-%__p_%'`
1.1       root      909: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                    910:   echo $ac_n "(cached) $ac_c" 1>&6
                    911: else
                    912:   ac_save_LIBS="$LIBS"
                    913: LIBS="-lMedia_s  $LIBS"
                    914: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root      915: #line 916 "configure"
1.1       root      916: #include "confdefs.h"
                    917: 
1.1.1.4 ! root      918: int main() {
1.1       root      919: main()
                    920: ; return 0; }
                    921: EOF
1.1.1.4 ! root      922: if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root      923:   rm -rf conftest*
                    924:   eval "ac_cv_lib_$ac_lib_var=yes"
                    925: else
1.1.1.4 ! root      926:   echo "configure: failed program was:" >&5
        !           927:   cat conftest.$ac_ext >&5
1.1       root      928:   rm -rf conftest*
                    929:   eval "ac_cv_lib_$ac_lib_var=no"
                    930: fi
                    931: rm -f conftest*
                    932: LIBS="$ac_save_LIBS"
                    933: 
                    934: fi
                    935: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                    936:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root      937:   HAVE_MEDIA_LIB=yes
1.1       root      938: else
                    939:   echo "$ac_t""no" 1>&6
1.1.1.4 ! root      940: HAVE_MEDIA_LIB=no
1.1       root      941: fi
                    942: 
1.1.1.4 ! root      943: echo $ac_n "checking for main in -lNeXT_s""... $ac_c" 1>&6
        !           944: echo "configure:945: checking for main in -lNeXT_s" >&5
        !           945: ac_lib_var=`echo NeXT_s'_'main | sed 'y%./+-%__p_%'`
1.1       root      946: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                    947:   echo $ac_n "(cached) $ac_c" 1>&6
                    948: else
                    949:   ac_save_LIBS="$LIBS"
                    950: LIBS="-lNeXT_s  $LIBS"
                    951: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root      952: #line 953 "configure"
1.1       root      953: #include "confdefs.h"
                    954: 
1.1.1.4 ! root      955: int main() {
1.1       root      956: main()
                    957: ; return 0; }
                    958: EOF
1.1.1.4 ! root      959: if { (eval echo configure:960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root      960:   rm -rf conftest*
                    961:   eval "ac_cv_lib_$ac_lib_var=yes"
                    962: else
1.1.1.4 ! root      963:   echo "configure: failed program was:" >&5
        !           964:   cat conftest.$ac_ext >&5
1.1       root      965:   rm -rf conftest*
                    966:   eval "ac_cv_lib_$ac_lib_var=no"
                    967: fi
                    968: rm -f conftest*
                    969: LIBS="$ac_save_LIBS"
                    970: 
                    971: fi
                    972: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                    973:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root      974:   HAVE_NEXT_LIB=yes
1.1       root      975: else
                    976:   echo "$ac_t""no" 1>&6
1.1.1.4 ! root      977: HAVE_NEXT_LIB=no
1.1       root      978: fi
                    979: 
1.1.1.4 ! root      980: echo $ac_n "checking for OpenLibrary in -lamiga""... $ac_c" 1>&6
        !           981: echo "configure:982: checking for OpenLibrary in -lamiga" >&5
        !           982: ac_lib_var=`echo amiga'_'OpenLibrary | sed 'y%./+-%__p_%'`
1.1.1.3   root      983: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                    984:   echo $ac_n "(cached) $ac_c" 1>&6
                    985: else
                    986:   ac_save_LIBS="$LIBS"
                    987: LIBS="-lamiga  $LIBS"
                    988: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root      989: #line 990 "configure"
1.1.1.3   root      990: #include "confdefs.h"
                    991: /* Override any gcc2 internal prototype to avoid an error.  */
                    992: /* We use char because int might match the return type of a gcc2
                    993:     builtin and then its argument prototype would still apply.  */
                    994: char OpenLibrary();
                    995: 
1.1.1.4 ! root      996: int main() {
1.1.1.3   root      997: OpenLibrary()
                    998: ; return 0; }
                    999: EOF
1.1.1.4 ! root     1000: if { (eval echo configure:1001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.3   root     1001:   rm -rf conftest*
                   1002:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1003: else
1.1.1.4 ! root     1004:   echo "configure: failed program was:" >&5
        !          1005:   cat conftest.$ac_ext >&5
1.1.1.3   root     1006:   rm -rf conftest*
                   1007:   eval "ac_cv_lib_$ac_lib_var=no"
                   1008: fi
                   1009: rm -f conftest*
                   1010: LIBS="$ac_save_LIBS"
                   1011: 
                   1012: fi
                   1013: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1014:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root     1015:   HAVE_AMIGA_LIB=yes
1.1.1.3   root     1016: else
                   1017:   echo "$ac_t""no" 1>&6
                   1018: HAVE_AMIGA_LIB=n
                   1019: fi
                   1020: 
1.1.1.4 ! root     1021: echo $ac_n "checking for vga_setmode in -lvga""... $ac_c" 1>&6
        !          1022: echo "configure:1023: checking for vga_setmode in -lvga" >&5
        !          1023: ac_lib_var=`echo vga'_'vga_setmode | sed 'y%./+-%__p_%'`
1.1       root     1024: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1025:   echo $ac_n "(cached) $ac_c" 1>&6
                   1026: else
                   1027:   ac_save_LIBS="$LIBS"
                   1028: LIBS="-lvga  $LIBS"
                   1029: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     1030: #line 1031 "configure"
1.1       root     1031: #include "confdefs.h"
                   1032: /* Override any gcc2 internal prototype to avoid an error.  */
                   1033: /* We use char because int might match the return type of a gcc2
                   1034:     builtin and then its argument prototype would still apply.  */
                   1035: char vga_setmode();
                   1036: 
1.1.1.4 ! root     1037: int main() {
1.1       root     1038: vga_setmode()
                   1039: ; return 0; }
                   1040: EOF
1.1.1.4 ! root     1041: if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     1042:   rm -rf conftest*
                   1043:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1044: else
1.1.1.4 ! root     1045:   echo "configure: failed program was:" >&5
        !          1046:   cat conftest.$ac_ext >&5
1.1       root     1047:   rm -rf conftest*
                   1048:   eval "ac_cv_lib_$ac_lib_var=no"
                   1049: fi
                   1050: rm -f conftest*
                   1051: LIBS="$ac_save_LIBS"
                   1052: 
                   1053: fi
                   1054: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1055:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root     1056:   HAVE_SVGA_LIB=yes
1.1       root     1057: else
                   1058:   echo "$ac_t""no" 1>&6
1.1.1.4 ! root     1059: HAVE_SVGA_LIB=no
1.1       root     1060: fi
                   1061: 
1.1.1.4 ! root     1062: echo $ac_n "checking for AFOpenAudioConn in -lAF""... $ac_c" 1>&6
        !          1063: echo "configure:1064: checking for AFOpenAudioConn in -lAF" >&5
        !          1064: ac_lib_var=`echo AF'_'AFOpenAudioConn | sed 'y%./+-%__p_%'`
1.1       root     1065: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1066:   echo $ac_n "(cached) $ac_c" 1>&6
                   1067: else
                   1068:   ac_save_LIBS="$LIBS"
                   1069: LIBS="-lAF  $LIBS"
                   1070: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     1071: #line 1072 "configure"
1.1       root     1072: #include "confdefs.h"
                   1073: /* Override any gcc2 internal prototype to avoid an error.  */
                   1074: /* We use char because int might match the return type of a gcc2
                   1075:     builtin and then its argument prototype would still apply.  */
                   1076: char AFOpenAudioConn();
                   1077: 
1.1.1.4 ! root     1078: int main() {
1.1       root     1079: AFOpenAudioConn()
                   1080: ; return 0; }
                   1081: EOF
1.1.1.4 ! root     1082: if { (eval echo configure:1083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          1083:   rm -rf conftest*
        !          1084:   eval "ac_cv_lib_$ac_lib_var=yes"
        !          1085: else
        !          1086:   echo "configure: failed program was:" >&5
        !          1087:   cat conftest.$ac_ext >&5
        !          1088:   rm -rf conftest*
        !          1089:   eval "ac_cv_lib_$ac_lib_var=no"
        !          1090: fi
        !          1091: rm -f conftest*
        !          1092: LIBS="$ac_save_LIBS"
        !          1093: 
        !          1094: fi
        !          1095: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
        !          1096:   echo "$ac_t""yes" 1>&6
        !          1097:   HAVE_AF_LIB=yes
        !          1098: else
        !          1099:   echo "$ac_t""no" 1>&6
        !          1100: HAVE_AF_LIB=no
        !          1101: fi
        !          1102: 
        !          1103: echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
        !          1104: echo "configure:1105: checking for waddch in -lncurses" >&5
        !          1105: ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
        !          1106: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
        !          1107:   echo $ac_n "(cached) $ac_c" 1>&6
        !          1108: else
        !          1109:   ac_save_LIBS="$LIBS"
        !          1110: LIBS="-lncurses  $LIBS"
        !          1111: cat > conftest.$ac_ext <<EOF
        !          1112: #line 1113 "configure"
        !          1113: #include "confdefs.h"
        !          1114: /* Override any gcc2 internal prototype to avoid an error.  */
        !          1115: /* We use char because int might match the return type of a gcc2
        !          1116:     builtin and then its argument prototype would still apply.  */
        !          1117: char waddch();
        !          1118: 
        !          1119: int main() {
        !          1120: waddch()
        !          1121: ; return 0; }
        !          1122: EOF
        !          1123: if { (eval echo configure:1124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          1124:   rm -rf conftest*
        !          1125:   eval "ac_cv_lib_$ac_lib_var=yes"
        !          1126: else
        !          1127:   echo "configure: failed program was:" >&5
        !          1128:   cat conftest.$ac_ext >&5
        !          1129:   rm -rf conftest*
        !          1130:   eval "ac_cv_lib_$ac_lib_var=no"
        !          1131: fi
        !          1132: rm -f conftest*
        !          1133: LIBS="$ac_save_LIBS"
        !          1134: 
        !          1135: fi
        !          1136: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
        !          1137:   echo "$ac_t""yes" 1>&6
        !          1138:   HAVE_NCURSES_LIB=yes
        !          1139: else
        !          1140:   echo "$ac_t""no" 1>&6
        !          1141: HAVE_NCURSES_LIB=no
        !          1142: fi
        !          1143: 
        !          1144: echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
        !          1145: echo "configure:1146: checking for pthread_create in -lpthread" >&5
        !          1146: ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
        !          1147: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
        !          1148:   echo $ac_n "(cached) $ac_c" 1>&6
        !          1149: else
        !          1150:   ac_save_LIBS="$LIBS"
        !          1151: LIBS="-lpthread  $LIBS"
        !          1152: cat > conftest.$ac_ext <<EOF
        !          1153: #line 1154 "configure"
        !          1154: #include "confdefs.h"
        !          1155: /* Override any gcc2 internal prototype to avoid an error.  */
        !          1156: /* We use char because int might match the return type of a gcc2
        !          1157:     builtin and then its argument prototype would still apply.  */
        !          1158: char pthread_create();
        !          1159: 
        !          1160: int main() {
        !          1161: pthread_create()
        !          1162: ; return 0; }
        !          1163: EOF
        !          1164: if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          1165:   rm -rf conftest*
        !          1166:   eval "ac_cv_lib_$ac_lib_var=yes"
        !          1167: else
        !          1168:   echo "configure: failed program was:" >&5
        !          1169:   cat conftest.$ac_ext >&5
        !          1170:   rm -rf conftest*
        !          1171:   eval "ac_cv_lib_$ac_lib_var=no"
        !          1172: fi
        !          1173: rm -f conftest*
        !          1174: LIBS="$ac_save_LIBS"
        !          1175: 
        !          1176: fi
        !          1177: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
        !          1178:   echo "$ac_t""yes" 1>&6
        !          1179:   HAVE_PTHREAD_LIB=yes
        !          1180: else
        !          1181:   echo "$ac_t""no" 1>&6
        !          1182: HAVE_PTHREAD_LIB=no
        !          1183: fi
        !          1184: 
        !          1185: echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
        !          1186: echo "configure:1187: checking for sem_init in -lposix4" >&5
        !          1187: ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
        !          1188: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
        !          1189:   echo $ac_n "(cached) $ac_c" 1>&6
        !          1190: else
        !          1191:   ac_save_LIBS="$LIBS"
        !          1192: LIBS="-lposix4  $LIBS"
        !          1193: cat > conftest.$ac_ext <<EOF
        !          1194: #line 1195 "configure"
        !          1195: #include "confdefs.h"
        !          1196: /* Override any gcc2 internal prototype to avoid an error.  */
        !          1197: /* We use char because int might match the return type of a gcc2
        !          1198:     builtin and then its argument prototype would still apply.  */
        !          1199: char sem_init();
        !          1200: 
        !          1201: int main() {
        !          1202: sem_init()
        !          1203: ; return 0; }
        !          1204: EOF
        !          1205: if { (eval echo configure:1206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          1206:   rm -rf conftest*
        !          1207:   eval "ac_cv_lib_$ac_lib_var=yes"
        !          1208: else
        !          1209:   echo "configure: failed program was:" >&5
        !          1210:   cat conftest.$ac_ext >&5
        !          1211:   rm -rf conftest*
        !          1212:   eval "ac_cv_lib_$ac_lib_var=no"
        !          1213: fi
        !          1214: rm -f conftest*
        !          1215: LIBS="$ac_save_LIBS"
        !          1216: 
        !          1217: fi
        !          1218: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
        !          1219:   echo "$ac_t""yes" 1>&6
        !          1220:   HAVE_POSIX4_LIB=yes
        !          1221: else
        !          1222:   echo "$ac_t""no" 1>&6
        !          1223: HAVE_POSIX4_LIB=no
        !          1224: fi
        !          1225: 
        !          1226: echo $ac_n "checking for ggiInit in -lggi""... $ac_c" 1>&6
        !          1227: echo "configure:1228: checking for ggiInit in -lggi" >&5
        !          1228: ac_lib_var=`echo ggi'_'ggiInit | sed 'y%./+-%__p_%'`
        !          1229: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
        !          1230:   echo $ac_n "(cached) $ac_c" 1>&6
        !          1231: else
        !          1232:   ac_save_LIBS="$LIBS"
        !          1233: LIBS="-lggi  $LIBS"
        !          1234: cat > conftest.$ac_ext <<EOF
        !          1235: #line 1236 "configure"
        !          1236: #include "confdefs.h"
        !          1237: /* Override any gcc2 internal prototype to avoid an error.  */
        !          1238: /* We use char because int might match the return type of a gcc2
        !          1239:     builtin and then its argument prototype would still apply.  */
        !          1240: char ggiInit();
        !          1241: 
        !          1242: int main() {
        !          1243: ggiInit()
        !          1244: ; return 0; }
        !          1245: EOF
        !          1246: if { (eval echo configure:1247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     1247:   rm -rf conftest*
                   1248:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1249: else
1.1.1.4 ! root     1250:   echo "configure: failed program was:" >&5
        !          1251:   cat conftest.$ac_ext >&5
1.1       root     1252:   rm -rf conftest*
                   1253:   eval "ac_cv_lib_$ac_lib_var=no"
                   1254: fi
                   1255: rm -f conftest*
                   1256: LIBS="$ac_save_LIBS"
                   1257: 
                   1258: fi
                   1259: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1260:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root     1261:   HAVE_GGI_LIB=yes
1.1       root     1262: else
                   1263:   echo "$ac_t""no" 1>&6
1.1.1.4 ! root     1264: HAVE_GGI_LIB=no
1.1       root     1265: fi
                   1266: 
                   1267: 
1.1.1.4 ! root     1268: if [ $target = "p.os" ]; then
        !          1269:     HAVE_POS=yes
        !          1270: else
        !          1271: 
        !          1272: cat >conftest.c << EOF
        !          1273: int main()
        !          1274: {
        !          1275: #ifdef __POS__
        !          1276: printf("POS\n");
        !          1277: #endif
        !          1278: return 0;
        !          1279: }
        !          1280: EOF
        !          1281: $CC $CFLAGS conftest.c -c -o conftest.o
        !          1282: $CC conftest.o -o conftest
        !          1283: ./conftest >conftest.file
        !          1284: if grep POS conftest.file >/dev/null; then
        !          1285:   HAVE_POS=yes
        !          1286: else
        !          1287:   HAVE_POS=no
        !          1288: fi
        !          1289: rm -f conftest*
        !          1290: fi
        !          1291: 
1.1       root     1292: # If we find X, set shell vars x_includes and x_libraries to the
                   1293: # paths, otherwise set no_x=yes.
                   1294: # Uses ac_ vars as temps to allow command line to override cache and checks.
                   1295: # --without-x overrides everything else, but does not touch the cache.
                   1296: echo $ac_n "checking for X""... $ac_c" 1>&6
1.1.1.4 ! root     1297: echo "configure:1298: checking for X" >&5
1.1       root     1298: 
                   1299: # Check whether --with-x or --without-x was given.
                   1300: if test "${with_x+set}" = set; then
                   1301:   withval="$with_x"
                   1302:   :
                   1303: fi
                   1304: 
                   1305: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                   1306: if test "x$with_x" = xno; then
                   1307:   # The user explicitly disabled X.
                   1308:   have_x=disabled
                   1309: else
                   1310:   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
                   1311:     # Both variables are already set.
                   1312:     have_x=yes
                   1313:   else
                   1314: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
                   1315:   echo $ac_n "(cached) $ac_c" 1>&6
                   1316: else
                   1317:   # One or both of the vars are not set, and there is no cached value.
                   1318: ac_x_includes=NO ac_x_libraries=NO
                   1319: rm -fr conftestdir
                   1320: if mkdir conftestdir; then
                   1321:   cd conftestdir
                   1322:   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
                   1323:   cat > Imakefile <<'EOF'
                   1324: acfindx:
                   1325:        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
                   1326: EOF
                   1327:   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
                   1328:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   1329:     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
                   1330:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                   1331:     for ac_extension in a so sl; do
                   1332:       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
                   1333:         test -f $ac_im_libdir/libX11.$ac_extension; then
                   1334:         ac_im_usrlibdir=$ac_im_libdir; break
                   1335:       fi
                   1336:     done
1.1.1.4 ! root     1337:     # Screen out bogus values from the imake configuration.  They are
        !          1338:     # bogus both because they are the default anyway, and because
        !          1339:     # using them would break gcc on systems where it needs fixed includes.
1.1       root     1340:     case "$ac_im_incroot" in
                   1341:        /usr/include) ;;
                   1342:        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
                   1343:     esac
                   1344:     case "$ac_im_usrlibdir" in
                   1345:        /usr/lib | /lib) ;;
                   1346:        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
                   1347:     esac
                   1348:   fi
                   1349:   cd ..
                   1350:   rm -fr conftestdir
                   1351: fi
                   1352: 
                   1353: if test "$ac_x_includes" = NO; then
                   1354:   # Guess where to find include files, by looking for this one X11 .h file.
                   1355:   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
                   1356: 
                   1357:   # First, try using that file with no special directory specified.
                   1358: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     1359: #line 1360 "configure"
1.1       root     1360: #include "confdefs.h"
                   1361: #include <$x_direct_test_include>
                   1362: EOF
                   1363: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.4 ! root     1364: { (eval echo configure:1365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root     1365: ac_err=`grep -v '^ *+' conftest.out`
                   1366: if test -z "$ac_err"; then
                   1367:   rm -rf conftest*
                   1368:   # We can compile using X headers with no special include directory.
                   1369: ac_x_includes=
                   1370: else
                   1371:   echo "$ac_err" >&5
1.1.1.4 ! root     1372:   echo "configure: failed program was:" >&5
        !          1373:   cat conftest.$ac_ext >&5
1.1       root     1374:   rm -rf conftest*
                   1375:   # Look for the header file in a standard set of common directories.
1.1.1.4 ! root     1376: # Check X11 before X11Rn because it is often a symlink to the current release.
1.1       root     1377:   for ac_dir in               \
1.1.1.4 ! root     1378:     /usr/X11/include          \
1.1       root     1379:     /usr/X11R6/include        \
                   1380:     /usr/X11R5/include        \
                   1381:     /usr/X11R4/include        \
                   1382:                               \
1.1.1.4 ! root     1383:     /usr/include/X11          \
1.1       root     1384:     /usr/include/X11R6        \
                   1385:     /usr/include/X11R5        \
                   1386:     /usr/include/X11R4        \
                   1387:                               \
1.1.1.4 ! root     1388:     /usr/local/X11/include    \
1.1       root     1389:     /usr/local/X11R6/include  \
                   1390:     /usr/local/X11R5/include  \
                   1391:     /usr/local/X11R4/include  \
                   1392:                               \
1.1.1.4 ! root     1393:     /usr/local/include/X11    \
1.1       root     1394:     /usr/local/include/X11R6  \
                   1395:     /usr/local/include/X11R5  \
                   1396:     /usr/local/include/X11R4  \
                   1397:                               \
                   1398:     /usr/X386/include         \
                   1399:     /usr/x386/include         \
                   1400:     /usr/XFree86/include/X11  \
                   1401:                               \
                   1402:     /usr/include              \
                   1403:     /usr/local/include        \
                   1404:     /usr/unsupported/include  \
                   1405:     /usr/athena/include       \
                   1406:     /usr/local/x11r5/include  \
                   1407:     /usr/lpp/Xamples/include  \
                   1408:                               \
                   1409:     /usr/openwin/include      \
                   1410:     /usr/openwin/share/include \
                   1411:     ; \
                   1412:   do
                   1413:     if test -r "$ac_dir/$x_direct_test_include"; then
                   1414:       ac_x_includes=$ac_dir
                   1415:       break
                   1416:     fi
                   1417:   done
                   1418: fi
                   1419: rm -f conftest*
                   1420: fi # $ac_x_includes = NO
                   1421: 
                   1422: if test "$ac_x_libraries" = NO; then
                   1423:   # Check for the libraries.
                   1424: 
                   1425:   test -z "$x_direct_test_library" && x_direct_test_library=Xt
                   1426:   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
                   1427: 
                   1428:   # See if we find them without any special options.
                   1429:   # Don't add to $LIBS permanently.
                   1430:   ac_save_LIBS="$LIBS"
                   1431:   LIBS="-l$x_direct_test_library $LIBS"
                   1432: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     1433: #line 1434 "configure"
1.1       root     1434: #include "confdefs.h"
                   1435: 
1.1.1.4 ! root     1436: int main() {
1.1       root     1437: ${x_direct_test_function}()
                   1438: ; return 0; }
                   1439: EOF
1.1.1.4 ! root     1440: if { (eval echo configure:1441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     1441:   rm -rf conftest*
                   1442:   LIBS="$ac_save_LIBS"
                   1443: # We can link X programs with no special library path.
                   1444: ac_x_libraries=
                   1445: else
1.1.1.4 ! root     1446:   echo "configure: failed program was:" >&5
        !          1447:   cat conftest.$ac_ext >&5
1.1       root     1448:   rm -rf conftest*
                   1449:   LIBS="$ac_save_LIBS"
                   1450: # First see if replacing the include by lib works.
1.1.1.4 ! root     1451: # Check X11 before X11Rn because it is often a symlink to the current release.
1.1       root     1452: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1.1.1.4 ! root     1453:     /usr/X11/lib          \
1.1       root     1454:     /usr/X11R6/lib        \
                   1455:     /usr/X11R5/lib        \
                   1456:     /usr/X11R4/lib        \
                   1457:                           \
1.1.1.4 ! root     1458:     /usr/lib/X11          \
1.1       root     1459:     /usr/lib/X11R6        \
                   1460:     /usr/lib/X11R5        \
                   1461:     /usr/lib/X11R4        \
                   1462:                           \
1.1.1.4 ! root     1463:     /usr/local/X11/lib    \
1.1       root     1464:     /usr/local/X11R6/lib  \
                   1465:     /usr/local/X11R5/lib  \
                   1466:     /usr/local/X11R4/lib  \
                   1467:                           \
1.1.1.4 ! root     1468:     /usr/local/lib/X11    \
1.1       root     1469:     /usr/local/lib/X11R6  \
                   1470:     /usr/local/lib/X11R5  \
                   1471:     /usr/local/lib/X11R4  \
                   1472:                           \
                   1473:     /usr/X386/lib         \
                   1474:     /usr/x386/lib         \
                   1475:     /usr/XFree86/lib/X11  \
                   1476:                           \
                   1477:     /usr/lib              \
                   1478:     /usr/local/lib        \
                   1479:     /usr/unsupported/lib  \
                   1480:     /usr/athena/lib       \
                   1481:     /usr/local/x11r5/lib  \
                   1482:     /usr/lpp/Xamples/lib  \
1.1.1.4 ! root     1483:     /lib/usr/lib/X11     \
1.1       root     1484:                           \
                   1485:     /usr/openwin/lib      \
                   1486:     /usr/openwin/share/lib \
                   1487:     ; \
                   1488: do
                   1489:   for ac_extension in a so sl; do
                   1490:     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
                   1491:       ac_x_libraries=$ac_dir
                   1492:       break 2
                   1493:     fi
                   1494:   done
                   1495: done
                   1496: fi
                   1497: rm -f conftest*
                   1498: fi # $ac_x_libraries = NO
                   1499: 
                   1500: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
                   1501:   # Didn't find X anywhere.  Cache the known absence of X.
                   1502:   ac_cv_have_x="have_x=no"
                   1503: else
                   1504:   # Record where we found X for the cache.
                   1505:   ac_cv_have_x="have_x=yes \
                   1506:                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
                   1507: fi
                   1508: fi
                   1509:   fi
                   1510:   eval "$ac_cv_have_x"
                   1511: fi # $with_x != no
                   1512: 
                   1513: if test "$have_x" != yes; then
                   1514:   echo "$ac_t""$have_x" 1>&6
                   1515:   no_x=yes
                   1516: else
                   1517:   # If each of the values was on the command line, it overrides each guess.
                   1518:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   1519:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   1520:   # Update the cache value to reflect the command line values.
                   1521:   ac_cv_have_x="have_x=yes \
                   1522:                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
                   1523:   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
                   1524: fi
                   1525: 
                   1526: if test "$no_x" = yes; then
                   1527:   # Not all programs may use this symbol, but it does not hurt to define it.
1.1.1.4 ! root     1528:   cat >> confdefs.h <<\EOF
        !          1529: #define X_DISPLAY_MISSING 1
        !          1530: EOF
        !          1531: 
        !          1532:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1       root     1533: else
                   1534:   if test -n "$x_includes"; then
                   1535:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   1536:   fi
                   1537: 
                   1538:   # It would also be nice to do this for all -L options, not just this one.
                   1539:   if test -n "$x_libraries"; then
                   1540:     X_LIBS="$X_LIBS -L$x_libraries"
1.1.1.4 ! root     1541:     # For Solaris; some versions of Sun CC require a space after -R and
        !          1542:     # others require no space.  Words are not sufficient . . . .
        !          1543:     case "`(uname -sr) 2>/dev/null`" in
        !          1544:     "SunOS 5"*)
        !          1545:       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
        !          1546: echo "configure:1547: checking whether -R must be followed by a space" >&5
        !          1547:       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
        !          1548:       cat > conftest.$ac_ext <<EOF
        !          1549: #line 1550 "configure"
        !          1550: #include "confdefs.h"
1.1       root     1551: 
1.1.1.4 ! root     1552: int main() {
1.1       root     1553: 
1.1.1.4 ! root     1554: ; return 0; }
        !          1555: EOF
        !          1556: if { (eval echo configure:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          1557:   rm -rf conftest*
        !          1558:   ac_R_nospace=yes
1.1       root     1559: else
1.1.1.4 ! root     1560:   echo "configure: failed program was:" >&5
        !          1561:   cat conftest.$ac_ext >&5
        !          1562:   rm -rf conftest*
        !          1563:   ac_R_nospace=no
        !          1564: fi
        !          1565: rm -f conftest*
        !          1566:       if test $ac_R_nospace = yes; then
        !          1567:        echo "$ac_t""no" 1>&6
        !          1568:        X_LIBS="$X_LIBS -R$x_libraries"
        !          1569:       else
        !          1570:        LIBS="$ac_xsave_LIBS -R $x_libraries"
        !          1571:        cat > conftest.$ac_ext <<EOF
        !          1572: #line 1573 "configure"
1.1       root     1573: #include "confdefs.h"
                   1574: 
1.1.1.4 ! root     1575: int main() {
        !          1576: 
1.1       root     1577: ; return 0; }
                   1578: EOF
1.1.1.4 ! root     1579: if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     1580:   rm -rf conftest*
1.1.1.4 ! root     1581:   ac_R_space=yes
1.1       root     1582: else
1.1.1.4 ! root     1583:   echo "configure: failed program was:" >&5
        !          1584:   cat conftest.$ac_ext >&5
1.1       root     1585:   rm -rf conftest*
1.1.1.4 ! root     1586:   ac_R_space=no
1.1       root     1587: fi
                   1588: rm -f conftest*
1.1.1.4 ! root     1589:        if test $ac_R_space = yes; then
        !          1590:          echo "$ac_t""yes" 1>&6
        !          1591:          X_LIBS="$X_LIBS -R $x_libraries"
        !          1592:        else
        !          1593:          echo "$ac_t""neither works" 1>&6
        !          1594:        fi
        !          1595:       fi
        !          1596:       LIBS="$ac_xsave_LIBS"
        !          1597:     esac
        !          1598:   fi
1.1       root     1599: 
                   1600:   # Check for system-dependent libraries X programs must link with.
1.1.1.4 ! root     1601:   # Do this before checking for the system-independent R6 libraries
        !          1602:   # (-lICE), since we may need -lsocket or whatever for X linking.
1.1       root     1603: 
                   1604:   if test "$ISC" = yes; then
                   1605:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   1606:   else
                   1607:     # [email protected] says this is needed for Ultrix, if the X
                   1608:     # libraries were built with DECnet support.  And [email protected] says
                   1609:     # the Alpha needs dnet_stub (dnet does not exist).
1.1.1.4 ! root     1610:     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
        !          1611: echo "configure:1612: checking for dnet_ntoa in -ldnet" >&5
        !          1612: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1.1       root     1613: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1614:   echo $ac_n "(cached) $ac_c" 1>&6
                   1615: else
                   1616:   ac_save_LIBS="$LIBS"
                   1617: LIBS="-ldnet  $LIBS"
                   1618: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     1619: #line 1620 "configure"
1.1       root     1620: #include "confdefs.h"
                   1621: /* Override any gcc2 internal prototype to avoid an error.  */
                   1622: /* We use char because int might match the return type of a gcc2
                   1623:     builtin and then its argument prototype would still apply.  */
                   1624: char dnet_ntoa();
                   1625: 
1.1.1.4 ! root     1626: int main() {
1.1       root     1627: dnet_ntoa()
                   1628: ; return 0; }
                   1629: EOF
1.1.1.4 ! root     1630: if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     1631:   rm -rf conftest*
                   1632:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1633: else
1.1.1.4 ! root     1634:   echo "configure: failed program was:" >&5
        !          1635:   cat conftest.$ac_ext >&5
1.1       root     1636:   rm -rf conftest*
                   1637:   eval "ac_cv_lib_$ac_lib_var=no"
                   1638: fi
                   1639: rm -f conftest*
                   1640: LIBS="$ac_save_LIBS"
                   1641: 
                   1642: fi
                   1643: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1644:   echo "$ac_t""yes" 1>&6
                   1645:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
                   1646: else
                   1647:   echo "$ac_t""no" 1>&6
                   1648: fi
                   1649: 
                   1650:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.1.1.4 ! root     1651:       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
        !          1652: echo "configure:1653: checking for dnet_ntoa in -ldnet_stub" >&5
        !          1653: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1.1       root     1654: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1655:   echo $ac_n "(cached) $ac_c" 1>&6
                   1656: else
                   1657:   ac_save_LIBS="$LIBS"
                   1658: LIBS="-ldnet_stub  $LIBS"
                   1659: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     1660: #line 1661 "configure"
1.1       root     1661: #include "confdefs.h"
                   1662: /* Override any gcc2 internal prototype to avoid an error.  */
                   1663: /* We use char because int might match the return type of a gcc2
                   1664:     builtin and then its argument prototype would still apply.  */
                   1665: char dnet_ntoa();
                   1666: 
1.1.1.4 ! root     1667: int main() {
1.1       root     1668: dnet_ntoa()
                   1669: ; return 0; }
                   1670: EOF
1.1.1.4 ! root     1671: if { (eval echo configure:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     1672:   rm -rf conftest*
                   1673:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1674: else
1.1.1.4 ! root     1675:   echo "configure: failed program was:" >&5
        !          1676:   cat conftest.$ac_ext >&5
1.1       root     1677:   rm -rf conftest*
                   1678:   eval "ac_cv_lib_$ac_lib_var=no"
                   1679: fi
                   1680: rm -f conftest*
                   1681: LIBS="$ac_save_LIBS"
                   1682: 
                   1683: fi
                   1684: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1685:   echo "$ac_t""yes" 1>&6
                   1686:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   1687: else
                   1688:   echo "$ac_t""no" 1>&6
                   1689: fi
                   1690: 
                   1691:     fi
                   1692: 
                   1693:     # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
                   1694:     # to get the SysV transport functions.
1.1.1.4 ! root     1695:     # [email protected] says the Pyramis MIS-ES running DC/OSx (SVR4)
        !          1696:     # needs -lnsl.
        !          1697:     # The nsl library prevents programs from opening the X display
        !          1698:     # on Irix 5.2, according to [email protected].
        !          1699:     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
        !          1700: echo "configure:1701: checking for gethostbyname" >&5
        !          1701: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
        !          1702:   echo $ac_n "(cached) $ac_c" 1>&6
        !          1703: else
        !          1704:   cat > conftest.$ac_ext <<EOF
        !          1705: #line 1706 "configure"
        !          1706: #include "confdefs.h"
        !          1707: /* System header to define __stub macros and hopefully few prototypes,
        !          1708:     which can conflict with char gethostbyname(); below.  */
        !          1709: #include <assert.h>
        !          1710: /* Override any gcc2 internal prototype to avoid an error.  */
        !          1711: /* We use char because int might match the return type of a gcc2
        !          1712:     builtin and then its argument prototype would still apply.  */
        !          1713: char gethostbyname();
        !          1714: 
        !          1715: int main() {
        !          1716: 
        !          1717: /* The GNU C library defines this for functions which it implements
        !          1718:     to always fail with ENOSYS.  Some functions are actually named
        !          1719:     something starting with __ and the normal name is an alias.  */
        !          1720: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
        !          1721: choke me
        !          1722: #else
        !          1723: gethostbyname();
        !          1724: #endif
        !          1725: 
        !          1726: ; return 0; }
        !          1727: EOF
        !          1728: if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          1729:   rm -rf conftest*
        !          1730:   eval "ac_cv_func_gethostbyname=yes"
        !          1731: else
        !          1732:   echo "configure: failed program was:" >&5
        !          1733:   cat conftest.$ac_ext >&5
        !          1734:   rm -rf conftest*
        !          1735:   eval "ac_cv_func_gethostbyname=no"
        !          1736: fi
        !          1737: rm -f conftest*
        !          1738: fi
        !          1739: 
        !          1740: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
        !          1741:   echo "$ac_t""yes" 1>&6
        !          1742:   :
        !          1743: else
        !          1744:   echo "$ac_t""no" 1>&6
        !          1745: fi
        !          1746: 
        !          1747:     if test $ac_cv_func_gethostbyname = no; then
        !          1748:       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
        !          1749: echo "configure:1750: checking for gethostbyname in -lnsl" >&5
        !          1750: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1.1       root     1751: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1752:   echo $ac_n "(cached) $ac_c" 1>&6
                   1753: else
                   1754:   ac_save_LIBS="$LIBS"
                   1755: LIBS="-lnsl  $LIBS"
                   1756: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     1757: #line 1758 "configure"
1.1       root     1758: #include "confdefs.h"
                   1759: /* Override any gcc2 internal prototype to avoid an error.  */
                   1760: /* We use char because int might match the return type of a gcc2
                   1761:     builtin and then its argument prototype would still apply.  */
1.1.1.4 ! root     1762: char gethostbyname();
1.1       root     1763: 
1.1.1.4 ! root     1764: int main() {
        !          1765: gethostbyname()
1.1       root     1766: ; return 0; }
                   1767: EOF
1.1.1.4 ! root     1768: if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     1769:   rm -rf conftest*
                   1770:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1771: else
1.1.1.4 ! root     1772:   echo "configure: failed program was:" >&5
        !          1773:   cat conftest.$ac_ext >&5
1.1       root     1774:   rm -rf conftest*
                   1775:   eval "ac_cv_lib_$ac_lib_var=no"
                   1776: fi
                   1777: rm -f conftest*
                   1778: LIBS="$ac_save_LIBS"
                   1779: 
                   1780: fi
                   1781: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1782:   echo "$ac_t""yes" 1>&6
                   1783:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   1784: else
                   1785:   echo "$ac_t""no" 1>&6
                   1786: fi
                   1787: 
1.1.1.4 ! root     1788:     fi
1.1       root     1789: 
                   1790:     # [email protected] says without -lsocket,
1.1.1.4 ! root     1791:     # socket/setsockopt and other routines are undefined under SCO ODT
        !          1792:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
        !          1793:     # on later versions), says [email protected]: it contains
        !          1794:     # gethostby* variants that don't use the nameserver (or something).
        !          1795:     # -lsocket must be given before -lnsl if both are needed.
        !          1796:     # We assume that if connect needs -lnsl, so does gethostbyname.
        !          1797:     echo $ac_n "checking for connect""... $ac_c" 1>&6
        !          1798: echo "configure:1799: checking for connect" >&5
        !          1799: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
        !          1800:   echo $ac_n "(cached) $ac_c" 1>&6
        !          1801: else
        !          1802:   cat > conftest.$ac_ext <<EOF
        !          1803: #line 1804 "configure"
        !          1804: #include "confdefs.h"
        !          1805: /* System header to define __stub macros and hopefully few prototypes,
        !          1806:     which can conflict with char connect(); below.  */
        !          1807: #include <assert.h>
        !          1808: /* Override any gcc2 internal prototype to avoid an error.  */
        !          1809: /* We use char because int might match the return type of a gcc2
        !          1810:     builtin and then its argument prototype would still apply.  */
        !          1811: char connect();
        !          1812: 
        !          1813: int main() {
        !          1814: 
        !          1815: /* The GNU C library defines this for functions which it implements
        !          1816:     to always fail with ENOSYS.  Some functions are actually named
        !          1817:     something starting with __ and the normal name is an alias.  */
        !          1818: #if defined (__stub_connect) || defined (__stub___connect)
        !          1819: choke me
        !          1820: #else
        !          1821: connect();
        !          1822: #endif
        !          1823: 
        !          1824: ; return 0; }
        !          1825: EOF
        !          1826: if { (eval echo configure:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          1827:   rm -rf conftest*
        !          1828:   eval "ac_cv_func_connect=yes"
        !          1829: else
        !          1830:   echo "configure: failed program was:" >&5
        !          1831:   cat conftest.$ac_ext >&5
        !          1832:   rm -rf conftest*
        !          1833:   eval "ac_cv_func_connect=no"
        !          1834: fi
        !          1835: rm -f conftest*
        !          1836: fi
        !          1837: 
        !          1838: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
        !          1839:   echo "$ac_t""yes" 1>&6
        !          1840:   :
        !          1841: else
        !          1842:   echo "$ac_t""no" 1>&6
        !          1843: fi
        !          1844: 
        !          1845:     if test $ac_cv_func_connect = no; then
        !          1846:       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
        !          1847: echo "configure:1848: checking for connect in -lsocket" >&5
        !          1848: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1.1       root     1849: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1850:   echo $ac_n "(cached) $ac_c" 1>&6
                   1851: else
                   1852:   ac_save_LIBS="$LIBS"
1.1.1.4 ! root     1853: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.1       root     1854: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     1855: #line 1856 "configure"
1.1       root     1856: #include "confdefs.h"
                   1857: /* Override any gcc2 internal prototype to avoid an error.  */
                   1858: /* We use char because int might match the return type of a gcc2
                   1859:     builtin and then its argument prototype would still apply.  */
1.1.1.4 ! root     1860: char connect();
1.1       root     1861: 
1.1.1.4 ! root     1862: int main() {
        !          1863: connect()
1.1       root     1864: ; return 0; }
                   1865: EOF
1.1.1.4 ! root     1866: if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     1867:   rm -rf conftest*
                   1868:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1869: else
1.1.1.4 ! root     1870:   echo "configure: failed program was:" >&5
        !          1871:   cat conftest.$ac_ext >&5
1.1       root     1872:   rm -rf conftest*
                   1873:   eval "ac_cv_lib_$ac_lib_var=no"
                   1874: fi
                   1875: rm -f conftest*
                   1876: LIBS="$ac_save_LIBS"
                   1877: 
                   1878: fi
                   1879: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1880:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root     1881:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
        !          1882: else
        !          1883:   echo "$ac_t""no" 1>&6
        !          1884: fi
        !          1885: 
        !          1886:     fi
        !          1887: 
        !          1888:     # [email protected] says -lposix is necessary on A/UX.
        !          1889:     echo $ac_n "checking for remove""... $ac_c" 1>&6
        !          1890: echo "configure:1891: checking for remove" >&5
        !          1891: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
        !          1892:   echo $ac_n "(cached) $ac_c" 1>&6
        !          1893: else
        !          1894:   cat > conftest.$ac_ext <<EOF
        !          1895: #line 1896 "configure"
        !          1896: #include "confdefs.h"
        !          1897: /* System header to define __stub macros and hopefully few prototypes,
        !          1898:     which can conflict with char remove(); below.  */
        !          1899: #include <assert.h>
        !          1900: /* Override any gcc2 internal prototype to avoid an error.  */
        !          1901: /* We use char because int might match the return type of a gcc2
        !          1902:     builtin and then its argument prototype would still apply.  */
        !          1903: char remove();
        !          1904: 
        !          1905: int main() {
        !          1906: 
        !          1907: /* The GNU C library defines this for functions which it implements
        !          1908:     to always fail with ENOSYS.  Some functions are actually named
        !          1909:     something starting with __ and the normal name is an alias.  */
        !          1910: #if defined (__stub_remove) || defined (__stub___remove)
        !          1911: choke me
        !          1912: #else
        !          1913: remove();
        !          1914: #endif
        !          1915: 
        !          1916: ; return 0; }
        !          1917: EOF
        !          1918: if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          1919:   rm -rf conftest*
        !          1920:   eval "ac_cv_func_remove=yes"
        !          1921: else
        !          1922:   echo "configure: failed program was:" >&5
        !          1923:   cat conftest.$ac_ext >&5
        !          1924:   rm -rf conftest*
        !          1925:   eval "ac_cv_func_remove=no"
        !          1926: fi
        !          1927: rm -f conftest*
        !          1928: fi
        !          1929: 
        !          1930: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
        !          1931:   echo "$ac_t""yes" 1>&6
        !          1932:   :
        !          1933: else
        !          1934:   echo "$ac_t""no" 1>&6
        !          1935: fi
        !          1936: 
        !          1937:     if test $ac_cv_func_remove = no; then
        !          1938:       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
        !          1939: echo "configure:1940: checking for remove in -lposix" >&5
        !          1940: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
        !          1941: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
        !          1942:   echo $ac_n "(cached) $ac_c" 1>&6
        !          1943: else
        !          1944:   ac_save_LIBS="$LIBS"
        !          1945: LIBS="-lposix  $LIBS"
        !          1946: cat > conftest.$ac_ext <<EOF
        !          1947: #line 1948 "configure"
        !          1948: #include "confdefs.h"
        !          1949: /* Override any gcc2 internal prototype to avoid an error.  */
        !          1950: /* We use char because int might match the return type of a gcc2
        !          1951:     builtin and then its argument prototype would still apply.  */
        !          1952: char remove();
        !          1953: 
        !          1954: int main() {
        !          1955: remove()
        !          1956: ; return 0; }
        !          1957: EOF
        !          1958: if { (eval echo configure:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          1959:   rm -rf conftest*
        !          1960:   eval "ac_cv_lib_$ac_lib_var=yes"
        !          1961: else
        !          1962:   echo "configure: failed program was:" >&5
        !          1963:   cat conftest.$ac_ext >&5
        !          1964:   rm -rf conftest*
        !          1965:   eval "ac_cv_lib_$ac_lib_var=no"
        !          1966: fi
        !          1967: rm -f conftest*
        !          1968: LIBS="$ac_save_LIBS"
        !          1969: 
        !          1970: fi
        !          1971: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
        !          1972:   echo "$ac_t""yes" 1>&6
        !          1973:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
        !          1974: else
        !          1975:   echo "$ac_t""no" 1>&6
        !          1976: fi
        !          1977: 
        !          1978:     fi
        !          1979: 
        !          1980:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
        !          1981:     echo $ac_n "checking for shmat""... $ac_c" 1>&6
        !          1982: echo "configure:1983: checking for shmat" >&5
        !          1983: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
        !          1984:   echo $ac_n "(cached) $ac_c" 1>&6
        !          1985: else
        !          1986:   cat > conftest.$ac_ext <<EOF
        !          1987: #line 1988 "configure"
        !          1988: #include "confdefs.h"
        !          1989: /* System header to define __stub macros and hopefully few prototypes,
        !          1990:     which can conflict with char shmat(); below.  */
        !          1991: #include <assert.h>
        !          1992: /* Override any gcc2 internal prototype to avoid an error.  */
        !          1993: /* We use char because int might match the return type of a gcc2
        !          1994:     builtin and then its argument prototype would still apply.  */
        !          1995: char shmat();
        !          1996: 
        !          1997: int main() {
        !          1998: 
        !          1999: /* The GNU C library defines this for functions which it implements
        !          2000:     to always fail with ENOSYS.  Some functions are actually named
        !          2001:     something starting with __ and the normal name is an alias.  */
        !          2002: #if defined (__stub_shmat) || defined (__stub___shmat)
        !          2003: choke me
        !          2004: #else
        !          2005: shmat();
        !          2006: #endif
        !          2007: 
        !          2008: ; return 0; }
        !          2009: EOF
        !          2010: if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          2011:   rm -rf conftest*
        !          2012:   eval "ac_cv_func_shmat=yes"
        !          2013: else
        !          2014:   echo "configure: failed program was:" >&5
        !          2015:   cat conftest.$ac_ext >&5
        !          2016:   rm -rf conftest*
        !          2017:   eval "ac_cv_func_shmat=no"
        !          2018: fi
        !          2019: rm -f conftest*
        !          2020: fi
        !          2021: 
        !          2022: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
        !          2023:   echo "$ac_t""yes" 1>&6
        !          2024:   :
        !          2025: else
        !          2026:   echo "$ac_t""no" 1>&6
        !          2027: fi
        !          2028: 
        !          2029:     if test $ac_cv_func_shmat = no; then
        !          2030:       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
        !          2031: echo "configure:2032: checking for shmat in -lipc" >&5
        !          2032: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
        !          2033: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
        !          2034:   echo $ac_n "(cached) $ac_c" 1>&6
        !          2035: else
        !          2036:   ac_save_LIBS="$LIBS"
        !          2037: LIBS="-lipc  $LIBS"
        !          2038: cat > conftest.$ac_ext <<EOF
        !          2039: #line 2040 "configure"
        !          2040: #include "confdefs.h"
        !          2041: /* Override any gcc2 internal prototype to avoid an error.  */
        !          2042: /* We use char because int might match the return type of a gcc2
        !          2043:     builtin and then its argument prototype would still apply.  */
        !          2044: char shmat();
        !          2045: 
        !          2046: int main() {
        !          2047: shmat()
        !          2048: ; return 0; }
        !          2049: EOF
        !          2050: if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          2051:   rm -rf conftest*
        !          2052:   eval "ac_cv_lib_$ac_lib_var=yes"
        !          2053: else
        !          2054:   echo "configure: failed program was:" >&5
        !          2055:   cat conftest.$ac_ext >&5
        !          2056:   rm -rf conftest*
        !          2057:   eval "ac_cv_lib_$ac_lib_var=no"
        !          2058: fi
        !          2059: rm -f conftest*
        !          2060: LIBS="$ac_save_LIBS"
        !          2061: 
        !          2062: fi
        !          2063: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
        !          2064:   echo "$ac_t""yes" 1>&6
        !          2065:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1.1       root     2066: else
                   2067:   echo "$ac_t""no" 1>&6
                   2068: fi
                   2069: 
                   2070:     fi
                   2071:   fi
1.1.1.4 ! root     2072: 
        !          2073:   # Check for libraries that X11R6 Xt/Xaw programs need.
        !          2074:   ac_save_LDFLAGS="$LDFLAGS"
        !          2075:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
        !          2076:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
        !          2077:   # check for ICE first), but we must link in the order -lSM -lICE or
        !          2078:   # we get undefined symbols.  So assume we have SM if we have ICE.
        !          2079:   # These have to be linked with before -lX11, unlike the other
        !          2080:   # libraries we check for below, so use a different variable.
        !          2081:   #  [email protected], [email protected].
        !          2082:   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
        !          2083: echo "configure:2084: checking for IceConnectionNumber in -lICE" >&5
        !          2084: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
        !          2085: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
        !          2086:   echo $ac_n "(cached) $ac_c" 1>&6
        !          2087: else
        !          2088:   ac_save_LIBS="$LIBS"
        !          2089: LIBS="-lICE  $LIBS"
        !          2090: cat > conftest.$ac_ext <<EOF
        !          2091: #line 2092 "configure"
        !          2092: #include "confdefs.h"
        !          2093: /* Override any gcc2 internal prototype to avoid an error.  */
        !          2094: /* We use char because int might match the return type of a gcc2
        !          2095:     builtin and then its argument prototype would still apply.  */
        !          2096: char IceConnectionNumber();
        !          2097: 
        !          2098: int main() {
        !          2099: IceConnectionNumber()
        !          2100: ; return 0; }
        !          2101: EOF
        !          2102: if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          2103:   rm -rf conftest*
        !          2104:   eval "ac_cv_lib_$ac_lib_var=yes"
        !          2105: else
        !          2106:   echo "configure: failed program was:" >&5
        !          2107:   cat conftest.$ac_ext >&5
        !          2108:   rm -rf conftest*
        !          2109:   eval "ac_cv_lib_$ac_lib_var=no"
1.1       root     2110: fi
1.1.1.4 ! root     2111: rm -f conftest*
        !          2112: LIBS="$ac_save_LIBS"
1.1       root     2113: 
1.1.1.4 ! root     2114: fi
        !          2115: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
        !          2116:   echo "$ac_t""yes" 1>&6
        !          2117:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
        !          2118: else
        !          2119:   echo "$ac_t""no" 1>&6
        !          2120: fi
1.1       root     2121: 
1.1.1.4 ! root     2122:   LDFLAGS="$ac_save_LDFLAGS"
1.1       root     2123: 
1.1.1.3   root     2124: fi
                   2125: 
                   2126: 
1.1.1.4 ! root     2127: 
1.1       root     2128: ac_header_dirent=no
                   2129: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
                   2130: do
1.1.1.4 ! root     2131: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1       root     2132: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1.1.1.4 ! root     2133: echo "configure:2134: checking for $ac_hdr that defines DIR" >&5
1.1       root     2134: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
                   2135:   echo $ac_n "(cached) $ac_c" 1>&6
                   2136: else
                   2137:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2138: #line 2139 "configure"
1.1       root     2139: #include "confdefs.h"
                   2140: #include <sys/types.h>
                   2141: #include <$ac_hdr>
1.1.1.4 ! root     2142: int main() {
1.1       root     2143: DIR *dirp = 0;
                   2144: ; return 0; }
                   2145: EOF
1.1.1.4 ! root     2146: if { (eval echo configure:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2147:   rm -rf conftest*
                   2148:   eval "ac_cv_header_dirent_$ac_safe=yes"
                   2149: else
1.1.1.4 ! root     2150:   echo "configure: failed program was:" >&5
        !          2151:   cat conftest.$ac_ext >&5
1.1       root     2152:   rm -rf conftest*
                   2153:   eval "ac_cv_header_dirent_$ac_safe=no"
                   2154: fi
                   2155: rm -f conftest*
                   2156: fi
                   2157: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
                   2158:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root     2159:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1       root     2160:   cat >> confdefs.h <<EOF
                   2161: #define $ac_tr_hdr 1
                   2162: EOF
                   2163:  ac_header_dirent=$ac_hdr; break
                   2164: else
                   2165:   echo "$ac_t""no" 1>&6
                   2166: fi
                   2167: done
                   2168: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
                   2169: if test $ac_header_dirent = dirent.h; then
1.1.1.4 ! root     2170: echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
        !          2171: echo "configure:2172: checking for opendir in -ldir" >&5
        !          2172: ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1.1       root     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="-ldir  $LIBS"
                   2178: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2179: #line 2180 "configure"
1.1       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 opendir();
                   2185: 
1.1.1.4 ! root     2186: int main() {
1.1       root     2187: opendir()
                   2188: ; return 0; }
                   2189: EOF
1.1.1.4 ! root     2190: if { (eval echo configure:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     2191:   rm -rf conftest*
                   2192:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2193: else
1.1.1.4 ! root     2194:   echo "configure: failed program was:" >&5
        !          2195:   cat conftest.$ac_ext >&5
1.1       root     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:   LIBS="$LIBS -ldir"
                   2206: else
                   2207:   echo "$ac_t""no" 1>&6
                   2208: fi
                   2209: 
                   2210: else
1.1.1.4 ! root     2211: echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
        !          2212: echo "configure:2213: checking for opendir in -lx" >&5
        !          2213: ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1.1       root     2214: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2215:   echo $ac_n "(cached) $ac_c" 1>&6
                   2216: else
                   2217:   ac_save_LIBS="$LIBS"
                   2218: LIBS="-lx  $LIBS"
                   2219: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2220: #line 2221 "configure"
1.1       root     2221: #include "confdefs.h"
                   2222: /* Override any gcc2 internal prototype to avoid an error.  */
                   2223: /* We use char because int might match the return type of a gcc2
                   2224:     builtin and then its argument prototype would still apply.  */
                   2225: char opendir();
                   2226: 
1.1.1.4 ! root     2227: int main() {
1.1       root     2228: opendir()
                   2229: ; return 0; }
                   2230: EOF
1.1.1.4 ! root     2231: if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     2232:   rm -rf conftest*
                   2233:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2234: else
1.1.1.4 ! root     2235:   echo "configure: failed program was:" >&5
        !          2236:   cat conftest.$ac_ext >&5
1.1       root     2237:   rm -rf conftest*
                   2238:   eval "ac_cv_lib_$ac_lib_var=no"
                   2239: fi
                   2240: rm -f conftest*
                   2241: LIBS="$ac_save_LIBS"
                   2242: 
                   2243: fi
                   2244: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2245:   echo "$ac_t""yes" 1>&6
                   2246:   LIBS="$LIBS -lx"
                   2247: else
                   2248:   echo "$ac_t""no" 1>&6
                   2249: fi
                   2250: 
                   2251: fi
                   2252: 
                   2253: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.1.1.4 ! root     2254: echo "configure:2255: checking for ANSI C header files" >&5
1.1       root     2255: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   2256:   echo $ac_n "(cached) $ac_c" 1>&6
                   2257: else
                   2258:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2259: #line 2260 "configure"
1.1       root     2260: #include "confdefs.h"
                   2261: #include <stdlib.h>
                   2262: #include <stdarg.h>
                   2263: #include <string.h>
                   2264: #include <float.h>
                   2265: EOF
                   2266: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.4 ! root     2267: { (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root     2268: ac_err=`grep -v '^ *+' conftest.out`
                   2269: if test -z "$ac_err"; then
                   2270:   rm -rf conftest*
                   2271:   ac_cv_header_stdc=yes
                   2272: else
                   2273:   echo "$ac_err" >&5
1.1.1.4 ! root     2274:   echo "configure: failed program was:" >&5
        !          2275:   cat conftest.$ac_ext >&5
1.1       root     2276:   rm -rf conftest*
                   2277:   ac_cv_header_stdc=no
                   2278: fi
                   2279: rm -f conftest*
                   2280: 
                   2281: if test $ac_cv_header_stdc = yes; then
                   2282:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   2283: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2284: #line 2285 "configure"
1.1       root     2285: #include "confdefs.h"
                   2286: #include <string.h>
                   2287: EOF
                   2288: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2289:   egrep "memchr" >/dev/null 2>&1; then
                   2290:   :
                   2291: else
                   2292:   rm -rf conftest*
                   2293:   ac_cv_header_stdc=no
                   2294: fi
                   2295: rm -f conftest*
                   2296: 
                   2297: fi
                   2298: 
                   2299: if test $ac_cv_header_stdc = yes; then
                   2300:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   2301: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2302: #line 2303 "configure"
1.1       root     2303: #include "confdefs.h"
                   2304: #include <stdlib.h>
                   2305: EOF
                   2306: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2307:   egrep "free" >/dev/null 2>&1; then
                   2308:   :
                   2309: else
                   2310:   rm -rf conftest*
                   2311:   ac_cv_header_stdc=no
                   2312: fi
                   2313: rm -f conftest*
                   2314: 
                   2315: fi
                   2316: 
                   2317: if test $ac_cv_header_stdc = yes; then
                   2318:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   2319: if test "$cross_compiling" = yes; then
                   2320:   :
                   2321: else
1.1.1.4 ! root     2322:   cat > conftest.$ac_ext <<EOF
        !          2323: #line 2324 "configure"
1.1       root     2324: #include "confdefs.h"
                   2325: #include <ctype.h>
                   2326: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   2327: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   2328: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   2329: int main () { int i; for (i = 0; i < 256; i++)
                   2330: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   2331: exit (0); }
                   2332: 
                   2333: EOF
1.1.1.4 ! root     2334: if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
        !          2335: then
1.1       root     2336:   :
                   2337: else
1.1.1.4 ! root     2338:   echo "configure: failed program was:" >&5
        !          2339:   cat conftest.$ac_ext >&5
        !          2340:   rm -fr conftest*
1.1       root     2341:   ac_cv_header_stdc=no
                   2342: fi
                   2343: rm -fr conftest*
                   2344: fi
1.1.1.4 ! root     2345: 
        !          2346: fi
1.1       root     2347: fi
                   2348: 
                   2349: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   2350: if test $ac_cv_header_stdc = yes; then
                   2351:   cat >> confdefs.h <<\EOF
                   2352: #define STDC_HEADERS 1
                   2353: EOF
                   2354: 
                   2355: fi
                   2356: 
1.1.1.4 ! root     2357: 
        !          2358: 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
        !          2359: do
        !          2360: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
        !          2361: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
        !          2362: echo "configure:2363: checking for $ac_hdr" >&5
        !          2363: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
        !          2364:   echo $ac_n "(cached) $ac_c" 1>&6
        !          2365: else
        !          2366:   cat > conftest.$ac_ext <<EOF
        !          2367: #line 2368 "configure"
        !          2368: #include "confdefs.h"
        !          2369: #include <$ac_hdr>
        !          2370: EOF
        !          2371: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
        !          2372: { (eval echo configure:2373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
        !          2373: ac_err=`grep -v '^ *+' conftest.out`
        !          2374: if test -z "$ac_err"; then
        !          2375:   rm -rf conftest*
        !          2376:   eval "ac_cv_header_$ac_safe=yes"
        !          2377: else
        !          2378:   echo "$ac_err" >&5
        !          2379:   echo "configure: failed program was:" >&5
        !          2380:   cat conftest.$ac_ext >&5
        !          2381:   rm -rf conftest*
        !          2382:   eval "ac_cv_header_$ac_safe=no"
        !          2383: fi
        !          2384: rm -f conftest*
        !          2385: fi
        !          2386: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
        !          2387:   echo "$ac_t""yes" 1>&6
        !          2388:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
        !          2389:   cat >> confdefs.h <<EOF
        !          2390: #define $ac_tr_hdr 1
        !          2391: EOF
        !          2392:  
        !          2393: else
        !          2394:   echo "$ac_t""no" 1>&6
        !          2395: fi
        !          2396: done
        !          2397: 
        !          2398: for ac_hdr in sys/vfs.h sys/mount.h sys/select.h sys/param.h sys/statfs.h sys/statvfs.h sys/stat.h
1.1       root     2399: do
1.1.1.4 ! root     2400: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1       root     2401: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.4 ! root     2402: echo "configure:2403: checking for $ac_hdr" >&5
1.1       root     2403: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2404:   echo $ac_n "(cached) $ac_c" 1>&6
                   2405: else
                   2406:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2407: #line 2408 "configure"
1.1       root     2408: #include "confdefs.h"
                   2409: #include <$ac_hdr>
                   2410: EOF
                   2411: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.4 ! root     2412: { (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root     2413: ac_err=`grep -v '^ *+' conftest.out`
                   2414: if test -z "$ac_err"; then
                   2415:   rm -rf conftest*
                   2416:   eval "ac_cv_header_$ac_safe=yes"
                   2417: else
                   2418:   echo "$ac_err" >&5
1.1.1.4 ! root     2419:   echo "configure: failed program was:" >&5
        !          2420:   cat conftest.$ac_ext >&5
1.1       root     2421:   rm -rf conftest*
                   2422:   eval "ac_cv_header_$ac_safe=no"
                   2423: fi
                   2424: rm -f conftest*
                   2425: fi
                   2426: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2427:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root     2428:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1       root     2429:   cat >> confdefs.h <<EOF
                   2430: #define $ac_tr_hdr 1
                   2431: EOF
                   2432:  
                   2433: else
                   2434:   echo "$ac_t""no" 1>&6
                   2435: fi
                   2436: done
                   2437: 
1.1.1.4 ! root     2438: 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     2439: do
1.1.1.4 ! root     2440: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1       root     2441: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.4 ! root     2442: echo "configure:2443: checking for $ac_hdr" >&5
1.1       root     2443: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2444:   echo $ac_n "(cached) $ac_c" 1>&6
                   2445: else
                   2446:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2447: #line 2448 "configure"
1.1.1.3   root     2448: #include "confdefs.h"
                   2449: #include <$ac_hdr>
                   2450: EOF
                   2451: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.4 ! root     2452: { (eval echo configure:2453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.3   root     2453: ac_err=`grep -v '^ *+' conftest.out`
                   2454: if test -z "$ac_err"; then
                   2455:   rm -rf conftest*
                   2456:   eval "ac_cv_header_$ac_safe=yes"
                   2457: else
                   2458:   echo "$ac_err" >&5
1.1.1.4 ! root     2459:   echo "configure: failed program was:" >&5
        !          2460:   cat conftest.$ac_ext >&5
1.1.1.3   root     2461:   rm -rf conftest*
                   2462:   eval "ac_cv_header_$ac_safe=no"
                   2463: fi
                   2464: rm -f conftest*
                   2465: fi
                   2466: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2467:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root     2468:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1.1.3   root     2469:   cat >> confdefs.h <<EOF
                   2470: #define $ac_tr_hdr 1
                   2471: EOF
                   2472:  
                   2473: else
                   2474:   echo "$ac_t""no" 1>&6
                   2475: fi
                   2476: done
                   2477: 
1.1.1.4 ! root     2478: for ac_hdr in posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h
1.1.1.3   root     2479: do
1.1.1.4 ! root     2480: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1.1.3   root     2481: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.4 ! root     2482: echo "configure:2483: checking for $ac_hdr" >&5
1.1.1.3   root     2483: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2484:   echo $ac_n "(cached) $ac_c" 1>&6
                   2485: else
                   2486:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2487: #line 2488 "configure"
1.1       root     2488: #include "confdefs.h"
                   2489: #include <$ac_hdr>
                   2490: EOF
                   2491: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.4 ! root     2492: { (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       root     2493: ac_err=`grep -v '^ *+' conftest.out`
                   2494: if test -z "$ac_err"; then
                   2495:   rm -rf conftest*
                   2496:   eval "ac_cv_header_$ac_safe=yes"
                   2497: else
                   2498:   echo "$ac_err" >&5
1.1.1.4 ! root     2499:   echo "configure: failed program was:" >&5
        !          2500:   cat conftest.$ac_ext >&5
1.1       root     2501:   rm -rf conftest*
                   2502:   eval "ac_cv_header_$ac_safe=no"
                   2503: fi
                   2504: rm -f conftest*
                   2505: fi
                   2506: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2507:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root     2508:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1       root     2509:   cat >> confdefs.h <<EOF
                   2510: #define $ac_tr_hdr 1
                   2511: EOF
                   2512:  
                   2513: else
                   2514:   echo "$ac_t""no" 1>&6
                   2515: fi
                   2516: done
                   2517: 
1.1.1.4 ! root     2518: for ac_hdr in ggi/libggi.h
        !          2519: do
        !          2520: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
        !          2521: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
        !          2522: echo "configure:2523: checking for $ac_hdr" >&5
        !          2523: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
        !          2524:   echo $ac_n "(cached) $ac_c" 1>&6
        !          2525: else
        !          2526:   cat > conftest.$ac_ext <<EOF
        !          2527: #line 2528 "configure"
        !          2528: #include "confdefs.h"
        !          2529: #include <$ac_hdr>
        !          2530: EOF
        !          2531: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
        !          2532: { (eval echo configure:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
        !          2533: ac_err=`grep -v '^ *+' conftest.out`
        !          2534: if test -z "$ac_err"; then
        !          2535:   rm -rf conftest*
        !          2536:   eval "ac_cv_header_$ac_safe=yes"
        !          2537: else
        !          2538:   echo "$ac_err" >&5
        !          2539:   echo "configure: failed program was:" >&5
        !          2540:   cat conftest.$ac_ext >&5
        !          2541:   rm -rf conftest*
        !          2542:   eval "ac_cv_header_$ac_safe=no"
        !          2543: fi
        !          2544: rm -f conftest*
        !          2545: fi
        !          2546: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
        !          2547:   echo "$ac_t""yes" 1>&6
        !          2548:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
        !          2549:   cat >> confdefs.h <<EOF
        !          2550: #define $ac_tr_hdr 1
        !          2551: EOF
        !          2552:  
        !          2553: else
        !          2554:   echo "$ac_t""no" 1>&6
        !          2555: fi
        !          2556: done
1.1       root     2557: 
1.1.1.4 ! root     2558: ac_safe=`echo "be_math.h" | sed 'y%./+-%__p_%'`
        !          2559: echo $ac_n "checking for be_math.h""... $ac_c" 1>&6
        !          2560: echo "configure:2561: checking for be_math.h" >&5
        !          2561: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
        !          2562:   echo $ac_n "(cached) $ac_c" 1>&6
        !          2563: else
        !          2564:   cat > conftest.$ac_ext <<EOF
        !          2565: #line 2566 "configure"
        !          2566: #include "confdefs.h"
        !          2567: #include <be_math.h>
        !          2568: EOF
        !          2569: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
        !          2570: { (eval echo configure:2571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
        !          2571: ac_err=`grep -v '^ *+' conftest.out`
        !          2572: if test -z "$ac_err"; then
        !          2573:   rm -rf conftest*
        !          2574:   eval "ac_cv_header_$ac_safe=yes"
        !          2575: else
        !          2576:   echo "$ac_err" >&5
        !          2577:   echo "configure: failed program was:" >&5
        !          2578:   cat conftest.$ac_ext >&5
        !          2579:   rm -rf conftest*
        !          2580:   eval "ac_cv_header_$ac_safe=no"
        !          2581: fi
        !          2582: rm -f conftest*
        !          2583: fi
        !          2584: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
        !          2585:   echo "$ac_t""yes" 1>&6
        !          2586:   HAVE_BEOS=yes
        !          2587: else
        !          2588:   echo "$ac_t""no" 1>&6
        !          2589: HAVE_BEOS=no
1.1       root     2590: fi
                   2591: 
1.1.1.4 ! root     2592: 
1.1       root     2593: echo $ac_n "checking size of char""... $ac_c" 1>&6
1.1.1.4 ! root     2594: echo "configure:2595: checking size of char" >&5
1.1       root     2595: if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
                   2596:   echo $ac_n "(cached) $ac_c" 1>&6
                   2597: else
                   2598:   if test "$cross_compiling" = yes; then
1.1.1.4 ! root     2599:   ac_cv_sizeof_char=1
1.1       root     2600: else
1.1.1.4 ! root     2601:   cat > conftest.$ac_ext <<EOF
        !          2602: #line 2603 "configure"
1.1       root     2603: #include "confdefs.h"
                   2604: #include <stdio.h>
                   2605: main()
                   2606: {
                   2607:   FILE *f=fopen("conftestval", "w");
                   2608:   if (!f) exit(1);
                   2609:   fprintf(f, "%d\n", sizeof(char));
                   2610:   exit(0);
                   2611: }
                   2612: EOF
1.1.1.4 ! root     2613: if { (eval echo configure:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
        !          2614: then
1.1       root     2615:   ac_cv_sizeof_char=`cat conftestval`
                   2616: else
1.1.1.4 ! root     2617:   echo "configure: failed program was:" >&5
        !          2618:   cat conftest.$ac_ext >&5
        !          2619:   rm -fr conftest*
1.1       root     2620:   ac_cv_sizeof_char=0
                   2621: fi
                   2622: rm -fr conftest*
                   2623: fi
1.1.1.4 ! root     2624: 
        !          2625: fi
1.1       root     2626: echo "$ac_t""$ac_cv_sizeof_char" 1>&6
                   2627: cat >> confdefs.h <<EOF
                   2628: #define SIZEOF_CHAR $ac_cv_sizeof_char
                   2629: EOF
                   2630: 
                   2631: 
                   2632: echo $ac_n "checking size of short""... $ac_c" 1>&6
1.1.1.4 ! root     2633: echo "configure:2634: checking size of short" >&5
1.1       root     2634: if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
                   2635:   echo $ac_n "(cached) $ac_c" 1>&6
                   2636: else
                   2637:   if test "$cross_compiling" = yes; then
1.1.1.4 ! root     2638:   ac_cv_sizeof_short=2
1.1       root     2639: else
1.1.1.4 ! root     2640:   cat > conftest.$ac_ext <<EOF
        !          2641: #line 2642 "configure"
1.1       root     2642: #include "confdefs.h"
                   2643: #include <stdio.h>
                   2644: main()
                   2645: {
                   2646:   FILE *f=fopen("conftestval", "w");
                   2647:   if (!f) exit(1);
                   2648:   fprintf(f, "%d\n", sizeof(short));
                   2649:   exit(0);
                   2650: }
                   2651: EOF
1.1.1.4 ! root     2652: if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
        !          2653: then
1.1       root     2654:   ac_cv_sizeof_short=`cat conftestval`
                   2655: else
1.1.1.4 ! root     2656:   echo "configure: failed program was:" >&5
        !          2657:   cat conftest.$ac_ext >&5
        !          2658:   rm -fr conftest*
1.1       root     2659:   ac_cv_sizeof_short=0
                   2660: fi
                   2661: rm -fr conftest*
                   2662: fi
1.1.1.4 ! root     2663: 
        !          2664: fi
1.1       root     2665: echo "$ac_t""$ac_cv_sizeof_short" 1>&6
                   2666: cat >> confdefs.h <<EOF
                   2667: #define SIZEOF_SHORT $ac_cv_sizeof_short
                   2668: EOF
                   2669: 
                   2670: 
                   2671: echo $ac_n "checking size of int""... $ac_c" 1>&6
1.1.1.4 ! root     2672: echo "configure:2673: checking size of int" >&5
1.1       root     2673: if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
                   2674:   echo $ac_n "(cached) $ac_c" 1>&6
                   2675: else
                   2676:   if test "$cross_compiling" = yes; then
1.1.1.4 ! root     2677:   ac_cv_sizeof_int=4
1.1       root     2678: else
1.1.1.4 ! root     2679:   cat > conftest.$ac_ext <<EOF
        !          2680: #line 2681 "configure"
1.1       root     2681: #include "confdefs.h"
                   2682: #include <stdio.h>
                   2683: main()
                   2684: {
                   2685:   FILE *f=fopen("conftestval", "w");
                   2686:   if (!f) exit(1);
                   2687:   fprintf(f, "%d\n", sizeof(int));
                   2688:   exit(0);
                   2689: }
                   2690: EOF
1.1.1.4 ! root     2691: if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
        !          2692: then
1.1       root     2693:   ac_cv_sizeof_int=`cat conftestval`
                   2694: else
1.1.1.4 ! root     2695:   echo "configure: failed program was:" >&5
        !          2696:   cat conftest.$ac_ext >&5
        !          2697:   rm -fr conftest*
1.1       root     2698:   ac_cv_sizeof_int=0
                   2699: fi
                   2700: rm -fr conftest*
                   2701: fi
1.1.1.4 ! root     2702: 
        !          2703: fi
1.1       root     2704: echo "$ac_t""$ac_cv_sizeof_int" 1>&6
                   2705: cat >> confdefs.h <<EOF
                   2706: #define SIZEOF_INT $ac_cv_sizeof_int
                   2707: EOF
                   2708: 
                   2709: 
                   2710: echo $ac_n "checking size of long""... $ac_c" 1>&6
1.1.1.4 ! root     2711: echo "configure:2712: checking size of long" >&5
1.1       root     2712: if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
                   2713:   echo $ac_n "(cached) $ac_c" 1>&6
                   2714: else
                   2715:   if test "$cross_compiling" = yes; then
1.1.1.4 ! root     2716:   ac_cv_sizeof_long=4
1.1       root     2717: else
1.1.1.4 ! root     2718:   cat > conftest.$ac_ext <<EOF
        !          2719: #line 2720 "configure"
1.1       root     2720: #include "confdefs.h"
                   2721: #include <stdio.h>
                   2722: main()
                   2723: {
                   2724:   FILE *f=fopen("conftestval", "w");
                   2725:   if (!f) exit(1);
                   2726:   fprintf(f, "%d\n", sizeof(long));
                   2727:   exit(0);
                   2728: }
                   2729: EOF
1.1.1.4 ! root     2730: if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
        !          2731: then
1.1       root     2732:   ac_cv_sizeof_long=`cat conftestval`
                   2733: else
1.1.1.4 ! root     2734:   echo "configure: failed program was:" >&5
        !          2735:   cat conftest.$ac_ext >&5
        !          2736:   rm -fr conftest*
1.1       root     2737:   ac_cv_sizeof_long=0
                   2738: fi
                   2739: rm -fr conftest*
                   2740: fi
1.1.1.4 ! root     2741: 
        !          2742: fi
1.1       root     2743: echo "$ac_t""$ac_cv_sizeof_long" 1>&6
                   2744: cat >> confdefs.h <<EOF
                   2745: #define SIZEOF_LONG $ac_cv_sizeof_long
                   2746: EOF
                   2747: 
                   2748: 
                   2749: echo $ac_n "checking size of long long""... $ac_c" 1>&6
1.1.1.4 ! root     2750: echo "configure:2751: checking size of long long" >&5
1.1       root     2751: if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
                   2752:   echo $ac_n "(cached) $ac_c" 1>&6
                   2753: else
                   2754:   if test "$cross_compiling" = yes; then
1.1.1.4 ! root     2755:   ac_cv_sizeof_long_long=8
1.1       root     2756: else
1.1.1.4 ! root     2757:   cat > conftest.$ac_ext <<EOF
        !          2758: #line 2759 "configure"
1.1       root     2759: #include "confdefs.h"
                   2760: #include <stdio.h>
                   2761: main()
                   2762: {
                   2763:   FILE *f=fopen("conftestval", "w");
                   2764:   if (!f) exit(1);
                   2765:   fprintf(f, "%d\n", sizeof(long long));
                   2766:   exit(0);
                   2767: }
                   2768: EOF
1.1.1.4 ! root     2769: if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
        !          2770: then
1.1       root     2771:   ac_cv_sizeof_long_long=`cat conftestval`
                   2772: else
1.1.1.4 ! root     2773:   echo "configure: failed program was:" >&5
        !          2774:   cat conftest.$ac_ext >&5
        !          2775:   rm -fr conftest*
1.1       root     2776:   ac_cv_sizeof_long_long=0
                   2777: fi
                   2778: rm -fr conftest*
                   2779: fi
1.1.1.4 ! root     2780: 
        !          2781: fi
1.1       root     2782: echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
                   2783: cat >> confdefs.h <<EOF
                   2784: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
                   2785: EOF
                   2786: 
                   2787: 
                   2788: 
                   2789: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.1.1.4 ! root     2790: echo "configure:2791: checking for working const" >&5
1.1       root     2791: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
                   2792:   echo $ac_n "(cached) $ac_c" 1>&6
                   2793: else
                   2794:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2795: #line 2796 "configure"
1.1       root     2796: #include "confdefs.h"
                   2797: 
1.1.1.4 ! root     2798: int main() {
1.1       root     2799: 
                   2800: /* Ultrix mips cc rejects this.  */
                   2801: typedef int charset[2]; const charset x;
                   2802: /* SunOS 4.1.1 cc rejects this.  */
                   2803: char const *const *ccp;
                   2804: char **p;
                   2805: /* NEC SVR4.0.2 mips cc rejects this.  */
                   2806: struct point {int x, y;};
                   2807: static struct point const zero = {0,0};
                   2808: /* AIX XL C 1.02.0.0 rejects this.
                   2809:    It does not let you subtract one const X* pointer from another in an arm
                   2810:    of an if-expression whose if-part is not a constant expression */
                   2811: const char *g = "string";
                   2812: ccp = &g + (g ? g-g : 0);
                   2813: /* HPUX 7.0 cc rejects these. */
                   2814: ++ccp;
                   2815: p = (char**) ccp;
                   2816: ccp = (char const *const *) p;
                   2817: { /* SCO 3.2v4 cc rejects this.  */
                   2818:   char *t;
                   2819:   char const *s = 0 ? (char *) 0 : (char const *) 0;
                   2820: 
                   2821:   *t++ = 0;
                   2822: }
                   2823: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   2824:   int x[] = {25, 17};
                   2825:   const int *foo = &x[0];
                   2826:   ++foo;
                   2827: }
                   2828: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   2829:   typedef const int *iptr;
                   2830:   iptr p = 0;
                   2831:   ++p;
                   2832: }
                   2833: { /* AIX XL C 1.02.0.0 rejects this saying
                   2834:      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   2835:   struct s { int j; const int *ap[3]; };
                   2836:   struct s *b; b->j = 5;
                   2837: }
                   2838: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   2839:   const int foo = 10;
                   2840: }
                   2841: 
                   2842: ; return 0; }
                   2843: EOF
1.1.1.4 ! root     2844: if { (eval echo configure:2845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2845:   rm -rf conftest*
                   2846:   ac_cv_c_const=yes
                   2847: else
1.1.1.4 ! root     2848:   echo "configure: failed program was:" >&5
        !          2849:   cat conftest.$ac_ext >&5
1.1       root     2850:   rm -rf conftest*
                   2851:   ac_cv_c_const=no
                   2852: fi
                   2853: rm -f conftest*
                   2854: fi
                   2855: 
                   2856: echo "$ac_t""$ac_cv_c_const" 1>&6
                   2857: if test $ac_cv_c_const = no; then
                   2858:   cat >> confdefs.h <<\EOF
                   2859: #define const 
                   2860: EOF
                   2861: 
                   2862: fi
                   2863: 
                   2864: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.1.1.4 ! root     2865: echo "configure:2866: checking for inline" >&5
1.1       root     2866: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
                   2867:   echo $ac_n "(cached) $ac_c" 1>&6
                   2868: else
                   2869:   ac_cv_c_inline=no
                   2870: for ac_kw in inline __inline__ __inline; do
                   2871:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2872: #line 2873 "configure"
1.1       root     2873: #include "confdefs.h"
                   2874: 
1.1.1.4 ! root     2875: int main() {
1.1       root     2876: } $ac_kw foo() {
                   2877: ; return 0; }
                   2878: EOF
1.1.1.4 ! root     2879: if { (eval echo configure:2880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     2880:   rm -rf conftest*
                   2881:   ac_cv_c_inline=$ac_kw; break
1.1.1.4 ! root     2882: else
        !          2883:   echo "configure: failed program was:" >&5
        !          2884:   cat conftest.$ac_ext >&5
1.1       root     2885: fi
                   2886: rm -f conftest*
                   2887: done
                   2888: 
                   2889: fi
                   2890: 
                   2891: echo "$ac_t""$ac_cv_c_inline" 1>&6
                   2892: case "$ac_cv_c_inline" in
                   2893:   inline | yes) ;;
                   2894:   no) cat >> confdefs.h <<\EOF
                   2895: #define inline 
                   2896: EOF
                   2897:  ;;
                   2898:   *)  cat >> confdefs.h <<EOF
                   2899: #define inline $ac_cv_c_inline
                   2900: EOF
                   2901:  ;;
                   2902: esac
                   2903: 
1.1.1.4 ! root     2904: if [ "x$ac_cv_c_inline" = "xno" ]; then
        !          2905:   ac_cv_c_inline=
        !          2906: fi
1.1       root     2907: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1.1.1.4 ! root     2908: echo "configure:2909: checking for mode_t" >&5
1.1       root     2909: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
                   2910:   echo $ac_n "(cached) $ac_c" 1>&6
                   2911: else
                   2912:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2913: #line 2914 "configure"
1.1       root     2914: #include "confdefs.h"
                   2915: #include <sys/types.h>
                   2916: #if STDC_HEADERS
                   2917: #include <stdlib.h>
1.1.1.4 ! root     2918: #include <stddef.h>
1.1       root     2919: #endif
                   2920: EOF
                   2921: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.4 ! root     2922:   egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1       root     2923:   rm -rf conftest*
                   2924:   ac_cv_type_mode_t=yes
                   2925: else
                   2926:   rm -rf conftest*
                   2927:   ac_cv_type_mode_t=no
                   2928: fi
                   2929: rm -f conftest*
                   2930: 
                   2931: fi
                   2932: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
                   2933: if test $ac_cv_type_mode_t = no; then
                   2934:   cat >> confdefs.h <<\EOF
                   2935: #define mode_t int
                   2936: EOF
                   2937: 
                   2938: fi
                   2939: 
                   2940: echo $ac_n "checking for off_t""... $ac_c" 1>&6
1.1.1.4 ! root     2941: echo "configure:2942: checking for off_t" >&5
1.1       root     2942: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
                   2943:   echo $ac_n "(cached) $ac_c" 1>&6
                   2944: else
                   2945:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2946: #line 2947 "configure"
1.1       root     2947: #include "confdefs.h"
                   2948: #include <sys/types.h>
                   2949: #if STDC_HEADERS
                   2950: #include <stdlib.h>
1.1.1.4 ! root     2951: #include <stddef.h>
1.1       root     2952: #endif
                   2953: EOF
                   2954: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.4 ! root     2955:   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1       root     2956:   rm -rf conftest*
                   2957:   ac_cv_type_off_t=yes
                   2958: else
                   2959:   rm -rf conftest*
                   2960:   ac_cv_type_off_t=no
                   2961: fi
                   2962: rm -f conftest*
                   2963: 
                   2964: fi
                   2965: echo "$ac_t""$ac_cv_type_off_t" 1>&6
                   2966: if test $ac_cv_type_off_t = no; then
                   2967:   cat >> confdefs.h <<\EOF
                   2968: #define off_t long
                   2969: EOF
                   2970: 
                   2971: fi
                   2972: 
                   2973: echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1.1.1.4 ! root     2974: echo "configure:2975: checking for pid_t" >&5
1.1       root     2975: if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
                   2976:   echo $ac_n "(cached) $ac_c" 1>&6
                   2977: else
                   2978:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     2979: #line 2980 "configure"
1.1       root     2980: #include "confdefs.h"
                   2981: #include <sys/types.h>
                   2982: #if STDC_HEADERS
                   2983: #include <stdlib.h>
1.1.1.4 ! root     2984: #include <stddef.h>
1.1       root     2985: #endif
                   2986: EOF
                   2987: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.4 ! root     2988:   egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1       root     2989:   rm -rf conftest*
                   2990:   ac_cv_type_pid_t=yes
                   2991: else
                   2992:   rm -rf conftest*
                   2993:   ac_cv_type_pid_t=no
                   2994: fi
                   2995: rm -f conftest*
                   2996: 
                   2997: fi
                   2998: echo "$ac_t""$ac_cv_type_pid_t" 1>&6
                   2999: if test $ac_cv_type_pid_t = no; then
                   3000:   cat >> confdefs.h <<\EOF
                   3001: #define pid_t int
                   3002: EOF
                   3003: 
                   3004: fi
                   3005: 
                   3006: echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1.1.1.4 ! root     3007: echo "configure:3008: checking for st_blocks in struct stat" >&5
1.1       root     3008: if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
                   3009:   echo $ac_n "(cached) $ac_c" 1>&6
                   3010: else
                   3011:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3012: #line 3013 "configure"
1.1       root     3013: #include "confdefs.h"
                   3014: #include <sys/types.h>
                   3015: #include <sys/stat.h>
1.1.1.4 ! root     3016: int main() {
1.1       root     3017: struct stat s; s.st_blocks;
                   3018: ; return 0; }
                   3019: EOF
1.1.1.4 ! root     3020: if { (eval echo configure:3021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3021:   rm -rf conftest*
                   3022:   ac_cv_struct_st_blocks=yes
                   3023: else
1.1.1.4 ! root     3024:   echo "configure: failed program was:" >&5
        !          3025:   cat conftest.$ac_ext >&5
1.1       root     3026:   rm -rf conftest*
                   3027:   ac_cv_struct_st_blocks=no
                   3028: fi
                   3029: rm -f conftest*
                   3030: fi
                   3031: 
                   3032: echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
                   3033: if test $ac_cv_struct_st_blocks = yes; then
                   3034:   cat >> confdefs.h <<\EOF
                   3035: #define HAVE_ST_BLOCKS 1
                   3036: EOF
                   3037: 
                   3038: else
                   3039:   LIBOBJS="$LIBOBJS fileblocks.o"
                   3040: fi
                   3041: 
                   3042: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.1.1.4 ! root     3043: echo "configure:3044: checking whether time.h and sys/time.h may both be included" >&5
1.1       root     3044: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
                   3045:   echo $ac_n "(cached) $ac_c" 1>&6
                   3046: else
                   3047:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3048: #line 3049 "configure"
1.1       root     3049: #include "confdefs.h"
                   3050: #include <sys/types.h>
                   3051: #include <sys/time.h>
                   3052: #include <time.h>
1.1.1.4 ! root     3053: int main() {
1.1       root     3054: struct tm *tp;
                   3055: ; return 0; }
                   3056: EOF
1.1.1.4 ! root     3057: if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3058:   rm -rf conftest*
                   3059:   ac_cv_header_time=yes
                   3060: else
1.1.1.4 ! root     3061:   echo "configure: failed program was:" >&5
        !          3062:   cat conftest.$ac_ext >&5
1.1       root     3063:   rm -rf conftest*
                   3064:   ac_cv_header_time=no
                   3065: fi
                   3066: rm -f conftest*
                   3067: fi
                   3068: 
                   3069: echo "$ac_t""$ac_cv_header_time" 1>&6
                   3070: if test $ac_cv_header_time = yes; then
                   3071:   cat >> confdefs.h <<\EOF
                   3072: #define TIME_WITH_SYS_TIME 1
                   3073: EOF
                   3074: 
                   3075: fi
                   3076: 
                   3077: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1.1.1.4 ! root     3078: echo "configure:3079: checking whether struct tm is in sys/time.h or time.h" >&5
1.1       root     3079: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
                   3080:   echo $ac_n "(cached) $ac_c" 1>&6
                   3081: else
                   3082:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3083: #line 3084 "configure"
1.1       root     3084: #include "confdefs.h"
                   3085: #include <sys/types.h>
                   3086: #include <time.h>
1.1.1.4 ! root     3087: int main() {
1.1       root     3088: struct tm *tp; tp->tm_sec;
                   3089: ; return 0; }
                   3090: EOF
1.1.1.4 ! root     3091: if { (eval echo configure:3092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3092:   rm -rf conftest*
                   3093:   ac_cv_struct_tm=time.h
                   3094: else
1.1.1.4 ! root     3095:   echo "configure: failed program was:" >&5
        !          3096:   cat conftest.$ac_ext >&5
1.1       root     3097:   rm -rf conftest*
                   3098:   ac_cv_struct_tm=sys/time.h
                   3099: fi
                   3100: rm -f conftest*
                   3101: fi
                   3102: 
                   3103: echo "$ac_t""$ac_cv_struct_tm" 1>&6
                   3104: if test $ac_cv_struct_tm = sys/time.h; then
                   3105:   cat >> confdefs.h <<\EOF
                   3106: #define TM_IN_SYS_TIME 1
                   3107: EOF
                   3108: 
                   3109: fi
                   3110: 
                   3111: 
                   3112: if test $ac_cv_prog_gcc = yes; then
                   3113:     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1.1.1.4 ! root     3114: echo "configure:3115: checking whether ${CC-cc} needs -traditional" >&5
1.1       root     3115: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
                   3116:   echo $ac_n "(cached) $ac_c" 1>&6
                   3117: else
                   3118:     ac_pattern="Autoconf.*'x'"
                   3119:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3120: #line 3121 "configure"
1.1       root     3121: #include "confdefs.h"
                   3122: #include <sgtty.h>
                   3123: Autoconf TIOCGETP
                   3124: EOF
                   3125: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   3126:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   3127:   rm -rf conftest*
                   3128:   ac_cv_prog_gcc_traditional=yes
                   3129: else
                   3130:   rm -rf conftest*
                   3131:   ac_cv_prog_gcc_traditional=no
                   3132: fi
                   3133: rm -f conftest*
                   3134: 
                   3135: 
                   3136:   if test $ac_cv_prog_gcc_traditional = no; then
                   3137:     cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3138: #line 3139 "configure"
1.1       root     3139: #include "confdefs.h"
                   3140: #include <termio.h>
                   3141: Autoconf TCGETA
                   3142: EOF
                   3143: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   3144:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   3145:   rm -rf conftest*
                   3146:   ac_cv_prog_gcc_traditional=yes
                   3147: fi
                   3148: rm -f conftest*
                   3149: 
                   3150:   fi
                   3151: fi
                   3152: 
                   3153: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
                   3154:   if test $ac_cv_prog_gcc_traditional = yes; then
                   3155:     CC="$CC -traditional"
                   3156:   fi
                   3157: fi
                   3158: 
                   3159: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1.1.1.4 ! root     3160: echo "configure:3161: checking for 8-bit clean memcmp" >&5
        !          3161: if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1.1       root     3162:   echo $ac_n "(cached) $ac_c" 1>&6
                   3163: else
                   3164:   if test "$cross_compiling" = yes; then
1.1.1.4 ! root     3165:   ac_cv_func_memcmp_clean=no
1.1       root     3166: else
1.1.1.4 ! root     3167:   cat > conftest.$ac_ext <<EOF
        !          3168: #line 3169 "configure"
1.1       root     3169: #include "confdefs.h"
                   3170: 
                   3171: main()
                   3172: {
                   3173:   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
                   3174:   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
                   3175: }
                   3176: 
                   3177: EOF
1.1.1.4 ! root     3178: if { (eval echo configure:3179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
        !          3179: then
        !          3180:   ac_cv_func_memcmp_clean=yes
1.1       root     3181: else
1.1.1.4 ! root     3182:   echo "configure: failed program was:" >&5
        !          3183:   cat conftest.$ac_ext >&5
        !          3184:   rm -fr conftest*
        !          3185:   ac_cv_func_memcmp_clean=no
1.1       root     3186: fi
                   3187: rm -fr conftest*
                   3188: fi
                   3189: 
1.1.1.4 ! root     3190: fi
        !          3191: 
        !          3192: echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
        !          3193: test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
1.1       root     3194: 
                   3195: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1.1.1.4 ! root     3196: echo "configure:3197: checking return type of signal handlers" >&5
1.1       root     3197: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
                   3198:   echo $ac_n "(cached) $ac_c" 1>&6
                   3199: else
                   3200:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3201: #line 3202 "configure"
1.1       root     3202: #include "confdefs.h"
                   3203: #include <sys/types.h>
                   3204: #include <signal.h>
                   3205: #ifdef signal
                   3206: #undef signal
                   3207: #endif
                   3208: #ifdef __cplusplus
                   3209: extern "C" void (*signal (int, void (*)(int)))(int);
                   3210: #else
                   3211: void (*signal ()) ();
                   3212: #endif
                   3213: 
1.1.1.4 ! root     3214: int main() {
1.1       root     3215: int i;
                   3216: ; return 0; }
                   3217: EOF
1.1.1.4 ! root     3218: if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3219:   rm -rf conftest*
                   3220:   ac_cv_type_signal=void
                   3221: else
1.1.1.4 ! root     3222:   echo "configure: failed program was:" >&5
        !          3223:   cat conftest.$ac_ext >&5
1.1       root     3224:   rm -rf conftest*
                   3225:   ac_cv_type_signal=int
                   3226: fi
                   3227: rm -f conftest*
                   3228: fi
                   3229: 
                   3230: echo "$ac_t""$ac_cv_type_signal" 1>&6
                   3231: cat >> confdefs.h <<EOF
                   3232: #define RETSIGTYPE $ac_cv_type_signal
                   3233: EOF
                   3234: 
                   3235: 
                   3236: echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
1.1.1.4 ! root     3237: echo "configure:3238: checking whether utime accepts a null argument" >&5
1.1       root     3238: if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
                   3239:   echo $ac_n "(cached) $ac_c" 1>&6
                   3240: else
                   3241:   rm -f conftestdata; > conftestdata
                   3242: # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
                   3243: if test "$cross_compiling" = yes; then
                   3244:   ac_cv_func_utime_null=no
                   3245: else
1.1.1.4 ! root     3246:   cat > conftest.$ac_ext <<EOF
        !          3247: #line 3248 "configure"
1.1       root     3248: #include "confdefs.h"
                   3249: #include <sys/types.h>
                   3250: #include <sys/stat.h>
                   3251: main() {
                   3252: struct stat s, t;
                   3253: exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
                   3254: && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
                   3255: && t.st_mtime - s.st_mtime < 120));
                   3256: }
                   3257: EOF
1.1.1.4 ! root     3258: if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
        !          3259: then
1.1       root     3260:   ac_cv_func_utime_null=yes
                   3261: else
1.1.1.4 ! root     3262:   echo "configure: failed program was:" >&5
        !          3263:   cat conftest.$ac_ext >&5
        !          3264:   rm -fr conftest*
1.1       root     3265:   ac_cv_func_utime_null=no
                   3266: fi
                   3267: rm -fr conftest*
1.1.1.4 ! root     3268: fi
        !          3269: 
1.1       root     3270: rm -f core core.* *.core
                   3271: fi
                   3272: 
                   3273: echo "$ac_t""$ac_cv_func_utime_null" 1>&6
                   3274: if test $ac_cv_func_utime_null = yes; then
                   3275:   cat >> confdefs.h <<\EOF
                   3276: #define HAVE_UTIME_NULL 1
                   3277: EOF
                   3278: 
                   3279: fi
                   3280: 
1.1.1.4 ! root     3281: for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir select strerror strstr statfs
1.1       root     3282: do
                   3283: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.4 ! root     3284: echo "configure:3285: checking for $ac_func" >&5
1.1       root     3285: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   3286:   echo $ac_n "(cached) $ac_c" 1>&6
                   3287: else
                   3288:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3289: #line 3290 "configure"
1.1       root     3290: #include "confdefs.h"
                   3291: /* System header to define __stub macros and hopefully few prototypes,
                   3292:     which can conflict with char $ac_func(); below.  */
                   3293: #include <assert.h>
                   3294: /* Override any gcc2 internal prototype to avoid an error.  */
                   3295: /* We use char because int might match the return type of a gcc2
                   3296:     builtin and then its argument prototype would still apply.  */
                   3297: char $ac_func();
                   3298: 
1.1.1.4 ! root     3299: int main() {
1.1       root     3300: 
                   3301: /* The GNU C library defines this for functions which it implements
                   3302:     to always fail with ENOSYS.  Some functions are actually named
                   3303:     something starting with __ and the normal name is an alias.  */
                   3304: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   3305: choke me
                   3306: #else
                   3307: $ac_func();
                   3308: #endif
                   3309: 
                   3310: ; return 0; }
                   3311: EOF
1.1.1.4 ! root     3312: if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1       root     3313:   rm -rf conftest*
                   3314:   eval "ac_cv_func_$ac_func=yes"
                   3315: else
1.1.1.4 ! root     3316:   echo "configure: failed program was:" >&5
        !          3317:   cat conftest.$ac_ext >&5
1.1       root     3318:   rm -rf conftest*
                   3319:   eval "ac_cv_func_$ac_func=no"
                   3320: fi
                   3321: rm -f conftest*
1.1.1.4 ! root     3322: fi
        !          3323: 
        !          3324: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
        !          3325:   echo "$ac_t""yes" 1>&6
        !          3326:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
        !          3327:   cat >> confdefs.h <<EOF
        !          3328: #define $ac_tr_func 1
        !          3329: EOF
        !          3330:  
        !          3331: else
        !          3332:   echo "$ac_t""no" 1>&6
        !          3333: fi
        !          3334: done
        !          3335: 
        !          3336: for ac_func in tcgetattr cfmakeraw readdir_r
        !          3337: do
        !          3338: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
        !          3339: echo "configure:3340: checking for $ac_func" >&5
        !          3340: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
        !          3341:   echo $ac_n "(cached) $ac_c" 1>&6
        !          3342: else
        !          3343:   cat > conftest.$ac_ext <<EOF
        !          3344: #line 3345 "configure"
        !          3345: #include "confdefs.h"
        !          3346: /* System header to define __stub macros and hopefully few prototypes,
        !          3347:     which can conflict with char $ac_func(); below.  */
        !          3348: #include <assert.h>
        !          3349: /* Override any gcc2 internal prototype to avoid an error.  */
        !          3350: /* We use char because int might match the return type of a gcc2
        !          3351:     builtin and then its argument prototype would still apply.  */
        !          3352: char $ac_func();
        !          3353: 
        !          3354: int main() {
        !          3355: 
        !          3356: /* The GNU C library defines this for functions which it implements
        !          3357:     to always fail with ENOSYS.  Some functions are actually named
        !          3358:     something starting with __ and the normal name is an alias.  */
        !          3359: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
        !          3360: choke me
        !          3361: #else
        !          3362: $ac_func();
        !          3363: #endif
1.1       root     3364: 
1.1.1.4 ! root     3365: ; return 0; }
        !          3366: EOF
        !          3367: if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          3368:   rm -rf conftest*
        !          3369:   eval "ac_cv_func_$ac_func=yes"
        !          3370: else
        !          3371:   echo "configure: failed program was:" >&5
        !          3372:   cat conftest.$ac_ext >&5
        !          3373:   rm -rf conftest*
        !          3374:   eval "ac_cv_func_$ac_func=no"
        !          3375: fi
        !          3376: rm -f conftest*
1.1       root     3377: fi
1.1.1.4 ! root     3378: 
1.1       root     3379: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   3380:   echo "$ac_t""yes" 1>&6
                   3381:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   3382:   cat >> confdefs.h <<EOF
                   3383: #define $ac_tr_func 1
                   3384: EOF
                   3385:  
                   3386: else
                   3387:   echo "$ac_t""no" 1>&6
                   3388: fi
                   3389: done
                   3390: 
                   3391: 
                   3392: echo $ac_n "checking how many args statfs takes""... $ac_c" 1>&6
1.1.1.4 ! root     3393: echo "configure:3394: checking how many args statfs takes" >&5
        !          3394: if [ "x$ac_cv_func_statfs" = "xyes" ]; then
1.1       root     3395:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3396: #line 3397 "configure"
1.1       root     3397: #include "confdefs.h"
                   3398: 
                   3399: #include "confdefs.h"
1.1.1.2   root     3400: #ifdef HAVE_SYS_TYPES_H
                   3401: #include <sys/types.h>
                   3402: #endif
                   3403: #ifdef HAVE_SYS_PARAM_H
                   3404: #include <sys/param.h>
                   3405: #endif
1.1       root     3406: #ifdef HAVE_SYS_MOUNT_H
                   3407: #include <sys/mount.h>
                   3408: #endif
1.1.1.2   root     3409: #ifdef HAVE_SYS_SELECT_H
                   3410: #include <sys/select.h>
                   3411: #endif
1.1       root     3412: #ifdef HAVE_SYS_VFS_H
                   3413: #include <sys/vfs.h>
                   3414: #endif
                   3415: #ifdef HAVE_SYS_STATFS_H
                   3416: #include <sys/statfs.h>
                   3417: #endif
                   3418: #ifdef HAVE_SYS_STATVFS_H
                   3419: #include <sys/statvfs.h>
                   3420: #endif
1.1.1.4 ! root     3421: int main() {
1.1       root     3422: struct statfs statbuf;statfs("/",&statbuf);
                   3423: ; return 0; }
                   3424: EOF
1.1.1.4 ! root     3425: if { (eval echo configure:3426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3426:   rm -rf conftest*
                   3427:   echo "$ac_t""2" 1>&6 
                   3428: STATFS_NO_ARGS=2
                   3429: else
1.1.1.4 ! root     3430:   echo "configure: failed program was:" >&5
        !          3431:   cat conftest.$ac_ext >&5
1.1       root     3432:   rm -rf conftest*
                   3433:   echo "$ac_t""4" 1>&6
                   3434: STATFS_NO_ARGS=4
                   3435: fi
                   3436: rm -f conftest*
                   3437: fi
                   3438: 
                   3439: echo $ac_n "checking whether to use f_bavail or f_bfree""... $ac_c" 1>&6
1.1.1.4 ! root     3440: echo "configure:3441: checking whether to use f_bavail or f_bfree" >&5
        !          3441: if [ "x$ac_cv_func_statfs" = "xyes" ]; then
1.1       root     3442:   cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3443: #line 3444 "configure"
1.1       root     3444: #include "confdefs.h"
                   3445: 
                   3446: #include "confdefs.h"
1.1.1.2   root     3447: #ifdef HAVE_SYS_TYPES_H
                   3448: #include <sys/types.h>
                   3449: #endif
                   3450: #ifdef HAVE_SYS_PARAM_H
                   3451: #include <sys/param.h>
                   3452: #endif
1.1       root     3453: #ifdef HAVE_SYS_MOUNT_H
                   3454: #include <sys/mount.h>
                   3455: #endif
1.1.1.2   root     3456: #ifdef HAVE_SYS_SELECT_H
                   3457: #include <sys/select.h>
                   3458: #endif
1.1       root     3459: #ifdef HAVE_SYS_VFS_H
                   3460: #include <sys/vfs.h>
                   3461: #endif
                   3462: #ifdef HAVE_SYS_STATFS_H
                   3463: #include <sys/statfs.h>
                   3464: #endif
                   3465: #ifdef HAVE_SYS_STATVFS_H
                   3466: #include <sys/statvfs.h>
                   3467: #endif
1.1.1.4 ! root     3468: int main() {
1.1       root     3469: struct statfs statbuf;statbuf.f_bavail;
                   3470: ; return 0; }
                   3471: EOF
1.1.1.4 ! root     3472: if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       root     3473:   rm -rf conftest*
                   3474:   echo "$ac_t""f_bavail" 1>&6 
                   3475: STATBUF_BAVAIL=f_bavail
                   3476: else
1.1.1.4 ! root     3477:   echo "configure: failed program was:" >&5
        !          3478:   cat conftest.$ac_ext >&5
1.1       root     3479:   rm -rf conftest*
                   3480:   echo "$ac_t""f_bfree" 1>&6
                   3481: STATBUF_BAVAIL=f_bfree
                   3482: fi
                   3483: rm -f conftest*
                   3484: fi
                   3485: 
1.1.1.2   root     3486: 
1.1.1.4 ! root     3487: if [ "x$HAVE_NCURSES_LIB" = "xyes" ]; then
        !          3488:   if [ "x$ac_cv_header_ncurses_h" = "xno" -a "x$ac_cv_header_curses_h" = "xno" ]; then
        !          3489:     echo "Installation problem, found libncurses but neither curses.h nor ncurses.h!"
        !          3490:     HAVE_NCURSES_LIB=no
        !          3491:     NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3492:   else
        !          3493:     if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
        !          3494:       echo $ac_n "checking for attr_t in curses.h""... $ac_c" 1>&6
        !          3495: echo "configure:3496: checking for attr_t in curses.h" >&5
        !          3496:       cat > conftest.$ac_ext <<EOF
        !          3497: #line 3498 "configure"
        !          3498: #include "confdefs.h"
        !          3499: #include <curses.h>
        !          3500: int main() {
        !          3501: { attr_t a; a = A_NORMAL; }
        !          3502: ; return 0; }
        !          3503: EOF
        !          3504: if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
        !          3505:   rm -rf conftest*
        !          3506:   echo "$ac_t""yes" 1>&6
1.1.1.2   root     3507: else
1.1.1.4 ! root     3508:   echo "configure: failed program was:" >&5
        !          3509:   cat conftest.$ac_ext >&5
        !          3510:   rm -rf conftest*
        !          3511:   
        !          3512:         ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
        !          3513:         echo "$ac_t""no" 1>&6
        !          3514:        NR_WARNINGS=`expr $NR_WARNINGS + 1`
        !          3515:        echo "Please install a newer version of libncurses if you can."
        !          3516:       
        !          3517: fi
        !          3518: rm -f conftest*
        !          3519:     else
        !          3520:       echo $ac_n "checking for attr_t in ncurses.h""... $ac_c" 1>&6
        !          3521: echo "configure:3522: checking for attr_t in ncurses.h" >&5
        !          3522:       cat > conftest.$ac_ext <<EOF
        !          3523: #line 3524 "configure"
        !          3524: #include "confdefs.h"
        !          3525: #include <ncurses.h>
        !          3526: int main() {
        !          3527: { attr_t a; a = A_NORMAL; }
        !          3528: ; return 0; }
        !          3529: EOF
        !          3530: if { (eval echo configure:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
        !          3531:   rm -rf conftest*
        !          3532:   echo "$ac_t""yes" 1>&6
1.1.1.2   root     3533: else
1.1.1.4 ! root     3534:   echo "configure: failed program was:" >&5
        !          3535:   cat conftest.$ac_ext >&5
        !          3536:   rm -rf conftest*
        !          3537:   
        !          3538:         ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
        !          3539:         echo "$ac_t""no" 1>&6
        !          3540:        NR_WARNINGS=`expr $NR_WARNINGS + 1`
        !          3541:        echo "Please install a newer version of libncurses if you can."
        !          3542:       
        !          3543: fi
        !          3544: rm -f conftest*
1.1.1.2   root     3545:     fi
1.1.1.4 ! root     3546:   fi
1.1.1.2   root     3547: fi
1.1.1.4 ! root     3548: 
        !          3549: DO_PROFILING=no
        !          3550: WANT_GGI=dunno
        !          3551: WANT_SVGALIB=dunno
        !          3552: WANT_ASCIIART=dunno
        !          3553: WANT_UI=dunno
        !          3554: WANT_NCURSES_UI=no
        !          3555: WANT_DGA=no
        !          3556: WANT_VIDMODE=no
        !          3557: SYSTEM_IS_ELF=dunno
        !          3558: 
        !          3559: # Check whether --enable-profiling or --disable-profiling was given.
        !          3560: if test "${enable_profiling+set}" = set; then
        !          3561:   enableval="$enable_profiling"
        !          3562:   DO_PROFILING=$enableval
1.1.1.2   root     3563: fi
1.1.1.4 ! root     3564: 
        !          3565: # Check whether --with-svgalib or --without-svgalib was given.
        !          3566: if test "${with_svgalib+set}" = set; then
        !          3567:   withval="$with_svgalib"
        !          3568:   WANT_SVGALIB=$withval
1.1.1.2   root     3569: fi
                   3570: 
1.1.1.4 ! root     3571: # Check whether --with-ggi or --without-ggi was given.
        !          3572: if test "${with_ggi+set}" = set; then
        !          3573:   withval="$with_ggi"
        !          3574:   WANT_GGI=$withval
1.1.1.2   root     3575: fi
                   3576: 
1.1.1.4 ! root     3577: # Check whether --with-asciiart or --without-asciiart was given.
        !          3578: if test "${with_asciiart+set}" = set; then
        !          3579:   withval="$with_asciiart"
        !          3580:   WANT_ASCIIART=$withval
        !          3581: fi
1.1.1.3   root     3582: 
1.1.1.4 ! root     3583: # Check whether --enable-dga or --disable-dga was given.
        !          3584: if test "${enable_dga+set}" = set; then
        !          3585:   enableval="$enable_dga"
        !          3586:   WANT_DGA=$enableval
        !          3587: fi
        !          3588: 
        !          3589: # Check whether --enable-vidmode or --disable-vidmode was given.
        !          3590: if test "${enable_vidmode+set}" = set; then
        !          3591:   enableval="$enable_vidmode"
        !          3592:   WANT_VIDMODE=$enableval
        !          3593: fi
        !          3594: 
        !          3595: # Check whether --enable-ui or --disable-ui was given.
        !          3596: if test "${enable_ui+set}" = set; then
        !          3597:   enableval="$enable_ui"
        !          3598:   WANT_UI=$enableval
        !          3599: fi
        !          3600: 
        !          3601: # Check whether --with-elf or --without-elf was given.
        !          3602: if test "${with_elf+set}" = set; then
        !          3603:   withval="$with_elf"
        !          3604:   SYSTEM_IS_ELF=$withval
        !          3605: fi
        !          3606: 
        !          3607: 
        !          3608: 
        !          3609: if [ "x$WANT_DGA" = "xyes" ]; then
        !          3610:   if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_GGI" = "xyes" -o "x$WANT_ASCIIART" = "xyes" ]; then
        !          3611:     echo "You can't enable DGA for SVGAlib, GGI and ncurses targets!"
        !          3612:     NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3613:     WANT_DGA=no
        !          3614:   fi
        !          3615: fi
        !          3616: 
        !          3617: if [ "x$WANT_DGA" = "xyes" -a "x$no_x" = "xyes" ]; then
        !          3618:   echo "Ignoring --enable-dga, since X was disabled or not found."
        !          3619:   NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3620:   WANT_DGA=no
        !          3621: fi
        !          3622: 
        !          3623: if [ "x$WANT_DGA" = "xno" -a "x$WANT_VIDMODE" = "xyes" ]; then
        !          3624:   echo "The XF86VidMode extension can only be used in DGA mode. Disabling it."
        !          3625:   NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3626:   WANT_VIDMODE=no
        !          3627: fi
        !          3628: 
        !          3629: 
        !          3630: if [ "x$WANT_SVGALIB" = "xyes" ]; then
        !          3631:   if [ "x$HAVE_SVGA_LIB" = "xno" ]; then
        !          3632:     echo "Could not find libsvga, disabling svgalib support."
        !          3633:     NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3634:     WANT_SVGALIB=no
1.1       root     3635:   else
1.1.1.4 ! root     3636:     no_x=yes
        !          3637:   fi
        !          3638: fi
        !          3639: 
        !          3640: if [ "x$WANT_GGI" = "xyes" ]; then
        !          3641:   if [ "x$HAVE_GGI_LIB" = "xno" ]; then
        !          3642:     echo "Could not find libggi, disabling GGI support."
        !          3643:     NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3644:     WANT_GGI=no
        !          3645:   else if [ "x$WANT_SVGALIB" = "xyes" ]; then
        !          3646:     echo "You can't configure for both SVGAlib and GGI. Disabling GGI."
        !          3647:     NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3648:     WANT_GGI=no
        !          3649:   else
        !          3650:     no_x=yes
        !          3651:   fi
        !          3652:   fi
        !          3653: fi
        !          3654: 
        !          3655: if [ "x$WANT_ASCIIART" = "xyes" ]; then
        !          3656:   if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
        !          3657:     echo "Could not find libncurses, disabling ascii art support."
        !          3658:     NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3659:     WANT_ASCIIART=no
        !          3660:   else if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_GGI" = "xyes" ]; then
        !          3661:     echo "You can't configure for both ncurses and another target. Disabling ncurses."
        !          3662:     NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3663:     WANT_ASCIIART=no
        !          3664:   else
        !          3665:     no_x=yes
        !          3666:   fi
        !          3667:   fi
        !          3668: fi
        !          3669: 
        !          3670: 
        !          3671: if [ "x$WANT_DGA" = "xyes" ]; then
        !          3672:   TMP_SAVE_LIBS=$LIBS
        !          3673:   LIBS="$X_LIBS $LIBS"
        !          3674:   echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
        !          3675: echo "configure:3676: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
        !          3676: ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
1.1.1.2   root     3677: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3678:   echo $ac_n "(cached) $ac_c" 1>&6
                   3679: else
                   3680:   ac_save_LIBS="$LIBS"
1.1.1.4 ! root     3681: LIBS="-lXxf86dga  $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS  $LIBS"
1.1.1.2   root     3682: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3683: #line 3684 "configure"
1.1.1.2   root     3684: #include "confdefs.h"
                   3685: /* Override any gcc2 internal prototype to avoid an error.  */
                   3686: /* We use char because int might match the return type of a gcc2
                   3687:     builtin and then its argument prototype would still apply.  */
1.1.1.4 ! root     3688: char XF86DGAQueryExtension();
1.1.1.2   root     3689: 
1.1.1.4 ! root     3690: int main() {
        !          3691: XF86DGAQueryExtension()
1.1.1.2   root     3692: ; return 0; }
                   3693: EOF
1.1.1.4 ! root     3694: if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.2   root     3695:   rm -rf conftest*
                   3696:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3697: else
1.1.1.4 ! root     3698:   echo "configure: failed program was:" >&5
        !          3699:   cat conftest.$ac_ext >&5
1.1.1.2   root     3700:   rm -rf conftest*
                   3701:   eval "ac_cv_lib_$ac_lib_var=no"
                   3702: fi
                   3703: rm -f conftest*
                   3704: LIBS="$ac_save_LIBS"
                   3705: 
                   3706: fi
                   3707: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3708:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root     3709:   HAVE_DGA=yes
1.1.1.2   root     3710: else
                   3711:   echo "$ac_t""no" 1>&6
1.1.1.4 ! root     3712: HAVE_DGA=no
1.1.1.2   root     3713: fi
                   3714: 
1.1.1.4 ! root     3715:   LIBS=$TMP_SAVE_LIBS
        !          3716:   if [ "x$HAVE_DGA" = "xno" ]; then
        !          3717:     echo "Could not find DGA extension, ignoring --enable-dga."
        !          3718:     NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3719:     WANT_DGA=no
1.1.1.3   root     3720:   fi
1.1.1.2   root     3721: fi
                   3722: 
1.1.1.4 ! root     3723: if [ "x$WANT_VIDMODE" = "xyes" ]; then
        !          3724:   TMP_SAVE_LIBS=$LIBS
        !          3725:   LIBS="$X_LIBS $LIBS"
        !          3726:   echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
        !          3727: echo "configure:3728: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
        !          3728: ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
1.1.1.3   root     3729: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3730:   echo $ac_n "(cached) $ac_c" 1>&6
                   3731: else
                   3732:   ac_save_LIBS="$LIBS"
1.1.1.4 ! root     3733: LIBS="-lXxf86vm  $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS  $LIBS"
1.1.1.3   root     3734: cat > conftest.$ac_ext <<EOF
1.1.1.4 ! root     3735: #line 3736 "configure"
1.1.1.3   root     3736: #include "confdefs.h"
                   3737: /* Override any gcc2 internal prototype to avoid an error.  */
                   3738: /* We use char because int might match the return type of a gcc2
                   3739:     builtin and then its argument prototype would still apply.  */
1.1.1.4 ! root     3740: char XF86VidModeQueryExtension();
1.1.1.3   root     3741: 
1.1.1.4 ! root     3742: int main() {
        !          3743: XF86VidModeQueryExtension()
1.1.1.3   root     3744: ; return 0; }
                   3745: EOF
1.1.1.4 ! root     3746: if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.3   root     3747:   rm -rf conftest*
                   3748:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3749: else
1.1.1.4 ! root     3750:   echo "configure: failed program was:" >&5
        !          3751:   cat conftest.$ac_ext >&5
1.1.1.3   root     3752:   rm -rf conftest*
                   3753:   eval "ac_cv_lib_$ac_lib_var=no"
                   3754: fi
                   3755: rm -f conftest*
                   3756: LIBS="$ac_save_LIBS"
                   3757: 
                   3758: fi
                   3759: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3760:   echo "$ac_t""yes" 1>&6
1.1.1.4 ! root     3761:   HAVE_VIDMODE=yes
1.1.1.3   root     3762: else
                   3763:   echo "$ac_t""no" 1>&6
1.1.1.4 ! root     3764: HAVE_VIDMODE=no
1.1.1.3   root     3765: fi
                   3766: 
1.1.1.4 ! root     3767:   LIBS=$TMP_SAVE_LIBS
        !          3768:   if [ "x$HAVE_VIDMODE" = "xno" ]; then
        !          3769:     echo "Could not find VidMode extension, ignoring --enable-vidmode."
        !          3770:     NR_ERRORS=`expr $NR_ERRORS + 1`
        !          3771:     WANT_VIDMODE=no
1.1.1.3   root     3772:   fi
1.1.1.4 ! root     3773: fi
        !          3774: 
        !          3775: # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
        !          3776: if test "${with_gtk_prefix+set}" = set; then
        !          3777:   withval="$with_gtk_prefix"
        !          3778:   gtk_config_prefix="$withval"
        !          3779: else
        !          3780:   gtk_config_prefix=""
        !          3781: fi
        !          3782: 
        !          3783: # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
        !          3784: if test "${with_gtk_exec_prefix+set}" = set; then
        !          3785:   withval="$with_gtk_exec_prefix"
        !          3786:   gtk_config_exec_prefix="$withval"
        !          3787: else
        !          3788:   gtk_config_exec_prefix=""
        !          3789: fi
        !          3790: 
        !          3791: # Check whether --enable-gtktest or --disable-gtktest was given.
        !          3792: if test "${enable_gtktest+set}" = set; then
        !          3793:   enableval="$enable_gtktest"
        !          3794:   :
        !          3795: else
        !          3796:   enable_gtktest=yes
        !          3797: fi
        !          3798: 
        !          3799: 
        !          3800:   if test x$gtk_config_exec_prefix != x ; then
        !          3801:      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
        !          3802:      if test x${GTK_CONFIG+set} != xset ; then
        !          3803:         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
        !          3804:      fi
        !          3805:   fi
        !          3806:   if test x$gtk_config_prefix != x ; then
        !          3807:      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
        !          3808:      if test x${GTK_CONFIG+set} != xset ; then
        !          3809:         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
        !          3810:      fi
        !          3811:   fi
        !          3812: 
        !          3813:   # Extract the first word of "gtk-config", so it can be a program name with args.
        !          3814: set dummy gtk-config; ac_word=$2
        !          3815: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
        !          3816: echo "configure:3817: checking for $ac_word" >&5
        !          3817: if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
        !          3818:   echo $ac_n "(cached) $ac_c" 1>&6
        !          3819: else
        !          3820:   case "$GTK_CONFIG" in
        !          3821:   /*)
        !          3822:   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
        !          3823:   ;;
        !          3824:   *)
        !          3825:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
        !          3826:   for ac_dir in $PATH; do
        !          3827:     test -z "$ac_dir" && ac_dir=.
        !          3828:     if test -f $ac_dir/$ac_word; then
        !          3829:       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
        !          3830:       break
        !          3831:     fi
        !          3832:   done
        !          3833:   IFS="$ac_save_ifs"
        !          3834:   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
        !          3835:   ;;
        !          3836: esac
        !          3837: fi
        !          3838: GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
        !          3839: if test -n "$GTK_CONFIG"; then
        !          3840:   echo "$ac_t""$GTK_CONFIG" 1>&6
        !          3841: else
        !          3842:   echo "$ac_t""no" 1>&6
        !          3843: fi
        !          3844: 
        !          3845:   min_gtk_version=0.99.7
        !          3846:   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
        !          3847: echo "configure:3848: checking for GTK - version >= $min_gtk_version" >&5
        !          3848:   no_gtk=""
        !          3849:   if test "$GTK_CONFIG" = "no" ; then
        !          3850:     no_gtk=yes
        !          3851:   else
        !          3852:     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
        !          3853:     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
        !          3854:     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
        !          3855:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
        !          3856:     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
        !          3857:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
        !          3858:     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
        !          3859:            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
        !          3860:     if test "x$enable_gtktest" = "xyes" ; then
        !          3861:       ac_save_CFLAGS="$CFLAGS"
        !          3862:       ac_save_LIBS="$LIBS"
        !          3863:       CFLAGS="$CFLAGS $GTK_CFLAGS"
        !          3864:       LIBS="$LIBS $GTK_LIBS"
        !          3865:       rm -f conf.gtktest
        !          3866:       if test "$cross_compiling" = yes; then
        !          3867:   echo $ac_n "cross compiling; assumed OK... $ac_c"
        !          3868: else
        !          3869:   cat > conftest.$ac_ext <<EOF
        !          3870: #line 3871 "configure"
        !          3871: #include "confdefs.h"
        !          3872: 
        !          3873: #include <gtk/gtk.h>
        !          3874: #include <stdio.h>
        !          3875: 
        !          3876: int 
        !          3877: main ()
1.1.1.3   root     3878: {
1.1.1.4 ! root     3879:   int major, minor, micro;
        !          3880: 
        !          3881:   system ("touch conf.gtktest");
        !          3882: 
        !          3883:   if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
        !          3884:      printf("%s, bad version string\n", "$min_gtk_version");
        !          3885:      exit(1);
        !          3886:    }
        !          3887: 
        !          3888:   if ((gtk_major_version != $gtk_config_major_version) ||
        !          3889:       (gtk_minor_version != $gtk_config_minor_version) ||
        !          3890:       (gtk_micro_version != $gtk_config_micro_version))
        !          3891:     {
        !          3892:       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
        !          3893:              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
        !          3894:              gtk_major_version, gtk_minor_version, gtk_micro_version);
        !          3895:       printf ("*** was found! If gtk-config was correct, then it is best\n");
        !          3896:       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
        !          3897:       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
        !          3898:       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
        !          3899:       printf("*** required on your system.\n");
        !          3900:       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
        !          3901:       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
        !          3902:       printf("*** before re-running configure\n");
        !          3903:     } 
        !          3904:   else
        !          3905:     {
        !          3906:       if ((gtk_major_version > major) ||
        !          3907:         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
        !          3908:         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
        !          3909:       {
        !          3910:         return 0;
        !          3911:        }
        !          3912:      else
        !          3913:       {
        !          3914:         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
        !          3915:                gtk_major_version, gtk_minor_version, gtk_micro_version);
        !          3916:         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
        !          3917:               major, minor, micro);
        !          3918:         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
        !          3919:         printf("***\n");
        !          3920:         printf("*** If you have already installed a sufficiently new version, this error\n");
        !          3921:         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
        !          3922:         printf("*** being found. The easiest way to fix this is to remove the old version\n");
        !          3923:         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
        !          3924:         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
        !          3925:         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
        !          3926:         printf("*** so that the correct libraries are found at run-time))\n");
        !          3927:       }
        !          3928:     }
        !          3929:   return 1;
1.1.1.3   root     3930: }
1.1.1.4 ! root     3931: 
        !          3932: EOF
        !          3933: if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
        !          3934: then
        !          3935:   :
        !          3936: else
        !          3937:   echo "configure: failed program was:" >&5
        !          3938:   cat conftest.$ac_ext >&5
        !          3939:   rm -fr conftest*
        !          3940:   no_gtk=yes
        !          3941: fi
        !          3942: rm -fr conftest*
        !          3943: fi
        !          3944: 
        !          3945:        CFLAGS="$ac_save_CFLAGS"
        !          3946:        LIBS="$ac_save_LIBS"
        !          3947:      fi
        !          3948:   fi
        !          3949:   if test "x$no_gtk" = x ; then
        !          3950:      echo "$ac_t""yes" 1>&6
        !          3951:      :     
        !          3952:   else
        !          3953:      echo "$ac_t""no" 1>&6
        !          3954:      if test "$GTK_CONFIG" = "no" ; then
        !          3955:        echo "*** The gtk-config script installed by GTK could not be found"
        !          3956:        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
        !          3957:        echo "*** your path, or set the GTK_CONFIG environment variable to the"
        !          3958:        echo "*** full path to gtk-config."
        !          3959:      else
        !          3960:        if test -f conf.gtktest ; then
        !          3961:         :
        !          3962:        else
        !          3963:           echo "*** Could not run GTK test program, checking why..."
        !          3964:           CFLAGS="$CFLAGS $GTK_CFLAGS"
        !          3965:           LIBS="$LIBS $GTK_LIBS"
        !          3966:           cat > conftest.$ac_ext <<EOF
        !          3967: #line 3968 "configure"
        !          3968: #include "confdefs.h"
        !          3969: 
        !          3970: #include <gtk/gtk.h>
        !          3971: #include <stdio.h>
        !          3972: 
        !          3973: int main() {
        !          3974:  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
        !          3975: ; return 0; }
1.1.1.3   root     3976: EOF
1.1.1.4 ! root     3977: if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
        !          3978:   rm -rf conftest*
        !          3979:    echo "*** The test program compiled, but did not run. This usually means"
        !          3980:           echo "*** that the run-time linker is not finding GTK or finding the wrong"
        !          3981:           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
        !          3982:           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
        !          3983:           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
        !          3984:           echo "*** is required on your system"
        !          3985:          echo "***"
        !          3986:           echo "*** If you have an old version installed, it is best to remove it, although"
        !          3987:           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
        !          3988:           echo "***"
        !          3989:           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
        !          3990:           echo "*** came with the system with the command"
        !          3991:           echo "***"
        !          3992:           echo "***    rpm --erase --nodeps gtk gtk-devel" 
        !          3993: else
        !          3994:   echo "configure: failed program was:" >&5
        !          3995:   cat conftest.$ac_ext >&5
        !          3996:   rm -rf conftest*
        !          3997:    echo "*** The test program failed to compile or link. See the file config.log for the"
        !          3998:           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
        !          3999:           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
        !          4000:           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
        !          4001: fi
        !          4002: rm -f conftest*
        !          4003:           CFLAGS="$ac_save_CFLAGS"
        !          4004:           LIBS="$ac_save_LIBS"
        !          4005:        fi
        !          4006:      fi
        !          4007:      GTK_CFLAGS=""
        !          4008:      GTK_LIBS=""
        !          4009:      :
1.1.1.3   root     4010:   fi
1.1.1.4 ! root     4011:   
        !          4012:   
        !          4013:   rm -f conf.gtktest
1.1.1.3   root     4014: 
1.1.1.4 ! root     4015: 
        !          4016: if [ "x$WANT_UI" = "xyes" -a "x$WANT_DGA" = "xyes" ]; then
        !          4017:   echo "Can't use a GUI with DGA - disabling DGA."
        !          4018:   NR_ERRORS=`expr $NR_ERRORS + 1`
        !          4019:   WAMT_DGA=no
        !          4020:   WANT_VIDMODE=no
        !          4021: fi
        !          4022: 
        !          4023: if [ "x$WANT_DGA" = "xyes" ]; then
        !          4024:   WANT_UI=no
        !          4025: fi
        !          4026: 
        !          4027: 
        !          4028: SHM_SUPPORT_LINKS=0
        !          4029: if [ "x$no_x" != "xyes" -a "x$WANT_DGA" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
        !          4030:   echo $ac_n "checking whether the X11 MIT-SHM extension can be compiled in""... $ac_c" 1>&6
        !          4031: echo "configure:4032: checking whether the X11 MIT-SHM extension can be compiled in" >&5
        !          4032:   TMP_SAVE_CFLAGS=$CFLAGS
        !          4033:   TMP_SAVE_LIBS=$LIBS
        !          4034:   CFLAGS="$CFLAGS $X_CFLAGS"
        !          4035:   LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"
        !          4036:   cat > conftest.$ac_ext <<EOF
        !          4037: #line 4038 "configure"
1.1.1.2   root     4038: #include "confdefs.h"
                   4039: 
1.1.1.4 ! root     4040: #include "confdefs.h"
        !          4041: #ifdef HAVE_SYS_TYPES_H
        !          4042: #include <sys/types.h>
        !          4043: #endif
        !          4044: #include <X11/Xlib.h>
        !          4045: #include <X11/Xutil.h>
        !          4046: #include <X11/keysym.h>
        !          4047: #include <X11/cursorfont.h>
        !          4048: #include <sys/ipc.h>
        !          4049: #include <sys/shm.h>
        !          4050: #include <X11/extensions/XShm.h>
        !          4051: int main() {
        !          4052: 
        !          4053: static XShmSegmentInfo shminfo;
        !          4054: static Display *display;
        !          4055: void foo(void)
        !          4056: {
        !          4057: XShmAttach(display, &shminfo);
        !          4058: XSync(display,0);
        !          4059: shmctl(shminfo.shmid, IPC_RMID, 0);
        !          4060: }
1.1.1.2   root     4061: ; return 0; }
                   4062: EOF
1.1.1.4 ! root     4063: if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.2   root     4064:   rm -rf conftest*
1.1.1.4 ! root     4065:   SHM_SUPPORT_LINKS=1
        !          4066: echo "$ac_t""yes" 1>&6
1.1       root     4067: else
1.1.1.4 ! root     4068:   echo "configure: failed program was:" >&5
        !          4069:   cat conftest.$ac_ext >&5
1.1.1.2   root     4070:   rm -rf conftest*
1.1.1.4 ! root     4071:   SHM_SUPPORT_LINKS=0
        !          4072: echo "$ac_t""no" 1>&6
1.1       root     4073: fi
1.1.1.2   root     4074: rm -f conftest*
1.1.1.4 ! root     4075:   CFLAGS=$TMP_SAVE_CFLAGS
        !          4076:   LIBS=$TMP_SAVE_LIBS
1.1       root     4077: fi
                   4078: 
1.1.1.4 ! root     4079: MATHLIB=-lm
        !          4080: DEBUGOBJS="debug.o"
        !          4081: 
        !          4082: echo $ac_n "checking which target to use""... $ac_c" 1>&6
        !          4083: echo "configure:4084: checking which target to use" >&5
        !          4084: 
        !          4085: if [ "x$HAVE_BEOS" = "xyes" ]; then
        !          4086:   echo "$ac_t""BeOS" 1>&6
        !          4087:   MATHLIB=
        !          4088:   TARGET=beos
        !          4089:   TARGETDEP=t-beos.h
        !          4090:   GFXOBJS=osdep/beos.o
        !          4091:   GUIOBJS=
        !          4092:   OPTIMIZE_CFLAGS=-O7
        !          4093: else if [ "x$HAVE_POS" = "xyes" ]; then
        !          4094:   echo "$ac_t""p.OS" 1>&6
        !          4095:   TARGET=p_os
        !          4096:   TARGETDEP=t-pos.h
        !          4097:   GFXOBJS="osdep/pos-win.o osdep/pos-disk.o osdep/pos-rexx.o"
        !          4098:   GUIOBJS="osdep/pos-gui.o"
        !          4099: else if [ "x$HAVE_AMIGA_LIB" = "xyes" ]; then
        !          4100:   echo "$ac_t""AmigaOS" 1>&6
        !          4101:   TARGET=amigaos
        !          4102:   TARGETDEP=t-amiga.h
        !          4103:   GFXOBJS="osdep/ami-win.o osdep/ami-disk.o osdep/ami-rexx.o osdep/ami-appw.o"
        !          4104:   GUIOBJS="osdep/ami-gui.o"
        !          4105: else if [ "x$HAVE_NEXT_LIB" = "xyes" ]; then
        !          4106:   echo "$ac_t""NeXTStep" 1>&6
        !          4107:   MATHLIB=
        !          4108:   TARGET=next
        !          4109:   GFXOBJS="NeXTwin.o"
        !          4110:   GUIOBJS=
        !          4111:   TARGETDEP=t-next.h
        !          4112:   LIBRARIES="-sectcreate __ICON __header ../Uae.app/Uae.iconheader -segprot __ICON r r -sectcreate __ICON app ../Uae.app/Uae.tiff -lMedia_s -lNeXT_s"
        !          4113: else
        !          4114:     
        !          4115:   if [ "x$no_x" = "xyes" ]; then
        !          4116:     if [ "x$WANT_SVGALIB" != "xyes" -a "x$WANT_GGI" != "xyes" -a "x$WANT_ASCIIART" != "xyes" ]; then
        !          4117:       if [ "x$WANT_SVGALIB" != "xno" -a "x$HAVE_SVGA_LIB" = "xyes" ]; then
        !          4118:         WANT_SVGALIB=yes
        !          4119:       else if [ "x$WANT_GGI" != "xno" -a "x$HAVE_GGI_LIB" = "xyes" ]; then
        !          4120:         WANT_GGI=yes
        !          4121:       else if [ "x$WANT_ASCIIART" != "xno" -a "x$HAVE_NCURSES_LIB" = "xyes" ]; then
        !          4122:         WANT_ASCIIART=yes
        !          4123:       fi
        !          4124:       fi
        !          4125:       fi
        !          4126:     fi
1.1.1.3   root     4127:   fi
1.1.1.4 ! root     4128: 
        !          4129:   if [ "x$WANT_GGI" = "xyes" ]; then
        !          4130:     echo "$ac_t""GGI" 1>&6
        !          4131:     TARGET=ggilib
        !          4132:     TARGETDEP=t-ggi.h
        !          4133:     WANT_NCURSES_UI=yes
        !          4134:     GFXOBJS=ggi.o
        !          4135:     LIBRARIES="-ldl -lggi"
        !          4136:     LDFLAGS="-rdynamic $LDFLAGS"
        !          4137:   else if [ "x$WANT_SVGALIB" = "xyes" ]; then
        !          4138:     echo "$ac_t""SVGAlib" 1>&6
        !          4139:     TARGET=svgalib
        !          4140:     TARGETDEP=t-svgalib.h
        !          4141:     GFXOBJS=svga.o
        !          4142:     LIBRARIES="-lvga"
        !          4143:     WANT_NCURSES_UI=yes
        !          4144:   else if [ "x$WANT_ASCIIART" = "xyes" ]; then
        !          4145:     echo "$ac_t""ncurses ASCII art" 1>&6
        !          4146:     TARGET=asciiart
        !          4147:     TARGETDEP=t-ascii.h
        !          4148:     GFXOBJS="ncurses.o"
        !          4149:     GUIOBJS="tui.o svgancui.o"
        !          4150:     LIBRARIES="-lncurses"
        !          4151:   else if [ "x$no_x" = "xyes" ]; then
        !          4152:     echo "$ac_t""Ummm...." 1>&6
        !          4153:     echo "Fatal error: No graphics system found, don't know what target to use."
        !          4154:     exit 1
        !          4155:   else
        !          4156:     echo "$ac_t""X11" 1>&6
        !          4157:     TARGET=x11
        !          4158:     TARGETDEP=t-x11.h
        !          4159:     GFXOBJS=xwin.o
        !          4160:     GUIOBJS=nogui.o
        !          4161: 
        !          4162:     LIBRARIES="$X_LIBS $X_PRE_LIBS"
        !          4163:         if [ "x$WANT_DGA" = "xyes" ]; then
        !          4164:       LIBRARIES="$LIBRARIES -lXxf86dga"
        !          4165:       X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION"
        !          4166:       if [ "x$WANT_VIDMODE" = "xyes" ]; then
        !          4167:         LIBRARIES="$LIBRARIES -lXxf86vm"
        !          4168:        X_CFLAGS="$X_CFLAGS -DUSE_VIDMODE_EXTENSION"
        !          4169:       fi
        !          4170:     fi
        !          4171:     LIBRARIES="$LIBRARIES -lXext -lX11 $X_EXTRA_LIBS"
        !          4172: 
        !          4173:     if [ "x$WANT_UI" != "xno" ]; then
        !          4174:       if [ "x$no_gtk" = "xyes" ]; then
        !          4175:        echo "Did not find gtk+, disabling user interface"
        !          4176:        GTK_CFLAGS=
        !          4177:        GTK_LIBS=
        !          4178:        if [ "x$WANT_UI" = "xyes" ]; then
        !          4179:          NR_ERRORS=`expr $NR_ERRORS + 1`
        !          4180:        fi
1.1       root     4181:       else
1.1.1.4 ! root     4182:         echo "Using gtk+ GUI."
        !          4183:        LIBRARIES="-lgtk -lgdk -lglib $LIBRARIES"
        !          4184:        NEED_THREAD_SUPPORT=yes
        !          4185:        ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_GTK_GUI"
        !          4186:        GUIOBJS=gtkui.o
1.1       root     4187:       fi
                   4188:     fi
1.1.1.4 ! root     4189:   fi
        !          4190:   fi
        !          4191:   fi
1.1       root     4192:   fi
                   4193: fi
1.1.1.3   root     4194: fi
                   4195: fi
                   4196: fi
1.1       root     4197: 
1.1.1.4 ! root     4198: if [ "x$WANT_NCURSES_UI" = "xyes" ]; then
        !          4199:   if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
        !          4200:     if [ "x$WANT_UI" = "xyes" ]; then
        !          4201:       echo "ncurses is unavailable, can't provide a user interface"
        !          4202:       NR_ERRORS=`expr $NR_ERRORS + 1`      
        !          4203:     fi
        !          4204:     WANT_UI=no
        !          4205:   fi
        !          4206:   if [ "x$WANT_UI" != "xno" ]; then
        !          4207:     GUIOBJS="tui.o svgancui.o"
        !          4208:     LIBRARIES="$LIBRARIES -lncurses"
        !          4209:     ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_CURSES_UI"
        !          4210:     if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
        !          4211:       echo "Found libncurses, but no ncurses.h. This is normal with recent versions"
        !          4212:       echo "of ncurses, but it might indicate a problem with older versions."
        !          4213:       NR_WARNINGS=`expr $NR_WARNINGS + 1`
        !          4214:     fi
        !          4215:   else
        !          4216:     GUIOBJS=nogui.o
        !          4217:   fi
1.1.1.3   root     4218: fi
                   4219:  
1.1.1.4 ! root     4220: GFXOBJS="$GFXOBJS $GUIOBJS"
        !          4221:  
        !          4222: 
        !          4223: MACHDEP=md-generic
        !          4224: OSDEP=od-generic
        !          4225: THREADDEP=td-none
        !          4226: SOUNDDEP=od-generic
        !          4227: 
        !          4228: USE_PENGUINS=no
        !          4229: USE_THREADS=no
        !          4230: USE_SOUND=no
        !          4231: USE_FILE_SOUND=no
        !          4232: 
        !          4233: HAVEELF=no
        !          4234: HAVELINUX=no
        !          4235: HAVEGCC27=no
        !          4236: HAVEI386=no
        !          4237: HAVE68K=no
        !          4238: HAVEGLIBC2=no
1.1.1.3   root     4239: 
1.1       root     4240: ASMOBJS=
1.1.1.4 ! root     4241: CPUOBJS=cpuemu.o
1.1.1.3   root     4242: 
1.1.1.4 ! root     4243: echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
        !          4244: echo "configure:4245: checking for GCC 2.7 or higher" >&5
1.1.1.3   root     4245: cat >conftest.c << EOF
                   4246: int main()
                   4247: {
                   4248: #if defined(__GNUC__) && defined(__GNUC_MINOR__)
                   4249: #if __GNUC__ > 2 || __GNUC_MINOR__ > 6
                   4250: printf("GNU\n");
                   4251: #endif
                   4252: #endif
                   4253: return 0;
                   4254: }
                   4255: EOF
                   4256: 
                   4257: $CC conftest.c -c -o conftest.o
                   4258: $CC conftest.o -o conftest
                   4259: ./conftest >conftest.file
                   4260: if grep GNU conftest.file >/dev/null; then
1.1.1.4 ! root     4261:   echo "$ac_t""yes" 1>&6
        !          4262:   HAVEGCC27=yes
1.1.1.3   root     4263: else
1.1.1.4 ! root     4264:   echo "$ac_t""no" 1>&6
        !          4265:   if [ "x$CC" = "xgcc" ]; then
1.1.1.3   root     4266:     echo "I suggest you upgrade to at least version 2.7 of GCC"
                   4267:   else
                   4268:     echo "Couldn't find GCC. UAE may or may not compile and run correctly."
1.1.1.4 ! root     4269:     NR_WARNINGS=`expr $NR_WARNINGS + 1`
1.1.1.3   root     4270:   fi
                   4271: fi
                   4272: 
1.1.1.4 ! root     4273: echo $ac_n "checking for glibc-2.0 or higher""... $ac_c" 1>&6
        !          4274: echo "configure:4275: checking for glibc-2.0 or higher" >&5
        !          4275: if [ "x$ac_cv_header_features_h" = "xyes" ]; then
        !          4276:   cat >conftest.c << EOF
        !          4277: #include <features.h>
        !          4278: int main()
        !          4279: {
        !          4280: #if defined(__GLIBC__)
        !          4281: #if __GLIBC__ >= 2
        !          4282: printf("GNU\n");
        !          4283: #endif
        !          4284: #endif
        !          4285: return 0;
        !          4286: }
        !          4287: EOF
        !          4288: 
        !          4289:   $CC conftest.c -c -o conftest.o
        !          4290:   $CC conftest.o -o conftest
        !          4291:   ./conftest >conftest.file
        !          4292:   if grep GNU conftest.file >/dev/null; then
        !          4293:     HAVEGLIBC2=yes
        !          4294:     echo "$ac_t""yes" 1>&6
        !          4295:   else
        !          4296:     echo "$ac_t""no" 1>&6
1.1.1.3   root     4297:   fi
                   4298: else
1.1.1.4 ! root     4299:   echo "$ac_t""no" 1>&6
        !          4300: fi
        !          4301: 
        !          4302: if [ "x$CC" = "xgcc" ]; then
        !          4303:   WARNING_CFLAGS="-Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes"
        !          4304:   OPTIMIZE_CFLAGS="-O2 -fomit-frame-pointer"
        !          4305:     CFLAGS=
        !          4306: fi
        !          4307: 
        !          4308: if [ "x$DO_PROFILING" = "xyes" ]; then
        !          4309:   if [ "x$CC" = "xgcc" ]; then
        !          4310:     OPTIMIZE_CFLAGS="-O"
        !          4311:     DEBUG_CFLAGS="-g -fno-inline -fno-omit-frame-pointer -pg -DUSE_PROFILING"
        !          4312:     LDFLAGS="-pg"
        !          4313:   else
        !          4314:     DO_PROFILING=no
        !          4315:     echo "Don't know how to set up profiling for your compiler."
        !          4316:     NR_ERRORS=`expr $NR_ERRORS + 1`
1.1.1.3   root     4317:   fi
                   4318: fi
                   4319: 
1.1.1.4 ! root     4320: CFLAGS="$OPTIMIZE_CFLAGS $DEBUG_CFLAGS $WARNING_CFLAGS $CFLAGS $ADDITIONAL_CFLAGS"
        !          4321: 
        !          4322: if [ "x$HAVEGCC27" = "xyes" ]; then
1.1.1.3   root     4323:   CFLAGS="$CFLAGS -DGCCCONSTFUNC=\"__attribute__((const))\""
                   4324: else
                   4325:   CFLAGS="$CFLAGS -DGCCCONSTFUNC="
                   4326: fi
1.1.1.2   root     4327: 
1.1.1.3   root     4328: cat >conftest.c << EOF
                   4329: int main()
                   4330: {
                   4331: #ifdef __i386__
                   4332: printf("386\n");
1.1.1.4 ! root     4333: #elif defined(__mc68000__)
        !          4334: printf("68k\n");
1.1.1.3   root     4335: #endif
                   4336: return 0;
                   4337: }
                   4338: EOF
1.1       root     4339: 
1.1.1.3   root     4340: $CC conftest.c -c -o conftest.o
                   4341: $CC conftest.o -o conftest
                   4342: ./conftest >conftest.file
                   4343: if grep 386 conftest.file >/dev/null; then
1.1.1.4 ! root     4344:   HAVEI386=yes
1.1.1.3   root     4345:   echo "You seem to be using a x86 CPU (UAE will require a 486 to run)"
1.1.1.4 ! root     4346: else if grep 68k conftest.file >/dev/null; then
        !          4347:   HAVE68K=yes
        !          4348:   echo "You seem to be using a 68k CPU."
1.1.1.3   root     4349: else
                   4350:   echo "No special hacks for your CPU, sorry."
1.1.1.4 ! root     4351: fi; fi
1.1.1.3   root     4352: 
                   4353: rm -f conftest*
                   4354: 
1.1.1.4 ! root     4355: if MACHINE=`uname -a 2>/dev/null`; then
        !          4356:   case "$MACHINE" in
        !          4357:   Linux*)
        !          4358:     HAVELINUX=yes
        !          4359:     ;;
        !          4360:   esac
        !          4361: fi
        !          4362: 
1.1.1.3   root     4363: 
1.1.1.4 ! root     4364: echo $ac_n "checking whether we are on an ELF system""... $ac_c" 1>&6
        !          4365: echo "configure:4366: checking whether we are on an ELF system" >&5
        !          4366: 
        !          4367: if [ "x$SYSTEM_IS_ELF" = "xdunno" ]; then
        !          4368:   cat >conftest.c << EOF
1.1       root     4369: int main() { return 0; }
                   4370: EOF
1.1.1.4 ! root     4371: 
        !          4372:   gcc conftest.c -o conftest
        !          4373:   if [ "x$FILEPRG" = "xnot-found" ]; then
        !          4374:     cp conftest conftest.file
        !          4375:   else
        !          4376:     $FILEPRG conftest >conftest.file
1.1       root     4377:   fi
1.1.1.4 ! root     4378:   if grep ELF conftest.file >/dev/null; then
        !          4379:     HAVEELF=yes
        !          4380:     echo "$ac_t""yes" 1>&6
        !          4381:   else
1.1       root     4382:     echo "$ac_t""no" 1>&6
1.1.1.4 ! root     4383:   fi
        !          4384: else
        !          4385:   echo "$ac_t""overriden: $SYSTEM_IS_ELF" 1>&6
        !          4386:   HAVEELF=$SYSTEM_IS_ELF
        !          4387: fi
        !          4388: 
        !          4389: rm -f conftest*
        !          4390: 
        !          4391: # Check whether --enable-threads or --disable-threads was given.
        !          4392: if test "${enable_threads+set}" = set; then
        !          4393:   enableval="$enable_threads"
        !          4394:   USE_THREADS=$enableval
        !          4395: fi
        !          4396: 
        !          4397: # Check whether --enable-penguins or --disable-penguins was given.
        !          4398: if test "${enable_penguins+set}" = set; then
        !          4399:   enableval="$enable_penguins"
        !          4400:   USE_PENGUINS=$enableval
        !          4401: fi
        !          4402: 
        !          4403: 
        !          4404: if [ "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
        !          4405:   if [ "x$USE_THREADS" != "xyes" -a "x$USE_PENGUINS" != "xyes" ]; then
        !          4406:     echo "The gtk+ GUI needs threads; enabling thread support."
        !          4407:   fi
        !          4408: fi
        !          4409: 
        !          4410: if [ "x$USE_THREADS" = "xyes" -o "x$USE_PENGUINS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
        !          4411:   if [ "x$HAVE_PTHREAD_LIB" = "xyes" ]; then
        !          4412:     THREADDEP=td-posix
        !          4413:     CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT"
        !          4414:     LIBS="$LIBS -lpthread"
        !          4415:     if [ "x$HAVE_POSIX4_LIB" = "xyes" ]; then
        !          4416:       LIBS="$LIBS -lposix4"
        !          4417:     fi
        !          4418: 
        !          4419:     if [ "x$USE_THREADS" = "xyes" ]; then    
        !          4420:       CFLAGS="$CFLAGS -DUAE_FILESYS_THREADS"
        !          4421:     fi
        !          4422:     if [ "x$USE_PENGUINS" = "xyes" ]; then
        !          4423:       CFLAGS="$CFLAGS -DSUPPORT_PENGUINS"
        !          4424:     fi
        !          4425: 
        !          4426:     if [ "x$HAVELINUX" = "xno" -o "x$HAVEGLIBC2" = "xno" ]; then
        !          4427:       echo "*** Thread support has only been tested on Linux systems with glibc-2.0"
        !          4428:       echo "*** There are known problems with libc5-based Linux systems and threads!"
        !          4429:       if [ "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
        !          4430:         echo "*** Use 'configure --disable-ui' if you have problems."
        !          4431:       fi
        !          4432:       NR_WARNINGS=`expr $NR_WARNINGS + 1`
        !          4433:     fi
        !          4434:     if [ "x$TARGET" = "xsvgalib" ]; then
        !          4435:       echo "If you didn't compile a fixed version of SVGAlib then thread support"
        !          4436:       echo "in UAE will lock your machine real hard."
        !          4437:       NR_WARNINGS=`expr $NR_WARNINGS + 1`
        !          4438:     fi
1.1       root     4439:   else
1.1.1.4 ! root     4440:     echo "You tried to enable threads, but I couldn't find a thread library!"
        !          4441:     NR_ERRORS=`expr $NR_ERRORS + 1`
1.1       root     4442:   fi
1.1.1.3   root     4443: fi
                   4444: 
                   4445: 
1.1.1.4 ! root     4446: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
        !          4447:   SAVECFLAGS=$CFLAGS
        !          4448:   CFLAGS="$CFLAGS -mno-schedule-prologue"
        !          4449:   cat > conftest.$ac_ext <<EOF
        !          4450: #line 4451 "configure"
        !          4451: #include "confdefs.h"
        !          4452: 
        !          4453: int main() {
        !          4454: int main(){return 0;}
        !          4455: ; return 0; }
        !          4456: EOF
        !          4457: if { (eval echo configure:4458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
        !          4458:   rm -rf conftest*
        !          4459:   NO_SCHED_CFLAGS="-mno-schedule-prologue"
        !          4460: else
        !          4461:   echo "configure: failed program was:" >&5
        !          4462:   cat conftest.$ac_ext >&5
        !          4463: fi
        !          4464: rm -f conftest*
        !          4465:   CFLAGS=$SAVECFLAGS
        !          4466: fi
        !          4467: 
        !          4468: 
        !          4469: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
        !          4470:   SAVECFLAGS=$CFLAGS
        !          4471:   CFLAGS="$CFLAGS -fno-exceptions"
        !          4472:   NOEXCEPTIONS=no
        !          4473:   cat > conftest.$ac_ext <<EOF
        !          4474: #line 4475 "configure"
        !          4475: #include "confdefs.h"
        !          4476: 
        !          4477: int main() {
        !          4478: int main(){return 0;}
        !          4479: ; return 0; }
        !          4480: EOF
        !          4481: if { (eval echo configure:4482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
        !          4482:   rm -rf conftest*
        !          4483:   NOEXCEPTIONS=yes
        !          4484: else
        !          4485:   echo "configure: failed program was:" >&5
        !          4486:   cat conftest.$ac_ext >&5
        !          4487: fi
        !          4488: rm -f conftest*
        !          4489:   if [ "x$NOEXCEPTIONS" = "xno" ]; then
        !          4490:     CFLAGS=$SAVECFLAGS
        !          4491:   fi
        !          4492: fi
        !          4493: 
        !          4494: 
        !          4495: 
        !          4496: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
        !          4497:   MACHDEP=md-i386-gcc
        !          4498:         CFLAGS="$CFLAGS -DX86_ASSEMBLY -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
        !          4499:   ASMOBJS=machdep/X86.o
        !          4500:   CPUOBJS="cpufast.o"
        !          4501:   if [ "x$HAVEELF" != "xyes" ]; then
        !          4502:     CFLAGS="$CFLAGS -DUSE_UNDERSCORE"
        !          4503:   fi
        !          4504: else if [ "x$TARGET" = "xp_os" ]; then
        !          4505:   CPU=`uname -m`
        !          4506:   if [ "x$CPU" = "xm68k" ]; then
        !          4507:      MACHDEP=md-68k
        !          4508:      CFLAGS="$CFLAGS -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
        !          4509:   else if [ "x$CPU" = "xppc" ]; then
        !          4510:      MACHDEP=md-ppc
        !          4511:      CFLAGS="$CFLAGS -DREGPARAM="
        !          4512:   else if [ "x$CPU" = "xi386" ]; then
        !          4513:           MACHDEP=md-i386-gcc
        !          4514:      CFLAGS="$CFLAGS -DX86_ASSEMBLY -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
        !          4515:   else
        !          4516:      echo "Unsupported CPU: $CPU!"
        !          4517:      exit 5
        !          4518:   fi
        !          4519:   fi
        !          4520:   fi
        !          4521:   CFLAGS="$CFLAGS -nostdinc -I/gg/include -I/p/../inc -D__POS__"
        !          4522:   OSDEP=od-pos
        !          4523:   CPUOBJS="cpufast.o"
        !          4524: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$TARGET" = "xamigaos" ]; then
        !          4525:   MACHDEP=md-68k
        !          4526:   OSDEP=od-amiga
        !          4527:   CFLAGS="$CFLAGS -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
        !          4528:   CPUOBJS="cpufast.o"
        !          4529: else if [ "x$TARGET" = "xamigaos" ]; then 
        !          4530:     MACHDEP=md-generic
        !          4531:   OSDEP=od-amiga
        !          4532:   CFLAGS="$CFLAGS -DREGPARAM="
        !          4533: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
        !          4534:     MACHDEP=md-68k
        !          4535:   CFLAGS="$CFLAGS -DM68K_FLAG_OPT=1 -DREGPARAM="
        !          4536:   CPUOBJS="cpufast.o"
        !          4537: else if [ "x$TARGET" = "xbeos" ]; then
        !          4538:   MACHDEP=md-ppc
        !          4539:   CFLAGS="$CFLAGS -DREGPARAM="
        !          4540:   OSDEP=od-beos
1.1       root     4541: else
1.1.1.3   root     4542:   CFLAGS="$CFLAGS -DREGPARAM="
                   4543: fi
                   4544: fi
1.1       root     4545: fi
1.1.1.4 ! root     4546: fi
        !          4547: fi
        !          4548: fi
        !          4549: 
        !          4550: if [ "x$HAVELINUX" = "xyes" ]; then
        !          4551:   OSDEP=od-linux
        !          4552:   if [ "x$HAVEGLIBC2" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
        !          4553:     CFLAGS="$CFLAGS -DHAVE_GLIBC_2_LINUX"
        !          4554:   fi
        !          4555: fi
1.1       root     4556: 
1.1.1.4 ! root     4557: if [ "x$TARGET" = "xx11" -o "x$TARGET" = "xsvgalib" -o "x$TARGET" = "xamigaos" \
        !          4558:      -o "x$TARGET" = "xbeos" -o "x$TARGET" = "xasciiart" -o "x$TARGET" = "xggilib" -o "x$TARGET" = "xp_os" ]; then
1.1.1.2   root     4559:     CFLAGS="$CFLAGS -DUSE_ZFILE"
                   4560: fi
                   4561: 
1.1.1.4 ! root     4562: HAVE_USS_SOUND=no
        !          4563: if [ "x$ac_cv_header_sys_soundcard_h" = "xyes" -o "x$ac_cv_header_machine_soundcard_h" = "xyes" ]; then
        !          4564:     echo $ac_n "checking whether sys/soundcard.h or machine/soundcard.h works""... $ac_c" 1>&6
        !          4565: echo "configure:4566: checking whether sys/soundcard.h or machine/soundcard.h works" >&5
        !          4566:   cat > conftest.$ac_ext <<EOF
        !          4567: #line 4568 "configure"
        !          4568: #include "confdefs.h"
        !          4569: 
        !          4570: #include "confdefs.h"
        !          4571: #ifdef HAVE_SYS_SOUNDCARD_H
        !          4572: #include <sys/soundcard.h>
        !          4573: #else
        !          4574: #include <machine/soundcard.h>
        !          4575: #endif
        !          4576: #include <sys/ioctl.h>
        !          4577: 
        !          4578: int main() {
        !          4579: int soundfd; ioctl (soundfd, SNDCTL_DSP_GETFMTS, 0);
        !          4580: ; return 0; }
        !          4581: EOF
        !          4582: if { (eval echo configure:4583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
        !          4583:   rm -rf conftest*
        !          4584:   echo "$ac_t""yes" 1>&6
        !          4585: HAVE_USS_SOUND=yes
        !          4586: else
        !          4587:   echo "configure: failed program was:" >&5
        !          4588:   cat conftest.$ac_ext >&5
        !          4589:   rm -rf conftest*
        !          4590:   echo "$ac_t""no" 1>&6
        !          4591: fi
        !          4592: rm -f conftest*
        !          4593: fi
        !          4594: 
        !          4595: echo $ac_n "checking which sound system to use""... $ac_c" 1>&6
        !          4596: echo "configure:4597: checking which sound system to use" >&5
        !          4597: # Check whether --enable-sound or --disable-sound was given.
        !          4598: if test "${enable_sound+set}" = set; then
        !          4599:   enableval="$enable_sound"
        !          4600:   USE_SOUND=$enableval
        !          4601: fi
        !          4602: 
        !          4603: # Check whether --enable-file-sound or --disable-file-sound was given.
        !          4604: if test "${enable_file_sound+set}" = set; then
        !          4605:   enableval="$enable_file_sound"
        !          4606:   USE_FILE_SOUND=$enableval
        !          4607: fi
        !          4608: 
        !          4609: 
        !          4610: if [ "x$USE_FILE_SOUND" = "xyes" ]; then
        !          4611:   USE_SOUND=yes
        !          4612: fi
        !          4613: 
        !          4614: if [ "x$USE_SOUND" = "xno" ]; then
        !          4615:   echo "$ac_t""sound not enabled" 1>&6
        !          4616: else
        !          4617:   if [ "x$USE_FILE_SOUND" = "xyes" ]; then
        !          4618:     echo "$ac_t""file output" 1>&6
        !          4619:     SOUNDDEP=sd-file
        !          4620:     USE_SOUND=yes  
        !          4621:   else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then
        !          4622:     echo "$ac_t""USS" 1>&6
        !          4623:     SOUNDDEP=sd-uss
        !          4624:     USE_SOUND=yes
        !          4625:   else if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then
        !          4626:     echo "$ac_t""Solaris/NetBSD" 1>&6
        !          4627:     SOUNDDEP=sd-solaris
        !          4628:     USE_SOUND=yes
        !          4629:   else if [ "x$HAVE_AF_LIB" = "xyes" ]; then
        !          4630:     echo "$ac_t""AF sound" 1>&6
        !          4631:     SOUNDDEP=sd-af
        !          4632:     USE_SOUND=yes
        !          4633:   else if [ "x$TARGET" = "xp_os" ]; then
        !          4634:     echo "$ac_t""pAudio.device" 1>&6
        !          4635:     SOUNDDEP=od-pos
        !          4636:     USE_SOUND=yes
        !          4637:   else if [ "x$TARGET" = "xamigaos" ]; then
        !          4638:     echo "$ac_t""Amiga audio.device" 1>&6
        !          4639:     SOUNDDEP=od-amiga
        !          4640:     USE_SOUND=yes
        !          4641:   else if [ "x$TARGET" = "xbeos" ]; then
        !          4642:     echo "$ac_t""BeOS sound" 1>&6
        !          4643:     SOUNDDEP=od-beos
        !          4644:     USE_SOUND=yes
        !          4645:   else
        !          4646:     echo "no known sound system found"
        !          4647:     NR_ERRORS=`expr $NR_ERRORS + 1`
        !          4648:   fi
        !          4649:   fi
        !          4650:   fi
        !          4651:   fi
        !          4652:   fi
        !          4653:   fi
        !          4654:   fi
        !          4655: fi
        !          4656: 
        !          4657: rm -f src/machdep
        !          4658: rm -f src/osdep
        !          4659: rm -f src/threaddep
        !          4660: rm -f src/sounddep
        !          4661: rm -f src/target.h
1.1.1.3   root     4662: 
1.1.1.4 ! root     4663: if [ "x$TARGET" = "xamigaos" -o "x$TARGET" = "xp_os" ]; then
1.1.1.3   root     4664:     echo $ac_n "checking which CPU to use""... $ac_c" 1>&6
1.1.1.4 ! root     4665: echo "configure:4666: checking which CPU to use" >&5
1.1.1.3   root     4666:   cpu=`cpu | cut -d' ' -f2`
                   4667:   echo "$ac_t""$cpu" 1>&6
                   4668:   CFLAGS="$CFLAGS -m$cpu"
                   4669: 
                   4670:     echo $ac_n "checking which FPU to use""... $ac_c" 1>&6
1.1.1.4 ! root     4671: echo "configure:4672: checking which FPU to use" >&5
        !          4672:   fpu=`cpu | cut -d' ' -f3 | grep '^688812$'`
        !          4673:   if [ "x$fpu" != "x" ]; then
        !          4674:         echo "$ac_t""68881" 1>&6
        !          4675:     CFLAGS="$CFLAGS -m68881"
1.1.1.3   root     4676:   else
                   4677:     echo "$ac_t""none" 1>&6
                   4678:   fi
                   4679: fi
                   4680: 
1.1.1.2   root     4681: 
                   4682: 
1.1       root     4683: 
                   4684: 
                   4685: 
                   4686: 
                   4687: 
                   4688: 
                   4689: 
                   4690: 
                   4691: 
1.1.1.3   root     4692: 
1.1.1.4 ! root     4693: 
1.1.1.3   root     4694: 
                   4695: 
                   4696: 
1.1       root     4697: trap '' 1 2 15
                   4698: cat > confcache <<\EOF
                   4699: # This file is a shell script that caches the results of configure
                   4700: # tests run on this system so they can be shared between configure
                   4701: # scripts and configure runs.  It is not useful on other systems.
                   4702: # If it contains results you don't want to keep, you may remove or edit it.
                   4703: #
                   4704: # By default, configure uses ./config.cache as the cache file,
                   4705: # creating it if it does not exist already.  You can give configure
                   4706: # the --cache-file=FILE option to use a different cache file; that is
                   4707: # what configure does when it calls configure scripts in
                   4708: # subdirectories, so they share the cache.
                   4709: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   4710: # config.status only pays attention to the cache file if you give it the
                   4711: # --recheck option to rerun configure.
                   4712: #
                   4713: EOF
1.1.1.4 ! root     4714: # The following way of writing the cache mishandles newlines in values,
        !          4715: # but we know of no workaround that is simple, portable, and efficient.
        !          4716: # So, don't put newlines in cache variables' values.
1.1       root     4717: # Ultrix sh set writes to stderr and can't be redirected directly,
                   4718: # and sets the high bit in the cache file unless we assign to the vars.
                   4719: (set) 2>&1 |
1.1.1.4 ! root     4720:   case `(ac_space=' '; set) 2>&1` in
        !          4721:   *ac_space=\ *)
        !          4722:     # `set' does not quote correctly, so add quotes (double-quote substitution
        !          4723:     # turns \\\\ into \\, and sed turns \\ into \).
        !          4724:     sed -n \
        !          4725:       -e "s/'/'\\\\''/g" \
        !          4726:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
        !          4727:     ;;
        !          4728:   *)
        !          4729:     # `set' quotes correctly as required by POSIX, so do not add quotes.
        !          4730:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
        !          4731:     ;;
        !          4732:   esac >> confcache
1.1       root     4733: if cmp -s $cache_file confcache; then
                   4734:   :
                   4735: else
                   4736:   if test -w $cache_file; then
                   4737:     echo "updating cache $cache_file"
                   4738:     cat confcache > $cache_file
                   4739:   else
                   4740:     echo "not updating unwritable cache $cache_file"
                   4741:   fi
                   4742: fi
                   4743: rm -f confcache
                   4744: 
                   4745: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   4746: 
                   4747: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   4748: # Let make expand exec_prefix.
                   4749: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   4750: 
                   4751: # Any assignment to VPATH causes Sun make to only execute
                   4752: # the first set of double-colon rules, so remove it if not needed.
                   4753: # If there is a colon in the path, we need to keep it.
                   4754: if test "x$srcdir" = x.; then
                   4755:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   4756: fi
                   4757: 
                   4758: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   4759: 
                   4760: DEFS=-DHAVE_CONFIG_H
                   4761: 
                   4762: # Without the "./", some shells look in PATH for config.status.
                   4763: : ${CONFIG_STATUS=./config.status}
                   4764: 
                   4765: echo creating $CONFIG_STATUS
                   4766: rm -f $CONFIG_STATUS
                   4767: cat > $CONFIG_STATUS <<EOF
                   4768: #! /bin/sh
                   4769: # Generated automatically by configure.
                   4770: # Run this file to recreate the current configuration.
                   4771: # This directory was configured as follows,
                   4772: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   4773: #
                   4774: # $0 $ac_configure_args
                   4775: #
                   4776: # Compiler output produced by configure, useful for debugging
                   4777: # configure, is in ./config.log if it exists.
                   4778: 
                   4779: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   4780: for ac_option
                   4781: do
                   4782:   case "\$ac_option" in
                   4783:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   4784:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   4785:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   4786:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1.1.1.4 ! root     4787:     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1.1       root     4788:     exit 0 ;;
                   4789:   -help | --help | --hel | --he | --h)
                   4790:     echo "\$ac_cs_usage"; exit 0 ;;
                   4791:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   4792:   esac
                   4793: done
                   4794: 
                   4795: ac_given_srcdir=$srcdir
                   4796: 
1.1.1.4 ! root     4797: trap 'rm -fr `echo "src/Makefile Makefile src/sysconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1       root     4798: EOF
                   4799: cat >> $CONFIG_STATUS <<EOF
                   4800: 
                   4801: # Protect against being on the right side of a sed subst in config.status.
                   4802: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   4803:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   4804: $ac_vpsub
                   4805: $extrasub
                   4806: s%@CFLAGS@%$CFLAGS%g
                   4807: s%@CPPFLAGS@%$CPPFLAGS%g
                   4808: s%@CXXFLAGS@%$CXXFLAGS%g
                   4809: s%@DEFS@%$DEFS%g
                   4810: s%@LDFLAGS@%$LDFLAGS%g
                   4811: s%@LIBS@%$LIBS%g
                   4812: s%@exec_prefix@%$exec_prefix%g
                   4813: s%@prefix@%$prefix%g
                   4814: s%@program_transform_name@%$program_transform_name%g
                   4815: s%@bindir@%$bindir%g
                   4816: s%@sbindir@%$sbindir%g
                   4817: s%@libexecdir@%$libexecdir%g
                   4818: s%@datadir@%$datadir%g
                   4819: s%@sysconfdir@%$sysconfdir%g
                   4820: s%@sharedstatedir@%$sharedstatedir%g
                   4821: s%@localstatedir@%$localstatedir%g
                   4822: s%@libdir@%$libdir%g
                   4823: s%@includedir@%$includedir%g
                   4824: s%@oldincludedir@%$oldincludedir%g
                   4825: s%@infodir@%$infodir%g
                   4826: s%@mandir@%$mandir%g
                   4827: s%@CC@%$CC%g
                   4828: s%@CPP@%$CPP%g
                   4829: s%@SET_MAKE@%$SET_MAKE%g
1.1.1.4 ! root     4830: s%@FILEPRG@%$FILEPRG%g
1.1       root     4831: s%@X_CFLAGS@%$X_CFLAGS%g
                   4832: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
                   4833: s%@X_LIBS@%$X_LIBS%g
                   4834: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
                   4835: s%@LIBOBJS@%$LIBOBJS%g
1.1.1.4 ! root     4836: s%@GTK_CONFIG@%$GTK_CONFIG%g
        !          4837: s%@GTK_CFLAGS@%$GTK_CFLAGS%g
        !          4838: s%@GTK_LIBS@%$GTK_LIBS%g
1.1       root     4839: s%@ac_cv_c_inline@%$ac_cv_c_inline%g
1.1.1.4 ! root     4840: s%@NO_SCHED_CFLAGS@%$NO_SCHED_CFLAGS%g
1.1       root     4841: s%@STATFS_NO_ARGS@%$STATFS_NO_ARGS%g
                   4842: s%@STATBUF_BAVAIL@%$STATBUF_BAVAIL%g
                   4843: s%@LIBRARIES@%$LIBRARIES%g
                   4844: s%@TARGET@%$TARGET%g
                   4845: s%@GFXOBJS@%$GFXOBJS%g
                   4846: s%@ASMOBJS@%$ASMOBJS%g
1.1.1.2   root     4847: s%@CPUOBJS@%$CPUOBJS%g
1.1.1.3   root     4848: s%@DEBUGOBJS@%$DEBUGOBJS%g
                   4849: s%@MATHLIB@%$MATHLIB%g
1.1.1.4 ! root     4850: s%@SHM_SUPPORT_LINKS@%$SHM_SUPPORT_LINKS%g
1.1.1.3   root     4851: s%@top_srcdir@%$top_srcdir%g
1.1       root     4852: 
                   4853: CEOF
                   4854: EOF
1.1.1.4 ! root     4855: 
        !          4856: cat >> $CONFIG_STATUS <<\EOF
        !          4857: 
        !          4858: # Split the substitutions into bite-sized pieces for seds with
        !          4859: # small command number limits, like on Digital OSF/1 and HP-UX.
        !          4860: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
        !          4861: ac_file=1 # Number of current file.
        !          4862: ac_beg=1 # First line for current file.
        !          4863: ac_end=$ac_max_sed_cmds # Line after last line for current file.
        !          4864: ac_more_lines=:
        !          4865: ac_sed_cmds=""
        !          4866: while $ac_more_lines; do
        !          4867:   if test $ac_beg -gt 1; then
        !          4868:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
        !          4869:   else
        !          4870:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
        !          4871:   fi
        !          4872:   if test ! -s conftest.s$ac_file; then
        !          4873:     ac_more_lines=false
        !          4874:     rm -f conftest.s$ac_file
        !          4875:   else
        !          4876:     if test -z "$ac_sed_cmds"; then
        !          4877:       ac_sed_cmds="sed -f conftest.s$ac_file"
        !          4878:     else
        !          4879:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
        !          4880:     fi
        !          4881:     ac_file=`expr $ac_file + 1`
        !          4882:     ac_beg=$ac_end
        !          4883:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
        !          4884:   fi
        !          4885: done
        !          4886: if test -z "$ac_sed_cmds"; then
        !          4887:   ac_sed_cmds=cat
        !          4888: fi
        !          4889: EOF
        !          4890: 
1.1       root     4891: cat >> $CONFIG_STATUS <<EOF
                   4892: 
1.1.1.2   root     4893: CONFIG_FILES=\${CONFIG_FILES-"src/Makefile Makefile"}
1.1       root     4894: EOF
                   4895: cat >> $CONFIG_STATUS <<\EOF
                   4896: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1.1.1.4 ! root     4897:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1       root     4898:   case "$ac_file" in
1.1.1.4 ! root     4899:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.1       root     4900:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   4901:   *) ac_file_in="${ac_file}.in" ;;
                   4902:   esac
                   4903: 
1.1.1.4 ! root     4904:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1.1       root     4905: 
                   4906:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   4907:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   4908:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   4909:     # The file is in a subdirectory.
                   4910:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   4911:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   4912:     # A "../" for each directory in $ac_dir_suffix.
                   4913:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   4914:   else
                   4915:     ac_dir_suffix= ac_dots=
                   4916:   fi
                   4917: 
                   4918:   case "$ac_given_srcdir" in
                   4919:   .)  srcdir=.
                   4920:       if test -z "$ac_dots"; then top_srcdir=.
                   4921:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   4922:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   4923:   *) # Relative path.
                   4924:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   4925:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   4926:   esac
                   4927: 
1.1.1.4 ! root     4928: 
1.1       root     4929:   echo creating "$ac_file"
                   4930:   rm -f "$ac_file"
                   4931:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   4932:   case "$ac_file" in
                   4933:   *Makefile*) ac_comsub="1i\\
                   4934: # $configure_input" ;;
                   4935:   *) ac_comsub= ;;
                   4936:   esac
1.1.1.4 ! root     4937: 
        !          4938:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1.1       root     4939:   sed -e "$ac_comsub
                   4940: s%@configure_input@%$configure_input%g
                   4941: s%@srcdir@%$srcdir%g
                   4942: s%@top_srcdir@%$top_srcdir%g
1.1.1.4 ! root     4943: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1.1       root     4944: fi; done
1.1.1.4 ! root     4945: rm -f conftest.s*
1.1       root     4946: 
                   4947: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   4948: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   4949: #
                   4950: # ac_d sets the value in "#define NAME VALUE" lines.
                   4951: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   4952: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   4953: ac_dC='\3'
                   4954: ac_dD='%g'
                   4955: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   4956: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   4957: ac_uB='\([     ]\)%\1#\2define\3'
                   4958: ac_uC=' '
                   4959: ac_uD='\4%g'
                   4960: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   4961: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   4962: ac_eB='$%\1#\2define\3'
                   4963: ac_eC=' '
                   4964: ac_eD='%g'
                   4965: 
1.1.1.4 ! root     4966: if test "${CONFIG_HEADERS+set}" != set; then
        !          4967: EOF
        !          4968: cat >> $CONFIG_STATUS <<EOF
        !          4969:   CONFIG_HEADERS="src/sysconfig.h"
        !          4970: EOF
        !          4971: cat >> $CONFIG_STATUS <<\EOF
        !          4972: fi
1.1       root     4973: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1.1.1.4 ! root     4974:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1       root     4975:   case "$ac_file" in
1.1.1.4 ! root     4976:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.1       root     4977:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   4978:   *) ac_file_in="${ac_file}.in" ;;
                   4979:   esac
                   4980: 
                   4981:   echo creating $ac_file
                   4982: 
                   4983:   rm -f conftest.frag conftest.in conftest.out
1.1.1.4 ! root     4984:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
        !          4985:   cat $ac_file_inputs > conftest.in
1.1       root     4986: 
                   4987: EOF
                   4988: 
                   4989: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   4990: # the proper values into config.h.in to produce config.h.  And first:
                   4991: # Protect against being on the right side of a sed subst in config.status.
                   4992: # Protect against being in an unquoted here document in config.status.
                   4993: rm -f conftest.vals
                   4994: cat > conftest.hdr <<\EOF
                   4995: s/[\\&%]/\\&/g
                   4996: s%[\\$`]%\\&%g
                   4997: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   4998: s%ac_d%ac_u%gp
                   4999: s%ac_u%ac_e%gp
                   5000: EOF
                   5001: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   5002: rm -f conftest.hdr
                   5003: 
                   5004: # This sed command replaces #undef with comments.  This is necessary, for
                   5005: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   5006: # on some systems where configure will not decide to define it.
                   5007: cat >> conftest.vals <<\EOF
                   5008: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   5009: EOF
                   5010: 
                   5011: # Break up conftest.vals because some shells have a limit on
                   5012: # the size of here documents, and old seds have small limits too.
                   5013: 
                   5014: rm -f conftest.tail
                   5015: while :
                   5016: do
                   5017:   ac_lines=`grep -c . conftest.vals`
                   5018:   # grep -c gives empty output for an empty file on some AIX systems.
                   5019:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   5020:   # Write a limited-size here document to conftest.frag.
                   5021:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   5022:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   5023:   echo 'CEOF
                   5024:   sed -f conftest.frag conftest.in > conftest.out
                   5025:   rm -f conftest.in
                   5026:   mv conftest.out conftest.in
                   5027: ' >> $CONFIG_STATUS
                   5028:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   5029:   rm -f conftest.vals
                   5030:   mv conftest.tail conftest.vals
                   5031: done
                   5032: rm -f conftest.vals
                   5033: 
                   5034: cat >> $CONFIG_STATUS <<\EOF
                   5035:   rm -f conftest.frag conftest.h
                   5036:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   5037:   cat conftest.in >> conftest.h
                   5038:   rm -f conftest.in
                   5039:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   5040:     echo "$ac_file is unchanged"
                   5041:     rm -f conftest.h
                   5042:   else
                   5043:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   5044:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   5045:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   5046:       # The file is in a subdirectory.
                   5047:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   5048:     fi
                   5049:     rm -f $ac_file
                   5050:     mv conftest.h $ac_file
                   5051:   fi
                   5052: fi; done
                   5053: 
1.1.1.4 ! root     5054: EOF
        !          5055: cat >> $CONFIG_STATUS <<EOF
1.1       root     5056: 
1.1.1.4 ! root     5057: EOF
        !          5058: cat >> $CONFIG_STATUS <<\EOF
1.1       root     5059: 
                   5060: exit 0
                   5061: EOF
                   5062: chmod +x $CONFIG_STATUS
                   5063: rm -fr confdefs* $ac_clean_files
                   5064: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   5065: 
1.1.1.4 ! root     5066: if [ "x$DO_PROFILING" = "xyes" ]; then
1.1.1.3   root     5067:   echo "Building a profiling version of UAE (select this option only if you know"
                   5068:   echo "what you are doing)"
                   5069: fi
1.1.1.4 ! root     5070: 
        !          5071: 
        !          5072: tmp_save_dir=`pwd`
        !          5073: cd $srcdir
        !          5074: abssrcdir=`pwd`
        !          5075: cd $tmp_save_dir
        !          5076: 
        !          5077: 
        !          5078: 
        !          5079: 
        !          5080: 
        !          5081: ln -s $abssrcdir/src/$MACHDEP src/machdep
        !          5082: ln -s $abssrcdir/src/$OSDEP src/osdep
        !          5083: ln -s $abssrcdir/src/$THREADDEP src/threaddep
        !          5084: ln -s $abssrcdir/src/$SOUNDDEP src/sounddep
        !          5085: ln -s $abssrcdir/src/targets/$TARGETDEP src/target.h
        !          5086: 
        !          5087: echo
        !          5088: echo
        !          5089: if [ "x$NR_ERRORS" = "x0" ]; then
        !          5090:   if [ "x$NR_WARNINGS" = "x0" ]; then
        !          5091:     echo "Configuration was successful!"
        !          5092:   else
        !          5093:     echo "There were $NR_WARNINGS warnings. That is usually harmless, but read the output"
        !          5094:     echo "from configure carefully if you run into problems."
        !          5095:   fi
        !          5096: else
        !          5097:   echo "There were $NR_ERRORS errors. UAE may still build and run cleanly, but you may"
        !          5098:   echo "not get all the features you asked for."
        !          5099: fi
        !          5100: echo

unix.superglobalmegacorp.com

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