Annotation of parser3/configure, revision 1.9

1.1       paf         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:   --disable-string-origins to switch off string origin tracking"
                     16: ac_help="$ac_help
1.7       paf        17:   --with-apache13=D       D is the Apache13 source distribution directory
1.1       paf        18:                           builds library for apache_module using that dir
                     19:                           (do not add /src)"
                     20: ac_help="$ac_help
1.7       paf        21:   --with-pathlink=LKEY    put dynamic libraries paths to binary
1.1       paf        22:                           using linker key (-R, -rpath-link)"
                     23: ac_help="$ac_help
1.7       paf        24:   --with-glib-config=FILE FILE is glib library
                     25:                           configuration file (search for glib*-config)"
                     26: ac_help="$ac_help
                     27:   --with-gnome-xml=D      D is the directory where
1.1       paf        28:                           Gnome XML libraries are installed"
                     29: 
                     30: # Initialize some variables set by options.
                     31: # The variables have the same names as the options, with
                     32: # dashes changed to underlines.
                     33: build=NONE
                     34: cache_file=./config.cache
                     35: exec_prefix=NONE
                     36: host=NONE
                     37: no_create=
                     38: nonopt=NONE
                     39: no_recursion=
                     40: prefix=NONE
                     41: program_prefix=NONE
                     42: program_suffix=NONE
                     43: program_transform_name=s,x,x,
                     44: silent=
                     45: site=
                     46: srcdir=
                     47: target=NONE
                     48: verbose=
                     49: x_includes=NONE
                     50: x_libraries=NONE
                     51: bindir='${exec_prefix}/bin'
                     52: sbindir='${exec_prefix}/sbin'
                     53: libexecdir='${exec_prefix}/libexec'
                     54: datadir='${prefix}/share'
                     55: sysconfdir='${prefix}/etc'
                     56: sharedstatedir='${prefix}/com'
                     57: localstatedir='${prefix}/var'
                     58: libdir='${exec_prefix}/lib'
                     59: includedir='${prefix}/include'
                     60: oldincludedir='/usr/include'
                     61: infodir='${prefix}/info'
                     62: mandir='${prefix}/man'
                     63: 
                     64: # Initialize some other variables.
                     65: subdirs=
                     66: MFLAGS= MAKEFLAGS=
                     67: SHELL=${CONFIG_SHELL-/bin/sh}
                     68: # Maximum number of lines to put in a shell here document.
                     69: ac_max_here_lines=12
                     70: 
                     71: ac_prev=
                     72: for ac_option
                     73: do
                     74: 
                     75:   # If the previous option needs an argument, assign it.
                     76:   if test -n "$ac_prev"; then
                     77:     eval "$ac_prev=\$ac_option"
                     78:     ac_prev=
                     79:     continue
                     80:   fi
                     81: 
                     82:   case "$ac_option" in
                     83:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                     84:   *) ac_optarg= ;;
                     85:   esac
                     86: 
                     87:   # Accept the important Cygnus configure options, so we can diagnose typos.
                     88: 
                     89:   case "$ac_option" in
                     90: 
                     91:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                     92:     ac_prev=bindir ;;
                     93:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                     94:     bindir="$ac_optarg" ;;
                     95: 
                     96:   -build | --build | --buil | --bui | --bu)
                     97:     ac_prev=build ;;
                     98:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                     99:     build="$ac_optarg" ;;
                    100: 
                    101:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    102:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    103:     ac_prev=cache_file ;;
                    104:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    105:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    106:     cache_file="$ac_optarg" ;;
                    107: 
                    108:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    109:     ac_prev=datadir ;;
                    110:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    111:   | --da=*)
                    112:     datadir="$ac_optarg" ;;
                    113: 
                    114:   -disable-* | --disable-*)
                    115:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    116:     # Reject names that are not valid shell variable names.
                    117:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    118:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    119:     fi
                    120:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    121:     eval "enable_${ac_feature}=no" ;;
                    122: 
                    123:   -enable-* | --enable-*)
                    124:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    125:     # Reject names that are not valid shell variable names.
                    126:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    127:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    128:     fi
                    129:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    130:     case "$ac_option" in
                    131:       *=*) ;;
                    132:       *) ac_optarg=yes ;;
                    133:     esac
                    134:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    135: 
                    136:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    137:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    138:   | --exec | --exe | --ex)
                    139:     ac_prev=exec_prefix ;;
                    140:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    141:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    142:   | --exec=* | --exe=* | --ex=*)
                    143:     exec_prefix="$ac_optarg" ;;
                    144: 
                    145:   -gas | --gas | --ga | --g)
                    146:     # Obsolete; use --with-gas.
                    147:     with_gas=yes ;;
                    148: 
                    149:   -help | --help | --hel | --he)
                    150:     # Omit some internal or obsolete options to make the list less imposing.
                    151:     # This message is too long to be a string in the A/UX 3.1 sh.
                    152:     cat << EOF
                    153: Usage: configure [options] [host]
                    154: Options: [defaults in brackets after descriptions]
                    155: Configuration:
                    156:   --cache-file=FILE       cache test results in FILE
                    157:   --help                  print this message
                    158:   --no-create             do not create output files
                    159:   --quiet, --silent       do not print \`checking...' messages
                    160:   --version               print the version of autoconf that created configure
                    161: Directory and file names:
                    162:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    163:                           [$ac_default_prefix]
                    164:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    165:                           [same as prefix]
                    166:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    167:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    168:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    169:   --datadir=DIR           read-only architecture-independent data in DIR
                    170:                           [PREFIX/share]
                    171:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    172:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    173:                           [PREFIX/com]
                    174:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    175:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    176:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    177:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    178:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    179:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    180:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    181:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    182:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    183:   --program-transform-name=PROGRAM
                    184:                           run sed PROGRAM on installed program names
                    185: EOF
                    186:     cat << EOF
                    187: Host type:
                    188:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    189:   --host=HOST             configure for HOST [guessed]
                    190:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    191: Features and packages:
                    192:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    193:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    194:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    195:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    196:   --x-includes=DIR        X include files are in DIR
                    197:   --x-libraries=DIR       X library files are in DIR
                    198: EOF
                    199:     if test -n "$ac_help"; then
                    200:       echo "--enable and --with options recognized:$ac_help"
                    201:     fi
                    202:     exit 0 ;;
                    203: 
                    204:   -host | --host | --hos | --ho)
                    205:     ac_prev=host ;;
                    206:   -host=* | --host=* | --hos=* | --ho=*)
                    207:     host="$ac_optarg" ;;
                    208: 
                    209:   -includedir | --includedir | --includedi | --included | --include \
                    210:   | --includ | --inclu | --incl | --inc)
                    211:     ac_prev=includedir ;;
                    212:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    213:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    214:     includedir="$ac_optarg" ;;
                    215: 
                    216:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    217:     ac_prev=infodir ;;
                    218:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    219:     infodir="$ac_optarg" ;;
                    220: 
                    221:   -libdir | --libdir | --libdi | --libd)
                    222:     ac_prev=libdir ;;
                    223:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    224:     libdir="$ac_optarg" ;;
                    225: 
                    226:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    227:   | --libexe | --libex | --libe)
                    228:     ac_prev=libexecdir ;;
                    229:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    230:   | --libexe=* | --libex=* | --libe=*)
                    231:     libexecdir="$ac_optarg" ;;
                    232: 
                    233:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    234:   | --localstate | --localstat | --localsta | --localst \
                    235:   | --locals | --local | --loca | --loc | --lo)
                    236:     ac_prev=localstatedir ;;
                    237:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    238:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    239:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    240:     localstatedir="$ac_optarg" ;;
                    241: 
                    242:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    243:     ac_prev=mandir ;;
                    244:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    245:     mandir="$ac_optarg" ;;
                    246: 
                    247:   -nfp | --nfp | --nf)
                    248:     # Obsolete; use --without-fp.
                    249:     with_fp=no ;;
                    250: 
                    251:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    252:   | --no-cr | --no-c)
                    253:     no_create=yes ;;
                    254: 
                    255:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    256:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    257:     no_recursion=yes ;;
                    258: 
                    259:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    260:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    261:   | --oldin | --oldi | --old | --ol | --o)
                    262:     ac_prev=oldincludedir ;;
                    263:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    264:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    265:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    266:     oldincludedir="$ac_optarg" ;;
                    267: 
                    268:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    269:     ac_prev=prefix ;;
                    270:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    271:     prefix="$ac_optarg" ;;
                    272: 
                    273:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    274:   | --program-pre | --program-pr | --program-p)
                    275:     ac_prev=program_prefix ;;
                    276:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    277:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    278:     program_prefix="$ac_optarg" ;;
                    279: 
                    280:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    281:   | --program-suf | --program-su | --program-s)
                    282:     ac_prev=program_suffix ;;
                    283:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    284:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    285:     program_suffix="$ac_optarg" ;;
                    286: 
                    287:   -program-transform-name | --program-transform-name \
                    288:   | --program-transform-nam | --program-transform-na \
                    289:   | --program-transform-n | --program-transform- \
                    290:   | --program-transform | --program-transfor \
                    291:   | --program-transfo | --program-transf \
                    292:   | --program-trans | --program-tran \
                    293:   | --progr-tra | --program-tr | --program-t)
                    294:     ac_prev=program_transform_name ;;
                    295:   -program-transform-name=* | --program-transform-name=* \
                    296:   | --program-transform-nam=* | --program-transform-na=* \
                    297:   | --program-transform-n=* | --program-transform-=* \
                    298:   | --program-transform=* | --program-transfor=* \
                    299:   | --program-transfo=* | --program-transf=* \
                    300:   | --program-trans=* | --program-tran=* \
                    301:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    302:     program_transform_name="$ac_optarg" ;;
                    303: 
                    304:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    305:   | -silent | --silent | --silen | --sile | --sil)
                    306:     silent=yes ;;
                    307: 
                    308:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    309:     ac_prev=sbindir ;;
                    310:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    311:   | --sbi=* | --sb=*)
                    312:     sbindir="$ac_optarg" ;;
                    313: 
                    314:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    315:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    316:   | --sharedst | --shareds | --shared | --share | --shar \
                    317:   | --sha | --sh)
                    318:     ac_prev=sharedstatedir ;;
                    319:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    320:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    321:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    322:   | --sha=* | --sh=*)
                    323:     sharedstatedir="$ac_optarg" ;;
                    324: 
                    325:   -site | --site | --sit)
                    326:     ac_prev=site ;;
                    327:   -site=* | --site=* | --sit=*)
                    328:     site="$ac_optarg" ;;
                    329: 
                    330:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    331:     ac_prev=srcdir ;;
                    332:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    333:     srcdir="$ac_optarg" ;;
                    334: 
                    335:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    336:   | --syscon | --sysco | --sysc | --sys | --sy)
                    337:     ac_prev=sysconfdir ;;
                    338:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    339:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    340:     sysconfdir="$ac_optarg" ;;
                    341: 
                    342:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    343:     ac_prev=target ;;
                    344:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    345:     target="$ac_optarg" ;;
                    346: 
                    347:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    348:     verbose=yes ;;
                    349: 
                    350:   -version | --version | --versio | --versi | --vers)
                    351:     echo "configure generated by autoconf version 2.13"
                    352:     exit 0 ;;
                    353: 
                    354:   -with-* | --with-*)
                    355:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    356:     # Reject names that are not valid shell variable names.
                    357:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    358:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    359:     fi
                    360:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    361:     case "$ac_option" in
                    362:       *=*) ;;
                    363:       *) ac_optarg=yes ;;
                    364:     esac
                    365:     eval "with_${ac_package}='$ac_optarg'" ;;
                    366: 
                    367:   -without-* | --without-*)
                    368:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    369:     # Reject names that are not valid shell variable names.
                    370:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    371:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    372:     fi
                    373:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    374:     eval "with_${ac_package}=no" ;;
                    375: 
                    376:   --x)
                    377:     # Obsolete; use --with-x.
                    378:     with_x=yes ;;
                    379: 
                    380:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    381:   | --x-incl | --x-inc | --x-in | --x-i)
                    382:     ac_prev=x_includes ;;
                    383:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    384:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    385:     x_includes="$ac_optarg" ;;
                    386: 
                    387:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    388:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    389:     ac_prev=x_libraries ;;
                    390:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    391:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    392:     x_libraries="$ac_optarg" ;;
                    393: 
                    394:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    395:     ;;
                    396: 
                    397:   *)
                    398:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    399:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    400:     fi
                    401:     if test "x$nonopt" != xNONE; then
                    402:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    403:     fi
                    404:     nonopt="$ac_option"
                    405:     ;;
                    406: 
                    407:   esac
                    408: done
                    409: 
                    410: if test -n "$ac_prev"; then
                    411:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    412: fi
                    413: 
                    414: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    415: 
                    416: # File descriptor usage:
                    417: # 0 standard input
                    418: # 1 file creation
                    419: # 2 errors and warnings
                    420: # 3 some systems may open it to /dev/tty
                    421: # 4 used on the Kubota Titan
                    422: # 6 checking for... messages and results
                    423: # 5 compiler messages saved in config.log
                    424: if test "$silent" = yes; then
                    425:   exec 6>/dev/null
                    426: else
                    427:   exec 6>&1
                    428: fi
                    429: exec 5>./config.log
                    430: 
                    431: echo "\
                    432: This file contains any messages produced by compilers while
                    433: running configure, to aid debugging if configure makes a mistake.
                    434: " 1>&5
                    435: 
                    436: # Strip out --no-create and --no-recursion so they do not pile up.
                    437: # Also quote any args containing shell metacharacters.
                    438: ac_configure_args=
                    439: for ac_arg
                    440: do
                    441:   case "$ac_arg" in
                    442:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    443:   | --no-cr | --no-c) ;;
                    444:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    445:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    446:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    447:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    448:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    449:   esac
                    450: done
                    451: 
                    452: # NLS nuisances.
                    453: # Only set these to C if already set.  These must not be set unconditionally
                    454: # because not all systems understand e.g. LANG=C (notably SCO).
                    455: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    456: # Non-C LC_CTYPE values break the ctype check.
                    457: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    458: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    459: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    460: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
                    461: 
                    462: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    463: rm -rf conftest* confdefs.h
                    464: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    465: echo > confdefs.h
                    466: 
                    467: # A filename unique to this package, relative to the directory that
                    468: # configure is in, which we can look for to find out if srcdir is correct.
                    469: ac_unique_file=README
                    470: 
                    471: # Find the source files, if location was not specified.
                    472: if test -z "$srcdir"; then
                    473:   ac_srcdir_defaulted=yes
                    474:   # Try the directory containing this script, then its parent.
                    475:   ac_prog=$0
                    476:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    477:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    478:   srcdir=$ac_confdir
                    479:   if test ! -r $srcdir/$ac_unique_file; then
                    480:     srcdir=..
                    481:   fi
                    482: else
                    483:   ac_srcdir_defaulted=no
                    484: fi
                    485: if test ! -r $srcdir/$ac_unique_file; then
                    486:   if test "$ac_srcdir_defaulted" = yes; then
                    487:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    488:   else
                    489:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    490:   fi
                    491: fi
                    492: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    493: 
                    494: # Prefer explicitly selected file to automatically selected ones.
                    495: if test -z "$CONFIG_SITE"; then
                    496:   if test "x$prefix" != xNONE; then
                    497:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    498:   else
                    499:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    500:   fi
                    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: ac_aux_dir=
                    540: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
                    541:   if test -f $ac_dir/install-sh; then
                    542:     ac_aux_dir=$ac_dir
                    543:     ac_install_sh="$ac_aux_dir/install-sh -c"
                    544:     break
                    545:   elif test -f $ac_dir/install.sh; then
                    546:     ac_aux_dir=$ac_dir
                    547:     ac_install_sh="$ac_aux_dir/install.sh -c"
                    548:     break
                    549:   fi
                    550: done
                    551: if test -z "$ac_aux_dir"; then
                    552:   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
                    553: fi
                    554: ac_config_guess=$ac_aux_dir/config.guess
                    555: ac_config_sub=$ac_aux_dir/config.sub
                    556: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
                    557: 
                    558: # Find a good install program.  We prefer a C program (faster),
                    559: # so one script is as good as another.  But avoid the broken or
                    560: # incompatible versions:
                    561: # SysV /etc/install, /usr/sbin/install
                    562: # SunOS /usr/etc/install
                    563: # IRIX /sbin/install
                    564: # AIX /bin/install
                    565: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                    566: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                    567: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                    568: # ./install, which can be erroneously created by make from ./install.sh.
                    569: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.9     ! paf       570: echo "configure:571: checking for a BSD compatible install" >&5
1.1       paf       571: if test -z "$INSTALL"; then
                    572: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                    573:   echo $ac_n "(cached) $ac_c" 1>&6
                    574: else
                    575:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                    576:   for ac_dir in $PATH; do
                    577:     # Account for people who put trailing slashes in PATH elements.
                    578:     case "$ac_dir/" in
                    579:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                    580:     *)
                    581:       # OSF1 and SCO ODT 3.0 have their own names for install.
                    582:       # Don't use installbsd from OSF since it installs stuff as root
                    583:       # by default.
                    584:       for ac_prog in ginstall scoinst install; do
                    585:         if test -f $ac_dir/$ac_prog; then
                    586:          if test $ac_prog = install &&
                    587:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                    588:            # AIX install.  It has an incompatible calling convention.
                    589:            :
                    590:          else
                    591:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                    592:            break 2
                    593:          fi
                    594:        fi
                    595:       done
                    596:       ;;
                    597:     esac
                    598:   done
                    599:   IFS="$ac_save_IFS"
                    600: 
                    601: fi
                    602:   if test "${ac_cv_path_install+set}" = set; then
                    603:     INSTALL="$ac_cv_path_install"
                    604:   else
                    605:     # As a last resort, use the slow shell script.  We don't cache a
                    606:     # path for INSTALL within a source directory, because that will
                    607:     # break other packages using the cache if that directory is
                    608:     # removed, or if the path is relative.
                    609:     INSTALL="$ac_install_sh"
                    610:   fi
                    611: fi
                    612: echo "$ac_t""$INSTALL" 1>&6
                    613: 
                    614: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                    615: # It thinks the first close brace ends the variable substitution.
                    616: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                    617: 
                    618: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                    619: 
                    620: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                    621: 
                    622: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1.9     ! paf       623: echo "configure:624: checking whether build environment is sane" >&5
1.1       paf       624: # Just in case
                    625: sleep 1
                    626: echo timestamp > conftestfile
                    627: # Do `set' in a subshell so we don't clobber the current shell's
                    628: # arguments.  Must try -L first in case configure is actually a
                    629: # symlink; some systems play weird games with the mod time of symlinks
                    630: # (eg FreeBSD returns the mod time of the symlink's containing
                    631: # directory).
                    632: if (
                    633:    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
                    634:    if test "$*" = "X"; then
                    635:       # -L didn't work.
                    636:       set X `ls -t $srcdir/configure conftestfile`
                    637:    fi
                    638:    if test "$*" != "X $srcdir/configure conftestfile" \
                    639:       && test "$*" != "X conftestfile $srcdir/configure"; then
                    640: 
                    641:       # If neither matched, then we have a broken ls.  This can happen
                    642:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                    643:       # broken ls alias from the environment.  This has actually
                    644:       # happened.  Such a system could not be considered "sane".
                    645:       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
                    646: alias in your environment" 1>&2; exit 1; }
                    647:    fi
                    648: 
                    649:    test "$2" = conftestfile
                    650:    )
                    651: then
                    652:    # Ok.
                    653:    :
                    654: else
                    655:    { echo "configure: error: newly created file is older than distributed files!
                    656: Check your system clock" 1>&2; exit 1; }
                    657: fi
                    658: rm -f conftest*
                    659: echo "$ac_t""yes" 1>&6
                    660: if test "$program_transform_name" = s,x,x,; then
                    661:   program_transform_name=
                    662: else
                    663:   # Double any \ or $.  echo might interpret backslashes.
                    664:   cat <<\EOF_SED > conftestsed
                    665: s,\\,\\\\,g; s,\$,$$,g
                    666: EOF_SED
                    667:   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
                    668:   rm -f conftestsed
                    669: fi
                    670: test "$program_prefix" != NONE &&
                    671:   program_transform_name="s,^,${program_prefix},; $program_transform_name"
                    672: # Use a double $ so make ignores it.
                    673: test "$program_suffix" != NONE &&
                    674:   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
                    675: 
                    676: # sed with no file args requires a program.
                    677: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
                    678: 
                    679: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.9     ! paf       680: echo "configure:681: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1       paf       681: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
                    682: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    683:   echo $ac_n "(cached) $ac_c" 1>&6
                    684: else
                    685:   cat > conftestmake <<\EOF
                    686: all:
                    687:        @echo 'ac_maketemp="${MAKE}"'
                    688: EOF
                    689: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    690: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    691: if test -n "$ac_maketemp"; then
                    692:   eval ac_cv_prog_make_${ac_make}_set=yes
                    693: else
                    694:   eval ac_cv_prog_make_${ac_make}_set=no
                    695: fi
                    696: rm -f conftestmake
                    697: fi
                    698: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    699:   echo "$ac_t""yes" 1>&6
                    700:   SET_MAKE=
                    701: else
                    702:   echo "$ac_t""no" 1>&6
                    703:   SET_MAKE="MAKE=${MAKE-make}"
                    704: fi
                    705: 
                    706: 
                    707: PACKAGE=parser
                    708: 
                    709: VERSION=3.0b
                    710: 
                    711: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
                    712:   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
                    713: fi
                    714: 
                    715: 
                    716: 
                    717: missing_dir=`cd $ac_aux_dir && pwd`
                    718: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1.9     ! paf       719: echo "configure:720: checking for working aclocal" >&5
1.1       paf       720: # Run test in a subshell; some versions of sh will print an error if
                    721: # an executable is not found, even if stderr is redirected.
                    722: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    723: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
                    724:    ACLOCAL=aclocal
                    725:    echo "$ac_t""found" 1>&6
                    726: else
                    727:    ACLOCAL="$missing_dir/missing aclocal"
                    728:    echo "$ac_t""missing" 1>&6
                    729: fi
                    730: 
                    731: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1.9     ! paf       732: echo "configure:733: checking for working autoconf" >&5
1.1       paf       733: # Run test in a subshell; some versions of sh will print an error if
                    734: # an executable is not found, even if stderr is redirected.
                    735: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    736: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
                    737:    AUTOCONF=autoconf
                    738:    echo "$ac_t""found" 1>&6
                    739: else
                    740:    AUTOCONF="$missing_dir/missing autoconf"
                    741:    echo "$ac_t""missing" 1>&6
                    742: fi
                    743: 
                    744: echo $ac_n "checking for working automake""... $ac_c" 1>&6
1.9     ! paf       745: echo "configure:746: checking for working automake" >&5
1.1       paf       746: # Run test in a subshell; some versions of sh will print an error if
                    747: # an executable is not found, even if stderr is redirected.
                    748: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    749: if (automake --version) < /dev/null > /dev/null 2>&1; then
                    750:    AUTOMAKE=automake
                    751:    echo "$ac_t""found" 1>&6
                    752: else
                    753:    AUTOMAKE="$missing_dir/missing automake"
                    754:    echo "$ac_t""missing" 1>&6
                    755: fi
                    756: 
                    757: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1.9     ! paf       758: echo "configure:759: checking for working autoheader" >&5
1.1       paf       759: # Run test in a subshell; some versions of sh will print an error if
                    760: # an executable is not found, even if stderr is redirected.
                    761: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    762: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
                    763:    AUTOHEADER=autoheader
                    764:    echo "$ac_t""found" 1>&6
                    765: else
                    766:    AUTOHEADER="$missing_dir/missing autoheader"
                    767:    echo "$ac_t""missing" 1>&6
                    768: fi
                    769: 
                    770: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1.9     ! paf       771: echo "configure:772: checking for working makeinfo" >&5
1.1       paf       772: # Run test in a subshell; some versions of sh will print an error if
                    773: # an executable is not found, even if stderr is redirected.
                    774: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    775: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
                    776:    MAKEINFO=makeinfo
                    777:    echo "$ac_t""found" 1>&6
                    778: else
                    779:    MAKEINFO="$missing_dir/missing makeinfo"
                    780:    echo "$ac_t""missing" 1>&6
                    781: fi
                    782: 
                    783: 
                    784: 
1.6       paf       785: P3S=`cd $srcdir ; pwd`
1.1       paf       786: 
                    787: 
                    788: PARSER_VERSION=$VERSION
1.6       paf       789: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
                    790: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
                    791: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
                    792: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1.1       paf       793: if test $? -ne 0 ; then
1.6       paf       794:     rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
                    795:     echo Updated $srcdir/src/include/pa_version.h
1.1       paf       796: else
1.6       paf       797:        rm -f $srcdir/src/include/pa_version.h.new
1.1       paf       798: fi
                    799: 
                    800: # Find a good install program.  We prefer a C program (faster),
                    801: # so one script is as good as another.  But avoid the broken or
                    802: # incompatible versions:
                    803: # SysV /etc/install, /usr/sbin/install
                    804: # SunOS /usr/etc/install
                    805: # IRIX /sbin/install
                    806: # AIX /bin/install
                    807: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                    808: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                    809: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                    810: # ./install, which can be erroneously created by make from ./install.sh.
                    811: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.9     ! paf       812: echo "configure:813: checking for a BSD compatible install" >&5
1.1       paf       813: if test -z "$INSTALL"; then
                    814: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                    815:   echo $ac_n "(cached) $ac_c" 1>&6
                    816: else
                    817:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                    818:   for ac_dir in $PATH; do
                    819:     # Account for people who put trailing slashes in PATH elements.
                    820:     case "$ac_dir/" in
                    821:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                    822:     *)
                    823:       # OSF1 and SCO ODT 3.0 have their own names for install.
                    824:       # Don't use installbsd from OSF since it installs stuff as root
                    825:       # by default.
                    826:       for ac_prog in ginstall scoinst install; do
                    827:         if test -f $ac_dir/$ac_prog; then
                    828:          if test $ac_prog = install &&
                    829:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                    830:            # AIX install.  It has an incompatible calling convention.
                    831:            :
                    832:          else
                    833:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                    834:            break 2
                    835:          fi
                    836:        fi
                    837:       done
                    838:       ;;
                    839:     esac
                    840:   done
                    841:   IFS="$ac_save_IFS"
                    842: 
                    843: fi
                    844:   if test "${ac_cv_path_install+set}" = set; then
                    845:     INSTALL="$ac_cv_path_install"
                    846:   else
                    847:     # As a last resort, use the slow shell script.  We don't cache a
                    848:     # path for INSTALL within a source directory, because that will
                    849:     # break other packages using the cache if that directory is
                    850:     # removed, or if the path is relative.
                    851:     INSTALL="$ac_install_sh"
                    852:   fi
                    853: fi
                    854: echo "$ac_t""$INSTALL" 1>&6
                    855: 
                    856: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                    857: # It thinks the first close brace ends the variable substitution.
                    858: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                    859: 
                    860: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                    861: 
                    862: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                    863: 
                    864: # Extract the first word of "gcc", so it can be a program name with args.
                    865: set dummy gcc; ac_word=$2
                    866: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.9     ! paf       867: echo "configure:868: checking for $ac_word" >&5
1.1       paf       868: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    869:   echo $ac_n "(cached) $ac_c" 1>&6
                    870: else
                    871:   if test -n "$CC"; then
                    872:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    873: else
                    874:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    875:   ac_dummy="$PATH"
                    876:   for ac_dir in $ac_dummy; do
                    877:     test -z "$ac_dir" && ac_dir=.
                    878:     if test -f $ac_dir/$ac_word; then
                    879:       ac_cv_prog_CC="gcc"
                    880:       break
                    881:     fi
                    882:   done
                    883:   IFS="$ac_save_ifs"
                    884: fi
                    885: fi
                    886: CC="$ac_cv_prog_CC"
                    887: if test -n "$CC"; then
                    888:   echo "$ac_t""$CC" 1>&6
                    889: else
                    890:   echo "$ac_t""no" 1>&6
                    891: fi
                    892: 
                    893: if test -z "$CC"; then
                    894:   # Extract the first word of "cc", so it can be a program name with args.
                    895: set dummy cc; ac_word=$2
                    896: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.9     ! paf       897: echo "configure:898: checking for $ac_word" >&5
1.1       paf       898: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    899:   echo $ac_n "(cached) $ac_c" 1>&6
                    900: else
                    901:   if test -n "$CC"; then
                    902:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    903: else
                    904:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    905:   ac_prog_rejected=no
                    906:   ac_dummy="$PATH"
                    907:   for ac_dir in $ac_dummy; do
                    908:     test -z "$ac_dir" && ac_dir=.
                    909:     if test -f $ac_dir/$ac_word; then
                    910:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                    911:         ac_prog_rejected=yes
                    912:        continue
                    913:       fi
                    914:       ac_cv_prog_CC="cc"
                    915:       break
                    916:     fi
                    917:   done
                    918:   IFS="$ac_save_ifs"
                    919: if test $ac_prog_rejected = yes; then
                    920:   # We found a bogon in the path, so make sure we never use it.
                    921:   set dummy $ac_cv_prog_CC
                    922:   shift
                    923:   if test $# -gt 0; then
                    924:     # We chose a different compiler from the bogus one.
                    925:     # However, it has the same basename, so the bogon will be chosen
                    926:     # first if we set CC to just the basename; use the full file name.
                    927:     shift
                    928:     set dummy "$ac_dir/$ac_word" "$@"
                    929:     shift
                    930:     ac_cv_prog_CC="$@"
                    931:   fi
                    932: fi
                    933: fi
                    934: fi
                    935: CC="$ac_cv_prog_CC"
                    936: if test -n "$CC"; then
                    937:   echo "$ac_t""$CC" 1>&6
                    938: else
                    939:   echo "$ac_t""no" 1>&6
                    940: fi
                    941: 
                    942:   if test -z "$CC"; then
                    943:     case "`uname -s`" in
                    944:     *win32* | *WIN32*)
                    945:       # Extract the first word of "cl", so it can be a program name with args.
                    946: set dummy cl; ac_word=$2
                    947: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.9     ! paf       948: echo "configure:949: checking for $ac_word" >&5
1.1       paf       949: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                    950:   echo $ac_n "(cached) $ac_c" 1>&6
                    951: else
                    952:   if test -n "$CC"; then
                    953:   ac_cv_prog_CC="$CC" # Let the user override the test.
                    954: else
                    955:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    956:   ac_dummy="$PATH"
                    957:   for ac_dir in $ac_dummy; do
                    958:     test -z "$ac_dir" && ac_dir=.
                    959:     if test -f $ac_dir/$ac_word; then
                    960:       ac_cv_prog_CC="cl"
                    961:       break
                    962:     fi
                    963:   done
                    964:   IFS="$ac_save_ifs"
                    965: fi
                    966: fi
                    967: CC="$ac_cv_prog_CC"
                    968: if test -n "$CC"; then
                    969:   echo "$ac_t""$CC" 1>&6
                    970: else
                    971:   echo "$ac_t""no" 1>&6
                    972: fi
                    973:  ;;
                    974:     esac
                    975:   fi
                    976:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                    977: fi
                    978: 
                    979: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.9     ! paf       980: echo "configure:981: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1       paf       981: 
                    982: ac_ext=c
                    983: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    984: ac_cpp='$CPP $CPPFLAGS'
                    985: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    986: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    987: cross_compiling=$ac_cv_prog_cc_cross
                    988: 
                    989: cat > conftest.$ac_ext << EOF
                    990: 
1.9     ! paf       991: #line 992 "configure"
1.1       paf       992: #include "confdefs.h"
                    993: 
                    994: main(){return(0);}
                    995: EOF
1.9     ! paf       996: if { (eval echo configure:997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf       997:   ac_cv_prog_cc_works=yes
                    998:   # If we can't run a trivial program, we are probably using a cross compiler.
                    999:   if (./conftest; exit) 2>/dev/null; then
                   1000:     ac_cv_prog_cc_cross=no
                   1001:   else
                   1002:     ac_cv_prog_cc_cross=yes
                   1003:   fi
                   1004: else
                   1005:   echo "configure: failed program was:" >&5
                   1006:   cat conftest.$ac_ext >&5
                   1007:   ac_cv_prog_cc_works=no
                   1008: fi
                   1009: rm -fr conftest*
                   1010: ac_ext=c
                   1011: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1012: ac_cpp='$CPP $CPPFLAGS'
                   1013: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1014: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1015: cross_compiling=$ac_cv_prog_cc_cross
                   1016: 
                   1017: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                   1018: if test $ac_cv_prog_cc_works = no; then
                   1019:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                   1020: fi
                   1021: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.9     ! paf      1022: echo "configure:1023: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       paf      1023: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                   1024: cross_compiling=$ac_cv_prog_cc_cross
                   1025: 
                   1026: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.9     ! paf      1027: echo "configure:1028: checking whether we are using GNU C" >&5
1.1       paf      1028: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                   1029:   echo $ac_n "(cached) $ac_c" 1>&6
                   1030: else
                   1031:   cat > conftest.c <<EOF
                   1032: #ifdef __GNUC__
                   1033:   yes;
                   1034: #endif
                   1035: EOF
1.9     ! paf      1036: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       paf      1037:   ac_cv_prog_gcc=yes
                   1038: else
                   1039:   ac_cv_prog_gcc=no
                   1040: fi
                   1041: fi
                   1042: 
                   1043: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
                   1044: 
                   1045: if test $ac_cv_prog_gcc = yes; then
                   1046:   GCC=yes
                   1047: else
                   1048:   GCC=
                   1049: fi
                   1050: 
                   1051: ac_test_CFLAGS="${CFLAGS+set}"
                   1052: ac_save_CFLAGS="$CFLAGS"
                   1053: CFLAGS=
                   1054: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.9     ! paf      1055: echo "configure:1056: checking whether ${CC-cc} accepts -g" >&5
1.1       paf      1056: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
                   1057:   echo $ac_n "(cached) $ac_c" 1>&6
                   1058: else
                   1059:   echo 'void f(){}' > conftest.c
                   1060: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
                   1061:   ac_cv_prog_cc_g=yes
                   1062: else
                   1063:   ac_cv_prog_cc_g=no
                   1064: fi
                   1065: rm -f conftest*
                   1066: 
                   1067: fi
                   1068: 
                   1069: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
                   1070: if test "$ac_test_CFLAGS" = set; then
                   1071:   CFLAGS="$ac_save_CFLAGS"
                   1072: elif test $ac_cv_prog_cc_g = yes; then
                   1073:   if test "$GCC" = yes; then
                   1074:     CFLAGS="-g -O2"
                   1075:   else
                   1076:     CFLAGS="-g"
                   1077:   fi
                   1078: else
                   1079:   if test "$GCC" = yes; then
                   1080:     CFLAGS="-O2"
                   1081:   else
                   1082:     CFLAGS=
                   1083:   fi
                   1084: fi
                   1085: 
                   1086: ac_ext=c
                   1087: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1088: ac_cpp='$CPP $CPPFLAGS'
                   1089: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1090: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1091: cross_compiling=$ac_cv_prog_cc_cross
                   1092:  echo $ac_n "checking for inline""... $ac_c" 1>&6
1.9     ! paf      1093: echo "configure:1094: checking for inline" >&5
1.1       paf      1094: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
                   1095:   echo $ac_n "(cached) $ac_c" 1>&6
                   1096: else
                   1097:   ac_cv_c_inline=no
                   1098: for ac_kw in inline __inline__ __inline; do
                   1099:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      1100: #line 1101 "configure"
1.1       paf      1101: #include "confdefs.h"
                   1102: 
                   1103: int main() {
                   1104: } $ac_kw foo() {
                   1105: ; return 0; }
                   1106: EOF
1.9     ! paf      1107: if { (eval echo configure:1108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       paf      1108:   rm -rf conftest*
                   1109:   ac_cv_c_inline=$ac_kw; break
                   1110: else
                   1111:   echo "configure: failed program was:" >&5
                   1112:   cat conftest.$ac_ext >&5
                   1113: fi
                   1114: rm -f conftest*
                   1115: done
                   1116: 
                   1117: fi
                   1118: 
                   1119: echo "$ac_t""$ac_cv_c_inline" 1>&6
                   1120: case "$ac_cv_c_inline" in
                   1121:   inline | yes) ;;
                   1122:   no) cat >> confdefs.h <<\EOF
                   1123: #define inline 
                   1124: EOF
                   1125:  ;;
                   1126:   *)  cat >> confdefs.h <<EOF
                   1127: #define inline $ac_cv_c_inline
                   1128: EOF
                   1129:  ;;
                   1130: esac
                   1131: 
                   1132: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
                   1133: do
                   1134: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   1135: set dummy $ac_prog; ac_word=$2
                   1136: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.9     ! paf      1137: echo "configure:1138: checking for $ac_word" >&5
1.1       paf      1138: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
                   1139:   echo $ac_n "(cached) $ac_c" 1>&6
                   1140: else
                   1141:   if test -n "$CXX"; then
                   1142:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
                   1143: else
                   1144:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1145:   ac_dummy="$PATH"
                   1146:   for ac_dir in $ac_dummy; do
                   1147:     test -z "$ac_dir" && ac_dir=.
                   1148:     if test -f $ac_dir/$ac_word; then
                   1149:       ac_cv_prog_CXX="$ac_prog"
                   1150:       break
                   1151:     fi
                   1152:   done
                   1153:   IFS="$ac_save_ifs"
                   1154: fi
                   1155: fi
                   1156: CXX="$ac_cv_prog_CXX"
                   1157: if test -n "$CXX"; then
                   1158:   echo "$ac_t""$CXX" 1>&6
                   1159: else
                   1160:   echo "$ac_t""no" 1>&6
                   1161: fi
                   1162: 
                   1163: test -n "$CXX" && break
                   1164: done
                   1165: test -n "$CXX" || CXX="gcc"
                   1166: 
                   1167: 
                   1168: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.9     ! paf      1169: echo "configure:1170: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1       paf      1170: 
                   1171: ac_ext=C
                   1172: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1173: ac_cpp='$CXXCPP $CPPFLAGS'
                   1174: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1175: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1176: cross_compiling=$ac_cv_prog_cxx_cross
                   1177: 
                   1178: cat > conftest.$ac_ext << EOF
                   1179: 
1.9     ! paf      1180: #line 1181 "configure"
1.1       paf      1181: #include "confdefs.h"
                   1182: 
                   1183: int main(){return(0);}
                   1184: EOF
1.9     ! paf      1185: if { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      1186:   ac_cv_prog_cxx_works=yes
                   1187:   # If we can't run a trivial program, we are probably using a cross compiler.
                   1188:   if (./conftest; exit) 2>/dev/null; then
                   1189:     ac_cv_prog_cxx_cross=no
                   1190:   else
                   1191:     ac_cv_prog_cxx_cross=yes
                   1192:   fi
                   1193: else
                   1194:   echo "configure: failed program was:" >&5
                   1195:   cat conftest.$ac_ext >&5
                   1196:   ac_cv_prog_cxx_works=no
                   1197: fi
                   1198: rm -fr conftest*
                   1199: ac_ext=c
                   1200: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1201: ac_cpp='$CPP $CPPFLAGS'
                   1202: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1203: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1204: cross_compiling=$ac_cv_prog_cc_cross
                   1205: 
                   1206: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
                   1207: if test $ac_cv_prog_cxx_works = no; then
                   1208:   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
                   1209: fi
                   1210: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.9     ! paf      1211: echo "configure:1212: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       paf      1212: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
                   1213: cross_compiling=$ac_cv_prog_cxx_cross
                   1214: 
                   1215: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.9     ! paf      1216: echo "configure:1217: checking whether we are using GNU C++" >&5
1.1       paf      1217: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
                   1218:   echo $ac_n "(cached) $ac_c" 1>&6
                   1219: else
                   1220:   cat > conftest.C <<EOF
                   1221: #ifdef __GNUC__
                   1222:   yes;
                   1223: #endif
                   1224: EOF
1.9     ! paf      1225: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       paf      1226:   ac_cv_prog_gxx=yes
                   1227: else
                   1228:   ac_cv_prog_gxx=no
                   1229: fi
                   1230: fi
                   1231: 
                   1232: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
                   1233: 
                   1234: if test $ac_cv_prog_gxx = yes; then
                   1235:   GXX=yes
                   1236: else
                   1237:   GXX=
                   1238: fi
                   1239: 
                   1240: ac_test_CXXFLAGS="${CXXFLAGS+set}"
                   1241: ac_save_CXXFLAGS="$CXXFLAGS"
                   1242: CXXFLAGS=
                   1243: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.9     ! paf      1244: echo "configure:1245: checking whether ${CXX-g++} accepts -g" >&5
1.1       paf      1245: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
                   1246:   echo $ac_n "(cached) $ac_c" 1>&6
                   1247: else
                   1248:   echo 'void f(){}' > conftest.cc
                   1249: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
                   1250:   ac_cv_prog_cxx_g=yes
                   1251: else
                   1252:   ac_cv_prog_cxx_g=no
                   1253: fi
                   1254: rm -f conftest*
                   1255: 
                   1256: fi
                   1257: 
                   1258: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
                   1259: if test "$ac_test_CXXFLAGS" = set; then
                   1260:   CXXFLAGS="$ac_save_CXXFLAGS"
                   1261: elif test $ac_cv_prog_cxx_g = yes; then
                   1262:   if test "$GXX" = yes; then
                   1263:     CXXFLAGS="-g -O2"
                   1264:   else
                   1265:     CXXFLAGS="-g"
                   1266:   fi
                   1267: else
                   1268:   if test "$GXX" = yes; then
                   1269:     CXXFLAGS="-O2"
                   1270:   else
                   1271:     CXXFLAGS=
                   1272:   fi
                   1273: fi
                   1274: 
                   1275: ac_ext=C
                   1276: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1277: ac_cpp='$CXXCPP $CPPFLAGS'
                   1278: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1279: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1280: cross_compiling=$ac_cv_prog_cxx_cross
                   1281: 
                   1282: 
                   1283: 
                   1284: 
                   1285: # Check whether --enable-string-origins or --disable-string-origins was given.
                   1286: if test "${enable_string_origins+set}" = set; then
                   1287:   enableval="$enable_string_origins"
                   1288:   
                   1289: if test "$enableval" = "no"; then
                   1290:        cat >> confdefs.h <<\EOF
                   1291: #define NO_STRING_ORIGIN 
                   1292: EOF
                   1293: 
                   1294: fi
                   1295: 
                   1296: 
                   1297: fi
                   1298: 
                   1299: 
                   1300: # Check whether --with-apache13 or --without-apache13 was given.
                   1301: if test "${with_apache13+set}" = set; then
                   1302:   withval="$with_apache13"
                   1303:   APACHE13=$withval
                   1304:     if test \! -f "$APACHE13/src/include/httpd.h"; then
                   1305:        { echo "configure: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" 1>&2; exit 1; }
                   1306:     fi
                   1307: 
                   1308: fi
                   1309: 
                   1310: 
                   1311: 
                   1312: 
                   1313: if test -n "$APACHE13"; then
                   1314:   COMPILE_APACHE13_MODULE_TRUE=
                   1315:   COMPILE_APACHE13_MODULE_FALSE='#'
                   1316: else
                   1317:   COMPILE_APACHE13_MODULE_TRUE='#'
                   1318:   COMPILE_APACHE13_MODULE_FALSE=
                   1319: fi
                   1320: 
                   1321: 
                   1322: # Check whether --with-pathlink or --without-pathlink was given.
                   1323: if test "${with_pathlink+set}" = set; then
                   1324:   withval="$with_pathlink"
                   1325:   LD_PATHLINK=$withval
                   1326: 
                   1327: fi
                   1328: 
                   1329: 
1.7       paf      1330: # Check whether --with-glib-config or --without-glib-config was given.
                   1331: if test "${with_glib_config+set}" = set; then
                   1332:   withval="$with_glib_config"
                   1333:   GLIB_CONFIG=$withval
                   1334: 
                   1335: fi
                   1336: 
                   1337: 
1.1       paf      1338: # Check whether --with-gnome-xml or --without-gnome-xml was given.
                   1339: if test "${with_gnome_xml+set}" = set; then
                   1340:   withval="$with_gnome_xml"
                   1341:   
                   1342:     GNOME_XML=$withval
                   1343:     XMLBIN_DIR="$GNOME_XML/bin"
                   1344:     XMLINC_DIR="$GNOME_XML/include"
                   1345:     XMLLIB_DIR="$GNOME_XML/lib"
                   1346: 
                   1347:     if test \! -d $XMLBIN_DIR -o \! -d $XMLINC_DIR -o \! -d $XMLLIB_DIR; then
                   1348:        { echo "configure: error: $GNOME_XML does not seem to be valid Gnome installation directory" 1>&2; exit 1; }
                   1349:     fi
                   1350: 
                   1351:     cat >> confdefs.h <<\EOF
                   1352: #define XML 
                   1353: EOF
                   1354: 
                   1355:     
                   1356:     LIBXML2_SO_NAME=`cd $XMLLIB_DIR ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                   1357:     if test -z "$LIBXML2_SO_NAME"; then
                   1358:        { echo "configure: error: $LIBXML_DIR does not containt XML2 dynamic library" 1>&2; exit 1; }
                   1359:     fi
                   1360:     LIBGDOME_SO_NAME=`cd $XMLLIB_DIR ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                   1361:     if test -z "$LIBGDOME_SO_NAME"; then
                   1362:        { echo "configure: error: $LIBXML_DIR does not containt GDOME dynamic library" 1>&2; exit 1; }
                   1363:     fi
                   1364:     LIBXSLT_SO_NAME=`cd $XMLLIB_DIR ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                   1365:     if test -z "$LIBXSLT_SO_NAME"; then
                   1366:        { echo "configure: error: $LIBXML_DIR does not containt XSLT dynamic library" 1>&2; exit 1; }
                   1367:     fi
                   1368:     LIBEXSLT_SO_NAME=`cd $XMLLIB_DIR ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
                   1369:     if test -z "$LIBEXSLT_SO_NAME"; then
                   1370:        { echo "configure: error: $LIBXML_DIR does not containt EXSLT dynamic library" 1>&2; exit 1; }
                   1371:     fi
1.7       paf      1372: 
                   1373:     if test -z "$GLIB_CONFIG"; then
                   1374:            GLIB_CONFIG=$XMLBIN_DIR/glib-config
                   1375:            if test \! -x $GLIB_CONFIG; then
                   1376:                GLIB_CONFIG=glib-config
                   1377:            fi
1.1       paf      1378:     fi
                   1379:     GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
                   1380:     GLIB_LIBS=`$GLIB_CONFIG --libs`
                   1381: 
                   1382:     XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC_DIR -I$XMLINC_DIR/libgdome -I$XMLINC_DIR/libxml2"
1.7       paf      1383:     XML_LIBS="$GLIB_LIBS -L$XMLLIB_DIR -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.1       paf      1384:     if test \! -z "$LD_PATHLINK"; then
                   1385:        XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB_DIR"
                   1386:     fi
                   1387: 
                   1388: fi
                   1389: 
                   1390: 
                   1391: 
                   1392: 
                   1393: 
                   1394: # Make sure we can run config.sub.
                   1395: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
                   1396: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
                   1397: fi
                   1398: 
                   1399: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.9     ! paf      1400: echo "configure:1401: checking host system type" >&5
1.1       paf      1401: 
                   1402: host_alias=$host
                   1403: case "$host_alias" in
                   1404: NONE)
                   1405:   case $nonopt in
                   1406:   NONE)
                   1407:     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
                   1408:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
                   1409:     fi ;;
                   1410:   *) host_alias=$nonopt ;;
                   1411:   esac ;;
                   1412: esac
                   1413: 
                   1414: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
                   1415: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   1416: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   1417: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   1418: echo "$ac_t""$host" 1>&6
                   1419: 
                   1420: 
                   1421: 
                   1422: # Find a good install program.  We prefer a C program (faster),
                   1423: # so one script is as good as another.  But avoid the broken or
                   1424: # incompatible versions:
                   1425: # SysV /etc/install, /usr/sbin/install
                   1426: # SunOS /usr/etc/install
                   1427: # IRIX /sbin/install
                   1428: # AIX /bin/install
                   1429: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   1430: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   1431: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   1432: # ./install, which can be erroneously created by make from ./install.sh.
                   1433: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.9     ! paf      1434: echo "configure:1435: checking for a BSD compatible install" >&5
1.1       paf      1435: if test -z "$INSTALL"; then
                   1436: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                   1437:   echo $ac_n "(cached) $ac_c" 1>&6
                   1438: else
                   1439:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                   1440:   for ac_dir in $PATH; do
                   1441:     # Account for people who put trailing slashes in PATH elements.
                   1442:     case "$ac_dir/" in
                   1443:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                   1444:     *)
                   1445:       # OSF1 and SCO ODT 3.0 have their own names for install.
                   1446:       # Don't use installbsd from OSF since it installs stuff as root
                   1447:       # by default.
                   1448:       for ac_prog in ginstall scoinst install; do
                   1449:         if test -f $ac_dir/$ac_prog; then
                   1450:          if test $ac_prog = install &&
                   1451:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                   1452:            # AIX install.  It has an incompatible calling convention.
                   1453:            :
                   1454:          else
                   1455:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                   1456:            break 2
                   1457:          fi
                   1458:        fi
                   1459:       done
                   1460:       ;;
                   1461:     esac
                   1462:   done
                   1463:   IFS="$ac_save_IFS"
                   1464: 
                   1465: fi
                   1466:   if test "${ac_cv_path_install+set}" = set; then
                   1467:     INSTALL="$ac_cv_path_install"
                   1468:   else
                   1469:     # As a last resort, use the slow shell script.  We don't cache a
                   1470:     # path for INSTALL within a source directory, because that will
                   1471:     # break other packages using the cache if that directory is
                   1472:     # removed, or if the path is relative.
                   1473:     INSTALL="$ac_install_sh"
                   1474:   fi
                   1475: fi
                   1476: echo "$ac_t""$INSTALL" 1>&6
                   1477: 
                   1478: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   1479: # It thinks the first close brace ends the variable substitution.
                   1480: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                   1481: 
                   1482: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                   1483: 
                   1484: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                   1485: 
                   1486: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.9     ! paf      1487: echo "configure:1488: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1       paf      1488: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
                   1489: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                   1490:   echo $ac_n "(cached) $ac_c" 1>&6
                   1491: else
                   1492:   cat > conftestmake <<\EOF
                   1493: all:
                   1494:        @echo 'ac_maketemp="${MAKE}"'
                   1495: EOF
                   1496: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                   1497: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                   1498: if test -n "$ac_maketemp"; then
                   1499:   eval ac_cv_prog_make_${ac_make}_set=yes
                   1500: else
                   1501:   eval ac_cv_prog_make_${ac_make}_set=no
                   1502: fi
                   1503: rm -f conftestmake
                   1504: fi
                   1505: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                   1506:   echo "$ac_t""yes" 1>&6
                   1507:   SET_MAKE=
                   1508: else
                   1509:   echo "$ac_t""no" 1>&6
                   1510:   SET_MAKE="MAKE=${MAKE-make}"
                   1511: fi
                   1512: 
                   1513: # Extract the first word of "ranlib", so it can be a program name with args.
                   1514: set dummy ranlib; ac_word=$2
                   1515: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.9     ! paf      1516: echo "configure:1517: checking for $ac_word" >&5
1.1       paf      1517: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
                   1518:   echo $ac_n "(cached) $ac_c" 1>&6
                   1519: else
                   1520:   if test -n "$RANLIB"; then
                   1521:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   1522: else
                   1523:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1524:   ac_dummy="$PATH"
                   1525:   for ac_dir in $ac_dummy; do
                   1526:     test -z "$ac_dir" && ac_dir=.
                   1527:     if test -f $ac_dir/$ac_word; then
                   1528:       ac_cv_prog_RANLIB="ranlib"
                   1529:       break
                   1530:     fi
                   1531:   done
                   1532:   IFS="$ac_save_ifs"
                   1533:   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
                   1534: fi
                   1535: fi
                   1536: RANLIB="$ac_cv_prog_RANLIB"
                   1537: if test -n "$RANLIB"; then
                   1538:   echo "$ac_t""$RANLIB" 1>&6
                   1539: else
                   1540:   echo "$ac_t""no" 1>&6
                   1541: fi
                   1542: 
                   1543: for ac_prog in mawk gawk nawk awk
                   1544: do
                   1545: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   1546: set dummy $ac_prog; ac_word=$2
                   1547: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.9     ! paf      1548: echo "configure:1549: checking for $ac_word" >&5
1.1       paf      1549: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
                   1550:   echo $ac_n "(cached) $ac_c" 1>&6
                   1551: else
                   1552:   if test -n "$AWK"; then
                   1553:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   1554: else
                   1555:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1556:   ac_dummy="$PATH"
                   1557:   for ac_dir in $ac_dummy; do
                   1558:     test -z "$ac_dir" && ac_dir=.
                   1559:     if test -f $ac_dir/$ac_word; then
                   1560:       ac_cv_prog_AWK="$ac_prog"
                   1561:       break
                   1562:     fi
                   1563:   done
                   1564:   IFS="$ac_save_ifs"
                   1565: fi
                   1566: fi
                   1567: AWK="$ac_cv_prog_AWK"
                   1568: if test -n "$AWK"; then
                   1569:   echo "$ac_t""$AWK" 1>&6
                   1570: else
                   1571:   echo "$ac_t""no" 1>&6
                   1572: fi
                   1573: 
                   1574: test -n "$AWK" && break
                   1575: done
                   1576: 
                   1577: 
                   1578: for ac_prog in 'bison -y' byacc
                   1579: do
                   1580: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   1581: set dummy $ac_prog; ac_word=$2
                   1582: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.9     ! paf      1583: echo "configure:1584: checking for $ac_word" >&5
1.1       paf      1584: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
                   1585:   echo $ac_n "(cached) $ac_c" 1>&6
                   1586: else
                   1587:   if test -n "$YACC"; then
                   1588:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   1589: else
                   1590:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1591:   ac_dummy="$PATH"
                   1592:   for ac_dir in $ac_dummy; do
                   1593:     test -z "$ac_dir" && ac_dir=.
                   1594:     if test -f $ac_dir/$ac_word; then
                   1595:       ac_cv_prog_YACC="$ac_prog"
                   1596:       break
                   1597:     fi
                   1598:   done
                   1599:   IFS="$ac_save_ifs"
                   1600: fi
                   1601: fi
                   1602: YACC="$ac_cv_prog_YACC"
                   1603: if test -n "$YACC"; then
                   1604:   echo "$ac_t""$YACC" 1>&6
                   1605: else
                   1606:   echo "$ac_t""no" 1>&6
                   1607: fi
                   1608: 
                   1609: test -n "$YACC" && break
                   1610: done
                   1611: test -n "$YACC" || YACC="yacc"
                   1612: 
                   1613: if test "$YACC" != "bison -y"; then
                   1614:     echo "configure: warning: to regenerate Parser grammar YOU WOULD NEED BISON" 1>&2
                   1615: else
                   1616:     echo $ac_n "checking bison version""... $ac_c" 1>&6
1.9     ! paf      1617: echo "configure:1618: checking bison version" >&5
1.1       paf      1618:     oldIFS=$IFS; IFS=.
                   1619:     set `bison -V | sed -e 's/^GNU Bison version //'`
                   1620:     IFS=$oldIFS
                   1621:     if test "$1" = "1" -a "$2" -lt "25"; then
                   1622:         echo "configure: warning: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." 1>&2
                   1623:     fi
                   1624:     echo "$ac_t""$1.$2 (ok)" 1>&6
                   1625: fi
                   1626: 
1.8       paf      1627:   LIBLTDL='${top_builddir}/'src/libltdl/libltdlc.a
1.1       paf      1628:   INCLTDL='-I${top_srcdir}/'src/libltdl
                   1629: 
                   1630: 
                   1631: 
                   1632: 
1.8       paf      1633: subdirs="src/libltdl"
                   1634: 
                   1635: LIBADD_DL=
                   1636: echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1.9     ! paf      1637: echo "configure:1638: checking for dlopen in -ldl" >&5
1.8       paf      1638: ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
                   1639: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1640:   echo $ac_n "(cached) $ac_c" 1>&6
1.1       paf      1641: else
1.8       paf      1642:   ac_save_LIBS="$LIBS"
                   1643: LIBS="-ldl  $LIBS"
                   1644: cat > conftest.$ac_ext <<EOF
1.9     ! paf      1645: #line 1646 "configure"
1.8       paf      1646: #include "confdefs.h"
                   1647: /* Override any gcc2 internal prototype to avoid an error.  */
                   1648: #ifdef __cplusplus
                   1649: extern "C"
                   1650: #endif
                   1651: /* We use char because int might match the return type of a gcc2
                   1652:     builtin and then its argument prototype would still apply.  */
                   1653: char dlopen();
1.1       paf      1654: 
1.8       paf      1655: int main() {
                   1656: dlopen()
                   1657: ; return 0; }
                   1658: EOF
1.9     ! paf      1659: if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8       paf      1660:   rm -rf conftest*
                   1661:   eval "ac_cv_lib_$ac_lib_var=yes"
1.1       paf      1662: else
1.8       paf      1663:   echo "configure: failed program was:" >&5
                   1664:   cat conftest.$ac_ext >&5
                   1665:   rm -rf conftest*
                   1666:   eval "ac_cv_lib_$ac_lib_var=no"
1.1       paf      1667: fi
1.8       paf      1668: rm -f conftest*
                   1669: LIBS="$ac_save_LIBS"
1.1       paf      1670: 
1.8       paf      1671: fi
                   1672: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1673:   echo "$ac_t""yes" 1>&6
                   1674:   cat >> confdefs.h <<\EOF
                   1675: #define HAVE_LIBDL 1
                   1676: EOF
                   1677:  LIBADD_DL="-ldl"
                   1678: else
                   1679:   echo "$ac_t""no" 1>&6
                   1680: echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1.9     ! paf      1681: echo "configure:1682: checking for dlopen" >&5
1.8       paf      1682: if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
                   1683:   echo $ac_n "(cached) $ac_c" 1>&6
1.1       paf      1684: else
1.8       paf      1685:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      1686: #line 1687 "configure"
1.8       paf      1687: #include "confdefs.h"
                   1688: /* System header to define __stub macros and hopefully few prototypes,
                   1689:     which can conflict with char dlopen(); below.  */
                   1690: #include <assert.h>
                   1691: /* Override any gcc2 internal prototype to avoid an error.  */
                   1692: #ifdef __cplusplus
                   1693: extern "C"
                   1694: #endif
                   1695: /* We use char because int might match the return type of a gcc2
                   1696:     builtin and then its argument prototype would still apply.  */
                   1697: char dlopen();
1.1       paf      1698: 
1.8       paf      1699: int main() {
1.1       paf      1700: 
1.8       paf      1701: /* The GNU C library defines this for functions which it implements
                   1702:     to always fail with ENOSYS.  Some functions are actually named
                   1703:     something starting with __ and the normal name is an alias.  */
                   1704: #if defined (__stub_dlopen) || defined (__stub___dlopen)
                   1705: choke me
                   1706: #else
                   1707: dlopen();
                   1708: #endif
1.1       paf      1709: 
1.8       paf      1710: ; return 0; }
                   1711: EOF
1.9     ! paf      1712: if { (eval echo configure:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8       paf      1713:   rm -rf conftest*
                   1714:   eval "ac_cv_func_dlopen=yes"
1.1       paf      1715: else
1.8       paf      1716:   echo "configure: failed program was:" >&5
                   1717:   cat conftest.$ac_ext >&5
                   1718:   rm -rf conftest*
                   1719:   eval "ac_cv_func_dlopen=no"
1.1       paf      1720: fi
1.8       paf      1721: rm -f conftest*
1.1       paf      1722: fi
                   1723: 
1.8       paf      1724: if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
                   1725:   echo "$ac_t""yes" 1>&6
                   1726:   cat >> confdefs.h <<\EOF
                   1727: #define HAVE_LIBDL 1
                   1728: EOF
                   1729: 
1.1       paf      1730: else
                   1731:   echo "$ac_t""no" 1>&6
                   1732: fi
1.8       paf      1733: 
                   1734: fi
                   1735: 
                   1736: echo $ac_n "checking for shl_load""... $ac_c" 1>&6
1.9     ! paf      1737: echo "configure:1738: checking for shl_load" >&5
1.8       paf      1738: if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
1.1       paf      1739:   echo $ac_n "(cached) $ac_c" 1>&6
                   1740: else
1.8       paf      1741:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      1742: #line 1743 "configure"
1.8       paf      1743: #include "confdefs.h"
                   1744: /* System header to define __stub macros and hopefully few prototypes,
                   1745:     which can conflict with char shl_load(); below.  */
                   1746: #include <assert.h>
                   1747: /* Override any gcc2 internal prototype to avoid an error.  */
                   1748: #ifdef __cplusplus
                   1749: extern "C"
                   1750: #endif
                   1751: /* We use char because int might match the return type of a gcc2
                   1752:     builtin and then its argument prototype would still apply.  */
                   1753: char shl_load();
1.1       paf      1754: 
1.8       paf      1755: int main() {
1.1       paf      1756: 
1.8       paf      1757: /* The GNU C library defines this for functions which it implements
                   1758:     to always fail with ENOSYS.  Some functions are actually named
                   1759:     something starting with __ and the normal name is an alias.  */
                   1760: #if defined (__stub_shl_load) || defined (__stub___shl_load)
                   1761: choke me
                   1762: #else
                   1763: shl_load();
                   1764: #endif
1.1       paf      1765: 
1.8       paf      1766: ; return 0; }
                   1767: EOF
1.9     ! paf      1768: if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8       paf      1769:   rm -rf conftest*
                   1770:   eval "ac_cv_func_shl_load=yes"
1.1       paf      1771: else
1.8       paf      1772:   echo "configure: failed program was:" >&5
                   1773:   cat conftest.$ac_ext >&5
                   1774:   rm -rf conftest*
                   1775:   eval "ac_cv_func_shl_load=no"
1.1       paf      1776: fi
1.8       paf      1777: rm -f conftest*
1.1       paf      1778: fi
                   1779: 
1.8       paf      1780: if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
                   1781:   echo "$ac_t""yes" 1>&6
                   1782:   cat >> confdefs.h <<\EOF
                   1783: #define HAVE_SHL_LOAD 1
                   1784: EOF
1.1       paf      1785: 
1.8       paf      1786: else
                   1787:   echo "$ac_t""no" 1>&6
                   1788: echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
1.9     ! paf      1789: echo "configure:1790: checking for shl_load in -ldld" >&5
1.8       paf      1790: ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
                   1791: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1       paf      1792:   echo $ac_n "(cached) $ac_c" 1>&6
                   1793: else
1.8       paf      1794:   ac_save_LIBS="$LIBS"
                   1795: LIBS="-ldld  $LIBS"
                   1796: cat > conftest.$ac_ext <<EOF
1.9     ! paf      1797: #line 1798 "configure"
1.8       paf      1798: #include "confdefs.h"
                   1799: /* Override any gcc2 internal prototype to avoid an error.  */
                   1800: #ifdef __cplusplus
                   1801: extern "C"
                   1802: #endif
                   1803: /* We use char because int might match the return type of a gcc2
                   1804:     builtin and then its argument prototype would still apply.  */
                   1805: char shl_load();
                   1806: 
                   1807: int main() {
                   1808: shl_load()
                   1809: ; return 0; }
                   1810: EOF
1.9     ! paf      1811: if { (eval echo configure:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8       paf      1812:   rm -rf conftest*
                   1813:   eval "ac_cv_lib_$ac_lib_var=yes"
1.1       paf      1814: else
1.8       paf      1815:   echo "configure: failed program was:" >&5
                   1816:   cat conftest.$ac_ext >&5
                   1817:   rm -rf conftest*
                   1818:   eval "ac_cv_lib_$ac_lib_var=no"
1.1       paf      1819: fi
1.8       paf      1820: rm -f conftest*
                   1821: LIBS="$ac_save_LIBS"
                   1822: 
1.1       paf      1823: fi
1.8       paf      1824: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1       paf      1825:   echo "$ac_t""yes" 1>&6
1.8       paf      1826:   cat >> confdefs.h <<\EOF
                   1827: #define HAVE_SHL_LOAD 1
                   1828: EOF
                   1829:  LIBADD_DL="$LIBADD_DL -ldld"
1.1       paf      1830: else
                   1831:   echo "$ac_t""no" 1>&6
                   1832: fi
                   1833: 
1.8       paf      1834: fi
1.1       paf      1835: 
1.8       paf      1836: echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
1.9     ! paf      1837: echo "configure:1838: checking for dld_link in -ldld" >&5
1.8       paf      1838: ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
                   1839: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   1840:   echo $ac_n "(cached) $ac_c" 1>&6
                   1841: else
                   1842:   ac_save_LIBS="$LIBS"
                   1843: LIBS="-ldld  $LIBS"
                   1844: cat > conftest.$ac_ext <<EOF
1.9     ! paf      1845: #line 1846 "configure"
1.8       paf      1846: #include "confdefs.h"
                   1847: /* Override any gcc2 internal prototype to avoid an error.  */
                   1848: #ifdef __cplusplus
                   1849: extern "C"
                   1850: #endif
                   1851: /* We use char because int might match the return type of a gcc2
                   1852:     builtin and then its argument prototype would still apply.  */
                   1853: char dld_link();
1.1       paf      1854: 
1.8       paf      1855: int main() {
                   1856: dld_link()
                   1857: ; return 0; }
                   1858: EOF
1.9     ! paf      1859: if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.8       paf      1860:   rm -rf conftest*
                   1861:   eval "ac_cv_lib_$ac_lib_var=yes"
                   1862: else
                   1863:   echo "configure: failed program was:" >&5
                   1864:   cat conftest.$ac_ext >&5
                   1865:   rm -rf conftest*
                   1866:   eval "ac_cv_lib_$ac_lib_var=no"
                   1867: fi
                   1868: rm -f conftest*
                   1869: LIBS="$ac_save_LIBS"
1.1       paf      1870: 
1.8       paf      1871: fi
                   1872: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   1873:   echo "$ac_t""yes" 1>&6
                   1874:   cat >> confdefs.h <<\EOF
                   1875: #define HAVE_DLD 1
                   1876: EOF
                   1877: test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
                   1878: else
                   1879:   echo "$ac_t""no" 1>&6
1.1       paf      1880: fi
                   1881: 
                   1882: 
                   1883: 
1.8       paf      1884: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
                   1885:  LIBS_SAVE="$LIBS"
                   1886:  LIBS="$LIBS $LIBADD_DL"
                   1887:  for ac_func in dlerror
                   1888: do
                   1889: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.9     ! paf      1890: echo "configure:1891: checking for $ac_func" >&5
1.8       paf      1891: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1.1       paf      1892:   echo $ac_n "(cached) $ac_c" 1>&6
                   1893: else
                   1894:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      1895: #line 1896 "configure"
1.1       paf      1896: #include "confdefs.h"
1.8       paf      1897: /* System header to define __stub macros and hopefully few prototypes,
                   1898:     which can conflict with char $ac_func(); below.  */
                   1899: #include <assert.h>
                   1900: /* Override any gcc2 internal prototype to avoid an error.  */
                   1901: #ifdef __cplusplus
                   1902: extern "C"
                   1903: #endif
                   1904: /* We use char because int might match the return type of a gcc2
                   1905:     builtin and then its argument prototype would still apply.  */
                   1906: char $ac_func();
1.1       paf      1907: 
                   1908: int main() {
                   1909: 
1.8       paf      1910: /* The GNU C library defines this for functions which it implements
                   1911:     to always fail with ENOSYS.  Some functions are actually named
                   1912:     something starting with __ and the normal name is an alias.  */
                   1913: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   1914: choke me
                   1915: #else
                   1916: $ac_func();
                   1917: #endif
                   1918: 
1.1       paf      1919: ; return 0; }
                   1920: EOF
1.9     ! paf      1921: if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      1922:   rm -rf conftest*
1.8       paf      1923:   eval "ac_cv_func_$ac_func=yes"
1.1       paf      1924: else
                   1925:   echo "configure: failed program was:" >&5
                   1926:   cat conftest.$ac_ext >&5
                   1927:   rm -rf conftest*
1.8       paf      1928:   eval "ac_cv_func_$ac_func=no"
1.1       paf      1929: fi
                   1930: rm -f conftest*
                   1931: fi
                   1932: 
1.8       paf      1933: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   1934:   echo "$ac_t""yes" 1>&6
                   1935:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   1936:   cat >> confdefs.h <<EOF
                   1937: #define $ac_tr_func 1
1.1       paf      1938: EOF
1.8       paf      1939:  
1.1       paf      1940: else
1.8       paf      1941:   echo "$ac_t""no" 1>&6
1.1       paf      1942: fi
1.8       paf      1943: done
1.1       paf      1944: 
1.8       paf      1945:  LIBS="$LIBS_SAVE"
1.1       paf      1946: fi
                   1947: 
                   1948: 
                   1949: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.9     ! paf      1950: echo "configure:1951: checking how to run the C++ preprocessor" >&5
1.1       paf      1951: if test -z "$CXXCPP"; then
                   1952: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
                   1953:   echo $ac_n "(cached) $ac_c" 1>&6
                   1954: else
                   1955:   ac_ext=C
                   1956: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1957: ac_cpp='$CXXCPP $CPPFLAGS'
                   1958: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1959: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1960: cross_compiling=$ac_cv_prog_cxx_cross
                   1961:   CXXCPP="${CXX-g++} -E"
                   1962:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      1963: #line 1964 "configure"
1.1       paf      1964: #include "confdefs.h"
                   1965: #include <stdlib.h>
                   1966: EOF
                   1967: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.9     ! paf      1968: { (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       paf      1969: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1970: if test -z "$ac_err"; then
                   1971:   :
                   1972: else
                   1973:   echo "$ac_err" >&5
                   1974:   echo "configure: failed program was:" >&5
                   1975:   cat conftest.$ac_ext >&5
                   1976:   rm -rf conftest*
                   1977:   CXXCPP=/lib/cpp
                   1978: fi
                   1979: rm -f conftest*
                   1980:   ac_cv_prog_CXXCPP="$CXXCPP"
                   1981: ac_ext=C
                   1982: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1983: ac_cpp='$CXXCPP $CPPFLAGS'
                   1984: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1985: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1986: cross_compiling=$ac_cv_prog_cxx_cross
                   1987: fi
                   1988: fi
                   1989: CXXCPP="$ac_cv_prog_CXXCPP"
                   1990: echo "$ac_t""$CXXCPP" 1>&6
                   1991: 
                   1992: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.9     ! paf      1993: echo "configure:1994: checking for ANSI C header files" >&5
1.1       paf      1994: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   1995:   echo $ac_n "(cached) $ac_c" 1>&6
                   1996: else
                   1997:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      1998: #line 1999 "configure"
1.1       paf      1999: #include "confdefs.h"
                   2000: #include <stdlib.h>
                   2001: #include <stdarg.h>
                   2002: #include <string.h>
                   2003: #include <float.h>
                   2004: EOF
                   2005: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.9     ! paf      2006: { (eval echo configure:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       paf      2007: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2008: if test -z "$ac_err"; then
                   2009:   rm -rf conftest*
                   2010:   ac_cv_header_stdc=yes
                   2011: else
                   2012:   echo "$ac_err" >&5
                   2013:   echo "configure: failed program was:" >&5
                   2014:   cat conftest.$ac_ext >&5
                   2015:   rm -rf conftest*
                   2016:   ac_cv_header_stdc=no
                   2017: fi
                   2018: rm -f conftest*
                   2019: 
                   2020: if test $ac_cv_header_stdc = yes; then
                   2021:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   2022: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2023: #line 2024 "configure"
1.1       paf      2024: #include "confdefs.h"
                   2025: #include <string.h>
                   2026: EOF
                   2027: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2028:   egrep "memchr" >/dev/null 2>&1; then
                   2029:   :
                   2030: else
                   2031:   rm -rf conftest*
                   2032:   ac_cv_header_stdc=no
                   2033: fi
                   2034: rm -f conftest*
                   2035: 
                   2036: fi
                   2037: 
                   2038: if test $ac_cv_header_stdc = yes; then
                   2039:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   2040: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2041: #line 2042 "configure"
1.1       paf      2042: #include "confdefs.h"
                   2043: #include <stdlib.h>
                   2044: EOF
                   2045: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2046:   egrep "free" >/dev/null 2>&1; then
                   2047:   :
                   2048: else
                   2049:   rm -rf conftest*
                   2050:   ac_cv_header_stdc=no
                   2051: fi
                   2052: rm -f conftest*
                   2053: 
                   2054: fi
                   2055: 
                   2056: if test $ac_cv_header_stdc = yes; then
                   2057:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   2058: if test "$cross_compiling" = yes; then
                   2059:   :
                   2060: else
                   2061:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      2062: #line 2063 "configure"
1.1       paf      2063: #include "confdefs.h"
                   2064: #ifdef __cplusplus
                   2065: extern "C" void exit(int);
                   2066: #endif
                   2067: #include <ctype.h>
                   2068: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   2069: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   2070: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   2071: int main () { int i; for (i = 0; i < 256; i++)
                   2072: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   2073: exit (0); }
                   2074: 
                   2075: EOF
1.9     ! paf      2076: if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       paf      2077: then
                   2078:   :
                   2079: else
                   2080:   echo "configure: failed program was:" >&5
                   2081:   cat conftest.$ac_ext >&5
                   2082:   rm -fr conftest*
                   2083:   ac_cv_header_stdc=no
                   2084: fi
                   2085: rm -fr conftest*
                   2086: fi
                   2087: 
                   2088: fi
                   2089: fi
                   2090: 
                   2091: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   2092: if test $ac_cv_header_stdc = yes; then
                   2093:   cat >> confdefs.h <<\EOF
                   2094: #define STDC_HEADERS 1
                   2095: EOF
                   2096: 
                   2097: fi
                   2098: 
                   2099: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.9     ! paf      2100: echo "configure:2101: checking for size_t" >&5
1.1       paf      2101: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
                   2102:   echo $ac_n "(cached) $ac_c" 1>&6
                   2103: else
                   2104:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      2105: #line 2106 "configure"
1.1       paf      2106: #include "confdefs.h"
                   2107: #include <sys/types.h>
                   2108: #if STDC_HEADERS
                   2109: #include <stdlib.h>
                   2110: #include <stddef.h>
                   2111: #endif
                   2112: EOF
                   2113: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2114:   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
                   2115:   rm -rf conftest*
                   2116:   ac_cv_type_size_t=yes
                   2117: else
                   2118:   rm -rf conftest*
                   2119:   ac_cv_type_size_t=no
                   2120: fi
                   2121: rm -f conftest*
                   2122: 
                   2123: fi
                   2124: echo "$ac_t""$ac_cv_type_size_t" 1>&6
                   2125: if test $ac_cv_type_size_t = no; then
                   2126:   cat >> confdefs.h <<\EOF
                   2127: #define size_t unsigned
                   2128: EOF
                   2129: 
                   2130: fi
                   2131: 
                   2132: 
                   2133: 
1.8       paf      2134: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.9     ! paf      2135: echo "configure:2136: checking whether time.h and sys/time.h may both be included" >&5
1.8       paf      2136: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
                   2137:   echo $ac_n "(cached) $ac_c" 1>&6
                   2138: else
                   2139:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      2140: #line 2141 "configure"
1.8       paf      2141: #include "confdefs.h"
                   2142: #include <sys/types.h>
                   2143: #include <sys/time.h>
                   2144: #include <time.h>
                   2145: int main() {
                   2146: struct tm *tp;
                   2147: ; return 0; }
                   2148: EOF
1.9     ! paf      2149: if { (eval echo configure:2150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.8       paf      2150:   rm -rf conftest*
                   2151:   ac_cv_header_time=yes
                   2152: else
                   2153:   echo "configure: failed program was:" >&5
                   2154:   cat conftest.$ac_ext >&5
                   2155:   rm -rf conftest*
                   2156:   ac_cv_header_time=no
                   2157: fi
                   2158: rm -f conftest*
                   2159: fi
                   2160: 
                   2161: echo "$ac_t""$ac_cv_header_time" 1>&6
                   2162: if test $ac_cv_header_time = yes; then
                   2163:   cat >> confdefs.h <<\EOF
                   2164: #define TIME_WITH_SYS_TIME 1
                   2165: EOF
                   2166: 
                   2167: fi
                   2168: 
                   2169: 
1.1       paf      2170: for ac_hdr in unistd.h \
                   2171: process.h \
                   2172: stddef.h \
                   2173: stdarg.h \
                   2174: fcntl.h \
                   2175: sys/stat.h \
                   2176: io.h \
                   2177: stdio.h \
                   2178: errno.h \
                   2179: ctype.h \
                   2180: math.h \
1.3       paf      2181: time.h sys/time.h \
1.1       paf      2182: stdlib.h \
                   2183: string.h \
                   2184: direct.h \
                   2185: setjmp.h \
                   2186: memory.h \
                   2187: new \
                   2188: sys/file.h \
                   2189: sys/locking.h \
1.3       paf      2190: sys/types.h \
                   2191: sys/select.h \
                   2192: sys/resource.h
1.1       paf      2193: 
                   2194: do
                   2195: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   2196: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.9     ! paf      2197: echo "configure:2198: checking for $ac_hdr" >&5
1.1       paf      2198: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2199:   echo $ac_n "(cached) $ac_c" 1>&6
                   2200: else
                   2201:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      2202: #line 2203 "configure"
1.1       paf      2203: #include "confdefs.h"
                   2204: #include <$ac_hdr>
                   2205: EOF
                   2206: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.9     ! paf      2207: { (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       paf      2208: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2209: if test -z "$ac_err"; then
                   2210:   rm -rf conftest*
                   2211:   eval "ac_cv_header_$ac_safe=yes"
                   2212: else
                   2213:   echo "$ac_err" >&5
                   2214:   echo "configure: failed program was:" >&5
                   2215:   cat conftest.$ac_ext >&5
                   2216:   rm -rf conftest*
                   2217:   eval "ac_cv_header_$ac_safe=no"
                   2218: fi
                   2219: rm -f conftest*
                   2220: fi
                   2221: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2222:   echo "$ac_t""yes" 1>&6
                   2223:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   2224:   cat >> confdefs.h <<EOF
                   2225: #define $ac_tr_hdr 1
                   2226: EOF
                   2227:  
                   2228: else
                   2229:   echo "$ac_t""no" 1>&6
                   2230: fi
                   2231: done
                   2232: 
                   2233: 
                   2234: 
                   2235: case "$host" in
                   2236:   *-sunos5.6* | *-solaris2.6*)
                   2237:       echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
1.9     ! paf      2238: echo "configure:2239: checking for main in -lxnet" >&5
1.1       paf      2239: ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
                   2240: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2241:   echo $ac_n "(cached) $ac_c" 1>&6
                   2242: else
                   2243:   ac_save_LIBS="$LIBS"
                   2244: LIBS="-lxnet  $LIBS"
                   2245: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2246: #line 2247 "configure"
1.1       paf      2247: #include "confdefs.h"
                   2248: 
                   2249: int main() {
                   2250: main()
                   2251: ; return 0; }
                   2252: EOF
1.9     ! paf      2253: if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2254:   rm -rf conftest*
                   2255:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2256: else
                   2257:   echo "configure: failed program was:" >&5
                   2258:   cat conftest.$ac_ext >&5
                   2259:   rm -rf conftest*
                   2260:   eval "ac_cv_lib_$ac_lib_var=no"
                   2261: fi
                   2262: rm -f conftest*
                   2263: LIBS="$ac_save_LIBS"
                   2264: 
                   2265: fi
                   2266: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2267:   echo "$ac_t""yes" 1>&6
                   2268:     ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2269:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2270:   cat >> confdefs.h <<EOF
                   2271: #define $ac_tr_lib 1
                   2272: EOF
                   2273: 
                   2274:   LIBS="-lxnet $LIBS"
                   2275: 
                   2276: else
                   2277:   echo "$ac_t""no" 1>&6
                   2278: fi
                   2279: 
                   2280:   ;;
                   2281:   *-sunos5* | *-solaris2*)
                   2282:       echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.9     ! paf      2283: echo "configure:2284: checking for main in -lsocket" >&5
1.1       paf      2284: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
                   2285: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2286:   echo $ac_n "(cached) $ac_c" 1>&6
                   2287: else
                   2288:   ac_save_LIBS="$LIBS"
                   2289: LIBS="-lsocket  $LIBS"
                   2290: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2291: #line 2292 "configure"
1.1       paf      2292: #include "confdefs.h"
                   2293: 
                   2294: int main() {
                   2295: main()
                   2296: ; return 0; }
                   2297: EOF
1.9     ! paf      2298: if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2299:   rm -rf conftest*
                   2300:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2301: else
                   2302:   echo "configure: failed program was:" >&5
                   2303:   cat conftest.$ac_ext >&5
                   2304:   rm -rf conftest*
                   2305:   eval "ac_cv_lib_$ac_lib_var=no"
                   2306: fi
                   2307: rm -f conftest*
                   2308: LIBS="$ac_save_LIBS"
                   2309: 
                   2310: fi
                   2311: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2312:   echo "$ac_t""yes" 1>&6
                   2313:     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2314:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2315:   cat >> confdefs.h <<EOF
                   2316: #define $ac_tr_lib 1
                   2317: EOF
                   2318: 
                   2319:   LIBS="-lsocket $LIBS"
                   2320: 
                   2321: else
                   2322:   echo "$ac_t""no" 1>&6
                   2323: fi
                   2324: 
                   2325:       echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.9     ! paf      2326: echo "configure:2327: checking for main in -lnsl" >&5
1.1       paf      2327: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
                   2328: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2329:   echo $ac_n "(cached) $ac_c" 1>&6
                   2330: else
                   2331:   ac_save_LIBS="$LIBS"
                   2332: LIBS="-lnsl  $LIBS"
                   2333: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2334: #line 2335 "configure"
1.1       paf      2335: #include "confdefs.h"
                   2336: 
                   2337: int main() {
                   2338: main()
                   2339: ; return 0; }
                   2340: EOF
1.9     ! paf      2341: if { (eval echo configure:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2342:   rm -rf conftest*
                   2343:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2344: else
                   2345:   echo "configure: failed program was:" >&5
                   2346:   cat conftest.$ac_ext >&5
                   2347:   rm -rf conftest*
                   2348:   eval "ac_cv_lib_$ac_lib_var=no"
                   2349: fi
                   2350: rm -f conftest*
                   2351: LIBS="$ac_save_LIBS"
                   2352: 
                   2353: fi
                   2354: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2355:   echo "$ac_t""yes" 1>&6
                   2356:     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2357:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2358:   cat >> confdefs.h <<EOF
                   2359: #define $ac_tr_lib 1
                   2360: EOF
                   2361: 
                   2362:   LIBS="-lnsl $LIBS"
                   2363: 
                   2364: else
                   2365:   echo "$ac_t""no" 1>&6
                   2366: fi
                   2367: 
                   2368:   ;;
                   2369:   *-nec-sysv4*)
                   2370:       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.9     ! paf      2371: echo "configure:2372: checking for gethostbyname in -lnsl" >&5
1.1       paf      2372: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
                   2373: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2374:   echo $ac_n "(cached) $ac_c" 1>&6
                   2375: else
                   2376:   ac_save_LIBS="$LIBS"
                   2377: LIBS="-lnsl  $LIBS"
                   2378: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2379: #line 2380 "configure"
1.1       paf      2380: #include "confdefs.h"
                   2381: /* Override any gcc2 internal prototype to avoid an error.  */
                   2382: #ifdef __cplusplus
                   2383: extern "C"
                   2384: #endif
                   2385: /* We use char because int might match the return type of a gcc2
                   2386:     builtin and then its argument prototype would still apply.  */
                   2387: char gethostbyname();
                   2388: 
                   2389: int main() {
                   2390: gethostbyname()
                   2391: ; return 0; }
                   2392: EOF
1.9     ! paf      2393: if { (eval echo configure:2394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2394:   rm -rf conftest*
                   2395:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2396: else
                   2397:   echo "configure: failed program was:" >&5
                   2398:   cat conftest.$ac_ext >&5
                   2399:   rm -rf conftest*
                   2400:   eval "ac_cv_lib_$ac_lib_var=no"
                   2401: fi
                   2402: rm -f conftest*
                   2403: LIBS="$ac_save_LIBS"
                   2404: 
                   2405: fi
                   2406: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2407:   echo "$ac_t""yes" 1>&6
                   2408:     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2409:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2410:   cat >> confdefs.h <<EOF
                   2411: #define $ac_tr_lib 1
                   2412: EOF
                   2413: 
                   2414:   LIBS="-lnsl $LIBS"
                   2415: 
                   2416: else
                   2417:   echo "$ac_t""no" 1>&6
                   2418: fi
                   2419: 
                   2420:       echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.9     ! paf      2421: echo "configure:2422: checking for socket in -lsocket" >&5
1.1       paf      2422: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
                   2423: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2424:   echo $ac_n "(cached) $ac_c" 1>&6
                   2425: else
                   2426:   ac_save_LIBS="$LIBS"
                   2427: LIBS="-lsocket  $LIBS"
                   2428: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2429: #line 2430 "configure"
1.1       paf      2430: #include "confdefs.h"
                   2431: /* Override any gcc2 internal prototype to avoid an error.  */
                   2432: #ifdef __cplusplus
                   2433: extern "C"
                   2434: #endif
                   2435: /* We use char because int might match the return type of a gcc2
                   2436:     builtin and then its argument prototype would still apply.  */
                   2437: char socket();
                   2438: 
                   2439: int main() {
                   2440: socket()
                   2441: ; return 0; }
                   2442: EOF
1.9     ! paf      2443: if { (eval echo configure:2444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2444:   rm -rf conftest*
                   2445:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2446: else
                   2447:   echo "configure: failed program was:" >&5
                   2448:   cat conftest.$ac_ext >&5
                   2449:   rm -rf conftest*
                   2450:   eval "ac_cv_lib_$ac_lib_var=no"
                   2451: fi
                   2452: rm -f conftest*
                   2453: LIBS="$ac_save_LIBS"
                   2454: 
                   2455: fi
                   2456: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2457:   echo "$ac_t""yes" 1>&6
                   2458:     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2459:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2460:   cat >> confdefs.h <<EOF
                   2461: #define $ac_tr_lib 1
                   2462: EOF
                   2463: 
                   2464:   LIBS="-lsocket $LIBS"
                   2465: 
                   2466: else
                   2467:   echo "$ac_t""no" 1>&6
                   2468: fi
                   2469: 
                   2470:   ;;
                   2471:   *-cygwin*)
                   2472:       cat >> confdefs.h <<\EOF
                   2473: #define WIN32 
                   2474: EOF
                   2475: 
                   2476:       echo $ac_n "checking for socket in -lwsock32""... $ac_c" 1>&6
1.9     ! paf      2477: echo "configure:2478: checking for socket in -lwsock32" >&5
1.1       paf      2478: ac_lib_var=`echo wsock32'_'socket | sed 'y%./+-%__p_%'`
                   2479: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2480:   echo $ac_n "(cached) $ac_c" 1>&6
                   2481: else
                   2482:   ac_save_LIBS="$LIBS"
                   2483: LIBS="-lwsock32  $LIBS"
                   2484: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2485: #line 2486 "configure"
1.1       paf      2486: #include "confdefs.h"
                   2487: /* Override any gcc2 internal prototype to avoid an error.  */
                   2488: #ifdef __cplusplus
                   2489: extern "C"
                   2490: #endif
                   2491: /* We use char because int might match the return type of a gcc2
                   2492:     builtin and then its argument prototype would still apply.  */
                   2493: char socket();
                   2494: 
                   2495: int main() {
                   2496: socket()
                   2497: ; return 0; }
                   2498: EOF
1.9     ! paf      2499: if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2500:   rm -rf conftest*
                   2501:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2502: else
                   2503:   echo "configure: failed program was:" >&5
                   2504:   cat conftest.$ac_ext >&5
                   2505:   rm -rf conftest*
                   2506:   eval "ac_cv_lib_$ac_lib_var=no"
                   2507: fi
                   2508: rm -f conftest*
                   2509: LIBS="$ac_save_LIBS"
                   2510: 
                   2511: fi
                   2512: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2513:   echo "$ac_t""yes" 1>&6
                   2514:     ac_tr_lib=HAVE_LIB`echo wsock32 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2515:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2516:   cat >> confdefs.h <<EOF
                   2517: #define $ac_tr_lib 1
                   2518: EOF
                   2519: 
                   2520:   LIBS="-lwsock32 $LIBS"
                   2521: 
                   2522: else
                   2523:   echo "$ac_t""no" 1>&6
                   2524: fi
                   2525: 
                   2526:   ;;
                   2527: esac
                   2528: 
                   2529: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1.9     ! paf      2530: echo "configure:2531: checking for sin in -lm" >&5
1.1       paf      2531: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
                   2532: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   2533:   echo $ac_n "(cached) $ac_c" 1>&6
                   2534: else
                   2535:   ac_save_LIBS="$LIBS"
                   2536: LIBS="-lm  $LIBS"
                   2537: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2538: #line 2539 "configure"
1.1       paf      2539: #include "confdefs.h"
                   2540: /* Override any gcc2 internal prototype to avoid an error.  */
                   2541: #ifdef __cplusplus
                   2542: extern "C"
                   2543: #endif
                   2544: /* We use char because int might match the return type of a gcc2
                   2545:     builtin and then its argument prototype would still apply.  */
                   2546: char sin();
                   2547: 
                   2548: int main() {
                   2549: sin()
                   2550: ; return 0; }
                   2551: EOF
1.9     ! paf      2552: if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2553:   rm -rf conftest*
                   2554:   eval "ac_cv_lib_$ac_lib_var=yes"
                   2555: else
                   2556:   echo "configure: failed program was:" >&5
                   2557:   cat conftest.$ac_ext >&5
                   2558:   rm -rf conftest*
                   2559:   eval "ac_cv_lib_$ac_lib_var=no"
                   2560: fi
                   2561: rm -f conftest*
                   2562: LIBS="$ac_save_LIBS"
                   2563: 
                   2564: fi
                   2565: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   2566:   echo "$ac_t""yes" 1>&6
                   2567:     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   2568:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   2569:   cat >> confdefs.h <<EOF
                   2570: #define $ac_tr_lib 1
                   2571: EOF
                   2572: 
                   2573:   LIBS="-lm $LIBS"
                   2574: 
                   2575: else
                   2576:   echo "$ac_t""no" 1>&6
                   2577: fi
                   2578: 
                   2579: 
                   2580: 
                   2581: for ac_func in trunc \
                   2582: round \
                   2583: sign \
                   2584: flock \
                   2585: _locking \
1.5       paf      2586: fcntl \
1.3       paf      2587: lockf \
                   2588: getrusage
1.1       paf      2589: 
                   2590: do
                   2591: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.9     ! paf      2592: echo "configure:2593: checking for $ac_func" >&5
1.1       paf      2593: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   2594:   echo $ac_n "(cached) $ac_c" 1>&6
                   2595: else
                   2596:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      2597: #line 2598 "configure"
1.1       paf      2598: #include "confdefs.h"
                   2599: /* System header to define __stub macros and hopefully few prototypes,
                   2600:     which can conflict with char $ac_func(); below.  */
                   2601: #include <assert.h>
                   2602: /* Override any gcc2 internal prototype to avoid an error.  */
                   2603: #ifdef __cplusplus
                   2604: extern "C"
                   2605: #endif
                   2606: /* We use char because int might match the return type of a gcc2
                   2607:     builtin and then its argument prototype would still apply.  */
                   2608: char $ac_func();
                   2609: 
                   2610: int main() {
                   2611: 
                   2612: /* The GNU C library defines this for functions which it implements
                   2613:     to always fail with ENOSYS.  Some functions are actually named
                   2614:     something starting with __ and the normal name is an alias.  */
                   2615: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   2616: choke me
                   2617: #else
                   2618: $ac_func();
                   2619: #endif
                   2620: 
                   2621: ; return 0; }
                   2622: EOF
1.9     ! paf      2623: if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       paf      2624:   rm -rf conftest*
                   2625:   eval "ac_cv_func_$ac_func=yes"
                   2626: else
                   2627:   echo "configure: failed program was:" >&5
                   2628:   cat conftest.$ac_ext >&5
                   2629:   rm -rf conftest*
                   2630:   eval "ac_cv_func_$ac_func=no"
                   2631: fi
                   2632: rm -f conftest*
                   2633: fi
                   2634: 
                   2635: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   2636:   echo "$ac_t""yes" 1>&6
                   2637:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   2638:   cat >> confdefs.h <<EOF
                   2639: #define $ac_tr_func 1
                   2640: EOF
                   2641:  
                   2642: else
                   2643:   echo "$ac_t""no" 1>&6
                   2644: fi
                   2645: done
                   2646: 
                   2647: 
1.3       paf      2648: 
                   2649: for ac_func in qsort
                   2650: do
                   2651: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.9     ! paf      2652: echo "configure:2653: checking for $ac_func" >&5
1.3       paf      2653: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   2654:   echo $ac_n "(cached) $ac_c" 1>&6
                   2655: else
                   2656:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      2657: #line 2658 "configure"
1.3       paf      2658: #include "confdefs.h"
                   2659: /* System header to define __stub macros and hopefully few prototypes,
                   2660:     which can conflict with char $ac_func(); below.  */
                   2661: #include <assert.h>
                   2662: /* Override any gcc2 internal prototype to avoid an error.  */
                   2663: #ifdef __cplusplus
                   2664: extern "C"
                   2665: #endif
                   2666: /* We use char because int might match the return type of a gcc2
                   2667:     builtin and then its argument prototype would still apply.  */
                   2668: char $ac_func();
                   2669: 
                   2670: int main() {
                   2671: 
                   2672: /* The GNU C library defines this for functions which it implements
                   2673:     to always fail with ENOSYS.  Some functions are actually named
                   2674:     something starting with __ and the normal name is an alias.  */
                   2675: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   2676: choke me
                   2677: #else
                   2678: $ac_func();
                   2679: #endif
                   2680: 
                   2681: ; return 0; }
                   2682: EOF
1.9     ! paf      2683: if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3       paf      2684:   rm -rf conftest*
                   2685:   eval "ac_cv_func_$ac_func=yes"
                   2686: else
                   2687:   echo "configure: failed program was:" >&5
                   2688:   cat conftest.$ac_ext >&5
                   2689:   rm -rf conftest*
                   2690:   eval "ac_cv_func_$ac_func=no"
                   2691: fi
                   2692: rm -f conftest*
                   2693: fi
                   2694: 
                   2695: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   2696:   echo "$ac_t""yes" 1>&6
                   2697:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   2698:   cat >> confdefs.h <<EOF
                   2699: #define $ac_tr_func 1
                   2700: EOF
                   2701:  
                   2702: else
                   2703:   echo "$ac_t""no" 1>&6
                   2704: { echo "configure: error: No qsort library function." 1>&2; exit 1; }
                   2705: fi
                   2706: done
                   2707: 
                   2708: for ac_func in select
                   2709: do
                   2710: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.9     ! paf      2711: echo "configure:2712: checking for $ac_func" >&5
1.3       paf      2712: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   2713:   echo $ac_n "(cached) $ac_c" 1>&6
                   2714: else
                   2715:   cat > conftest.$ac_ext <<EOF
1.9     ! paf      2716: #line 2717 "configure"
1.3       paf      2717: #include "confdefs.h"
                   2718: /* System header to define __stub macros and hopefully few prototypes,
                   2719:     which can conflict with char $ac_func(); below.  */
                   2720: #include <assert.h>
                   2721: /* Override any gcc2 internal prototype to avoid an error.  */
                   2722: #ifdef __cplusplus
                   2723: extern "C"
                   2724: #endif
                   2725: /* We use char because int might match the return type of a gcc2
                   2726:     builtin and then its argument prototype would still apply.  */
                   2727: char $ac_func();
                   2728: 
                   2729: int main() {
                   2730: 
                   2731: /* The GNU C library defines this for functions which it implements
                   2732:     to always fail with ENOSYS.  Some functions are actually named
                   2733:     something starting with __ and the normal name is an alias.  */
                   2734: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   2735: choke me
                   2736: #else
                   2737: $ac_func();
                   2738: #endif
                   2739: 
                   2740: ; return 0; }
                   2741: EOF
1.9     ! paf      2742: if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.3       paf      2743:   rm -rf conftest*
                   2744:   eval "ac_cv_func_$ac_func=yes"
                   2745: else
                   2746:   echo "configure: failed program was:" >&5
                   2747:   cat conftest.$ac_ext >&5
                   2748:   rm -rf conftest*
                   2749:   eval "ac_cv_func_$ac_func=no"
                   2750: fi
                   2751: rm -f conftest*
                   2752: fi
                   2753: 
                   2754: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   2755:   echo "$ac_t""yes" 1>&6
                   2756:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   2757:   cat >> confdefs.h <<EOF
                   2758: #define $ac_tr_func 1
                   2759: EOF
                   2760:  
                   2761: else
                   2762:   echo "$ac_t""no" 1>&6
                   2763: { echo "configure: error: No select library function." 1>&2; exit 1; }
                   2764: fi
                   2765: done
                   2766: 
                   2767: 
1.1       paf      2768: echo $ac_n "checking whether compiler supports pragma pack""... $ac_c" 1>&6
1.9     ! paf      2769: echo "configure:2770: checking whether compiler supports pragma pack" >&5
1.1       paf      2770: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2771: #line 2772 "configure"
1.1       paf      2772: #include "confdefs.h"
                   2773: 
                   2774: int main() {
                   2775: #pragma pack(1)
                   2776: struct must_be_1_byte {
                   2777:        char c;
                   2778: };
                   2779: #pragma pack()
                   2780: if(sizeof(must_be_1_byte)!=1)
                   2781:        return 1;
                   2782: 
                   2783: ; return 0; }
                   2784: EOF
1.9     ! paf      2785: if { (eval echo configure:2786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       paf      2786:   rm -rf conftest*
                   2787:   
                   2788:     echo "$ac_t""yes" 1>&6
                   2789:        cat >> confdefs.h <<\EOF
                   2790: #define HAVE_PRAGMA_PACK 
                   2791: EOF
                   2792: 
                   2793: 
                   2794: else
                   2795:   echo "configure: failed program was:" >&5
                   2796:   cat conftest.$ac_ext >&5
                   2797:   rm -rf conftest*
                   2798:   echo "$ac_t""no" 1>&6
                   2799: 
                   2800: fi
                   2801: rm -f conftest*
                   2802: 
                   2803: echo $ac_n "checking for set_new_handler""... $ac_c" 1>&6
1.9     ! paf      2804: echo "configure:2805: checking for set_new_handler" >&5
1.1       paf      2805: cat > conftest.$ac_ext <<EOF
1.9     ! paf      2806: #line 2807 "configure"
1.1       paf      2807: #include "confdefs.h"
                   2808: #ifdef HAVE_NEW
                   2809: #include <new>
                   2810: #endif
                   2811: void failed_new() {}
                   2812: 
                   2813: int main() {
                   2814: std::set_new_handler(failed_new);
                   2815: 
                   2816: ; return 0; }
                   2817: EOF
1.9     ! paf      2818: if { (eval echo configure:2819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       paf      2819:   rm -rf conftest*
                   2820:   
                   2821:     echo "$ac_t""yes" 1>&6
                   2822:        cat >> confdefs.h <<\EOF
                   2823: #define HAVE_SET_NEW_HANDLER 
                   2824: EOF
                   2825: 
                   2826: 
                   2827: else
                   2828:   echo "configure: failed program was:" >&5
                   2829:   cat conftest.$ac_ext >&5
                   2830:   rm -rf conftest*
                   2831:   echo "$ac_t""no" 1>&6
                   2832: 
                   2833: fi
                   2834: rm -f conftest*
                   2835: 
                   2836: 
                   2837: 
1.8       paf      2838: APACHE_LIBS="$LIBS $LIBADD_DL"
1.1       paf      2839: 
                   2840: 
                   2841: 
                   2842: 
                   2843: # expand apostrophed
1.4       paf      2844: e_prefix=$prefix
                   2845: test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix
                   2846: 
1.1       paf      2847: e_sysconfdir=$sysconfdir
1.4       paf      2848: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc"
1.1       paf      2849: 
                   2850: 
1.2       paf      2851: rootconfigdir=$e_sysconfdir
1.1       paf      2852: 
                   2853: 
                   2854: 
                   2855: charsetsdir=$e_sysconfdir/parser3.charsets
                   2856: 
                   2857: 
                   2858: # expand apostrophed
                   2859: e_libdir=$libdir
                   2860: if test "$e_libdir" = "\${exec_prefix}/lib"; then
                   2861: 
                   2862:     # Let make expand exec_prefix.
                   2863:     e_exec_prefix=$exec_prefix
                   2864:     test "x$e_exec_prefix" = xNONE && e_exec_prefix=$prefix
                   2865: 
                   2866:     # expand apostrophed
                   2867:     test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
                   2868: fi
                   2869: 
                   2870: sqldriversdir=$e_libdir
                   2871: 
                   2872: 
                   2873: 
                   2874: 
                   2875: 
                   2876: 
                   2877: 
                   2878: trap '' 1 2 15
                   2879: cat > confcache <<\EOF
                   2880: # This file is a shell script that caches the results of configure
                   2881: # tests run on this system so they can be shared between configure
                   2882: # scripts and configure runs.  It is not useful on other systems.
                   2883: # If it contains results you don't want to keep, you may remove or edit it.
                   2884: #
                   2885: # By default, configure uses ./config.cache as the cache file,
                   2886: # creating it if it does not exist already.  You can give configure
                   2887: # the --cache-file=FILE option to use a different cache file; that is
                   2888: # what configure does when it calls configure scripts in
                   2889: # subdirectories, so they share the cache.
                   2890: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   2891: # config.status only pays attention to the cache file if you give it the
                   2892: # --recheck option to rerun configure.
                   2893: #
                   2894: EOF
                   2895: # The following way of writing the cache mishandles newlines in values,
                   2896: # but we know of no workaround that is simple, portable, and efficient.
                   2897: # So, don't put newlines in cache variables' values.
                   2898: # Ultrix sh set writes to stderr and can't be redirected directly,
                   2899: # and sets the high bit in the cache file unless we assign to the vars.
                   2900: (set) 2>&1 |
                   2901:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   2902:   *ac_space=\ *)
                   2903:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   2904:     # turns \\\\ into \\, and sed turns \\ into \).
                   2905:     sed -n \
                   2906:       -e "s/'/'\\\\''/g" \
                   2907:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   2908:     ;;
                   2909:   *)
                   2910:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   2911:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   2912:     ;;
                   2913:   esac >> confcache
                   2914: if cmp -s $cache_file confcache; then
                   2915:   :
                   2916: else
                   2917:   if test -w $cache_file; then
                   2918:     echo "updating cache $cache_file"
                   2919:     cat confcache > $cache_file
                   2920:   else
                   2921:     echo "not updating unwritable cache $cache_file"
                   2922:   fi
                   2923: fi
                   2924: rm -f confcache
                   2925: 
                   2926: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   2927: 
                   2928: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   2929: # Let make expand exec_prefix.
                   2930: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   2931: 
                   2932: # Any assignment to VPATH causes Sun make to only execute
                   2933: # the first set of double-colon rules, so remove it if not needed.
                   2934: # If there is a colon in the path, we need to keep it.
                   2935: if test "x$srcdir" = x.; then
                   2936:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   2937: fi
                   2938: 
                   2939: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   2940: 
                   2941: DEFS=-DHAVE_CONFIG_H
                   2942: 
                   2943: # Without the "./", some shells look in PATH for config.status.
                   2944: : ${CONFIG_STATUS=./config.status}
                   2945: 
                   2946: echo creating $CONFIG_STATUS
                   2947: rm -f $CONFIG_STATUS
                   2948: cat > $CONFIG_STATUS <<EOF
                   2949: #! /bin/sh
                   2950: # Generated automatically by configure.
                   2951: # Run this file to recreate the current configuration.
                   2952: # This directory was configured as follows,
                   2953: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   2954: #
                   2955: # $0 $ac_configure_args
                   2956: #
                   2957: # Compiler output produced by configure, useful for debugging
                   2958: # configure, is in ./config.log if it exists.
                   2959: 
                   2960: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   2961: for ac_option
                   2962: do
                   2963:   case "\$ac_option" in
                   2964:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   2965:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   2966:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   2967:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   2968:     echo "$CONFIG_STATUS generated by autoconf version 2.13"
                   2969:     exit 0 ;;
                   2970:   -help | --help | --hel | --he | --h)
                   2971:     echo "\$ac_cs_usage"; exit 0 ;;
                   2972:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   2973:   esac
                   2974: done
                   2975: 
                   2976: ac_given_srcdir=$srcdir
                   2977: ac_given_INSTALL="$INSTALL"
                   2978: 
1.6       paf      2979: trap 'rm -fr `echo "Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/patches/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/parser3.charsets/Makefile etc/parser3.conf etc/Makefile src/include/pa_config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1       paf      2980: EOF
                   2981: cat >> $CONFIG_STATUS <<EOF
                   2982: 
                   2983: # Protect against being on the right side of a sed subst in config.status.
                   2984: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   2985:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   2986: $ac_vpsub
                   2987: $extrasub
                   2988: s%@SHELL@%$SHELL%g
                   2989: s%@CFLAGS@%$CFLAGS%g
                   2990: s%@CPPFLAGS@%$CPPFLAGS%g
                   2991: s%@CXXFLAGS@%$CXXFLAGS%g
                   2992: s%@FFLAGS@%$FFLAGS%g
                   2993: s%@DEFS@%$DEFS%g
                   2994: s%@LDFLAGS@%$LDFLAGS%g
                   2995: s%@LIBS@%$LIBS%g
                   2996: s%@exec_prefix@%$exec_prefix%g
                   2997: s%@prefix@%$prefix%g
                   2998: s%@program_transform_name@%$program_transform_name%g
                   2999: s%@bindir@%$bindir%g
                   3000: s%@sbindir@%$sbindir%g
                   3001: s%@libexecdir@%$libexecdir%g
                   3002: s%@datadir@%$datadir%g
                   3003: s%@sysconfdir@%$sysconfdir%g
                   3004: s%@sharedstatedir@%$sharedstatedir%g
                   3005: s%@localstatedir@%$localstatedir%g
                   3006: s%@libdir@%$libdir%g
                   3007: s%@includedir@%$includedir%g
                   3008: s%@oldincludedir@%$oldincludedir%g
                   3009: s%@infodir@%$infodir%g
                   3010: s%@mandir@%$mandir%g
                   3011: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
                   3012: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
                   3013: s%@INSTALL_DATA@%$INSTALL_DATA%g
                   3014: s%@PACKAGE@%$PACKAGE%g
                   3015: s%@VERSION@%$VERSION%g
                   3016: s%@ACLOCAL@%$ACLOCAL%g
                   3017: s%@AUTOCONF@%$AUTOCONF%g
                   3018: s%@AUTOMAKE@%$AUTOMAKE%g
                   3019: s%@AUTOHEADER@%$AUTOHEADER%g
                   3020: s%@MAKEINFO@%$MAKEINFO%g
                   3021: s%@SET_MAKE@%$SET_MAKE%g
                   3022: s%@P3S@%$P3S%g
                   3023: s%@CC@%$CC%g
                   3024: s%@CXX@%$CXX%g
                   3025: s%@APACHE13@%$APACHE13%g
                   3026: s%@COMPILE_APACHE13_MODULE_TRUE@%$COMPILE_APACHE13_MODULE_TRUE%g
                   3027: s%@COMPILE_APACHE13_MODULE_FALSE@%$COMPILE_APACHE13_MODULE_FALSE%g
                   3028: s%@XML_INCLUDES@%$XML_INCLUDES%g
                   3029: s%@XML_LIBS@%$XML_LIBS%g
                   3030: s%@host@%$host%g
                   3031: s%@host_alias@%$host_alias%g
                   3032: s%@host_cpu@%$host_cpu%g
                   3033: s%@host_vendor@%$host_vendor%g
                   3034: s%@host_os@%$host_os%g
                   3035: s%@RANLIB@%$RANLIB%g
                   3036: s%@AWK@%$AWK%g
                   3037: s%@YACC@%$YACC%g
                   3038: s%@INCLTDL@%$INCLTDL%g
                   3039: s%@LIBLTDL@%$LIBLTDL%g
1.8       paf      3040: s%@subdirs@%$subdirs%g
1.1       paf      3041: s%@LIBADD_DL@%$LIBADD_DL%g
                   3042: s%@CXXCPP@%$CXXCPP%g
                   3043: s%@APACHE_LIBS@%$APACHE_LIBS%g
1.2       paf      3044: s%@rootconfigdir@%$rootconfigdir%g
1.1       paf      3045: s%@charsetsdir@%$charsetsdir%g
                   3046: s%@sqldriversdir@%$sqldriversdir%g
                   3047: 
                   3048: CEOF
                   3049: EOF
                   3050: 
                   3051: cat >> $CONFIG_STATUS <<\EOF
                   3052: 
                   3053: # Split the substitutions into bite-sized pieces for seds with
                   3054: # small command number limits, like on Digital OSF/1 and HP-UX.
                   3055: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   3056: ac_file=1 # Number of current file.
                   3057: ac_beg=1 # First line for current file.
                   3058: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   3059: ac_more_lines=:
                   3060: ac_sed_cmds=""
                   3061: while $ac_more_lines; do
                   3062:   if test $ac_beg -gt 1; then
                   3063:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   3064:   else
                   3065:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   3066:   fi
                   3067:   if test ! -s conftest.s$ac_file; then
                   3068:     ac_more_lines=false
                   3069:     rm -f conftest.s$ac_file
                   3070:   else
                   3071:     if test -z "$ac_sed_cmds"; then
                   3072:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   3073:     else
                   3074:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   3075:     fi
                   3076:     ac_file=`expr $ac_file + 1`
                   3077:     ac_beg=$ac_end
                   3078:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   3079:   fi
                   3080: done
                   3081: if test -z "$ac_sed_cmds"; then
                   3082:   ac_sed_cmds=cat
                   3083: fi
                   3084: EOF
                   3085: 
                   3086: cat >> $CONFIG_STATUS <<EOF
                   3087: 
1.6       paf      3088: CONFIG_FILES=\${CONFIG_FILES-"Makefile src/Makefile src/libltdl/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/patches/Makefile src/pcre/Makefile src/targets/Makefile src/targets/cgi/pa_config_paths.h src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/parser3.charsets/Makefile etc/parser3.conf etc/Makefile"}
1.1       paf      3089: EOF
                   3090: cat >> $CONFIG_STATUS <<\EOF
                   3091: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   3092:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   3093:   case "$ac_file" in
                   3094:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   3095:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   3096:   *) ac_file_in="${ac_file}.in" ;;
                   3097:   esac
                   3098: 
                   3099:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
                   3100: 
                   3101:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   3102:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   3103:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   3104:     # The file is in a subdirectory.
                   3105:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   3106:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   3107:     # A "../" for each directory in $ac_dir_suffix.
                   3108:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   3109:   else
                   3110:     ac_dir_suffix= ac_dots=
                   3111:   fi
                   3112: 
                   3113:   case "$ac_given_srcdir" in
                   3114:   .)  srcdir=.
                   3115:       if test -z "$ac_dots"; then top_srcdir=.
                   3116:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   3117:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   3118:   *) # Relative path.
                   3119:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   3120:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   3121:   esac
                   3122: 
                   3123:   case "$ac_given_INSTALL" in
                   3124:   [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   3125:   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   3126:   esac
                   3127: 
                   3128:   echo creating "$ac_file"
                   3129:   rm -f "$ac_file"
                   3130:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   3131:   case "$ac_file" in
                   3132:   *Makefile*) ac_comsub="1i\\
                   3133: # $configure_input" ;;
                   3134:   *) ac_comsub= ;;
                   3135:   esac
                   3136: 
                   3137:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   3138:   sed -e "$ac_comsub
                   3139: s%@configure_input@%$configure_input%g
                   3140: s%@srcdir@%$srcdir%g
                   3141: s%@top_srcdir@%$top_srcdir%g
                   3142: s%@INSTALL@%$INSTALL%g
                   3143: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
                   3144: fi; done
                   3145: rm -f conftest.s*
                   3146: 
                   3147: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   3148: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   3149: #
                   3150: # ac_d sets the value in "#define NAME VALUE" lines.
                   3151: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   3152: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   3153: ac_dC='\3'
                   3154: ac_dD='%g'
                   3155: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   3156: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   3157: ac_uB='\([     ]\)%\1#\2define\3'
                   3158: ac_uC=' '
                   3159: ac_uD='\4%g'
                   3160: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   3161: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   3162: ac_eB='$%\1#\2define\3'
                   3163: ac_eC=' '
                   3164: ac_eD='%g'
                   3165: 
                   3166: if test "${CONFIG_HEADERS+set}" != set; then
                   3167: EOF
                   3168: cat >> $CONFIG_STATUS <<EOF
                   3169:   CONFIG_HEADERS="src/include/pa_config_auto.h"
                   3170: EOF
                   3171: cat >> $CONFIG_STATUS <<\EOF
                   3172: fi
                   3173: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
                   3174:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   3175:   case "$ac_file" in
                   3176:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   3177:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   3178:   *) ac_file_in="${ac_file}.in" ;;
                   3179:   esac
                   3180: 
                   3181:   echo creating $ac_file
                   3182: 
                   3183:   rm -f conftest.frag conftest.in conftest.out
                   3184:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   3185:   cat $ac_file_inputs > conftest.in
                   3186: 
                   3187: EOF
                   3188: 
                   3189: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   3190: # the proper values into config.h.in to produce config.h.  And first:
                   3191: # Protect against being on the right side of a sed subst in config.status.
                   3192: # Protect against being in an unquoted here document in config.status.
                   3193: rm -f conftest.vals
                   3194: cat > conftest.hdr <<\EOF
                   3195: s/[\\&%]/\\&/g
                   3196: s%[\\$`]%\\&%g
                   3197: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   3198: s%ac_d%ac_u%gp
                   3199: s%ac_u%ac_e%gp
                   3200: EOF
                   3201: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   3202: rm -f conftest.hdr
                   3203: 
                   3204: # This sed command replaces #undef with comments.  This is necessary, for
                   3205: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   3206: # on some systems where configure will not decide to define it.
                   3207: cat >> conftest.vals <<\EOF
                   3208: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   3209: EOF
                   3210: 
                   3211: # Break up conftest.vals because some shells have a limit on
                   3212: # the size of here documents, and old seds have small limits too.
                   3213: 
                   3214: rm -f conftest.tail
                   3215: while :
                   3216: do
                   3217:   ac_lines=`grep -c . conftest.vals`
                   3218:   # grep -c gives empty output for an empty file on some AIX systems.
                   3219:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   3220:   # Write a limited-size here document to conftest.frag.
                   3221:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   3222:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   3223:   echo 'CEOF
                   3224:   sed -f conftest.frag conftest.in > conftest.out
                   3225:   rm -f conftest.in
                   3226:   mv conftest.out conftest.in
                   3227: ' >> $CONFIG_STATUS
                   3228:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   3229:   rm -f conftest.vals
                   3230:   mv conftest.tail conftest.vals
                   3231: done
                   3232: rm -f conftest.vals
                   3233: 
                   3234: cat >> $CONFIG_STATUS <<\EOF
                   3235:   rm -f conftest.frag conftest.h
                   3236:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   3237:   cat conftest.in >> conftest.h
                   3238:   rm -f conftest.in
                   3239:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   3240:     echo "$ac_file is unchanged"
                   3241:     rm -f conftest.h
                   3242:   else
                   3243:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   3244:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   3245:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   3246:       # The file is in a subdirectory.
                   3247:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   3248:     fi
                   3249:     rm -f $ac_file
                   3250:     mv conftest.h $ac_file
                   3251:   fi
                   3252: fi; done
                   3253: 
                   3254: EOF
                   3255: cat >> $CONFIG_STATUS <<EOF
                   3256: 
                   3257: 
                   3258: EOF
                   3259: cat >> $CONFIG_STATUS <<\EOF
                   3260: test -z "$CONFIG_HEADERS" || echo timestamp > src/include/stamp-h
                   3261: 
                   3262: exit 0
                   3263: EOF
                   3264: chmod +x $CONFIG_STATUS
                   3265: rm -fr confdefs* $ac_clean_files
                   3266: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   3267: 
                   3268: if test "$no_recursion" != yes; then
                   3269: 
                   3270:   # Remove --cache-file and --srcdir arguments so they do not pile up.
                   3271:   ac_sub_configure_args=
                   3272:   ac_prev=
                   3273:   for ac_arg in $ac_configure_args; do
                   3274:     if test -n "$ac_prev"; then
                   3275:       ac_prev=
                   3276:       continue
                   3277:     fi
                   3278:     case "$ac_arg" in
                   3279:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   3280:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   3281:       ac_prev=cache_file ;;
                   3282:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   3283:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                   3284:       ;;
                   3285:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   3286:       ac_prev=srcdir ;;
                   3287:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   3288:       ;;
                   3289:     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
                   3290:     esac
                   3291:   done
                   3292: 
                   3293:   for ac_config_dir in src/libltdl; do
                   3294: 
                   3295:     # Do not complain, so a configure script can configure whichever
                   3296:     # parts of a large source tree are present.
                   3297:     if test ! -d $srcdir/$ac_config_dir; then
                   3298:       continue
                   3299:     fi
                   3300: 
                   3301:     echo configuring in $ac_config_dir
                   3302: 
                   3303:     case "$srcdir" in
                   3304:     .) ;;
                   3305:     *)
                   3306:       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
                   3307:       else
                   3308:         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
                   3309:       fi
                   3310:       ;;
                   3311:     esac
                   3312: 
                   3313:     ac_popdir=`pwd`
                   3314:     cd $ac_config_dir
                   3315: 
                   3316:       # A "../" for each directory in /$ac_config_dir.
                   3317:       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
                   3318: 
                   3319:     case "$srcdir" in
                   3320:     .) # No --srcdir option.  We are building in place.
                   3321:       ac_sub_srcdir=$srcdir ;;
                   3322:     /*) # Absolute path.
                   3323:       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
                   3324:     *) # Relative path.
                   3325:       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
                   3326:     esac
                   3327: 
                   3328:     # Check for guested configure; otherwise get Cygnus style configure.
                   3329:     if test -f $ac_sub_srcdir/configure; then
                   3330:       ac_sub_configure=$ac_sub_srcdir/configure
                   3331:     elif test -f $ac_sub_srcdir/configure.in; then
                   3332:       ac_sub_configure=$ac_configure
                   3333:     else
                   3334:       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
                   3335:       ac_sub_configure=
                   3336:     fi
                   3337: 
                   3338:     # The recursion is here.
                   3339:     if test -n "$ac_sub_configure"; then
                   3340: 
                   3341:       # Make the cache file name correct relative to the subdirectory.
                   3342:       case "$cache_file" in
                   3343:       /*) ac_sub_cache_file=$cache_file ;;
                   3344:       *) # Relative path.
                   3345:         ac_sub_cache_file="$ac_dots$cache_file" ;;
                   3346:       esac
                   3347:   case "$ac_given_INSTALL" in
                   3348:         [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   3349:         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   3350:         esac
                   3351: 
                   3352:       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
                   3353:       # The eval makes quoting arguments work.
                   3354:       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
                   3355:       then :
                   3356:       else
                   3357:         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
                   3358:       fi
                   3359:     fi
                   3360: 
                   3361:     cd $ac_popdir
                   3362:   done
                   3363: fi
                   3364: 

E-mail: