[BACK]Return to configure CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_toolkit

Annotation of OpenXM/src/ox_toolkit/configure, Revision 1.2

1.1       ohara       1: #! /bin/sh
                      2:
                      3: # Guess values for system-dependent variables and create Makefiles.
                      4: # Generated automatically using autoconf version 2.13
                      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.2     ! ohara      16: ac_help="$ac_help
        !            17:   --with-gmp              with the GNU MP library [[no]]"
1.1       ohara      18:
                     19: # Initialize some variables set by options.
                     20: # The variables have the same names as the options, with
                     21: # dashes changed to underlines.
                     22: build=NONE
                     23: cache_file=./config.cache
                     24: exec_prefix=NONE
                     25: host=NONE
                     26: no_create=
                     27: nonopt=NONE
                     28: no_recursion=
                     29: prefix=NONE
                     30: program_prefix=NONE
                     31: program_suffix=NONE
                     32: program_transform_name=s,x,x,
                     33: silent=
                     34: site=
1.2     ! ohara      35: sitefile=
1.1       ohara      36: srcdir=
                     37: target=NONE
                     38: verbose=
                     39: x_includes=NONE
                     40: x_libraries=NONE
                     41: bindir='${exec_prefix}/bin'
                     42: sbindir='${exec_prefix}/sbin'
                     43: libexecdir='${exec_prefix}/libexec'
                     44: datadir='${prefix}/share'
                     45: sysconfdir='${prefix}/etc'
                     46: sharedstatedir='${prefix}/com'
                     47: localstatedir='${prefix}/var'
                     48: libdir='${exec_prefix}/lib'
                     49: includedir='${prefix}/include'
                     50: oldincludedir='/usr/include'
                     51: infodir='${prefix}/info'
                     52: mandir='${prefix}/man'
                     53:
                     54: # Initialize some other variables.
                     55: subdirs=
                     56: MFLAGS= MAKEFLAGS=
                     57: SHELL=${CONFIG_SHELL-/bin/sh}
                     58: # Maximum number of lines to put in a shell here document.
                     59: ac_max_here_lines=12
                     60:
                     61: ac_prev=
                     62: for ac_option
                     63: do
                     64:
                     65:   # If the previous option needs an argument, assign it.
                     66:   if test -n "$ac_prev"; then
                     67:     eval "$ac_prev=\$ac_option"
                     68:     ac_prev=
                     69:     continue
                     70:   fi
                     71:
                     72:   case "$ac_option" in
                     73:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                     74:   *) ac_optarg= ;;
                     75:   esac
                     76:
                     77:   # Accept the important Cygnus configure options, so we can diagnose typos.
                     78:
                     79:   case "$ac_option" in
                     80:
                     81:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                     82:     ac_prev=bindir ;;
                     83:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                     84:     bindir="$ac_optarg" ;;
                     85:
                     86:   -build | --build | --buil | --bui | --bu)
                     87:     ac_prev=build ;;
                     88:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                     89:     build="$ac_optarg" ;;
                     90:
                     91:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                     92:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                     93:     ac_prev=cache_file ;;
                     94:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                     95:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                     96:     cache_file="$ac_optarg" ;;
                     97:
                     98:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                     99:     ac_prev=datadir ;;
                    100:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    101:   | --da=*)
                    102:     datadir="$ac_optarg" ;;
                    103:
                    104:   -disable-* | --disable-*)
                    105:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    106:     # Reject names that are not valid shell variable names.
                    107:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    108:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    109:     fi
                    110:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    111:     eval "enable_${ac_feature}=no" ;;
                    112:
                    113:   -enable-* | --enable-*)
                    114:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    115:     # Reject names that are not valid shell variable names.
                    116:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    117:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    118:     fi
                    119:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    120:     case "$ac_option" in
                    121:       *=*) ;;
                    122:       *) ac_optarg=yes ;;
                    123:     esac
                    124:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    125:
                    126:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    127:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    128:   | --exec | --exe | --ex)
                    129:     ac_prev=exec_prefix ;;
                    130:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    131:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    132:   | --exec=* | --exe=* | --ex=*)
                    133:     exec_prefix="$ac_optarg" ;;
                    134:
                    135:   -gas | --gas | --ga | --g)
                    136:     # Obsolete; use --with-gas.
                    137:     with_gas=yes ;;
                    138:
                    139:   -help | --help | --hel | --he)
                    140:     # Omit some internal or obsolete options to make the list less imposing.
                    141:     # This message is too long to be a string in the A/UX 3.1 sh.
                    142:     cat << EOF
                    143: Usage: configure [options] [host]
                    144: Options: [defaults in brackets after descriptions]
                    145: Configuration:
                    146:   --cache-file=FILE       cache test results in FILE
                    147:   --help                  print this message
                    148:   --no-create             do not create output files
                    149:   --quiet, --silent       do not print \`checking...' messages
1.2     ! ohara     150:   --site-file=FILE        use FILE as the site file
1.1       ohara     151:   --version               print the version of autoconf that created configure
                    152: Directory and file names:
                    153:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    154:                           [$ac_default_prefix]
                    155:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    156:                           [same as prefix]
                    157:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    158:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    159:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    160:   --datadir=DIR           read-only architecture-independent data in DIR
                    161:                           [PREFIX/share]
                    162:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    163:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    164:                           [PREFIX/com]
                    165:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    166:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    167:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    168:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    169:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    170:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    171:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    172:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    173:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    174:   --program-transform-name=PROGRAM
                    175:                           run sed PROGRAM on installed program names
                    176: EOF
                    177:     cat << EOF
                    178: Host type:
                    179:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    180:   --host=HOST             configure for HOST [guessed]
                    181:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    182: Features and packages:
                    183:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    184:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    185:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    186:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    187:   --x-includes=DIR        X include files are in DIR
                    188:   --x-libraries=DIR       X library files are in DIR
                    189: EOF
                    190:     if test -n "$ac_help"; then
                    191:       echo "--enable and --with options recognized:$ac_help"
                    192:     fi
                    193:     exit 0 ;;
                    194:
                    195:   -host | --host | --hos | --ho)
                    196:     ac_prev=host ;;
                    197:   -host=* | --host=* | --hos=* | --ho=*)
                    198:     host="$ac_optarg" ;;
                    199:
                    200:   -includedir | --includedir | --includedi | --included | --include \
                    201:   | --includ | --inclu | --incl | --inc)
                    202:     ac_prev=includedir ;;
                    203:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    204:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    205:     includedir="$ac_optarg" ;;
                    206:
                    207:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    208:     ac_prev=infodir ;;
                    209:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    210:     infodir="$ac_optarg" ;;
                    211:
                    212:   -libdir | --libdir | --libdi | --libd)
                    213:     ac_prev=libdir ;;
                    214:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    215:     libdir="$ac_optarg" ;;
                    216:
                    217:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    218:   | --libexe | --libex | --libe)
                    219:     ac_prev=libexecdir ;;
                    220:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    221:   | --libexe=* | --libex=* | --libe=*)
                    222:     libexecdir="$ac_optarg" ;;
                    223:
                    224:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    225:   | --localstate | --localstat | --localsta | --localst \
                    226:   | --locals | --local | --loca | --loc | --lo)
                    227:     ac_prev=localstatedir ;;
                    228:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    229:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    230:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    231:     localstatedir="$ac_optarg" ;;
                    232:
                    233:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    234:     ac_prev=mandir ;;
                    235:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    236:     mandir="$ac_optarg" ;;
                    237:
                    238:   -nfp | --nfp | --nf)
                    239:     # Obsolete; use --without-fp.
                    240:     with_fp=no ;;
                    241:
                    242:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    243:   | --no-cr | --no-c)
                    244:     no_create=yes ;;
                    245:
                    246:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    247:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    248:     no_recursion=yes ;;
                    249:
                    250:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    251:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    252:   | --oldin | --oldi | --old | --ol | --o)
                    253:     ac_prev=oldincludedir ;;
                    254:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    255:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    256:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    257:     oldincludedir="$ac_optarg" ;;
                    258:
                    259:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    260:     ac_prev=prefix ;;
                    261:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    262:     prefix="$ac_optarg" ;;
                    263:
                    264:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    265:   | --program-pre | --program-pr | --program-p)
                    266:     ac_prev=program_prefix ;;
                    267:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    268:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    269:     program_prefix="$ac_optarg" ;;
                    270:
                    271:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    272:   | --program-suf | --program-su | --program-s)
                    273:     ac_prev=program_suffix ;;
                    274:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    275:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    276:     program_suffix="$ac_optarg" ;;
                    277:
                    278:   -program-transform-name | --program-transform-name \
                    279:   | --program-transform-nam | --program-transform-na \
                    280:   | --program-transform-n | --program-transform- \
                    281:   | --program-transform | --program-transfor \
                    282:   | --program-transfo | --program-transf \
                    283:   | --program-trans | --program-tran \
                    284:   | --progr-tra | --program-tr | --program-t)
                    285:     ac_prev=program_transform_name ;;
                    286:   -program-transform-name=* | --program-transform-name=* \
                    287:   | --program-transform-nam=* | --program-transform-na=* \
                    288:   | --program-transform-n=* | --program-transform-=* \
                    289:   | --program-transform=* | --program-transfor=* \
                    290:   | --program-transfo=* | --program-transf=* \
                    291:   | --program-trans=* | --program-tran=* \
                    292:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    293:     program_transform_name="$ac_optarg" ;;
                    294:
                    295:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    296:   | -silent | --silent | --silen | --sile | --sil)
                    297:     silent=yes ;;
                    298:
                    299:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    300:     ac_prev=sbindir ;;
                    301:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    302:   | --sbi=* | --sb=*)
                    303:     sbindir="$ac_optarg" ;;
                    304:
                    305:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    306:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    307:   | --sharedst | --shareds | --shared | --share | --shar \
                    308:   | --sha | --sh)
                    309:     ac_prev=sharedstatedir ;;
                    310:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    311:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    312:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    313:   | --sha=* | --sh=*)
                    314:     sharedstatedir="$ac_optarg" ;;
                    315:
                    316:   -site | --site | --sit)
                    317:     ac_prev=site ;;
                    318:   -site=* | --site=* | --sit=*)
                    319:     site="$ac_optarg" ;;
                    320:
1.2     ! ohara     321:   -site-file | --site-file | --site-fil | --site-fi | --site-f)
        !           322:     ac_prev=sitefile ;;
        !           323:   -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
        !           324:     sitefile="$ac_optarg" ;;
        !           325:
1.1       ohara     326:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    327:     ac_prev=srcdir ;;
                    328:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    329:     srcdir="$ac_optarg" ;;
                    330:
                    331:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    332:   | --syscon | --sysco | --sysc | --sys | --sy)
                    333:     ac_prev=sysconfdir ;;
                    334:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    335:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    336:     sysconfdir="$ac_optarg" ;;
                    337:
                    338:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    339:     ac_prev=target ;;
                    340:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    341:     target="$ac_optarg" ;;
                    342:
                    343:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    344:     verbose=yes ;;
                    345:
                    346:   -version | --version | --versio | --versi | --vers)
                    347:     echo "configure generated by autoconf version 2.13"
                    348:     exit 0 ;;
                    349:
                    350:   -with-* | --with-*)
                    351:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    352:     # Reject names that are not valid shell variable names.
                    353:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    354:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    355:     fi
                    356:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    357:     case "$ac_option" in
                    358:       *=*) ;;
                    359:       *) ac_optarg=yes ;;
                    360:     esac
                    361:     eval "with_${ac_package}='$ac_optarg'" ;;
                    362:
                    363:   -without-* | --without-*)
                    364:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    365:     # Reject names that are not valid shell variable names.
                    366:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    367:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    368:     fi
                    369:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    370:     eval "with_${ac_package}=no" ;;
                    371:
                    372:   --x)
                    373:     # Obsolete; use --with-x.
                    374:     with_x=yes ;;
                    375:
                    376:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    377:   | --x-incl | --x-inc | --x-in | --x-i)
                    378:     ac_prev=x_includes ;;
                    379:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    380:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    381:     x_includes="$ac_optarg" ;;
                    382:
                    383:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    384:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    385:     ac_prev=x_libraries ;;
                    386:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    387:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    388:     x_libraries="$ac_optarg" ;;
                    389:
                    390:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    391:     ;;
                    392:
                    393:   *)
                    394:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    395:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    396:     fi
                    397:     if test "x$nonopt" != xNONE; then
                    398:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    399:     fi
                    400:     nonopt="$ac_option"
                    401:     ;;
                    402:
                    403:   esac
                    404: done
                    405:
                    406: if test -n "$ac_prev"; then
                    407:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    408: fi
                    409:
                    410: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    411:
                    412: # File descriptor usage:
                    413: # 0 standard input
                    414: # 1 file creation
                    415: # 2 errors and warnings
                    416: # 3 some systems may open it to /dev/tty
                    417: # 4 used on the Kubota Titan
                    418: # 6 checking for... messages and results
                    419: # 5 compiler messages saved in config.log
                    420: if test "$silent" = yes; then
                    421:   exec 6>/dev/null
                    422: else
                    423:   exec 6>&1
                    424: fi
                    425: exec 5>./config.log
                    426:
                    427: echo "\
                    428: This file contains any messages produced by compilers while
                    429: running configure, to aid debugging if configure makes a mistake.
                    430: " 1>&5
                    431:
                    432: # Strip out --no-create and --no-recursion so they do not pile up.
                    433: # Also quote any args containing shell metacharacters.
                    434: ac_configure_args=
                    435: for ac_arg
                    436: do
                    437:   case "$ac_arg" in
                    438:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    439:   | --no-cr | --no-c) ;;
                    440:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    441:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    442:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    443:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    444:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    445:   esac
                    446: done
                    447:
                    448: # NLS nuisances.
                    449: # Only set these to C if already set.  These must not be set unconditionally
                    450: # because not all systems understand e.g. LANG=C (notably SCO).
                    451: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    452: # Non-C LC_CTYPE values break the ctype check.
                    453: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    454: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    455: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    456: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
                    457:
                    458: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    459: rm -rf conftest* confdefs.h
                    460: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    461: echo > confdefs.h
                    462:
                    463: # A filename unique to this package, relative to the directory that
                    464: # configure is in, which we can look for to find out if srcdir is correct.
                    465: ac_unique_file=mysocket.c
                    466:
                    467: # Find the source files, if location was not specified.
                    468: if test -z "$srcdir"; then
                    469:   ac_srcdir_defaulted=yes
                    470:   # Try the directory containing this script, then its parent.
                    471:   ac_prog=$0
                    472:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    473:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    474:   srcdir=$ac_confdir
                    475:   if test ! -r $srcdir/$ac_unique_file; then
                    476:     srcdir=..
                    477:   fi
                    478: else
                    479:   ac_srcdir_defaulted=no
                    480: fi
                    481: if test ! -r $srcdir/$ac_unique_file; then
                    482:   if test "$ac_srcdir_defaulted" = yes; then
                    483:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    484:   else
                    485:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    486:   fi
                    487: fi
                    488: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    489:
                    490: # Prefer explicitly selected file to automatically selected ones.
1.2     ! ohara     491: if test -z "$sitefile"; then
        !           492:   if test -z "$CONFIG_SITE"; then
        !           493:     if test "x$prefix" != xNONE; then
        !           494:       CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
        !           495:     else
        !           496:       CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
        !           497:     fi
1.1       ohara     498:   fi
1.2     ! ohara     499: else
        !           500:   CONFIG_SITE="$sitefile"
1.1       ohara     501: fi
                    502: for ac_site_file in $CONFIG_SITE; do
                    503:   if test -r "$ac_site_file"; then
                    504:     echo "loading site script $ac_site_file"
                    505:     . "$ac_site_file"
                    506:   fi
                    507: done
                    508:
                    509: if test -r "$cache_file"; then
                    510:   echo "loading cache $cache_file"
                    511:   . $cache_file
                    512: else
                    513:   echo "creating cache $cache_file"
                    514:   > $cache_file
                    515: fi
                    516:
                    517: ac_ext=c
                    518: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    519: ac_cpp='$CPP $CPPFLAGS'
                    520: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    521: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    522: cross_compiling=$ac_cv_prog_cc_cross
                    523:
                    524: ac_exeext=
                    525: ac_objext=o
                    526: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    527:   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
                    528:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    529:     ac_n= ac_c='
                    530: ' ac_t='       '
                    531:   else
                    532:     ac_n=-n ac_c= ac_t=
                    533:   fi
                    534: else
                    535:   ac_n= ac_c='\c' ac_t=
                    536: fi
                    537:
                    538:
                    539: # Extract the first word of "gcc", so it can be a program name with args.
                    540: set dummy gcc; ac_word=$2
                    541: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.2     ! ohara     542: echo "configure:543: checking for $ac_word" >&5
1.1       ohara     543: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    544:   echo $ac_n "(cached) $ac_c" 1>&6
                    545: else
                    546:   if test -n "$CC"; then
                    547:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    548: else
                    549:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    550:   ac_dummy="$PATH"
                    551:   for ac_dir in $ac_dummy; do
                    552:     test -z "$ac_dir" && ac_dir=.
                    553:     if test -f $ac_dir/$ac_word; then
                    554:       ac_cv_prog_CC="gcc"
                    555:       break
                    556:     fi
                    557:   done
                    558:   IFS="$ac_save_ifs"
                    559: fi
                    560: fi
                    561: CC="$ac_cv_prog_CC"
                    562: if test -n "$CC"; then
                    563:   echo "$ac_t""$CC" 1>&6
                    564: else
                    565:   echo "$ac_t""no" 1>&6
                    566: fi
                    567:
                    568: if test -z "$CC"; then
                    569:   # Extract the first word of "cc", so it can be a program name with args.
                    570: set dummy cc; ac_word=$2
                    571: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.2     ! ohara     572: echo "configure:573: checking for $ac_word" >&5
1.1       ohara     573: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    574:   echo $ac_n "(cached) $ac_c" 1>&6
                    575: else
                    576:   if test -n "$CC"; then
                    577:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    578: else
                    579:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    580:   ac_prog_rejected=no
                    581:   ac_dummy="$PATH"
                    582:   for ac_dir in $ac_dummy; do
                    583:     test -z "$ac_dir" && ac_dir=.
                    584:     if test -f $ac_dir/$ac_word; then
                    585:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                    586:         ac_prog_rejected=yes
                    587:        continue
                    588:       fi
                    589:       ac_cv_prog_CC="cc"
                    590:       break
                    591:     fi
                    592:   done
                    593:   IFS="$ac_save_ifs"
                    594: if test $ac_prog_rejected = yes; then
                    595:   # We found a bogon in the path, so make sure we never use it.
                    596:   set dummy $ac_cv_prog_CC
                    597:   shift
                    598:   if test $# -gt 0; then
                    599:     # We chose a different compiler from the bogus one.
                    600:     # However, it has the same basename, so the bogon will be chosen
                    601:     # first if we set CC to just the basename; use the full file name.
                    602:     shift
                    603:     set dummy "$ac_dir/$ac_word" "$@"
                    604:     shift
                    605:     ac_cv_prog_CC="$@"
                    606:   fi
                    607: fi
                    608: fi
                    609: fi
                    610: CC="$ac_cv_prog_CC"
                    611: if test -n "$CC"; then
                    612:   echo "$ac_t""$CC" 1>&6
                    613: else
                    614:   echo "$ac_t""no" 1>&6
                    615: fi
                    616:
                    617:   if test -z "$CC"; then
                    618:     case "`uname -s`" in
                    619:     *win32* | *WIN32*)
                    620:       # Extract the first word of "cl", so it can be a program name with args.
                    621: set dummy cl; ac_word=$2
                    622: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.2     ! ohara     623: echo "configure:624: checking for $ac_word" >&5
1.1       ohara     624: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    625:   echo $ac_n "(cached) $ac_c" 1>&6
                    626: else
                    627:   if test -n "$CC"; then
                    628:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    629: else
                    630:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    631:   ac_dummy="$PATH"
                    632:   for ac_dir in $ac_dummy; do
                    633:     test -z "$ac_dir" && ac_dir=.
                    634:     if test -f $ac_dir/$ac_word; then
                    635:       ac_cv_prog_CC="cl"
                    636:       break
                    637:     fi
                    638:   done
                    639:   IFS="$ac_save_ifs"
                    640: fi
                    641: fi
                    642: CC="$ac_cv_prog_CC"
                    643: if test -n "$CC"; then
                    644:   echo "$ac_t""$CC" 1>&6
                    645: else
                    646:   echo "$ac_t""no" 1>&6
                    647: fi
                    648:  ;;
                    649:     esac
                    650:   fi
                    651:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                    652: fi
                    653:
                    654: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.2     ! ohara     655: echo "configure:656: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1       ohara     656:
                    657: ac_ext=c
                    658: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    659: ac_cpp='$CPP $CPPFLAGS'
                    660: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    661: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    662: cross_compiling=$ac_cv_prog_cc_cross
                    663:
                    664: cat > conftest.$ac_ext << EOF
                    665:
1.2     ! ohara     666: #line 667 "configure"
1.1       ohara     667: #include "confdefs.h"
                    668:
                    669: main(){return(0);}
                    670: EOF
1.2     ! ohara     671: if { (eval echo configure:672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara     672:   ac_cv_prog_cc_works=yes
                    673:   # If we can't run a trivial program, we are probably using a cross compiler.
                    674:   if (./conftest; exit) 2>/dev/null; then
                    675:     ac_cv_prog_cc_cross=no
                    676:   else
                    677:     ac_cv_prog_cc_cross=yes
                    678:   fi
                    679: else
                    680:   echo "configure: failed program was:" >&5
                    681:   cat conftest.$ac_ext >&5
                    682:   ac_cv_prog_cc_works=no
                    683: fi
                    684: rm -fr conftest*
                    685: ac_ext=c
                    686: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    687: ac_cpp='$CPP $CPPFLAGS'
                    688: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    689: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    690: cross_compiling=$ac_cv_prog_cc_cross
                    691:
                    692: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                    693: if test $ac_cv_prog_cc_works = no; then
                    694:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                    695: fi
                    696: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.2     ! ohara     697: echo "configure:698: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       ohara     698: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                    699: cross_compiling=$ac_cv_prog_cc_cross
                    700:
                    701: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.2     ! ohara     702: echo "configure:703: checking whether we are using GNU C" >&5
1.1       ohara     703: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                    704:   echo $ac_n "(cached) $ac_c" 1>&6
                    705: else
                    706:   cat > conftest.c <<EOF
                    707: #ifdef __GNUC__
                    708:   yes;
                    709: #endif
                    710: EOF
1.2     ! ohara     711: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       ohara     712:   ac_cv_prog_gcc=yes
                    713: else
                    714:   ac_cv_prog_gcc=no
                    715: fi
                    716: fi
                    717:
                    718: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
                    719:
                    720: if test $ac_cv_prog_gcc = yes; then
                    721:   GCC=yes
                    722: else
                    723:   GCC=
                    724: fi
                    725:
                    726: ac_test_CFLAGS="${CFLAGS+set}"
                    727: ac_save_CFLAGS="$CFLAGS"
                    728: CFLAGS=
                    729: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.2     ! ohara     730: echo "configure:731: checking whether ${CC-cc} accepts -g" >&5
1.1       ohara     731: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
                    732:   echo $ac_n "(cached) $ac_c" 1>&6
                    733: else
                    734:   echo 'void f(){}' > conftest.c
                    735: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
                    736:   ac_cv_prog_cc_g=yes
                    737: else
                    738:   ac_cv_prog_cc_g=no
                    739: fi
                    740: rm -f conftest*
                    741:
                    742: fi
                    743:
                    744: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
                    745: if test "$ac_test_CFLAGS" = set; then
                    746:   CFLAGS="$ac_save_CFLAGS"
                    747: elif test $ac_cv_prog_cc_g = yes; then
                    748:   if test "$GCC" = yes; then
                    749:     CFLAGS="-g -O2"
                    750:   else
                    751:     CFLAGS="-g"
                    752:   fi
                    753: else
                    754:   if test "$GCC" = yes; then
                    755:     CFLAGS="-O2"
                    756:   else
                    757:     CFLAGS=
                    758:   fi
                    759: fi
                    760:
                    761: # Extract the first word of "ranlib", so it can be a program name with args.
                    762: set dummy ranlib; ac_word=$2
                    763: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.2     ! ohara     764: echo "configure:765: checking for $ac_word" >&5
1.1       ohara     765: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
                    766:   echo $ac_n "(cached) $ac_c" 1>&6
                    767: else
                    768:   if test -n "$RANLIB"; then
                    769:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                    770: else
                    771:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    772:   ac_dummy="$PATH"
                    773:   for ac_dir in $ac_dummy; do
                    774:     test -z "$ac_dir" && ac_dir=.
                    775:     if test -f $ac_dir/$ac_word; then
                    776:       ac_cv_prog_RANLIB="ranlib"
                    777:       break
                    778:     fi
                    779:   done
                    780:   IFS="$ac_save_ifs"
                    781:   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
                    782: fi
                    783: fi
                    784: RANLIB="$ac_cv_prog_RANLIB"
                    785: if test -n "$RANLIB"; then
                    786:   echo "$ac_t""$RANLIB" 1>&6
                    787: else
                    788:   echo "$ac_t""no" 1>&6
                    789: fi
                    790:
                    791: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.2     ! ohara     792: echo "configure:793: checking how to run the C preprocessor" >&5
1.1       ohara     793: # On Suns, sometimes $CPP names a directory.
                    794: if test -n "$CPP" && test -d "$CPP"; then
                    795:   CPP=
                    796: fi
                    797: if test -z "$CPP"; then
                    798: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
                    799:   echo $ac_n "(cached) $ac_c" 1>&6
                    800: else
                    801:     # This must be in double quotes, not single quotes, because CPP may get
                    802:   # substituted into the Makefile and "${CC-cc}" will confuse make.
                    803:   CPP="${CC-cc} -E"
                    804:   # On the NeXT, cc -E runs the code through the compiler's parser,
                    805:   # not just through cpp.
                    806:   cat > conftest.$ac_ext <<EOF
1.2     ! ohara     807: #line 808 "configure"
1.1       ohara     808: #include "confdefs.h"
                    809: #include <assert.h>
                    810: Syntax Error
                    811: EOF
                    812: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.2     ! ohara     813: { (eval echo configure:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       ohara     814: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                    815: if test -z "$ac_err"; then
                    816:   :
                    817: else
                    818:   echo "$ac_err" >&5
                    819:   echo "configure: failed program was:" >&5
                    820:   cat conftest.$ac_ext >&5
                    821:   rm -rf conftest*
                    822:   CPP="${CC-cc} -E -traditional-cpp"
                    823:   cat > conftest.$ac_ext <<EOF
1.2     ! ohara     824: #line 825 "configure"
1.1       ohara     825: #include "confdefs.h"
                    826: #include <assert.h>
                    827: Syntax Error
                    828: EOF
                    829: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.2     ! ohara     830: { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       ohara     831: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                    832: if test -z "$ac_err"; then
                    833:   :
                    834: else
                    835:   echo "$ac_err" >&5
                    836:   echo "configure: failed program was:" >&5
                    837:   cat conftest.$ac_ext >&5
                    838:   rm -rf conftest*
                    839:   CPP="${CC-cc} -nologo -E"
                    840:   cat > conftest.$ac_ext <<EOF
1.2     ! ohara     841: #line 842 "configure"
1.1       ohara     842: #include "confdefs.h"
                    843: #include <assert.h>
                    844: Syntax Error
                    845: EOF
                    846: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.2     ! ohara     847: { (eval echo configure:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       ohara     848: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                    849: if test -z "$ac_err"; then
                    850:   :
                    851: else
                    852:   echo "$ac_err" >&5
                    853:   echo "configure: failed program was:" >&5
                    854:   cat conftest.$ac_ext >&5
                    855:   rm -rf conftest*
                    856:   CPP=/lib/cpp
                    857: fi
                    858: rm -f conftest*
                    859: fi
                    860: rm -f conftest*
                    861: fi
                    862: rm -f conftest*
                    863:   ac_cv_prog_CPP="$CPP"
                    864: fi
                    865:   CPP="$ac_cv_prog_CPP"
                    866: else
                    867:   ac_cv_prog_CPP="$CPP"
                    868: fi
                    869: echo "$ac_t""$CPP" 1>&6
                    870:
                    871: # If we find X, set shell vars x_includes and x_libraries to the
                    872: # paths, otherwise set no_x=yes.
                    873: # Uses ac_ vars as temps to allow command line to override cache and checks.
                    874: # --without-x overrides everything else, but does not touch the cache.
                    875: echo $ac_n "checking for X""... $ac_c" 1>&6
1.2     ! ohara     876: echo "configure:877: checking for X" >&5
1.1       ohara     877:
                    878: # Check whether --with-x or --without-x was given.
                    879: if test "${with_x+set}" = set; then
                    880:   withval="$with_x"
                    881:   :
                    882: fi
                    883:
                    884: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
                    885: if test "x$with_x" = xno; then
                    886:   # The user explicitly disabled X.
                    887:   have_x=disabled
                    888: else
                    889:   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
                    890:     # Both variables are already set.
                    891:     have_x=yes
                    892:   else
                    893: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
                    894:   echo $ac_n "(cached) $ac_c" 1>&6
                    895: else
                    896:   # One or both of the vars are not set, and there is no cached value.
                    897: ac_x_includes=NO ac_x_libraries=NO
                    898: rm -fr conftestdir
                    899: if mkdir conftestdir; then
                    900:   cd conftestdir
                    901:   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
                    902:   cat > Imakefile <<'EOF'
                    903: acfindx:
                    904:        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
                    905: EOF
                    906:   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
                    907:     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    908:     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
                    909:     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
                    910:     for ac_extension in a so sl; do
                    911:       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
                    912:         test -f $ac_im_libdir/libX11.$ac_extension; then
                    913:         ac_im_usrlibdir=$ac_im_libdir; break
                    914:       fi
                    915:     done
                    916:     # Screen out bogus values from the imake configuration.  They are
                    917:     # bogus both because they are the default anyway, and because
                    918:     # using them would break gcc on systems where it needs fixed includes.
                    919:     case "$ac_im_incroot" in
                    920:        /usr/include) ;;
                    921:        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
                    922:     esac
                    923:     case "$ac_im_usrlibdir" in
                    924:        /usr/lib | /lib) ;;
                    925:        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
                    926:     esac
                    927:   fi
                    928:   cd ..
                    929:   rm -fr conftestdir
                    930: fi
                    931:
                    932: if test "$ac_x_includes" = NO; then
                    933:   # Guess where to find include files, by looking for this one X11 .h file.
                    934:   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
                    935:
                    936:   # First, try using that file with no special directory specified.
                    937: cat > conftest.$ac_ext <<EOF
1.2     ! ohara     938: #line 939 "configure"
1.1       ohara     939: #include "confdefs.h"
                    940: #include <$x_direct_test_include>
                    941: EOF
                    942: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.2     ! ohara     943: { (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       ohara     944: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                    945: if test -z "$ac_err"; then
                    946:   rm -rf conftest*
                    947:   # We can compile using X headers with no special include directory.
                    948: ac_x_includes=
                    949: else
                    950:   echo "$ac_err" >&5
                    951:   echo "configure: failed program was:" >&5
                    952:   cat conftest.$ac_ext >&5
                    953:   rm -rf conftest*
                    954:   # Look for the header file in a standard set of common directories.
                    955: # Check X11 before X11Rn because it is often a symlink to the current release.
                    956:   for ac_dir in               \
                    957:     /usr/X11/include          \
                    958:     /usr/X11R6/include        \
                    959:     /usr/X11R5/include        \
                    960:     /usr/X11R4/include        \
                    961:                               \
                    962:     /usr/include/X11          \
                    963:     /usr/include/X11R6        \
                    964:     /usr/include/X11R5        \
                    965:     /usr/include/X11R4        \
                    966:                               \
                    967:     /usr/local/X11/include    \
                    968:     /usr/local/X11R6/include  \
                    969:     /usr/local/X11R5/include  \
                    970:     /usr/local/X11R4/include  \
                    971:                               \
                    972:     /usr/local/include/X11    \
                    973:     /usr/local/include/X11R6  \
                    974:     /usr/local/include/X11R5  \
                    975:     /usr/local/include/X11R4  \
                    976:                               \
                    977:     /usr/X386/include         \
                    978:     /usr/x386/include         \
                    979:     /usr/XFree86/include/X11  \
                    980:                               \
                    981:     /usr/include              \
                    982:     /usr/local/include        \
                    983:     /usr/unsupported/include  \
                    984:     /usr/athena/include       \
                    985:     /usr/local/x11r5/include  \
                    986:     /usr/lpp/Xamples/include  \
                    987:                               \
                    988:     /usr/openwin/include      \
                    989:     /usr/openwin/share/include \
                    990:     ; \
                    991:   do
                    992:     if test -r "$ac_dir/$x_direct_test_include"; then
                    993:       ac_x_includes=$ac_dir
                    994:       break
                    995:     fi
                    996:   done
                    997: fi
                    998: rm -f conftest*
                    999: fi # $ac_x_includes = NO
                   1000:
                   1001: if test "$ac_x_libraries" = NO; then
                   1002:   # Check for the libraries.
                   1003:
                   1004:   test -z "$x_direct_test_library" && x_direct_test_library=Xt
                   1005:   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
                   1006:
                   1007:   # See if we find them without any special options.
                   1008:   # Don't add to $LIBS permanently.
                   1009:   ac_save_LIBS="$LIBS"
                   1010:   LIBS="-l$x_direct_test_library $LIBS"
                   1011: cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1012: #line 1013 "configure"
1.1       ohara    1013: #include "confdefs.h"
                   1014:
                   1015: int main() {
                   1016: ${x_direct_test_function}()
                   1017: ; return 0; }
                   1018: EOF
1.2     ! ohara    1019: if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1020:   rm -rf conftest*
                   1021:   LIBS="$ac_save_LIBS"
                   1022: # We can link X programs with no special library path.
                   1023: ac_x_libraries=
                   1024: else
                   1025:   echo "configure: failed program was:" >&5
                   1026:   cat conftest.$ac_ext >&5
                   1027:   rm -rf conftest*
                   1028:   LIBS="$ac_save_LIBS"
                   1029: # First see if replacing the include by lib works.
                   1030: # Check X11 before X11Rn because it is often a symlink to the current release.
                   1031: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
                   1032:     /usr/X11/lib          \
                   1033:     /usr/X11R6/lib        \
                   1034:     /usr/X11R5/lib        \
                   1035:     /usr/X11R4/lib        \
                   1036:                           \
                   1037:     /usr/lib/X11          \
                   1038:     /usr/lib/X11R6        \
                   1039:     /usr/lib/X11R5        \
                   1040:     /usr/lib/X11R4        \
                   1041:                           \
                   1042:     /usr/local/X11/lib    \
                   1043:     /usr/local/X11R6/lib  \
                   1044:     /usr/local/X11R5/lib  \
                   1045:     /usr/local/X11R4/lib  \
                   1046:                           \
                   1047:     /usr/local/lib/X11    \
                   1048:     /usr/local/lib/X11R6  \
                   1049:     /usr/local/lib/X11R5  \
                   1050:     /usr/local/lib/X11R4  \
                   1051:                           \
                   1052:     /usr/X386/lib         \
                   1053:     /usr/x386/lib         \
                   1054:     /usr/XFree86/lib/X11  \
                   1055:                           \
                   1056:     /usr/lib              \
                   1057:     /usr/local/lib        \
                   1058:     /usr/unsupported/lib  \
                   1059:     /usr/athena/lib       \
                   1060:     /usr/local/x11r5/lib  \
                   1061:     /usr/lpp/Xamples/lib  \
                   1062:     /lib/usr/lib/X11     \
                   1063:                           \
                   1064:     /usr/openwin/lib      \
                   1065:     /usr/openwin/share/lib \
                   1066:     ; \
                   1067: do
                   1068:   for ac_extension in a so sl; do
                   1069:     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
                   1070:       ac_x_libraries=$ac_dir
                   1071:       break 2
                   1072:     fi
                   1073:   done
                   1074: done
                   1075: fi
                   1076: rm -f conftest*
                   1077: fi # $ac_x_libraries = NO
                   1078:
                   1079: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
                   1080:   # Didn't find X anywhere.  Cache the known absence of X.
                   1081:   ac_cv_have_x="have_x=no"
                   1082: else
                   1083:   # Record where we found X for the cache.
                   1084:   ac_cv_have_x="have_x=yes \
                   1085:                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
                   1086: fi
                   1087: fi
                   1088:   fi
                   1089:   eval "$ac_cv_have_x"
                   1090: fi # $with_x != no
                   1091:
                   1092: if test "$have_x" != yes; then
                   1093:   echo "$ac_t""$have_x" 1>&6
                   1094:   no_x=yes
                   1095: else
                   1096:   # If each of the values was on the command line, it overrides each guess.
                   1097:   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
                   1098:   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
                   1099:   # Update the cache value to reflect the command line values.
                   1100:   ac_cv_have_x="have_x=yes \
                   1101:                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
                   1102:   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
                   1103: fi
                   1104:
                   1105: if test "$no_x" = yes; then
                   1106:   # Not all programs may use this symbol, but it does not hurt to define it.
                   1107:   cat >> confdefs.h <<\EOF
                   1108: #define X_DISPLAY_MISSING 1
                   1109: EOF
                   1110:
                   1111:   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
                   1112: else
                   1113:   if test -n "$x_includes"; then
                   1114:     X_CFLAGS="$X_CFLAGS -I$x_includes"
                   1115:   fi
                   1116:
                   1117:   # It would also be nice to do this for all -L options, not just this one.
                   1118:   if test -n "$x_libraries"; then
                   1119:     X_LIBS="$X_LIBS -L$x_libraries"
                   1120:     # For Solaris; some versions of Sun CC require a space after -R and
                   1121:     # others require no space.  Words are not sufficient . . . .
                   1122:     case "`(uname -sr) 2>/dev/null`" in
                   1123:     "SunOS 5"*)
                   1124:       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1.2     ! ohara    1125: echo "configure:1126: checking whether -R must be followed by a space" >&5
1.1       ohara    1126:       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
                   1127:       cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1128: #line 1129 "configure"
1.1       ohara    1129: #include "confdefs.h"
                   1130:
                   1131: int main() {
                   1132:
                   1133: ; return 0; }
                   1134: EOF
1.2     ! ohara    1135: if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1136:   rm -rf conftest*
                   1137:   ac_R_nospace=yes
                   1138: else
                   1139:   echo "configure: failed program was:" >&5
                   1140:   cat conftest.$ac_ext >&5
                   1141:   rm -rf conftest*
                   1142:   ac_R_nospace=no
                   1143: fi
                   1144: rm -f conftest*
                   1145:       if test $ac_R_nospace = yes; then
                   1146:        echo "$ac_t""no" 1>&6
                   1147:        X_LIBS="$X_LIBS -R$x_libraries"
                   1148:       else
                   1149:        LIBS="$ac_xsave_LIBS -R $x_libraries"
                   1150:        cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1151: #line 1152 "configure"
1.1       ohara    1152: #include "confdefs.h"
                   1153:
                   1154: int main() {
                   1155:
                   1156: ; return 0; }
                   1157: EOF
1.2     ! ohara    1158: if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1159:   rm -rf conftest*
                   1160:   ac_R_space=yes
                   1161: else
                   1162:   echo "configure: failed program was:" >&5
                   1163:   cat conftest.$ac_ext >&5
                   1164:   rm -rf conftest*
                   1165:   ac_R_space=no
                   1166: fi
                   1167: rm -f conftest*
                   1168:        if test $ac_R_space = yes; then
                   1169:          echo "$ac_t""yes" 1>&6
                   1170:          X_LIBS="$X_LIBS -R $x_libraries"
                   1171:        else
                   1172:          echo "$ac_t""neither works" 1>&6
                   1173:        fi
                   1174:       fi
                   1175:       LIBS="$ac_xsave_LIBS"
                   1176:     esac
                   1177:   fi
                   1178:
                   1179:   # Check for system-dependent libraries X programs must link with.
                   1180:   # Do this before checking for the system-independent R6 libraries
                   1181:   # (-lICE), since we may need -lsocket or whatever for X linking.
                   1182:
                   1183:   if test "$ISC" = yes; then
                   1184:     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
                   1185:   else
                   1186:     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
                   1187:     # libraries were built with DECnet support.  And karl@cs.umb.edu says
                   1188:     # the Alpha needs dnet_stub (dnet does not exist).
                   1189:     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1.2     ! ohara    1190: echo "configure:1191: checking for dnet_ntoa in -ldnet" >&5
1.1       ohara    1191: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
                   1192: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1193:   echo $ac_n "(cached) $ac_c" 1>&6
                   1194: else
                   1195:   ac_save_LIBS="$LIBS"
                   1196: LIBS="-ldnet  $LIBS"
                   1197: cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1198: #line 1199 "configure"
1.1       ohara    1199: #include "confdefs.h"
                   1200: /* Override any gcc2 internal prototype to avoid an error.  */
                   1201: /* We use char because int might match the return type of a gcc2
                   1202:     builtin and then its argument prototype would still apply.  */
                   1203: char dnet_ntoa();
                   1204:
                   1205: int main() {
                   1206: dnet_ntoa()
                   1207: ; return 0; }
                   1208: EOF
1.2     ! ohara    1209: if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1210:   rm -rf conftest*
                   1211:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1212: else
                   1213:   echo "configure: failed program was:" >&5
                   1214:   cat conftest.$ac_ext >&5
                   1215:   rm -rf conftest*
                   1216:   eval "ac_cv_lib_$ac_lib_var=no"
                   1217: fi
                   1218: rm -f conftest*
                   1219: LIBS="$ac_save_LIBS"
                   1220:
                   1221: fi
                   1222: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1223:   echo "$ac_t""yes" 1>&6
                   1224:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
                   1225: else
                   1226:   echo "$ac_t""no" 1>&6
                   1227: fi
                   1228:
                   1229:     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
                   1230:       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1.2     ! ohara    1231: echo "configure:1232: checking for dnet_ntoa in -ldnet_stub" >&5
1.1       ohara    1232: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
                   1233: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1234:   echo $ac_n "(cached) $ac_c" 1>&6
                   1235: else
                   1236:   ac_save_LIBS="$LIBS"
                   1237: LIBS="-ldnet_stub  $LIBS"
                   1238: cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1239: #line 1240 "configure"
1.1       ohara    1240: #include "confdefs.h"
                   1241: /* Override any gcc2 internal prototype to avoid an error.  */
                   1242: /* We use char because int might match the return type of a gcc2
                   1243:     builtin and then its argument prototype would still apply.  */
                   1244: char dnet_ntoa();
                   1245:
                   1246: int main() {
                   1247: dnet_ntoa()
                   1248: ; return 0; }
                   1249: EOF
1.2     ! ohara    1250: if { (eval echo configure:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1251:   rm -rf conftest*
                   1252:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1253: else
                   1254:   echo "configure: failed program was:" >&5
                   1255:   cat conftest.$ac_ext >&5
                   1256:   rm -rf conftest*
                   1257:   eval "ac_cv_lib_$ac_lib_var=no"
                   1258: fi
                   1259: rm -f conftest*
                   1260: LIBS="$ac_save_LIBS"
                   1261:
                   1262: fi
                   1263: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1264:   echo "$ac_t""yes" 1>&6
                   1265:   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
                   1266: else
                   1267:   echo "$ac_t""no" 1>&6
                   1268: fi
                   1269:
                   1270:     fi
                   1271:
                   1272:     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
                   1273:     # to get the SysV transport functions.
                   1274:     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
                   1275:     # needs -lnsl.
                   1276:     # The nsl library prevents programs from opening the X display
                   1277:     # on Irix 5.2, according to dickey@clark.net.
                   1278:     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1.2     ! ohara    1279: echo "configure:1280: checking for gethostbyname" >&5
1.1       ohara    1280: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
                   1281:   echo $ac_n "(cached) $ac_c" 1>&6
                   1282: else
                   1283:   cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1284: #line 1285 "configure"
1.1       ohara    1285: #include "confdefs.h"
                   1286: /* System header to define __stub macros and hopefully few prototypes,
                   1287:     which can conflict with char gethostbyname(); below.  */
                   1288: #include <assert.h>
                   1289: /* Override any gcc2 internal prototype to avoid an error.  */
                   1290: /* We use char because int might match the return type of a gcc2
                   1291:     builtin and then its argument prototype would still apply.  */
                   1292: char gethostbyname();
                   1293:
                   1294: int main() {
                   1295:
                   1296: /* The GNU C library defines this for functions which it implements
                   1297:     to always fail with ENOSYS.  Some functions are actually named
                   1298:     something starting with __ and the normal name is an alias.  */
                   1299: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
                   1300: choke me
                   1301: #else
                   1302: gethostbyname();
                   1303: #endif
                   1304:
                   1305: ; return 0; }
                   1306: EOF
1.2     ! ohara    1307: if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1308:   rm -rf conftest*
                   1309:   eval "ac_cv_func_gethostbyname=yes"
                   1310: else
                   1311:   echo "configure: failed program was:" >&5
                   1312:   cat conftest.$ac_ext >&5
                   1313:   rm -rf conftest*
                   1314:   eval "ac_cv_func_gethostbyname=no"
                   1315: fi
                   1316: rm -f conftest*
                   1317: fi
                   1318:
                   1319: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
                   1320:   echo "$ac_t""yes" 1>&6
                   1321:   :
                   1322: else
                   1323:   echo "$ac_t""no" 1>&6
                   1324: fi
                   1325:
                   1326:     if test $ac_cv_func_gethostbyname = no; then
                   1327:       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.2     ! ohara    1328: echo "configure:1329: checking for gethostbyname in -lnsl" >&5
1.1       ohara    1329: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
                   1330: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1331:   echo $ac_n "(cached) $ac_c" 1>&6
                   1332: else
                   1333:   ac_save_LIBS="$LIBS"
                   1334: LIBS="-lnsl  $LIBS"
                   1335: cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1336: #line 1337 "configure"
1.1       ohara    1337: #include "confdefs.h"
                   1338: /* Override any gcc2 internal prototype to avoid an error.  */
                   1339: /* We use char because int might match the return type of a gcc2
                   1340:     builtin and then its argument prototype would still apply.  */
                   1341: char gethostbyname();
                   1342:
                   1343: int main() {
                   1344: gethostbyname()
                   1345: ; return 0; }
                   1346: EOF
1.2     ! ohara    1347: if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1348:   rm -rf conftest*
                   1349:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1350: else
                   1351:   echo "configure: failed program was:" >&5
                   1352:   cat conftest.$ac_ext >&5
                   1353:   rm -rf conftest*
                   1354:   eval "ac_cv_lib_$ac_lib_var=no"
                   1355: fi
                   1356: rm -f conftest*
                   1357: LIBS="$ac_save_LIBS"
                   1358:
                   1359: fi
                   1360: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1361:   echo "$ac_t""yes" 1>&6
                   1362:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
                   1363: else
                   1364:   echo "$ac_t""no" 1>&6
                   1365: fi
                   1366:
                   1367:     fi
                   1368:
                   1369:     # lieder@skyler.mavd.honeywell.com says without -lsocket,
                   1370:     # socket/setsockopt and other routines are undefined under SCO ODT
                   1371:     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
                   1372:     # on later versions), says simon@lia.di.epfl.ch: it contains
                   1373:     # gethostby* variants that don't use the nameserver (or something).
                   1374:     # -lsocket must be given before -lnsl if both are needed.
                   1375:     # We assume that if connect needs -lnsl, so does gethostbyname.
                   1376:     echo $ac_n "checking for connect""... $ac_c" 1>&6
1.2     ! ohara    1377: echo "configure:1378: checking for connect" >&5
1.1       ohara    1378: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
                   1379:   echo $ac_n "(cached) $ac_c" 1>&6
                   1380: else
                   1381:   cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1382: #line 1383 "configure"
1.1       ohara    1383: #include "confdefs.h"
                   1384: /* System header to define __stub macros and hopefully few prototypes,
                   1385:     which can conflict with char connect(); below.  */
                   1386: #include <assert.h>
                   1387: /* Override any gcc2 internal prototype to avoid an error.  */
                   1388: /* We use char because int might match the return type of a gcc2
                   1389:     builtin and then its argument prototype would still apply.  */
                   1390: char connect();
                   1391:
                   1392: int main() {
                   1393:
                   1394: /* The GNU C library defines this for functions which it implements
                   1395:     to always fail with ENOSYS.  Some functions are actually named
                   1396:     something starting with __ and the normal name is an alias.  */
                   1397: #if defined (__stub_connect) || defined (__stub___connect)
                   1398: choke me
                   1399: #else
                   1400: connect();
                   1401: #endif
                   1402:
                   1403: ; return 0; }
                   1404: EOF
1.2     ! ohara    1405: if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1406:   rm -rf conftest*
                   1407:   eval "ac_cv_func_connect=yes"
                   1408: else
                   1409:   echo "configure: failed program was:" >&5
                   1410:   cat conftest.$ac_ext >&5
                   1411:   rm -rf conftest*
                   1412:   eval "ac_cv_func_connect=no"
                   1413: fi
                   1414: rm -f conftest*
                   1415: fi
                   1416:
                   1417: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
                   1418:   echo "$ac_t""yes" 1>&6
                   1419:   :
                   1420: else
                   1421:   echo "$ac_t""no" 1>&6
                   1422: fi
                   1423:
                   1424:     if test $ac_cv_func_connect = no; then
                   1425:       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1.2     ! ohara    1426: echo "configure:1427: checking for connect in -lsocket" >&5
1.1       ohara    1427: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
                   1428: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1429:   echo $ac_n "(cached) $ac_c" 1>&6
                   1430: else
                   1431:   ac_save_LIBS="$LIBS"
                   1432: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
                   1433: cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1434: #line 1435 "configure"
1.1       ohara    1435: #include "confdefs.h"
                   1436: /* Override any gcc2 internal prototype to avoid an error.  */
                   1437: /* We use char because int might match the return type of a gcc2
                   1438:     builtin and then its argument prototype would still apply.  */
                   1439: char connect();
                   1440:
                   1441: int main() {
                   1442: connect()
                   1443: ; return 0; }
                   1444: EOF
1.2     ! ohara    1445: if { (eval echo configure:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1446:   rm -rf conftest*
                   1447:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1448: else
                   1449:   echo "configure: failed program was:" >&5
                   1450:   cat conftest.$ac_ext >&5
                   1451:   rm -rf conftest*
                   1452:   eval "ac_cv_lib_$ac_lib_var=no"
                   1453: fi
                   1454: rm -f conftest*
                   1455: LIBS="$ac_save_LIBS"
                   1456:
                   1457: fi
                   1458: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1459:   echo "$ac_t""yes" 1>&6
                   1460:   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
                   1461: else
                   1462:   echo "$ac_t""no" 1>&6
                   1463: fi
                   1464:
                   1465:     fi
                   1466:
                   1467:     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
                   1468:     echo $ac_n "checking for remove""... $ac_c" 1>&6
1.2     ! ohara    1469: echo "configure:1470: checking for remove" >&5
1.1       ohara    1470: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
                   1471:   echo $ac_n "(cached) $ac_c" 1>&6
                   1472: else
                   1473:   cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1474: #line 1475 "configure"
1.1       ohara    1475: #include "confdefs.h"
                   1476: /* System header to define __stub macros and hopefully few prototypes,
                   1477:     which can conflict with char remove(); below.  */
                   1478: #include <assert.h>
                   1479: /* Override any gcc2 internal prototype to avoid an error.  */
                   1480: /* We use char because int might match the return type of a gcc2
                   1481:     builtin and then its argument prototype would still apply.  */
                   1482: char remove();
                   1483:
                   1484: int main() {
                   1485:
                   1486: /* The GNU C library defines this for functions which it implements
                   1487:     to always fail with ENOSYS.  Some functions are actually named
                   1488:     something starting with __ and the normal name is an alias.  */
                   1489: #if defined (__stub_remove) || defined (__stub___remove)
                   1490: choke me
                   1491: #else
                   1492: remove();
                   1493: #endif
                   1494:
                   1495: ; return 0; }
                   1496: EOF
1.2     ! ohara    1497: if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1498:   rm -rf conftest*
                   1499:   eval "ac_cv_func_remove=yes"
                   1500: else
                   1501:   echo "configure: failed program was:" >&5
                   1502:   cat conftest.$ac_ext >&5
                   1503:   rm -rf conftest*
                   1504:   eval "ac_cv_func_remove=no"
                   1505: fi
                   1506: rm -f conftest*
                   1507: fi
                   1508:
                   1509: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
                   1510:   echo "$ac_t""yes" 1>&6
                   1511:   :
                   1512: else
                   1513:   echo "$ac_t""no" 1>&6
                   1514: fi
                   1515:
                   1516:     if test $ac_cv_func_remove = no; then
                   1517:       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1.2     ! ohara    1518: echo "configure:1519: checking for remove in -lposix" >&5
1.1       ohara    1519: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
                   1520: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1521:   echo $ac_n "(cached) $ac_c" 1>&6
                   1522: else
                   1523:   ac_save_LIBS="$LIBS"
                   1524: LIBS="-lposix  $LIBS"
                   1525: cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1526: #line 1527 "configure"
1.1       ohara    1527: #include "confdefs.h"
                   1528: /* Override any gcc2 internal prototype to avoid an error.  */
                   1529: /* We use char because int might match the return type of a gcc2
                   1530:     builtin and then its argument prototype would still apply.  */
                   1531: char remove();
                   1532:
                   1533: int main() {
                   1534: remove()
                   1535: ; return 0; }
                   1536: EOF
1.2     ! ohara    1537: if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1538:   rm -rf conftest*
                   1539:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1540: else
                   1541:   echo "configure: failed program was:" >&5
                   1542:   cat conftest.$ac_ext >&5
                   1543:   rm -rf conftest*
                   1544:   eval "ac_cv_lib_$ac_lib_var=no"
                   1545: fi
                   1546: rm -f conftest*
                   1547: LIBS="$ac_save_LIBS"
                   1548:
                   1549: fi
                   1550: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1551:   echo "$ac_t""yes" 1>&6
                   1552:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
                   1553: else
                   1554:   echo "$ac_t""no" 1>&6
                   1555: fi
                   1556:
                   1557:     fi
                   1558:
                   1559:     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
                   1560:     echo $ac_n "checking for shmat""... $ac_c" 1>&6
1.2     ! ohara    1561: echo "configure:1562: checking for shmat" >&5
1.1       ohara    1562: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
                   1563:   echo $ac_n "(cached) $ac_c" 1>&6
                   1564: else
                   1565:   cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1566: #line 1567 "configure"
1.1       ohara    1567: #include "confdefs.h"
                   1568: /* System header to define __stub macros and hopefully few prototypes,
                   1569:     which can conflict with char shmat(); below.  */
                   1570: #include <assert.h>
                   1571: /* Override any gcc2 internal prototype to avoid an error.  */
                   1572: /* We use char because int might match the return type of a gcc2
                   1573:     builtin and then its argument prototype would still apply.  */
                   1574: char shmat();
                   1575:
                   1576: int main() {
                   1577:
                   1578: /* The GNU C library defines this for functions which it implements
                   1579:     to always fail with ENOSYS.  Some functions are actually named
                   1580:     something starting with __ and the normal name is an alias.  */
                   1581: #if defined (__stub_shmat) || defined (__stub___shmat)
                   1582: choke me
                   1583: #else
                   1584: shmat();
                   1585: #endif
                   1586:
                   1587: ; return 0; }
                   1588: EOF
1.2     ! ohara    1589: if { (eval echo configure:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1590:   rm -rf conftest*
                   1591:   eval "ac_cv_func_shmat=yes"
                   1592: else
                   1593:   echo "configure: failed program was:" >&5
                   1594:   cat conftest.$ac_ext >&5
                   1595:   rm -rf conftest*
                   1596:   eval "ac_cv_func_shmat=no"
                   1597: fi
                   1598: rm -f conftest*
                   1599: fi
                   1600:
                   1601: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
                   1602:   echo "$ac_t""yes" 1>&6
                   1603:   :
                   1604: else
                   1605:   echo "$ac_t""no" 1>&6
                   1606: fi
                   1607:
                   1608:     if test $ac_cv_func_shmat = no; then
                   1609:       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1.2     ! ohara    1610: echo "configure:1611: checking for shmat in -lipc" >&5
1.1       ohara    1611: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
                   1612: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1613:   echo $ac_n "(cached) $ac_c" 1>&6
                   1614: else
                   1615:   ac_save_LIBS="$LIBS"
                   1616: LIBS="-lipc  $LIBS"
                   1617: cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1618: #line 1619 "configure"
1.1       ohara    1619: #include "confdefs.h"
                   1620: /* Override any gcc2 internal prototype to avoid an error.  */
                   1621: /* We use char because int might match the return type of a gcc2
                   1622:     builtin and then its argument prototype would still apply.  */
                   1623: char shmat();
                   1624:
                   1625: int main() {
                   1626: shmat()
                   1627: ; return 0; }
                   1628: EOF
1.2     ! ohara    1629: if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1630:   rm -rf conftest*
                   1631:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1632: else
                   1633:   echo "configure: failed program was:" >&5
                   1634:   cat conftest.$ac_ext >&5
                   1635:   rm -rf conftest*
                   1636:   eval "ac_cv_lib_$ac_lib_var=no"
                   1637: fi
                   1638: rm -f conftest*
                   1639: LIBS="$ac_save_LIBS"
                   1640:
                   1641: fi
                   1642: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1643:   echo "$ac_t""yes" 1>&6
                   1644:   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
                   1645: else
                   1646:   echo "$ac_t""no" 1>&6
                   1647: fi
                   1648:
                   1649:     fi
                   1650:   fi
                   1651:
                   1652:   # Check for libraries that X11R6 Xt/Xaw programs need.
                   1653:   ac_save_LDFLAGS="$LDFLAGS"
                   1654:   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
                   1655:   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
                   1656:   # check for ICE first), but we must link in the order -lSM -lICE or
                   1657:   # we get undefined symbols.  So assume we have SM if we have ICE.
                   1658:   # These have to be linked with before -lX11, unlike the other
                   1659:   # libraries we check for below, so use a different variable.
                   1660:   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
                   1661:   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1.2     ! ohara    1662: echo "configure:1663: checking for IceConnectionNumber in -lICE" >&5
1.1       ohara    1663: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
                   1664: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1665:   echo $ac_n "(cached) $ac_c" 1>&6
                   1666: else
                   1667:   ac_save_LIBS="$LIBS"
                   1668: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
                   1669: cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1670: #line 1671 "configure"
1.1       ohara    1671: #include "confdefs.h"
                   1672: /* Override any gcc2 internal prototype to avoid an error.  */
                   1673: /* We use char because int might match the return type of a gcc2
                   1674:     builtin and then its argument prototype would still apply.  */
                   1675: char IceConnectionNumber();
                   1676:
                   1677: int main() {
                   1678: IceConnectionNumber()
                   1679: ; return 0; }
                   1680: EOF
1.2     ! ohara    1681: if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1682:   rm -rf conftest*
                   1683:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1684: else
                   1685:   echo "configure: failed program was:" >&5
                   1686:   cat conftest.$ac_ext >&5
                   1687:   rm -rf conftest*
                   1688:   eval "ac_cv_lib_$ac_lib_var=no"
                   1689: fi
                   1690: rm -f conftest*
                   1691: LIBS="$ac_save_LIBS"
                   1692:
                   1693: fi
                   1694: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1695:   echo "$ac_t""yes" 1>&6
                   1696:   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
                   1697: else
                   1698:   echo "$ac_t""no" 1>&6
                   1699: fi
                   1700:
                   1701:   LDFLAGS="$ac_save_LDFLAGS"
                   1702:
                   1703: fi
                   1704:
                   1705:
1.2     ! ohara    1706: # Check whether --with-gmp or --without-gmp was given.
        !          1707: if test "${with_gmp+set}" = set; then
        !          1708:   withval="$with_gmp"
        !          1709:   with_gmp=yes
        !          1710: else
        !          1711:   with_gmp=no
        !          1712: fi
        !          1713:
        !          1714:
        !          1715: if test ${with_gmp:=no} != no ; then
        !          1716:     cat >> confdefs.h <<\EOF
        !          1717: #define WITH_GMP 1
        !          1718: EOF
        !          1719:
        !          1720:     GMPLIB="-lgmp"
        !          1721: fi
        !          1722:
        !          1723:
1.1       ohara    1724: echo $ac_n "checking for socket""... $ac_c" 1>&6
1.2     ! ohara    1725: echo "configure:1726: checking for socket" >&5
1.1       ohara    1726: if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
                   1727:   echo $ac_n "(cached) $ac_c" 1>&6
                   1728: else
                   1729:   cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1730: #line 1731 "configure"
1.1       ohara    1731: #include "confdefs.h"
                   1732: /* System header to define __stub macros and hopefully few prototypes,
                   1733:     which can conflict with char socket(); below.  */
                   1734: #include <assert.h>
                   1735: /* Override any gcc2 internal prototype to avoid an error.  */
                   1736: /* We use char because int might match the return type of a gcc2
                   1737:     builtin and then its argument prototype would still apply.  */
                   1738: char socket();
                   1739:
                   1740: int main() {
                   1741:
                   1742: /* The GNU C library defines this for functions which it implements
                   1743:     to always fail with ENOSYS.  Some functions are actually named
                   1744:     something starting with __ and the normal name is an alias.  */
                   1745: #if defined (__stub_socket) || defined (__stub___socket)
                   1746: choke me
                   1747: #else
                   1748: socket();
                   1749: #endif
                   1750:
                   1751: ; return 0; }
                   1752: EOF
1.2     ! ohara    1753: if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1754:   rm -rf conftest*
                   1755:   eval "ac_cv_func_socket=yes"
                   1756: else
                   1757:   echo "configure: failed program was:" >&5
                   1758:   cat conftest.$ac_ext >&5
                   1759:   rm -rf conftest*
                   1760:   eval "ac_cv_func_socket=no"
                   1761: fi
                   1762: rm -f conftest*
                   1763: fi
                   1764:
                   1765: if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
                   1766:   echo "$ac_t""yes" 1>&6
                   1767:   :
                   1768: else
                   1769:   echo "$ac_t""no" 1>&6
1.2     ! ohara    1770: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
        !          1771: echo "configure:1772: checking for socket in -lsocket" >&5
1.1       ohara    1772: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
                   1773: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1774:   echo $ac_n "(cached) $ac_c" 1>&6
                   1775: else
                   1776:   ac_save_LIBS="$LIBS"
                   1777: LIBS="-lsocket  $LIBS"
                   1778: cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1779: #line 1780 "configure"
1.1       ohara    1780: #include "confdefs.h"
                   1781: /* Override any gcc2 internal prototype to avoid an error.  */
                   1782: /* We use char because int might match the return type of a gcc2
                   1783:     builtin and then its argument prototype would still apply.  */
                   1784: char socket();
                   1785:
                   1786: int main() {
                   1787: socket()
                   1788: ; return 0; }
                   1789: EOF
1.2     ! ohara    1790: if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1791:   rm -rf conftest*
                   1792:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1793: else
                   1794:   echo "configure: failed program was:" >&5
                   1795:   cat conftest.$ac_ext >&5
                   1796:   rm -rf conftest*
                   1797:   eval "ac_cv_lib_$ac_lib_var=no"
                   1798: fi
                   1799: rm -f conftest*
                   1800: LIBS="$ac_save_LIBS"
                   1801:
                   1802: fi
                   1803: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1804:   echo "$ac_t""yes" 1>&6
                   1805:     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   1806:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   1807:   cat >> confdefs.h <<EOF
                   1808: #define $ac_tr_lib 1
                   1809: EOF
                   1810:
                   1811:   LIBS="-lsocket $LIBS"
                   1812:
                   1813: else
                   1814:   echo "$ac_t""no" 1>&6
                   1815: fi
                   1816:
                   1817: fi
1.2     ! ohara    1818:
1.1       ohara    1819: echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1.2     ! ohara    1820: echo "configure:1821: checking for gethostbyname" >&5
1.1       ohara    1821: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
                   1822:   echo $ac_n "(cached) $ac_c" 1>&6
                   1823: else
                   1824:   cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1825: #line 1826 "configure"
1.1       ohara    1826: #include "confdefs.h"
                   1827: /* System header to define __stub macros and hopefully few prototypes,
                   1828:     which can conflict with char gethostbyname(); below.  */
                   1829: #include <assert.h>
                   1830: /* Override any gcc2 internal prototype to avoid an error.  */
                   1831: /* We use char because int might match the return type of a gcc2
                   1832:     builtin and then its argument prototype would still apply.  */
                   1833: char gethostbyname();
                   1834:
                   1835: int main() {
                   1836:
                   1837: /* The GNU C library defines this for functions which it implements
                   1838:     to always fail with ENOSYS.  Some functions are actually named
                   1839:     something starting with __ and the normal name is an alias.  */
                   1840: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
                   1841: choke me
                   1842: #else
                   1843: gethostbyname();
                   1844: #endif
                   1845:
                   1846: ; return 0; }
                   1847: EOF
1.2     ! ohara    1848: if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1849:   rm -rf conftest*
                   1850:   eval "ac_cv_func_gethostbyname=yes"
                   1851: else
                   1852:   echo "configure: failed program was:" >&5
                   1853:   cat conftest.$ac_ext >&5
                   1854:   rm -rf conftest*
                   1855:   eval "ac_cv_func_gethostbyname=no"
                   1856: fi
                   1857: rm -f conftest*
                   1858: fi
                   1859:
                   1860: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
                   1861:   echo "$ac_t""yes" 1>&6
                   1862:   :
                   1863: else
                   1864:   echo "$ac_t""no" 1>&6
1.2     ! ohara    1865: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
        !          1866: echo "configure:1867: checking for gethostbyname in -lnsl" >&5
1.1       ohara    1867: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
                   1868: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1869:   echo $ac_n "(cached) $ac_c" 1>&6
                   1870: else
                   1871:   ac_save_LIBS="$LIBS"
                   1872: LIBS="-lnsl  $LIBS"
                   1873: cat > conftest.$ac_ext <<EOF
1.2     ! ohara    1874: #line 1875 "configure"
1.1       ohara    1875: #include "confdefs.h"
                   1876: /* Override any gcc2 internal prototype to avoid an error.  */
                   1877: /* We use char because int might match the return type of a gcc2
                   1878:     builtin and then its argument prototype would still apply.  */
                   1879: char gethostbyname();
                   1880:
                   1881: int main() {
                   1882: gethostbyname()
                   1883: ; return 0; }
                   1884: EOF
1.2     ! ohara    1885: if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       ohara    1886:   rm -rf conftest*
                   1887:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1888: else
                   1889:   echo "configure: failed program was:" >&5
                   1890:   cat conftest.$ac_ext >&5
                   1891:   rm -rf conftest*
                   1892:   eval "ac_cv_lib_$ac_lib_var=no"
                   1893: fi
                   1894: rm -f conftest*
                   1895: LIBS="$ac_save_LIBS"
                   1896:
                   1897: fi
                   1898: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1899:   echo "$ac_t""yes" 1>&6
                   1900:     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   1901:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   1902:   cat >> confdefs.h <<EOF
                   1903: #define $ac_tr_lib 1
                   1904: EOF
                   1905:
                   1906:   LIBS="-lnsl $LIBS"
                   1907:
                   1908: else
                   1909:   echo "$ac_t""no" 1>&6
                   1910: fi
                   1911:
                   1912: fi
                   1913:
1.2     ! ohara    1914:
1.1       ohara    1915: trap '' 1 2 15
                   1916: cat > confcache <<\EOF
                   1917: # This file is a shell script that caches the results of configure
                   1918: # tests run on this system so they can be shared between configure
                   1919: # scripts and configure runs.  It is not useful on other systems.
                   1920: # If it contains results you don't want to keep, you may remove or edit it.
                   1921: #
                   1922: # By default, configure uses ./config.cache as the cache file,
                   1923: # creating it if it does not exist already.  You can give configure
                   1924: # the --cache-file=FILE option to use a different cache file; that is
                   1925: # what configure does when it calls configure scripts in
                   1926: # subdirectories, so they share the cache.
                   1927: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   1928: # config.status only pays attention to the cache file if you give it the
                   1929: # --recheck option to rerun configure.
                   1930: #
                   1931: EOF
                   1932: # The following way of writing the cache mishandles newlines in values,
                   1933: # but we know of no workaround that is simple, portable, and efficient.
                   1934: # So, don't put newlines in cache variables' values.
                   1935: # Ultrix sh set writes to stderr and can't be redirected directly,
                   1936: # and sets the high bit in the cache file unless we assign to the vars.
                   1937: (set) 2>&1 |
                   1938:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   1939:   *ac_space=\ *)
                   1940:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   1941:     # turns \\\\ into \\, and sed turns \\ into \).
                   1942:     sed -n \
                   1943:       -e "s/'/'\\\\''/g" \
                   1944:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   1945:     ;;
                   1946:   *)
                   1947:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   1948:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   1949:     ;;
                   1950:   esac >> confcache
                   1951: if cmp -s $cache_file confcache; then
                   1952:   :
                   1953: else
                   1954:   if test -w $cache_file; then
                   1955:     echo "updating cache $cache_file"
                   1956:     cat confcache > $cache_file
                   1957:   else
                   1958:     echo "not updating unwritable cache $cache_file"
                   1959:   fi
                   1960: fi
                   1961: rm -f confcache
                   1962:
                   1963: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   1964:
                   1965: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   1966: # Let make expand exec_prefix.
                   1967: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   1968:
                   1969: # Any assignment to VPATH causes Sun make to only execute
                   1970: # the first set of double-colon rules, so remove it if not needed.
                   1971: # If there is a colon in the path, we need to keep it.
                   1972: if test "x$srcdir" = x.; then
                   1973:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   1974: fi
                   1975:
                   1976: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   1977:
                   1978: # Transform confdefs.h into DEFS.
                   1979: # Protect against shell expansion while executing Makefile rules.
                   1980: # Protect against Makefile macro expansion.
                   1981: cat > conftest.defs <<\EOF
                   1982: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
                   1983: s%[    `~#$^&*(){}\\|;'"<>?]%\\&%g
                   1984: s%\[%\\&%g
                   1985: s%\]%\\&%g
                   1986: s%\$%$$%g
                   1987: EOF
                   1988: DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
                   1989: rm -f conftest.defs
                   1990:
                   1991:
                   1992: # Without the "./", some shells look in PATH for config.status.
                   1993: : ${CONFIG_STATUS=./config.status}
                   1994:
                   1995: echo creating $CONFIG_STATUS
                   1996: rm -f $CONFIG_STATUS
                   1997: cat > $CONFIG_STATUS <<EOF
                   1998: #! /bin/sh
                   1999: # Generated automatically by configure.
                   2000: # Run this file to recreate the current configuration.
                   2001: # This directory was configured as follows,
                   2002: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   2003: #
                   2004: # $0 $ac_configure_args
                   2005: #
                   2006: # Compiler output produced by configure, useful for debugging
                   2007: # configure, is in ./config.log if it exists.
                   2008:
                   2009: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   2010: for ac_option
                   2011: do
                   2012:   case "\$ac_option" in
                   2013:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   2014:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   2015:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   2016:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   2017:     echo "$CONFIG_STATUS generated by autoconf version 2.13"
                   2018:     exit 0 ;;
                   2019:   -help | --help | --hel | --he | --h)
                   2020:     echo "\$ac_cs_usage"; exit 0 ;;
                   2021:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   2022:   esac
                   2023: done
                   2024:
                   2025: ac_given_srcdir=$srcdir
                   2026:
                   2027: trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
                   2028: EOF
                   2029: cat >> $CONFIG_STATUS <<EOF
                   2030:
                   2031: # Protect against being on the right side of a sed subst in config.status.
                   2032: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   2033:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   2034: $ac_vpsub
                   2035: $extrasub
                   2036: s%@SHELL@%$SHELL%g
                   2037: s%@CFLAGS@%$CFLAGS%g
                   2038: s%@CPPFLAGS@%$CPPFLAGS%g
                   2039: s%@CXXFLAGS@%$CXXFLAGS%g
                   2040: s%@FFLAGS@%$FFLAGS%g
                   2041: s%@DEFS@%$DEFS%g
                   2042: s%@LDFLAGS@%$LDFLAGS%g
                   2043: s%@LIBS@%$LIBS%g
                   2044: s%@exec_prefix@%$exec_prefix%g
                   2045: s%@prefix@%$prefix%g
                   2046: s%@program_transform_name@%$program_transform_name%g
                   2047: s%@bindir@%$bindir%g
                   2048: s%@sbindir@%$sbindir%g
                   2049: s%@libexecdir@%$libexecdir%g
                   2050: s%@datadir@%$datadir%g
                   2051: s%@sysconfdir@%$sysconfdir%g
                   2052: s%@sharedstatedir@%$sharedstatedir%g
                   2053: s%@localstatedir@%$localstatedir%g
                   2054: s%@libdir@%$libdir%g
                   2055: s%@includedir@%$includedir%g
                   2056: s%@oldincludedir@%$oldincludedir%g
                   2057: s%@infodir@%$infodir%g
                   2058: s%@mandir@%$mandir%g
                   2059: s%@CC@%$CC%g
                   2060: s%@RANLIB@%$RANLIB%g
                   2061: s%@CPP@%$CPP%g
                   2062: s%@X_CFLAGS@%$X_CFLAGS%g
                   2063: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
                   2064: s%@X_LIBS@%$X_LIBS%g
                   2065: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
1.2     ! ohara    2066: s%@GMPLIB@%$GMPLIB%g
1.1       ohara    2067:
                   2068: CEOF
                   2069: EOF
                   2070:
                   2071: cat >> $CONFIG_STATUS <<\EOF
                   2072:
                   2073: # Split the substitutions into bite-sized pieces for seds with
                   2074: # small command number limits, like on Digital OSF/1 and HP-UX.
                   2075: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   2076: ac_file=1 # Number of current file.
                   2077: ac_beg=1 # First line for current file.
                   2078: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   2079: ac_more_lines=:
                   2080: ac_sed_cmds=""
                   2081: while $ac_more_lines; do
                   2082:   if test $ac_beg -gt 1; then
                   2083:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   2084:   else
                   2085:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   2086:   fi
                   2087:   if test ! -s conftest.s$ac_file; then
                   2088:     ac_more_lines=false
                   2089:     rm -f conftest.s$ac_file
                   2090:   else
                   2091:     if test -z "$ac_sed_cmds"; then
                   2092:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   2093:     else
                   2094:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   2095:     fi
                   2096:     ac_file=`expr $ac_file + 1`
                   2097:     ac_beg=$ac_end
                   2098:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   2099:   fi
                   2100: done
                   2101: if test -z "$ac_sed_cmds"; then
                   2102:   ac_sed_cmds=cat
                   2103: fi
                   2104: EOF
                   2105:
                   2106: cat >> $CONFIG_STATUS <<EOF
                   2107:
                   2108: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
                   2109: EOF
                   2110: cat >> $CONFIG_STATUS <<\EOF
                   2111: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   2112:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   2113:   case "$ac_file" in
                   2114:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   2115:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   2116:   *) ac_file_in="${ac_file}.in" ;;
                   2117:   esac
                   2118:
                   2119:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
                   2120:
                   2121:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   2122:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   2123:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   2124:     # The file is in a subdirectory.
                   2125:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   2126:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   2127:     # A "../" for each directory in $ac_dir_suffix.
                   2128:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   2129:   else
                   2130:     ac_dir_suffix= ac_dots=
                   2131:   fi
                   2132:
                   2133:   case "$ac_given_srcdir" in
                   2134:   .)  srcdir=.
                   2135:       if test -z "$ac_dots"; then top_srcdir=.
                   2136:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   2137:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   2138:   *) # Relative path.
                   2139:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   2140:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   2141:   esac
                   2142:
                   2143:
                   2144:   echo creating "$ac_file"
                   2145:   rm -f "$ac_file"
                   2146:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   2147:   case "$ac_file" in
                   2148:   *Makefile*) ac_comsub="1i\\
                   2149: # $configure_input" ;;
                   2150:   *) ac_comsub= ;;
                   2151:   esac
                   2152:
                   2153:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   2154:   sed -e "$ac_comsub
                   2155: s%@configure_input@%$configure_input%g
                   2156: s%@srcdir@%$srcdir%g
                   2157: s%@top_srcdir@%$top_srcdir%g
                   2158: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
                   2159: fi; done
                   2160: rm -f conftest.s*
                   2161:
                   2162: EOF
                   2163: cat >> $CONFIG_STATUS <<EOF
                   2164:
                   2165: EOF
                   2166: cat >> $CONFIG_STATUS <<\EOF
                   2167:
                   2168: exit 0
                   2169: EOF
                   2170: chmod +x $CONFIG_STATUS
                   2171: rm -fr confdefs* $ac_clean_files
                   2172: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1.2     ! ohara    2173:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>