Annotation of sql/mysql/configure, revision 1.5

1.1       parser      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.4       paf        15:   --with-mysql-inc[=DIR]      DIR is the MySQL includes directory"
1.1       parser     16: ac_help="$ac_help
                     17:   --enable-shared[=PKGS]  build shared libraries [default=yes]"
                     18: ac_help="$ac_help
                     19:   --enable-static[=PKGS]  build static libraries [default=yes]"
                     20: ac_help="$ac_help
                     21:   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
                     22: ac_help="$ac_help
                     23:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
                     24: ac_help="$ac_help
                     25:   --disable-libtool-lock  avoid locking (might break parallel builds)"
                     26: 
                     27: # Initialize some variables set by options.
                     28: # The variables have the same names as the options, with
                     29: # dashes changed to underlines.
                     30: build=NONE
                     31: cache_file=./config.cache
                     32: exec_prefix=NONE
                     33: host=NONE
                     34: no_create=
                     35: nonopt=NONE
                     36: no_recursion=
                     37: prefix=NONE
                     38: program_prefix=NONE
                     39: program_suffix=NONE
                     40: program_transform_name=s,x,x,
                     41: silent=
                     42: site=
                     43: srcdir=
                     44: target=NONE
                     45: verbose=
                     46: x_includes=NONE
                     47: x_libraries=NONE
                     48: bindir='${exec_prefix}/bin'
                     49: sbindir='${exec_prefix}/sbin'
                     50: libexecdir='${exec_prefix}/libexec'
                     51: datadir='${prefix}/share'
                     52: sysconfdir='${prefix}/etc'
                     53: sharedstatedir='${prefix}/com'
                     54: localstatedir='${prefix}/var'
                     55: libdir='${exec_prefix}/lib'
                     56: includedir='${prefix}/include'
                     57: oldincludedir='/usr/include'
                     58: infodir='${prefix}/info'
                     59: mandir='${prefix}/man'
                     60: 
                     61: # Initialize some other variables.
                     62: subdirs=
                     63: MFLAGS= MAKEFLAGS=
                     64: SHELL=${CONFIG_SHELL-/bin/sh}
                     65: # Maximum number of lines to put in a shell here document.
                     66: ac_max_here_lines=12
                     67: 
                     68: ac_prev=
                     69: for ac_option
                     70: do
                     71: 
                     72:   # If the previous option needs an argument, assign it.
                     73:   if test -n "$ac_prev"; then
                     74:     eval "$ac_prev=\$ac_option"
                     75:     ac_prev=
                     76:     continue
                     77:   fi
                     78: 
                     79:   case "$ac_option" in
                     80:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                     81:   *) ac_optarg= ;;
                     82:   esac
                     83: 
                     84:   # Accept the important Cygnus configure options, so we can diagnose typos.
                     85: 
                     86:   case "$ac_option" in
                     87: 
                     88:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                     89:     ac_prev=bindir ;;
                     90:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                     91:     bindir="$ac_optarg" ;;
                     92: 
                     93:   -build | --build | --buil | --bui | --bu)
                     94:     ac_prev=build ;;
                     95:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                     96:     build="$ac_optarg" ;;
                     97: 
                     98:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                     99:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    100:     ac_prev=cache_file ;;
                    101:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    102:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    103:     cache_file="$ac_optarg" ;;
                    104: 
                    105:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    106:     ac_prev=datadir ;;
                    107:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    108:   | --da=*)
                    109:     datadir="$ac_optarg" ;;
                    110: 
                    111:   -disable-* | --disable-*)
                    112:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    113:     # Reject names that are not valid shell variable names.
                    114:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    115:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    116:     fi
                    117:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    118:     eval "enable_${ac_feature}=no" ;;
                    119: 
                    120:   -enable-* | --enable-*)
                    121:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    122:     # Reject names that are not valid shell variable names.
                    123:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    124:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    125:     fi
                    126:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    127:     case "$ac_option" in
                    128:       *=*) ;;
                    129:       *) ac_optarg=yes ;;
                    130:     esac
                    131:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    132: 
                    133:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    134:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    135:   | --exec | --exe | --ex)
                    136:     ac_prev=exec_prefix ;;
                    137:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    138:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    139:   | --exec=* | --exe=* | --ex=*)
                    140:     exec_prefix="$ac_optarg" ;;
                    141: 
                    142:   -gas | --gas | --ga | --g)
                    143:     # Obsolete; use --with-gas.
                    144:     with_gas=yes ;;
                    145: 
                    146:   -help | --help | --hel | --he)
                    147:     # Omit some internal or obsolete options to make the list less imposing.
                    148:     # This message is too long to be a string in the A/UX 3.1 sh.
                    149:     cat << EOF
                    150: Usage: configure [options] [host]
                    151: Options: [defaults in brackets after descriptions]
                    152: Configuration:
                    153:   --cache-file=FILE       cache test results in FILE
                    154:   --help                  print this message
                    155:   --no-create             do not create output files
                    156:   --quiet, --silent       do not print \`checking...' messages
                    157:   --version               print the version of autoconf that created configure
                    158: Directory and file names:
                    159:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    160:                           [$ac_default_prefix]
                    161:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    162:                           [same as prefix]
                    163:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    164:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    165:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    166:   --datadir=DIR           read-only architecture-independent data in DIR
                    167:                           [PREFIX/share]
                    168:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    169:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    170:                           [PREFIX/com]
                    171:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    172:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    173:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    174:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
                    175:   --infodir=DIR           info documentation in DIR [PREFIX/info]
                    176:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    177:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    178:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    179:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    180:   --program-transform-name=PROGRAM
                    181:                           run sed PROGRAM on installed program names
                    182: EOF
                    183:     cat << EOF
                    184: Host type:
                    185:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    186:   --host=HOST             configure for HOST [guessed]
                    187:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    188: Features and packages:
                    189:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    190:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    191:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    192:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    193:   --x-includes=DIR        X include files are in DIR
                    194:   --x-libraries=DIR       X library files are in DIR
                    195: EOF
                    196:     if test -n "$ac_help"; then
                    197:       echo "--enable and --with options recognized:$ac_help"
                    198:     fi
                    199:     exit 0 ;;
                    200: 
                    201:   -host | --host | --hos | --ho)
                    202:     ac_prev=host ;;
                    203:   -host=* | --host=* | --hos=* | --ho=*)
                    204:     host="$ac_optarg" ;;
                    205: 
                    206:   -includedir | --includedir | --includedi | --included | --include \
                    207:   | --includ | --inclu | --incl | --inc)
                    208:     ac_prev=includedir ;;
                    209:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    210:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    211:     includedir="$ac_optarg" ;;
                    212: 
                    213:   -infodir | --infodir | --infodi | --infod | --info | --inf)
                    214:     ac_prev=infodir ;;
                    215:   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
                    216:     infodir="$ac_optarg" ;;
                    217: 
                    218:   -libdir | --libdir | --libdi | --libd)
                    219:     ac_prev=libdir ;;
                    220:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    221:     libdir="$ac_optarg" ;;
                    222: 
                    223:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    224:   | --libexe | --libex | --libe)
                    225:     ac_prev=libexecdir ;;
                    226:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    227:   | --libexe=* | --libex=* | --libe=*)
                    228:     libexecdir="$ac_optarg" ;;
                    229: 
                    230:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    231:   | --localstate | --localstat | --localsta | --localst \
                    232:   | --locals | --local | --loca | --loc | --lo)
                    233:     ac_prev=localstatedir ;;
                    234:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    235:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    236:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    237:     localstatedir="$ac_optarg" ;;
                    238: 
                    239:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    240:     ac_prev=mandir ;;
                    241:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    242:     mandir="$ac_optarg" ;;
                    243: 
                    244:   -nfp | --nfp | --nf)
                    245:     # Obsolete; use --without-fp.
                    246:     with_fp=no ;;
                    247: 
                    248:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    249:   | --no-cr | --no-c)
                    250:     no_create=yes ;;
                    251: 
                    252:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    253:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    254:     no_recursion=yes ;;
                    255: 
                    256:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    257:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    258:   | --oldin | --oldi | --old | --ol | --o)
                    259:     ac_prev=oldincludedir ;;
                    260:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    261:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    262:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    263:     oldincludedir="$ac_optarg" ;;
                    264: 
                    265:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    266:     ac_prev=prefix ;;
                    267:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    268:     prefix="$ac_optarg" ;;
                    269: 
                    270:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    271:   | --program-pre | --program-pr | --program-p)
                    272:     ac_prev=program_prefix ;;
                    273:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    274:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    275:     program_prefix="$ac_optarg" ;;
                    276: 
                    277:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    278:   | --program-suf | --program-su | --program-s)
                    279:     ac_prev=program_suffix ;;
                    280:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    281:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    282:     program_suffix="$ac_optarg" ;;
                    283: 
                    284:   -program-transform-name | --program-transform-name \
                    285:   | --program-transform-nam | --program-transform-na \
                    286:   | --program-transform-n | --program-transform- \
                    287:   | --program-transform | --program-transfor \
                    288:   | --program-transfo | --program-transf \
                    289:   | --program-trans | --program-tran \
                    290:   | --progr-tra | --program-tr | --program-t)
                    291:     ac_prev=program_transform_name ;;
                    292:   -program-transform-name=* | --program-transform-name=* \
                    293:   | --program-transform-nam=* | --program-transform-na=* \
                    294:   | --program-transform-n=* | --program-transform-=* \
                    295:   | --program-transform=* | --program-transfor=* \
                    296:   | --program-transfo=* | --program-transf=* \
                    297:   | --program-trans=* | --program-tran=* \
                    298:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    299:     program_transform_name="$ac_optarg" ;;
                    300: 
                    301:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    302:   | -silent | --silent | --silen | --sile | --sil)
                    303:     silent=yes ;;
                    304: 
                    305:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    306:     ac_prev=sbindir ;;
                    307:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    308:   | --sbi=* | --sb=*)
                    309:     sbindir="$ac_optarg" ;;
                    310: 
                    311:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    312:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    313:   | --sharedst | --shareds | --shared | --share | --shar \
                    314:   | --sha | --sh)
                    315:     ac_prev=sharedstatedir ;;
                    316:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    317:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    318:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    319:   | --sha=* | --sh=*)
                    320:     sharedstatedir="$ac_optarg" ;;
                    321: 
                    322:   -site | --site | --sit)
                    323:     ac_prev=site ;;
                    324:   -site=* | --site=* | --sit=*)
                    325:     site="$ac_optarg" ;;
                    326: 
                    327:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    328:     ac_prev=srcdir ;;
                    329:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    330:     srcdir="$ac_optarg" ;;
                    331: 
                    332:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    333:   | --syscon | --sysco | --sysc | --sys | --sy)
                    334:     ac_prev=sysconfdir ;;
                    335:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    336:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    337:     sysconfdir="$ac_optarg" ;;
                    338: 
                    339:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    340:     ac_prev=target ;;
                    341:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    342:     target="$ac_optarg" ;;
                    343: 
                    344:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    345:     verbose=yes ;;
                    346: 
                    347:   -version | --version | --versio | --versi | --vers)
                    348:     echo "configure generated by autoconf version 2.13"
                    349:     exit 0 ;;
                    350: 
                    351:   -with-* | --with-*)
                    352:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    353:     # Reject names that are not valid shell variable names.
                    354:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    355:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    356:     fi
                    357:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    358:     case "$ac_option" in
                    359:       *=*) ;;
                    360:       *) ac_optarg=yes ;;
                    361:     esac
                    362:     eval "with_${ac_package}='$ac_optarg'" ;;
                    363: 
                    364:   -without-* | --without-*)
                    365:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    366:     # Reject names that are not valid shell variable names.
                    367:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    368:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    369:     fi
                    370:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    371:     eval "with_${ac_package}=no" ;;
                    372: 
                    373:   --x)
                    374:     # Obsolete; use --with-x.
                    375:     with_x=yes ;;
                    376: 
                    377:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    378:   | --x-incl | --x-inc | --x-in | --x-i)
                    379:     ac_prev=x_includes ;;
                    380:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    381:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    382:     x_includes="$ac_optarg" ;;
                    383: 
                    384:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    385:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    386:     ac_prev=x_libraries ;;
                    387:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    388:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    389:     x_libraries="$ac_optarg" ;;
                    390: 
                    391:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    392:     ;;
                    393: 
                    394:   *)
                    395:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    396:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    397:     fi
                    398:     if test "x$nonopt" != xNONE; then
                    399:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    400:     fi
                    401:     nonopt="$ac_option"
                    402:     ;;
                    403: 
                    404:   esac
                    405: done
                    406: 
                    407: if test -n "$ac_prev"; then
                    408:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    409: fi
                    410: 
                    411: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    412: 
                    413: # File descriptor usage:
                    414: # 0 standard input
                    415: # 1 file creation
                    416: # 2 errors and warnings
                    417: # 3 some systems may open it to /dev/tty
                    418: # 4 used on the Kubota Titan
                    419: # 6 checking for... messages and results
                    420: # 5 compiler messages saved in config.log
                    421: if test "$silent" = yes; then
                    422:   exec 6>/dev/null
                    423: else
                    424:   exec 6>&1
                    425: fi
                    426: exec 5>./config.log
                    427: 
                    428: echo "\
                    429: This file contains any messages produced by compilers while
                    430: running configure, to aid debugging if configure makes a mistake.
                    431: " 1>&5
                    432: 
                    433: # Strip out --no-create and --no-recursion so they do not pile up.
                    434: # Also quote any args containing shell metacharacters.
                    435: ac_configure_args=
                    436: for ac_arg
                    437: do
                    438:   case "$ac_arg" in
                    439:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    440:   | --no-cr | --no-c) ;;
                    441:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    442:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    443:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    444:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    445:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    446:   esac
                    447: done
                    448: 
                    449: # NLS nuisances.
                    450: # Only set these to C if already set.  These must not be set unconditionally
                    451: # because not all systems understand e.g. LANG=C (notably SCO).
                    452: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    453: # Non-C LC_CTYPE values break the ctype check.
                    454: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    455: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    456: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    457: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
                    458: 
                    459: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    460: rm -rf conftest* confdefs.h
                    461: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    462: echo > confdefs.h
                    463: 
                    464: # A filename unique to this package, relative to the directory that
                    465: # configure is in, which we can look for to find out if srcdir is correct.
                    466: ac_unique_file=parser3mysql.C
                    467: 
                    468: # Find the source files, if location was not specified.
                    469: if test -z "$srcdir"; then
                    470:   ac_srcdir_defaulted=yes
                    471:   # Try the directory containing this script, then its parent.
                    472:   ac_prog=$0
                    473:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    474:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    475:   srcdir=$ac_confdir
                    476:   if test ! -r $srcdir/$ac_unique_file; then
                    477:     srcdir=..
                    478:   fi
                    479: else
                    480:   ac_srcdir_defaulted=no
                    481: fi
                    482: if test ! -r $srcdir/$ac_unique_file; then
                    483:   if test "$ac_srcdir_defaulted" = yes; then
                    484:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    485:   else
                    486:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    487:   fi
                    488: fi
                    489: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    490: 
                    491: # Prefer explicitly selected file to automatically selected ones.
                    492: if test -z "$CONFIG_SITE"; then
                    493:   if test "x$prefix" != xNONE; then
                    494:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    495:   else
                    496:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    497:   fi
                    498: fi
                    499: for ac_site_file in $CONFIG_SITE; do
                    500:   if test -r "$ac_site_file"; then
                    501:     echo "loading site script $ac_site_file"
                    502:     . "$ac_site_file"
                    503:   fi
                    504: done
                    505: 
                    506: if test -r "$cache_file"; then
                    507:   echo "loading cache $cache_file"
                    508:   . $cache_file
                    509: else
                    510:   echo "creating cache $cache_file"
                    511:   > $cache_file
                    512: fi
                    513: 
                    514: ac_ext=c
                    515: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    516: ac_cpp='$CPP $CPPFLAGS'
                    517: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    518: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    519: cross_compiling=$ac_cv_prog_cc_cross
                    520: 
                    521: ac_exeext=
                    522: ac_objext=o
                    523: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    524:   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
                    525:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    526:     ac_n= ac_c='
                    527: ' ac_t='       '
                    528:   else
                    529:     ac_n=-n ac_c= ac_t=
                    530:   fi
                    531: else
                    532:   ac_n= ac_c='\c' ac_t=
                    533: fi
                    534: 
                    535: 
                    536: ac_aux_dir=
                    537: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
                    538:   if test -f $ac_dir/install-sh; then
                    539:     ac_aux_dir=$ac_dir
                    540:     ac_install_sh="$ac_aux_dir/install-sh -c"
                    541:     break
                    542:   elif test -f $ac_dir/install.sh; then
                    543:     ac_aux_dir=$ac_dir
                    544:     ac_install_sh="$ac_aux_dir/install.sh -c"
                    545:     break
                    546:   fi
                    547: done
                    548: if test -z "$ac_aux_dir"; then
                    549:   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
                    550: fi
                    551: ac_config_guess=$ac_aux_dir/config.guess
                    552: ac_config_sub=$ac_aux_dir/config.sub
                    553: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
                    554: 
                    555: # Find a good install program.  We prefer a C program (faster),
                    556: # so one script is as good as another.  But avoid the broken or
                    557: # incompatible versions:
                    558: # SysV /etc/install, /usr/sbin/install
                    559: # SunOS /usr/etc/install
                    560: # IRIX /sbin/install
                    561: # AIX /bin/install
                    562: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                    563: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                    564: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                    565: # ./install, which can be erroneously created by make from ./install.sh.
                    566: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
                    567: echo "configure:568: checking for a BSD compatible install" >&5
                    568: if test -z "$INSTALL"; then
                    569: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                    570:   echo $ac_n "(cached) $ac_c" 1>&6
                    571: else
                    572:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                    573:   for ac_dir in $PATH; do
                    574:     # Account for people who put trailing slashes in PATH elements.
                    575:     case "$ac_dir/" in
                    576:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                    577:     *)
                    578:       # OSF1 and SCO ODT 3.0 have their own names for install.
                    579:       # Don't use installbsd from OSF since it installs stuff as root
                    580:       # by default.
                    581:       for ac_prog in ginstall scoinst install; do
                    582:         if test -f $ac_dir/$ac_prog; then
                    583:          if test $ac_prog = install &&
                    584:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                    585:            # AIX install.  It has an incompatible calling convention.
                    586:            :
                    587:          else
                    588:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                    589:            break 2
                    590:          fi
                    591:        fi
                    592:       done
                    593:       ;;
                    594:     esac
                    595:   done
                    596:   IFS="$ac_save_IFS"
                    597: 
                    598: fi
                    599:   if test "${ac_cv_path_install+set}" = set; then
                    600:     INSTALL="$ac_cv_path_install"
                    601:   else
                    602:     # As a last resort, use the slow shell script.  We don't cache a
                    603:     # path for INSTALL within a source directory, because that will
                    604:     # break other packages using the cache if that directory is
                    605:     # removed, or if the path is relative.
                    606:     INSTALL="$ac_install_sh"
                    607:   fi
                    608: fi
                    609: echo "$ac_t""$INSTALL" 1>&6
                    610: 
                    611: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                    612: # It thinks the first close brace ends the variable substitution.
                    613: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                    614: 
                    615: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                    616: 
                    617: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                    618: 
                    619: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
                    620: echo "configure:621: checking whether build environment is sane" >&5
                    621: # Just in case
                    622: sleep 1
                    623: echo timestamp > conftestfile
                    624: # Do `set' in a subshell so we don't clobber the current shell's
                    625: # arguments.  Must try -L first in case configure is actually a
                    626: # symlink; some systems play weird games with the mod time of symlinks
                    627: # (eg FreeBSD returns the mod time of the symlink's containing
                    628: # directory).
                    629: if (
                    630:    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
                    631:    if test "$*" = "X"; then
                    632:       # -L didn't work.
                    633:       set X `ls -t $srcdir/configure conftestfile`
                    634:    fi
                    635:    if test "$*" != "X $srcdir/configure conftestfile" \
                    636:       && test "$*" != "X conftestfile $srcdir/configure"; then
                    637: 
                    638:       # If neither matched, then we have a broken ls.  This can happen
                    639:       # if, for instance, CONFIG_SHELL is bash and it inherits a
                    640:       # broken ls alias from the environment.  This has actually
                    641:       # happened.  Such a system could not be considered "sane".
                    642:       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
                    643: alias in your environment" 1>&2; exit 1; }
                    644:    fi
                    645: 
                    646:    test "$2" = conftestfile
                    647:    )
                    648: then
                    649:    # Ok.
                    650:    :
                    651: else
                    652:    { echo "configure: error: newly created file is older than distributed files!
                    653: Check your system clock" 1>&2; exit 1; }
                    654: fi
                    655: rm -f conftest*
                    656: echo "$ac_t""yes" 1>&6
                    657: if test "$program_transform_name" = s,x,x,; then
                    658:   program_transform_name=
                    659: else
                    660:   # Double any \ or $.  echo might interpret backslashes.
                    661:   cat <<\EOF_SED > conftestsed
                    662: s,\\,\\\\,g; s,\$,$$,g
                    663: EOF_SED
                    664:   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
                    665:   rm -f conftestsed
                    666: fi
                    667: test "$program_prefix" != NONE &&
                    668:   program_transform_name="s,^,${program_prefix},; $program_transform_name"
                    669: # Use a double $ so make ignores it.
                    670: test "$program_suffix" != NONE &&
                    671:   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
                    672: 
                    673: # sed with no file args requires a program.
                    674: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
                    675: 
                    676: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
                    677: echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
                    678: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
                    679: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    680:   echo $ac_n "(cached) $ac_c" 1>&6
                    681: else
                    682:   cat > conftestmake <<\EOF
                    683: all:
                    684:        @echo 'ac_maketemp="${MAKE}"'
                    685: EOF
                    686: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    687: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    688: if test -n "$ac_maketemp"; then
                    689:   eval ac_cv_prog_make_${ac_make}_set=yes
                    690: else
                    691:   eval ac_cv_prog_make_${ac_make}_set=no
                    692: fi
                    693: rm -f conftestmake
                    694: fi
                    695: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    696:   echo "$ac_t""yes" 1>&6
                    697:   SET_MAKE=
                    698: else
                    699:   echo "$ac_t""no" 1>&6
                    700:   SET_MAKE="MAKE=${MAKE-make}"
                    701: fi
                    702: 
                    703: 
                    704: PACKAGE=parser3mysqlclient
                    705: 
                    706: VERSION=3.0g
                    707: 
                    708: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
                    709:   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
                    710: fi
                    711: 
                    712: 
                    713: 
                    714: missing_dir=`cd $ac_aux_dir && pwd`
                    715: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
                    716: echo "configure:717: checking for working aclocal" >&5
                    717: # Run test in a subshell; some versions of sh will print an error if
                    718: # an executable is not found, even if stderr is redirected.
                    719: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    720: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
                    721:    ACLOCAL=aclocal
                    722:    echo "$ac_t""found" 1>&6
                    723: else
                    724:    ACLOCAL="$missing_dir/missing aclocal"
                    725:    echo "$ac_t""missing" 1>&6
                    726: fi
                    727: 
                    728: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
                    729: echo "configure:730: checking for working autoconf" >&5
                    730: # Run test in a subshell; some versions of sh will print an error if
                    731: # an executable is not found, even if stderr is redirected.
                    732: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    733: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
                    734:    AUTOCONF=autoconf
                    735:    echo "$ac_t""found" 1>&6
                    736: else
                    737:    AUTOCONF="$missing_dir/missing autoconf"
                    738:    echo "$ac_t""missing" 1>&6
                    739: fi
                    740: 
                    741: echo $ac_n "checking for working automake""... $ac_c" 1>&6
                    742: echo "configure:743: checking for working automake" >&5
                    743: # Run test in a subshell; some versions of sh will print an error if
                    744: # an executable is not found, even if stderr is redirected.
                    745: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    746: if (automake --version) < /dev/null > /dev/null 2>&1; then
                    747:    AUTOMAKE=automake
                    748:    echo "$ac_t""found" 1>&6
                    749: else
                    750:    AUTOMAKE="$missing_dir/missing automake"
                    751:    echo "$ac_t""missing" 1>&6
                    752: fi
                    753: 
                    754: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
                    755: echo "configure:756: checking for working autoheader" >&5
                    756: # Run test in a subshell; some versions of sh will print an error if
                    757: # an executable is not found, even if stderr is redirected.
                    758: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    759: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
                    760:    AUTOHEADER=autoheader
                    761:    echo "$ac_t""found" 1>&6
                    762: else
                    763:    AUTOHEADER="$missing_dir/missing autoheader"
                    764:    echo "$ac_t""missing" 1>&6
                    765: fi
                    766: 
                    767: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
                    768: echo "configure:769: checking for working makeinfo" >&5
                    769: # Run test in a subshell; some versions of sh will print an error if
                    770: # an executable is not found, even if stderr is redirected.
                    771: # Redirect stdin to placate older versions of autoconf.  Sigh.
                    772: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
                    773:    MAKEINFO=makeinfo
                    774:    echo "$ac_t""found" 1>&6
                    775: else
                    776:    MAKEINFO="$missing_dir/missing makeinfo"
                    777:    echo "$ac_t""missing" 1>&6
                    778: fi
                    779: 
                    780: 
                    781: 
                    782: 
                    783: 
                    784: 
                    785: 
                    786: 
1.4       paf       787: # Check whether --with-mysql-inc or --without-mysql-inc was given.
1.1       parser    788: if test "${with_mysql_inc+set}" = set; then
                    789:   withval="$with_mysql_inc"
                    790:   :
                    791: else
                    792:   withval="/usr/include/mysql"
                    793: 
                    794: fi
                    795: 
1.3       parser    796: 
1.1       parser    797: MYSQL_INC=$withval
                    798: 
                    799: 
1.3       parser    800: if test \! -f "$MYSQL_INC/mysql.h"; then
                    801:        { echo "configure: error: $MYSQL_INC does not seem to be valid MySQL includes directory" 1>&2; exit 1; }
                    802: fi
                    803: 
1.1       parser    804: 
                    805: # Find a good install program.  We prefer a C program (faster),
                    806: # so one script is as good as another.  But avoid the broken or
                    807: # incompatible versions:
                    808: # SysV /etc/install, /usr/sbin/install
                    809: # SunOS /usr/etc/install
                    810: # IRIX /sbin/install
                    811: # AIX /bin/install
                    812: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                    813: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                    814: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                    815: # ./install, which can be erroneously created by make from ./install.sh.
                    816: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.3       parser    817: echo "configure:818: checking for a BSD compatible install" >&5
1.1       parser    818: if test -z "$INSTALL"; then
                    819: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                    820:   echo $ac_n "(cached) $ac_c" 1>&6
                    821: else
                    822:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                    823:   for ac_dir in $PATH; do
                    824:     # Account for people who put trailing slashes in PATH elements.
                    825:     case "$ac_dir/" in
                    826:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                    827:     *)
                    828:       # OSF1 and SCO ODT 3.0 have their own names for install.
                    829:       # Don't use installbsd from OSF since it installs stuff as root
                    830:       # by default.
                    831:       for ac_prog in ginstall scoinst install; do
                    832:         if test -f $ac_dir/$ac_prog; then
                    833:          if test $ac_prog = install &&
                    834:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                    835:            # AIX install.  It has an incompatible calling convention.
                    836:            :
                    837:          else
                    838:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                    839:            break 2
                    840:          fi
                    841:        fi
                    842:       done
                    843:       ;;
                    844:     esac
                    845:   done
                    846:   IFS="$ac_save_IFS"
                    847: 
                    848: fi
                    849:   if test "${ac_cv_path_install+set}" = set; then
                    850:     INSTALL="$ac_cv_path_install"
                    851:   else
                    852:     # As a last resort, use the slow shell script.  We don't cache a
                    853:     # path for INSTALL within a source directory, because that will
                    854:     # break other packages using the cache if that directory is
                    855:     # removed, or if the path is relative.
                    856:     INSTALL="$ac_install_sh"
                    857:   fi
                    858: fi
                    859: echo "$ac_t""$INSTALL" 1>&6
                    860: 
                    861: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                    862: # It thinks the first close brace ends the variable substitution.
                    863: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                    864: 
                    865: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                    866: 
                    867: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                    868: 
                    869: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.3       parser    870: echo "configure:871: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1       parser    871: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
                    872: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
                    873:   echo $ac_n "(cached) $ac_c" 1>&6
                    874: else
                    875:   cat > conftestmake <<\EOF
                    876: all:
                    877:        @echo 'ac_maketemp="${MAKE}"'
                    878: EOF
                    879: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
                    880: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
                    881: if test -n "$ac_maketemp"; then
                    882:   eval ac_cv_prog_make_${ac_make}_set=yes
                    883: else
                    884:   eval ac_cv_prog_make_${ac_make}_set=no
                    885: fi
                    886: rm -f conftestmake
                    887: fi
                    888: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
                    889:   echo "$ac_t""yes" 1>&6
                    890:   SET_MAKE=
                    891: else
                    892:   echo "$ac_t""no" 1>&6
                    893:   SET_MAKE="MAKE=${MAKE-make}"
                    894: fi
                    895: 
1.2       parser    896: for ac_prog in gawk mawk nawk awk
1.1       parser    897: do
                    898: # Extract the first word of "$ac_prog", so it can be a program name with args.
                    899: set dummy $ac_prog; ac_word=$2
                    900: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.3       parser    901: echo "configure:902: checking for $ac_word" >&5
1.1       parser    902: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
                    903:   echo $ac_n "(cached) $ac_c" 1>&6
                    904: else
                    905:   if test -n "$AWK"; then
                    906:   ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
                    914:       break
                    915:     fi
                    916:   done
                    917:   IFS="$ac_save_ifs"
                    918: fi
                    919: fi
                    920: AWK="$ac_cv_prog_AWK"
                    921: if test -n "$AWK"; then
                    922:   echo "$ac_t""$AWK" 1>&6
                    923: else
                    924:   echo "$ac_t""no" 1>&6
                    925: fi
                    926: 
                    927: test -n "$AWK" && break
                    928: done
                    929: 
                    930: 
                    931: ac_ext=C
                    932: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    933: ac_cpp='$CXXCPP $CPPFLAGS'
                    934: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    935: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    936: cross_compiling=$ac_cv_prog_cxx_cross
                    937:  
                    938: for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
                    939: do
                    940: # Extract the first word of "$ac_prog", so it can be a program name with args.
                    941: set dummy $ac_prog; ac_word=$2
                    942: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.3       parser    943: echo "configure:944: checking for $ac_word" >&5
1.1       parser    944: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
                    945:   echo $ac_n "(cached) $ac_c" 1>&6
                    946: else
                    947:   if test -n "$CXX"; then
                    948:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
                    949: else
                    950:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                    951:   ac_dummy="$PATH"
                    952:   for ac_dir in $ac_dummy; do
                    953:     test -z "$ac_dir" && ac_dir=.
                    954:     if test -f $ac_dir/$ac_word; then
                    955:       ac_cv_prog_CXX="$ac_prog"
                    956:       break
                    957:     fi
                    958:   done
                    959:   IFS="$ac_save_ifs"
                    960: fi
                    961: fi
                    962: CXX="$ac_cv_prog_CXX"
                    963: if test -n "$CXX"; then
                    964:   echo "$ac_t""$CXX" 1>&6
                    965: else
                    966:   echo "$ac_t""no" 1>&6
                    967: fi
                    968: 
                    969: test -n "$CXX" && break
                    970: done
                    971: test -n "$CXX" || CXX="gcc"
                    972: 
                    973: 
                    974: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.3       parser    975: echo "configure:976: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1       parser    976: 
                    977: ac_ext=C
                    978: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    979: ac_cpp='$CXXCPP $CPPFLAGS'
                    980: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    981: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    982: cross_compiling=$ac_cv_prog_cxx_cross
                    983: 
                    984: cat > conftest.$ac_ext << EOF
                    985: 
1.3       parser    986: #line 987 "configure"
1.1       parser    987: #include "confdefs.h"
                    988: 
                    989: int main(){return(0);}
                    990: EOF
1.3       parser    991: if { (eval echo configure:992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       parser    992:   ac_cv_prog_cxx_works=yes
                    993:   # If we can't run a trivial program, we are probably using a cross compiler.
                    994:   if (./conftest; exit) 2>/dev/null; then
                    995:     ac_cv_prog_cxx_cross=no
                    996:   else
                    997:     ac_cv_prog_cxx_cross=yes
                    998:   fi
                    999: else
                   1000:   echo "configure: failed program was:" >&5
                   1001:   cat conftest.$ac_ext >&5
                   1002:   ac_cv_prog_cxx_works=no
                   1003: fi
                   1004: rm -fr conftest*
                   1005: ac_ext=C
                   1006: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1007: ac_cpp='$CXXCPP $CPPFLAGS'
                   1008: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1009: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1010: cross_compiling=$ac_cv_prog_cxx_cross
                   1011: 
                   1012: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
                   1013: if test $ac_cv_prog_cxx_works = no; then
                   1014:   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
                   1015: fi
                   1016: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.3       parser   1017: echo "configure:1018: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       parser   1018: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
                   1019: cross_compiling=$ac_cv_prog_cxx_cross
                   1020: 
                   1021: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.3       parser   1022: echo "configure:1023: checking whether we are using GNU C++" >&5
1.1       parser   1023: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
                   1024:   echo $ac_n "(cached) $ac_c" 1>&6
                   1025: else
                   1026:   cat > conftest.C <<EOF
                   1027: #ifdef __GNUC__
                   1028:   yes;
                   1029: #endif
                   1030: EOF
1.3       parser   1031: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       parser   1032:   ac_cv_prog_gxx=yes
                   1033: else
                   1034:   ac_cv_prog_gxx=no
                   1035: fi
                   1036: fi
                   1037: 
                   1038: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
                   1039: 
                   1040: if test $ac_cv_prog_gxx = yes; then
                   1041:   GXX=yes
                   1042: else
                   1043:   GXX=
                   1044: fi
                   1045: 
                   1046: ac_test_CXXFLAGS="${CXXFLAGS+set}"
                   1047: ac_save_CXXFLAGS="$CXXFLAGS"
                   1048: CXXFLAGS=
                   1049: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.3       parser   1050: echo "configure:1051: checking whether ${CXX-g++} accepts -g" >&5
1.1       parser   1051: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
                   1052:   echo $ac_n "(cached) $ac_c" 1>&6
                   1053: else
                   1054:   echo 'void f(){}' > conftest.cc
                   1055: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
                   1056:   ac_cv_prog_cxx_g=yes
                   1057: else
                   1058:   ac_cv_prog_cxx_g=no
                   1059: fi
                   1060: rm -f conftest*
                   1061: 
                   1062: fi
                   1063: 
                   1064: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
                   1065: if test "$ac_test_CXXFLAGS" = set; then
                   1066:   CXXFLAGS="$ac_save_CXXFLAGS"
                   1067: elif test $ac_cv_prog_cxx_g = yes; then
                   1068:   if test "$GXX" = yes; then
                   1069:     CXXFLAGS="-g -O2"
                   1070:   else
                   1071:     CXXFLAGS="-g"
                   1072:   fi
                   1073: else
                   1074:   if test "$GXX" = yes; then
                   1075:     CXXFLAGS="-O2"
                   1076:   else
                   1077:     CXXFLAGS=
                   1078:   fi
                   1079: fi
                   1080: 
                   1081: 
1.4       paf      1082: 
                   1083: 
                   1084: if test "z$GXX" = "zyes"; then
1.5     ! paf      1085:                        
1.4       paf      1086:     echo $ac_n "checking whether gcc accepts -fno-rtti""... $ac_c" 1>&6
                   1087: echo "configure:1088: checking whether gcc accepts -fno-rtti" >&5
                   1088:     save_CXXFLAGS=$CXXFLAGS
                   1089:     CXXFLAGS="$save_CXXFLAGS -fno-rtti"
                   1090:     cat > conftest.$ac_ext <<EOF
                   1091: #line 1092 "configure"
                   1092: #include "confdefs.h"
                   1093: 
                   1094: int main() {
                   1095: 
                   1096: ; return 0; }
                   1097: EOF
                   1098: if { (eval echo configure:1099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
                   1099:   rm -rf conftest*
                   1100:   echo "$ac_t""yes" 1>&6
                   1101:             
                   1102: else
                   1103:   echo "configure: failed program was:" >&5
                   1104:   cat conftest.$ac_ext >&5
                   1105:   rm -rf conftest*
                   1106:   echo "$ac_t""no" 1>&6
                   1107:         CXXFLAGS=$save_CXXFLAGS
                   1108:     
                   1109: fi
                   1110: rm -f conftest*
                   1111: 
                   1112: fi
                   1113: 
1.1       parser   1114:   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
                   1115:   INCLTDL='-I${top_srcdir}/''libltdl'
                   1116: 
                   1117: 
                   1118: 
                   1119: 
                   1120: 
                   1121: # Check whether --enable-shared or --disable-shared was given.
                   1122: if test "${enable_shared+set}" = set; then
                   1123:   enableval="$enable_shared"
                   1124:   p=${PACKAGE-default}
                   1125: case "$enableval" in
                   1126: yes) enable_shared=yes ;;
                   1127: no) enable_shared=no ;;
                   1128: *)
                   1129:   enable_shared=no
                   1130:   # Look at the argument we got.  We use all the common list separators.
                   1131:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                   1132:   for pkg in $enableval; do
                   1133:     if test "X$pkg" = "X$p"; then
                   1134:       enable_shared=yes
                   1135:     fi
                   1136:   done
                   1137:   IFS="$ac_save_ifs"
                   1138:   ;;
                   1139: esac
                   1140: else
                   1141:   enable_shared=yes
                   1142: fi
                   1143: 
                   1144: # Check whether --enable-static or --disable-static was given.
                   1145: if test "${enable_static+set}" = set; then
                   1146:   enableval="$enable_static"
                   1147:   p=${PACKAGE-default}
                   1148: case "$enableval" in
                   1149: yes) enable_static=yes ;;
                   1150: no) enable_static=no ;;
                   1151: *)
                   1152:   enable_static=no
                   1153:   # Look at the argument we got.  We use all the common list separators.
                   1154:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                   1155:   for pkg in $enableval; do
                   1156:     if test "X$pkg" = "X$p"; then
                   1157:       enable_static=yes
                   1158:     fi
                   1159:   done
                   1160:   IFS="$ac_save_ifs"
                   1161:   ;;
                   1162: esac
                   1163: else
                   1164:   enable_static=yes
                   1165: fi
                   1166: 
                   1167: # Check whether --enable-fast-install or --disable-fast-install was given.
                   1168: if test "${enable_fast_install+set}" = set; then
                   1169:   enableval="$enable_fast_install"
                   1170:   p=${PACKAGE-default}
                   1171: case "$enableval" in
                   1172: yes) enable_fast_install=yes ;;
                   1173: no) enable_fast_install=no ;;
                   1174: *)
                   1175:   enable_fast_install=no
                   1176:   # Look at the argument we got.  We use all the common list separators.
                   1177:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
                   1178:   for pkg in $enableval; do
                   1179:     if test "X$pkg" = "X$p"; then
                   1180:       enable_fast_install=yes
                   1181:     fi
                   1182:   done
                   1183:   IFS="$ac_save_ifs"
                   1184:   ;;
                   1185: esac
                   1186: else
                   1187:   enable_fast_install=yes
                   1188: fi
                   1189: 
                   1190: 
                   1191: # Make sure we can run config.sub.
                   1192: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
                   1193: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
                   1194: fi
                   1195: 
                   1196: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.4       paf      1197: echo "configure:1198: checking host system type" >&5
1.1       parser   1198: 
                   1199: host_alias=$host
                   1200: case "$host_alias" in
                   1201: NONE)
                   1202:   case $nonopt in
                   1203:   NONE)
                   1204:     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
                   1205:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
                   1206:     fi ;;
                   1207:   *) host_alias=$nonopt ;;
                   1208:   esac ;;
                   1209: esac
                   1210: 
                   1211: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
                   1212: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   1213: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   1214: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   1215: echo "$ac_t""$host" 1>&6
                   1216: 
                   1217: echo $ac_n "checking build system type""... $ac_c" 1>&6
1.4       paf      1218: echo "configure:1219: checking build system type" >&5
1.1       parser   1219: 
                   1220: build_alias=$build
                   1221: case "$build_alias" in
                   1222: NONE)
                   1223:   case $nonopt in
                   1224:   NONE) build_alias=$host_alias ;;
                   1225:   *) build_alias=$nonopt ;;
                   1226:   esac ;;
                   1227: esac
                   1228: 
                   1229: build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
                   1230: build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                   1231: build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                   1232: build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                   1233: echo "$ac_t""$build" 1>&6
                   1234: 
                   1235: # Extract the first word of "ranlib", so it can be a program name with args.
                   1236: set dummy ranlib; ac_word=$2
                   1237: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.4       paf      1238: echo "configure:1239: checking for $ac_word" >&5
1.1       parser   1239: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
                   1240:   echo $ac_n "(cached) $ac_c" 1>&6
                   1241: else
                   1242:   if test -n "$RANLIB"; then
                   1243:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   1244: else
                   1245:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1246:   ac_dummy="$PATH"
                   1247:   for ac_dir in $ac_dummy; do
                   1248:     test -z "$ac_dir" && ac_dir=.
                   1249:     if test -f $ac_dir/$ac_word; then
                   1250:       ac_cv_prog_RANLIB="ranlib"
                   1251:       break
                   1252:     fi
                   1253:   done
                   1254:   IFS="$ac_save_ifs"
                   1255:   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
                   1256: fi
                   1257: fi
                   1258: RANLIB="$ac_cv_prog_RANLIB"
                   1259: if test -n "$RANLIB"; then
                   1260:   echo "$ac_t""$RANLIB" 1>&6
                   1261: else
                   1262:   echo "$ac_t""no" 1>&6
                   1263: fi
                   1264: 
                   1265: # Extract the first word of "gcc", so it can be a program name with args.
                   1266: set dummy gcc; ac_word=$2
                   1267: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.4       paf      1268: echo "configure:1269: checking for $ac_word" >&5
1.1       parser   1269: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1270:   echo $ac_n "(cached) $ac_c" 1>&6
                   1271: else
                   1272:   if test -n "$CC"; then
                   1273:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1274: else
                   1275:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1276:   ac_dummy="$PATH"
                   1277:   for ac_dir in $ac_dummy; do
                   1278:     test -z "$ac_dir" && ac_dir=.
                   1279:     if test -f $ac_dir/$ac_word; then
                   1280:       ac_cv_prog_CC="gcc"
                   1281:       break
                   1282:     fi
                   1283:   done
                   1284:   IFS="$ac_save_ifs"
                   1285: fi
                   1286: fi
                   1287: CC="$ac_cv_prog_CC"
                   1288: if test -n "$CC"; then
                   1289:   echo "$ac_t""$CC" 1>&6
                   1290: else
                   1291:   echo "$ac_t""no" 1>&6
                   1292: fi
                   1293: 
                   1294: if test -z "$CC"; then
                   1295:   # Extract the first word of "cc", so it can be a program name with args.
                   1296: set dummy cc; ac_word=$2
                   1297: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.4       paf      1298: echo "configure:1299: checking for $ac_word" >&5
1.1       parser   1299: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1300:   echo $ac_n "(cached) $ac_c" 1>&6
                   1301: else
                   1302:   if test -n "$CC"; then
                   1303:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1304: else
                   1305:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1306:   ac_prog_rejected=no
                   1307:   ac_dummy="$PATH"
                   1308:   for ac_dir in $ac_dummy; do
                   1309:     test -z "$ac_dir" && ac_dir=.
                   1310:     if test -f $ac_dir/$ac_word; then
                   1311:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                   1312:         ac_prog_rejected=yes
                   1313:        continue
                   1314:       fi
                   1315:       ac_cv_prog_CC="cc"
                   1316:       break
                   1317:     fi
                   1318:   done
                   1319:   IFS="$ac_save_ifs"
                   1320: if test $ac_prog_rejected = yes; then
                   1321:   # We found a bogon in the path, so make sure we never use it.
                   1322:   set dummy $ac_cv_prog_CC
                   1323:   shift
                   1324:   if test $# -gt 0; then
                   1325:     # We chose a different compiler from the bogus one.
                   1326:     # However, it has the same basename, so the bogon will be chosen
                   1327:     # first if we set CC to just the basename; use the full file name.
                   1328:     shift
                   1329:     set dummy "$ac_dir/$ac_word" "$@"
                   1330:     shift
                   1331:     ac_cv_prog_CC="$@"
                   1332:   fi
                   1333: fi
                   1334: fi
                   1335: fi
                   1336: CC="$ac_cv_prog_CC"
                   1337: if test -n "$CC"; then
                   1338:   echo "$ac_t""$CC" 1>&6
                   1339: else
                   1340:   echo "$ac_t""no" 1>&6
                   1341: fi
                   1342: 
                   1343:   if test -z "$CC"; then
                   1344:     case "`uname -s`" in
                   1345:     *win32* | *WIN32*)
                   1346:       # Extract the first word of "cl", so it can be a program name with args.
                   1347: set dummy cl; ac_word=$2
                   1348: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.4       paf      1349: echo "configure:1350: checking for $ac_word" >&5
1.1       parser   1350: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1351:   echo $ac_n "(cached) $ac_c" 1>&6
                   1352: else
                   1353:   if test -n "$CC"; then
                   1354:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1355: else
                   1356:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1357:   ac_dummy="$PATH"
                   1358:   for ac_dir in $ac_dummy; do
                   1359:     test -z "$ac_dir" && ac_dir=.
                   1360:     if test -f $ac_dir/$ac_word; then
                   1361:       ac_cv_prog_CC="cl"
                   1362:       break
                   1363:     fi
                   1364:   done
                   1365:   IFS="$ac_save_ifs"
                   1366: fi
                   1367: fi
                   1368: CC="$ac_cv_prog_CC"
                   1369: if test -n "$CC"; then
                   1370:   echo "$ac_t""$CC" 1>&6
                   1371: else
                   1372:   echo "$ac_t""no" 1>&6
                   1373: fi
                   1374:  ;;
                   1375:     esac
                   1376:   fi
                   1377:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                   1378: fi
                   1379: 
                   1380: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.4       paf      1381: echo "configure:1382: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1       parser   1382: 
                   1383: ac_ext=c
                   1384: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1385: ac_cpp='$CPP $CPPFLAGS'
                   1386: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1387: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1388: cross_compiling=$ac_cv_prog_cc_cross
                   1389: 
                   1390: cat > conftest.$ac_ext << EOF
                   1391: 
1.4       paf      1392: #line 1393 "configure"
1.1       parser   1393: #include "confdefs.h"
                   1394: 
                   1395: main(){return(0);}
                   1396: EOF
1.4       paf      1397: if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       parser   1398:   ac_cv_prog_cc_works=yes
                   1399:   # If we can't run a trivial program, we are probably using a cross compiler.
                   1400:   if (./conftest; exit) 2>/dev/null; then
                   1401:     ac_cv_prog_cc_cross=no
                   1402:   else
                   1403:     ac_cv_prog_cc_cross=yes
                   1404:   fi
                   1405: else
                   1406:   echo "configure: failed program was:" >&5
                   1407:   cat conftest.$ac_ext >&5
                   1408:   ac_cv_prog_cc_works=no
                   1409: fi
                   1410: rm -fr conftest*
                   1411: ac_ext=C
                   1412: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1413: ac_cpp='$CXXCPP $CPPFLAGS'
                   1414: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1415: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1416: cross_compiling=$ac_cv_prog_cxx_cross
                   1417: 
                   1418: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                   1419: if test $ac_cv_prog_cc_works = no; then
                   1420:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                   1421: fi
                   1422: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.4       paf      1423: echo "configure:1424: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       parser   1424: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                   1425: cross_compiling=$ac_cv_prog_cc_cross
                   1426: 
                   1427: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.4       paf      1428: echo "configure:1429: checking whether we are using GNU C" >&5
1.1       parser   1429: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                   1430:   echo $ac_n "(cached) $ac_c" 1>&6
                   1431: else
                   1432:   cat > conftest.c <<EOF
                   1433: #ifdef __GNUC__
                   1434:   yes;
                   1435: #endif
                   1436: EOF
1.4       paf      1437: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       parser   1438:   ac_cv_prog_gcc=yes
                   1439: else
                   1440:   ac_cv_prog_gcc=no
                   1441: fi
                   1442: fi
                   1443: 
                   1444: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
                   1445: 
                   1446: if test $ac_cv_prog_gcc = yes; then
                   1447:   GCC=yes
                   1448: else
                   1449:   GCC=
                   1450: fi
                   1451: 
                   1452: ac_test_CFLAGS="${CFLAGS+set}"
                   1453: ac_save_CFLAGS="$CFLAGS"
                   1454: CFLAGS=
                   1455: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.4       paf      1456: echo "configure:1457: checking whether ${CC-cc} accepts -g" >&5
1.1       parser   1457: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
                   1458:   echo $ac_n "(cached) $ac_c" 1>&6
                   1459: else
                   1460:   echo 'void f(){}' > conftest.c
                   1461: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
                   1462:   ac_cv_prog_cc_g=yes
                   1463: else
                   1464:   ac_cv_prog_cc_g=no
                   1465: fi
                   1466: rm -f conftest*
                   1467: 
                   1468: fi
                   1469: 
                   1470: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
                   1471: if test "$ac_test_CFLAGS" = set; then
                   1472:   CFLAGS="$ac_save_CFLAGS"
                   1473: elif test $ac_cv_prog_cc_g = yes; then
                   1474:   if test "$GCC" = yes; then
                   1475:     CFLAGS="-g -O2"
                   1476:   else
                   1477:     CFLAGS="-g"
                   1478:   fi
                   1479: else
                   1480:   if test "$GCC" = yes; then
                   1481:     CFLAGS="-O2"
                   1482:   else
                   1483:     CFLAGS=
                   1484:   fi
                   1485: fi
                   1486: 
                   1487: # Check whether --with-gnu-ld or --without-gnu-ld was given.
                   1488: if test "${with_gnu_ld+set}" = set; then
                   1489:   withval="$with_gnu_ld"
                   1490:   test "$withval" = no || with_gnu_ld=yes
                   1491: else
                   1492:   with_gnu_ld=no
                   1493: fi
                   1494: 
                   1495: ac_prog=ld
                   1496: if test "$ac_cv_prog_gcc" = yes; then
                   1497:   # Check if gcc -print-prog-name=ld gives a path.
                   1498:   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1.4       paf      1499: echo "configure:1500: checking for ld used by GCC" >&5
1.1       parser   1500:   ac_prog=`($CC -print-prog-name=ld) 2>&5`
                   1501:   case "$ac_prog" in
                   1502:     # Accept absolute paths.
                   1503:     [\\/]* | [A-Za-z]:[\\/]*)
                   1504:       re_direlt='/[^/][^/]*/\.\./'
                   1505:       # Canonicalize the path of ld
                   1506:       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
                   1507:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   1508:        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
                   1509:       done
                   1510:       test -z "$LD" && LD="$ac_prog"
                   1511:       ;;
                   1512:   "")
                   1513:     # If it fails, then pretend we aren't using GCC.
                   1514:     ac_prog=ld
                   1515:     ;;
                   1516:   *)
                   1517:     # If it is relative, then search for the first ld in PATH.
                   1518:     with_gnu_ld=unknown
                   1519:     ;;
                   1520:   esac
                   1521: elif test "$with_gnu_ld" = yes; then
                   1522:   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1.4       paf      1523: echo "configure:1524: checking for GNU ld" >&5
1.1       parser   1524: else
                   1525:   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1.4       paf      1526: echo "configure:1527: checking for non-GNU ld" >&5
1.1       parser   1527: fi
                   1528: if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
                   1529:   echo $ac_n "(cached) $ac_c" 1>&6
                   1530: else
                   1531:   if test -z "$LD"; then
                   1532:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
                   1533:   for ac_dir in $PATH; do
                   1534:     test -z "$ac_dir" && ac_dir=.
                   1535:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   1536:       ac_cv_path_LD="$ac_dir/$ac_prog"
                   1537:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   1538:       # but apparently some GNU ld's only accept -v.
                   1539:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   1540:       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
                   1541:        test "$with_gnu_ld" != no && break
                   1542:       else
                   1543:        test "$with_gnu_ld" != yes && break
                   1544:       fi
                   1545:     fi
                   1546:   done
                   1547:   IFS="$ac_save_ifs"
                   1548: else
                   1549:   ac_cv_path_LD="$LD" # Let the user override the test with a path.
                   1550: fi
                   1551: fi
                   1552: 
                   1553: LD="$ac_cv_path_LD"
                   1554: if test -n "$LD"; then
                   1555:   echo "$ac_t""$LD" 1>&6
                   1556: else
                   1557:   echo "$ac_t""no" 1>&6
                   1558: fi
                   1559: test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
                   1560: echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1.4       paf      1561: echo "configure:1562: checking if the linker ($LD) is GNU ld" >&5
1.1       parser   1562: if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
                   1563:   echo $ac_n "(cached) $ac_c" 1>&6
                   1564: else
                   1565:   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
                   1566: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
                   1567:   ac_cv_prog_gnu_ld=yes
                   1568: else
                   1569:   ac_cv_prog_gnu_ld=no
                   1570: fi
                   1571: fi
                   1572: 
                   1573: echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
                   1574: 
                   1575: 
                   1576: echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1.4       paf      1577: echo "configure:1578: checking for BSD-compatible nm" >&5
1.1       parser   1578: if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
                   1579:   echo $ac_n "(cached) $ac_c" 1>&6
                   1580: else
                   1581:   if test -n "$NM"; then
                   1582:   # Let the user override the test.
                   1583:   ac_cv_path_NM="$NM"
                   1584: else
                   1585:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
                   1586:   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
                   1587:     test -z "$ac_dir" && ac_dir=.
                   1588:     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
                   1589:       # Check to see if the nm accepts a BSD-compat flag.
                   1590:       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
                   1591:       #   nm: unknown option "B" ignored
                   1592:       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
                   1593:        ac_cv_path_NM="$ac_dir/nm -B"
                   1594:        break
                   1595:       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
                   1596:        ac_cv_path_NM="$ac_dir/nm -p"
                   1597:        break
                   1598:       else
                   1599:        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
                   1600:        continue # so that we can try to find one that supports BSD flags
                   1601:       fi
                   1602:     fi
                   1603:   done
                   1604:   IFS="$ac_save_ifs"
                   1605:   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
                   1606: fi
                   1607: fi
                   1608: 
                   1609: NM="$ac_cv_path_NM"
                   1610: echo "$ac_t""$NM" 1>&6
                   1611: 
                   1612: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1.4       paf      1613: echo "configure:1614: checking whether ln -s works" >&5
1.1       parser   1614: if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
                   1615:   echo $ac_n "(cached) $ac_c" 1>&6
                   1616: else
                   1617:   rm -f conftestdata
                   1618: if ln -s X conftestdata 2>/dev/null
                   1619: then
                   1620:   rm -f conftestdata
                   1621:   ac_cv_prog_LN_S="ln -s"
                   1622: else
                   1623:   ac_cv_prog_LN_S=ln
                   1624: fi
                   1625: fi
                   1626: LN_S="$ac_cv_prog_LN_S"
                   1627: if test "$ac_cv_prog_LN_S" = "ln -s"; then
                   1628:   echo "$ac_t""yes" 1>&6
                   1629: else
                   1630:   echo "$ac_t""no" 1>&6
                   1631: fi
                   1632: 
                   1633: 
                   1634: case "$target" in
                   1635: NONE) lt_target="$host" ;;
                   1636: *) lt_target="$target" ;;
                   1637: esac
                   1638: 
                   1639: # Check for any special flags to pass to ltconfig.
                   1640: libtool_flags="--cache-file=$cache_file"
                   1641: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
                   1642: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
                   1643: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
                   1644: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
                   1645: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
                   1646: libtool_flags="$libtool_flags --enable-dlopen"
                   1647: 
                   1648: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
                   1649: if test "${enable_libtool_lock+set}" = set; then
                   1650:   enableval="$enable_libtool_lock"
                   1651:   :
                   1652: fi
                   1653: 
                   1654: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
                   1655: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
                   1656: 
                   1657: # Some flags need to be propagated to the compiler or linker for good
                   1658: # libtool support.
                   1659: case "$lt_target" in
                   1660: *-*-irix6*)
                   1661:   # Find out which ABI we are using.
1.4       paf      1662:   echo '#line 1663 "configure"' > conftest.$ac_ext
                   1663:   if { (eval echo configure:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       parser   1664:     case "`/usr/bin/file conftest.o`" in
                   1665:     *32-bit*)
                   1666:       LD="${LD-ld} -32"
                   1667:       ;;
                   1668:     *N32*)
                   1669:       LD="${LD-ld} -n32"
                   1670:       ;;
                   1671:     *64-bit*)
                   1672:       LD="${LD-ld} -64"
                   1673:       ;;
                   1674:     esac
                   1675:   fi
                   1676:   rm -rf conftest*
                   1677:   ;;
                   1678: 
                   1679: *-*-sco3.2v5*)
                   1680:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
                   1681:   SAVE_CFLAGS="$CFLAGS"
                   1682:   CFLAGS="$CFLAGS -belf"
                   1683:   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1.4       paf      1684: echo "configure:1685: checking whether the C compiler needs -belf" >&5
1.1       parser   1685: if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
                   1686:   echo $ac_n "(cached) $ac_c" 1>&6
                   1687: else
                   1688:   cat > conftest.$ac_ext <<EOF
1.4       paf      1689: #line 1690 "configure"
1.1       parser   1690: #include "confdefs.h"
                   1691: 
                   1692: int main() {
                   1693: 
                   1694: ; return 0; }
                   1695: EOF
1.4       paf      1696: if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       parser   1697:   rm -rf conftest*
                   1698:   lt_cv_cc_needs_belf=yes
                   1699: else
                   1700:   echo "configure: failed program was:" >&5
                   1701:   cat conftest.$ac_ext >&5
                   1702:   rm -rf conftest*
                   1703:   lt_cv_cc_needs_belf=no
                   1704: fi
                   1705: rm -f conftest*
                   1706: fi
                   1707: 
                   1708: echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
                   1709:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
                   1710:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
                   1711:     CFLAGS="$SAVE_CFLAGS"
                   1712:   fi
                   1713:   ;;
                   1714: 
                   1715: 
                   1716: esac
                   1717: 
                   1718: 
                   1719: # Save cache, so that ltconfig can load it
                   1720: cat > confcache <<\EOF
                   1721: # This file is a shell script that caches the results of configure
                   1722: # tests run on this system so they can be shared between configure
                   1723: # scripts and configure runs.  It is not useful on other systems.
                   1724: # If it contains results you don't want to keep, you may remove or edit it.
                   1725: #
                   1726: # By default, configure uses ./config.cache as the cache file,
                   1727: # creating it if it does not exist already.  You can give configure
                   1728: # the --cache-file=FILE option to use a different cache file; that is
                   1729: # what configure does when it calls configure scripts in
                   1730: # subdirectories, so they share the cache.
                   1731: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   1732: # config.status only pays attention to the cache file if you give it the
                   1733: # --recheck option to rerun configure.
                   1734: #
                   1735: EOF
                   1736: # The following way of writing the cache mishandles newlines in values,
                   1737: # but we know of no workaround that is simple, portable, and efficient.
                   1738: # So, don't put newlines in cache variables' values.
                   1739: # Ultrix sh set writes to stderr and can't be redirected directly,
                   1740: # and sets the high bit in the cache file unless we assign to the vars.
                   1741: (set) 2>&1 |
                   1742:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   1743:   *ac_space=\ *)
                   1744:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   1745:     # turns \\\\ into \\, and sed turns \\ into \).
                   1746:     sed -n \
                   1747:       -e "s/'/'\\\\''/g" \
                   1748:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   1749:     ;;
                   1750:   *)
                   1751:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   1752:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   1753:     ;;
                   1754:   esac >> confcache
                   1755: if cmp -s $cache_file confcache; then
                   1756:   :
                   1757: else
                   1758:   if test -w $cache_file; then
                   1759:     echo "updating cache $cache_file"
                   1760:     cat confcache > $cache_file
                   1761:   else
                   1762:     echo "not updating unwritable cache $cache_file"
                   1763:   fi
                   1764: fi
                   1765: rm -f confcache
                   1766: 
                   1767: 
                   1768: # Actually configure libtool.  ac_aux_dir is where install-sh is found.
                   1769: CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
                   1770: LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
                   1771: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
                   1772: DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
                   1773: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
                   1774: $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
                   1775: || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
                   1776: 
                   1777: # Reload cache, that may have been modified by ltconfig
                   1778: if test -r "$cache_file"; then
                   1779:   echo "loading cache $cache_file"
                   1780:   . $cache_file
                   1781: else
                   1782:   echo "creating cache $cache_file"
                   1783:   > $cache_file
                   1784: fi
                   1785: 
                   1786: 
                   1787: # This can be used to rebuild libtool when needed
                   1788: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
                   1789: 
                   1790: # Always use our own libtool.
                   1791: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
                   1792: 
                   1793: # Redirect the config.log output again, so that the ltconfig log is not
                   1794: # clobbered by the next message.
                   1795: exec 5>>./config.log
                   1796: 
                   1797: subdirs="libltdl"
                   1798: 
                   1799: 
                   1800: 
                   1801: 
                   1802: echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.4       paf      1803: echo "configure:1804: checking how to run the C++ preprocessor" >&5
1.1       parser   1804: if test -z "$CXXCPP"; then
                   1805: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
                   1806:   echo $ac_n "(cached) $ac_c" 1>&6
                   1807: else
                   1808:   ac_ext=C
                   1809: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1810: ac_cpp='$CXXCPP $CPPFLAGS'
                   1811: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1812: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1813: cross_compiling=$ac_cv_prog_cxx_cross
                   1814:   CXXCPP="${CXX-g++} -E"
                   1815:   cat > conftest.$ac_ext <<EOF
1.4       paf      1816: #line 1817 "configure"
1.1       parser   1817: #include "confdefs.h"
                   1818: #include <stdlib.h>
                   1819: EOF
                   1820: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.4       paf      1821: { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       parser   1822: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1823: if test -z "$ac_err"; then
                   1824:   :
                   1825: else
                   1826:   echo "$ac_err" >&5
                   1827:   echo "configure: failed program was:" >&5
                   1828:   cat conftest.$ac_ext >&5
                   1829:   rm -rf conftest*
                   1830:   CXXCPP=/lib/cpp
                   1831: fi
                   1832: rm -f conftest*
                   1833:   ac_cv_prog_CXXCPP="$CXXCPP"
                   1834: ac_ext=C
                   1835: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1836: ac_cpp='$CXXCPP $CPPFLAGS'
                   1837: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1838: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1839: cross_compiling=$ac_cv_prog_cxx_cross
                   1840: fi
                   1841: fi
                   1842: CXXCPP="$ac_cv_prog_CXXCPP"
                   1843: echo "$ac_t""$CXXCPP" 1>&6
                   1844: 
                   1845: for ac_hdr in stdio.h \
                   1846: stdlib.h \
                   1847: string.h
                   1848: 
                   1849: do
                   1850: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   1851: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.4       paf      1852: echo "configure:1853: checking for $ac_hdr" >&5
1.1       parser   1853: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   1854:   echo $ac_n "(cached) $ac_c" 1>&6
                   1855: else
                   1856:   cat > conftest.$ac_ext <<EOF
1.4       paf      1857: #line 1858 "configure"
1.1       parser   1858: #include "confdefs.h"
                   1859: #include <$ac_hdr>
                   1860: EOF
                   1861: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.4       paf      1862: { (eval echo configure:1863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       parser   1863: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1864: if test -z "$ac_err"; then
                   1865:   rm -rf conftest*
                   1866:   eval "ac_cv_header_$ac_safe=yes"
                   1867: else
                   1868:   echo "$ac_err" >&5
                   1869:   echo "configure: failed program was:" >&5
                   1870:   cat conftest.$ac_ext >&5
                   1871:   rm -rf conftest*
                   1872:   eval "ac_cv_header_$ac_safe=no"
                   1873: fi
                   1874: rm -f conftest*
                   1875: fi
                   1876: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   1877:   echo "$ac_t""yes" 1>&6
                   1878:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   1879:   cat >> confdefs.h <<EOF
                   1880: #define $ac_tr_hdr 1
                   1881: EOF
                   1882:  
                   1883: else
                   1884:   echo "$ac_t""no" 1>&6
                   1885: fi
                   1886: done
                   1887: 
                   1888: 
                   1889: 
                   1890: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.4       paf      1891: echo "configure:1892: checking for ANSI C header files" >&5
1.1       parser   1892: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
                   1893:   echo $ac_n "(cached) $ac_c" 1>&6
                   1894: else
                   1895:   cat > conftest.$ac_ext <<EOF
1.4       paf      1896: #line 1897 "configure"
1.1       parser   1897: #include "confdefs.h"
                   1898: #include <stdlib.h>
                   1899: #include <stdarg.h>
                   1900: #include <string.h>
                   1901: #include <float.h>
                   1902: EOF
                   1903: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.4       paf      1904: { (eval echo configure:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       parser   1905: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1906: if test -z "$ac_err"; then
                   1907:   rm -rf conftest*
                   1908:   ac_cv_header_stdc=yes
                   1909: else
                   1910:   echo "$ac_err" >&5
                   1911:   echo "configure: failed program was:" >&5
                   1912:   cat conftest.$ac_ext >&5
                   1913:   rm -rf conftest*
                   1914:   ac_cv_header_stdc=no
                   1915: fi
                   1916: rm -f conftest*
                   1917: 
                   1918: if test $ac_cv_header_stdc = yes; then
                   1919:   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
                   1920: cat > conftest.$ac_ext <<EOF
1.4       paf      1921: #line 1922 "configure"
1.1       parser   1922: #include "confdefs.h"
                   1923: #include <string.h>
                   1924: EOF
                   1925: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1926:   egrep "memchr" >/dev/null 2>&1; then
                   1927:   :
                   1928: else
                   1929:   rm -rf conftest*
                   1930:   ac_cv_header_stdc=no
                   1931: fi
                   1932: rm -f conftest*
                   1933: 
                   1934: fi
                   1935: 
                   1936: if test $ac_cv_header_stdc = yes; then
                   1937:   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
                   1938: cat > conftest.$ac_ext <<EOF
1.4       paf      1939: #line 1940 "configure"
1.1       parser   1940: #include "confdefs.h"
                   1941: #include <stdlib.h>
                   1942: EOF
                   1943: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1944:   egrep "free" >/dev/null 2>&1; then
                   1945:   :
                   1946: else
                   1947:   rm -rf conftest*
                   1948:   ac_cv_header_stdc=no
                   1949: fi
                   1950: rm -f conftest*
                   1951: 
                   1952: fi
                   1953: 
                   1954: if test $ac_cv_header_stdc = yes; then
                   1955:   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
                   1956: if test "$cross_compiling" = yes; then
                   1957:   :
                   1958: else
                   1959:   cat > conftest.$ac_ext <<EOF
1.4       paf      1960: #line 1961 "configure"
1.1       parser   1961: #include "confdefs.h"
                   1962: #ifdef __cplusplus
1.2       parser   1963: extern "C" void exit(int) throw();
1.1       parser   1964: #endif
                   1965: #include <ctype.h>
                   1966: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
                   1967: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
                   1968: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
                   1969: int main () { int i; for (i = 0; i < 256; i++)
                   1970: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
                   1971: exit (0); }
                   1972: 
                   1973: EOF
1.4       paf      1974: if { (eval echo configure:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       parser   1975: then
                   1976:   :
                   1977: else
                   1978:   echo "configure: failed program was:" >&5
                   1979:   cat conftest.$ac_ext >&5
                   1980:   rm -fr conftest*
                   1981:   ac_cv_header_stdc=no
                   1982: fi
                   1983: rm -fr conftest*
                   1984: fi
                   1985: 
                   1986: fi
                   1987: fi
                   1988: 
                   1989: echo "$ac_t""$ac_cv_header_stdc" 1>&6
                   1990: if test $ac_cv_header_stdc = yes; then
                   1991:   cat >> confdefs.h <<\EOF
                   1992: #define STDC_HEADERS 1
                   1993: EOF
                   1994: 
                   1995: fi
                   1996: 
                   1997: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.4       paf      1998: echo "configure:1999: checking for size_t" >&5
1.1       parser   1999: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
                   2000:   echo $ac_n "(cached) $ac_c" 1>&6
                   2001: else
                   2002:   cat > conftest.$ac_ext <<EOF
1.4       paf      2003: #line 2004 "configure"
1.1       parser   2004: #include "confdefs.h"
                   2005: #include <sys/types.h>
                   2006: #if STDC_HEADERS
                   2007: #include <stdlib.h>
                   2008: #include <stddef.h>
                   2009: #endif
                   2010: EOF
                   2011: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2012:   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
                   2013:   rm -rf conftest*
                   2014:   ac_cv_type_size_t=yes
                   2015: else
                   2016:   rm -rf conftest*
                   2017:   ac_cv_type_size_t=no
                   2018: fi
                   2019: rm -f conftest*
                   2020: 
                   2021: fi
                   2022: echo "$ac_t""$ac_cv_type_size_t" 1>&6
                   2023: if test $ac_cv_type_size_t = no; then
                   2024:   cat >> confdefs.h <<\EOF
                   2025: #define size_t unsigned
                   2026: EOF
                   2027: 
                   2028: fi
                   2029: 
                   2030: 
                   2031: 
                   2032: 
                   2033: trap '' 1 2 15
                   2034: cat > confcache <<\EOF
                   2035: # This file is a shell script that caches the results of configure
                   2036: # tests run on this system so they can be shared between configure
                   2037: # scripts and configure runs.  It is not useful on other systems.
                   2038: # If it contains results you don't want to keep, you may remove or edit it.
                   2039: #
                   2040: # By default, configure uses ./config.cache as the cache file,
                   2041: # creating it if it does not exist already.  You can give configure
                   2042: # the --cache-file=FILE option to use a different cache file; that is
                   2043: # what configure does when it calls configure scripts in
                   2044: # subdirectories, so they share the cache.
                   2045: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   2046: # config.status only pays attention to the cache file if you give it the
                   2047: # --recheck option to rerun configure.
                   2048: #
                   2049: EOF
                   2050: # The following way of writing the cache mishandles newlines in values,
                   2051: # but we know of no workaround that is simple, portable, and efficient.
                   2052: # So, don't put newlines in cache variables' values.
                   2053: # Ultrix sh set writes to stderr and can't be redirected directly,
                   2054: # and sets the high bit in the cache file unless we assign to the vars.
                   2055: (set) 2>&1 |
                   2056:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   2057:   *ac_space=\ *)
                   2058:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   2059:     # turns \\\\ into \\, and sed turns \\ into \).
                   2060:     sed -n \
                   2061:       -e "s/'/'\\\\''/g" \
                   2062:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   2063:     ;;
                   2064:   *)
                   2065:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   2066:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   2067:     ;;
                   2068:   esac >> confcache
                   2069: if cmp -s $cache_file confcache; then
                   2070:   :
                   2071: else
                   2072:   if test -w $cache_file; then
                   2073:     echo "updating cache $cache_file"
                   2074:     cat confcache > $cache_file
                   2075:   else
                   2076:     echo "not updating unwritable cache $cache_file"
                   2077:   fi
                   2078: fi
                   2079: rm -f confcache
                   2080: 
                   2081: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                   2082: 
                   2083: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   2084: # Let make expand exec_prefix.
                   2085: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
                   2086: 
                   2087: # Any assignment to VPATH causes Sun make to only execute
                   2088: # the first set of double-colon rules, so remove it if not needed.
                   2089: # If there is a colon in the path, we need to keep it.
                   2090: if test "x$srcdir" = x.; then
                   2091:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
                   2092: fi
                   2093: 
                   2094: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
                   2095: 
                   2096: DEFS=-DHAVE_CONFIG_H
                   2097: 
                   2098: # Without the "./", some shells look in PATH for config.status.
                   2099: : ${CONFIG_STATUS=./config.status}
                   2100: 
                   2101: echo creating $CONFIG_STATUS
                   2102: rm -f $CONFIG_STATUS
                   2103: cat > $CONFIG_STATUS <<EOF
                   2104: #! /bin/sh
                   2105: # Generated automatically by configure.
                   2106: # Run this file to recreate the current configuration.
                   2107: # This directory was configured as follows,
                   2108: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   2109: #
                   2110: # $0 $ac_configure_args
                   2111: #
                   2112: # Compiler output produced by configure, useful for debugging
                   2113: # configure, is in ./config.log if it exists.
                   2114: 
                   2115: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   2116: for ac_option
                   2117: do
                   2118:   case "\$ac_option" in
                   2119:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   2120:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   2121:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   2122:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   2123:     echo "$CONFIG_STATUS generated by autoconf version 2.13"
                   2124:     exit 0 ;;
                   2125:   -help | --help | --hel | --he | --h)
                   2126:     echo "\$ac_cs_usage"; exit 0 ;;
                   2127:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   2128:   esac
                   2129: done
                   2130: 
                   2131: ac_given_srcdir=$srcdir
                   2132: ac_given_INSTALL="$INSTALL"
                   2133: 
                   2134: trap 'rm -fr `echo "libltdl/Makefile Makefile config_auto.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
                   2135: EOF
                   2136: cat >> $CONFIG_STATUS <<EOF
                   2137: 
                   2138: # Protect against being on the right side of a sed subst in config.status.
                   2139: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   2140:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   2141: $ac_vpsub
                   2142: $extrasub
                   2143: s%@SHELL@%$SHELL%g
                   2144: s%@CFLAGS@%$CFLAGS%g
                   2145: s%@CPPFLAGS@%$CPPFLAGS%g
                   2146: s%@CXXFLAGS@%$CXXFLAGS%g
                   2147: s%@FFLAGS@%$FFLAGS%g
                   2148: s%@DEFS@%$DEFS%g
                   2149: s%@LDFLAGS@%$LDFLAGS%g
                   2150: s%@LIBS@%$LIBS%g
                   2151: s%@exec_prefix@%$exec_prefix%g
                   2152: s%@prefix@%$prefix%g
                   2153: s%@program_transform_name@%$program_transform_name%g
                   2154: s%@bindir@%$bindir%g
                   2155: s%@sbindir@%$sbindir%g
                   2156: s%@libexecdir@%$libexecdir%g
                   2157: s%@datadir@%$datadir%g
                   2158: s%@sysconfdir@%$sysconfdir%g
                   2159: s%@sharedstatedir@%$sharedstatedir%g
                   2160: s%@localstatedir@%$localstatedir%g
                   2161: s%@libdir@%$libdir%g
                   2162: s%@includedir@%$includedir%g
                   2163: s%@oldincludedir@%$oldincludedir%g
                   2164: s%@infodir@%$infodir%g
                   2165: s%@mandir@%$mandir%g
                   2166: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
                   2167: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
                   2168: s%@INSTALL_DATA@%$INSTALL_DATA%g
                   2169: s%@PACKAGE@%$PACKAGE%g
                   2170: s%@VERSION@%$VERSION%g
                   2171: s%@ACLOCAL@%$ACLOCAL%g
                   2172: s%@AUTOCONF@%$AUTOCONF%g
                   2173: s%@AUTOMAKE@%$AUTOMAKE%g
                   2174: s%@AUTOHEADER@%$AUTOHEADER%g
                   2175: s%@MAKEINFO@%$MAKEINFO%g
                   2176: s%@SET_MAKE@%$SET_MAKE%g
                   2177: s%@MYSQL_INC@%$MYSQL_INC%g
                   2178: s%@AWK@%$AWK%g
                   2179: s%@CXX@%$CXX%g
                   2180: s%@INCLTDL@%$INCLTDL%g
                   2181: s%@LIBLTDL@%$LIBLTDL%g
                   2182: s%@LIBADD_DL@%$LIBADD_DL%g
                   2183: s%@host@%$host%g
                   2184: s%@host_alias@%$host_alias%g
                   2185: s%@host_cpu@%$host_cpu%g
                   2186: s%@host_vendor@%$host_vendor%g
                   2187: s%@host_os@%$host_os%g
                   2188: s%@build@%$build%g
                   2189: s%@build_alias@%$build_alias%g
                   2190: s%@build_cpu@%$build_cpu%g
                   2191: s%@build_vendor@%$build_vendor%g
                   2192: s%@build_os@%$build_os%g
                   2193: s%@RANLIB@%$RANLIB%g
                   2194: s%@CC@%$CC%g
                   2195: s%@LN_S@%$LN_S%g
                   2196: s%@LIBTOOL@%$LIBTOOL%g
                   2197: s%@subdirs@%$subdirs%g
                   2198: s%@CXXCPP@%$CXXCPP%g
                   2199: 
                   2200: CEOF
                   2201: EOF
                   2202: 
                   2203: cat >> $CONFIG_STATUS <<\EOF
                   2204: 
                   2205: # Split the substitutions into bite-sized pieces for seds with
                   2206: # small command number limits, like on Digital OSF/1 and HP-UX.
                   2207: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   2208: ac_file=1 # Number of current file.
                   2209: ac_beg=1 # First line for current file.
                   2210: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   2211: ac_more_lines=:
                   2212: ac_sed_cmds=""
                   2213: while $ac_more_lines; do
                   2214:   if test $ac_beg -gt 1; then
                   2215:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   2216:   else
                   2217:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   2218:   fi
                   2219:   if test ! -s conftest.s$ac_file; then
                   2220:     ac_more_lines=false
                   2221:     rm -f conftest.s$ac_file
                   2222:   else
                   2223:     if test -z "$ac_sed_cmds"; then
                   2224:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   2225:     else
                   2226:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   2227:     fi
                   2228:     ac_file=`expr $ac_file + 1`
                   2229:     ac_beg=$ac_end
                   2230:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   2231:   fi
                   2232: done
                   2233: if test -z "$ac_sed_cmds"; then
                   2234:   ac_sed_cmds=cat
                   2235: fi
                   2236: EOF
                   2237: 
                   2238: cat >> $CONFIG_STATUS <<EOF
                   2239: 
                   2240: CONFIG_FILES=\${CONFIG_FILES-"libltdl/Makefile Makefile"}
                   2241: EOF
                   2242: cat >> $CONFIG_STATUS <<\EOF
                   2243: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   2244:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   2245:   case "$ac_file" in
                   2246:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   2247:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   2248:   *) ac_file_in="${ac_file}.in" ;;
                   2249:   esac
                   2250: 
                   2251:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
                   2252: 
                   2253:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   2254:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   2255:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   2256:     # The file is in a subdirectory.
                   2257:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   2258:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   2259:     # A "../" for each directory in $ac_dir_suffix.
                   2260:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   2261:   else
                   2262:     ac_dir_suffix= ac_dots=
                   2263:   fi
                   2264: 
                   2265:   case "$ac_given_srcdir" in
                   2266:   .)  srcdir=.
                   2267:       if test -z "$ac_dots"; then top_srcdir=.
                   2268:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   2269:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   2270:   *) # Relative path.
                   2271:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   2272:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   2273:   esac
                   2274: 
                   2275:   case "$ac_given_INSTALL" in
                   2276:   [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   2277:   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   2278:   esac
                   2279: 
                   2280:   echo creating "$ac_file"
                   2281:   rm -f "$ac_file"
                   2282:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   2283:   case "$ac_file" in
                   2284:   *Makefile*) ac_comsub="1i\\
                   2285: # $configure_input" ;;
                   2286:   *) ac_comsub= ;;
                   2287:   esac
                   2288: 
                   2289:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   2290:   sed -e "$ac_comsub
                   2291: s%@configure_input@%$configure_input%g
                   2292: s%@srcdir@%$srcdir%g
                   2293: s%@top_srcdir@%$top_srcdir%g
                   2294: s%@INSTALL@%$INSTALL%g
                   2295: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
                   2296: fi; done
                   2297: rm -f conftest.s*
                   2298: 
                   2299: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   2300: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   2301: #
                   2302: # ac_d sets the value in "#define NAME VALUE" lines.
                   2303: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   2304: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   2305: ac_dC='\3'
                   2306: ac_dD='%g'
                   2307: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   2308: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   2309: ac_uB='\([     ]\)%\1#\2define\3'
                   2310: ac_uC=' '
                   2311: ac_uD='\4%g'
                   2312: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   2313: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   2314: ac_eB='$%\1#\2define\3'
                   2315: ac_eC=' '
                   2316: ac_eD='%g'
                   2317: 
                   2318: if test "${CONFIG_HEADERS+set}" != set; then
                   2319: EOF
                   2320: cat >> $CONFIG_STATUS <<EOF
                   2321:   CONFIG_HEADERS="config_auto.h"
                   2322: EOF
                   2323: cat >> $CONFIG_STATUS <<\EOF
                   2324: fi
                   2325: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
                   2326:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   2327:   case "$ac_file" in
                   2328:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   2329:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   2330:   *) ac_file_in="${ac_file}.in" ;;
                   2331:   esac
                   2332: 
                   2333:   echo creating $ac_file
                   2334: 
                   2335:   rm -f conftest.frag conftest.in conftest.out
                   2336:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   2337:   cat $ac_file_inputs > conftest.in
                   2338: 
                   2339: EOF
                   2340: 
                   2341: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   2342: # the proper values into config.h.in to produce config.h.  And first:
                   2343: # Protect against being on the right side of a sed subst in config.status.
                   2344: # Protect against being in an unquoted here document in config.status.
                   2345: rm -f conftest.vals
                   2346: cat > conftest.hdr <<\EOF
                   2347: s/[\\&%]/\\&/g
                   2348: s%[\\$`]%\\&%g
                   2349: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   2350: s%ac_d%ac_u%gp
                   2351: s%ac_u%ac_e%gp
                   2352: EOF
                   2353: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   2354: rm -f conftest.hdr
                   2355: 
                   2356: # This sed command replaces #undef with comments.  This is necessary, for
                   2357: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   2358: # on some systems where configure will not decide to define it.
                   2359: cat >> conftest.vals <<\EOF
                   2360: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   2361: EOF
                   2362: 
                   2363: # Break up conftest.vals because some shells have a limit on
                   2364: # the size of here documents, and old seds have small limits too.
                   2365: 
                   2366: rm -f conftest.tail
                   2367: while :
                   2368: do
                   2369:   ac_lines=`grep -c . conftest.vals`
                   2370:   # grep -c gives empty output for an empty file on some AIX systems.
                   2371:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   2372:   # Write a limited-size here document to conftest.frag.
                   2373:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   2374:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   2375:   echo 'CEOF
                   2376:   sed -f conftest.frag conftest.in > conftest.out
                   2377:   rm -f conftest.in
                   2378:   mv conftest.out conftest.in
                   2379: ' >> $CONFIG_STATUS
                   2380:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   2381:   rm -f conftest.vals
                   2382:   mv conftest.tail conftest.vals
                   2383: done
                   2384: rm -f conftest.vals
                   2385: 
                   2386: cat >> $CONFIG_STATUS <<\EOF
                   2387:   rm -f conftest.frag conftest.h
                   2388:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   2389:   cat conftest.in >> conftest.h
                   2390:   rm -f conftest.in
                   2391:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   2392:     echo "$ac_file is unchanged"
                   2393:     rm -f conftest.h
                   2394:   else
                   2395:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   2396:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   2397:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   2398:       # The file is in a subdirectory.
                   2399:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   2400:     fi
                   2401:     rm -f $ac_file
                   2402:     mv conftest.h $ac_file
                   2403:   fi
                   2404: fi; done
                   2405: 
                   2406: EOF
                   2407: cat >> $CONFIG_STATUS <<EOF
                   2408: 
                   2409: 
                   2410: EOF
                   2411: cat >> $CONFIG_STATUS <<\EOF
                   2412: test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
                   2413: 
                   2414: exit 0
                   2415: EOF
                   2416: chmod +x $CONFIG_STATUS
                   2417: rm -fr confdefs* $ac_clean_files
                   2418: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   2419: 
                   2420: if test "$no_recursion" != yes; then
                   2421: 
                   2422:   # Remove --cache-file and --srcdir arguments so they do not pile up.
                   2423:   ac_sub_configure_args=
                   2424:   ac_prev=
                   2425:   for ac_arg in $ac_configure_args; do
                   2426:     if test -n "$ac_prev"; then
                   2427:       ac_prev=
                   2428:       continue
                   2429:     fi
                   2430:     case "$ac_arg" in
                   2431:     -cache-file | --cache-file | --cache-fil | --cache-fi \
                   2432:     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                   2433:       ac_prev=cache_file ;;
                   2434:     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                   2435:     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                   2436:       ;;
                   2437:     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                   2438:       ac_prev=srcdir ;;
                   2439:     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                   2440:       ;;
                   2441:     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
                   2442:     esac
                   2443:   done
                   2444: 
                   2445:   for ac_config_dir in libltdl; do
                   2446: 
                   2447:     # Do not complain, so a configure script can configure whichever
                   2448:     # parts of a large source tree are present.
                   2449:     if test ! -d $srcdir/$ac_config_dir; then
                   2450:       continue
                   2451:     fi
                   2452: 
                   2453:     echo configuring in $ac_config_dir
                   2454: 
                   2455:     case "$srcdir" in
                   2456:     .) ;;
                   2457:     *)
                   2458:       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
                   2459:       else
                   2460:         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
                   2461:       fi
                   2462:       ;;
                   2463:     esac
                   2464: 
                   2465:     ac_popdir=`pwd`
                   2466:     cd $ac_config_dir
                   2467: 
                   2468:       # A "../" for each directory in /$ac_config_dir.
                   2469:       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
                   2470: 
                   2471:     case "$srcdir" in
                   2472:     .) # No --srcdir option.  We are building in place.
                   2473:       ac_sub_srcdir=$srcdir ;;
                   2474:     /*) # Absolute path.
                   2475:       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
                   2476:     *) # Relative path.
                   2477:       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
                   2478:     esac
                   2479: 
                   2480:     # Check for guested configure; otherwise get Cygnus style configure.
                   2481:     if test -f $ac_sub_srcdir/configure; then
                   2482:       ac_sub_configure=$ac_sub_srcdir/configure
                   2483:     elif test -f $ac_sub_srcdir/configure.in; then
                   2484:       ac_sub_configure=$ac_configure
                   2485:     else
                   2486:       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
                   2487:       ac_sub_configure=
                   2488:     fi
                   2489: 
                   2490:     # The recursion is here.
                   2491:     if test -n "$ac_sub_configure"; then
                   2492: 
                   2493:       # Make the cache file name correct relative to the subdirectory.
                   2494:       case "$cache_file" in
                   2495:       /*) ac_sub_cache_file=$cache_file ;;
                   2496:       *) # Relative path.
                   2497:         ac_sub_cache_file="$ac_dots$cache_file" ;;
                   2498:       esac
                   2499:   case "$ac_given_INSTALL" in
                   2500:         [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   2501:         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   2502:         esac
                   2503: 
                   2504:       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
                   2505:       # The eval makes quoting arguments work.
                   2506:       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
                   2507:       then :
                   2508:       else
                   2509:         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
                   2510:       fi
                   2511:     fi
                   2512: 
                   2513:     cd $ac_popdir
                   2514:   done
                   2515: fi
                   2516: 

E-mail: