Annotation of parser3/configure, revision 1.34

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

E-mail: