Annotation of pgsql/configure, revision 1.107

1.1       petere      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_default_prefix=/usr/local/pgsql
                     15: ac_help="$ac_help
1.30      petere     16:   --with-includes=DIRS    look for additional header files in DIRS"
1.1       petere     17: ac_help="$ac_help
                     18:   --with-libraries=DIRS   look for additional libraries in DIRS"
                     19: ac_help="$ac_help
1.30      petere     20:   --with-libs=DIRS        alternative spelling of --with-libraries"
1.1       petere     21: ac_help="$ac_help
1.29      petere     22:   --enable-locale         enable locale support"
1.1       petere     23: ac_help="$ac_help
1.43      petere     24:   --enable-recode         enable character set recode support"
1.1       petere     25: ac_help="$ac_help
1.29      petere     26:   --enable-multibyte      enable multibyte character support"
1.1       petere     27: ac_help="$ac_help
1.83      petere     28:   --enable-unicode-conversion  enable unicode conversion support"
1.74      ishii      29: ac_help="$ac_help
1.29      petere     30:   --with-pgport=PORTNUM   change default port number [5432]"
1.1       petere     31: ac_help="$ac_help
1.29      petere     32:   --with-maxbackends=N    set default maximum number of connections [32]"
1.3       tgl        33: ac_help="$ac_help
1.70      petere     34:   --disable-shared        do not build shared libraries"
1.67      petere     35: ac_help="$ac_help
1.73      petere     36:   --disable-rpath         do not embed shared library search path in executables"
                     37: ac_help="$ac_help
1.80      petere     38:   --enable-debug          build with debugging symbols (-g)"
                     39: ac_help="$ac_help
1.31      petere     40:   --enable-depend         turn on automatic dependency tracking"
                     41: ac_help="$ac_help
1.43      petere     42:   --enable-cassert        enable assertion checks (for debugging)"
                     43: ac_help="$ac_help
1.44      petere     44:   --with-tcl              build Tcl and Tk interfaces"
                     45: ac_help="$ac_help
                     46:   --without-tk            do not build Tk interfaces if Tcl is enabled"
1.1       petere     47: ac_help="$ac_help
                     48:   --with-tclconfig=DIR    tclConfig.sh and tkConfig.sh are in DIR"
                     49: ac_help="$ac_help
                     50:   --with-tkconfig=DIR     tkConfig.sh is in DIR"
                     51: ac_help="$ac_help
1.43      petere     52:   --with-perl             build Perl interface and PL/Perl"
1.4       petere     53: ac_help="$ac_help
                     54:   --with-python           build Python interface module"
1.1       petere     55: ac_help="$ac_help
1.43      petere     56:   --with-krb4[=DIR]       build with Kerberos 4 support [/usr/athena]"
1.12      petere     57: ac_help="$ac_help
1.43      petere     58:   --with-krb5[=DIR]       build with Kerberos 5 support [/usr/athena]"
1.12      petere     59: ac_help="$ac_help
1.70      petere     60:   --with-krb-srvnam=NAME  name of the service principal in Kerberos [postgres]"
1.12      petere     61: ac_help="$ac_help
1.28      petere     62:   --with-openssl[=DIR]    build with OpenSSL support [/usr/local/ssl]"
                     63: ac_help="$ac_help
1.15      petere     64:   --enable-odbc           build the ODBC driver package"
1.1       petere     65: ac_help="$ac_help
1.28      petere     66:   --with-odbcinst=DIR     default directory for odbcinst.ini [sysconfdir]"
1.3       tgl        67: ac_help="$ac_help
1.5       petere     68:   --with-CXX              build C++ modules (libpq++)"
1.1       petere     69: ac_help="$ac_help
1.64      petere     70:   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
                     71: ac_help="$ac_help
1.1       petere     72:   --enable-syslog         enable logging to syslog"
                     73: 
                     74: # Initialize some variables set by options.
                     75: # The variables have the same names as the options, with
                     76: # dashes changed to underlines.
                     77: build=NONE
                     78: cache_file=./config.cache
                     79: exec_prefix=NONE
                     80: host=NONE
                     81: no_create=
                     82: nonopt=NONE
                     83: no_recursion=
                     84: prefix=NONE
                     85: program_prefix=NONE
                     86: program_suffix=NONE
                     87: program_transform_name=s,x,x,
                     88: silent=
                     89: site=
                     90: srcdir=
                     91: target=NONE
                     92: verbose=
                     93: x_includes=NONE
                     94: x_libraries=NONE
                     95: bindir='${exec_prefix}/bin'
                     96: sbindir='${exec_prefix}/sbin'
                     97: libexecdir='${exec_prefix}/libexec'
                     98: datadir='${prefix}/share'
                     99: sysconfdir='${prefix}/etc'
                    100: sharedstatedir='${prefix}/com'
                    101: localstatedir='${prefix}/var'
                    102: libdir='${exec_prefix}/lib'
                    103: includedir='${prefix}/include'
                    104: oldincludedir='/usr/include'
1.32      petere    105: docdir='${prefix}/doc'
1.1       petere    106: mandir='${prefix}/man'
                    107: 
                    108: # Initialize some other variables.
                    109: subdirs=
                    110: MFLAGS= MAKEFLAGS=
                    111: SHELL=${CONFIG_SHELL-/bin/sh}
                    112: # Maximum number of lines to put in a shell here document.
                    113: ac_max_here_lines=12
                    114: 
                    115: ac_prev=
                    116: for ac_option
                    117: do
                    118: 
                    119:   # If the previous option needs an argument, assign it.
                    120:   if test -n "$ac_prev"; then
                    121:     eval "$ac_prev=\$ac_option"
                    122:     ac_prev=
                    123:     continue
                    124:   fi
                    125: 
                    126:   case "$ac_option" in
                    127:   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                    128:   *) ac_optarg= ;;
                    129:   esac
                    130: 
                    131:   # Accept the important Cygnus configure options, so we can diagnose typos.
                    132: 
                    133:   case "$ac_option" in
                    134: 
                    135:   -bindir | --bindir | --bindi | --bind | --bin | --bi)
                    136:     ac_prev=bindir ;;
                    137:   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
                    138:     bindir="$ac_optarg" ;;
                    139: 
                    140:   -build | --build | --buil | --bui | --bu)
                    141:     ac_prev=build ;;
                    142:   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
                    143:     build="$ac_optarg" ;;
                    144: 
                    145:   -cache-file | --cache-file | --cache-fil | --cache-fi \
                    146:   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
                    147:     ac_prev=cache_file ;;
                    148:   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
                    149:   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
                    150:     cache_file="$ac_optarg" ;;
                    151: 
                    152:   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
                    153:     ac_prev=datadir ;;
                    154:   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
                    155:   | --da=*)
                    156:     datadir="$ac_optarg" ;;
                    157: 
                    158:   -disable-* | --disable-*)
                    159:     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
                    160:     # Reject names that are not valid shell variable names.
                    161:     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    162:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    163:     fi
                    164:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    165:     eval "enable_${ac_feature}=no" ;;
                    166: 
                    167:   -enable-* | --enable-*)
                    168:     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
                    169:     # Reject names that are not valid shell variable names.
                    170:     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    171:       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
                    172:     fi
                    173:     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
                    174:     case "$ac_option" in
                    175:       *=*) ;;
                    176:       *) ac_optarg=yes ;;
                    177:     esac
                    178:     eval "enable_${ac_feature}='$ac_optarg'" ;;
                    179: 
                    180:   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
                    181:   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
                    182:   | --exec | --exe | --ex)
                    183:     ac_prev=exec_prefix ;;
                    184:   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
                    185:   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
                    186:   | --exec=* | --exe=* | --ex=*)
                    187:     exec_prefix="$ac_optarg" ;;
                    188: 
                    189:   -gas | --gas | --ga | --g)
                    190:     # Obsolete; use --with-gas.
                    191:     with_gas=yes ;;
                    192: 
                    193:   -help | --help | --hel | --he)
                    194:     # Omit some internal or obsolete options to make the list less imposing.
                    195:     # This message is too long to be a string in the A/UX 3.1 sh.
                    196:     cat << EOF
                    197: Usage: configure [options] [host]
                    198: Options: [defaults in brackets after descriptions]
                    199: Configuration:
                    200:   --cache-file=FILE       cache test results in FILE
                    201:   --help                  print this message
                    202:   --no-create             do not create output files
                    203:   --quiet, --silent       do not print \`checking...' messages
                    204:   --version               print the version of autoconf that created configure
                    205: Directory and file names:
                    206:   --prefix=PREFIX         install architecture-independent files in PREFIX
                    207:                           [$ac_default_prefix]
                    208:   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                    209:                           [same as prefix]
                    210:   --bindir=DIR            user executables in DIR [EPREFIX/bin]
                    211:   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
                    212:   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
                    213:   --datadir=DIR           read-only architecture-independent data in DIR
                    214:                           [PREFIX/share]
                    215:   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
                    216:   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                    217:                           [PREFIX/com]
                    218:   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
                    219:   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
                    220:   --includedir=DIR        C header files in DIR [PREFIX/include]
                    221:   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
1.32      petere    222:   --docdir=DIR           doc documentation in DIR [PREFIX/doc]
1.1       petere    223:   --mandir=DIR            man documentation in DIR [PREFIX/man]
                    224:   --srcdir=DIR            find the sources in DIR [configure dir or ..]
                    225:   --program-prefix=PREFIX prepend PREFIX to installed program names
                    226:   --program-suffix=SUFFIX append SUFFIX to installed program names
                    227:   --program-transform-name=PROGRAM
                    228:                           run sed PROGRAM on installed program names
                    229: EOF
                    230:     cat << EOF
                    231: Host type:
                    232:   --build=BUILD           configure for building on BUILD [BUILD=HOST]
                    233:   --host=HOST             configure for HOST [guessed]
                    234:   --target=TARGET         configure for TARGET [TARGET=HOST]
                    235: Features and packages:
                    236:   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
                    237:   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
                    238:   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
                    239:   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
                    240:   --x-includes=DIR        X include files are in DIR
                    241:   --x-libraries=DIR       X library files are in DIR
                    242: EOF
                    243:     if test -n "$ac_help"; then
                    244:       echo "--enable and --with options recognized:$ac_help"
                    245:     fi
                    246:     exit 0 ;;
                    247: 
                    248:   -host | --host | --hos | --ho)
                    249:     ac_prev=host ;;
                    250:   -host=* | --host=* | --hos=* | --ho=*)
                    251:     host="$ac_optarg" ;;
                    252: 
                    253:   -includedir | --includedir | --includedi | --included | --include \
                    254:   | --includ | --inclu | --incl | --inc)
                    255:     ac_prev=includedir ;;
                    256:   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
                    257:   | --includ=* | --inclu=* | --incl=* | --inc=*)
                    258:     includedir="$ac_optarg" ;;
                    259: 
1.32      petere    260:   -docdir | --docdir | --infodi | --infod | --doc | --inf)
                    261:     ac_prev=docdir ;;
                    262:   -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
                    263:     docdir="$ac_optarg" ;;
1.1       petere    264: 
                    265:   -libdir | --libdir | --libdi | --libd)
                    266:     ac_prev=libdir ;;
                    267:   -libdir=* | --libdir=* | --libdi=* | --libd=*)
                    268:     libdir="$ac_optarg" ;;
                    269: 
                    270:   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
                    271:   | --libexe | --libex | --libe)
                    272:     ac_prev=libexecdir ;;
                    273:   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
                    274:   | --libexe=* | --libex=* | --libe=*)
                    275:     libexecdir="$ac_optarg" ;;
                    276: 
                    277:   -localstatedir | --localstatedir | --localstatedi | --localstated \
                    278:   | --localstate | --localstat | --localsta | --localst \
                    279:   | --locals | --local | --loca | --loc | --lo)
                    280:     ac_prev=localstatedir ;;
                    281:   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
                    282:   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
                    283:   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
                    284:     localstatedir="$ac_optarg" ;;
                    285: 
                    286:   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
                    287:     ac_prev=mandir ;;
                    288:   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
                    289:     mandir="$ac_optarg" ;;
                    290: 
                    291:   -nfp | --nfp | --nf)
                    292:     # Obsolete; use --without-fp.
                    293:     with_fp=no ;;
                    294: 
                    295:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    296:   | --no-cr | --no-c)
                    297:     no_create=yes ;;
                    298: 
                    299:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    300:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
                    301:     no_recursion=yes ;;
                    302: 
                    303:   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
                    304:   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
                    305:   | --oldin | --oldi | --old | --ol | --o)
                    306:     ac_prev=oldincludedir ;;
                    307:   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
                    308:   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
                    309:   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
                    310:     oldincludedir="$ac_optarg" ;;
                    311: 
                    312:   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
                    313:     ac_prev=prefix ;;
                    314:   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
                    315:     prefix="$ac_optarg" ;;
                    316: 
                    317:   -program-prefix | --program-prefix | --program-prefi | --program-pref \
                    318:   | --program-pre | --program-pr | --program-p)
                    319:     ac_prev=program_prefix ;;
                    320:   -program-prefix=* | --program-prefix=* | --program-prefi=* \
                    321:   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
                    322:     program_prefix="$ac_optarg" ;;
                    323: 
                    324:   -program-suffix | --program-suffix | --program-suffi | --program-suff \
                    325:   | --program-suf | --program-su | --program-s)
                    326:     ac_prev=program_suffix ;;
                    327:   -program-suffix=* | --program-suffix=* | --program-suffi=* \
                    328:   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
                    329:     program_suffix="$ac_optarg" ;;
                    330: 
                    331:   -program-transform-name | --program-transform-name \
                    332:   | --program-transform-nam | --program-transform-na \
                    333:   | --program-transform-n | --program-transform- \
                    334:   | --program-transform | --program-transfor \
                    335:   | --program-transfo | --program-transf \
                    336:   | --program-trans | --program-tran \
                    337:   | --progr-tra | --program-tr | --program-t)
                    338:     ac_prev=program_transform_name ;;
                    339:   -program-transform-name=* | --program-transform-name=* \
                    340:   | --program-transform-nam=* | --program-transform-na=* \
                    341:   | --program-transform-n=* | --program-transform-=* \
                    342:   | --program-transform=* | --program-transfor=* \
                    343:   | --program-transfo=* | --program-transf=* \
                    344:   | --program-trans=* | --program-tran=* \
                    345:   | --progr-tra=* | --program-tr=* | --program-t=*)
                    346:     program_transform_name="$ac_optarg" ;;
                    347: 
                    348:   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
                    349:   | -silent | --silent | --silen | --sile | --sil)
                    350:     silent=yes ;;
                    351: 
                    352:   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
                    353:     ac_prev=sbindir ;;
                    354:   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
                    355:   | --sbi=* | --sb=*)
                    356:     sbindir="$ac_optarg" ;;
                    357: 
                    358:   -sharedstatedir | --sharedstatedir | --sharedstatedi \
                    359:   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
                    360:   | --sharedst | --shareds | --shared | --share | --shar \
                    361:   | --sha | --sh)
                    362:     ac_prev=sharedstatedir ;;
                    363:   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
                    364:   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
                    365:   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
                    366:   | --sha=* | --sh=*)
                    367:     sharedstatedir="$ac_optarg" ;;
                    368: 
                    369:   -site | --site | --sit)
                    370:     ac_prev=site ;;
                    371:   -site=* | --site=* | --sit=*)
                    372:     site="$ac_optarg" ;;
                    373: 
                    374:   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
                    375:     ac_prev=srcdir ;;
                    376:   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
                    377:     srcdir="$ac_optarg" ;;
                    378: 
                    379:   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
                    380:   | --syscon | --sysco | --sysc | --sys | --sy)
                    381:     ac_prev=sysconfdir ;;
                    382:   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
                    383:   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
                    384:     sysconfdir="$ac_optarg" ;;
                    385: 
                    386:   -target | --target | --targe | --targ | --tar | --ta | --t)
                    387:     ac_prev=target ;;
                    388:   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
                    389:     target="$ac_optarg" ;;
                    390: 
                    391:   -v | -verbose | --verbose | --verbos | --verbo | --verb)
                    392:     verbose=yes ;;
                    393: 
                    394:   -version | --version | --versio | --versi | --vers)
                    395:     echo "configure generated by autoconf version 2.13"
                    396:     exit 0 ;;
                    397: 
                    398:   -with-* | --with-*)
                    399:     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
                    400:     # Reject names that are not valid shell variable names.
                    401:     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
                    402:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    403:     fi
                    404:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    405:     case "$ac_option" in
                    406:       *=*) ;;
                    407:       *) ac_optarg=yes ;;
                    408:     esac
                    409:     eval "with_${ac_package}='$ac_optarg'" ;;
                    410: 
                    411:   -without-* | --without-*)
                    412:     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
                    413:     # Reject names that are not valid shell variable names.
                    414:     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
                    415:       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
                    416:     fi
                    417:     ac_package=`echo $ac_package| sed 's/-/_/g'`
                    418:     eval "with_${ac_package}=no" ;;
                    419: 
                    420:   --x)
                    421:     # Obsolete; use --with-x.
                    422:     with_x=yes ;;
                    423: 
                    424:   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
                    425:   | --x-incl | --x-inc | --x-in | --x-i)
                    426:     ac_prev=x_includes ;;
                    427:   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
                    428:   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
                    429:     x_includes="$ac_optarg" ;;
                    430: 
                    431:   -x-libraries | --x-libraries | --x-librarie | --x-librari \
                    432:   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
                    433:     ac_prev=x_libraries ;;
                    434:   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
                    435:   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
                    436:     x_libraries="$ac_optarg" ;;
                    437: 
                    438:   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
                    439:     ;;
                    440: 
                    441:   *)
                    442:     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
                    443:       echo "configure: warning: $ac_option: invalid host type" 1>&2
                    444:     fi
                    445:     if test "x$nonopt" != xNONE; then
                    446:       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
                    447:     fi
                    448:     nonopt="$ac_option"
                    449:     ;;
                    450: 
                    451:   esac
                    452: done
                    453: 
                    454: if test -n "$ac_prev"; then
                    455:   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
                    456: fi
                    457: 
                    458: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
                    459: 
                    460: # File descriptor usage:
                    461: # 0 standard input
                    462: # 1 file creation
                    463: # 2 errors and warnings
                    464: # 3 some systems may open it to /dev/tty
                    465: # 4 used on the Kubota Titan
                    466: # 6 checking for... messages and results
                    467: # 5 compiler messages saved in config.log
                    468: if test "$silent" = yes; then
                    469:   exec 6>/dev/null
                    470: else
                    471:   exec 6>&1
                    472: fi
                    473: exec 5>./config.log
                    474: 
                    475: echo "\
                    476: This file contains any messages produced by compilers while
                    477: running configure, to aid debugging if configure makes a mistake.
                    478: " 1>&5
                    479: 
                    480: # Strip out --no-create and --no-recursion so they do not pile up.
                    481: # Also quote any args containing shell metacharacters.
                    482: ac_configure_args=
                    483: for ac_arg
                    484: do
                    485:   case "$ac_arg" in
                    486:   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
                    487:   | --no-cr | --no-c) ;;
                    488:   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
                    489:   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
                    490:   *" "*|*"     "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
                    491:   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
                    492:   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
                    493:   esac
                    494: done
                    495: 
                    496: # NLS nuisances.
                    497: # Only set these to C if already set.  These must not be set unconditionally
                    498: # because not all systems understand e.g. LANG=C (notably SCO).
                    499: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
                    500: # Non-C LC_CTYPE values break the ctype check.
                    501: if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
                    502: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
                    503: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
                    504: if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
                    505: 
                    506: # confdefs.h avoids OS command line length limits that DEFS can exceed.
                    507: rm -rf conftest* confdefs.h
                    508: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
                    509: echo > confdefs.h
                    510: 
                    511: # A filename unique to this package, relative to the directory that
                    512: # configure is in, which we can look for to find out if srcdir is correct.
                    513: ac_unique_file=src/backend/access/common/heaptuple.c
                    514: 
                    515: # Find the source files, if location was not specified.
                    516: if test -z "$srcdir"; then
                    517:   ac_srcdir_defaulted=yes
                    518:   # Try the directory containing this script, then its parent.
                    519:   ac_prog=$0
                    520:   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
                    521:   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
                    522:   srcdir=$ac_confdir
                    523:   if test ! -r $srcdir/$ac_unique_file; then
                    524:     srcdir=..
                    525:   fi
                    526: else
                    527:   ac_srcdir_defaulted=no
                    528: fi
                    529: if test ! -r $srcdir/$ac_unique_file; then
                    530:   if test "$ac_srcdir_defaulted" = yes; then
                    531:     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
                    532:   else
                    533:     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
                    534:   fi
                    535: fi
                    536: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
                    537: 
                    538: # Prefer explicitly selected file to automatically selected ones.
                    539: if test -z "$CONFIG_SITE"; then
                    540:   if test "x$prefix" != xNONE; then
                    541:     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
                    542:   else
                    543:     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
                    544:   fi
                    545: fi
                    546: for ac_site_file in $CONFIG_SITE; do
                    547:   if test -r "$ac_site_file"; then
                    548:     echo "loading site script $ac_site_file"
                    549:     . "$ac_site_file"
                    550:   fi
                    551: done
                    552: 
                    553: if test -r "$cache_file"; then
                    554:   echo "loading cache $cache_file"
                    555:   . $cache_file
                    556: else
                    557:   echo "creating cache $cache_file"
                    558:   > $cache_file
                    559: fi
                    560: 
                    561: ac_ext=c
                    562: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                    563: ac_cpp='$CPP $CPPFLAGS'
                    564: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                    565: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                    566: cross_compiling=$ac_cv_prog_cc_cross
                    567: 
                    568: ac_exeext=
                    569: ac_objext=o
                    570: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
                    571:   # Stardent Vistra SVR4 grep lacks -e, says [email protected].
                    572:   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
                    573:     ac_n= ac_c='
                    574: ' ac_t='       '
                    575:   else
                    576:     ac_n=-n ac_c= ac_t=
                    577:   fi
                    578: else
                    579:   ac_n= ac_c='\c' ac_t=
                    580: fi
                    581: 
                    582: 
                    583: 
                    584: 
                    585: 
                    586: 
1.32      petere    587: 
                    588: 
                    589: 
1.1       petere    590: ac_aux_dir=
1.28      petere    591: for ac_dir in config $srcdir/config; do
1.1       petere    592:   if test -f $ac_dir/install-sh; then
                    593:     ac_aux_dir=$ac_dir
                    594:     ac_install_sh="$ac_aux_dir/install-sh -c"
                    595:     break
                    596:   elif test -f $ac_dir/install.sh; then
                    597:     ac_aux_dir=$ac_dir
                    598:     ac_install_sh="$ac_aux_dir/install.sh -c"
                    599:     break
                    600:   fi
                    601: done
                    602: if test -z "$ac_aux_dir"; then
1.28      petere    603:   { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
1.1       petere    604: fi
                    605: ac_config_guess=$ac_aux_dir/config.guess
                    606: ac_config_sub=$ac_aux_dir/config.sub
                    607: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
                    608: 
                    609: 
1.101     scrappy   610: VERSION='7.1beta4'
1.24      petere    611: 
                    612: cat >> confdefs.h <<EOF
                    613: #define PG_VERSION "$VERSION"
                    614: EOF
                    615: 
                    616: 
1.86      petere    617: unset CDPATH
1.63      petere    618: abs_top_srcdir=`cd $srcdir && pwd`
                    619: 
                    620: abs_top_builddir=`pwd`
                    621: 
                    622: 
1.1       petere    623: 
                    624: # Make sure we can run config.sub.
                    625: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
                    626: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
                    627: fi
                    628: 
                    629: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.86      petere    630: echo "configure:631: checking host system type" >&5
1.1       petere    631: 
                    632: host_alias=$host
                    633: case "$host_alias" in
                    634: NONE)
                    635:   case $nonopt in
                    636:   NONE)
                    637:     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
                    638:     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
                    639:     fi ;;
                    640:   *) host_alias=$nonopt ;;
                    641:   esac ;;
                    642: esac
                    643: 
                    644: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
                    645: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
                    646: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
                    647: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
                    648: echo "$ac_t""$host" 1>&6
                    649: 
                    650: 
1.46      petere    651: 
                    652: 
                    653: 
1.30      petere    654: template=
                    655: echo $ac_n "checking which template to use""... $ac_c" 1>&6
1.86      petere    656: echo "configure:657: checking which template to use" >&5
1.30      petere    657: 
1.43      petere    658: # Check whether --with-template was given
                    659: if test x"${with_template+set}" = xset; then
1.30      petere    660:   case $with_template in
1.43      petere    661:     yes)
                    662:       { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
                    663:       ;;
                    664:     no)
                    665:       { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
                    666:       ;;
                    667:     *)
                    668:       withval=$with_template
                    669:       
                    670:   case $withval in
1.30      petere    671:     list)   echo; ls "$srcdir/src/template"; exit;;
                    672:     *)      if test -f "$srcdir/src/template/$with_template" ; then
1.43      petere    673:               template=$withval
1.30      petere    674:             else
1.86      petere    675:               { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
1.30      petere    676:             fi;;
                    677:   esac
                    678: 
1.43      petere    679:       ;;
                    680:   esac # $with_template
                    681: else
                    682:   
                    683:   # --with-template not given
1.30      petere    684: 
                    685: case $host_os in
                    686:      aix*) template=aix ;;
1.56      momjian   687:     beos*) template=beos ;;
1.30      petere    688:     bsdi*) template=bsdi ;;
                    689:   cygwin*) template=win ;;
1.76      petere    690:   darwin*) template=darwin ;;
1.30      petere    691:     dgux*) template=dgux ;;
                    692:  freebsd*) template=freebsd ;;
                    693:     hpux*) template=hpux ;;
                    694:     irix*) template=irix5 ;;
                    695:    linux*) template=linux ;;
                    696:   netbsd*) template=netbsd ;;
                    697: nextstep*) template=nextstep ;;
                    698:  openbsd*) template=openbsd ;;
                    699:      osf*) template=osf ;;
                    700:      qnx*) template=qnx4 ;;
                    701:      sco*) template=sco ;;
1.60      petere    702:  solaris*) template=solaris ;;
1.30      petere    703:    sunos*) template=sunos4 ;;
1.1       petere    704:  sysv4.2*)
1.30      petere    705:         case $host_vendor in
                    706:           univel) template=univel ;;
                    707:         esac ;;
                    708:    sysv4*) template=svr4 ;;
                    709:  sysv5uw*) template=unixware ;;
                    710:   ultrix*) template=ultrix4 ;;
1.1       petere    711: esac
                    712: 
1.30      petere    713:   if test x"$template" = x"" ; then
                    714:     { echo "configure: error: 
                    715: *******************************************************************
                    716: PostgreSQL has apparently not been ported to your platform yet.
1.32      petere    717: To try a manual configuration, look into the src/template directory
1.86      petere    718: for a similar platform and use the '--with-template=' option.
1.1       petere    719: 
1.30      petere    720: Please also contact <[email protected]> to see about
1.86      petere    721: rectifying this.  Include the above 'checking host system type...'
1.30      petere    722: line.
                    723: *******************************************************************
                    724: " 1>&2; exit 1; }
                    725:   fi
                    726: 
1.43      petere    727: 
                    728: fi
1.1       petere    729: 
1.30      petere    730: echo "$ac_t""$template" 1>&6
                    731: 
                    732: PORTNAME=$template
1.1       petere    733: 
                    734: 
                    735: 
                    736: 
                    737: 
                    738: 
                    739: 
1.60      petere    740: # Pick right test-and-set (TAS) code.  Most platforms have inline
                    741: # assembler code in src/include/storage/s_lock.h, so we just use
                    742: # a dummy file here.
                    743: case $host in
                    744:   *-*-hpux*)        need_tas=yes; tas_file=hpux.s ;;
                    745:   sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
                    746:   i?86-*-solaris)   need_tas=yes; tas_file=solaris_i386.s ;;
1.65      petere    747:   *)                need_tas=no;  tas_file=dummy.s ;;
1.30      petere    748: esac
1.1       petere    749: 
1.65      petere    750: 
1.30      petere    751: if test "$need_tas" = yes ; then
                    752:   TAS=tas.o
1.1       petere    753: fi
                    754: 
                    755: 
                    756: 
1.30      petere    757: 
                    758: ##
                    759: ## Command line options
                    760: ##
1.1       petere    761: 
                    762: 
1.30      petere    763: #
                    764: # Add non-standard directories to the include path
                    765: #
1.43      petere    766: # Check whether --with-includes was given
                    767: if test x"${with_includes+set}" = xset; then
                    768:   case $with_includes in
                    769:     yes)
                    770:       { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
                    771:       ;;
                    772:     no)
                    773:       { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
                    774:       ;;
                    775:   esac # $with_includes
1.1       petere    776: fi
                    777: 
                    778: 
1.30      petere    779: #
                    780: # Add non-standard directories to the library search path
                    781: #
1.43      petere    782: # Check whether --with-libraries was given
                    783: if test x"${with_libraries+set}" = xset; then
                    784:   case $with_libraries in
                    785:     yes)
                    786:       { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
                    787:       ;;
                    788:     no)
                    789:       { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
                    790:       ;;
                    791:     *)
                    792:       withval=$with_libraries
                    793:       LIBRARY_DIRS=$withval
                    794:       ;;
                    795:   esac # $with_libraries
1.1       petere    796: fi
                    797: 
1.43      petere    798: # Check whether --with-libs was given
                    799: if test x"${with_libs+set}" = xset; then
                    800:   case $with_libs in
                    801:     yes)
                    802:       { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
                    803:       ;;
                    804:     no)
                    805:       { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
                    806:       ;;
                    807:     *)
                    808:       withval=$with_libs
                    809:       LIBRARY_DIRS=$withval
                    810:       ;;
                    811:   esac # $with_libs
1.1       petere    812: fi
                    813: 
1.29      petere    814: 
                    815: #
                    816: # Locale (--enable-locale)
                    817: #
                    818: echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
1.86      petere    819: echo "configure:820: checking whether to build with locale support" >&5
1.43      petere    820: # Check whether --enable-locale was given
                    821: if test x"${enable_locale+set}" = xset; then
                    822:   case $enable_locale in
                    823:     yes)
                    824:       cat >> confdefs.h <<\EOF
1.30      petere    825: #define USE_LOCALE 1
1.1       petere    826: EOF
1.29      petere    827: 
1.43      petere    828:       ;;
                    829:     no)
                    830:       :
                    831:       ;;
                    832:     *)
                    833:       enableval=$enable_locale
                    834:       { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
                    835:       ;;
                    836:   esac # $enable_locale
1.1       petere    837: else
1.29      petere    838:   enable_locale=no
1.43      petere    839: 
1.29      petere    840: fi
                    841: echo "$ac_t""$enable_locale" 1>&6
1.1       petere    842: 
                    843: 
1.29      petere    844: #
1.43      petere    845: # Character set recode (--enable-recode)
1.29      petere    846: #
1.43      petere    847: echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
1.86      petere    848: echo "configure:849: checking whether to build with recode support" >&5
1.43      petere    849: # Check whether --enable-recode was given
                    850: if test x"${enable_recode+set}" = xset; then
                    851:   case $enable_recode in
                    852:     yes)
                    853:       cat >> confdefs.h <<\EOF
1.30      petere    854: #define CYR_RECODE 1
1.1       petere    855: EOF
1.29      petere    856: 
1.43      petere    857:       ;;
                    858:     no)
                    859:       :
                    860:       ;;
                    861:     *)
                    862:       enableval=$enable_recode
                    863:       { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
                    864:       ;;
                    865:   esac # $enable_recode
1.1       petere    866: else
1.29      petere    867:   enable_recode=no
1.43      petere    868: 
1.1       petere    869: fi
1.29      petere    870: echo "$ac_t""$enable_recode" 1>&6
1.1       petere    871: 
                    872: 
1.29      petere    873: #
                    874: # Multibyte support
                    875: #
                    876: MULTIBYTE=
                    877: echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
1.86      petere    878: echo "configure:879: checking whether to build with multibyte character support" >&5
1.43      petere    879: 
                    880: # Check whether --enable-multibyte was given
                    881: if test x"${enable_multibyte+set}" = xset; then
                    882:   case $enable_multibyte in
                    883:     yes)
                    884:       MULTIBYTE=SQL_ASCII
                    885:       ;;
                    886:     no)
                    887:       :
                    888:       ;;
                    889:     *)
                    890:       enableval=$enable_multibyte
                    891:       enable_multibyte=yes
                    892: 
1.29      petere    893:   case $enableval in
                    894:     SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
1.43      petere    895:       MULTIBYTE=$enableval;;
                    896:     *)
                    897:       { echo "configure: error: argument to --enable-multibyte must be one of:
1.1       petere    898:   SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
                    899:   UNICODE, MULE_INTERNAL,
                    900:   LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
                    901:   KOI8, WIN, ALT
1.43      petere    902: Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
1.29      petere    903:   esac
1.1       petere    904: 
1.43      petere    905:       ;;
                    906:   esac # $enable_multibyte
1.1       petere    907: else
1.29      petere    908:   enable_multibyte=no
                    909: fi
                    910: 
1.43      petere    911: if test "$enable_multibyte" = yes; then
                    912:   
1.29      petere    913:   cat >> confdefs.h <<\EOF
1.30      petere    914: #define MULTIBYTE 1
1.29      petere    915: EOF
1.1       petere    916: 
1.29      petere    917:   echo "$ac_t""yes, default $MULTIBYTE" 1>&6
1.43      petere    918: 
1.29      petere    919: else
                    920:   echo "$ac_t""no" 1>&6
1.3       tgl       921: fi
1.1       petere    922: 
                    923: 
1.43      petere    924: 
                    925: 
1.74      ishii     926: #
1.83      petere    927: # Unicode conversion (--enable-unicode-conversion)
1.74      ishii     928: #
                    929: echo $ac_n "checking whether to build with Unicode conversion support""... $ac_c" 1>&6
1.86      petere    930: echo "configure:931: checking whether to build with Unicode conversion support" >&5
1.83      petere    931: # Check whether --enable-unicode-conversion was given
                    932: if test x"${enable_unicode_conversion+set}" = xset; then
                    933:   case $enable_unicode_conversion in
1.74      ishii     934:     yes)
1.83      petere    935:       if test -z "$MULTIBYTE"; then
                    936:   { echo "configure: error: --enable-unicode-conversion only works with --enable-multibyte" 1>&2; exit 1; }
                    937: fi
                    938: cat >> confdefs.h <<\EOF
1.74      ishii     939: #define UNICODE_CONVERSION 1
                    940: EOF
                    941: 
                    942:       ;;
                    943:     no)
                    944:       :
                    945:       ;;
                    946:     *)
1.83      petere    947:       enableval=$enable_unicode_conversion
                    948:       { echo "configure: error: no argument expected for --enable-unicode-conversion option" 1>&2; exit 1; }
1.74      ishii     949:       ;;
1.83      petere    950:   esac # $enable_unicode_conversion
1.74      ishii     951: else
1.83      petere    952:   enable_unicode_conversion=no
1.74      ishii     953: 
                    954: fi
1.83      petere    955: echo "$ac_t""$enable_unicode_conversion" 1>&6
1.43      petere    956: 
1.29      petere    957: #
                    958: # Default port number (--with-pgport), default 5432
                    959: #
                    960: echo $ac_n "checking for default port number""... $ac_c" 1>&6
1.86      petere    961: echo "configure:962: checking for default port number" >&5
1.43      petere    962: # Check whether --with-pgport was given
                    963: if test x"${with_pgport+set}" = xset; then
                    964:   case $with_pgport in
                    965:     yes)
                    966:       { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
                    967:       ;;
                    968:     no)
                    969:       { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
                    970:       ;;
                    971:     *)
                    972:       withval=$with_pgport
                    973:       default_port=$withval
                    974:       ;;
                    975:   esac # $with_pgport
1.1       petere    976: else
                    977:   default_port=5432
                    978: fi
1.104     tgl       979: echo "$ac_t""$default_port" 1>&6
                    980: # Need both of these because some places want an integer and some a string
1.1       petere    981: cat >> confdefs.h <<EOF
                    982: #define DEF_PGPORT ${default_port}
                    983: EOF
                    984: 
                    985: cat >> confdefs.h <<EOF
                    986: #define DEF_PGPORT_STR "${default_port}"
                    987: EOF
                    988: 
                    989: 
                    990: 
1.29      petere    991: #
                    992: # Maximum number of allowed connections (--with-maxbackends), default 32
                    993: #
                    994: echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
1.86      petere    995: echo "configure:996: checking for default soft limit on number of connections" >&5
1.43      petere    996: # Check whether --with-maxbackends was given
                    997: if test x"${with_maxbackends+set}" = xset; then
                    998:   case $with_maxbackends in
                    999:     yes)
                   1000:       { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
                   1001:       ;;
                   1002:     no)
                   1003:       { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
                   1004:       ;;
                   1005:   esac # $with_maxbackends
1.1       petere   1006: else
1.29      petere   1007:   with_maxbackends=32
                   1008: fi
                   1009: echo "$ac_t""$with_maxbackends" 1>&6
                   1010: cat >> confdefs.h <<EOF
                   1011: #define DEF_MAXBACKENDS $with_maxbackends
1.1       petere   1012: EOF
                   1013: 
                   1014: 
                   1015: 
1.29      petere   1016: #
1.67      petere   1017: # Option to disable shared libraries
                   1018: #
                   1019: # Check whether --enable-shared was given
                   1020: if test x"${enable_shared+set}" = xset; then
                   1021:   case $enable_shared in
                   1022:     yes)
                   1023:       :
                   1024:       ;;
                   1025:     no)
                   1026:       :
                   1027:       ;;
                   1028:     *)
                   1029:       enableval=$enable_shared
                   1030:       { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
                   1031:       ;;
                   1032:   esac # $enable_shared
                   1033: else
                   1034:   enable_shared=yes
                   1035: 
                   1036: fi
                   1037: 
                   1038: 
1.73      petere   1039: #
                   1040: # '-rpath'-like feature can be disabled
                   1041: #
                   1042: # Check whether --enable-rpath was given
                   1043: if test x"${enable_rpath+set}" = xset; then
                   1044:   case $enable_rpath in
                   1045:     yes)
                   1046:       :
                   1047:       ;;
                   1048:     no)
                   1049:       :
                   1050:       ;;
                   1051:     *)
                   1052:       enableval=$enable_rpath
                   1053:       { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
                   1054:       ;;
                   1055:   esac # $enable_rpath
                   1056: else
                   1057:   enable_rpath=yes
                   1058: 
                   1059: fi
                   1060: 
                   1061: 
1.67      petere   1062: 
                   1063: #
1.80      petere   1064: # --enable-debug adds -g to compiler flags
                   1065: #
                   1066: # Check whether --enable-debug was given
                   1067: if test x"${enable_debug+set}" = xset; then
                   1068:   case $enable_debug in
                   1069:     yes)
                   1070:       :
                   1071:       ;;
                   1072:     no)
                   1073:       :
                   1074:       ;;
                   1075:     *)
                   1076:       enableval=$enable_debug
                   1077:       { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
                   1078:       ;;
                   1079:   esac # $enable_debug
                   1080: else
                   1081:   enable_debug=no
                   1082: 
                   1083: fi
                   1084: 
                   1085: 
                   1086: #
1.30      petere   1087: # C compiler
                   1088: #
                   1089: 
1.29      petere   1090: # For historical reasons you can also use --with-CC to specify the C compiler
                   1091: # to use, although the standard way to do this is to set the CC environment
                   1092: # variable.
1.43      petere   1093: # Check whether --with-CC was given
                   1094: if test x"${with_CC+set}" = xset; then
1.29      petere   1095:   case $with_CC in
1.43      petere   1096:     yes)
                   1097:       { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
                   1098:       ;;
                   1099:     no)
                   1100:       { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
                   1101:       ;;
                   1102:     *)
                   1103:       withval=$with_CC
                   1104:       CC=$with_CC
                   1105:       ;;
                   1106:   esac # $with_CC
1.1       petere   1107: fi
                   1108: 
1.30      petere   1109: # On AIX, default compiler to xlc.
                   1110: if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1.1       petere   1111: 
1.80      petere   1112: # Save CFLAGS from the environment
                   1113: has_environ_CFLAGS="${CFLAGS+yes}"
                   1114: save_CFLAGS=$CFLAGS
                   1115: 
1.1       petere   1116: # Extract the first word of "gcc", so it can be a program name with args.
                   1117: set dummy gcc; ac_word=$2
                   1118: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.86      petere   1119: echo "configure:1120: checking for $ac_word" >&5
1.1       petere   1120: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1121:   echo $ac_n "(cached) $ac_c" 1>&6
                   1122: else
                   1123:   if test -n "$CC"; then
                   1124:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1125: else
                   1126:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1127:   ac_dummy="$PATH"
                   1128:   for ac_dir in $ac_dummy; do
                   1129:     test -z "$ac_dir" && ac_dir=.
                   1130:     if test -f $ac_dir/$ac_word; then
                   1131:       ac_cv_prog_CC="gcc"
                   1132:       break
                   1133:     fi
                   1134:   done
                   1135:   IFS="$ac_save_ifs"
                   1136: fi
                   1137: fi
                   1138: CC="$ac_cv_prog_CC"
                   1139: if test -n "$CC"; then
                   1140:   echo "$ac_t""$CC" 1>&6
                   1141: else
                   1142:   echo "$ac_t""no" 1>&6
                   1143: fi
                   1144: 
                   1145: if test -z "$CC"; then
                   1146:   # Extract the first word of "cc", so it can be a program name with args.
                   1147: set dummy cc; ac_word=$2
                   1148: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.86      petere   1149: echo "configure:1150: checking for $ac_word" >&5
1.1       petere   1150: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1151:   echo $ac_n "(cached) $ac_c" 1>&6
                   1152: else
                   1153:   if test -n "$CC"; then
                   1154:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1155: else
                   1156:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1157:   ac_prog_rejected=no
                   1158:   ac_dummy="$PATH"
                   1159:   for ac_dir in $ac_dummy; do
                   1160:     test -z "$ac_dir" && ac_dir=.
                   1161:     if test -f $ac_dir/$ac_word; then
                   1162:       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
                   1163:         ac_prog_rejected=yes
                   1164:        continue
                   1165:       fi
                   1166:       ac_cv_prog_CC="cc"
                   1167:       break
                   1168:     fi
                   1169:   done
                   1170:   IFS="$ac_save_ifs"
                   1171: if test $ac_prog_rejected = yes; then
                   1172:   # We found a bogon in the path, so make sure we never use it.
                   1173:   set dummy $ac_cv_prog_CC
                   1174:   shift
                   1175:   if test $# -gt 0; then
                   1176:     # We chose a different compiler from the bogus one.
                   1177:     # However, it has the same basename, so the bogon will be chosen
                   1178:     # first if we set CC to just the basename; use the full file name.
                   1179:     shift
                   1180:     set dummy "$ac_dir/$ac_word" "$@"
                   1181:     shift
                   1182:     ac_cv_prog_CC="$@"
                   1183:   fi
                   1184: fi
                   1185: fi
                   1186: fi
                   1187: CC="$ac_cv_prog_CC"
                   1188: if test -n "$CC"; then
                   1189:   echo "$ac_t""$CC" 1>&6
                   1190: else
                   1191:   echo "$ac_t""no" 1>&6
                   1192: fi
                   1193: 
                   1194:   if test -z "$CC"; then
                   1195:     case "`uname -s`" in
                   1196:     *win32* | *WIN32*)
                   1197:       # Extract the first word of "cl", so it can be a program name with args.
                   1198: set dummy cl; ac_word=$2
                   1199: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.86      petere   1200: echo "configure:1201: checking for $ac_word" >&5
1.1       petere   1201: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
                   1202:   echo $ac_n "(cached) $ac_c" 1>&6
                   1203: else
                   1204:   if test -n "$CC"; then
                   1205:   ac_cv_prog_CC="$CC" # Let the user override the test.
                   1206: else
                   1207:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1208:   ac_dummy="$PATH"
                   1209:   for ac_dir in $ac_dummy; do
                   1210:     test -z "$ac_dir" && ac_dir=.
                   1211:     if test -f $ac_dir/$ac_word; then
                   1212:       ac_cv_prog_CC="cl"
                   1213:       break
                   1214:     fi
                   1215:   done
                   1216:   IFS="$ac_save_ifs"
                   1217: fi
                   1218: fi
                   1219: CC="$ac_cv_prog_CC"
                   1220: if test -n "$CC"; then
                   1221:   echo "$ac_t""$CC" 1>&6
                   1222: else
                   1223:   echo "$ac_t""no" 1>&6
                   1224: fi
                   1225:  ;;
                   1226:     esac
                   1227:   fi
                   1228:   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
                   1229: fi
                   1230: 
                   1231: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.86      petere   1232: echo "configure:1233: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1       petere   1233: 
                   1234: ac_ext=c
                   1235: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1236: ac_cpp='$CPP $CPPFLAGS'
                   1237: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1238: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1239: cross_compiling=$ac_cv_prog_cc_cross
                   1240: 
                   1241: cat > conftest.$ac_ext << EOF
                   1242: 
1.86      petere   1243: #line 1244 "configure"
1.1       petere   1244: #include "confdefs.h"
                   1245: 
                   1246: main(){return(0);}
                   1247: EOF
1.86      petere   1248: if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   1249:   ac_cv_prog_cc_works=yes
                   1250:   # If we can't run a trivial program, we are probably using a cross compiler.
                   1251:   if (./conftest; exit) 2>/dev/null; then
                   1252:     ac_cv_prog_cc_cross=no
                   1253:   else
                   1254:     ac_cv_prog_cc_cross=yes
                   1255:   fi
                   1256: else
                   1257:   echo "configure: failed program was:" >&5
                   1258:   cat conftest.$ac_ext >&5
                   1259:   ac_cv_prog_cc_works=no
                   1260: fi
                   1261: rm -fr conftest*
                   1262: ac_ext=c
                   1263: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1264: ac_cpp='$CPP $CPPFLAGS'
                   1265: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1266: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1267: cross_compiling=$ac_cv_prog_cc_cross
                   1268: 
                   1269: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                   1270: if test $ac_cv_prog_cc_works = no; then
                   1271:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                   1272: fi
                   1273: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.86      petere   1274: echo "configure:1275: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       petere   1275: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                   1276: cross_compiling=$ac_cv_prog_cc_cross
                   1277: 
                   1278: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.86      petere   1279: echo "configure:1280: checking whether we are using GNU C" >&5
1.1       petere   1280: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
                   1281:   echo $ac_n "(cached) $ac_c" 1>&6
                   1282: else
                   1283:   cat > conftest.c <<EOF
                   1284: #ifdef __GNUC__
                   1285:   yes;
                   1286: #endif
                   1287: EOF
1.86      petere   1288: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       petere   1289:   ac_cv_prog_gcc=yes
                   1290: else
                   1291:   ac_cv_prog_gcc=no
                   1292: fi
                   1293: fi
                   1294: 
                   1295: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
                   1296: 
                   1297: if test $ac_cv_prog_gcc = yes; then
                   1298:   GCC=yes
                   1299: else
                   1300:   GCC=
                   1301: fi
                   1302: 
                   1303: ac_test_CFLAGS="${CFLAGS+set}"
                   1304: ac_save_CFLAGS="$CFLAGS"
                   1305: CFLAGS=
                   1306: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.86      petere   1307: echo "configure:1308: checking whether ${CC-cc} accepts -g" >&5
1.1       petere   1308: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
                   1309:   echo $ac_n "(cached) $ac_c" 1>&6
                   1310: else
                   1311:   echo 'void f(){}' > conftest.c
                   1312: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
                   1313:   ac_cv_prog_cc_g=yes
                   1314: else
                   1315:   ac_cv_prog_cc_g=no
                   1316: fi
                   1317: rm -f conftest*
                   1318: 
                   1319: fi
                   1320: 
                   1321: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
                   1322: if test "$ac_test_CFLAGS" = set; then
                   1323:   CFLAGS="$ac_save_CFLAGS"
                   1324: elif test $ac_cv_prog_cc_g = yes; then
                   1325:   if test "$GCC" = yes; then
                   1326:     CFLAGS="-g -O2"
                   1327:   else
                   1328:     CFLAGS="-g"
                   1329:   fi
                   1330: else
                   1331:   if test "$GCC" = yes; then
                   1332:     CFLAGS="-O2"
                   1333:   else
                   1334:     CFLAGS=
                   1335:   fi
                   1336: fi
                   1337: 
1.30      petere   1338: # Read the template
                   1339: . "$srcdir/src/template/$template" || exit
1.80      petere   1340: 
                   1341: if test "$has_environ_CFLAGS" = yes; then
                   1342:   CFLAGS=$save_CFLAGS
                   1343: fi
                   1344: if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
                   1345:   CFLAGS="$CFLAGS -g"
                   1346: fi
1.30      petere   1347: echo "using CFLAGS=$CFLAGS"
                   1348: # Check if the compiler still works with the template settings
                   1349: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.86      petere   1350: echo "configure:1351: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.30      petere   1351: 
                   1352: ac_ext=c
                   1353: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1354: ac_cpp='$CPP $CPPFLAGS'
                   1355: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1356: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1357: cross_compiling=$ac_cv_prog_cc_cross
                   1358: 
                   1359: cat > conftest.$ac_ext << EOF
                   1360: 
1.86      petere   1361: #line 1362 "configure"
1.30      petere   1362: #include "confdefs.h"
                   1363: 
                   1364: main(){return(0);}
                   1365: EOF
1.86      petere   1366: if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.30      petere   1367:   ac_cv_prog_cc_works=yes
                   1368:   # If we can't run a trivial program, we are probably using a cross compiler.
                   1369:   if (./conftest; exit) 2>/dev/null; then
                   1370:     ac_cv_prog_cc_cross=no
                   1371:   else
                   1372:     ac_cv_prog_cc_cross=yes
                   1373:   fi
                   1374: else
                   1375:   echo "configure: failed program was:" >&5
                   1376:   cat conftest.$ac_ext >&5
                   1377:   ac_cv_prog_cc_works=no
                   1378: fi
                   1379: rm -fr conftest*
                   1380: ac_ext=c
                   1381: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   1382: ac_cpp='$CPP $CPPFLAGS'
                   1383: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   1384: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   1385: cross_compiling=$ac_cv_prog_cc_cross
                   1386: 
                   1387: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
                   1388: if test $ac_cv_prog_cc_works = no; then
                   1389:   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
                   1390: fi
                   1391: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.86      petere   1392: echo "configure:1393: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.30      petere   1393: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
                   1394: cross_compiling=$ac_cv_prog_cc_cross
                   1395: 
1.45      petere   1396: echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1.86      petere   1397: echo "configure:1398: checking for Cygwin environment" >&5
1.45      petere   1398: if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
                   1399:   echo $ac_n "(cached) $ac_c" 1>&6
                   1400: else
                   1401:   cat > conftest.$ac_ext <<EOF
1.86      petere   1402: #line 1403 "configure"
1.45      petere   1403: #include "confdefs.h"
                   1404: 
                   1405: int main() {
                   1406: 
                   1407: #ifndef __CYGWIN__
                   1408: #define __CYGWIN__ __CYGWIN32__
                   1409: #endif
                   1410: return __CYGWIN__;
                   1411: ; return 0; }
                   1412: EOF
1.86      petere   1413: if { (eval echo configure:1414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.45      petere   1414:   rm -rf conftest*
                   1415:   ac_cv_cygwin=yes
                   1416: else
                   1417:   echo "configure: failed program was:" >&5
                   1418:   cat conftest.$ac_ext >&5
                   1419:   rm -rf conftest*
                   1420:   ac_cv_cygwin=no
                   1421: fi
                   1422: rm -f conftest*
                   1423: rm -f conftest*
                   1424: fi
                   1425: 
                   1426: echo "$ac_t""$ac_cv_cygwin" 1>&6
                   1427: CYGWIN=
                   1428: test "$ac_cv_cygwin" = yes && CYGWIN=yes
                   1429: echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1.86      petere   1430: echo "configure:1431: checking for mingw32 environment" >&5
1.45      petere   1431: if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
                   1432:   echo $ac_n "(cached) $ac_c" 1>&6
                   1433: else
                   1434:   cat > conftest.$ac_ext <<EOF
1.86      petere   1435: #line 1436 "configure"
1.45      petere   1436: #include "confdefs.h"
                   1437: 
                   1438: int main() {
                   1439: return __MINGW32__;
                   1440: ; return 0; }
                   1441: EOF
1.86      petere   1442: if { (eval echo configure:1443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.45      petere   1443:   rm -rf conftest*
                   1444:   ac_cv_mingw32=yes
                   1445: else
                   1446:   echo "configure: failed program was:" >&5
                   1447:   cat conftest.$ac_ext >&5
                   1448:   rm -rf conftest*
                   1449:   ac_cv_mingw32=no
                   1450: fi
                   1451: rm -f conftest*
                   1452: rm -f conftest*
                   1453: fi
                   1454: 
                   1455: echo "$ac_t""$ac_cv_mingw32" 1>&6
                   1456: MINGW32=
                   1457: test "$ac_cv_mingw32" = yes && MINGW32=yes
                   1458: 
                   1459: 
                   1460: echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1.86      petere   1461: echo "configure:1462: checking for executable suffix" >&5
1.45      petere   1462: if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
                   1463:   echo $ac_n "(cached) $ac_c" 1>&6
                   1464: else
                   1465:   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
                   1466:   ac_cv_exeext=.exe
                   1467: else
                   1468:   rm -f conftest*
                   1469:   echo 'int main () { return 0; }' > conftest.$ac_ext
                   1470:   ac_cv_exeext=
1.86      petere   1471:   if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.45      petere   1472:     for file in conftest.*; do
                   1473:       case $file in
                   1474:       *.c | *.o | *.obj) ;;
                   1475:       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
                   1476:       esac
                   1477:     done
                   1478:   else
                   1479:     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
                   1480:   fi
                   1481:   rm -f conftest*
                   1482:   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
                   1483: fi
                   1484: fi
                   1485: 
                   1486: EXEEXT=""
                   1487: test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
                   1488: echo "$ac_t""${ac_cv_exeext}" 1>&6
                   1489: ac_exeext=$EXEEXT
                   1490: 
1.1       petere   1491: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.86      petere   1492: echo "configure:1493: checking how to run the C preprocessor" >&5
1.1       petere   1493: # On Suns, sometimes $CPP names a directory.
                   1494: if test -n "$CPP" && test -d "$CPP"; then
                   1495:   CPP=
                   1496: fi
                   1497: if test -z "$CPP"; then
                   1498: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
                   1499:   echo $ac_n "(cached) $ac_c" 1>&6
                   1500: else
                   1501:     # This must be in double quotes, not single quotes, because CPP may get
                   1502:   # substituted into the Makefile and "${CC-cc}" will confuse make.
                   1503:   CPP="${CC-cc} -E"
                   1504:   # On the NeXT, cc -E runs the code through the compiler's parser,
                   1505:   # not just through cpp.
                   1506:   cat > conftest.$ac_ext <<EOF
1.86      petere   1507: #line 1508 "configure"
1.1       petere   1508: #include "confdefs.h"
                   1509: #include <assert.h>
                   1510: Syntax Error
                   1511: EOF
                   1512: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.86      petere   1513: { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   1514: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1515: if test -z "$ac_err"; then
                   1516:   :
                   1517: else
                   1518:   echo "$ac_err" >&5
                   1519:   echo "configure: failed program was:" >&5
                   1520:   cat conftest.$ac_ext >&5
                   1521:   rm -rf conftest*
                   1522:   CPP="${CC-cc} -E -traditional-cpp"
                   1523:   cat > conftest.$ac_ext <<EOF
1.86      petere   1524: #line 1525 "configure"
1.1       petere   1525: #include "confdefs.h"
                   1526: #include <assert.h>
                   1527: Syntax Error
                   1528: EOF
                   1529: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.86      petere   1530: { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   1531: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1532: if test -z "$ac_err"; then
                   1533:   :
                   1534: else
                   1535:   echo "$ac_err" >&5
                   1536:   echo "configure: failed program was:" >&5
                   1537:   cat conftest.$ac_ext >&5
                   1538:   rm -rf conftest*
                   1539:   CPP="${CC-cc} -nologo -E"
                   1540:   cat > conftest.$ac_ext <<EOF
1.86      petere   1541: #line 1542 "configure"
1.1       petere   1542: #include "confdefs.h"
                   1543: #include <assert.h>
                   1544: Syntax Error
                   1545: EOF
                   1546: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.86      petere   1547: { (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   1548: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   1549: if test -z "$ac_err"; then
                   1550:   :
                   1551: else
                   1552:   echo "$ac_err" >&5
                   1553:   echo "configure: failed program was:" >&5
                   1554:   cat conftest.$ac_ext >&5
                   1555:   rm -rf conftest*
                   1556:   CPP=/lib/cpp
                   1557: fi
                   1558: rm -f conftest*
                   1559: fi
                   1560: rm -f conftest*
                   1561: fi
                   1562: rm -f conftest*
                   1563:   ac_cv_prog_CPP="$CPP"
                   1564: fi
                   1565:   CPP="$ac_cv_prog_CPP"
                   1566: else
                   1567:   ac_cv_prog_CPP="$CPP"
                   1568: fi
                   1569: echo "$ac_t""$CPP" 1>&6
                   1570: 
                   1571: if test $ac_cv_prog_gcc = yes; then
                   1572:     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1.86      petere   1573: echo "configure:1574: checking whether ${CC-cc} needs -traditional" >&5
1.1       petere   1574: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
                   1575:   echo $ac_n "(cached) $ac_c" 1>&6
                   1576: else
                   1577:     ac_pattern="Autoconf.*'x'"
                   1578:   cat > conftest.$ac_ext <<EOF
1.86      petere   1579: #line 1580 "configure"
1.1       petere   1580: #include "confdefs.h"
                   1581: #include <sgtty.h>
                   1582: Autoconf TIOCGETP
                   1583: EOF
                   1584: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1585:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   1586:   rm -rf conftest*
                   1587:   ac_cv_prog_gcc_traditional=yes
                   1588: else
                   1589:   rm -rf conftest*
                   1590:   ac_cv_prog_gcc_traditional=no
                   1591: fi
                   1592: rm -f conftest*
                   1593: 
                   1594: 
                   1595:   if test $ac_cv_prog_gcc_traditional = no; then
                   1596:     cat > conftest.$ac_ext <<EOF
1.86      petere   1597: #line 1598 "configure"
1.1       petere   1598: #include "confdefs.h"
                   1599: #include <termio.h>
                   1600: Autoconf TCGETA
                   1601: EOF
                   1602: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   1603:   egrep "$ac_pattern" >/dev/null 2>&1; then
                   1604:   rm -rf conftest*
                   1605:   ac_cv_prog_gcc_traditional=yes
                   1606: fi
                   1607: rm -f conftest*
                   1608: 
                   1609:   fi
                   1610: fi
                   1611: 
                   1612: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
                   1613:   if test $ac_cv_prog_gcc_traditional = yes; then
                   1614:     CC="$CC -traditional"
                   1615:   fi
                   1616: fi
                   1617: 
                   1618: 
1.5       petere   1619: 
1.29      petere   1620: # Create compiler version string
1.24      petere   1621: if test x"$GCC" = x"yes" ; then
                   1622:   cc_string="GCC `${CC} --version`"
1.1       petere   1623: else
1.24      petere   1624:   cc_string=$CC
1.1       petere   1625: fi
1.24      petere   1626: cat >> confdefs.h <<EOF
                   1627: #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
                   1628: EOF
                   1629: 
1.1       petere   1630: 
                   1631: 
1.31      petere   1632: #
                   1633: # Automatic dependency tracking
                   1634: #
1.43      petere   1635: # Check whether --enable-depend was given
                   1636: if test x"${enable_depend+set}" = xset; then
                   1637:   case $enable_depend in
                   1638:     yes)
                   1639:       autodepend=yes
                   1640:       ;;
                   1641:     no)
                   1642:       :
                   1643:       ;;
                   1644:     *)
                   1645:       enableval=$enable_depend
                   1646:       { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
                   1647:       ;;
                   1648:   esac # $enable_depend
                   1649: else
                   1650:   enable_depend=no
1.31      petere   1651: 
                   1652: fi
                   1653: 
                   1654: 
                   1655: 
1.43      petere   1656: #
                   1657: # Enable assert checks
                   1658: #
                   1659: # Check whether --enable-cassert was given
                   1660: if test x"${enable_cassert+set}" = xset; then
                   1661:   case $enable_cassert in
                   1662:     yes)
                   1663:       cat >> confdefs.h <<\EOF
                   1664: #define USE_ASSERT_CHECKING 1
                   1665: EOF
1.30      petere   1666: 
1.43      petere   1667:       ;;
                   1668:     no)
                   1669:       :
                   1670:       ;;
                   1671:     *)
                   1672:       enableval=$enable_cassert
                   1673:       { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
                   1674:       ;;
                   1675:   esac # $enable_cassert
1.30      petere   1676: else
1.43      petere   1677:   enable_cassert=no
                   1678: 
1.30      petere   1679: fi
                   1680: 
                   1681: 
                   1682: #
                   1683: # Include directories
                   1684: #
                   1685: ac_save_IFS=$IFS
1.86      petere   1686: IFS="${IFS}:"
1.30      petere   1687: # SRCH_INC comes from the template file
                   1688: for dir in $with_includes $SRCH_INC; do
                   1689:   if test -d "$dir"; then
                   1690:     INCLUDES="$INCLUDES -I$dir"
                   1691:   else
                   1692:     echo "configure: warning: *** Include directory $dir does not exist." 1>&2
                   1693:   fi
                   1694: done
                   1695: IFS=$ac_save_IFS
                   1696: 
                   1697: 
                   1698: 
                   1699: #
                   1700: # Library directories
                   1701: #
                   1702: ac_save_IFS=$IFS
1.86      petere   1703: IFS="${IFS}:"
1.30      petere   1704: # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
                   1705: for dir in $LIBRARY_DIRS $SRCH_LIB; do
                   1706:   if test -d "$dir"; then
1.70      petere   1707:     LIBDIRS="$LIBDIRS -L$dir"
1.30      petere   1708:   else
                   1709:     echo "configure: warning: *** Library directory $dir does not exist." 1>&2
                   1710:   fi
                   1711: done
                   1712: IFS=$ac_save_IFS
                   1713: 
                   1714: 
1.44      petere   1715: #
                   1716: # Tcl/Tk
                   1717: #
                   1718: echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1.86      petere   1719: echo "configure:1720: checking whether to build with Tcl" >&5
1.43      petere   1720: # Check whether --with-tcl was given
                   1721: if test x"${with_tcl+set}" = xset; then
                   1722:   case $with_tcl in
                   1723:     yes)
1.44      petere   1724:       :
1.43      petere   1725:       ;;
                   1726:     no)
1.44      petere   1727:       :
1.43      petere   1728:       ;;
                   1729:     *)
                   1730:       withval=$with_tcl
                   1731:       { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
                   1732:       ;;
                   1733:   esac # $with_tcl
1.3       tgl      1734: else
1.43      petere   1735:   with_tcl=no
1.44      petere   1736: 
1.3       tgl      1737: fi
1.44      petere   1738: echo "$ac_t""$with_tcl" 1>&6
                   1739: 
                   1740: 
                   1741: # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
                   1742: echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1.86      petere   1743: echo "configure:1744: checking whether to build with Tk" >&5
1.44      petere   1744: if test "$with_tcl" = yes; then
                   1745:   # Check whether --with-tk was given
                   1746: if test x"${with_tk+set}" = xset; then
                   1747:   case $with_tk in
                   1748:     yes)
                   1749:       :
                   1750:       ;;
                   1751:     no)
                   1752:       :
                   1753:       ;;
                   1754:     *)
                   1755:       withval=$with_tk
                   1756:       { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
                   1757:       ;;
                   1758:   esac # $with_tk
                   1759: else
                   1760:   with_tk=yes
1.3       tgl      1761: 
1.44      petere   1762: fi
                   1763: else
                   1764:   with_tk=no
                   1765: fi
                   1766: echo "$ac_t""$with_tk" 1>&6
1.3       tgl      1767: 
1.30      petere   1768: 
                   1769: 
1.43      petere   1770: # We see if the path to the TCL/TK configuration scripts is specified.
                   1771: # This will override the use of tclsh to find the paths to search.
1.3       tgl      1772: 
1.43      petere   1773: # Check whether --with-tclconfig was given
                   1774: if test x"${with_tclconfig+set}" = xset; then
                   1775:   case $with_tclconfig in
                   1776:     yes)
                   1777:       { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
                   1778:       ;;
                   1779:     no)
                   1780:       { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
                   1781:       ;;
                   1782:   esac # $with_tclconfig
1.3       tgl      1783: fi
                   1784: 
1.43      petere   1785: # We see if the path to the TK configuration scripts is specified.
                   1786: # This will override the use of tclsh to find the paths to search.
1.3       tgl      1787: 
1.43      petere   1788: # Check whether --with-tkconfig was given
                   1789: if test x"${with_tkconfig+set}" = xset; then
                   1790:   case $with_tkconfig in
                   1791:     yes)
                   1792:       { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
                   1793:       ;;
                   1794:     no)
                   1795:       { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
                   1796:       ;;
                   1797:   esac # $with_tkconfig
1.3       tgl      1798: fi
                   1799: 
                   1800: 
1.43      petere   1801: #
                   1802: # Optionally build Perl modules (Pg.pm and PL/Perl)
                   1803: #
1.4       petere   1804: echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1.86      petere   1805: echo "configure:1806: checking whether to build Perl modules" >&5
1.43      petere   1806: # Check whether --with-perl was given
                   1807: if test x"${with_perl+set}" = xset; then
                   1808:   case $with_perl in
                   1809:     yes)
                   1810:       :
                   1811:       ;;
                   1812:     no)
                   1813:       :
                   1814:       ;;
                   1815:     *)
                   1816:       withval=$with_perl
                   1817:       { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
                   1818:       ;;
                   1819:   esac # $with_perl
1.4       petere   1820: else
1.43      petere   1821:   with_perl=no
                   1822: 
1.4       petere   1823: fi
1.43      petere   1824: echo "$ac_t""$with_perl" 1>&6
1.4       petere   1825: 
                   1826: 
                   1827: 
1.43      petere   1828: #
                   1829: # Optionally build Python interface module
                   1830: #
1.4       petere   1831: echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1.86      petere   1832: echo "configure:1833: checking whether to build Python modules" >&5
1.43      petere   1833: # Check whether --with-python was given
                   1834: if test x"${with_python+set}" = xset; then
                   1835:   case $with_python in
                   1836:     yes)
                   1837:       echo "$ac_t""yes" 1>&6
                   1838: # Extract the first word of "python", so it can be a program name with args.
1.4       petere   1839: set dummy python; ac_word=$2
                   1840: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.86      petere   1841: echo "configure:1842: checking for $ac_word" >&5
1.4       petere   1842: if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
                   1843:   echo $ac_n "(cached) $ac_c" 1>&6
                   1844: else
                   1845:   if test -n "$PYTHON"; then
                   1846:   ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
                   1847: else
                   1848:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   1849:   ac_dummy="$PATH"
                   1850:   for ac_dir in $ac_dummy; do
                   1851:     test -z "$ac_dir" && ac_dir=.
                   1852:     if test -f $ac_dir/$ac_word; then
                   1853:       ac_cv_prog_PYTHON="python"
                   1854:       break
                   1855:     fi
                   1856:   done
                   1857:   IFS="$ac_save_ifs"
                   1858: fi
                   1859: fi
                   1860: PYTHON="$ac_cv_prog_PYTHON"
                   1861: if test -n "$PYTHON"; then
                   1862:   echo "$ac_t""$PYTHON" 1>&6
                   1863: else
                   1864:   echo "$ac_t""no" 1>&6
                   1865: fi
                   1866: 
1.43      petere   1867: 
1.4       petere   1868: if test "${PYTHON+set}" = set ; then
                   1869:   python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
                   1870:   python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
                   1871:   python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
                   1872:   python_configdir="${python_execprefix}/lib/python${python_version}/config"
                   1873:   python_moduledir="${python_prefix}/lib/python${python_version}"
                   1874:   python_extmakefile="${python_configdir}/Makefile.pre.in"
                   1875: 
                   1876:   echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1.86      petere   1877: echo "configure:1878: checking for Python extension makefile" >&5
1.4       petere   1878:   if test -f "${python_extmakefile}" ; then
                   1879:     echo "$ac_t""found" 1>&6
                   1880:   else
                   1881:     echo "$ac_t""no" 1>&6
                   1882:     { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
                   1883: but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
                   1884:   fi
                   1885: 
                   1886:   
                   1887:   
                   1888:   
                   1889:   
                   1890:   
                   1891:   
                   1892: else
                   1893:   { echo "configure: error: Python not found" 1>&2; exit 1; }
                   1894: fi
1.43      petere   1895:       ;;
                   1896:     no)
                   1897:       echo "$ac_t""no" 1>&6
                   1898:       ;;
                   1899:     *)
                   1900:       withval=$with_python
                   1901:       { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
                   1902:       ;;
                   1903:   esac # $with_python
1.4       petere   1904: else
1.43      petere   1905:   with_python=no
                   1906: echo "$ac_t""no" 1>&6
1.4       petere   1907: fi
1.3       tgl      1908: 
                   1909: 
                   1910: 
1.12      petere   1911: 
1.28      petere   1912: #
                   1913: # Kerberos 4
                   1914: #
1.43      petere   1915: # Check whether --with-krb4 was given
                   1916: if test x"${with_krb4+set}" = xset; then
                   1917:   case $with_krb4 in
                   1918:     yes)
                   1919:       krb4_prefix=/usr/athena
                   1920:       ;;
                   1921:     no)
                   1922:       :
                   1923:       ;;
                   1924:     *)
                   1925:       withval=$with_krb4
                   1926:       with_krb4=yes
                   1927: krb4_prefix=$withval
                   1928:       ;;
                   1929:   esac # $with_krb4
1.12      petere   1930: else
1.28      petere   1931:   with_krb4=no
1.12      petere   1932: fi
                   1933: 
1.43      petere   1934: if test "$with_krb4" = yes; then
                   1935:   
1.28      petere   1936:   echo "$ac_t""building with Kerberos 4 support" 1>&6
1.12      petere   1937:   cat >> confdefs.h <<\EOF
1.43      petere   1938: #define KRB4 1
1.12      petere   1939: EOF
                   1940: 
1.28      petere   1941: 
1.70      petere   1942:   if test -d "$krb4_prefix/include"; then
                   1943:     INCLUDES="$INCLUDES -I$krb4_prefix/include"
                   1944:   fi
                   1945:   if test -d "$krb4_prefix/lib"; then
                   1946:     LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
1.28      petere   1947:   fi
1.43      petere   1948: 
                   1949:   krb_srvtab="/etc/srvtab"
1.37      petere   1950: 
1.12      petere   1951: fi
                   1952: 
                   1953: 
1.43      petere   1954: 
                   1955: 
                   1956: 
1.28      petere   1957: #
                   1958: # Kerberos 5
                   1959: #
1.43      petere   1960: # Check whether --with-krb5 was given
                   1961: if test x"${with_krb5+set}" = xset; then
                   1962:   case $with_krb5 in
                   1963:     yes)
                   1964:       krb5_prefix=/usr/athena
                   1965:       ;;
                   1966:     no)
                   1967:       :
                   1968:       ;;
                   1969:     *)
                   1970:       withval=$with_krb5
                   1971:       with_krb5=yes
                   1972: krb5_prefix=$withval
                   1973:       ;;
                   1974:   esac # $with_krb5
1.12      petere   1975: else
1.28      petere   1976:   with_krb5=no
1.12      petere   1977: fi
                   1978: 
1.43      petere   1979: if test "$with_krb5" = yes; then
                   1980:   
1.28      petere   1981:   echo "$ac_t""building with Kerberos 5 support" 1>&6
                   1982:   cat >> confdefs.h <<\EOF
1.43      petere   1983: #define KRB5 1
1.12      petere   1984: EOF
                   1985: 
                   1986: 
1.70      petere   1987:   if test -d "$krb5_prefix/include"; then
                   1988:     INCLUDES="$INCLUDES -I$krb5_prefix/include"
                   1989:   fi
                   1990:   if test -d "$krb5_prefix/lib"; then
                   1991:     LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
1.28      petere   1992:   fi
1.12      petere   1993: 
1.43      petere   1994:   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1.37      petere   1995: 
1.12      petere   1996: fi
                   1997: 
                   1998: 
1.43      petere   1999: 
                   2000: 
                   2001: 
1.28      petere   2002: # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
                   2003: if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
                   2004:   { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
1.12      petere   2005: fi
                   2006: 
                   2007: 
                   2008: 
                   2009: 
1.28      petere   2010: #
                   2011: # Kerberos configuration parameters
                   2012: #
1.43      petere   2013: # Check whether --with-krb-srvnam was given
                   2014: if test x"${with_krb_srvnam+set}" = xset; then
                   2015:   case $with_krb_srvnam in
                   2016:     yes)
                   2017:       { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
                   2018:       ;;
                   2019:     no)
                   2020:       { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
                   2021:       ;;
                   2022:   esac # $with_krb_srvnam
1.12      petere   2023: else
1.43      petere   2024:   with_krb_srvnam="postgres"
1.12      petere   2025: fi
                   2026: cat >> confdefs.h <<EOF
1.43      petere   2027: #define PG_KRB_SRVNAM "$with_krb_srvnam"
1.12      petere   2028: EOF
                   2029: 
                   2030: 
1.28      petere   2031: 
                   2032: 
                   2033: #
                   2034: # OpenSSL
                   2035: #
1.43      petere   2036: # Check whether --with-openssl was given
                   2037: if test x"${with_openssl+set}" = xset; then
                   2038:   case $with_openssl in
                   2039:     yes)
                   2040:       openssl_prefix=/usr/local/ssl
                   2041:       ;;
                   2042:     no)
                   2043:       :
                   2044:       ;;
                   2045:     *)
                   2046:       withval=$with_openssl
                   2047:       with_openssl=yes
                   2048: openssl_prefix=$withval
                   2049:       ;;
                   2050:   esac # $with_openssl
1.28      petere   2051: else
                   2052:   with_openssl=no
1.12      petere   2053: fi
                   2054: 
1.43      petere   2055: if test "$with_openssl" = yes; then
                   2056:   
1.28      petere   2057:   echo "$ac_t""building with OpenSSL support" 1>&6
                   2058:   cat >> confdefs.h <<\EOF
1.43      petere   2059: #define USE_SSL 1
1.12      petere   2060: EOF
                   2061: 
                   2062: 
1.28      petere   2063:   if test -d "${openssl_prefix}/include" ; then
                   2064:     INCLUDES="$INCLUDES -I${openssl_prefix}/include"
                   2065:   fi
                   2066:   if test -d "${openssl_prefix}/lib" ; then
1.70      petere   2067:     LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
1.28      petere   2068:   fi
1.43      petere   2069: 
1.28      petere   2070: fi
                   2071: 
                   2072: 
1.43      petere   2073: 
                   2074: 
                   2075: 
1.12      petere   2076: 
1.43      petere   2077: #
                   2078: # Optionally enable the building of the ODBC driver
                   2079: #
1.15      petere   2080:  
1.43      petere   2081: # Old option name
                   2082: if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
1.15      petere   2083:   enable_odbc=$with_odbc
                   2084: fi
                   2085:  
                   2086: echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
1.86      petere   2087: echo "configure:2088: checking whether to build the ODBC driver" >&5
1.43      petere   2088: # Check whether --enable-odbc was given
                   2089: if test x"${enable_odbc+set}" = xset; then
                   2090:   case $enable_odbc in
                   2091:     yes)
                   2092:       :
                   2093:       ;;
                   2094:     no)
                   2095:       :
                   2096:       ;;
                   2097:     *)
                   2098:       enableval=$enable_odbc
                   2099:       { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
                   2100:       ;;
                   2101:   esac # $enable_odbc
1.3       tgl      2102: else
1.43      petere   2103:   enable_odbc=no
                   2104: 
1.15      petere   2105: fi
1.43      petere   2106: echo "$ac_t""$enable_odbc" 1>&6
1.7       momjian  2107: 
                   2108: 
                   2109: 
1.43      petere   2110: # Allow for overriding the default location of the odbcinst.ini
                   2111: # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
                   2112: # Check whether --with-odbcinst was given
                   2113: if test x"${with_odbcinst+set}" = xset; then
                   2114:   case $with_odbcinst in
                   2115:     yes)
                   2116:       { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
                   2117:       ;;
                   2118:     no)
                   2119:       { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
                   2120:       ;;
                   2121:     *)
                   2122:       withval=$with_odbcinst
                   2123:       odbcinst_ini_dir=$withval
                   2124:       ;;
                   2125:   esac # $with_odbcinst
1.7       momjian  2126: else
1.43      petere   2127:   odbcinst_ini_dir="\${sysconfdir}"
1.7       momjian  2128: fi
                   2129: 
1.3       tgl      2130: 
                   2131: 
1.1       petere   2132: 
1.30      petere   2133: # Assume system is ELF if it predefines __ELF__ as 1,
                   2134: # otherwise believe host_os based default.
                   2135: case $host_os in
                   2136:   freebsd1*|freebsd2*) elf=yes;;
                   2137: esac
1.1       petere   2138: 
                   2139: cat > conftest.$ac_ext <<EOF
1.86      petere   2140: #line 2141 "configure"
1.1       petere   2141: #include "confdefs.h"
                   2142: #if __ELF__
                   2143:   yes
                   2144: #endif
                   2145: 
                   2146: EOF
                   2147: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   2148:   egrep "yes" >/dev/null 2>&1; then
                   2149:   rm -rf conftest*
                   2150:   ELF_SYS=true
                   2151: else
                   2152:   rm -rf conftest*
1.30      petere   2153:   if test "X$elf" = "Xyes" ; then
                   2154:   ELF_SYS=true
1.1       petere   2155: else
1.30      petere   2156:   ELF_SYS=
1.1       petere   2157: fi
                   2158: fi
                   2159: rm -f conftest*
                   2160: 
                   2161: 
                   2162: 
                   2163: 
                   2164: 
1.43      petere   2165: #
                   2166: # Optionally build C++ code (i.e., libpq++)
                   2167: #
1.5       petere   2168: echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
1.86      petere   2169: echo "configure:2170: checking whether to build C++ modules" >&5
1.43      petere   2170: # Check whether --with-CXX was given
                   2171: if test x"${with_CXX+set}" = xset; then
                   2172:   case $with_CXX in
                   2173:     yes)
                   2174:       :
                   2175:       ;;
                   2176:     no)
                   2177:       :
                   2178:       ;;
                   2179:     *)
                   2180:       withval=$with_CXX
                   2181:       with_CXX=yes
                   2182: CXX=$withval
                   2183:       ;;
                   2184:   esac # $with_CXX
1.36      petere   2185: else
                   2186:   with_CXX=no
                   2187: fi
                   2188: 
1.43      petere   2189: if test "$with_CXX" = yes; then
                   2190:   
                   2191:   echo "$ac_t""yes" 1>&6
1.75      petere   2192: 
                   2193:   # If the user has specified CXXFLAGS in the environment, leave it
                   2194:   # alone, else use a default.
                   2195: 
1.80      petere   2196:   has_environ_CXXFLAGS="${CXXFLAGS+yes}"
1.5       petere   2197:   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1.1       petere   2198: do
                   2199: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2200: set dummy $ac_prog; ac_word=$2
                   2201: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.86      petere   2202: echo "configure:2203: checking for $ac_word" >&5
1.1       petere   2203: if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
                   2204:   echo $ac_n "(cached) $ac_c" 1>&6
                   2205: else
                   2206:   if test -n "$CXX"; then
                   2207:   ac_cv_prog_CXX="$CXX" # Let the user override the test.
                   2208: else
                   2209:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2210:   ac_dummy="$PATH"
                   2211:   for ac_dir in $ac_dummy; do
                   2212:     test -z "$ac_dir" && ac_dir=.
                   2213:     if test -f $ac_dir/$ac_word; then
                   2214:       ac_cv_prog_CXX="$ac_prog"
                   2215:       break
                   2216:     fi
                   2217:   done
                   2218:   IFS="$ac_save_ifs"
                   2219: fi
                   2220: fi
                   2221: CXX="$ac_cv_prog_CXX"
                   2222: if test -n "$CXX"; then
                   2223:   echo "$ac_t""$CXX" 1>&6
                   2224: else
                   2225:   echo "$ac_t""no" 1>&6
                   2226: fi
                   2227: 
                   2228: test -n "$CXX" && break
                   2229: done
                   2230: test -n "$CXX" || CXX="gcc"
                   2231: 
                   2232: 
                   2233: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.86      petere   2234: echo "configure:2235: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1.1       petere   2235: 
                   2236: ac_ext=C
                   2237: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2238: ac_cpp='$CXXCPP $CPPFLAGS'
                   2239: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2240: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2241: cross_compiling=$ac_cv_prog_cxx_cross
                   2242: 
                   2243: cat > conftest.$ac_ext << EOF
                   2244: 
1.86      petere   2245: #line 2246 "configure"
1.1       petere   2246: #include "confdefs.h"
                   2247: 
                   2248: int main(){return(0);}
                   2249: EOF
1.86      petere   2250: if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   2251:   ac_cv_prog_cxx_works=yes
                   2252:   # If we can't run a trivial program, we are probably using a cross compiler.
                   2253:   if (./conftest; exit) 2>/dev/null; then
                   2254:     ac_cv_prog_cxx_cross=no
                   2255:   else
                   2256:     ac_cv_prog_cxx_cross=yes
                   2257:   fi
                   2258: else
                   2259:   echo "configure: failed program was:" >&5
                   2260:   cat conftest.$ac_ext >&5
                   2261:   ac_cv_prog_cxx_works=no
                   2262: fi
                   2263: rm -fr conftest*
                   2264: ac_ext=c
                   2265: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2266: ac_cpp='$CPP $CPPFLAGS'
                   2267: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2268: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2269: cross_compiling=$ac_cv_prog_cc_cross
                   2270: 
                   2271: echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
                   2272: if test $ac_cv_prog_cxx_works = no; then
                   2273:   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
                   2274: fi
                   2275: echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.86      petere   2276: echo "configure:2277: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1       petere   2277: echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
                   2278: cross_compiling=$ac_cv_prog_cxx_cross
                   2279: 
                   2280: echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1.86      petere   2281: echo "configure:2282: checking whether we are using GNU C++" >&5
1.1       petere   2282: if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
                   2283:   echo $ac_n "(cached) $ac_c" 1>&6
                   2284: else
                   2285:   cat > conftest.C <<EOF
                   2286: #ifdef __GNUC__
                   2287:   yes;
                   2288: #endif
                   2289: EOF
1.86      petere   2290: if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1       petere   2291:   ac_cv_prog_gxx=yes
                   2292: else
                   2293:   ac_cv_prog_gxx=no
                   2294: fi
                   2295: fi
                   2296: 
                   2297: echo "$ac_t""$ac_cv_prog_gxx" 1>&6
                   2298: 
                   2299: if test $ac_cv_prog_gxx = yes; then
                   2300:   GXX=yes
                   2301: else
                   2302:   GXX=
                   2303: fi
                   2304: 
                   2305: ac_test_CXXFLAGS="${CXXFLAGS+set}"
                   2306: ac_save_CXXFLAGS="$CXXFLAGS"
                   2307: CXXFLAGS=
                   2308: echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1.86      petere   2309: echo "configure:2310: checking whether ${CXX-g++} accepts -g" >&5
1.1       petere   2310: if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
                   2311:   echo $ac_n "(cached) $ac_c" 1>&6
                   2312: else
                   2313:   echo 'void f(){}' > conftest.cc
                   2314: if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
                   2315:   ac_cv_prog_cxx_g=yes
                   2316: else
                   2317:   ac_cv_prog_cxx_g=no
                   2318: fi
                   2319: rm -f conftest*
                   2320: 
                   2321: fi
                   2322: 
                   2323: echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
                   2324: if test "$ac_test_CXXFLAGS" = set; then
                   2325:   CXXFLAGS="$ac_save_CXXFLAGS"
                   2326: elif test $ac_cv_prog_cxx_g = yes; then
                   2327:   if test "$GXX" = yes; then
                   2328:     CXXFLAGS="-g -O2"
                   2329:   else
                   2330:     CXXFLAGS="-g"
                   2331:   fi
                   2332: else
                   2333:   if test "$GXX" = yes; then
                   2334:     CXXFLAGS="-O2"
                   2335:   else
                   2336:     CXXFLAGS=
                   2337:   fi
                   2338: fi
                   2339: 
1.80      petere   2340:   if test "$has_environ_CXXFLAGS" != yes; then
1.75      petere   2341:     if test "$GXX" = yes; then
                   2342:       CXXFLAGS=-O2
                   2343:     else
                   2344:       case $template in
                   2345:        osf)            CXXFLAGS='-O4 -Olimit 2000' ;;
                   2346:         unixware)      CXXFLAGS='-O' ;;
                   2347:        *)              CXXFLAGS= ;;
                   2348:       esac
                   2349:     fi
                   2350:   fi
                   2351:   if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
                   2352:     CXXFLAGS="$CXXFLAGS -g"
                   2353:   fi
                   2354:   echo "using CXXFLAGS=$CXXFLAGS"
                   2355: 
1.5       petere   2356:   echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1.86      petere   2357: echo "configure:2358: checking how to run the C++ preprocessor" >&5
1.5       petere   2358: if test -z "$CXXCPP"; then
                   2359: if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
                   2360:   echo $ac_n "(cached) $ac_c" 1>&6
                   2361: else
                   2362:   ac_ext=C
1.1       petere   2363: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2364: ac_cpp='$CXXCPP $CPPFLAGS'
                   2365: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2366: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2367: cross_compiling=$ac_cv_prog_cxx_cross
1.5       petere   2368:   CXXCPP="${CXX-g++} -E"
                   2369:   cat > conftest.$ac_ext <<EOF
1.86      petere   2370: #line 2371 "configure"
1.5       petere   2371: #include "confdefs.h"
                   2372: #include <stdlib.h>
                   2373: EOF
                   2374: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.86      petere   2375: { (eval echo configure:2376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.5       petere   2376: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2377: if test -z "$ac_err"; then
                   2378:   :
                   2379: else
                   2380:   echo "$ac_err" >&5
                   2381:   echo "configure: failed program was:" >&5
                   2382:   cat conftest.$ac_ext >&5
                   2383:   rm -rf conftest*
                   2384:   CXXCPP=/lib/cpp
                   2385: fi
                   2386: rm -f conftest*
                   2387:   ac_cv_prog_CXXCPP="$CXXCPP"
                   2388: ac_ext=c
                   2389: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2390: ac_cpp='$CPP $CPPFLAGS'
                   2391: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2392: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2393: cross_compiling=$ac_cv_prog_cc_cross
                   2394: fi
                   2395: fi
                   2396: CXXCPP="$ac_cv_prog_CXXCPP"
                   2397: echo "$ac_t""$CXXCPP" 1>&6
1.1       petere   2398: 
1.5       petere   2399:   
1.63      petere   2400:   
1.5       petere   2401: ac_ext=C
                   2402: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2403: ac_cpp='$CXXCPP $CPPFLAGS'
                   2404: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2405: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2406: cross_compiling=$ac_cv_prog_cxx_cross
1.1       petere   2407: 
1.5       petere   2408: ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
                   2409: echo $ac_n "checking for string""... $ac_c" 1>&6
1.86      petere   2410: echo "configure:2411: checking for string" >&5
1.5       petere   2411: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   2412:   echo $ac_n "(cached) $ac_c" 1>&6
                   2413: else
                   2414:   cat > conftest.$ac_ext <<EOF
1.86      petere   2415: #line 2416 "configure"
1.1       petere   2416: #include "confdefs.h"
                   2417: #include <string>
                   2418: EOF
1.5       petere   2419: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.86      petere   2420: { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.5       petere   2421: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   2422: if test -z "$ac_err"; then
1.1       petere   2423:   rm -rf conftest*
1.5       petere   2424:   eval "ac_cv_header_$ac_safe=yes"
                   2425: else
                   2426:   echo "$ac_err" >&5
                   2427:   echo "configure: failed program was:" >&5
                   2428:   cat conftest.$ac_ext >&5
                   2429:   rm -rf conftest*
                   2430:   eval "ac_cv_header_$ac_safe=no"
                   2431: fi
                   2432: rm -f conftest*
                   2433: fi
                   2434: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   2435:   echo "$ac_t""yes" 1>&6
1.1       petere   2436:   cat >> confdefs.h <<\EOF
                   2437: #define HAVE_CXX_STRING_HEADER 1
                   2438: EOF
1.5       petere   2439: 
1.1       petere   2440: else
                   2441:   echo "$ac_t""no" 1>&6
1.5       petere   2442: fi
1.1       petere   2443: 
1.5       petere   2444: 
                   2445: if test x"$ac_cv_header_string" != xyes ; then
                   2446:   echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
1.86      petere   2447: echo "configure:2448: checking for class string in <string.h>" >&5
1.5       petere   2448: if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
                   2449:   echo $ac_n "(cached) $ac_c" 1>&6
                   2450: else
                   2451:   cat > conftest.$ac_ext <<EOF
1.86      petere   2452: #line 2453 "configure"
1.1       petere   2453: #include "confdefs.h"
                   2454: #include <stdio.h>
                   2455: #include <stdlib.h>
                   2456: #include <string.h>
                   2457: 
                   2458: int main() {
                   2459: string foo = "test"
                   2460: ; return 0; }
                   2461: EOF
1.86      petere   2462: if { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   2463:   rm -rf conftest*
1.5       petere   2464:   pgac_cv_class_string_in_string_h=yes
1.1       petere   2465: else
                   2466:   echo "configure: failed program was:" >&5
                   2467:   cat conftest.$ac_ext >&5
                   2468:   rm -rf conftest*
1.5       petere   2469:   pgac_cv_class_string_in_string_h=no
1.1       petere   2470: fi
                   2471: rm -f conftest*
1.5       petere   2472: fi
                   2473: 
                   2474: echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
1.1       petere   2475: 
1.5       petere   2476:   if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
                   2477:     { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
                   2478:   fi
1.1       petere   2479: fi
1.5       petere   2480: ac_ext=c
                   2481: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2482: ac_cpp='$CPP $CPPFLAGS'
                   2483: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2484: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2485: cross_compiling=$ac_cv_prog_cc_cross
                   2486: 
                   2487:   
                   2488: echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
1.86      petere   2489: echo "configure:2490: checking for namespace std in C++" >&5
1.5       petere   2490: if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
                   2491:   echo $ac_n "(cached) $ac_c" 1>&6
                   2492: else
                   2493:   
                   2494: 
                   2495: ac_ext=C
                   2496: # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2497: ac_cpp='$CXXCPP $CPPFLAGS'
                   2498: ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2499: ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2500: cross_compiling=$ac_cv_prog_cxx_cross
1.1       petere   2501: 
1.5       petere   2502: cat > conftest.$ac_ext <<EOF
1.86      petere   2503: #line 2504 "configure"
1.1       petere   2504: #include "confdefs.h"
                   2505: #include <stdio.h>
                   2506: #include <stdlib.h>
                   2507: #ifdef HAVE_CXX_STRING_HEADER
                   2508: #include <string>
                   2509: #endif
                   2510: using namespace std;
                   2511: 
                   2512: int main() {
                   2513: 
                   2514: ; return 0; }
                   2515: EOF
1.86      petere   2516: if { (eval echo configure:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   2517:   rm -rf conftest*
1.5       petere   2518:   pgac_cv_cxx_namespace_std=yes
1.1       petere   2519: else
                   2520:   echo "configure: failed program was:" >&5
                   2521:   cat conftest.$ac_ext >&5
                   2522:   rm -rf conftest*
1.5       petere   2523:   pgac_cv_cxx_namespace_std=no
1.1       petere   2524: fi
                   2525: rm -f conftest*
                   2526: ac_ext=c
                   2527: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
                   2528: ac_cpp='$CPP $CPPFLAGS'
                   2529: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
                   2530: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
                   2531: cross_compiling=$ac_cv_prog_cc_cross
                   2532: 
1.5       petere   2533: fi
                   2534: 
                   2535: echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
                   2536: 
                   2537: if test $pgac_cv_cxx_namespace_std = yes ; then
                   2538:     cat >> confdefs.h <<\EOF
                   2539: #define HAVE_NAMESPACE_STD 1
                   2540: EOF
                   2541: 
                   2542: fi
1.43      petere   2543: 
                   2544: else
                   2545:   echo "$ac_t""no" 1>&6
1.5       petere   2546: fi
                   2547: 
                   2548: 
1.43      petere   2549: 
1.30      petere   2550: CPPFLAGS="$CPPFLAGS $INCLUDES"
1.70      petere   2551: LDFLAGS="$LDFLAGS $LIBDIRS"
1.30      petere   2552: 
                   2553: echo "using CPPFLAGS=$CPPFLAGS"
                   2554: echo "using LDFLAGS=$LDFLAGS"
                   2555: 
                   2556: 
1.28      petere   2557: # Figure out how to invoke "install" and what install options to use.
1.1       petere   2558: 
                   2559: # Find a good install program.  We prefer a C program (faster),
                   2560: # so one script is as good as another.  But avoid the broken or
                   2561: # incompatible versions:
                   2562: # SysV /etc/install, /usr/sbin/install
                   2563: # SunOS /usr/etc/install
                   2564: # IRIX /sbin/install
                   2565: # AIX /bin/install
                   2566: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
                   2567: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
                   2568: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
                   2569: # ./install, which can be erroneously created by make from ./install.sh.
                   2570: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.86      petere   2571: echo "configure:2572: checking for a BSD compatible install" >&5
1.1       petere   2572: if test -z "$INSTALL"; then
                   2573: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
                   2574:   echo $ac_n "(cached) $ac_c" 1>&6
                   2575: else
                   2576:     IFS="${IFS=        }"; ac_save_IFS="$IFS"; IFS=":"
                   2577:   for ac_dir in $PATH; do
                   2578:     # Account for people who put trailing slashes in PATH elements.
                   2579:     case "$ac_dir/" in
                   2580:     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
                   2581:     *)
                   2582:       # OSF1 and SCO ODT 3.0 have their own names for install.
                   2583:       # Don't use installbsd from OSF since it installs stuff as root
                   2584:       # by default.
                   2585:       for ac_prog in ginstall scoinst install; do
                   2586:         if test -f $ac_dir/$ac_prog; then
                   2587:          if test $ac_prog = install &&
                   2588:             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
                   2589:            # AIX install.  It has an incompatible calling convention.
                   2590:            :
                   2591:          else
                   2592:            ac_cv_path_install="$ac_dir/$ac_prog -c"
                   2593:            break 2
                   2594:          fi
                   2595:        fi
                   2596:       done
                   2597:       ;;
                   2598:     esac
                   2599:   done
                   2600:   IFS="$ac_save_IFS"
                   2601: 
                   2602: fi
                   2603:   if test "${ac_cv_path_install+set}" = set; then
                   2604:     INSTALL="$ac_cv_path_install"
                   2605:   else
                   2606:     # As a last resort, use the slow shell script.  We don't cache a
                   2607:     # path for INSTALL within a source directory, because that will
                   2608:     # break other packages using the cache if that directory is
                   2609:     # removed, or if the path is relative.
                   2610:     INSTALL="$ac_install_sh"
                   2611:   fi
                   2612: fi
                   2613: echo "$ac_t""$INSTALL" 1>&6
                   2614: 
                   2615: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
                   2616: # It thinks the first close brace ends the variable substitution.
                   2617: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
                   2618: 
                   2619: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
                   2620: 
                   2621: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
                   2622: 
1.28      petere   2623: # When Autoconf chooses install-sh as install program it tries to generate
                   2624: # a relative path to it in each makefile where it subsitutes it. This clashes
                   2625: # with our Makefile.global concept. This workaround helps.
                   2626: case $INSTALL in
                   2627:   *install-sh*) INSTALL='\${SHELL} \${top_srcdir}/config/install-sh -c';;
                   2628: esac
1.1       petere   2629: 
1.28      petere   2630: # Fix Autoconf's brain-dead defaults for script installs.
                   2631: INSTALL_SCRIPT="\${INSTALL} -m 755"
1.1       petere   2632: 
1.28      petere   2633: # HPUX wants shared libs to be mode 555. Add your platform's special
                   2634: # needs here if necessary.
                   2635: case $host_os in
                   2636:     hpux*)      INSTL_SHLIB_OPTS="-m 555" ;;
1.83      petere   2637:     *)          INSTL_SHLIB_OPTS="-m 755" ;;
1.1       petere   2638: esac
                   2639: 
1.28      petere   2640: INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
1.1       petere   2641: 
                   2642: 
                   2643: 
1.107   ! ishii    2644: for ac_prog in gawk mawk nawk awk
1.2       petere   2645: do
                   2646: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2647: set dummy $ac_prog; ac_word=$2
                   2648: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.86      petere   2649: echo "configure:2650: checking for $ac_word" >&5
1.2       petere   2650: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
                   2651:   echo $ac_n "(cached) $ac_c" 1>&6
                   2652: else
                   2653:   if test -n "$AWK"; then
                   2654:   ac_cv_prog_AWK="$AWK" # Let the user override the test.
                   2655: else
                   2656:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2657:   ac_dummy="$PATH"
                   2658:   for ac_dir in $ac_dummy; do
                   2659:     test -z "$ac_dir" && ac_dir=.
                   2660:     if test -f $ac_dir/$ac_word; then
                   2661:       ac_cv_prog_AWK="$ac_prog"
                   2662:       break
                   2663:     fi
                   2664:   done
                   2665:   IFS="$ac_save_ifs"
                   2666: fi
                   2667: fi
                   2668: AWK="$ac_cv_prog_AWK"
                   2669: if test -n "$AWK"; then
                   2670:   echo "$ac_t""$AWK" 1>&6
                   2671: else
                   2672:   echo "$ac_t""no" 1>&6
                   2673: fi
                   2674: 
                   2675: test -n "$AWK" && break
                   2676: done
                   2677: 
1.40      petere   2678: echo $ac_n "checking for flex""... $ac_c" 1>&6
1.86      petere   2679: echo "configure:2680: checking for flex" >&5
1.40      petere   2680: if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
1.1       petere   2681:   echo $ac_n "(cached) $ac_c" 1>&6
                   2682: else
1.40      petere   2683:   # Let the user override the test
                   2684: if test -n "$FLEX"; then
                   2685:   pgac_cv_path_flex=$FLEX
                   2686: else
                   2687:   pgac_save_IFS=$IFS
                   2688:   IFS=:
                   2689:   for pgac_dir in $PATH; do
                   2690:     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
                   2691:       pgac_dir=`pwd`
1.1       petere   2692:     fi
1.40      petere   2693:     for pgac_prog in flex lex; do
                   2694:       pgac_candidate="$pgac_dir/$pgac_prog"
                   2695:       if test -f "$pgac_candidate" \
1.72      petere   2696:         && $pgac_candidate --version </dev/null >/dev/null 2>&1
1.40      petere   2697:       then
                   2698:         echo '%%'  > conftest.l
                   2699:         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
                   2700:           if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
                   2701:             pgac_broken_flex=$pgac_candidate
                   2702:             continue
                   2703:           fi
                   2704: 
                   2705:           pgac_cv_path_flex=$pgac_candidate
                   2706:           break 2
                   2707:         fi
                   2708:       fi
                   2709:     done
1.1       petere   2710:   done
1.40      petere   2711:   IFS=$pgac_save_IFS
                   2712:   rm -f conftest.l
                   2713:   : ${pgac_cv_path_flex=no}
1.1       petere   2714: fi
1.40      petere   2715: 
1.1       petere   2716: fi
                   2717: 
1.40      petere   2718: echo "$ac_t""$pgac_cv_path_flex" 1>&6
                   2719: if test x"$pgac_cv_path_flex" = x"no"; then
                   2720:   if test -n "$pgac_broken_flex"; then
                   2721:     echo "configure: warning: 
1.105     petere   2722: *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
                   2723: *** should get version 2.5.4 or later." 1>&2
1.40      petere   2724:   fi
1.1       petere   2725: 
1.40      petere   2726:   echo "configure: warning: 
1.105     petere   2727: *** Without Flex you will not be able to build PostgreSQL from CVS or
                   2728: *** change any of the scanner definition files.  You can obtain Flex from
                   2729: *** a GNU mirror site.  (If you are using the official distribution of
                   2730: *** PostgreSQL then you do not need to worry about this because the Flex
                   2731: *** output is pre-generated.)" 1>&2
1.1       petere   2732: fi
                   2733: 
1.40      petere   2734: if test x"$pgac_cv_path_flex" = x"no"; then
                   2735:   FLEX=
1.1       petere   2736: else
1.40      petere   2737:   FLEX=$pgac_cv_path_flex
1.1       petere   2738: fi
                   2739: 
                   2740: 
1.40      petere   2741: 
                   2742: 
1.1       petere   2743: echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1.105     petere   2744: echo "configure:2745: checking whether ln -s works" >&5
1.1       petere   2745: if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
                   2746:   echo $ac_n "(cached) $ac_c" 1>&6
                   2747: else
                   2748:   rm -f conftestdata
                   2749: if ln -s X conftestdata 2>/dev/null
                   2750: then
                   2751:   rm -f conftestdata
                   2752:   ac_cv_prog_LN_S="ln -s"
                   2753: else
                   2754:   ac_cv_prog_LN_S=ln
                   2755: fi
                   2756: fi
                   2757: LN_S="$ac_cv_prog_LN_S"
                   2758: if test "$ac_cv_prog_LN_S" = "ln -s"; then
                   2759:   echo "$ac_t""yes" 1>&6
                   2760: else
                   2761:   echo "$ac_t""no" 1>&6
                   2762: fi
                   2763: 
1.64      petere   2764: # Check whether --with-gnu-ld or --without-gnu-ld was given.
                   2765: if test "${with_gnu_ld+set}" = set; then
                   2766:   withval="$with_gnu_ld"
                   2767:   test "$withval" = no || with_gnu_ld=yes
                   2768: else
                   2769:   with_gnu_ld=no
                   2770: fi
                   2771: 
                   2772: ac_prog=ld
                   2773: if test "$ac_cv_prog_gcc" = yes; then
                   2774:   # Check if gcc -print-prog-name=ld gives a path.
                   2775:   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1.105     petere   2776: echo "configure:2777: checking for ld used by GCC" >&5
1.64      petere   2777:   case $host in
                   2778:   *-*-mingw*)
                   2779:     # gcc leaves a trailing carriage return which upsets mingw
                   2780:     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
                   2781:   *)
                   2782:     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
                   2783:   esac
                   2784:   case "$ac_prog" in
                   2785:     # Accept absolute paths.
                   2786:     [\\/]* | [A-Za-z]:[\\/]*)
                   2787:       re_direlt='/[^/][^/]*/\.\./'
                   2788:       # Canonicalize the path of ld
                   2789:       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
                   2790:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
                   2791:        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
                   2792:       done
                   2793:       test -z "$LD" && LD="$ac_prog"
                   2794:       ;;
                   2795:   "")
                   2796:     # If it fails, then pretend we aren't using GCC.
                   2797:     ac_prog=ld
                   2798:     ;;
                   2799:   *)
                   2800:     # If it is relative, then search for the first ld in PATH.
                   2801:     with_gnu_ld=unknown
                   2802:     ;;
                   2803:   esac
                   2804: elif test "$with_gnu_ld" = yes; then
                   2805:   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1.105     petere   2806: echo "configure:2807: checking for GNU ld" >&5
1.64      petere   2807: else
                   2808:   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1.105     petere   2809: echo "configure:2810: checking for non-GNU ld" >&5
1.64      petere   2810: fi
                   2811: if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
                   2812:   echo $ac_n "(cached) $ac_c" 1>&6
                   2813: else
                   2814:   if test -z "$LD"; then
                   2815:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
                   2816:   for ac_dir in $PATH; do
                   2817:     test -z "$ac_dir" && ac_dir=.
                   2818:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
                   2819:       ac_cv_path_LD="$ac_dir/$ac_prog"
                   2820:       # Check to see if the program is GNU ld.  I'd rather use --version,
                   2821:       # but apparently some GNU ld's only accept -v.
                   2822:       # Break only if it was the GNU/non-GNU ld that we prefer.
                   2823:       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
                   2824:        test "$with_gnu_ld" != no && break
                   2825:       else
                   2826:        test "$with_gnu_ld" != yes && break
                   2827:       fi
                   2828:     fi
                   2829:   done
                   2830:   IFS="$ac_save_ifs"
                   2831: else
                   2832:   ac_cv_path_LD="$LD" # Let the user override the test with a path.
                   2833: fi
                   2834: fi
                   2835: 
                   2836: LD="$ac_cv_path_LD"
                   2837: if test -n "$LD"; then
                   2838:   echo "$ac_t""$LD" 1>&6
                   2839: else
                   2840:   echo "$ac_t""no" 1>&6
                   2841: fi
                   2842: test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
                   2843: echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1.105     petere   2844: echo "configure:2845: checking if the linker ($LD) is GNU ld" >&5
1.64      petere   2845: if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
                   2846:   echo $ac_n "(cached) $ac_c" 1>&6
                   2847: else
                   2848:   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
                   2849: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
                   2850:   ac_cv_prog_gnu_ld=yes
                   2851: else
                   2852:   ac_cv_prog_gnu_ld=no
                   2853: fi
                   2854: fi
                   2855: 
                   2856: echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
                   2857: with_gnu_ld=$ac_cv_prog_gnu_ld
                   2858: 
                   2859: 
1.69      petere   2860: 
                   2861: 
1.83      petere   2862: case $host_os in sysv5uw*)
                   2863:   echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
1.105     petere   2864: echo "configure:2865: checking whether ld -R works" >&5
1.83      petere   2865: if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
                   2866:   echo $ac_n "(cached) $ac_c" 1>&6
                   2867: else
                   2868:   
                   2869:     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
                   2870:     cat > conftest.$ac_ext <<EOF
1.105     petere   2871: #line 2872 "configure"
1.83      petere   2872: #include "confdefs.h"
                   2873: 
                   2874: int main() {
                   2875: 
                   2876: ; return 0; }
                   2877: EOF
1.105     petere   2878: if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.83      petere   2879:   rm -rf conftest*
                   2880:   pgac_cv_prog_ld_R=yes
                   2881: else
                   2882:   echo "configure: failed program was:" >&5
                   2883:   cat conftest.$ac_ext >&5
                   2884:   rm -rf conftest*
                   2885:   pgac_cv_prog_ld_R=no
                   2886: fi
                   2887: rm -f conftest*
                   2888:     LDFLAGS=$pgac_save_LDFLAGS
                   2889:   
                   2890: fi
                   2891: 
                   2892: echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
                   2893:   ld_R_works=$pgac_cv_prog_ld_R
                   2894:   
                   2895: esac
1.1       petere   2896: # Extract the first word of "ranlib", so it can be a program name with args.
                   2897: set dummy ranlib; ac_word=$2
                   2898: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.105     petere   2899: echo "configure:2900: checking for $ac_word" >&5
1.1       petere   2900: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
                   2901:   echo $ac_n "(cached) $ac_c" 1>&6
                   2902: else
                   2903:   if test -n "$RANLIB"; then
                   2904:   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
                   2905: else
                   2906:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2907:   ac_dummy="$PATH"
                   2908:   for ac_dir in $ac_dummy; do
                   2909:     test -z "$ac_dir" && ac_dir=.
                   2910:     if test -f $ac_dir/$ac_word; then
                   2911:       ac_cv_prog_RANLIB="ranlib"
                   2912:       break
                   2913:     fi
                   2914:   done
                   2915:   IFS="$ac_save_ifs"
                   2916:   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
                   2917: fi
                   2918: fi
                   2919: RANLIB="$ac_cv_prog_RANLIB"
                   2920: if test -n "$RANLIB"; then
                   2921:   echo "$ac_t""$RANLIB" 1>&6
                   2922: else
                   2923:   echo "$ac_t""no" 1>&6
                   2924: fi
                   2925: 
1.60      petere   2926: for ac_prog in lorder
                   2927: do
                   2928: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2929: set dummy $ac_prog; ac_word=$2
                   2930: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.105     petere   2931: echo "configure:2932: checking for $ac_word" >&5
1.60      petere   2932: if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
                   2933:   echo $ac_n "(cached) $ac_c" 1>&6
                   2934: else
                   2935:   if test -n "$LORDER"; then
                   2936:   ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
                   2937: else
                   2938:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2939:   ac_dummy="$PATH"
                   2940:   for ac_dir in $ac_dummy; do
                   2941:     test -z "$ac_dir" && ac_dir=.
                   2942:     if test -f $ac_dir/$ac_word; then
                   2943:       ac_cv_prog_LORDER="$ac_prog"
                   2944:       break
                   2945:     fi
                   2946:   done
                   2947:   IFS="$ac_save_ifs"
                   2948: fi
                   2949: fi
                   2950: LORDER="$ac_cv_prog_LORDER"
                   2951: if test -n "$LORDER"; then
                   2952:   echo "$ac_t""$LORDER" 1>&6
                   2953: else
                   2954:   echo "$ac_t""no" 1>&6
                   2955: fi
                   2956: 
                   2957: test -n "$LORDER" && break
                   2958: done
                   2959: 
1.1       petere   2960: # Extract the first word of "tar", so it can be a program name with args.
                   2961: set dummy tar; ac_word=$2
                   2962: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.105     petere   2963: echo "configure:2964: checking for $ac_word" >&5
1.58      petere   2964: if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
1.1       petere   2965:   echo $ac_n "(cached) $ac_c" 1>&6
                   2966: else
1.58      petere   2967:   case "$TAR" in
1.1       petere   2968:   /*)
1.58      petere   2969:   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1.1       petere   2970:   ;;
                   2971:   ?:/*)                         
1.58      petere   2972:   ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
1.1       petere   2973:   ;;
                   2974:   *)
                   2975:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   2976:   ac_dummy="$PATH"
                   2977:   for ac_dir in $ac_dummy; do 
                   2978:     test -z "$ac_dir" && ac_dir=.
                   2979:     if test -f $ac_dir/$ac_word; then
1.58      petere   2980:       ac_cv_path_TAR="$ac_dir/$ac_word"
1.1       petere   2981:       break
                   2982:     fi
                   2983:   done
                   2984:   IFS="$ac_save_ifs"
                   2985:   ;;
                   2986: esac
                   2987: fi
1.58      petere   2988: TAR="$ac_cv_path_TAR"
                   2989: if test -n "$TAR"; then
                   2990:   echo "$ac_t""$TAR" 1>&6
1.1       petere   2991: else
                   2992:   echo "$ac_t""no" 1>&6
                   2993: fi
                   2994: 
                   2995: for ac_prog in perl
                   2996: do
                   2997: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   2998: set dummy $ac_prog; ac_word=$2
                   2999: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.105     petere   3000: echo "configure:3001: checking for $ac_word" >&5
1.1       petere   3001: if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
                   3002:   echo $ac_n "(cached) $ac_c" 1>&6
                   3003: else
                   3004:   if test -n "$PERL"; then
                   3005:   ac_cv_prog_PERL="$PERL" # Let the user override the test.
                   3006: else
                   3007:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   3008:   ac_dummy="$PATH"
                   3009:   for ac_dir in $ac_dummy; do
                   3010:     test -z "$ac_dir" && ac_dir=.
                   3011:     if test -f $ac_dir/$ac_word; then
                   3012:       ac_cv_prog_PERL="$ac_prog"
                   3013:       break
                   3014:     fi
                   3015:   done
                   3016:   IFS="$ac_save_ifs"
                   3017: fi
                   3018: fi
                   3019: PERL="$ac_cv_prog_PERL"
                   3020: if test -n "$PERL"; then
                   3021:   echo "$ac_t""$PERL" 1>&6
                   3022: else
                   3023:   echo "$ac_t""no" 1>&6
                   3024: fi
                   3025: 
                   3026: test -n "$PERL" && break
                   3027: done
                   3028: 
1.105     petere   3029: 
                   3030: for ac_prog in 'bison -y'
1.2       petere   3031: do
                   3032: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   3033: set dummy $ac_prog; ac_word=$2
1.1       petere   3034: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.105     petere   3035: echo "configure:3036: checking for $ac_word" >&5
1.2       petere   3036: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1.1       petere   3037:   echo $ac_n "(cached) $ac_c" 1>&6
                   3038: else
1.2       petere   3039:   if test -n "$YACC"; then
                   3040:   ac_cv_prog_YACC="$YACC" # Let the user override the test.
                   3041: else
1.1       petere   3042:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   3043:   ac_dummy="$PATH"
1.2       petere   3044:   for ac_dir in $ac_dummy; do
1.1       petere   3045:     test -z "$ac_dir" && ac_dir=.
                   3046:     if test -f $ac_dir/$ac_word; then
1.2       petere   3047:       ac_cv_prog_YACC="$ac_prog"
1.1       petere   3048:       break
                   3049:     fi
                   3050:   done
                   3051:   IFS="$ac_save_ifs"
                   3052: fi
1.2       petere   3053: fi
                   3054: YACC="$ac_cv_prog_YACC"
                   3055: if test -n "$YACC"; then
                   3056:   echo "$ac_t""$YACC" 1>&6
1.1       petere   3057: else
                   3058:   echo "$ac_t""no" 1>&6
                   3059: fi
                   3060: 
1.2       petere   3061: test -n "$YACC" && break
                   3062: done
1.105     petere   3063: 
                   3064: if test -z "$YACC"; then
                   3065:   echo "configure: warning: 
                   3066: *** Without Bison you will not be able to build PostgreSQL from CVS or
                   3067: *** change any of the parser definition files.  You can obtain Bison from
                   3068: *** a GNU mirror site.  (If you are using the official distribution of
                   3069: *** PostgreSQL then you do not need to worry about this because the Bison
                   3070: *** output is pre-generated.)  To use a different yacc program (possible,
                   3071: *** but not recommended), set the environment variable YACC before running
                   3072: *** 'configure'." 1>&2
                   3073: fi
1.1       petere   3074: 
                   3075: 
1.44      petere   3076: if test "$with_tk" = yes; then
                   3077:     # Extract the first word of "wish", so it can be a program name with args.
                   3078: set dummy wish; ac_word=$2
                   3079: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.105     petere   3080: echo "configure:3081: checking for $ac_word" >&5
1.44      petere   3081: if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
                   3082:   echo $ac_n "(cached) $ac_c" 1>&6
                   3083: else
                   3084:   case "$WISH" in
                   3085:   /*)
                   3086:   ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
                   3087:   ;;
                   3088:   ?:/*)                         
                   3089:   ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
                   3090:   ;;
                   3091:   *)
                   3092:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   3093:   ac_dummy="$PATH"
                   3094:   for ac_dir in $ac_dummy; do 
                   3095:     test -z "$ac_dir" && ac_dir=.
                   3096:     if test -f $ac_dir/$ac_word; then
                   3097:       ac_cv_path_WISH="$ac_dir/$ac_word"
                   3098:       break
                   3099:     fi
                   3100:   done
                   3101:   IFS="$ac_save_ifs"
                   3102:   ;;
                   3103: esac
                   3104: fi
                   3105: WISH="$ac_cv_path_WISH"
                   3106: if test -n "$WISH"; then
                   3107:   echo "$ac_t""$WISH" 1>&6
                   3108: else
                   3109:   echo "$ac_t""no" 1>&6
                   3110: fi
                   3111: 
1.86      petere   3112:     test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
1.44      petere   3113: fi
1.1       petere   3114: 
1.5       petere   3115: 
1.29      petere   3116: ##
                   3117: ## Libraries
                   3118: ##
                   3119: 
1.1       petere   3120: echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
1.105     petere   3121: echo "configure:3122: checking for main in -lsfio" >&5
1.1       petere   3122: ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
                   3123: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3124:   echo $ac_n "(cached) $ac_c" 1>&6
                   3125: else
                   3126:   ac_save_LIBS="$LIBS"
                   3127: LIBS="-lsfio  $LIBS"
                   3128: cat > conftest.$ac_ext <<EOF
1.105     petere   3129: #line 3130 "configure"
1.1       petere   3130: #include "confdefs.h"
                   3131: 
                   3132: int main() {
                   3133: main()
                   3134: ; return 0; }
                   3135: EOF
1.105     petere   3136: if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3137:   rm -rf conftest*
                   3138:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3139: else
                   3140:   echo "configure: failed program was:" >&5
                   3141:   cat conftest.$ac_ext >&5
                   3142:   rm -rf conftest*
                   3143:   eval "ac_cv_lib_$ac_lib_var=no"
                   3144: fi
                   3145: rm -f conftest*
                   3146: LIBS="$ac_save_LIBS"
                   3147: 
                   3148: fi
                   3149: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3150:   echo "$ac_t""yes" 1>&6
                   3151:     ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3152:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3153:   cat >> confdefs.h <<EOF
                   3154: #define $ac_tr_lib 1
                   3155: EOF
                   3156: 
                   3157:   LIBS="-lsfio $LIBS"
                   3158: 
                   3159: else
                   3160:   echo "$ac_t""no" 1>&6
                   3161: fi
                   3162: 
1.103     petere   3163: echo $ac_n "checking for readline""... $ac_c" 1>&6
1.105     petere   3164: echo "configure:3165: checking for readline" >&5
1.12      petere   3165: 
1.103     petere   3166: if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
1.1       petere   3167:   echo $ac_n "(cached) $ac_c" 1>&6
                   3168: else
1.103     petere   3169:   pgac_cv_check_readline=no
                   3170: for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
                   3171:   for pgac_rllib in -lreadline -ledit ; do
                   3172:     pgac_save_LIBS=$LIBS
                   3173:     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
                   3174:     cat > conftest.$ac_ext <<EOF
1.105     petere   3175: #line 3176 "configure"
1.1       petere   3176: #include "confdefs.h"
1.54      petere   3177: /* Override any gcc2 internal prototype to avoid an error.  */
                   3178: /* We use char because int might match the return type of a gcc2
                   3179:     builtin and then its argument prototype would still apply.  */
                   3180: char readline();
1.1       petere   3181: 
                   3182: int main() {
1.54      petere   3183: readline()
1.1       petere   3184: ; return 0; }
                   3185: EOF
1.105     petere   3186: if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3187:   rm -rf conftest*
1.103     petere   3188:   pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2
1.1       petere   3189: else
                   3190:   echo "configure: failed program was:" >&5
                   3191:   cat conftest.$ac_ext >&5
1.94      petere   3192: fi
                   3193: rm -f conftest*
1.103     petere   3194:     LIBS=$pgac_save_LIBS
                   3195:   done
                   3196: done
                   3197: LIBS=$pgac_save_LIBS
1.94      petere   3198: 
                   3199: fi
1.1       petere   3200: 
1.103     petere   3201: if test "$pgac_cv_check_readline" != no ; then
1.94      petere   3202:   cat >> confdefs.h <<\EOF
                   3203: #define HAVE_LIBREADLINE 1
1.1       petere   3204: EOF
                   3205: 
1.103     petere   3206:   LIBS="$pgac_cv_check_readline $LIBS"
                   3207:   echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
                   3208: else
                   3209:   echo "$ac_t""no" 1>&6
1.1       petere   3210: fi
                   3211: 
1.54      petere   3212: echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
1.105     petere   3213: echo "configure:3214: checking for library containing using_history" >&5
1.54      petere   3214: if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
1.1       petere   3215:   echo $ac_n "(cached) $ac_c" 1>&6
                   3216: else
1.54      petere   3217:   ac_func_search_save_LIBS="$LIBS"
                   3218: ac_cv_search_using_history="no"
1.1       petere   3219: cat > conftest.$ac_ext <<EOF
1.105     petere   3220: #line 3221 "configure"
1.1       petere   3221: #include "confdefs.h"
                   3222: /* Override any gcc2 internal prototype to avoid an error.  */
                   3223: /* We use char because int might match the return type of a gcc2
                   3224:     builtin and then its argument prototype would still apply.  */
                   3225: char using_history();
                   3226: 
                   3227: int main() {
                   3228: using_history()
                   3229: ; return 0; }
                   3230: EOF
1.105     petere   3231: if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3232:   rm -rf conftest*
1.54      petere   3233:   ac_cv_search_using_history="none required"
1.1       petere   3234: else
                   3235:   echo "configure: failed program was:" >&5
                   3236:   cat conftest.$ac_ext >&5
                   3237: fi
                   3238: rm -f conftest*
1.54      petere   3239: test "$ac_cv_search_using_history" = "no" && for i in history; do
                   3240: LIBS="-l$i  $ac_func_search_save_LIBS"
1.1       petere   3241: cat > conftest.$ac_ext <<EOF
1.105     petere   3242: #line 3243 "configure"
1.1       petere   3243: #include "confdefs.h"
1.54      petere   3244: /* Override any gcc2 internal prototype to avoid an error.  */
                   3245: /* We use char because int might match the return type of a gcc2
                   3246:     builtin and then its argument prototype would still apply.  */
                   3247: char using_history();
1.1       petere   3248: 
                   3249: int main() {
1.54      petere   3250: using_history()
1.1       petere   3251: ; return 0; }
                   3252: EOF
1.105     petere   3253: if { (eval echo configure:3254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3254:   rm -rf conftest*
1.54      petere   3255:   ac_cv_search_using_history="-l$i"
                   3256: break
1.1       petere   3257: else
                   3258:   echo "configure: failed program was:" >&5
                   3259:   cat conftest.$ac_ext >&5
                   3260: fi
                   3261: rm -f conftest*
1.54      petere   3262: done
                   3263: LIBS="$ac_func_search_save_LIBS"
                   3264: fi
1.1       petere   3265: 
1.54      petere   3266: echo "$ac_t""$ac_cv_search_using_history" 1>&6
                   3267: if test "$ac_cv_search_using_history" != "no"; then
                   3268:   test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
                   3269:   cat >> confdefs.h <<\EOF
                   3270: #define HAVE_HISTORY_FUNCTIONS 1
1.1       petere   3271: EOF
                   3272: 
1.54      petere   3273: else :
                   3274:   
1.1       petere   3275: fi
                   3276: 
                   3277: if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
                   3278: then
                   3279:        echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
1.105     petere   3280: echo "configure:3281: checking for main in -lbsd" >&5
1.1       petere   3281: ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
                   3282: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3283:   echo $ac_n "(cached) $ac_c" 1>&6
                   3284: else
                   3285:   ac_save_LIBS="$LIBS"
                   3286: LIBS="-lbsd  $LIBS"
                   3287: cat > conftest.$ac_ext <<EOF
1.105     petere   3288: #line 3289 "configure"
1.1       petere   3289: #include "confdefs.h"
                   3290: 
                   3291: int main() {
                   3292: main()
                   3293: ; return 0; }
                   3294: EOF
1.105     petere   3295: if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3296:   rm -rf conftest*
                   3297:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3298: else
                   3299:   echo "configure: failed program was:" >&5
                   3300:   cat conftest.$ac_ext >&5
                   3301:   rm -rf conftest*
                   3302:   eval "ac_cv_lib_$ac_lib_var=no"
                   3303: fi
                   3304: rm -f conftest*
                   3305: LIBS="$ac_save_LIBS"
                   3306: 
                   3307: fi
                   3308: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3309:   echo "$ac_t""yes" 1>&6
                   3310:     ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3311:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3312:   cat >> confdefs.h <<EOF
                   3313: #define $ac_tr_lib 1
                   3314: EOF
                   3315: 
                   3316:   LIBS="-lbsd $LIBS"
                   3317: 
                   3318: else
                   3319:   echo "$ac_t""no" 1>&6
                   3320: fi
                   3321: 
                   3322: fi
1.21      petere   3323: echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
1.105     petere   3324: echo "configure:3325: checking for setproctitle in -lutil" >&5
1.21      petere   3325: ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
1.1       petere   3326: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3327:   echo $ac_n "(cached) $ac_c" 1>&6
                   3328: else
                   3329:   ac_save_LIBS="$LIBS"
                   3330: LIBS="-lutil  $LIBS"
                   3331: cat > conftest.$ac_ext <<EOF
1.105     petere   3332: #line 3333 "configure"
1.1       petere   3333: #include "confdefs.h"
1.21      petere   3334: /* Override any gcc2 internal prototype to avoid an error.  */
                   3335: /* We use char because int might match the return type of a gcc2
                   3336:     builtin and then its argument prototype would still apply.  */
                   3337: char setproctitle();
1.1       petere   3338: 
                   3339: int main() {
1.21      petere   3340: setproctitle()
1.1       petere   3341: ; return 0; }
                   3342: EOF
1.105     petere   3343: if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3344:   rm -rf conftest*
                   3345:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3346: else
                   3347:   echo "configure: failed program was:" >&5
                   3348:   cat conftest.$ac_ext >&5
                   3349:   rm -rf conftest*
                   3350:   eval "ac_cv_lib_$ac_lib_var=no"
                   3351: fi
                   3352: rm -f conftest*
                   3353: LIBS="$ac_save_LIBS"
                   3354: 
                   3355: fi
                   3356: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3357:   echo "$ac_t""yes" 1>&6
                   3358:     ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3359:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3360:   cat >> confdefs.h <<EOF
                   3361: #define $ac_tr_lib 1
                   3362: EOF
                   3363: 
                   3364:   LIBS="-lutil $LIBS"
                   3365: 
                   3366: else
                   3367:   echo "$ac_t""no" 1>&6
                   3368: fi
                   3369: 
                   3370: echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1.105     petere   3371: echo "configure:3372: checking for main in -lm" >&5
1.1       petere   3372: ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
                   3373: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3374:   echo $ac_n "(cached) $ac_c" 1>&6
                   3375: else
                   3376:   ac_save_LIBS="$LIBS"
                   3377: LIBS="-lm  $LIBS"
                   3378: cat > conftest.$ac_ext <<EOF
1.105     petere   3379: #line 3380 "configure"
1.1       petere   3380: #include "confdefs.h"
                   3381: 
                   3382: int main() {
                   3383: main()
                   3384: ; return 0; }
                   3385: EOF
1.105     petere   3386: if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3387:   rm -rf conftest*
                   3388:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3389: else
                   3390:   echo "configure: failed program was:" >&5
                   3391:   cat conftest.$ac_ext >&5
                   3392:   rm -rf conftest*
                   3393:   eval "ac_cv_lib_$ac_lib_var=no"
                   3394: fi
                   3395: rm -f conftest*
                   3396: LIBS="$ac_save_LIBS"
                   3397: 
                   3398: fi
                   3399: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3400:   echo "$ac_t""yes" 1>&6
                   3401:     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3402:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3403:   cat >> confdefs.h <<EOF
                   3404: #define $ac_tr_lib 1
                   3405: EOF
                   3406: 
                   3407:   LIBS="-lm $LIBS"
                   3408: 
                   3409: else
                   3410:   echo "$ac_t""no" 1>&6
                   3411: fi
                   3412: 
                   3413: echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
1.105     petere   3414: echo "configure:3415: checking for main in -ldl" >&5
1.1       petere   3415: ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
                   3416: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3417:   echo $ac_n "(cached) $ac_c" 1>&6
                   3418: else
                   3419:   ac_save_LIBS="$LIBS"
                   3420: LIBS="-ldl  $LIBS"
                   3421: cat > conftest.$ac_ext <<EOF
1.105     petere   3422: #line 3423 "configure"
1.1       petere   3423: #include "confdefs.h"
                   3424: 
                   3425: int main() {
                   3426: main()
                   3427: ; return 0; }
                   3428: EOF
1.105     petere   3429: if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3430:   rm -rf conftest*
                   3431:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3432: else
                   3433:   echo "configure: failed program was:" >&5
                   3434:   cat conftest.$ac_ext >&5
                   3435:   rm -rf conftest*
                   3436:   eval "ac_cv_lib_$ac_lib_var=no"
                   3437: fi
                   3438: rm -f conftest*
                   3439: LIBS="$ac_save_LIBS"
                   3440: 
                   3441: fi
                   3442: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3443:   echo "$ac_t""yes" 1>&6
                   3444:     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3445:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3446:   cat >> confdefs.h <<EOF
                   3447: #define $ac_tr_lib 1
                   3448: EOF
                   3449: 
                   3450:   LIBS="-ldl $LIBS"
                   3451: 
                   3452: else
                   3453:   echo "$ac_t""no" 1>&6
                   3454: fi
                   3455: 
                   3456: echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1.105     petere   3457: echo "configure:3458: checking for main in -lsocket" >&5
1.1       petere   3458: ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
                   3459: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3460:   echo $ac_n "(cached) $ac_c" 1>&6
                   3461: else
                   3462:   ac_save_LIBS="$LIBS"
                   3463: LIBS="-lsocket  $LIBS"
                   3464: cat > conftest.$ac_ext <<EOF
1.105     petere   3465: #line 3466 "configure"
1.1       petere   3466: #include "confdefs.h"
                   3467: 
                   3468: int main() {
                   3469: main()
                   3470: ; return 0; }
                   3471: EOF
1.105     petere   3472: if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3473:   rm -rf conftest*
                   3474:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3475: else
                   3476:   echo "configure: failed program was:" >&5
                   3477:   cat conftest.$ac_ext >&5
                   3478:   rm -rf conftest*
                   3479:   eval "ac_cv_lib_$ac_lib_var=no"
                   3480: fi
                   3481: rm -f conftest*
                   3482: LIBS="$ac_save_LIBS"
                   3483: 
                   3484: fi
                   3485: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3486:   echo "$ac_t""yes" 1>&6
                   3487:     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3488:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3489:   cat >> confdefs.h <<EOF
                   3490: #define $ac_tr_lib 1
                   3491: EOF
                   3492: 
                   3493:   LIBS="-lsocket $LIBS"
                   3494: 
                   3495: else
                   3496:   echo "$ac_t""no" 1>&6
                   3497: fi
                   3498: 
                   3499: echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1.105     petere   3500: echo "configure:3501: checking for main in -lnsl" >&5
1.1       petere   3501: ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
                   3502: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3503:   echo $ac_n "(cached) $ac_c" 1>&6
                   3504: else
                   3505:   ac_save_LIBS="$LIBS"
                   3506: LIBS="-lnsl  $LIBS"
                   3507: cat > conftest.$ac_ext <<EOF
1.105     petere   3508: #line 3509 "configure"
1.1       petere   3509: #include "confdefs.h"
                   3510: 
                   3511: int main() {
                   3512: main()
                   3513: ; return 0; }
                   3514: EOF
1.105     petere   3515: if { (eval echo configure:3516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3516:   rm -rf conftest*
                   3517:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3518: else
                   3519:   echo "configure: failed program was:" >&5
                   3520:   cat conftest.$ac_ext >&5
                   3521:   rm -rf conftest*
                   3522:   eval "ac_cv_lib_$ac_lib_var=no"
                   3523: fi
                   3524: rm -f conftest*
                   3525: LIBS="$ac_save_LIBS"
                   3526: 
                   3527: fi
                   3528: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3529:   echo "$ac_t""yes" 1>&6
                   3530:     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3531:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3532:   cat >> confdefs.h <<EOF
                   3533: #define $ac_tr_lib 1
                   3534: EOF
                   3535: 
                   3536:   LIBS="-lnsl $LIBS"
                   3537: 
                   3538: else
                   3539:   echo "$ac_t""no" 1>&6
                   3540: fi
                   3541: 
                   3542: echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
1.105     petere   3543: echo "configure:3544: checking for main in -lipc" >&5
1.1       petere   3544: ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
                   3545: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3546:   echo $ac_n "(cached) $ac_c" 1>&6
                   3547: else
                   3548:   ac_save_LIBS="$LIBS"
                   3549: LIBS="-lipc  $LIBS"
                   3550: cat > conftest.$ac_ext <<EOF
1.105     petere   3551: #line 3552 "configure"
1.1       petere   3552: #include "confdefs.h"
                   3553: 
                   3554: int main() {
                   3555: main()
                   3556: ; return 0; }
                   3557: EOF
1.105     petere   3558: if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3559:   rm -rf conftest*
                   3560:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3561: else
                   3562:   echo "configure: failed program was:" >&5
                   3563:   cat conftest.$ac_ext >&5
                   3564:   rm -rf conftest*
                   3565:   eval "ac_cv_lib_$ac_lib_var=no"
                   3566: fi
                   3567: rm -f conftest*
                   3568: LIBS="$ac_save_LIBS"
                   3569: 
                   3570: fi
                   3571: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3572:   echo "$ac_t""yes" 1>&6
                   3573:     ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3574:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3575:   cat >> confdefs.h <<EOF
                   3576: #define $ac_tr_lib 1
                   3577: EOF
                   3578: 
                   3579:   LIBS="-lipc $LIBS"
                   3580: 
                   3581: else
                   3582:   echo "$ac_t""no" 1>&6
                   3583: fi
                   3584: 
                   3585: echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
1.105     petere   3586: echo "configure:3587: checking for main in -lIPC" >&5
1.1       petere   3587: ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
                   3588: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3589:   echo $ac_n "(cached) $ac_c" 1>&6
                   3590: else
                   3591:   ac_save_LIBS="$LIBS"
                   3592: LIBS="-lIPC  $LIBS"
                   3593: cat > conftest.$ac_ext <<EOF
1.105     petere   3594: #line 3595 "configure"
1.1       petere   3595: #include "confdefs.h"
                   3596: 
                   3597: int main() {
                   3598: main()
                   3599: ; return 0; }
                   3600: EOF
1.105     petere   3601: if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3602:   rm -rf conftest*
                   3603:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3604: else
                   3605:   echo "configure: failed program was:" >&5
                   3606:   cat conftest.$ac_ext >&5
                   3607:   rm -rf conftest*
                   3608:   eval "ac_cv_lib_$ac_lib_var=no"
                   3609: fi
                   3610: rm -f conftest*
                   3611: LIBS="$ac_save_LIBS"
                   3612: 
                   3613: fi
                   3614: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3615:   echo "$ac_t""yes" 1>&6
                   3616:     ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3617:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3618:   cat >> confdefs.h <<EOF
                   3619: #define $ac_tr_lib 1
                   3620: EOF
                   3621: 
                   3622:   LIBS="-lIPC $LIBS"
                   3623: 
                   3624: else
                   3625:   echo "$ac_t""no" 1>&6
                   3626: fi
                   3627: 
                   3628: echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
1.105     petere   3629: echo "configure:3630: checking for main in -llc" >&5
1.1       petere   3630: ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
                   3631: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3632:   echo $ac_n "(cached) $ac_c" 1>&6
                   3633: else
                   3634:   ac_save_LIBS="$LIBS"
                   3635: LIBS="-llc  $LIBS"
                   3636: cat > conftest.$ac_ext <<EOF
1.105     petere   3637: #line 3638 "configure"
1.1       petere   3638: #include "confdefs.h"
                   3639: 
                   3640: int main() {
                   3641: main()
                   3642: ; return 0; }
                   3643: EOF
1.105     petere   3644: if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3645:   rm -rf conftest*
                   3646:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3647: else
                   3648:   echo "configure: failed program was:" >&5
                   3649:   cat conftest.$ac_ext >&5
                   3650:   rm -rf conftest*
                   3651:   eval "ac_cv_lib_$ac_lib_var=no"
                   3652: fi
                   3653: rm -f conftest*
                   3654: LIBS="$ac_save_LIBS"
                   3655: 
                   3656: fi
                   3657: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3658:   echo "$ac_t""yes" 1>&6
                   3659:     ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3660:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3661:   cat >> confdefs.h <<EOF
                   3662: #define $ac_tr_lib 1
                   3663: EOF
                   3664: 
                   3665:   LIBS="-llc $LIBS"
                   3666: 
                   3667: else
                   3668:   echo "$ac_t""no" 1>&6
                   3669: fi
                   3670: 
                   3671: echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
1.105     petere   3672: echo "configure:3673: checking for main in -ldld" >&5
1.1       petere   3673: ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
                   3674: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3675:   echo $ac_n "(cached) $ac_c" 1>&6
                   3676: else
                   3677:   ac_save_LIBS="$LIBS"
                   3678: LIBS="-ldld  $LIBS"
                   3679: cat > conftest.$ac_ext <<EOF
1.105     petere   3680: #line 3681 "configure"
1.1       petere   3681: #include "confdefs.h"
                   3682: 
                   3683: int main() {
                   3684: main()
                   3685: ; return 0; }
                   3686: EOF
1.105     petere   3687: if { (eval echo configure:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3688:   rm -rf conftest*
                   3689:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3690: else
                   3691:   echo "configure: failed program was:" >&5
                   3692:   cat conftest.$ac_ext >&5
                   3693:   rm -rf conftest*
                   3694:   eval "ac_cv_lib_$ac_lib_var=no"
                   3695: fi
                   3696: rm -f conftest*
                   3697: LIBS="$ac_save_LIBS"
                   3698: 
                   3699: fi
                   3700: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3701:   echo "$ac_t""yes" 1>&6
                   3702:     ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3703:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3704:   cat >> confdefs.h <<EOF
                   3705: #define $ac_tr_lib 1
                   3706: EOF
                   3707: 
                   3708:   LIBS="-ldld $LIBS"
                   3709: 
                   3710: else
                   3711:   echo "$ac_t""no" 1>&6
                   3712: fi
                   3713: 
                   3714: echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
1.105     petere   3715: echo "configure:3716: checking for main in -lld" >&5
1.1       petere   3716: ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
                   3717: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3718:   echo $ac_n "(cached) $ac_c" 1>&6
                   3719: else
                   3720:   ac_save_LIBS="$LIBS"
                   3721: LIBS="-lld  $LIBS"
                   3722: cat > conftest.$ac_ext <<EOF
1.105     petere   3723: #line 3724 "configure"
1.1       petere   3724: #include "confdefs.h"
                   3725: 
                   3726: int main() {
                   3727: main()
                   3728: ; return 0; }
                   3729: EOF
1.105     petere   3730: if { (eval echo configure:3731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   3731:   rm -rf conftest*
                   3732:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3733: else
                   3734:   echo "configure: failed program was:" >&5
                   3735:   cat conftest.$ac_ext >&5
                   3736:   rm -rf conftest*
                   3737:   eval "ac_cv_lib_$ac_lib_var=no"
                   3738: fi
                   3739: rm -f conftest*
                   3740: LIBS="$ac_save_LIBS"
                   3741: 
                   3742: fi
                   3743: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3744:   echo "$ac_t""yes" 1>&6
                   3745:     ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3746:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3747:   cat >> confdefs.h <<EOF
                   3748: #define $ac_tr_lib 1
                   3749: EOF
                   3750: 
                   3751:   LIBS="-lld $LIBS"
                   3752: 
                   3753: else
                   3754:   echo "$ac_t""no" 1>&6
                   3755: fi
                   3756: 
1.28      petere   3757: echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
1.105     petere   3758: echo "configure:3759: checking for main in -lcompat" >&5
1.28      petere   3759: ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
                   3760: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3761:   echo $ac_n "(cached) $ac_c" 1>&6
                   3762: else
                   3763:   ac_save_LIBS="$LIBS"
                   3764: LIBS="-lcompat  $LIBS"
                   3765: cat > conftest.$ac_ext <<EOF
1.105     petere   3766: #line 3767 "configure"
1.28      petere   3767: #include "confdefs.h"
                   3768: 
                   3769: int main() {
                   3770: main()
                   3771: ; return 0; }
                   3772: EOF
1.105     petere   3773: if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   3774:   rm -rf conftest*
                   3775:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3776: else
                   3777:   echo "configure: failed program was:" >&5
                   3778:   cat conftest.$ac_ext >&5
                   3779:   rm -rf conftest*
                   3780:   eval "ac_cv_lib_$ac_lib_var=no"
                   3781: fi
                   3782: rm -f conftest*
                   3783: LIBS="$ac_save_LIBS"
                   3784: 
                   3785: fi
                   3786: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3787:   echo "$ac_t""yes" 1>&6
                   3788:     ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3789:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3790:   cat >> confdefs.h <<EOF
                   3791: #define $ac_tr_lib 1
                   3792: EOF
                   3793: 
                   3794:   LIBS="-lcompat $LIBS"
                   3795: 
                   3796: else
                   3797:   echo "$ac_t""no" 1>&6
                   3798: fi
                   3799: 
                   3800: echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
1.105     petere   3801: echo "configure:3802: checking for main in -lBSD" >&5
1.28      petere   3802: ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
                   3803: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3804:   echo $ac_n "(cached) $ac_c" 1>&6
                   3805: else
                   3806:   ac_save_LIBS="$LIBS"
                   3807: LIBS="-lBSD  $LIBS"
                   3808: cat > conftest.$ac_ext <<EOF
1.105     petere   3809: #line 3810 "configure"
1.28      petere   3810: #include "confdefs.h"
                   3811: 
                   3812: int main() {
                   3813: main()
                   3814: ; return 0; }
                   3815: EOF
1.105     petere   3816: if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   3817:   rm -rf conftest*
                   3818:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3819: else
                   3820:   echo "configure: failed program was:" >&5
                   3821:   cat conftest.$ac_ext >&5
                   3822:   rm -rf conftest*
                   3823:   eval "ac_cv_lib_$ac_lib_var=no"
                   3824: fi
                   3825: rm -f conftest*
                   3826: LIBS="$ac_save_LIBS"
                   3827: 
                   3828: fi
                   3829: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3830:   echo "$ac_t""yes" 1>&6
                   3831:     ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3832:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3833:   cat >> confdefs.h <<EOF
                   3834: #define $ac_tr_lib 1
                   3835: EOF
                   3836: 
                   3837:   LIBS="-lBSD $LIBS"
                   3838: 
                   3839: else
                   3840:   echo "$ac_t""no" 1>&6
                   3841: fi
                   3842: 
                   3843: echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
1.105     petere   3844: echo "configure:3845: checking for main in -lgen" >&5
1.28      petere   3845: ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
                   3846: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3847:   echo $ac_n "(cached) $ac_c" 1>&6
                   3848: else
                   3849:   ac_save_LIBS="$LIBS"
                   3850: LIBS="-lgen  $LIBS"
                   3851: cat > conftest.$ac_ext <<EOF
1.105     petere   3852: #line 3853 "configure"
1.28      petere   3853: #include "confdefs.h"
                   3854: 
                   3855: int main() {
                   3856: main()
                   3857: ; return 0; }
                   3858: EOF
1.105     petere   3859: if { (eval echo configure:3860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   3860:   rm -rf conftest*
                   3861:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3862: else
                   3863:   echo "configure: failed program was:" >&5
                   3864:   cat conftest.$ac_ext >&5
                   3865:   rm -rf conftest*
                   3866:   eval "ac_cv_lib_$ac_lib_var=no"
                   3867: fi
                   3868: rm -f conftest*
                   3869: LIBS="$ac_save_LIBS"
                   3870: 
                   3871: fi
                   3872: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3873:   echo "$ac_t""yes" 1>&6
                   3874:     ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3875:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3876:   cat >> confdefs.h <<EOF
                   3877: #define $ac_tr_lib 1
                   3878: EOF
                   3879: 
                   3880:   LIBS="-lgen $LIBS"
                   3881: 
                   3882: else
                   3883:   echo "$ac_t""no" 1>&6
                   3884: fi
                   3885: 
                   3886: echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
1.105     petere   3887: echo "configure:3888: checking for main in -lPW" >&5
1.28      petere   3888: ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
                   3889: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3890:   echo $ac_n "(cached) $ac_c" 1>&6
                   3891: else
                   3892:   ac_save_LIBS="$LIBS"
                   3893: LIBS="-lPW  $LIBS"
                   3894: cat > conftest.$ac_ext <<EOF
1.105     petere   3895: #line 3896 "configure"
1.28      petere   3896: #include "confdefs.h"
                   3897: 
                   3898: int main() {
                   3899: main()
                   3900: ; return 0; }
                   3901: EOF
1.105     petere   3902: if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   3903:   rm -rf conftest*
                   3904:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3905: else
                   3906:   echo "configure: failed program was:" >&5
                   3907:   cat conftest.$ac_ext >&5
                   3908:   rm -rf conftest*
                   3909:   eval "ac_cv_lib_$ac_lib_var=no"
                   3910: fi
                   3911: rm -f conftest*
                   3912: LIBS="$ac_save_LIBS"
                   3913: 
                   3914: fi
                   3915: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3916:   echo "$ac_t""yes" 1>&6
                   3917:     ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3918:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3919:   cat >> confdefs.h <<EOF
                   3920: #define $ac_tr_lib 1
                   3921: EOF
                   3922: 
                   3923:   LIBS="-lPW $LIBS"
                   3924: 
                   3925: else
                   3926:   echo "$ac_t""no" 1>&6
                   3927: fi
                   3928: 
1.102     petere   3929: echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
1.105     petere   3930: echo "configure:3931: checking for main in -lresolv" >&5
1.102     petere   3931: ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
                   3932: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   3933:   echo $ac_n "(cached) $ac_c" 1>&6
                   3934: else
                   3935:   ac_save_LIBS="$LIBS"
                   3936: LIBS="-lresolv  $LIBS"
                   3937: cat > conftest.$ac_ext <<EOF
1.105     petere   3938: #line 3939 "configure"
1.102     petere   3939: #include "confdefs.h"
                   3940: 
                   3941: int main() {
                   3942: main()
                   3943: ; return 0; }
                   3944: EOF
1.105     petere   3945: if { (eval echo configure:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.102     petere   3946:   rm -rf conftest*
                   3947:   eval "ac_cv_lib_$ac_lib_var=yes"
                   3948: else
                   3949:   echo "configure: failed program was:" >&5
                   3950:   cat conftest.$ac_ext >&5
                   3951:   rm -rf conftest*
                   3952:   eval "ac_cv_lib_$ac_lib_var=no"
                   3953: fi
                   3954: rm -f conftest*
                   3955: LIBS="$ac_save_LIBS"
                   3956: 
                   3957: fi
                   3958: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   3959:   echo "$ac_t""yes" 1>&6
                   3960:     ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   3961:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   3962:   cat >> confdefs.h <<EOF
                   3963: #define $ac_tr_lib 1
                   3964: EOF
                   3965: 
                   3966:   LIBS="-lresolv $LIBS"
                   3967: 
                   3968: else
                   3969:   echo "$ac_t""no" 1>&6
                   3970: fi
                   3971: 
1.28      petere   3972: 
                   3973: echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
1.105     petere   3974: echo "configure:3975: checking for library containing crypt" >&5
1.28      petere   3975: if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
                   3976:   echo $ac_n "(cached) $ac_c" 1>&6
                   3977: else
                   3978:   ac_func_search_save_LIBS="$LIBS"
                   3979: ac_cv_search_crypt="no"
                   3980: cat > conftest.$ac_ext <<EOF
1.105     petere   3981: #line 3982 "configure"
1.28      petere   3982: #include "confdefs.h"
                   3983: /* Override any gcc2 internal prototype to avoid an error.  */
                   3984: /* We use char because int might match the return type of a gcc2
                   3985:     builtin and then its argument prototype would still apply.  */
                   3986: char crypt();
                   3987: 
                   3988: int main() {
                   3989: crypt()
                   3990: ; return 0; }
                   3991: EOF
1.105     petere   3992: if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   3993:   rm -rf conftest*
                   3994:   ac_cv_search_crypt="none required"
                   3995: else
                   3996:   echo "configure: failed program was:" >&5
                   3997:   cat conftest.$ac_ext >&5
                   3998: fi
                   3999: rm -f conftest*
                   4000: test "$ac_cv_search_crypt" = "no" && for i in crypt; do
                   4001: LIBS="-l$i  $ac_func_search_save_LIBS"
                   4002: cat > conftest.$ac_ext <<EOF
1.105     petere   4003: #line 4004 "configure"
1.28      petere   4004: #include "confdefs.h"
                   4005: /* Override any gcc2 internal prototype to avoid an error.  */
                   4006: /* We use char because int might match the return type of a gcc2
                   4007:     builtin and then its argument prototype would still apply.  */
                   4008: char crypt();
                   4009: 
                   4010: int main() {
                   4011: crypt()
                   4012: ; return 0; }
                   4013: EOF
1.105     petere   4014: if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   4015:   rm -rf conftest*
                   4016:   ac_cv_search_crypt="-l$i"
                   4017: break
                   4018: else
                   4019:   echo "configure: failed program was:" >&5
                   4020:   cat conftest.$ac_ext >&5
                   4021: fi
                   4022: rm -f conftest*
                   4023: done
                   4024: LIBS="$ac_func_search_save_LIBS"
                   4025: fi
                   4026: 
                   4027: echo "$ac_t""$ac_cv_search_crypt" 1>&6
                   4028: if test "$ac_cv_search_crypt" != "no"; then
                   4029:   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
                   4030:   
                   4031: else :
                   4032:   
                   4033: fi
1.92      tgl      4034: echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
1.105     petere   4035: echo "configure:4036: checking for __inet_ntoa in -lbind" >&5
1.92      tgl      4036: ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
1.28      petere   4037: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4038:   echo $ac_n "(cached) $ac_c" 1>&6
                   4039: else
                   4040:   ac_save_LIBS="$LIBS"
1.92      tgl      4041: LIBS="-lbind  $LIBS"
1.28      petere   4042: cat > conftest.$ac_ext <<EOF
1.105     petere   4043: #line 4044 "configure"
1.28      petere   4044: #include "confdefs.h"
                   4045: /* Override any gcc2 internal prototype to avoid an error.  */
                   4046: /* We use char because int might match the return type of a gcc2
                   4047:     builtin and then its argument prototype would still apply.  */
1.92      tgl      4048: char __inet_ntoa();
1.28      petere   4049: 
                   4050: int main() {
1.92      tgl      4051: __inet_ntoa()
1.28      petere   4052: ; return 0; }
                   4053: EOF
1.105     petere   4054: if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   4055:   rm -rf conftest*
                   4056:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4057: else
                   4058:   echo "configure: failed program was:" >&5
                   4059:   cat conftest.$ac_ext >&5
                   4060:   rm -rf conftest*
                   4061:   eval "ac_cv_lib_$ac_lib_var=no"
                   4062: fi
                   4063: rm -f conftest*
                   4064: LIBS="$ac_save_LIBS"
                   4065: 
                   4066: fi
                   4067: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4068:   echo "$ac_t""yes" 1>&6
1.92      tgl      4069:     ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1.28      petere   4070:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4071:   cat >> confdefs.h <<EOF
                   4072: #define $ac_tr_lib 1
                   4073: EOF
                   4074: 
1.92      tgl      4075:   LIBS="-lbind $LIBS"
1.28      petere   4076: 
                   4077: else
                   4078:   echo "$ac_t""no" 1>&6
                   4079: fi
                   4080: 
1.92      tgl      4081: ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
                   4082: echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
1.105     petere   4083: echo "configure:4084: checking for zlib.h" >&5
1.92      tgl      4084: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4085:   echo $ac_n "(cached) $ac_c" 1>&6
                   4086: else
                   4087:   cat > conftest.$ac_ext <<EOF
1.105     petere   4088: #line 4089 "configure"
1.92      tgl      4089: #include "confdefs.h"
                   4090: #include <zlib.h>
                   4091: EOF
                   4092: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4093: { (eval echo configure:4094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.92      tgl      4094: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4095: if test -z "$ac_err"; then
                   4096:   rm -rf conftest*
                   4097:   eval "ac_cv_header_$ac_safe=yes"
                   4098: else
                   4099:   echo "$ac_err" >&5
                   4100:   echo "configure: failed program was:" >&5
                   4101:   cat conftest.$ac_ext >&5
                   4102:   rm -rf conftest*
                   4103:   eval "ac_cv_header_$ac_safe=no"
                   4104: fi
                   4105: rm -f conftest*
                   4106: fi
                   4107: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4108:   echo "$ac_t""yes" 1>&6
                   4109:   
                   4110: echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
1.105     petere   4111: echo "configure:4112: checking for inflate in -lz" >&5
1.92      tgl      4112: ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
1.70      petere   4113: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.57      momjian  4114:   echo $ac_n "(cached) $ac_c" 1>&6
                   4115: else
1.70      petere   4116:   ac_save_LIBS="$LIBS"
1.92      tgl      4117: LIBS="-lz  $LIBS"
1.57      momjian  4118: cat > conftest.$ac_ext <<EOF
1.105     petere   4119: #line 4120 "configure"
1.57      momjian  4120: #include "confdefs.h"
1.59      petere   4121: /* Override any gcc2 internal prototype to avoid an error.  */
                   4122: /* We use char because int might match the return type of a gcc2
                   4123:     builtin and then its argument prototype would still apply.  */
1.92      tgl      4124: char inflate();
1.57      momjian  4125: 
                   4126: int main() {
1.92      tgl      4127: inflate()
1.57      momjian  4128: ; return 0; }
                   4129: EOF
1.105     petere   4130: if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.57      momjian  4131:   rm -rf conftest*
1.70      petere   4132:   eval "ac_cv_lib_$ac_lib_var=yes"
1.57      momjian  4133: else
                   4134:   echo "configure: failed program was:" >&5
                   4135:   cat conftest.$ac_ext >&5
1.70      petere   4136:   rm -rf conftest*
                   4137:   eval "ac_cv_lib_$ac_lib_var=no"
1.57      momjian  4138: fi
                   4139: rm -f conftest*
1.70      petere   4140: LIBS="$ac_save_LIBS"
1.57      momjian  4141: 
1.70      petere   4142: fi
                   4143: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4144:   echo "$ac_t""yes" 1>&6
1.92      tgl      4145:     ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1.70      petere   4146:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4147:   cat >> confdefs.h <<EOF
                   4148: #define $ac_tr_lib 1
1.57      momjian  4149: EOF
1.70      petere   4150: 
1.92      tgl      4151:   LIBS="-lz $LIBS"
                   4152: 
                   4153: else
                   4154:   echo "$ac_t""no" 1>&6
                   4155: fi
                   4156: 
1.70      petere   4157: 
1.57      momjian  4158: else
1.70      petere   4159:   echo "$ac_t""no" 1>&6
1.57      momjian  4160: fi
                   4161: 
1.28      petere   4162: 
1.62      momjian  4163: 
1.28      petere   4164: if test "$with_krb4" = yes ; then
                   4165:   echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
1.105     petere   4166: echo "configure:4167: checking for des_encrypt in -ldes" >&5
1.28      petere   4167: ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
                   4168: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4169:   echo $ac_n "(cached) $ac_c" 1>&6
                   4170: else
                   4171:   ac_save_LIBS="$LIBS"
                   4172: LIBS="-ldes  $LIBS"
                   4173: cat > conftest.$ac_ext <<EOF
1.105     petere   4174: #line 4175 "configure"
1.28      petere   4175: #include "confdefs.h"
                   4176: /* Override any gcc2 internal prototype to avoid an error.  */
                   4177: /* We use char because int might match the return type of a gcc2
                   4178:     builtin and then its argument prototype would still apply.  */
                   4179: char des_encrypt();
                   4180: 
                   4181: int main() {
                   4182: des_encrypt()
                   4183: ; return 0; }
                   4184: EOF
1.105     petere   4185: if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   4186:   rm -rf conftest*
                   4187:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4188: else
                   4189:   echo "configure: failed program was:" >&5
                   4190:   cat conftest.$ac_ext >&5
                   4191:   rm -rf conftest*
                   4192:   eval "ac_cv_lib_$ac_lib_var=no"
                   4193: fi
                   4194: rm -f conftest*
                   4195: LIBS="$ac_save_LIBS"
                   4196: 
                   4197: fi
                   4198: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4199:   echo "$ac_t""yes" 1>&6
                   4200:     ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   4201:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4202:   cat >> confdefs.h <<EOF
                   4203: #define $ac_tr_lib 1
                   4204: EOF
                   4205: 
                   4206:   LIBS="-ldes $LIBS"
                   4207: 
                   4208: else
                   4209:   echo "$ac_t""no" 1>&6
1.86      petere   4210: { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
1.28      petere   4211: fi
                   4212: 
                   4213:   echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
1.105     petere   4214: echo "configure:4215: checking for krb_sendauth in -lkrb" >&5
1.28      petere   4215: ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
                   4216: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4217:   echo $ac_n "(cached) $ac_c" 1>&6
                   4218: else
                   4219:   ac_save_LIBS="$LIBS"
                   4220: LIBS="-lkrb  $LIBS"
                   4221: cat > conftest.$ac_ext <<EOF
1.105     petere   4222: #line 4223 "configure"
1.28      petere   4223: #include "confdefs.h"
                   4224: /* Override any gcc2 internal prototype to avoid an error.  */
                   4225: /* We use char because int might match the return type of a gcc2
                   4226:     builtin and then its argument prototype would still apply.  */
                   4227: char krb_sendauth();
                   4228: 
                   4229: int main() {
                   4230: krb_sendauth()
                   4231: ; return 0; }
                   4232: EOF
1.105     petere   4233: if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.28      petere   4234:   rm -rf conftest*
                   4235:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4236: else
                   4237:   echo "configure: failed program was:" >&5
                   4238:   cat conftest.$ac_ext >&5
                   4239:   rm -rf conftest*
                   4240:   eval "ac_cv_lib_$ac_lib_var=no"
                   4241: fi
                   4242: rm -f conftest*
                   4243: LIBS="$ac_save_LIBS"
                   4244: 
                   4245: fi
                   4246: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4247:   echo "$ac_t""yes" 1>&6
                   4248:     ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   4249:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4250:   cat >> confdefs.h <<EOF
                   4251: #define $ac_tr_lib 1
                   4252: EOF
                   4253: 
                   4254:   LIBS="-lkrb $LIBS"
                   4255: 
                   4256: else
                   4257:   echo "$ac_t""no" 1>&6
1.86      petere   4258: { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
1.28      petere   4259: fi
                   4260: 
                   4261: fi
                   4262: 
                   4263: if test "$with_krb5" = yes ; then
1.70      petere   4264:   echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
1.105     petere   4265: echo "configure:4266: checking for com_err in -lcom_err" >&5
1.70      petere   4266: ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
1.1       petere   4267: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4268:   echo $ac_n "(cached) $ac_c" 1>&6
                   4269: else
                   4270:   ac_save_LIBS="$LIBS"
1.28      petere   4271: LIBS="-lcom_err  $LIBS"
1.1       petere   4272: cat > conftest.$ac_ext <<EOF
1.105     petere   4273: #line 4274 "configure"
1.1       petere   4274: #include "confdefs.h"
1.70      petere   4275: /* Override any gcc2 internal prototype to avoid an error.  */
                   4276: /* We use char because int might match the return type of a gcc2
                   4277:     builtin and then its argument prototype would still apply.  */
                   4278: char com_err();
1.1       petere   4279: 
                   4280: int main() {
1.70      petere   4281: com_err()
1.1       petere   4282: ; return 0; }
                   4283: EOF
1.105     petere   4284: if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   4285:   rm -rf conftest*
                   4286:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4287: else
                   4288:   echo "configure: failed program was:" >&5
                   4289:   cat conftest.$ac_ext >&5
                   4290:   rm -rf conftest*
                   4291:   eval "ac_cv_lib_$ac_lib_var=no"
                   4292: fi
                   4293: rm -f conftest*
                   4294: LIBS="$ac_save_LIBS"
                   4295: 
                   4296: fi
                   4297: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4298:   echo "$ac_t""yes" 1>&6
1.28      petere   4299:     ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1.1       petere   4300:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4301:   cat >> confdefs.h <<EOF
                   4302: #define $ac_tr_lib 1
                   4303: EOF
                   4304: 
1.28      petere   4305:   LIBS="-lcom_err $LIBS"
1.1       petere   4306: 
                   4307: else
                   4308:   echo "$ac_t""no" 1>&6
1.86      petere   4309: { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
1.1       petere   4310: fi
                   4311: 
1.70      petere   4312:   echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
1.105     petere   4313: echo "configure:4314: checking for krb5_encrypt in -lcrypto" >&5
1.70      petere   4314: ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
1.1       petere   4315: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4316:   echo $ac_n "(cached) $ac_c" 1>&6
                   4317: else
                   4318:   ac_save_LIBS="$LIBS"
1.28      petere   4319: LIBS="-lcrypto  $LIBS"
1.1       petere   4320: cat > conftest.$ac_ext <<EOF
1.105     petere   4321: #line 4322 "configure"
1.1       petere   4322: #include "confdefs.h"
1.70      petere   4323: /* Override any gcc2 internal prototype to avoid an error.  */
                   4324: /* We use char because int might match the return type of a gcc2
                   4325:     builtin and then its argument prototype would still apply.  */
                   4326: char krb5_encrypt();
1.1       petere   4327: 
                   4328: int main() {
1.70      petere   4329: krb5_encrypt()
1.1       petere   4330: ; return 0; }
                   4331: EOF
1.105     petere   4332: if { (eval echo configure:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   4333:   rm -rf conftest*
                   4334:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4335: else
                   4336:   echo "configure: failed program was:" >&5
                   4337:   cat conftest.$ac_ext >&5
                   4338:   rm -rf conftest*
                   4339:   eval "ac_cv_lib_$ac_lib_var=no"
                   4340: fi
                   4341: rm -f conftest*
                   4342: LIBS="$ac_save_LIBS"
                   4343: 
                   4344: fi
                   4345: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4346:   echo "$ac_t""yes" 1>&6
1.28      petere   4347:     ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1.1       petere   4348:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4349:   cat >> confdefs.h <<EOF
                   4350: #define $ac_tr_lib 1
                   4351: EOF
                   4352: 
1.28      petere   4353:   LIBS="-lcrypto $LIBS"
1.1       petere   4354: 
                   4355: else
                   4356:   echo "$ac_t""no" 1>&6
1.70      petere   4357: echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
1.105     petere   4358: echo "configure:4359: checking for krb5_encrypt in -lk5crypto" >&5
1.70      petere   4359: ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
                   4360: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4361:   echo $ac_n "(cached) $ac_c" 1>&6
                   4362: else
                   4363:   ac_save_LIBS="$LIBS"
                   4364: LIBS="-lk5crypto  $LIBS"
                   4365: cat > conftest.$ac_ext <<EOF
1.105     petere   4366: #line 4367 "configure"
1.70      petere   4367: #include "confdefs.h"
                   4368: /* Override any gcc2 internal prototype to avoid an error.  */
                   4369: /* We use char because int might match the return type of a gcc2
                   4370:     builtin and then its argument prototype would still apply.  */
                   4371: char krb5_encrypt();
                   4372: 
                   4373: int main() {
                   4374: krb5_encrypt()
                   4375: ; return 0; }
                   4376: EOF
1.105     petere   4377: if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.70      petere   4378:   rm -rf conftest*
                   4379:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4380: else
                   4381:   echo "configure: failed program was:" >&5
                   4382:   cat conftest.$ac_ext >&5
                   4383:   rm -rf conftest*
                   4384:   eval "ac_cv_lib_$ac_lib_var=no"
                   4385: fi
                   4386: rm -f conftest*
                   4387: LIBS="$ac_save_LIBS"
                   4388: 
                   4389: fi
                   4390: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4391:   echo "$ac_t""yes" 1>&6
                   4392:     ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   4393:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4394:   cat >> confdefs.h <<EOF
                   4395: #define $ac_tr_lib 1
                   4396: EOF
                   4397: 
                   4398:   LIBS="-lk5crypto $LIBS"
                   4399: 
                   4400: else
                   4401:   echo "$ac_t""no" 1>&6
1.86      petere   4402: { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
1.1       petere   4403: fi
                   4404: 
1.70      petere   4405: fi
                   4406: 
                   4407:   echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
1.105     petere   4408: echo "configure:4409: checking for krb5_sendauth in -lkrb5" >&5
1.70      petere   4409: ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
1.1       petere   4410: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4411:   echo $ac_n "(cached) $ac_c" 1>&6
                   4412: else
                   4413:   ac_save_LIBS="$LIBS"
1.28      petere   4414: LIBS="-lkrb5  $LIBS"
1.1       petere   4415: cat > conftest.$ac_ext <<EOF
1.105     petere   4416: #line 4417 "configure"
1.1       petere   4417: #include "confdefs.h"
1.70      petere   4418: /* Override any gcc2 internal prototype to avoid an error.  */
                   4419: /* We use char because int might match the return type of a gcc2
                   4420:     builtin and then its argument prototype would still apply.  */
                   4421: char krb5_sendauth();
1.1       petere   4422: 
                   4423: int main() {
1.70      petere   4424: krb5_sendauth()
1.1       petere   4425: ; return 0; }
                   4426: EOF
1.105     petere   4427: if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   4428:   rm -rf conftest*
                   4429:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4430: else
                   4431:   echo "configure: failed program was:" >&5
                   4432:   cat conftest.$ac_ext >&5
                   4433:   rm -rf conftest*
                   4434:   eval "ac_cv_lib_$ac_lib_var=no"
                   4435: fi
                   4436: rm -f conftest*
                   4437: LIBS="$ac_save_LIBS"
                   4438: 
                   4439: fi
                   4440: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4441:   echo "$ac_t""yes" 1>&6
1.28      petere   4442:     ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1.1       petere   4443:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4444:   cat >> confdefs.h <<EOF
                   4445: #define $ac_tr_lib 1
                   4446: EOF
                   4447: 
1.28      petere   4448:   LIBS="-lkrb5 $LIBS"
1.1       petere   4449: 
                   4450: else
                   4451:   echo "$ac_t""no" 1>&6
1.86      petere   4452: { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
1.1       petere   4453: fi
                   4454: 
1.28      petere   4455: fi
                   4456: 
                   4457: if test "$with_openssl" = yes ; then
                   4458:     echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
1.105     petere   4459: echo "configure:4460: checking for CRYPTO_new_ex_data in -lcrypto" >&5
1.28      petere   4460: ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
1.1       petere   4461: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   4462:   echo $ac_n "(cached) $ac_c" 1>&6
                   4463: else
                   4464:   ac_save_LIBS="$LIBS"
1.28      petere   4465: LIBS="-lcrypto  $LIBS"
1.1       petere   4466: cat > conftest.$ac_ext <<EOF
1.105     petere   4467: #line 4468 "configure"
1.1       petere   4468: #include "confdefs.h"
1.28      petere   4469: /* Override any gcc2 internal prototype to avoid an error.  */
                   4470: /* We use char because int might match the return type of a gcc2
                   4471:     builtin and then its argument prototype would still apply.  */
                   4472: char CRYPTO_new_ex_data();
1.1       petere   4473: 
                   4474: int main() {
1.28      petere   4475: CRYPTO_new_ex_data()
1.1       petere   4476: ; return 0; }
                   4477: EOF
1.105     petere   4478: if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   4479:   rm -rf conftest*
                   4480:   eval "ac_cv_lib_$ac_lib_var=yes"
                   4481: else
                   4482:   echo "configure: failed program was:" >&5
                   4483:   cat conftest.$ac_ext >&5
                   4484:   rm -rf conftest*
                   4485:   eval "ac_cv_lib_$ac_lib_var=no"
                   4486: fi
                   4487: rm -f conftest*
                   4488: LIBS="$ac_save_LIBS"
                   4489: 
                   4490: fi
                   4491: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4492:   echo "$ac_t""yes" 1>&6
1.28      petere   4493:     ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1.1       petere   4494:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4495:   cat >> confdefs.h <<EOF
                   4496: #define $ac_tr_lib 1
                   4497: EOF
                   4498: 
1.28      petere   4499:   LIBS="-lcrypto $LIBS"
1.1       petere   4500: 
                   4501: else
                   4502:   echo "$ac_t""no" 1>&6
1.86      petere   4503: { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
1.1       petere   4504: fi
                   4505: 
1.28      petere   4506:   echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
1.105     petere   4507: echo "configure:4508: checking for SSL_library_init in -lssl" >&5
1.28      petere   4508: ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
                   4509: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1       petere   4510:   echo $ac_n "(cached) $ac_c" 1>&6
                   4511: else
1.28      petere   4512:   ac_save_LIBS="$LIBS"
                   4513: LIBS="-lssl  $LIBS"
1.1       petere   4514: cat > conftest.$ac_ext <<EOF
1.105     petere   4515: #line 4516 "configure"
1.1       petere   4516: #include "confdefs.h"
1.21      petere   4517: /* Override any gcc2 internal prototype to avoid an error.  */
                   4518: /* We use char because int might match the return type of a gcc2
                   4519:     builtin and then its argument prototype would still apply.  */
1.28      petere   4520: char SSL_library_init();
1.1       petere   4521: 
                   4522: int main() {
1.28      petere   4523: SSL_library_init()
1.1       petere   4524: ; return 0; }
                   4525: EOF
1.105     petere   4526: if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   4527:   rm -rf conftest*
1.28      petere   4528:   eval "ac_cv_lib_$ac_lib_var=yes"
1.1       petere   4529: else
                   4530:   echo "configure: failed program was:" >&5
                   4531:   cat conftest.$ac_ext >&5
1.28      petere   4532:   rm -rf conftest*
                   4533:   eval "ac_cv_lib_$ac_lib_var=no"
1.1       petere   4534: fi
                   4535: rm -f conftest*
1.28      petere   4536: LIBS="$ac_save_LIBS"
1.1       petere   4537: 
1.28      petere   4538: fi
                   4539: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   4540:   echo "$ac_t""yes" 1>&6
                   4541:     ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
                   4542:     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
                   4543:   cat >> confdefs.h <<EOF
                   4544: #define $ac_tr_lib 1
1.1       petere   4545: EOF
1.28      petere   4546: 
                   4547:   LIBS="-lssl $LIBS"
                   4548: 
1.1       petere   4549: else
1.28      petere   4550:   echo "$ac_t""no" 1>&6
1.86      petere   4551: { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
1.21      petere   4552: fi
1.28      petere   4553: 
1.1       petere   4554: fi
                   4555: 
                   4556: 
1.29      petere   4557: ##
                   4558: ## Header files
                   4559: ##
1.68      tgl      4560: for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/types.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
1.1       petere   4561: do
                   4562: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4563: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.105     petere   4564: echo "configure:4565: checking for $ac_hdr" >&5
1.1       petere   4565: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4566:   echo $ac_n "(cached) $ac_c" 1>&6
                   4567: else
                   4568:   cat > conftest.$ac_ext <<EOF
1.105     petere   4569: #line 4570 "configure"
1.1       petere   4570: #include "confdefs.h"
                   4571: #include <$ac_hdr>
                   4572: EOF
                   4573: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4574: { (eval echo configure:4575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4575: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4576: if test -z "$ac_err"; then
                   4577:   rm -rf conftest*
                   4578:   eval "ac_cv_header_$ac_safe=yes"
                   4579: else
                   4580:   echo "$ac_err" >&5
                   4581:   echo "configure: failed program was:" >&5
                   4582:   cat conftest.$ac_ext >&5
                   4583:   rm -rf conftest*
                   4584:   eval "ac_cv_header_$ac_safe=no"
                   4585: fi
                   4586: rm -f conftest*
                   4587: fi
                   4588: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4589:   echo "$ac_t""yes" 1>&6
                   4590:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4591:   cat >> confdefs.h <<EOF
                   4592: #define $ac_tr_hdr 1
                   4593: EOF
                   4594:  
                   4595: else
                   4596:   echo "$ac_t""no" 1>&6
                   4597: fi
                   4598: done
                   4599: 
1.29      petere   4600: 
1.68      tgl      4601: for ac_hdr in netinet/in.h
1.1       petere   4602: do
                   4603: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4604: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.105     petere   4605: echo "configure:4606: checking for $ac_hdr" >&5
1.1       petere   4606: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4607:   echo $ac_n "(cached) $ac_c" 1>&6
                   4608: else
                   4609:   cat > conftest.$ac_ext <<EOF
1.105     petere   4610: #line 4611 "configure"
1.1       petere   4611: #include "confdefs.h"
                   4612: #include <$ac_hdr>
                   4613: EOF
                   4614: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4615: { (eval echo configure:4616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4616: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4617: if test -z "$ac_err"; then
                   4618:   rm -rf conftest*
                   4619:   eval "ac_cv_header_$ac_safe=yes"
                   4620: else
                   4621:   echo "$ac_err" >&5
                   4622:   echo "configure: failed program was:" >&5
                   4623:   cat conftest.$ac_ext >&5
                   4624:   rm -rf conftest*
                   4625:   eval "ac_cv_header_$ac_safe=no"
                   4626: fi
                   4627: rm -f conftest*
                   4628: fi
                   4629: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4630:   echo "$ac_t""yes" 1>&6
                   4631:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4632:   cat >> confdefs.h <<EOF
                   4633: #define $ac_tr_hdr 1
                   4634: EOF
1.68      tgl      4635:  
                   4636: else
                   4637:   echo "$ac_t""no" 1>&6
                   4638: fi
                   4639: done
                   4640: 
                   4641: echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
1.105     petere   4642: echo "configure:4643: checking for netinet/tcp.h" >&5
1.68      tgl      4643: cat > conftest.$ac_ext <<EOF
1.105     petere   4644: #line 4645 "configure"
1.68      tgl      4645: #include "confdefs.h"
                   4646: 
                   4647: #ifdef HAVE_NETINET_IN_H
                   4648: #include <netinet/in.h>
                   4649: #endif
                   4650: #include <netinet/tcp.h>
                   4651: 
                   4652: EOF
                   4653: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4654: { (eval echo configure:4655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.68      tgl      4655: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4656: if test -z "$ac_err"; then
                   4657:   rm -rf conftest*
                   4658:   cat >> confdefs.h <<\EOF
                   4659: #define HAVE_NETINET_TCP_H 1
                   4660: EOF
                   4661:  echo "$ac_t""yes" 1>&6
                   4662: else
                   4663:   echo "$ac_err" >&5
                   4664:   echo "configure: failed program was:" >&5
                   4665:   cat conftest.$ac_ext >&5
                   4666:   rm -rf conftest*
                   4667:   echo "$ac_t""no" 1>&6
                   4668: fi
                   4669: rm -f conftest*
                   4670: 
1.78      petere   4671: echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
1.105     petere   4672: echo "configure:4673: checking whether string.h and strings.h may both be included" >&5
1.78      petere   4673: if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
                   4674:   echo $ac_n "(cached) $ac_c" 1>&6
                   4675: else
                   4676:   cat > conftest.$ac_ext <<EOF
1.105     petere   4677: #line 4678 "configure"
1.78      petere   4678: #include "confdefs.h"
                   4679: #include <string.h>
                   4680: #include <strings.h>
                   4681: 
                   4682: EOF
                   4683: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4684: { (eval echo configure:4685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.78      petere   4685: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4686: if test -z "$ac_err"; then
                   4687:   rm -rf conftest*
                   4688:   cat > conftest.$ac_ext <<EOF
1.105     petere   4689: #line 4690 "configure"
1.78      petere   4690: #include "confdefs.h"
                   4691: #include <string.h>
                   4692: #include <strings.h>
                   4693: 
                   4694: int main() {
                   4695: int n = strcasecmp("a", "b");
                   4696: ; return 0; }
                   4697: EOF
1.105     petere   4698: if { (eval echo configure:4699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.78      petere   4699:   rm -rf conftest*
                   4700:   pgac_cv_header_strings_both=yes
                   4701: else
                   4702:   echo "configure: failed program was:" >&5
                   4703:   cat conftest.$ac_ext >&5
                   4704:   rm -rf conftest*
                   4705:   pgac_cv_header_strings_both=no
                   4706: fi
                   4707: rm -f conftest*
                   4708: else
                   4709:   echo "$ac_err" >&5
                   4710:   echo "configure: failed program was:" >&5
                   4711:   cat conftest.$ac_ext >&5
                   4712:   rm -rf conftest*
                   4713:   pgac_cv_header_strings_both=no
                   4714: fi
                   4715: rm -f conftest*
                   4716: fi
                   4717: 
                   4718: echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
                   4719: if test x"$pgac_cv_header_strings_both" = x"yes"; then
                   4720:   cat >> confdefs.h <<\EOF
                   4721: #define STRING_H_WITH_STRINGS_H 1
                   4722: EOF
                   4723: 
                   4724: fi
                   4725: 
1.68      tgl      4726: for ac_hdr in readline/readline.h readline.h
                   4727: do
                   4728: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4729: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.105     petere   4730: echo "configure:4731: checking for $ac_hdr" >&5
1.68      tgl      4731: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4732:   echo $ac_n "(cached) $ac_c" 1>&6
                   4733: else
                   4734:   cat > conftest.$ac_ext <<EOF
1.105     petere   4735: #line 4736 "configure"
1.68      tgl      4736: #include "confdefs.h"
                   4737: #include <$ac_hdr>
                   4738: EOF
                   4739: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4740: { (eval echo configure:4741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.68      tgl      4741: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4742: if test -z "$ac_err"; then
                   4743:   rm -rf conftest*
                   4744:   eval "ac_cv_header_$ac_safe=yes"
                   4745: else
                   4746:   echo "$ac_err" >&5
                   4747:   echo "configure: failed program was:" >&5
                   4748:   cat conftest.$ac_ext >&5
                   4749:   rm -rf conftest*
                   4750:   eval "ac_cv_header_$ac_safe=no"
                   4751: fi
                   4752: rm -f conftest*
                   4753: fi
                   4754: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4755:   echo "$ac_t""yes" 1>&6
                   4756:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4757:   cat >> confdefs.h <<EOF
                   4758: #define $ac_tr_hdr 1
                   4759: EOF
1.29      petere   4760:  break
1.1       petere   4761: else
                   4762:   echo "$ac_t""no" 1>&6
                   4763: fi
                   4764: done
                   4765: 
1.29      petere   4766: for ac_hdr in readline/history.h history.h
1.1       petere   4767: do
                   4768: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
                   4769: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.105     petere   4770: echo "configure:4771: checking for $ac_hdr" >&5
1.1       petere   4771: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4772:   echo $ac_n "(cached) $ac_c" 1>&6
                   4773: else
                   4774:   cat > conftest.$ac_ext <<EOF
1.105     petere   4775: #line 4776 "configure"
1.1       petere   4776: #include "confdefs.h"
                   4777: #include <$ac_hdr>
                   4778: EOF
                   4779: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4780: { (eval echo configure:4781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4781: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4782: if test -z "$ac_err"; then
                   4783:   rm -rf conftest*
                   4784:   eval "ac_cv_header_$ac_safe=yes"
                   4785: else
                   4786:   echo "$ac_err" >&5
                   4787:   echo "configure: failed program was:" >&5
                   4788:   cat conftest.$ac_ext >&5
                   4789:   rm -rf conftest*
                   4790:   eval "ac_cv_header_$ac_safe=no"
                   4791: fi
                   4792: rm -f conftest*
                   4793: fi
                   4794: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4795:   echo "$ac_t""yes" 1>&6
                   4796:     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
                   4797:   cat >> confdefs.h <<EOF
                   4798: #define $ac_tr_hdr 1
                   4799: EOF
1.29      petere   4800:  break
1.1       petere   4801: else
                   4802:   echo "$ac_t""no" 1>&6
                   4803: fi
                   4804: done
                   4805: 
1.29      petere   4806: 
                   4807: if test "$with_krb4" = yes ; then
                   4808:   ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
                   4809: echo $ac_n "checking for krb.h""... $ac_c" 1>&6
1.105     petere   4810: echo "configure:4811: checking for krb.h" >&5
1.1       petere   4811: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4812:   echo $ac_n "(cached) $ac_c" 1>&6
                   4813: else
                   4814:   cat > conftest.$ac_ext <<EOF
1.105     petere   4815: #line 4816 "configure"
1.1       petere   4816: #include "confdefs.h"
1.29      petere   4817: #include <krb.h>
1.1       petere   4818: EOF
                   4819: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4820: { (eval echo configure:4821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4821: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4822: if test -z "$ac_err"; then
                   4823:   rm -rf conftest*
                   4824:   eval "ac_cv_header_$ac_safe=yes"
                   4825: else
                   4826:   echo "$ac_err" >&5
                   4827:   echo "configure: failed program was:" >&5
                   4828:   cat conftest.$ac_ext >&5
                   4829:   rm -rf conftest*
                   4830:   eval "ac_cv_header_$ac_safe=no"
                   4831: fi
                   4832: rm -f conftest*
                   4833: fi
                   4834: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4835:   echo "$ac_t""yes" 1>&6
1.29      petere   4836:   :
1.1       petere   4837: else
                   4838:   echo "$ac_t""no" 1>&6
1.29      petere   4839: { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
                   4840: fi
                   4841: 
1.1       petere   4842: fi
                   4843: 
1.29      petere   4844: if test "$with_krb5" = yes ; then
                   4845:   ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
                   4846: echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
1.105     petere   4847: echo "configure:4848: checking for krb5.h" >&5
1.1       petere   4848: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4849:   echo $ac_n "(cached) $ac_c" 1>&6
                   4850: else
                   4851:   cat > conftest.$ac_ext <<EOF
1.105     petere   4852: #line 4853 "configure"
1.1       petere   4853: #include "confdefs.h"
1.29      petere   4854: #include <krb5.h>
1.1       petere   4855: EOF
                   4856: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4857: { (eval echo configure:4858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4858: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4859: if test -z "$ac_err"; then
                   4860:   rm -rf conftest*
                   4861:   eval "ac_cv_header_$ac_safe=yes"
                   4862: else
                   4863:   echo "$ac_err" >&5
                   4864:   echo "configure: failed program was:" >&5
                   4865:   cat conftest.$ac_ext >&5
                   4866:   rm -rf conftest*
                   4867:   eval "ac_cv_header_$ac_safe=no"
                   4868: fi
                   4869: rm -f conftest*
                   4870: fi
                   4871: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4872:   echo "$ac_t""yes" 1>&6
1.29      petere   4873:   :
1.1       petere   4874: else
                   4875:   echo "$ac_t""no" 1>&6
1.29      petere   4876: { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
1.1       petere   4877: fi
                   4878: 
1.29      petere   4879:   ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
                   4880: echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
1.105     petere   4881: echo "configure:4882: checking for com_err.h" >&5
1.1       petere   4882: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4883:   echo $ac_n "(cached) $ac_c" 1>&6
                   4884: else
                   4885:   cat > conftest.$ac_ext <<EOF
1.105     petere   4886: #line 4887 "configure"
1.1       petere   4887: #include "confdefs.h"
1.29      petere   4888: #include <com_err.h>
1.1       petere   4889: EOF
                   4890: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4891: { (eval echo configure:4892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4892: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4893: if test -z "$ac_err"; then
                   4894:   rm -rf conftest*
                   4895:   eval "ac_cv_header_$ac_safe=yes"
                   4896: else
                   4897:   echo "$ac_err" >&5
                   4898:   echo "configure: failed program was:" >&5
                   4899:   cat conftest.$ac_ext >&5
                   4900:   rm -rf conftest*
                   4901:   eval "ac_cv_header_$ac_safe=no"
                   4902: fi
                   4903: rm -f conftest*
                   4904: fi
                   4905: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4906:   echo "$ac_t""yes" 1>&6
1.29      petere   4907:   :
1.1       petere   4908: else
                   4909:   echo "$ac_t""no" 1>&6
1.29      petere   4910: { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
                   4911: fi
                   4912: 
1.1       petere   4913: fi
                   4914: 
1.29      petere   4915: if test "$with_openssl" = yes ; then
                   4916:   ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
                   4917: echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
1.105     petere   4918: echo "configure:4919: checking for openssl/ssl.h" >&5
1.1       petere   4919: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4920:   echo $ac_n "(cached) $ac_c" 1>&6
                   4921: else
                   4922:   cat > conftest.$ac_ext <<EOF
1.105     petere   4923: #line 4924 "configure"
1.1       petere   4924: #include "confdefs.h"
1.29      petere   4925: #include <openssl/ssl.h>
1.1       petere   4926: EOF
                   4927: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4928: { (eval echo configure:4929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4929: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4930: if test -z "$ac_err"; then
                   4931:   rm -rf conftest*
                   4932:   eval "ac_cv_header_$ac_safe=yes"
                   4933: else
                   4934:   echo "$ac_err" >&5
                   4935:   echo "configure: failed program was:" >&5
                   4936:   cat conftest.$ac_ext >&5
                   4937:   rm -rf conftest*
                   4938:   eval "ac_cv_header_$ac_safe=no"
                   4939: fi
                   4940: rm -f conftest*
                   4941: fi
                   4942: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4943:   echo "$ac_t""yes" 1>&6
1.29      petere   4944:   :
1.1       petere   4945: else
                   4946:   echo "$ac_t""no" 1>&6
1.29      petere   4947: { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
1.1       petere   4948: fi
                   4949: 
1.29      petere   4950:   ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
                   4951: echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
1.105     petere   4952: echo "configure:4953: checking for openssl/err.h" >&5
1.1       petere   4953: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
                   4954:   echo $ac_n "(cached) $ac_c" 1>&6
                   4955: else
                   4956:   cat > conftest.$ac_ext <<EOF
1.105     petere   4957: #line 4958 "configure"
1.1       petere   4958: #include "confdefs.h"
1.29      petere   4959: #include <openssl/err.h>
1.1       petere   4960: EOF
                   4961: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.105     petere   4962: { (eval echo configure:4963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1       petere   4963: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
                   4964: if test -z "$ac_err"; then
                   4965:   rm -rf conftest*
                   4966:   eval "ac_cv_header_$ac_safe=yes"
                   4967: else
                   4968:   echo "$ac_err" >&5
                   4969:   echo "configure: failed program was:" >&5
                   4970:   cat conftest.$ac_ext >&5
                   4971:   rm -rf conftest*
                   4972:   eval "ac_cv_header_$ac_safe=no"
                   4973: fi
                   4974: rm -f conftest*
                   4975: fi
                   4976: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
                   4977:   echo "$ac_t""yes" 1>&6
1.29      petere   4978:   :
1.1       petere   4979: else
                   4980:   echo "$ac_t""no" 1>&6
1.29      petere   4981: { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
                   4982: fi
                   4983: 
1.1       petere   4984: fi
                   4985: 
1.29      petere   4986: 
                   4987: ##
                   4988: ## Types, structures, compiler characteristics
                   4989: ##
                   4990: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.105     petere   4991: echo "configure:4992: checking for working const" >&5
1.29      petere   4992: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1.1       petere   4993:   echo $ac_n "(cached) $ac_c" 1>&6
                   4994: else
                   4995:   cat > conftest.$ac_ext <<EOF
1.105     petere   4996: #line 4997 "configure"
1.1       petere   4997: #include "confdefs.h"
1.29      petere   4998: 
1.1       petere   4999: int main() {
                   5000: 
1.29      petere   5001: /* Ultrix mips cc rejects this.  */
1.107   ! ishii    5002: typedef int charset[2]; const charset x={0,0};
1.29      petere   5003: /* SunOS 4.1.1 cc rejects this.  */
                   5004: char const *const *ccp;
                   5005: char **p;
                   5006: /* NEC SVR4.0.2 mips cc rejects this.  */
                   5007: struct point {int x, y;};
                   5008: static struct point const zero = {0,0};
                   5009: /* AIX XL C 1.02.0.0 rejects this.
                   5010:    It does not let you subtract one const X* pointer from another in an arm
                   5011:    of an if-expression whose if-part is not a constant expression */
                   5012: const char *g = "string";
                   5013: ccp = &g + (g ? g-g : 0);
                   5014: /* HPUX 7.0 cc rejects these. */
                   5015: ++ccp;
                   5016: p = (char**) ccp;
                   5017: ccp = (char const *const *) p;
                   5018: { /* SCO 3.2v4 cc rejects this.  */
                   5019:   char *t;
                   5020:   char const *s = 0 ? (char *) 0 : (char const *) 0;
1.1       petere   5021: 
1.29      petere   5022:   *t++ = 0;
                   5023: }
                   5024: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
                   5025:   int x[] = {25, 17};
                   5026:   const int *foo = &x[0];
                   5027:   ++foo;
                   5028: }
                   5029: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
                   5030:   typedef const int *iptr;
                   5031:   iptr p = 0;
                   5032:   ++p;
                   5033: }
                   5034: { /* AIX XL C 1.02.0.0 rejects this saying
                   5035:      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
                   5036:   struct s { int j; const int *ap[3]; };
                   5037:   struct s *b; b->j = 5;
                   5038: }
                   5039: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
                   5040:   const int foo = 10;
                   5041: }
1.1       petere   5042: 
                   5043: ; return 0; }
                   5044: EOF
1.105     petere   5045: if { (eval echo configure:5046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5046:   rm -rf conftest*
1.29      petere   5047:   ac_cv_c_const=yes
1.1       petere   5048: else
                   5049:   echo "configure: failed program was:" >&5
                   5050:   cat conftest.$ac_ext >&5
                   5051:   rm -rf conftest*
1.29      petere   5052:   ac_cv_c_const=no
1.1       petere   5053: fi
                   5054: rm -f conftest*
                   5055: fi
                   5056: 
1.29      petere   5057: echo "$ac_t""$ac_cv_c_const" 1>&6
                   5058: if test $ac_cv_c_const = no; then
1.1       petere   5059:   cat >> confdefs.h <<\EOF
1.29      petere   5060: #define const 
1.1       petere   5061: EOF
                   5062: 
                   5063: fi
                   5064: 
1.29      petere   5065: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.105     petere   5066: echo "configure:5067: checking for inline" >&5
1.29      petere   5067: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1.1       petere   5068:   echo $ac_n "(cached) $ac_c" 1>&6
                   5069: else
1.29      petere   5070:   ac_cv_c_inline=no
                   5071: for ac_kw in inline __inline__ __inline; do
1.1       petere   5072:   cat > conftest.$ac_ext <<EOF
1.105     petere   5073: #line 5074 "configure"
1.1       petere   5074: #include "confdefs.h"
                   5075: 
                   5076: int main() {
1.107   ! ishii    5077: } $ac_kw int foo() {
1.1       petere   5078: ; return 0; }
                   5079: EOF
1.105     petere   5080: if { (eval echo configure:5081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5081:   rm -rf conftest*
1.29      petere   5082:   ac_cv_c_inline=$ac_kw; break
1.1       petere   5083: else
                   5084:   echo "configure: failed program was:" >&5
                   5085:   cat conftest.$ac_ext >&5
                   5086: fi
                   5087: rm -f conftest*
1.29      petere   5088: done
1.1       petere   5089: 
                   5090: fi
                   5091: 
1.29      petere   5092: echo "$ac_t""$ac_cv_c_inline" 1>&6
                   5093: case "$ac_cv_c_inline" in
                   5094:   inline | yes) ;;
                   5095:   no) cat >> confdefs.h <<\EOF
                   5096: #define inline 
1.1       petere   5097: EOF
1.29      petere   5098:  ;;
                   5099:   *)  cat >> confdefs.h <<EOF
                   5100: #define inline $ac_cv_c_inline
1.1       petere   5101: EOF
1.29      petere   5102:  ;;
                   5103: esac
1.5       petere   5104: 
                   5105: 
                   5106: 
1.29      petere   5107: echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
1.105     petere   5108: echo "configure:5109: checking for preprocessor stringizing operator" >&5
1.29      petere   5109: if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
1.5       petere   5110:   echo $ac_n "(cached) $ac_c" 1>&6
                   5111: else
1.29      petere   5112:   cat > conftest.$ac_ext <<EOF
1.105     petere   5113: #line 5114 "configure"
1.1       petere   5114: #include "confdefs.h"
                   5115: 
1.29      petere   5116: #define x(y) #y
1.5       petere   5117: 
1.29      petere   5118: char *s = x(teststring);
1.5       petere   5119: 
                   5120: EOF
1.29      petere   5121: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5122:   egrep "#teststring" >/dev/null 2>&1; then
                   5123:   rm -rf conftest*
                   5124:   ac_cv_c_stringize=no
                   5125: else
                   5126:   rm -rf conftest*
                   5127:   ac_cv_c_stringize=yes
                   5128: fi
                   5129: rm -f conftest*
1.5       petere   5130: 
1.29      petere   5131: fi
1.5       petere   5132: 
1.29      petere   5133: if test "${ac_cv_c_stringize}" = yes
                   5134: then
                   5135:         cat >> confdefs.h <<\EOF
                   5136: #define HAVE_STRINGIZE 1
                   5137: EOF
1.5       petere   5138: 
1.29      petere   5139: fi
                   5140: echo "$ac_t""${ac_cv_c_stringize}" 1>&6
1.1       petere   5141: 
1.41      petere   5142: echo $ac_n "checking for signed types""... $ac_c" 1>&6
1.105     petere   5143: echo "configure:5144: checking for signed types" >&5
1.41      petere   5144: if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
                   5145:   echo $ac_n "(cached) $ac_c" 1>&6
                   5146: else
                   5147:   cat > conftest.$ac_ext <<EOF
1.105     petere   5148: #line 5149 "configure"
1.41      petere   5149: #include "confdefs.h"
                   5150: 
                   5151: int main() {
                   5152: signed char c; signed short s; signed int i;
                   5153: ; return 0; }
                   5154: EOF
1.105     petere   5155: if { (eval echo configure:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.41      petere   5156:   rm -rf conftest*
                   5157:   pgac_cv_c_signed=yes
                   5158: else
                   5159:   echo "configure: failed program was:" >&5
                   5160:   cat conftest.$ac_ext >&5
                   5161:   rm -rf conftest*
                   5162:   pgac_cv_c_signed=no
                   5163: fi
                   5164: rm -f conftest*
                   5165: fi
                   5166: 
                   5167: echo "$ac_t""$pgac_cv_c_signed" 1>&6
                   5168: if test x"$pgac_cv_c_signed" = xno ; then
                   5169:   cat >> confdefs.h <<\EOF
                   5170: #define signed 
                   5171: EOF
                   5172: 
                   5173: fi
                   5174: echo $ac_n "checking for volatile""... $ac_c" 1>&6
1.105     petere   5175: echo "configure:5176: checking for volatile" >&5
1.41      petere   5176: if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
                   5177:   echo $ac_n "(cached) $ac_c" 1>&6
                   5178: else
                   5179:   cat > conftest.$ac_ext <<EOF
1.105     petere   5180: #line 5181 "configure"
1.41      petere   5181: #include "confdefs.h"
                   5182: 
                   5183: int main() {
                   5184: extern volatile int i;
                   5185: ; return 0; }
                   5186: EOF
1.105     petere   5187: if { (eval echo configure:5188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.41      petere   5188:   rm -rf conftest*
                   5189:   pgac_cv_c_volatile=yes
                   5190: else
                   5191:   echo "configure: failed program was:" >&5
                   5192:   cat conftest.$ac_ext >&5
                   5193:   rm -rf conftest*
                   5194:   pgac_cv_c_volatile=no
                   5195: fi
                   5196: rm -f conftest*
                   5197: fi
                   5198: 
                   5199: echo "$ac_t""$pgac_cv_c_volatile" 1>&6
                   5200: if test x"$pgac_cv_c_volatile" = xno ; then
                   5201:   cat >> confdefs.h <<\EOF
                   5202: #define volatile 
                   5203: EOF
                   5204: 
                   5205: fi
1.29      petere   5206: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1.105     petere   5207: echo "configure:5208: checking whether struct tm is in sys/time.h or time.h" >&5
1.29      petere   5208: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1.5       petere   5209:   echo $ac_n "(cached) $ac_c" 1>&6
                   5210: else
                   5211:   cat > conftest.$ac_ext <<EOF
1.105     petere   5212: #line 5213 "configure"
1.1       petere   5213: #include "confdefs.h"
                   5214: #include <sys/types.h>
1.29      petere   5215: #include <time.h>
1.1       petere   5216: int main() {
1.29      petere   5217: struct tm *tp; tp->tm_sec;
1.1       petere   5218: ; return 0; }
                   5219: EOF
1.105     petere   5220: if { (eval echo configure:5221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5221:   rm -rf conftest*
1.29      petere   5222:   ac_cv_struct_tm=time.h
1.1       petere   5223: else
                   5224:   echo "configure: failed program was:" >&5
                   5225:   cat conftest.$ac_ext >&5
                   5226:   rm -rf conftest*
1.29      petere   5227:   ac_cv_struct_tm=sys/time.h
1.1       petere   5228: fi
                   5229: rm -f conftest*
1.5       petere   5230: fi
                   5231: 
1.29      petere   5232: echo "$ac_t""$ac_cv_struct_tm" 1>&6
                   5233: if test $ac_cv_struct_tm = sys/time.h; then
1.5       petere   5234:   cat >> confdefs.h <<\EOF
1.29      petere   5235: #define TM_IN_SYS_TIME 1
1.5       petere   5236: EOF
                   5237: 
                   5238: fi
                   5239: 
1.29      petere   5240: echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
1.105     petere   5241: echo "configure:5242: checking for tm_zone in struct tm" >&5
1.29      petere   5242: if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
                   5243:   echo $ac_n "(cached) $ac_c" 1>&6
                   5244: else
                   5245:   cat > conftest.$ac_ext <<EOF
1.105     petere   5246: #line 5247 "configure"
1.1       petere   5247: #include "confdefs.h"
1.29      petere   5248: #include <sys/types.h>
                   5249: #include <$ac_cv_struct_tm>
1.1       petere   5250: int main() {
1.29      petere   5251: struct tm tm; tm.tm_zone;
1.1       petere   5252: ; return 0; }
                   5253: EOF
1.105     petere   5254: if { (eval echo configure:5255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5255:   rm -rf conftest*
1.29      petere   5256:   ac_cv_struct_tm_zone=yes
1.1       petere   5257: else
                   5258:   echo "configure: failed program was:" >&5
                   5259:   cat conftest.$ac_ext >&5
                   5260:   rm -rf conftest*
1.29      petere   5261:   ac_cv_struct_tm_zone=no
1.1       petere   5262: fi
                   5263: rm -f conftest*
1.28      petere   5264: fi
1.1       petere   5265: 
1.29      petere   5266: echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
                   5267: if test "$ac_cv_struct_tm_zone" = yes; then
                   5268:   cat >> confdefs.h <<\EOF
                   5269: #define HAVE_TM_ZONE 1
                   5270: EOF
                   5271: 
                   5272: else
                   5273:   echo $ac_n "checking for tzname""... $ac_c" 1>&6
1.105     petere   5274: echo "configure:5275: checking for tzname" >&5
1.29      petere   5275: if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
1.1       petere   5276:   echo $ac_n "(cached) $ac_c" 1>&6
                   5277: else
                   5278:   cat > conftest.$ac_ext <<EOF
1.105     petere   5279: #line 5280 "configure"
1.1       petere   5280: #include "confdefs.h"
1.29      petere   5281: #include <time.h>
                   5282: #ifndef tzname /* For SGI.  */
                   5283: extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
                   5284: #endif
                   5285: int main() {
                   5286: atoi(*tzname);
                   5287: ; return 0; }
1.1       petere   5288: EOF
1.105     petere   5289: if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.29      petere   5290:   rm -rf conftest*
                   5291:   ac_cv_var_tzname=yes
1.1       petere   5292: else
                   5293:   echo "configure: failed program was:" >&5
                   5294:   cat conftest.$ac_ext >&5
1.29      petere   5295:   rm -rf conftest*
                   5296:   ac_cv_var_tzname=no
1.1       petere   5297: fi
1.29      petere   5298: rm -f conftest*
1.1       petere   5299: fi
                   5300: 
1.29      petere   5301: echo "$ac_t""$ac_cv_var_tzname" 1>&6
                   5302:   if test $ac_cv_var_tzname = yes; then
                   5303:     cat >> confdefs.h <<\EOF
                   5304: #define HAVE_TZNAME 1
                   5305: EOF
                   5306: 
                   5307:   fi
1.1       petere   5308: fi
                   5309: 
1.29      petere   5310: echo $ac_n "checking for union semun""... $ac_c" 1>&6
1.105     petere   5311: echo "configure:5312: checking for union semun" >&5
1.29      petere   5312: if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
1.1       petere   5313:   echo $ac_n "(cached) $ac_c" 1>&6
                   5314: else
                   5315:   cat > conftest.$ac_ext <<EOF
1.105     petere   5316: #line 5317 "configure"
1.1       petere   5317: #include "confdefs.h"
                   5318: #include <sys/types.h>
1.29      petere   5319: #include <sys/ipc.h>
                   5320: #include <sys/sem.h>
1.1       petere   5321: int main() {
1.29      petere   5322: union semun semun;
1.1       petere   5323: ; return 0; }
                   5324: EOF
1.105     petere   5325: if { (eval echo configure:5326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5326:   rm -rf conftest*
1.29      petere   5327:   pgac_cv_union_semun=yes
1.1       petere   5328: else
                   5329:   echo "configure: failed program was:" >&5
                   5330:   cat conftest.$ac_ext >&5
                   5331:   rm -rf conftest*
1.29      petere   5332:   pgac_cv_union_semun=no
1.1       petere   5333: fi
                   5334: rm -f conftest*
                   5335: fi
                   5336: 
1.29      petere   5337: echo "$ac_t""$pgac_cv_union_semun" 1>&6
                   5338: if test x"$pgac_cv_union_semun" = xyes ; then
                   5339:   cat >> confdefs.h <<\EOF
1.45      petere   5340: #define HAVE_UNION_SEMUN 1
1.1       petere   5341: EOF
                   5342: 
1.29      petere   5343: fi
1.45      petere   5344: echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
1.105     petere   5345: echo "configure:5346: checking for struct sockaddr_un" >&5
1.45      petere   5346: if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
                   5347:   echo $ac_n "(cached) $ac_c" 1>&6
                   5348: else
                   5349:   cat > conftest.$ac_ext <<EOF
1.105     petere   5350: #line 5351 "configure"
1.45      petere   5351: #include "confdefs.h"
1.49      momjian  5352: #include <sys/types.h>
1.45      petere   5353: #ifdef HAVE_SYS_UN_H
                   5354: #include <sys/un.h>
                   5355: #endif
                   5356: int main() {
                   5357: struct sockaddr_un un;
                   5358: ; return 0; }
                   5359: EOF
1.105     petere   5360: if { (eval echo configure:5361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.45      petere   5361:   rm -rf conftest*
                   5362:   pgac_cv_struct_sockaddr_un=yes
                   5363: else
                   5364:   echo "configure: failed program was:" >&5
                   5365:   cat conftest.$ac_ext >&5
                   5366:   rm -rf conftest*
                   5367:   pgac_cv_struct_sockaddr_un=no
                   5368: fi
                   5369: rm -f conftest*
                   5370: fi
                   5371: 
                   5372: echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
                   5373: if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
                   5374:   cat >> confdefs.h <<\EOF
                   5375: #define HAVE_STRUCT_SOCKADDR_UN 1
                   5376: EOF
1.29      petere   5377: 
1.45      petere   5378: fi
1.1       petere   5379: 
1.29      petere   5380: ##
                   5381: ## Functions, global variables
                   5382: ##
                   5383: echo $ac_n "checking for int timezone""... $ac_c" 1>&6
1.105     petere   5384: echo "configure:5385: checking for int timezone" >&5
1.29      petere   5385: if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
1.1       petere   5386:   echo $ac_n "(cached) $ac_c" 1>&6
                   5387: else
                   5388:   cat > conftest.$ac_ext <<EOF
1.105     petere   5389: #line 5390 "configure"
1.1       petere   5390: #include "confdefs.h"
1.29      petere   5391: #include <time.h>
1.98      petere   5392: int res;
1.1       petere   5393: int main() {
1.98      petere   5394: res = timezone / 60;
1.1       petere   5395: ; return 0; }
                   5396: EOF
1.105     petere   5397: if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5398:   rm -rf conftest*
1.29      petere   5399:   pgac_cv_var_int_timezone=yes
1.1       petere   5400: else
                   5401:   echo "configure: failed program was:" >&5
                   5402:   cat conftest.$ac_ext >&5
                   5403:   rm -rf conftest*
1.29      petere   5404:   pgac_cv_var_int_timezone=no
1.1       petere   5405: fi
                   5406: rm -f conftest*
                   5407: fi
                   5408: 
1.29      petere   5409: echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
                   5410: if test x"$pgac_cv_var_int_timezone" = xyes ; then
1.1       petere   5411:   cat >> confdefs.h <<\EOF
1.29      petere   5412: #define HAVE_INT_TIMEZONE 
1.1       petere   5413: EOF
                   5414: 
1.29      petere   5415: fi
                   5416: echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
1.105     petere   5417: echo "configure:5418: checking types of arguments for accept()" >&5
1.29      petere   5418:  if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
                   5419:   echo $ac_n "(cached) $ac_c" 1>&6
                   5420: else
                   5421:    if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
                   5422:   echo $ac_n "(cached) $ac_c" 1>&6
1.1       petere   5423: else
1.29      petere   5424:     if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
1.1       petere   5425:   echo $ac_n "(cached) $ac_c" 1>&6
                   5426: else
1.29      petere   5427:      for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
1.38      petere   5428:      for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
1.83      petere   5429:       for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
1.29      petere   5430:        cat > conftest.$ac_ext <<EOF
1.105     petere   5431: #line 5432 "configure"
1.1       petere   5432: #include "confdefs.h"
1.29      petere   5433: #ifdef HAVE_SYS_TYPES_H
                   5434: #include <sys/types.h>
                   5435: #endif
                   5436: #ifdef HAVE_SYS_SOCKET_H
                   5437: #include <sys/socket.h>
                   5438: #endif
1.83      petere   5439: extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
1.1       petere   5440: int main() {
                   5441: 
                   5442: ; return 0; }
                   5443: EOF
1.105     petere   5444: if { (eval echo configure:5445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5445:   rm -rf conftest*
1.38      petere   5446:   ac_not_found=no; break 3
1.1       petere   5447: else
                   5448:   echo "configure: failed program was:" >&5
                   5449:   cat conftest.$ac_ext >&5
                   5450:   rm -rf conftest*
1.29      petere   5451:   ac_not_found=yes
1.1       petere   5452: fi
                   5453: rm -f conftest*
1.29      petere   5454:       done
                   5455:      done
                   5456:     done
1.38      petere   5457:     if test "$ac_not_found" = yes; then
                   5458:       { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
                   5459:     fi
1.83      petere   5460:     if test "$ac_cv_func_accept_arg3" = "void"; then
                   5461:       ac_cv_func_accept_arg3=int
                   5462:     fi
1.29      petere   5463:    
                   5464: fi
                   5465:   
                   5466: fi
                   5467:  
1.1       petere   5468: fi
1.29      petere   5469:  echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
                   5470:  cat >> confdefs.h <<EOF
                   5471: #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
                   5472: EOF
1.1       petere   5473: 
1.29      petere   5474:  cat >> confdefs.h <<EOF
                   5475: #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
1.1       petere   5476: EOF
                   5477: 
1.29      petere   5478:  cat >> confdefs.h <<EOF
                   5479: #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
                   5480: EOF
1.1       petere   5481: 
                   5482: 
1.29      petere   5483: echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
1.105     petere   5484: echo "configure:5485: checking whether gettimeofday takes only one argument" >&5
1.29      petere   5485: if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
1.1       petere   5486:   echo $ac_n "(cached) $ac_c" 1>&6
                   5487: else
                   5488:   cat > conftest.$ac_ext <<EOF
1.105     petere   5489: #line 5490 "configure"
1.1       petere   5490: #include "confdefs.h"
1.29      petere   5491: #include <sys/time.h>
1.1       petere   5492: int main() {
1.29      petere   5493: struct timeval *tp;
                   5494: struct timezone *tzp;
                   5495: gettimeofday(tp,tzp);
1.1       petere   5496: ; return 0; }
                   5497: EOF
1.105     petere   5498: if { (eval echo configure:5499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1       petere   5499:   rm -rf conftest*
1.29      petere   5500:   pgac_cv_func_gettimeofday_1arg=no
1.1       petere   5501: else
                   5502:   echo "configure: failed program was:" >&5
                   5503:   cat conftest.$ac_ext >&5
                   5504:   rm -rf conftest*
1.29      petere   5505:   pgac_cv_func_gettimeofday_1arg=yes
1.1       petere   5506: fi
                   5507: rm -f conftest*
                   5508: fi
                   5509: 
1.29      petere   5510: echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
                   5511: if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
                   5512:   cat >> confdefs.h <<\EOF
                   5513: #define GETTIMEOFDAY_1ARG 
1.1       petere   5514: EOF
1.29      petere   5515: 
1.1       petere   5516: fi
                   5517: 
1.106     tgl      5518: for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
1.1       petere   5519: do
                   5520: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.105     petere   5521: echo "configure:5522: checking for $ac_func" >&5
1.1       petere   5522: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5523:   echo $ac_n "(cached) $ac_c" 1>&6
                   5524: else
                   5525:   cat > conftest.$ac_ext <<EOF
1.105     petere   5526: #line 5527 "configure"
1.1       petere   5527: #include "confdefs.h"
                   5528: /* System header to define __stub macros and hopefully few prototypes,
                   5529:     which can conflict with char $ac_func(); below.  */
                   5530: #include <assert.h>
                   5531: /* Override any gcc2 internal prototype to avoid an error.  */
                   5532: /* We use char because int might match the return type of a gcc2
                   5533:     builtin and then its argument prototype would still apply.  */
                   5534: char $ac_func();
                   5535: 
                   5536: int main() {
                   5537: 
                   5538: /* The GNU C library defines this for functions which it implements
                   5539:     to always fail with ENOSYS.  Some functions are actually named
                   5540:     something starting with __ and the normal name is an alias.  */
                   5541: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5542: choke me
                   5543: #else
                   5544: $ac_func();
                   5545: #endif
                   5546: 
                   5547: ; return 0; }
                   5548: EOF
1.105     petere   5549: if { (eval echo configure:5550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5550:   rm -rf conftest*
                   5551:   eval "ac_cv_func_$ac_func=yes"
                   5552: else
                   5553:   echo "configure: failed program was:" >&5
                   5554:   cat conftest.$ac_ext >&5
                   5555:   rm -rf conftest*
                   5556:   eval "ac_cv_func_$ac_func=no"
                   5557: fi
                   5558: rm -f conftest*
                   5559: fi
                   5560: 
                   5561: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5562:   echo "$ac_t""yes" 1>&6
                   5563:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5564:   cat >> confdefs.h <<EOF
                   5565: #define $ac_tr_func 1
                   5566: EOF
                   5567:  
                   5568: else
                   5569:   echo "$ac_t""no" 1>&6
                   5570: fi
                   5571: done
                   5572: 
                   5573: 
1.106     tgl      5574: cat > conftest.$ac_ext <<EOF
                   5575: #line 5576 "configure"
                   5576: #include "confdefs.h"
                   5577: #include <unistd.h>
                   5578: EOF
                   5579: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5580:   egrep "fdatasync" >/dev/null 2>&1; then
                   5581:   rm -rf conftest*
                   5582:   cat >> confdefs.h <<\EOF
                   5583: #define HAVE_FDATASYNC_DECL 1
                   5584: EOF
                   5585: 
                   5586: fi
                   5587: rm -f conftest*
                   5588: 
                   5589: 
1.1       petere   5590: echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
1.106     tgl      5591: echo "configure:5592: checking for PS_STRINGS" >&5
1.28      petere   5592: if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
                   5593:   echo $ac_n "(cached) $ac_c" 1>&6
                   5594: else
                   5595:   cat > conftest.$ac_ext <<EOF
1.106     tgl      5596: #line 5597 "configure"
1.1       petere   5597: #include "confdefs.h"
1.28      petere   5598: #include <machine/vmparam.h>
                   5599: #include <sys/exec.h>
                   5600: 
1.1       petere   5601: int main() {
                   5602: PS_STRINGS->ps_nargvstr = 1;
                   5603: PS_STRINGS->ps_argvstr = "foo";
                   5604: ; return 0; }
                   5605: EOF
1.106     tgl      5606: if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5607:   rm -rf conftest*
1.28      petere   5608:   pgac_cv_var_PS_STRINGS=yes
1.1       petere   5609: else
                   5610:   echo "configure: failed program was:" >&5
                   5611:   cat conftest.$ac_ext >&5
                   5612:   rm -rf conftest*
1.28      petere   5613:   pgac_cv_var_PS_STRINGS=no
1.1       petere   5614: fi
                   5615: rm -f conftest*
1.28      petere   5616: fi
                   5617: 
                   5618: echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
                   5619: if test "$pgac_cv_var_PS_STRINGS" = yes ; then
                   5620:   cat >> confdefs.h <<\EOF
                   5621: #define HAVE_PS_STRINGS 
                   5622: EOF
                   5623: 
                   5624: fi
1.1       petere   5625: 
                   5626: SNPRINTF=''
                   5627: echo $ac_n "checking for snprintf""... $ac_c" 1>&6
1.106     tgl      5628: echo "configure:5629: checking for snprintf" >&5
1.1       petere   5629: if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
                   5630:   echo $ac_n "(cached) $ac_c" 1>&6
                   5631: else
                   5632:   cat > conftest.$ac_ext <<EOF
1.106     tgl      5633: #line 5634 "configure"
1.1       petere   5634: #include "confdefs.h"
                   5635: /* System header to define __stub macros and hopefully few prototypes,
                   5636:     which can conflict with char snprintf(); below.  */
                   5637: #include <assert.h>
                   5638: /* Override any gcc2 internal prototype to avoid an error.  */
                   5639: /* We use char because int might match the return type of a gcc2
                   5640:     builtin and then its argument prototype would still apply.  */
                   5641: char snprintf();
                   5642: 
                   5643: int main() {
                   5644: 
                   5645: /* The GNU C library defines this for functions which it implements
                   5646:     to always fail with ENOSYS.  Some functions are actually named
                   5647:     something starting with __ and the normal name is an alias.  */
                   5648: #if defined (__stub_snprintf) || defined (__stub___snprintf)
                   5649: choke me
                   5650: #else
                   5651: snprintf();
                   5652: #endif
                   5653: 
                   5654: ; return 0; }
                   5655: EOF
1.106     tgl      5656: if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5657:   rm -rf conftest*
                   5658:   eval "ac_cv_func_snprintf=yes"
                   5659: else
                   5660:   echo "configure: failed program was:" >&5
                   5661:   cat conftest.$ac_ext >&5
                   5662:   rm -rf conftest*
                   5663:   eval "ac_cv_func_snprintf=no"
                   5664: fi
                   5665: rm -f conftest*
                   5666: fi
                   5667: 
                   5668: if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
                   5669:   echo "$ac_t""yes" 1>&6
                   5670:   cat >> confdefs.h <<\EOF
                   5671: #define HAVE_SNPRINTF 1
                   5672: EOF
                   5673: 
                   5674: else
                   5675:   echo "$ac_t""no" 1>&6
                   5676: SNPRINTF='snprintf.o'
                   5677: fi
                   5678: 
                   5679: echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1.106     tgl      5680: echo "configure:5681: checking for vsnprintf" >&5
1.1       petere   5681: if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
                   5682:   echo $ac_n "(cached) $ac_c" 1>&6
                   5683: else
                   5684:   cat > conftest.$ac_ext <<EOF
1.106     tgl      5685: #line 5686 "configure"
1.1       petere   5686: #include "confdefs.h"
                   5687: /* System header to define __stub macros and hopefully few prototypes,
                   5688:     which can conflict with char vsnprintf(); below.  */
                   5689: #include <assert.h>
                   5690: /* Override any gcc2 internal prototype to avoid an error.  */
                   5691: /* We use char because int might match the return type of a gcc2
                   5692:     builtin and then its argument prototype would still apply.  */
                   5693: char vsnprintf();
                   5694: 
                   5695: int main() {
                   5696: 
                   5697: /* The GNU C library defines this for functions which it implements
                   5698:     to always fail with ENOSYS.  Some functions are actually named
                   5699:     something starting with __ and the normal name is an alias.  */
                   5700: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
                   5701: choke me
                   5702: #else
                   5703: vsnprintf();
                   5704: #endif
                   5705: 
                   5706: ; return 0; }
                   5707: EOF
1.106     tgl      5708: if { (eval echo configure:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5709:   rm -rf conftest*
                   5710:   eval "ac_cv_func_vsnprintf=yes"
                   5711: else
                   5712:   echo "configure: failed program was:" >&5
                   5713:   cat conftest.$ac_ext >&5
                   5714:   rm -rf conftest*
                   5715:   eval "ac_cv_func_vsnprintf=no"
                   5716: fi
                   5717: rm -f conftest*
                   5718: fi
                   5719: 
                   5720: if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
                   5721:   echo "$ac_t""yes" 1>&6
                   5722:   cat >> confdefs.h <<\EOF
                   5723: #define HAVE_VSNPRINTF 1
                   5724: EOF
                   5725: 
                   5726: else
                   5727:   echo "$ac_t""no" 1>&6
                   5728: SNPRINTF='snprintf.o'
                   5729: fi
                   5730: 
                   5731: 
                   5732: cat > conftest.$ac_ext <<EOF
1.106     tgl      5733: #line 5734 "configure"
1.1       petere   5734: #include "confdefs.h"
                   5735: #include <stdio.h>
                   5736: EOF
                   5737: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5738:   egrep "snprintf" >/dev/null 2>&1; then
                   5739:   rm -rf conftest*
                   5740:   cat >> confdefs.h <<\EOF
                   5741: #define HAVE_SNPRINTF_DECL 1
                   5742: EOF
                   5743: 
                   5744: fi
                   5745: rm -f conftest*
                   5746: 
                   5747: cat > conftest.$ac_ext <<EOF
1.106     tgl      5748: #line 5749 "configure"
1.1       petere   5749: #include "confdefs.h"
                   5750: #include <stdio.h>
                   5751: EOF
                   5752: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   5753:   egrep "vsnprintf" >/dev/null 2>&1; then
                   5754:   rm -rf conftest*
                   5755:   cat >> confdefs.h <<\EOF
                   5756: #define HAVE_VSNPRINTF_DECL 1
                   5757: EOF
                   5758: 
                   5759: fi
                   5760: rm -f conftest*
                   5761: 
1.29      petere   5762: 
                   5763: # do this one the hard way in case isinf() is a macro
1.1       petere   5764: echo $ac_n "checking for isinf""... $ac_c" 1>&6
1.106     tgl      5765: echo "configure:5766: checking for isinf" >&5
1.29      petere   5766: if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
1.1       petere   5767:   echo $ac_n "(cached) $ac_c" 1>&6
                   5768: else
                   5769:   cat > conftest.$ac_ext <<EOF
1.106     tgl      5770: #line 5771 "configure"
1.1       petere   5771: #include "confdefs.h"
                   5772: #include <math.h>
1.29      petere   5773: 
1.1       petere   5774: int main() {
                   5775: double x = 0.0; int res = isinf(x);
                   5776: ; return 0; }
                   5777: EOF
1.106     tgl      5778: if { (eval echo configure:5779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5779:   rm -rf conftest*
1.29      petere   5780:   ac_cv_func_isinf=yes
1.1       petere   5781: else
                   5782:   echo "configure: failed program was:" >&5
                   5783:   cat conftest.$ac_ext >&5
                   5784:   rm -rf conftest*
1.29      petere   5785:   ac_cv_func_isinf=no
1.1       petere   5786: fi
                   5787: rm -f conftest*
                   5788: fi
                   5789: 
1.29      petere   5790: echo "$ac_t""$ac_cv_func_isinf" 1>&6
                   5791: 
                   5792: if test $ac_cv_func_isinf = yes ; then
1.1       petere   5793:   cat >> confdefs.h <<\EOF
                   5794: #define HAVE_ISINF 1
                   5795: EOF
                   5796: 
1.29      petere   5797:   ISINF=
                   5798: else
                   5799:   ISINF='isinf.o'
                   5800:   # Look for a way to implement a substitute for isinf()
                   5801:   for ac_func in fpclass fp_class fp_class_d class
                   5802: do
                   5803: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.106     tgl      5804: echo "configure:5805: checking for $ac_func" >&5
1.29      petere   5805: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   5806:   echo $ac_n "(cached) $ac_c" 1>&6
                   5807: else
                   5808:   cat > conftest.$ac_ext <<EOF
1.106     tgl      5809: #line 5810 "configure"
1.29      petere   5810: #include "confdefs.h"
                   5811: /* System header to define __stub macros and hopefully few prototypes,
                   5812:     which can conflict with char $ac_func(); below.  */
                   5813: #include <assert.h>
                   5814: /* Override any gcc2 internal prototype to avoid an error.  */
                   5815: /* We use char because int might match the return type of a gcc2
                   5816:     builtin and then its argument prototype would still apply.  */
                   5817: char $ac_func();
                   5818: 
                   5819: int main() {
                   5820: 
                   5821: /* The GNU C library defines this for functions which it implements
                   5822:     to always fail with ENOSYS.  Some functions are actually named
                   5823:     something starting with __ and the normal name is an alias.  */
                   5824: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   5825: choke me
                   5826: #else
                   5827: $ac_func();
                   5828: #endif
                   5829: 
                   5830: ; return 0; }
                   5831: EOF
1.106     tgl      5832: if { (eval echo configure:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.29      petere   5833:   rm -rf conftest*
                   5834:   eval "ac_cv_func_$ac_func=yes"
                   5835: else
                   5836:   echo "configure: failed program was:" >&5
                   5837:   cat conftest.$ac_ext >&5
                   5838:   rm -rf conftest*
                   5839:   eval "ac_cv_func_$ac_func=no"
                   5840: fi
                   5841: rm -f conftest*
                   5842: fi
                   5843: 
                   5844: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   5845:   echo "$ac_t""yes" 1>&6
                   5846:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   5847:   cat >> confdefs.h <<EOF
                   5848: #define $ac_tr_func 1
                   5849: EOF
                   5850:  break
1.1       petere   5851: else
                   5852:   echo "$ac_t""no" 1>&6
1.29      petere   5853: fi
                   5854: done
                   5855: 
1.1       petere   5856: fi
                   5857: 
1.29      petere   5858: 
1.1       petere   5859: echo $ac_n "checking for getrusage""... $ac_c" 1>&6
1.106     tgl      5860: echo "configure:5861: checking for getrusage" >&5
1.1       petere   5861: if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
                   5862:   echo $ac_n "(cached) $ac_c" 1>&6
                   5863: else
                   5864:   cat > conftest.$ac_ext <<EOF
1.106     tgl      5865: #line 5866 "configure"
1.1       petere   5866: #include "confdefs.h"
                   5867: /* System header to define __stub macros and hopefully few prototypes,
                   5868:     which can conflict with char getrusage(); below.  */
                   5869: #include <assert.h>
                   5870: /* Override any gcc2 internal prototype to avoid an error.  */
                   5871: /* We use char because int might match the return type of a gcc2
                   5872:     builtin and then its argument prototype would still apply.  */
                   5873: char getrusage();
                   5874: 
                   5875: int main() {
                   5876: 
                   5877: /* The GNU C library defines this for functions which it implements
                   5878:     to always fail with ENOSYS.  Some functions are actually named
                   5879:     something starting with __ and the normal name is an alias.  */
                   5880: #if defined (__stub_getrusage) || defined (__stub___getrusage)
                   5881: choke me
                   5882: #else
                   5883: getrusage();
                   5884: #endif
                   5885: 
                   5886: ; return 0; }
                   5887: EOF
1.106     tgl      5888: if { (eval echo configure:5889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5889:   rm -rf conftest*
                   5890:   eval "ac_cv_func_getrusage=yes"
                   5891: else
                   5892:   echo "configure: failed program was:" >&5
                   5893:   cat conftest.$ac_ext >&5
                   5894:   rm -rf conftest*
                   5895:   eval "ac_cv_func_getrusage=no"
                   5896: fi
                   5897: rm -f conftest*
                   5898: fi
                   5899: 
                   5900: if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
                   5901:   echo "$ac_t""yes" 1>&6
                   5902:   cat >> confdefs.h <<\EOF
                   5903: #define HAVE_GETRUSAGE 1
                   5904: EOF
                   5905: 
                   5906: else
                   5907:   echo "$ac_t""no" 1>&6
                   5908: GETRUSAGE='getrusage.o'
                   5909: fi
                   5910: 
                   5911: 
                   5912: echo $ac_n "checking for srandom""... $ac_c" 1>&6
1.106     tgl      5913: echo "configure:5914: checking for srandom" >&5
1.1       petere   5914: if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
                   5915:   echo $ac_n "(cached) $ac_c" 1>&6
                   5916: else
                   5917:   cat > conftest.$ac_ext <<EOF
1.106     tgl      5918: #line 5919 "configure"
1.1       petere   5919: #include "confdefs.h"
                   5920: /* System header to define __stub macros and hopefully few prototypes,
                   5921:     which can conflict with char srandom(); below.  */
                   5922: #include <assert.h>
                   5923: /* Override any gcc2 internal prototype to avoid an error.  */
                   5924: /* We use char because int might match the return type of a gcc2
                   5925:     builtin and then its argument prototype would still apply.  */
                   5926: char srandom();
                   5927: 
                   5928: int main() {
                   5929: 
                   5930: /* The GNU C library defines this for functions which it implements
                   5931:     to always fail with ENOSYS.  Some functions are actually named
                   5932:     something starting with __ and the normal name is an alias.  */
                   5933: #if defined (__stub_srandom) || defined (__stub___srandom)
                   5934: choke me
                   5935: #else
                   5936: srandom();
                   5937: #endif
                   5938: 
                   5939: ; return 0; }
                   5940: EOF
1.106     tgl      5941: if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5942:   rm -rf conftest*
                   5943:   eval "ac_cv_func_srandom=yes"
                   5944: else
                   5945:   echo "configure: failed program was:" >&5
                   5946:   cat conftest.$ac_ext >&5
                   5947:   rm -rf conftest*
                   5948:   eval "ac_cv_func_srandom=no"
                   5949: fi
                   5950: rm -f conftest*
                   5951: fi
                   5952: 
                   5953: if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
                   5954:   echo "$ac_t""yes" 1>&6
                   5955:   cat >> confdefs.h <<\EOF
                   5956: #define HAVE_SRANDOM 1
                   5957: EOF
                   5958: 
                   5959: else
                   5960:   echo "$ac_t""no" 1>&6
                   5961: SRANDOM='srandom.o'
                   5962: fi
                   5963: 
                   5964: 
                   5965: echo $ac_n "checking for gethostname""... $ac_c" 1>&6
1.106     tgl      5966: echo "configure:5967: checking for gethostname" >&5
1.1       petere   5967: if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
                   5968:   echo $ac_n "(cached) $ac_c" 1>&6
                   5969: else
                   5970:   cat > conftest.$ac_ext <<EOF
1.106     tgl      5971: #line 5972 "configure"
1.1       petere   5972: #include "confdefs.h"
                   5973: /* System header to define __stub macros and hopefully few prototypes,
                   5974:     which can conflict with char gethostname(); below.  */
                   5975: #include <assert.h>
                   5976: /* Override any gcc2 internal prototype to avoid an error.  */
                   5977: /* We use char because int might match the return type of a gcc2
                   5978:     builtin and then its argument prototype would still apply.  */
                   5979: char gethostname();
                   5980: 
                   5981: int main() {
                   5982: 
                   5983: /* The GNU C library defines this for functions which it implements
                   5984:     to always fail with ENOSYS.  Some functions are actually named
                   5985:     something starting with __ and the normal name is an alias.  */
                   5986: #if defined (__stub_gethostname) || defined (__stub___gethostname)
                   5987: choke me
                   5988: #else
                   5989: gethostname();
                   5990: #endif
                   5991: 
                   5992: ; return 0; }
                   5993: EOF
1.106     tgl      5994: if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   5995:   rm -rf conftest*
                   5996:   eval "ac_cv_func_gethostname=yes"
                   5997: else
                   5998:   echo "configure: failed program was:" >&5
                   5999:   cat conftest.$ac_ext >&5
                   6000:   rm -rf conftest*
                   6001:   eval "ac_cv_func_gethostname=no"
                   6002: fi
                   6003: rm -f conftest*
                   6004: fi
                   6005: 
                   6006: if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
                   6007:   echo "$ac_t""yes" 1>&6
                   6008:   cat >> confdefs.h <<\EOF
                   6009: #define HAVE_GETHOSTNAME 1
                   6010: EOF
                   6011: 
                   6012: else
                   6013:   echo "$ac_t""no" 1>&6
                   6014: GETHOSTNAME='gethostname.o'
                   6015: fi
                   6016: 
                   6017: 
                   6018: echo $ac_n "checking for random""... $ac_c" 1>&6
1.106     tgl      6019: echo "configure:6020: checking for random" >&5
1.1       petere   6020: if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
                   6021:   echo $ac_n "(cached) $ac_c" 1>&6
                   6022: else
                   6023:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6024: #line 6025 "configure"
1.1       petere   6025: #include "confdefs.h"
                   6026: /* System header to define __stub macros and hopefully few prototypes,
                   6027:     which can conflict with char random(); below.  */
                   6028: #include <assert.h>
                   6029: /* Override any gcc2 internal prototype to avoid an error.  */
                   6030: /* We use char because int might match the return type of a gcc2
                   6031:     builtin and then its argument prototype would still apply.  */
                   6032: char random();
                   6033: 
                   6034: int main() {
                   6035: 
                   6036: /* The GNU C library defines this for functions which it implements
                   6037:     to always fail with ENOSYS.  Some functions are actually named
                   6038:     something starting with __ and the normal name is an alias.  */
                   6039: #if defined (__stub_random) || defined (__stub___random)
                   6040: choke me
                   6041: #else
                   6042: random();
                   6043: #endif
                   6044: 
                   6045: ; return 0; }
                   6046: EOF
1.106     tgl      6047: if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6048:   rm -rf conftest*
                   6049:   eval "ac_cv_func_random=yes"
                   6050: else
                   6051:   echo "configure: failed program was:" >&5
                   6052:   cat conftest.$ac_ext >&5
                   6053:   rm -rf conftest*
                   6054:   eval "ac_cv_func_random=no"
                   6055: fi
                   6056: rm -f conftest*
                   6057: fi
                   6058: 
                   6059: if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
                   6060:   echo "$ac_t""yes" 1>&6
                   6061:   cat >> confdefs.h <<\EOF
                   6062: #define HAVE_RANDOM 1
                   6063: EOF
                   6064: 
                   6065: else
                   6066:   echo "$ac_t""no" 1>&6
                   6067: MISSING_RANDOM='random.o'
                   6068: fi
                   6069: 
                   6070: 
                   6071: echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1.106     tgl      6072: echo "configure:6073: checking for inet_aton" >&5
1.1       petere   6073: if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
                   6074:   echo $ac_n "(cached) $ac_c" 1>&6
                   6075: else
                   6076:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6077: #line 6078 "configure"
1.1       petere   6078: #include "confdefs.h"
                   6079: /* System header to define __stub macros and hopefully few prototypes,
                   6080:     which can conflict with char inet_aton(); below.  */
                   6081: #include <assert.h>
                   6082: /* Override any gcc2 internal prototype to avoid an error.  */
                   6083: /* We use char because int might match the return type of a gcc2
                   6084:     builtin and then its argument prototype would still apply.  */
                   6085: char inet_aton();
                   6086: 
                   6087: int main() {
                   6088: 
                   6089: /* The GNU C library defines this for functions which it implements
                   6090:     to always fail with ENOSYS.  Some functions are actually named
                   6091:     something starting with __ and the normal name is an alias.  */
                   6092: #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
                   6093: choke me
                   6094: #else
                   6095: inet_aton();
                   6096: #endif
                   6097: 
                   6098: ; return 0; }
                   6099: EOF
1.106     tgl      6100: if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6101:   rm -rf conftest*
                   6102:   eval "ac_cv_func_inet_aton=yes"
                   6103: else
                   6104:   echo "configure: failed program was:" >&5
                   6105:   cat conftest.$ac_ext >&5
                   6106:   rm -rf conftest*
                   6107:   eval "ac_cv_func_inet_aton=no"
                   6108: fi
                   6109: rm -f conftest*
                   6110: fi
                   6111: 
                   6112: if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
                   6113:   echo "$ac_t""yes" 1>&6
                   6114:   cat >> confdefs.h <<\EOF
                   6115: #define HAVE_INET_ATON 1
                   6116: EOF
                   6117: 
                   6118: else
                   6119:   echo "$ac_t""no" 1>&6
                   6120: INET_ATON='inet_aton.o'
                   6121: fi
                   6122: 
                   6123: 
                   6124: echo $ac_n "checking for strerror""... $ac_c" 1>&6
1.106     tgl      6125: echo "configure:6126: checking for strerror" >&5
1.1       petere   6126: if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
                   6127:   echo $ac_n "(cached) $ac_c" 1>&6
                   6128: else
                   6129:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6130: #line 6131 "configure"
1.1       petere   6131: #include "confdefs.h"
                   6132: /* System header to define __stub macros and hopefully few prototypes,
                   6133:     which can conflict with char strerror(); below.  */
                   6134: #include <assert.h>
                   6135: /* Override any gcc2 internal prototype to avoid an error.  */
                   6136: /* We use char because int might match the return type of a gcc2
                   6137:     builtin and then its argument prototype would still apply.  */
                   6138: char strerror();
                   6139: 
                   6140: int main() {
                   6141: 
                   6142: /* The GNU C library defines this for functions which it implements
                   6143:     to always fail with ENOSYS.  Some functions are actually named
                   6144:     something starting with __ and the normal name is an alias.  */
                   6145: #if defined (__stub_strerror) || defined (__stub___strerror)
                   6146: choke me
                   6147: #else
                   6148: strerror();
                   6149: #endif
                   6150: 
                   6151: ; return 0; }
                   6152: EOF
1.106     tgl      6153: if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6154:   rm -rf conftest*
                   6155:   eval "ac_cv_func_strerror=yes"
                   6156: else
                   6157:   echo "configure: failed program was:" >&5
                   6158:   cat conftest.$ac_ext >&5
                   6159:   rm -rf conftest*
                   6160:   eval "ac_cv_func_strerror=no"
                   6161: fi
                   6162: rm -f conftest*
                   6163: fi
                   6164: 
                   6165: if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
                   6166:   echo "$ac_t""yes" 1>&6
                   6167:   cat >> confdefs.h <<\EOF
                   6168: #define HAVE_STRERROR 1
                   6169: EOF
                   6170: 
                   6171: else
                   6172:   echo "$ac_t""no" 1>&6
1.99      tgl      6173: STRERROR='strerror.o'
1.1       petere   6174: fi
                   6175: 
                   6176: 
                   6177: echo $ac_n "checking for strdup""... $ac_c" 1>&6
1.106     tgl      6178: echo "configure:6179: checking for strdup" >&5
1.1       petere   6179: if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
                   6180:   echo $ac_n "(cached) $ac_c" 1>&6
                   6181: else
                   6182:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6183: #line 6184 "configure"
1.1       petere   6184: #include "confdefs.h"
                   6185: /* System header to define __stub macros and hopefully few prototypes,
                   6186:     which can conflict with char strdup(); below.  */
                   6187: #include <assert.h>
                   6188: /* Override any gcc2 internal prototype to avoid an error.  */
                   6189: /* We use char because int might match the return type of a gcc2
                   6190:     builtin and then its argument prototype would still apply.  */
                   6191: char strdup();
                   6192: 
                   6193: int main() {
                   6194: 
                   6195: /* The GNU C library defines this for functions which it implements
                   6196:     to always fail with ENOSYS.  Some functions are actually named
                   6197:     something starting with __ and the normal name is an alias.  */
                   6198: #if defined (__stub_strdup) || defined (__stub___strdup)
                   6199: choke me
                   6200: #else
                   6201: strdup();
                   6202: #endif
                   6203: 
                   6204: ; return 0; }
                   6205: EOF
1.106     tgl      6206: if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6207:   rm -rf conftest*
                   6208:   eval "ac_cv_func_strdup=yes"
                   6209: else
                   6210:   echo "configure: failed program was:" >&5
                   6211:   cat conftest.$ac_ext >&5
                   6212:   rm -rf conftest*
                   6213:   eval "ac_cv_func_strdup=no"
                   6214: fi
                   6215: rm -f conftest*
                   6216: fi
                   6217: 
                   6218: if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
                   6219:   echo "$ac_t""yes" 1>&6
                   6220:   cat >> confdefs.h <<\EOF
                   6221: #define HAVE_STRDUP 1
                   6222: EOF
                   6223: 
                   6224: else
                   6225:   echo "$ac_t""no" 1>&6
                   6226: STRDUP='../../utils/strdup.o'
                   6227: fi
                   6228: 
                   6229: 
                   6230: echo $ac_n "checking for strtol""... $ac_c" 1>&6
1.106     tgl      6231: echo "configure:6232: checking for strtol" >&5
1.1       petere   6232: if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
                   6233:   echo $ac_n "(cached) $ac_c" 1>&6
                   6234: else
                   6235:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6236: #line 6237 "configure"
1.1       petere   6237: #include "confdefs.h"
                   6238: /* System header to define __stub macros and hopefully few prototypes,
                   6239:     which can conflict with char strtol(); below.  */
                   6240: #include <assert.h>
                   6241: /* Override any gcc2 internal prototype to avoid an error.  */
                   6242: /* We use char because int might match the return type of a gcc2
                   6243:     builtin and then its argument prototype would still apply.  */
                   6244: char strtol();
                   6245: 
                   6246: int main() {
                   6247: 
                   6248: /* The GNU C library defines this for functions which it implements
                   6249:     to always fail with ENOSYS.  Some functions are actually named
                   6250:     something starting with __ and the normal name is an alias.  */
                   6251: #if defined (__stub_strtol) || defined (__stub___strtol)
                   6252: choke me
                   6253: #else
                   6254: strtol();
                   6255: #endif
                   6256: 
                   6257: ; return 0; }
                   6258: EOF
1.106     tgl      6259: if { (eval echo configure:6260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6260:   rm -rf conftest*
                   6261:   eval "ac_cv_func_strtol=yes"
                   6262: else
                   6263:   echo "configure: failed program was:" >&5
                   6264:   cat conftest.$ac_ext >&5
                   6265:   rm -rf conftest*
                   6266:   eval "ac_cv_func_strtol=no"
                   6267: fi
                   6268: rm -f conftest*
                   6269: fi
                   6270: 
                   6271: if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
                   6272:   echo "$ac_t""yes" 1>&6
                   6273:   cat >> confdefs.h <<\EOF
                   6274: #define HAVE_STRTOL 1
                   6275: EOF
                   6276: 
                   6277: else
                   6278:   echo "$ac_t""no" 1>&6
                   6279: STRTOL='strtol.o'
                   6280: fi
                   6281: 
                   6282: 
                   6283: echo $ac_n "checking for strtoul""... $ac_c" 1>&6
1.106     tgl      6284: echo "configure:6285: checking for strtoul" >&5
1.1       petere   6285: if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
                   6286:   echo $ac_n "(cached) $ac_c" 1>&6
                   6287: else
                   6288:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6289: #line 6290 "configure"
1.1       petere   6290: #include "confdefs.h"
                   6291: /* System header to define __stub macros and hopefully few prototypes,
                   6292:     which can conflict with char strtoul(); below.  */
                   6293: #include <assert.h>
                   6294: /* Override any gcc2 internal prototype to avoid an error.  */
                   6295: /* We use char because int might match the return type of a gcc2
                   6296:     builtin and then its argument prototype would still apply.  */
                   6297: char strtoul();
                   6298: 
                   6299: int main() {
                   6300: 
                   6301: /* The GNU C library defines this for functions which it implements
                   6302:     to always fail with ENOSYS.  Some functions are actually named
                   6303:     something starting with __ and the normal name is an alias.  */
                   6304: #if defined (__stub_strtoul) || defined (__stub___strtoul)
                   6305: choke me
                   6306: #else
                   6307: strtoul();
                   6308: #endif
                   6309: 
                   6310: ; return 0; }
                   6311: EOF
1.106     tgl      6312: if { (eval echo configure:6313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6313:   rm -rf conftest*
                   6314:   eval "ac_cv_func_strtoul=yes"
                   6315: else
                   6316:   echo "configure: failed program was:" >&5
                   6317:   cat conftest.$ac_ext >&5
                   6318:   rm -rf conftest*
                   6319:   eval "ac_cv_func_strtoul=no"
                   6320: fi
                   6321: rm -f conftest*
                   6322: fi
                   6323: 
                   6324: if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
                   6325:   echo "$ac_t""yes" 1>&6
                   6326:   cat >> confdefs.h <<\EOF
                   6327: #define HAVE_STRTOUL 1
                   6328: EOF
                   6329: 
                   6330: else
                   6331:   echo "$ac_t""no" 1>&6
1.107   ! ishii    6332: STRTOUL='strtoul.o'
1.1       petere   6333: fi
                   6334: 
                   6335: 
                   6336: echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
1.106     tgl      6337: echo "configure:6338: checking for strcasecmp" >&5
1.1       petere   6338: if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
                   6339:   echo $ac_n "(cached) $ac_c" 1>&6
                   6340: else
                   6341:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6342: #line 6343 "configure"
1.1       petere   6343: #include "confdefs.h"
                   6344: /* System header to define __stub macros and hopefully few prototypes,
                   6345:     which can conflict with char strcasecmp(); below.  */
                   6346: #include <assert.h>
                   6347: /* Override any gcc2 internal prototype to avoid an error.  */
                   6348: /* We use char because int might match the return type of a gcc2
                   6349:     builtin and then its argument prototype would still apply.  */
                   6350: char strcasecmp();
                   6351: 
                   6352: int main() {
                   6353: 
                   6354: /* The GNU C library defines this for functions which it implements
                   6355:     to always fail with ENOSYS.  Some functions are actually named
                   6356:     something starting with __ and the normal name is an alias.  */
                   6357: #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
                   6358: choke me
                   6359: #else
                   6360: strcasecmp();
                   6361: #endif
                   6362: 
                   6363: ; return 0; }
                   6364: EOF
1.106     tgl      6365: if { (eval echo configure:6366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6366:   rm -rf conftest*
                   6367:   eval "ac_cv_func_strcasecmp=yes"
                   6368: else
                   6369:   echo "configure: failed program was:" >&5
                   6370:   cat conftest.$ac_ext >&5
                   6371:   rm -rf conftest*
                   6372:   eval "ac_cv_func_strcasecmp=no"
                   6373: fi
                   6374: rm -f conftest*
                   6375: fi
                   6376: 
                   6377: if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
                   6378:   echo "$ac_t""yes" 1>&6
                   6379:   cat >> confdefs.h <<\EOF
                   6380: #define HAVE_STRCASECMP 1
                   6381: EOF
                   6382: 
                   6383: else
                   6384:   echo "$ac_t""no" 1>&6
                   6385: STRCASECMP='strcasecmp.o'
                   6386: fi
                   6387: 
                   6388: 
                   6389: echo $ac_n "checking for cbrt""... $ac_c" 1>&6
1.106     tgl      6390: echo "configure:6391: checking for cbrt" >&5
1.1       petere   6391: if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
                   6392:   echo $ac_n "(cached) $ac_c" 1>&6
                   6393: else
                   6394:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6395: #line 6396 "configure"
1.1       petere   6396: #include "confdefs.h"
                   6397: /* System header to define __stub macros and hopefully few prototypes,
                   6398:     which can conflict with char cbrt(); below.  */
                   6399: #include <assert.h>
                   6400: /* Override any gcc2 internal prototype to avoid an error.  */
                   6401: /* We use char because int might match the return type of a gcc2
                   6402:     builtin and then its argument prototype would still apply.  */
                   6403: char cbrt();
                   6404: 
                   6405: int main() {
                   6406: 
                   6407: /* The GNU C library defines this for functions which it implements
                   6408:     to always fail with ENOSYS.  Some functions are actually named
                   6409:     something starting with __ and the normal name is an alias.  */
                   6410: #if defined (__stub_cbrt) || defined (__stub___cbrt)
                   6411: choke me
                   6412: #else
                   6413: cbrt();
                   6414: #endif
                   6415: 
                   6416: ; return 0; }
                   6417: EOF
1.106     tgl      6418: if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6419:   rm -rf conftest*
                   6420:   eval "ac_cv_func_cbrt=yes"
                   6421: else
                   6422:   echo "configure: failed program was:" >&5
                   6423:   cat conftest.$ac_ext >&5
                   6424:   rm -rf conftest*
                   6425:   eval "ac_cv_func_cbrt=no"
                   6426: fi
                   6427: rm -f conftest*
                   6428: fi
                   6429: 
                   6430: if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
                   6431:   echo "$ac_t""yes" 1>&6
                   6432:   cat >> confdefs.h <<\EOF
                   6433: #define HAVE_CBRT 1
                   6434: EOF
                   6435: 
                   6436: else
                   6437:   echo "$ac_t""no" 1>&6
                   6438: echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
1.106     tgl      6439: echo "configure:6440: checking for cbrt in -lm" >&5
1.1       petere   6440: ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
                   6441: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6442:   echo $ac_n "(cached) $ac_c" 1>&6
                   6443: else
                   6444:   ac_save_LIBS="$LIBS"
                   6445: LIBS="-lm  $LIBS"
                   6446: cat > conftest.$ac_ext <<EOF
1.106     tgl      6447: #line 6448 "configure"
1.1       petere   6448: #include "confdefs.h"
                   6449: /* Override any gcc2 internal prototype to avoid an error.  */
                   6450: /* We use char because int might match the return type of a gcc2
                   6451:     builtin and then its argument prototype would still apply.  */
                   6452: char cbrt();
                   6453: 
                   6454: int main() {
                   6455: cbrt()
                   6456: ; return 0; }
                   6457: EOF
1.106     tgl      6458: if { (eval echo configure:6459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6459:   rm -rf conftest*
                   6460:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6461: else
                   6462:   echo "configure: failed program was:" >&5
                   6463:   cat conftest.$ac_ext >&5
                   6464:   rm -rf conftest*
                   6465:   eval "ac_cv_lib_$ac_lib_var=no"
                   6466: fi
                   6467: rm -f conftest*
                   6468: LIBS="$ac_save_LIBS"
                   6469: 
                   6470: fi
                   6471: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6472:   echo "$ac_t""yes" 1>&6
                   6473:   cat >> confdefs.h <<\EOF
                   6474: #define HAVE_CBRT 1
                   6475: EOF
                   6476: 
                   6477: else
                   6478:   echo "$ac_t""no" 1>&6
                   6479: fi
                   6480: 
                   6481: fi
                   6482: 
                   6483: 
                   6484: # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
                   6485: # this hackery with HPUXMATHLIB allows us to cope.
                   6486: HPUXMATHLIB=""
1.30      petere   6487: case $host_cpu in
1.1       petere   6488:   hppa1.1) 
                   6489:        if [ -r /lib/pa1.1/libm.a ] ; then
                   6490:            HPUXMATHLIB="-L /lib/pa1.1 -lm"
                   6491:        fi ;;
                   6492: esac
                   6493: 
                   6494: 
                   6495: echo $ac_n "checking for rint""... $ac_c" 1>&6
1.106     tgl      6496: echo "configure:6497: checking for rint" >&5
1.1       petere   6497: if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
                   6498:   echo $ac_n "(cached) $ac_c" 1>&6
                   6499: else
                   6500:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6501: #line 6502 "configure"
1.1       petere   6502: #include "confdefs.h"
                   6503: /* System header to define __stub macros and hopefully few prototypes,
                   6504:     which can conflict with char rint(); below.  */
                   6505: #include <assert.h>
                   6506: /* Override any gcc2 internal prototype to avoid an error.  */
                   6507: /* We use char because int might match the return type of a gcc2
                   6508:     builtin and then its argument prototype would still apply.  */
                   6509: char rint();
                   6510: 
                   6511: int main() {
                   6512: 
                   6513: /* The GNU C library defines this for functions which it implements
                   6514:     to always fail with ENOSYS.  Some functions are actually named
                   6515:     something starting with __ and the normal name is an alias.  */
                   6516: #if defined (__stub_rint) || defined (__stub___rint)
                   6517: choke me
                   6518: #else
                   6519: rint();
                   6520: #endif
                   6521: 
                   6522: ; return 0; }
                   6523: EOF
1.106     tgl      6524: if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6525:   rm -rf conftest*
                   6526:   eval "ac_cv_func_rint=yes"
                   6527: else
                   6528:   echo "configure: failed program was:" >&5
                   6529:   cat conftest.$ac_ext >&5
                   6530:   rm -rf conftest*
                   6531:   eval "ac_cv_func_rint=no"
                   6532: fi
                   6533: rm -f conftest*
                   6534: fi
                   6535: 
                   6536: if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
                   6537:   echo "$ac_t""yes" 1>&6
                   6538:   cat >> confdefs.h <<\EOF
                   6539: #define HAVE_RINT 1
                   6540: EOF
                   6541: 
                   6542: else
                   6543:   echo "$ac_t""no" 1>&6
                   6544: echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
1.106     tgl      6545: echo "configure:6546: checking for rint in -lm" >&5
1.1       petere   6546: ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
                   6547: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
                   6548:   echo $ac_n "(cached) $ac_c" 1>&6
                   6549: else
                   6550:   ac_save_LIBS="$LIBS"
                   6551: LIBS="-lm $HPUXMATHLIB $LIBS"
                   6552: cat > conftest.$ac_ext <<EOF
1.106     tgl      6553: #line 6554 "configure"
1.1       petere   6554: #include "confdefs.h"
                   6555: /* Override any gcc2 internal prototype to avoid an error.  */
                   6556: /* We use char because int might match the return type of a gcc2
                   6557:     builtin and then its argument prototype would still apply.  */
                   6558: char rint();
                   6559: 
                   6560: int main() {
                   6561: rint()
                   6562: ; return 0; }
                   6563: EOF
1.106     tgl      6564: if { (eval echo configure:6565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6565:   rm -rf conftest*
                   6566:   eval "ac_cv_lib_$ac_lib_var=yes"
                   6567: else
                   6568:   echo "configure: failed program was:" >&5
                   6569:   cat conftest.$ac_ext >&5
                   6570:   rm -rf conftest*
                   6571:   eval "ac_cv_lib_$ac_lib_var=no"
                   6572: fi
                   6573: rm -f conftest*
                   6574: LIBS="$ac_save_LIBS"
                   6575: 
                   6576: fi
                   6577: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
                   6578:   echo "$ac_t""yes" 1>&6
                   6579:   cat >> confdefs.h <<\EOF
                   6580: #define HAVE_RINT 1
                   6581: EOF
                   6582: 
                   6583: else
                   6584:   echo "$ac_t""no" 1>&6
                   6585: fi
                   6586: 
                   6587: fi
                   6588: 
                   6589: 
1.54      petere   6590: 
                   6591: # Readline versions < 2.1 don't have rl_completion_append_character
                   6592: echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
1.106     tgl      6593: echo "configure:6594: checking for rl_completion_append_character" >&5
1.1       petere   6594: cat > conftest.$ac_ext <<EOF
1.106     tgl      6595: #line 6596 "configure"
1.1       petere   6596: #include "confdefs.h"
1.54      petere   6597: #include <stdio.h>
                   6598: #ifdef HAVE_READLINE_H
                   6599: # include <readline.h>
                   6600: #endif
                   6601: #ifdef HAVE_READLINE_READLINE_H
                   6602: # include <readline/readline.h>
                   6603: #endif
                   6604: int main() {
                   6605: rl_completion_append_character = 'x';
                   6606: ; return 0; }
1.1       petere   6607: EOF
1.106     tgl      6608: if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6609:   rm -rf conftest*
1.54      petere   6610:   echo "$ac_t""yes" 1>&6
                   6611: cat >> confdefs.h <<\EOF
1.1       petere   6612: #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
                   6613: EOF
                   6614: 
                   6615: else
1.54      petere   6616:   echo "configure: failed program was:" >&5
                   6617:   cat conftest.$ac_ext >&5
1.1       petere   6618:   rm -rf conftest*
1.54      petere   6619:   echo "$ac_t""no" 1>&6
1.1       petere   6620: fi
                   6621: rm -f conftest*
                   6622: 
                   6623: 
1.54      petere   6624: # Check whether readline's filename_completion_function is declared.
                   6625: # Some prehistoric versions of readline, in particular those shipped
                   6626: # with earlier Cygwins don't have this declared, although it's in the
                   6627: # library.
                   6628: echo $ac_n "checking whether filename_completion_function is declared""... $ac_c" 1>&6
1.106     tgl      6629: echo "configure:6630: checking whether filename_completion_function is declared" >&5
1.54      petere   6630: if test "$ac_cv_header_readline_h" = yes; then
                   6631:     _readline_header='readline.h'
                   6632: elif test "$ac_cv_header_readline_readline_h" = yes; then
                   6633:     _readline_header='readline/readline.h'
1.1       petere   6634: else
1.54      petere   6635:     _readline_header='xxx'
1.1       petere   6636: fi
1.54      petere   6637: cat > conftest.$ac_ext <<EOF
1.106     tgl      6638: #line 6639 "configure"
1.1       petere   6639: #include "confdefs.h"
1.54      petere   6640: #include <$_readline_header>
1.1       petere   6641: EOF
                   6642: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
                   6643:   egrep "filename_completion_function" >/dev/null 2>&1; then
                   6644:   rm -rf conftest*
                   6645:   cat >> confdefs.h <<\EOF
                   6646: #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
                   6647: EOF
                   6648: 
1.54      petere   6649: echo "$ac_t""yes" 1>&6
1.1       petere   6650: else
                   6651:   rm -rf conftest*
1.54      petere   6652:   echo "$ac_t""no" 1>&6
1.1       petere   6653: fi
                   6654: rm -f conftest*
                   6655: 
                   6656: 
                   6657: 
                   6658: 
                   6659: echo $ac_n "checking for finite""... $ac_c" 1>&6
1.106     tgl      6660: echo "configure:6661: checking for finite" >&5
1.1       petere   6661: cat > conftest.$ac_ext <<EOF
1.106     tgl      6662: #line 6663 "configure"
1.1       petere   6663: #include "confdefs.h"
                   6664: #include <math.h>
                   6665: int main() {
                   6666: int dummy=finite(1.0);
                   6667: ; return 0; }
                   6668: EOF
1.106     tgl      6669: if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6670:   rm -rf conftest*
                   6671:   cat >> confdefs.h <<\EOF
                   6672: #define HAVE_FINITE 1
                   6673: EOF
                   6674:  echo "$ac_t""yes" 1>&6
                   6675: else
                   6676:   echo "configure: failed program was:" >&5
                   6677:   cat conftest.$ac_ext >&5
                   6678:   rm -rf conftest*
                   6679:   echo "$ac_t""no" 1>&6
                   6680: fi
                   6681: rm -f conftest*
                   6682: 
                   6683: echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
1.106     tgl      6684: echo "configure:6685: checking for sigsetjmp" >&5
1.1       petere   6685: cat > conftest.$ac_ext <<EOF
1.106     tgl      6686: #line 6687 "configure"
1.1       petere   6687: #include "confdefs.h"
                   6688: #include <setjmp.h>
                   6689: int main() {
                   6690: sigjmp_buf x; sigsetjmp(x, 1);
                   6691: ; return 0; }
                   6692: EOF
1.106     tgl      6693: if { (eval echo configure:6694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6694:   rm -rf conftest*
                   6695:   cat >> confdefs.h <<\EOF
                   6696: #define HAVE_SIGSETJMP 1
                   6697: EOF
                   6698:  echo "$ac_t""yes" 1>&6
                   6699: else
                   6700:   echo "configure: failed program was:" >&5
                   6701:   cat conftest.$ac_ext >&5
                   6702:   rm -rf conftest*
                   6703:   echo "$ac_t""no" 1>&6
                   6704: fi
                   6705: rm -f conftest*
                   6706: 
1.43      petere   6707: 
                   6708: # Check whether --enable-syslog was given
                   6709: if test x"${enable_syslog+set}" = xset; then
                   6710:   case $enable_syslog in
                   6711:     yes)
                   6712:       echo $ac_n "checking for syslog""... $ac_c" 1>&6
1.106     tgl      6713: echo "configure:6714: checking for syslog" >&5
1.1       petere   6714: if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
                   6715:   echo $ac_n "(cached) $ac_c" 1>&6
                   6716: else
                   6717:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6718: #line 6719 "configure"
1.1       petere   6719: #include "confdefs.h"
                   6720: /* System header to define __stub macros and hopefully few prototypes,
                   6721:     which can conflict with char syslog(); below.  */
                   6722: #include <assert.h>
                   6723: /* Override any gcc2 internal prototype to avoid an error.  */
                   6724: /* We use char because int might match the return type of a gcc2
                   6725:     builtin and then its argument prototype would still apply.  */
                   6726: char syslog();
                   6727: 
                   6728: int main() {
                   6729: 
                   6730: /* The GNU C library defines this for functions which it implements
                   6731:     to always fail with ENOSYS.  Some functions are actually named
                   6732:     something starting with __ and the normal name is an alias.  */
                   6733: #if defined (__stub_syslog) || defined (__stub___syslog)
                   6734: choke me
                   6735: #else
                   6736: syslog();
                   6737: #endif
                   6738: 
                   6739: ; return 0; }
                   6740: EOF
1.106     tgl      6741: if { (eval echo configure:6742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   6742:   rm -rf conftest*
                   6743:   eval "ac_cv_func_syslog=yes"
                   6744: else
                   6745:   echo "configure: failed program was:" >&5
                   6746:   cat conftest.$ac_ext >&5
                   6747:   rm -rf conftest*
                   6748:   eval "ac_cv_func_syslog=no"
                   6749: fi
                   6750: rm -f conftest*
                   6751: fi
                   6752: 
                   6753: if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
                   6754:   echo "$ac_t""yes" 1>&6
                   6755:   cat >> confdefs.h <<\EOF
                   6756: #define ENABLE_SYSLOG 1
                   6757: EOF
                   6758: 
                   6759: else
                   6760:   echo "$ac_t""no" 1>&6
                   6761: { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
                   6762: fi
                   6763: 
1.43      petere   6764:       ;;
                   6765:     no)
                   6766:       :
                   6767:       ;;
                   6768:     *)
                   6769:       enableval=$enable_syslog
                   6770:       { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
                   6771:       ;;
                   6772:   esac # $enable_syslog
                   6773: else
                   6774:   enable_syslog=no
1.1       petere   6775: 
                   6776: fi
                   6777: 
                   6778: 
1.82      petere   6779: echo $ac_n "checking for optreset""... $ac_c" 1>&6
1.106     tgl      6780: echo "configure:6781: checking for optreset" >&5
1.82      petere   6781: if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
                   6782:   echo $ac_n "(cached) $ac_c" 1>&6
                   6783: else
                   6784:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6785: #line 6786 "configure"
1.82      petere   6786: #include "confdefs.h"
                   6787: #include <unistd.h>
                   6788: int main() {
                   6789: extern int optreset; optreset = 1;
                   6790: ; return 0; }
                   6791: EOF
1.106     tgl      6792: if { (eval echo configure:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.82      petere   6793:   rm -rf conftest*
                   6794:   pgac_cv_var_int_optreset=yes
                   6795: else
                   6796:   echo "configure: failed program was:" >&5
                   6797:   cat conftest.$ac_ext >&5
                   6798:   rm -rf conftest*
                   6799:   pgac_cv_var_int_optreset=no
                   6800: fi
                   6801: rm -f conftest*
                   6802: fi
                   6803: 
                   6804: echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
                   6805: if test x"$pgac_cv_var_int_optreset" = x"yes"; then
                   6806:   cat >> confdefs.h <<\EOF
                   6807: #define HAVE_INT_OPTRESET 1
                   6808: EOF
                   6809: 
                   6810: fi
                   6811: 
1.1       petere   6812: 
1.5       petere   6813: echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
1.106     tgl      6814: echo "configure:6815: checking whether long int is 64 bits" >&5
1.5       petere   6815: if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
                   6816:   echo $ac_n "(cached) $ac_c" 1>&6
                   6817: else
                   6818:   if test "$cross_compiling" = yes; then
                   6819:   pgac_cv_type_long_int_64=no
                   6820: echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
1.1       petere   6821: else
                   6822:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6823: #line 6824 "configure"
1.1       petere   6824: #include "confdefs.h"
                   6825: typedef long int int64;
                   6826: 
1.5       petere   6827: /*
                   6828:  * These are globals to discourage the compiler from folding all the
1.1       petere   6829:  * arithmetic tests down to compile-time constants.
                   6830:  */
                   6831: int64 a = 20000001;
                   6832: int64 b = 40000005;
                   6833: 
                   6834: int does_int64_work()
                   6835: {
                   6836:   int64 c,d;
                   6837: 
                   6838:   if (sizeof(int64) != 8)
1.5       petere   6839:     return 0;                  /* definitely not the right size */
1.1       petere   6840: 
                   6841:   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
                   6842:   c = a * b;
                   6843:   d = (c + b) / b;
                   6844:   if (d != a+1)
                   6845:     return 0;
                   6846:   return 1;
                   6847: }
                   6848: main() {
                   6849:   exit(! does_int64_work());
                   6850: }
                   6851: EOF
1.106     tgl      6852: if { (eval echo configure:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   6853: then
1.5       petere   6854:   pgac_cv_type_long_int_64=yes
1.1       petere   6855: else
                   6856:   echo "configure: failed program was:" >&5
                   6857:   cat conftest.$ac_ext >&5
                   6858:   rm -fr conftest*
1.5       petere   6859:   pgac_cv_type_long_int_64=no
1.1       petere   6860: fi
                   6861: rm -fr conftest*
                   6862: fi
                   6863: 
1.5       petere   6864: fi
                   6865: 
                   6866: echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
                   6867: 
                   6868: HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
                   6869: if test x"$pgac_cv_type_long_int_64" = xyes ; then
                   6870:   cat >> confdefs.h <<\EOF
                   6871: #define HAVE_LONG_INT_64 
                   6872: EOF
                   6873: 
                   6874: fi
                   6875: 
1.1       petere   6876: 
1.5       petere   6877: if test x"$HAVE_LONG_INT_64" = x"no" ; then
                   6878:   echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
1.106     tgl      6879: echo "configure:6880: checking whether long long int is 64 bits" >&5
1.5       petere   6880: if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
                   6881:   echo $ac_n "(cached) $ac_c" 1>&6
                   6882: else
                   6883:   if test "$cross_compiling" = yes; then
                   6884:   pgac_cv_type_long_long_int_64=no
                   6885: echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
1.1       petere   6886: else
                   6887:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6888: #line 6889 "configure"
1.1       petere   6889: #include "confdefs.h"
                   6890: typedef long long int int64;
                   6891: 
1.5       petere   6892: /*
                   6893:  * These are globals to discourage the compiler from folding all the
1.1       petere   6894:  * arithmetic tests down to compile-time constants.
                   6895:  */
                   6896: int64 a = 20000001;
                   6897: int64 b = 40000005;
                   6898: 
                   6899: int does_int64_work()
                   6900: {
                   6901:   int64 c,d;
                   6902: 
                   6903:   if (sizeof(int64) != 8)
1.5       petere   6904:     return 0;                  /* definitely not the right size */
1.1       petere   6905: 
                   6906:   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
                   6907:   c = a * b;
                   6908:   d = (c + b) / b;
                   6909:   if (d != a+1)
                   6910:     return 0;
                   6911:   return 1;
                   6912: }
                   6913: main() {
                   6914:   exit(! does_int64_work());
                   6915: }
                   6916: EOF
1.106     tgl      6917: if { (eval echo configure:6918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   6918: then
1.5       petere   6919:   pgac_cv_type_long_long_int_64=yes
1.1       petere   6920: else
                   6921:   echo "configure: failed program was:" >&5
                   6922:   cat conftest.$ac_ext >&5
                   6923:   rm -fr conftest*
1.5       petere   6924:   pgac_cv_type_long_long_int_64=no
1.1       petere   6925: fi
                   6926: rm -fr conftest*
                   6927: fi
                   6928: 
                   6929: fi
                   6930: 
1.5       petere   6931: echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
                   6932: 
                   6933: HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
                   6934: if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
                   6935:   cat >> confdefs.h <<\EOF
                   6936: #define HAVE_LONG_LONG_INT_64 
                   6937: EOF
                   6938: 
                   6939: fi
                   6940: 
                   6941: fi
                   6942: 
                   6943: 
1.1       petere   6944: 
1.6       petere   6945: if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
1.1       petere   6946:   if [ x$SNPRINTF = x ] ; then
                   6947:     echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
1.106     tgl      6948: echo "configure:6949: checking whether snprintf handles 'long long int' as %lld" >&5
1.1       petere   6949:     if test "$cross_compiling" = yes; then
                   6950:    echo "$ac_t""assuming not on target machine" 1>&6
                   6951:        # Force usage of our own snprintf, since we cannot test foreign snprintf
                   6952:        SNPRINTF='snprintf.o'
                   6953:        INT64_FORMAT='"%lld"'
                   6954:   
                   6955: else
                   6956:   cat > conftest.$ac_ext <<EOF
1.106     tgl      6957: #line 6958 "configure"
1.1       petere   6958: #include "confdefs.h"
                   6959: #include <stdio.h>
                   6960: typedef long long int int64;
                   6961: #define INT64_FORMAT "%lld"
                   6962: 
                   6963: int64 a = 20000001;
                   6964: int64 b = 40000005;
                   6965: 
                   6966: int does_int64_snprintf_work()
                   6967: {
                   6968:   int64 c;
                   6969:   char buf[100];
                   6970: 
                   6971:   if (sizeof(int64) != 8)
                   6972:     return 0;                  /* doesn't look like the right size */
                   6973: 
                   6974:   c = a * b;
                   6975:   snprintf(buf, 100, INT64_FORMAT, c);
                   6976:   if (strcmp(buf, "800000140000005") != 0)
                   6977:     return 0;                  /* either multiply or snprintf is busted */
                   6978:   return 1;
                   6979: }
                   6980: main() {
                   6981:   exit(! does_int64_snprintf_work());
                   6982: }
                   6983: EOF
1.106     tgl      6984: if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   6985: then
                   6986:    echo "$ac_t""yes" 1>&6
                   6987:          INT64_FORMAT='"%lld"'
                   6988:        
                   6989: else
                   6990:   echo "configure: failed program was:" >&5
                   6991:   cat conftest.$ac_ext >&5
                   6992:   rm -fr conftest*
                   6993:    echo "$ac_t""no" 1>&6
                   6994:     echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
1.106     tgl      6995: echo "configure:6996: checking whether snprintf handles 'long long int' as %qd" >&5 
1.1       petere   6996:     if test "$cross_compiling" = yes; then
                   6997:    echo "$ac_t""assuming not on target machine" 1>&6
                   6998:        # Force usage of our own snprintf, since we cannot test foreign snprintf
                   6999:        SNPRINTF='snprintf.o'
                   7000:        INT64_FORMAT='"%lld"'
                   7001:   
                   7002: else
                   7003:   cat > conftest.$ac_ext <<EOF
1.106     tgl      7004: #line 7005 "configure"
1.1       petere   7005: #include "confdefs.h"
                   7006: #include <stdio.h>
                   7007: typedef long long int int64;
                   7008: #define INT64_FORMAT "%qd"
                   7009:    
                   7010: int64 a = 20000001;
                   7011: int64 b = 40000005;
                   7012:    
                   7013: int does_int64_snprintf_work()
                   7014: {  
                   7015:   int64 c;
                   7016:   char buf[100];
                   7017: 
                   7018:   if (sizeof(int64) != 8)
                   7019:     return 0;     /* doesn't look like the right size */
                   7020: 
                   7021:   c = a * b;
                   7022:   snprintf(buf, 100, INT64_FORMAT, c);
                   7023:   if (strcmp(buf, "800000140000005") != 0)
                   7024:     return 0;     /* either multiply or snprintf is busted */
                   7025:   return 1;
                   7026: }
                   7027: main() {
                   7028:   exit(! does_int64_snprintf_work());
                   7029: }
                   7030: EOF
1.106     tgl      7031: if { (eval echo configure:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7032: then
                   7033:    echo "$ac_t""yes" 1>&6
                   7034:     INT64_FORMAT='"%qd"'
                   7035:   
                   7036: else
                   7037:   echo "configure: failed program was:" >&5
                   7038:   cat conftest.$ac_ext >&5
                   7039:   rm -fr conftest*
                   7040:    echo "$ac_t""no" 1>&6
                   7041:        # Force usage of our own snprintf, since system snprintf is broken
                   7042:        SNPRINTF='snprintf.o'
                   7043:        INT64_FORMAT='"%lld"'
                   7044:   
                   7045: fi
                   7046: rm -fr conftest*
                   7047: fi
                   7048:  
                   7049: fi
                   7050: rm -fr conftest*
                   7051: fi
                   7052: 
                   7053:   else
                   7054:     # here if we previously decided we needed to use our own snprintf
                   7055:     INT64_FORMAT='"%lld"'
                   7056:   fi
                   7057: else
                   7058:   # Here if we are not using 'long long int' at all
                   7059:   INT64_FORMAT='"%ld"'
                   7060: fi
                   7061: 
                   7062: cat >> confdefs.h <<EOF
                   7063: #define INT64_FORMAT $INT64_FORMAT
                   7064: EOF
                   7065: 
                   7066: 
                   7067: 
1.84      petere   7068: for ac_func in strtoll strtoq
                   7069: do
                   7070: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.106     tgl      7071: echo "configure:7072: checking for $ac_func" >&5
1.84      petere   7072: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   7073:   echo $ac_n "(cached) $ac_c" 1>&6
                   7074: else
                   7075:   cat > conftest.$ac_ext <<EOF
1.106     tgl      7076: #line 7077 "configure"
1.84      petere   7077: #include "confdefs.h"
                   7078: /* System header to define __stub macros and hopefully few prototypes,
                   7079:     which can conflict with char $ac_func(); below.  */
                   7080: #include <assert.h>
                   7081: /* Override any gcc2 internal prototype to avoid an error.  */
                   7082: /* We use char because int might match the return type of a gcc2
                   7083:     builtin and then its argument prototype would still apply.  */
                   7084: char $ac_func();
                   7085: 
                   7086: int main() {
                   7087: 
                   7088: /* The GNU C library defines this for functions which it implements
                   7089:     to always fail with ENOSYS.  Some functions are actually named
                   7090:     something starting with __ and the normal name is an alias.  */
                   7091: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   7092: choke me
                   7093: #else
                   7094: $ac_func();
                   7095: #endif
                   7096: 
                   7097: ; return 0; }
                   7098: EOF
1.106     tgl      7099: if { (eval echo configure:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.84      petere   7100:   rm -rf conftest*
                   7101:   eval "ac_cv_func_$ac_func=yes"
                   7102: else
                   7103:   echo "configure: failed program was:" >&5
                   7104:   cat conftest.$ac_ext >&5
                   7105:   rm -rf conftest*
                   7106:   eval "ac_cv_func_$ac_func=no"
                   7107: fi
                   7108: rm -f conftest*
                   7109: fi
                   7110: 
                   7111: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   7112:   echo "$ac_t""yes" 1>&6
                   7113:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   7114:   cat >> confdefs.h <<EOF
                   7115: #define $ac_tr_func 1
                   7116: EOF
                   7117:  break
                   7118: else
                   7119:   echo "$ac_t""no" 1>&6
                   7120: fi
                   7121: done
                   7122: 
                   7123: for ac_func in strtoull strtouq
                   7124: do
                   7125: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.106     tgl      7126: echo "configure:7127: checking for $ac_func" >&5
1.84      petere   7127: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
                   7128:   echo $ac_n "(cached) $ac_c" 1>&6
                   7129: else
                   7130:   cat > conftest.$ac_ext <<EOF
1.106     tgl      7131: #line 7132 "configure"
1.84      petere   7132: #include "confdefs.h"
                   7133: /* System header to define __stub macros and hopefully few prototypes,
                   7134:     which can conflict with char $ac_func(); below.  */
                   7135: #include <assert.h>
                   7136: /* Override any gcc2 internal prototype to avoid an error.  */
                   7137: /* We use char because int might match the return type of a gcc2
                   7138:     builtin and then its argument prototype would still apply.  */
                   7139: char $ac_func();
                   7140: 
                   7141: int main() {
                   7142: 
                   7143: /* The GNU C library defines this for functions which it implements
                   7144:     to always fail with ENOSYS.  Some functions are actually named
                   7145:     something starting with __ and the normal name is an alias.  */
                   7146: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
                   7147: choke me
                   7148: #else
                   7149: $ac_func();
                   7150: #endif
                   7151: 
                   7152: ; return 0; }
                   7153: EOF
1.106     tgl      7154: if { (eval echo configure:7155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.84      petere   7155:   rm -rf conftest*
                   7156:   eval "ac_cv_func_$ac_func=yes"
                   7157: else
                   7158:   echo "configure: failed program was:" >&5
                   7159:   cat conftest.$ac_ext >&5
                   7160:   rm -rf conftest*
                   7161:   eval "ac_cv_func_$ac_func=no"
                   7162: fi
                   7163: rm -f conftest*
                   7164: fi
                   7165: 
                   7166: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
                   7167:   echo "$ac_t""yes" 1>&6
                   7168:     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
                   7169:   cat >> confdefs.h <<EOF
                   7170: #define $ac_tr_func 1
                   7171: EOF
                   7172:  break
                   7173: else
                   7174:   echo "$ac_t""no" 1>&6
                   7175: fi
                   7176: done
                   7177: 
                   7178: 
                   7179: 
1.1       petere   7180: 
1.90      tgl      7181: echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
1.106     tgl      7182: echo "configure:7183: checking size of unsigned long" >&5
1.90      tgl      7183: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
                   7184:   echo $ac_n "(cached) $ac_c" 1>&6
                   7185: else
                   7186:   if test "$cross_compiling" = yes; then
                   7187:   ac_cv_sizeof_unsigned_long=4
                   7188: else
                   7189:   cat > conftest.$ac_ext <<EOF
1.106     tgl      7190: #line 7191 "configure"
1.90      tgl      7191: #include "confdefs.h"
                   7192: #include <stdio.h>
                   7193: main()
                   7194: {
                   7195:   FILE *f=fopen("conftestval", "w");
                   7196:   if (!f) exit(1);
                   7197:   fprintf(f, "%d\n", sizeof(unsigned long));
                   7198:   exit(0);
                   7199: }
                   7200: EOF
1.106     tgl      7201: if { (eval echo configure:7202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.90      tgl      7202: then
                   7203:   ac_cv_sizeof_unsigned_long=`cat conftestval`
                   7204: else
                   7205:   echo "configure: failed program was:" >&5
                   7206:   cat conftest.$ac_ext >&5
                   7207:   rm -fr conftest*
                   7208:   ac_cv_sizeof_unsigned_long=0
                   7209: fi
                   7210: rm -fr conftest*
                   7211: fi
                   7212: 
                   7213: fi
                   7214: echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
                   7215: cat >> confdefs.h <<EOF
                   7216: #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
                   7217: EOF
                   7218: 
                   7219: 
                   7220: cat >> confdefs.h <<EOF
                   7221: #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
                   7222: EOF
                   7223: 
                   7224: 
                   7225: 
1.1       petere   7226: echo $ac_n "checking alignment of short""... $ac_c" 1>&6
1.106     tgl      7227: echo "configure:7228: checking alignment of short" >&5
1.5       petere   7228: if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
1.1       petere   7229:   echo $ac_n "(cached) $ac_c" 1>&6
                   7230: else
                   7231:   if test "$cross_compiling" = yes; then
1.5       petere   7232:   pgac_cv_alignof_short='sizeof(short)'
1.1       petere   7233: else
                   7234:   cat > conftest.$ac_ext <<EOF
1.106     tgl      7235: #line 7236 "configure"
1.1       petere   7236: #include "confdefs.h"
                   7237: #include <stdio.h>
                   7238: struct { char filler; short field; } mystruct;
                   7239: main()
                   7240: {
                   7241:   FILE *f=fopen("conftestval", "w");
                   7242:   if (!f) exit(1);
                   7243:   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
                   7244:   exit(0);
                   7245: }
                   7246: EOF
1.106     tgl      7247: if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7248: then
1.5       petere   7249:   pgac_cv_alignof_short=`cat conftestval`
1.1       petere   7250: else
                   7251:   echo "configure: failed program was:" >&5
                   7252:   cat conftest.$ac_ext >&5
                   7253:   rm -fr conftest*
1.5       petere   7254:   pgac_cv_alignof_short='sizeof(short)'
1.1       petere   7255: fi
                   7256: rm -fr conftest*
                   7257: fi
                   7258: 
                   7259: fi
1.5       petere   7260: echo "$ac_t""$pgac_cv_alignof_short" 1>&6
1.1       petere   7261: cat >> confdefs.h <<EOF
1.5       petere   7262: #define ALIGNOF_SHORT $pgac_cv_alignof_short
1.1       petere   7263: EOF
                   7264: 
                   7265: 
                   7266: echo $ac_n "checking alignment of int""... $ac_c" 1>&6
1.106     tgl      7267: echo "configure:7268: checking alignment of int" >&5
1.5       petere   7268: if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
1.1       petere   7269:   echo $ac_n "(cached) $ac_c" 1>&6
                   7270: else
                   7271:   if test "$cross_compiling" = yes; then
1.5       petere   7272:   pgac_cv_alignof_int='sizeof(int)'
1.1       petere   7273: else
                   7274:   cat > conftest.$ac_ext <<EOF
1.106     tgl      7275: #line 7276 "configure"
1.1       petere   7276: #include "confdefs.h"
                   7277: #include <stdio.h>
                   7278: struct { char filler; int field; } mystruct;
                   7279: main()
                   7280: {
                   7281:   FILE *f=fopen("conftestval", "w");
                   7282:   if (!f) exit(1);
                   7283:   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
                   7284:   exit(0);
                   7285: }
                   7286: EOF
1.106     tgl      7287: if { (eval echo configure:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7288: then
1.5       petere   7289:   pgac_cv_alignof_int=`cat conftestval`
1.1       petere   7290: else
                   7291:   echo "configure: failed program was:" >&5
                   7292:   cat conftest.$ac_ext >&5
                   7293:   rm -fr conftest*
1.5       petere   7294:   pgac_cv_alignof_int='sizeof(int)'
1.1       petere   7295: fi
                   7296: rm -fr conftest*
                   7297: fi
                   7298: 
                   7299: fi
1.5       petere   7300: echo "$ac_t""$pgac_cv_alignof_int" 1>&6
1.1       petere   7301: cat >> confdefs.h <<EOF
1.5       petere   7302: #define ALIGNOF_INT $pgac_cv_alignof_int
1.1       petere   7303: EOF
                   7304: 
                   7305: 
                   7306: echo $ac_n "checking alignment of long""... $ac_c" 1>&6
1.106     tgl      7307: echo "configure:7308: checking alignment of long" >&5
1.5       petere   7308: if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
1.1       petere   7309:   echo $ac_n "(cached) $ac_c" 1>&6
                   7310: else
                   7311:   if test "$cross_compiling" = yes; then
1.5       petere   7312:   pgac_cv_alignof_long='sizeof(long)'
1.1       petere   7313: else
                   7314:   cat > conftest.$ac_ext <<EOF
1.106     tgl      7315: #line 7316 "configure"
1.1       petere   7316: #include "confdefs.h"
                   7317: #include <stdio.h>
                   7318: struct { char filler; long field; } mystruct;
                   7319: main()
                   7320: {
                   7321:   FILE *f=fopen("conftestval", "w");
                   7322:   if (!f) exit(1);
                   7323:   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
                   7324:   exit(0);
                   7325: }
                   7326: EOF
1.106     tgl      7327: if { (eval echo configure:7328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7328: then
1.5       petere   7329:   pgac_cv_alignof_long=`cat conftestval`
1.1       petere   7330: else
                   7331:   echo "configure: failed program was:" >&5
                   7332:   cat conftest.$ac_ext >&5
                   7333:   rm -fr conftest*
1.5       petere   7334:   pgac_cv_alignof_long='sizeof(long)'
1.1       petere   7335: fi
                   7336: rm -fr conftest*
                   7337: fi
                   7338: 
                   7339: fi
1.5       petere   7340: echo "$ac_t""$pgac_cv_alignof_long" 1>&6
1.1       petere   7341: cat >> confdefs.h <<EOF
1.5       petere   7342: #define ALIGNOF_LONG $pgac_cv_alignof_long
1.1       petere   7343: EOF
                   7344: 
                   7345: 
1.6       petere   7346: if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
1.1       petere   7347:   echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
1.106     tgl      7348: echo "configure:7349: checking alignment of long long int" >&5
1.5       petere   7349: if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
1.1       petere   7350:   echo $ac_n "(cached) $ac_c" 1>&6
                   7351: else
                   7352:   if test "$cross_compiling" = yes; then
1.5       petere   7353:   pgac_cv_alignof_long_long_int='sizeof(long long int)'
1.1       petere   7354: else
                   7355:   cat > conftest.$ac_ext <<EOF
1.106     tgl      7356: #line 7357 "configure"
1.1       petere   7357: #include "confdefs.h"
                   7358: #include <stdio.h>
                   7359: struct { char filler; long long int field; } mystruct;
                   7360: main()
                   7361: {
                   7362:   FILE *f=fopen("conftestval", "w");
                   7363:   if (!f) exit(1);
                   7364:   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
                   7365:   exit(0);
                   7366: }
                   7367: EOF
1.106     tgl      7368: if { (eval echo configure:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7369: then
1.5       petere   7370:   pgac_cv_alignof_long_long_int=`cat conftestval`
1.1       petere   7371: else
                   7372:   echo "configure: failed program was:" >&5
                   7373:   cat conftest.$ac_ext >&5
                   7374:   rm -fr conftest*
1.5       petere   7375:   pgac_cv_alignof_long_long_int='sizeof(long long int)'
1.1       petere   7376: fi
                   7377: rm -fr conftest*
                   7378: fi
                   7379: 
                   7380: fi
1.5       petere   7381: echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
1.1       petere   7382: cat >> confdefs.h <<EOF
1.5       petere   7383: #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
1.1       petere   7384: EOF
                   7385: 
                   7386: 
                   7387: fi
                   7388: echo $ac_n "checking alignment of double""... $ac_c" 1>&6
1.106     tgl      7389: echo "configure:7390: checking alignment of double" >&5
1.5       petere   7390: if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
1.1       petere   7391:   echo $ac_n "(cached) $ac_c" 1>&6
                   7392: else
                   7393:   if test "$cross_compiling" = yes; then
1.5       petere   7394:   pgac_cv_alignof_double='sizeof(double)'
1.1       petere   7395: else
                   7396:   cat > conftest.$ac_ext <<EOF
1.106     tgl      7397: #line 7398 "configure"
1.1       petere   7398: #include "confdefs.h"
                   7399: #include <stdio.h>
                   7400: struct { char filler; double field; } mystruct;
                   7401: main()
                   7402: {
                   7403:   FILE *f=fopen("conftestval", "w");
                   7404:   if (!f) exit(1);
                   7405:   fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
                   7406:   exit(0);
                   7407: }
                   7408: EOF
1.106     tgl      7409: if { (eval echo configure:7410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1       petere   7410: then
1.5       petere   7411:   pgac_cv_alignof_double=`cat conftestval`
1.1       petere   7412: else
                   7413:   echo "configure: failed program was:" >&5
                   7414:   cat conftest.$ac_ext >&5
                   7415:   rm -fr conftest*
1.5       petere   7416:   pgac_cv_alignof_double='sizeof(double)'
1.1       petere   7417: fi
                   7418: rm -fr conftest*
                   7419: fi
                   7420: 
                   7421: fi
1.5       petere   7422: echo "$ac_t""$pgac_cv_alignof_double" 1>&6
1.1       petere   7423: cat >> confdefs.h <<EOF
1.5       petere   7424: #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
1.1       petere   7425: EOF
                   7426: 
                   7427: 
                   7428: 
                   7429: 
1.5       petere   7430: if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
                   7431:   MAX_ALIGNOF=$pgac_cv_alignof_long
                   7432:   if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
                   7433:     MAX_ALIGNOF=$pgac_cv_alignof_double
1.1       petere   7434:   fi
1.6       petere   7435:   if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
1.5       petere   7436:     MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
1.1       petere   7437:   fi
                   7438: else
1.5       petere   7439:     MAX_ALIGNOF="$pgac_cv_alignof_double"
1.1       petere   7440: fi
                   7441: cat >> confdefs.h <<EOF
                   7442: #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
                   7443: EOF
                   7444: 
                   7445: 
                   7446: echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
1.106     tgl      7447: echo "configure:7448: checking for POSIX signal interface" >&5
1.5       petere   7448: if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
                   7449:   echo $ac_n "(cached) $ac_c" 1>&6
                   7450: else
                   7451:   cat > conftest.$ac_ext <<EOF
1.106     tgl      7452: #line 7453 "configure"
1.1       petere   7453: #include "confdefs.h"
                   7454: #include <signal.h>
1.5       petere   7455: 
1.1       petere   7456: int main() {
                   7457: struct sigaction act, oact;
                   7458: sigemptyset(&act.sa_mask);
                   7459: act.sa_flags = SA_RESTART;
                   7460: sigaction(0, &act, &oact);
                   7461: ; return 0; }
                   7462: EOF
1.106     tgl      7463: if { (eval echo configure:7464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1       petere   7464:   rm -rf conftest*
1.5       petere   7465:   pgac_cv_func_posix_signals=yes
1.1       petere   7466: else
                   7467:   echo "configure: failed program was:" >&5
                   7468:   cat conftest.$ac_ext >&5
                   7469:   rm -rf conftest*
1.5       petere   7470:   pgac_cv_func_posix_signals=no
1.1       petere   7471: fi
                   7472: rm -f conftest*
1.5       petere   7473: fi
                   7474: 
                   7475: echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
                   7476: if test x"$pgac_cv_func_posix_signals" = xyes ; then
                   7477:   cat >> confdefs.h <<\EOF
                   7478: #define HAVE_POSIX_SIGNALS 
                   7479: EOF
                   7480: 
                   7481: fi
                   7482: HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
                   7483: 
1.1       petere   7484: 
                   7485: 
1.44      petere   7486: # Check for Tcl configuration script tclConfig.sh
                   7487: if test "$with_tcl" = yes; then
                   7488:     for ac_prog in tclsh tcl
                   7489: do
                   7490: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   7491: set dummy $ac_prog; ac_word=$2
1.1       petere   7492: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.106     tgl      7493: echo "configure:7494: checking for $ac_word" >&5
1.1       petere   7494: if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
                   7495:   echo $ac_n "(cached) $ac_c" 1>&6
                   7496: else
                   7497:   case "$TCLSH" in
                   7498:   /*)
                   7499:   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
                   7500:   ;;
                   7501:   ?:/*)                         
                   7502:   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
                   7503:   ;;
                   7504:   *)
                   7505:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   7506:   ac_dummy="$PATH"
                   7507:   for ac_dir in $ac_dummy; do 
                   7508:     test -z "$ac_dir" && ac_dir=.
                   7509:     if test -f $ac_dir/$ac_word; then
                   7510:       ac_cv_path_TCLSH="$ac_dir/$ac_word"
                   7511:       break
                   7512:     fi
                   7513:   done
                   7514:   IFS="$ac_save_ifs"
                   7515:   ;;
                   7516: esac
                   7517: fi
                   7518: TCLSH="$ac_cv_path_TCLSH"
                   7519: if test -n "$TCLSH"; then
                   7520:   echo "$ac_t""$TCLSH" 1>&6
                   7521: else
                   7522:   echo "$ac_t""no" 1>&6
                   7523: fi
                   7524: 
1.44      petere   7525: test -n "$TCLSH" && break
                   7526: done
                   7527: 
                   7528: echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
1.106     tgl      7529: echo "configure:7530: checking for tclConfig.sh" >&5
1.44      petere   7530: # Let user override test
                   7531: if test -z "$TCL_CONFIG_SH"; then
                   7532:     pgac_test_dirs="$with_tclconfig"
                   7533: 
                   7534:     set X $pgac_test_dirs; shift
                   7535:     if test $# -eq 0; then
                   7536:         test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
                   7537:         set X `echo 'puts $auto_path' | $TCLSH`; shift
1.1       petere   7538:     fi
                   7539: 
1.48      petere   7540:     for pgac_dir do
1.44      petere   7541:         if test -r "$pgac_dir/tclConfig.sh"; then
                   7542:             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
                   7543:             break
                   7544:         fi
                   7545:     done
1.1       petere   7546: fi
                   7547: 
1.44      petere   7548: if test -z "$TCL_CONFIG_SH"; then
                   7549:     echo "$ac_t""no" 1>&6
                   7550:     { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
1.1       petere   7551: else
1.44      petere   7552:     echo "$ac_t""$TCL_CONFIG_SH" 1>&6
1.1       petere   7553: fi
                   7554: 
                   7555: 
1.30      petere   7556: 
1.44      petere   7557: fi
1.1       petere   7558: 
1.44      petere   7559: # Check for Tk configuration script tkConfig.sh
                   7560: if test "$with_tk" = yes; then
                   7561:     echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
1.106     tgl      7562: echo "configure:7563: checking for tkConfig.sh" >&5
1.44      petere   7563: # Let user override test
                   7564: if test -z "$TK_CONFIG_SH"; then
                   7565:     pgac_test_dirs="$with_tkconfig $with_tclconfig"
1.1       petere   7566: 
1.44      petere   7567:     set X $pgac_test_dirs; shift
                   7568:     if test $# -eq 0; then
                   7569:         test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
                   7570:         set X `echo 'puts $auto_path' | $TCLSH`; shift
                   7571:     fi
1.1       petere   7572: 
1.48      petere   7573:     for pgac_dir do
1.44      petere   7574:         if test -r "$pgac_dir/tkConfig.sh"; then
                   7575:             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
                   7576:             break
                   7577:         fi
                   7578:     done
1.1       petere   7579: fi
                   7580: 
1.44      petere   7581: if test -z "$TK_CONFIG_SH"; then
                   7582:     echo "$ac_t""no" 1>&6
                   7583:     { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
1.1       petere   7584: else
1.44      petere   7585:     echo "$ac_t""$TK_CONFIG_SH" 1>&6
1.1       petere   7586: fi
                   7587: 
                   7588: 
1.44      petere   7589: 
1.1       petere   7590: fi
                   7591: 
                   7592: 
1.81      petere   7593: #
                   7594: # Check for DocBook and tools
                   7595: #
                   7596: for ac_prog in onsgmls nsgmls
                   7597: do
                   7598: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   7599: set dummy $ac_prog; ac_word=$2
                   7600: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.106     tgl      7601: echo "configure:7602: checking for $ac_word" >&5
1.81      petere   7602: if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
                   7603:   echo $ac_n "(cached) $ac_c" 1>&6
                   7604: else
                   7605:   if test -n "$NSGMLS"; then
                   7606:   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
                   7607: else
                   7608:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   7609:   ac_dummy="$PATH"
                   7610:   for ac_dir in $ac_dummy; do
                   7611:     test -z "$ac_dir" && ac_dir=.
                   7612:     if test -f $ac_dir/$ac_word; then
                   7613:       ac_cv_prog_NSGMLS="$ac_prog"
                   7614:       break
                   7615:     fi
                   7616:   done
                   7617:   IFS="$ac_save_ifs"
                   7618: fi
                   7619: fi
                   7620: NSGMLS="$ac_cv_prog_NSGMLS"
                   7621: if test -n "$NSGMLS"; then
                   7622:   echo "$ac_t""$NSGMLS" 1>&6
                   7623: else
                   7624:   echo "$ac_t""no" 1>&6
                   7625: fi
                   7626: 
                   7627: test -n "$NSGMLS" && break
                   7628: done
                   7629: 
                   7630: # If you don't have nsgmls you won't get very far, so save the cycles.
                   7631: if test -n "$NSGMLS"; then
                   7632:   for ac_prog in openjade jade
                   7633: do
                   7634: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   7635: set dummy $ac_prog; ac_word=$2
                   7636: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.106     tgl      7637: echo "configure:7638: checking for $ac_word" >&5
1.81      petere   7638: if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
                   7639:   echo $ac_n "(cached) $ac_c" 1>&6
                   7640: else
                   7641:   if test -n "$JADE"; then
                   7642:   ac_cv_prog_JADE="$JADE" # Let the user override the test.
                   7643: else
                   7644:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   7645:   ac_dummy="$PATH"
                   7646:   for ac_dir in $ac_dummy; do
                   7647:     test -z "$ac_dir" && ac_dir=.
                   7648:     if test -f $ac_dir/$ac_word; then
                   7649:       ac_cv_prog_JADE="$ac_prog"
                   7650:       break
                   7651:     fi
                   7652:   done
                   7653:   IFS="$ac_save_ifs"
                   7654: fi
                   7655: fi
                   7656: JADE="$ac_cv_prog_JADE"
                   7657: if test -n "$JADE"; then
                   7658:   echo "$ac_t""$JADE" 1>&6
                   7659: else
                   7660:   echo "$ac_t""no" 1>&6
                   7661: fi
                   7662: 
                   7663: test -n "$JADE" && break
                   7664: done
                   7665: 
                   7666:   
                   7667: echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
1.106     tgl      7668: echo "configure:7669: checking for DocBook V3.1" >&5
1.81      petere   7669: if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
                   7670:   echo $ac_n "(cached) $ac_c" 1>&6
                   7671: else
                   7672:   cat >conftest.sgml <<EOF
                   7673: <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
                   7674: <book>
                   7675:  <title>test</title>
                   7676:  <chapter>
                   7677:   <title>random</title>
                   7678:    <sect1>
                   7679:     <title>testsect</title>
                   7680:     <para>text</para>
                   7681:   </sect1>
                   7682:  </chapter>
                   7683: </book>
                   7684: EOF
                   7685: 
                   7686: ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
                   7687: if test $? -eq 0; then
                   7688:   pgac_cv_check_docbook=yes
                   7689: else
                   7690:   pgac_cv_check_docbook=no
                   7691: fi
                   7692: rm -f conftest.sgml
                   7693: fi
                   7694: 
                   7695: echo "$ac_t""$pgac_cv_check_docbook" 1>&6
                   7696: 
                   7697: have_docbook=$pgac_cv_check_docbook
                   7698: 
                   7699: 
                   7700:   echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
1.106     tgl      7701: echo "configure:7702: checking for DocBook stylesheets" >&5
1.81      petere   7702: if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
                   7703:   echo $ac_n "(cached) $ac_c" 1>&6
                   7704: else
                   7705:   if test -n "$DOCBOOKSTYLE"; then
                   7706:   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
                   7707: else
                   7708:   for pgac_prefix in /usr /usr/local /opt; do
                   7709:     for pgac_infix in share lib; do
                   7710:       for pgac_postfix in \
                   7711:         sgml/stylesheets/nwalsh-modular \
                   7712:         sgml/stylesheets/docbook \
                   7713:         sgml/docbook/dsssl/modular
                   7714:       do
                   7715:         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
                   7716:         if test -r "$pgac_candidate/html/docbook.dsl" \
                   7717:            && test -r "$pgac_candidate/print/docbook.dsl"
                   7718:         then
                   7719:           pgac_cv_path_stylesheets=$pgac_candidate
                   7720:           break 3
                   7721:         fi
                   7722:       done
                   7723:     done
                   7724:   done
                   7725: fi
                   7726: fi
                   7727: 
                   7728: DOCBOOKSTYLE=$pgac_cv_path_stylesheets
                   7729: 
                   7730: if test -n "$DOCBOOKSTYLE"; then
                   7731:   echo "$ac_t""$DOCBOOKSTYLE" 1>&6
                   7732: else
                   7733:   echo "$ac_t""no" 1>&6
                   7734: fi
                   7735:   for ac_prog in sgmlspl
                   7736: do
                   7737: # Extract the first word of "$ac_prog", so it can be a program name with args.
                   7738: set dummy $ac_prog; ac_word=$2
                   7739: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.106     tgl      7740: echo "configure:7741: checking for $ac_word" >&5
1.81      petere   7741: if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
                   7742:   echo $ac_n "(cached) $ac_c" 1>&6
                   7743: else
                   7744:   if test -n "$SGMLSPL"; then
                   7745:   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
                   7746: else
                   7747:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS=":"
                   7748:   ac_dummy="$PATH"
                   7749:   for ac_dir in $ac_dummy; do
                   7750:     test -z "$ac_dir" && ac_dir=.
                   7751:     if test -f $ac_dir/$ac_word; then
                   7752:       ac_cv_prog_SGMLSPL="$ac_prog"
                   7753:       break
                   7754:     fi
                   7755:   done
                   7756:   IFS="$ac_save_ifs"
                   7757: fi
                   7758: fi
                   7759: SGMLSPL="$ac_cv_prog_SGMLSPL"
                   7760: if test -n "$SGMLSPL"; then
                   7761:   echo "$ac_t""$SGMLSPL" 1>&6
                   7762: else
                   7763:   echo "$ac_t""no" 1>&6
                   7764: fi
                   7765: 
                   7766: test -n "$SGMLSPL" && break
                   7767: done
                   7768: 
                   7769: fi
                   7770: 
                   7771: 
1.44      petere   7772: # Finally ready to produce output files ...
1.1       petere   7773: 
1.63      petere   7774: if test x"$abs_top_srcdir" != x"$abs_top_builddir"; then
                   7775:   echo $ac_n "preparing build tree... $ac_c" 1>&6
                   7776:   /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "$abs_top_builddir" \
                   7777:     || { echo "configure: error: failed" 1>&2; exit 1; }
                   7778:   echo "$ac_t""done" 1>&6
                   7779: fi
                   7780: 
1.44      petere   7781: trap '' 1 2 15
                   7782: cat > confcache <<\EOF
                   7783: # This file is a shell script that caches the results of configure
                   7784: # tests run on this system so they can be shared between configure
                   7785: # scripts and configure runs.  It is not useful on other systems.
                   7786: # If it contains results you don't want to keep, you may remove or edit it.
                   7787: #
                   7788: # By default, configure uses ./config.cache as the cache file,
                   7789: # creating it if it does not exist already.  You can give configure
                   7790: # the --cache-file=FILE option to use a different cache file; that is
                   7791: # what configure does when it calls configure scripts in
                   7792: # subdirectories, so they share the cache.
                   7793: # Giving --cache-file=/dev/null disables caching, for debugging configure.
                   7794: # config.status only pays attention to the cache file if you give it the
                   7795: # --recheck option to rerun configure.
                   7796: #
1.1       petere   7797: EOF
1.44      petere   7798: # The following way of writing the cache mishandles newlines in values,
                   7799: # but we know of no workaround that is simple, portable, and efficient.
                   7800: # So, don't put newlines in cache variables' values.
                   7801: # Ultrix sh set writes to stderr and can't be redirected directly,
                   7802: # and sets the high bit in the cache file unless we assign to the vars.
                   7803: (set) 2>&1 |
                   7804:   case `(ac_space=' '; set | grep ac_space) 2>&1` in
                   7805:   *ac_space=\ *)
                   7806:     # `set' does not quote correctly, so add quotes (double-quote substitution
                   7807:     # turns \\\\ into \\, and sed turns \\ into \).
                   7808:     sed -n \
                   7809:       -e "s/'/'\\\\''/g" \
                   7810:       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
                   7811:     ;;
                   7812:   *)
                   7813:     # `set' quotes correctly as required by POSIX, so do not add quotes.
                   7814:     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
                   7815:     ;;
                   7816:   esac >> confcache
                   7817: if cmp -s $cache_file confcache; then
                   7818:   :
1.1       petere   7819: else
1.44      petere   7820:   if test -w $cache_file; then
                   7821:     echo "updating cache $cache_file"
                   7822:     cat confcache > $cache_file
                   7823:   else
                   7824:     echo "not updating unwritable cache $cache_file"
                   7825:   fi
1.1       petere   7826: fi
1.44      petere   7827: rm -f confcache
                   7828: 
                   7829: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1.1       petere   7830: 
1.44      petere   7831: test "x$prefix" = xNONE && prefix=$ac_default_prefix
                   7832: # Let make expand exec_prefix.
                   7833: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1       petere   7834: 
1.44      petere   7835: # Any assignment to VPATH causes Sun make to only execute
                   7836: # the first set of double-colon rules, so remove it if not needed.
                   7837: # If there is a colon in the path, we need to keep it.
                   7838: if test "x$srcdir" = x.; then
                   7839:   ac_vpsub='/^[        ]*VPATH[        ]*=[^:]*$/d'
1.1       petere   7840: fi
                   7841: 
1.44      petere   7842: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1.1       petere   7843: 
1.44      petere   7844: DEFS=-DHAVE_CONFIG_H
1.1       petere   7845: 
1.44      petere   7846: # Without the "./", some shells look in PATH for config.status.
                   7847: : ${CONFIG_STATUS=./config.status}
1.1       petere   7848: 
1.44      petere   7849: echo creating $CONFIG_STATUS
                   7850: rm -f $CONFIG_STATUS
                   7851: cat > $CONFIG_STATUS <<EOF
1.1       petere   7852: #! /bin/sh
                   7853: # Generated automatically by configure.
                   7854: # Run this file to recreate the current configuration.
                   7855: # This directory was configured as follows,
                   7856: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
                   7857: #
                   7858: # $0 $ac_configure_args
                   7859: #
                   7860: # Compiler output produced by configure, useful for debugging
                   7861: # configure, is in ./config.log if it exists.
                   7862: 
                   7863: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
                   7864: for ac_option
                   7865: do
                   7866:   case "\$ac_option" in
                   7867:   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
                   7868:     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
                   7869:     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
                   7870:   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
                   7871:     echo "$CONFIG_STATUS generated by autoconf version 2.13"
                   7872:     exit 0 ;;
                   7873:   -help | --help | --hel | --he | --h)
                   7874:     echo "\$ac_cs_usage"; exit 0 ;;
                   7875:   *) echo "\$ac_cs_usage"; exit 1 ;;
                   7876:   esac
                   7877: done
                   7878: 
                   7879: ac_given_srcdir=$srcdir
                   7880: ac_given_INSTALL="$INSTALL"
                   7881: 
1.33      petere   7882: trap 'rm -fr `echo "
                   7883:   GNUmakefile
                   7884:   src/GNUmakefile
                   7885:   src/Makefile.global
                   7886:   src/backend/port/Makefile
1.1       petere   7887:  src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
                   7888: EOF
                   7889: cat >> $CONFIG_STATUS <<EOF
                   7890: 
                   7891: # Protect against being on the right side of a sed subst in config.status.
                   7892: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
                   7893:  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
                   7894: $ac_vpsub
                   7895: $extrasub
                   7896: s%@SHELL@%$SHELL%g
                   7897: s%@CFLAGS@%$CFLAGS%g
                   7898: s%@CPPFLAGS@%$CPPFLAGS%g
                   7899: s%@CXXFLAGS@%$CXXFLAGS%g
                   7900: s%@FFLAGS@%$FFLAGS%g
                   7901: s%@DEFS@%$DEFS%g
                   7902: s%@LDFLAGS@%$LDFLAGS%g
                   7903: s%@LIBS@%$LIBS%g
                   7904: s%@exec_prefix@%$exec_prefix%g
                   7905: s%@prefix@%$prefix%g
                   7906: s%@program_transform_name@%$program_transform_name%g
                   7907: s%@bindir@%$bindir%g
                   7908: s%@sbindir@%$sbindir%g
                   7909: s%@libexecdir@%$libexecdir%g
                   7910: s%@datadir@%$datadir%g
                   7911: s%@sysconfdir@%$sysconfdir%g
                   7912: s%@sharedstatedir@%$sharedstatedir%g
                   7913: s%@localstatedir@%$localstatedir%g
                   7914: s%@libdir@%$libdir%g
                   7915: s%@includedir@%$includedir%g
                   7916: s%@oldincludedir@%$oldincludedir%g
1.32      petere   7917: s%@docdir@%$docdir%g
1.1       petere   7918: s%@mandir@%$mandir%g
1.24      petere   7919: s%@VERSION@%$VERSION%g
1.63      petere   7920: s%@abs_top_srcdir@%$abs_top_srcdir%g
                   7921: s%@abs_top_builddir@%$abs_top_builddir%g
1.1       petere   7922: s%@host@%$host%g
                   7923: s%@host_alias@%$host_alias%g
                   7924: s%@host_cpu@%$host_cpu%g
                   7925: s%@host_vendor@%$host_vendor%g
                   7926: s%@host_os@%$host_os%g
1.30      petere   7927: s%@PORTNAME@%$PORTNAME%g
1.1       petere   7928: s%@TAS@%$TAS%g
1.29      petere   7929: s%@MULTIBYTE@%$MULTIBYTE%g
1.104     tgl      7930: s%@default_port@%$default_port%g
1.67      petere   7931: s%@enable_shared@%$enable_shared%g
1.73      petere   7932: s%@enable_rpath@%$enable_rpath%g
1.1       petere   7933: s%@CC@%$CC%g
1.45      petere   7934: s%@EXEEXT@%$EXEEXT%g
1.1       petere   7935: s%@CPP@%$CPP%g
1.5       petere   7936: s%@GCC@%$GCC%g
1.31      petere   7937: s%@autodepend@%$autodepend%g
1.30      petere   7938: s%@INCLUDES@%$INCLUDES%g
1.44      petere   7939: s%@with_tcl@%$with_tcl%g
                   7940: s%@with_tk@%$with_tk%g
1.4       petere   7941: s%@with_perl@%$with_perl%g
                   7942: s%@PYTHON@%$PYTHON%g
                   7943: s%@python_version@%$python_version%g
                   7944: s%@python_prefix@%$python_prefix%g
                   7945: s%@python_execprefix@%$python_execprefix%g
                   7946: s%@python_configdir@%$python_configdir%g
                   7947: s%@python_moduledir@%$python_moduledir%g
                   7948: s%@python_extmakefile@%$python_extmakefile%g
                   7949: s%@with_python@%$with_python%g
1.12      petere   7950: s%@with_krb4@%$with_krb4%g
                   7951: s%@with_krb5@%$with_krb5%g
1.37      petere   7952: s%@krb_srvtab@%$krb_srvtab%g
1.28      petere   7953: s%@with_openssl@%$with_openssl%g
1.15      petere   7954: s%@enable_odbc@%$enable_odbc%g
                   7955: s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
1.1       petere   7956: s%@ELF_SYS@%$ELF_SYS%g
                   7957: s%@CXX@%$CXX%g
1.5       petere   7958: s%@CXXCPP@%$CXXCPP%g
1.63      petere   7959: s%@GXX@%$GXX%g
1.43      petere   7960: s%@with_CXX@%$with_CXX%g
1.1       petere   7961: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
                   7962: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
                   7963: s%@INSTALL_DATA@%$INSTALL_DATA%g
1.15      petere   7964: s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
1.2       petere   7965: s%@AWK@%$AWK%g
1.40      petere   7966: s%@FLEX@%$FLEX%g
                   7967: s%@FLEXFLAGS@%$FLEXFLAGS%g
1.1       petere   7968: s%@LN_S@%$LN_S%g
1.69      petere   7969: s%@LD@%$LD%g
                   7970: s%@with_gnu_ld@%$with_gnu_ld%g
1.83      petere   7971: s%@ld_R_works@%$ld_R_works%g
1.1       petere   7972: s%@RANLIB@%$RANLIB%g
1.60      petere   7973: s%@LORDER@%$LORDER%g
1.58      petere   7974: s%@TAR@%$TAR%g
1.1       petere   7975: s%@PERL@%$PERL%g
                   7976: s%@YACC@%$YACC%g
1.5       petere   7977: s%@YFLAGS@%$YFLAGS%g
1.44      petere   7978: s%@WISH@%$WISH%g
1.1       petere   7979: s%@SNPRINTF@%$SNPRINTF%g
                   7980: s%@ISINF@%$ISINF%g
                   7981: s%@GETRUSAGE@%$GETRUSAGE%g
                   7982: s%@SRANDOM@%$SRANDOM%g
                   7983: s%@GETHOSTNAME@%$GETHOSTNAME%g
                   7984: s%@MISSING_RANDOM@%$MISSING_RANDOM%g
                   7985: s%@INET_ATON@%$INET_ATON%g
                   7986: s%@STRERROR@%$STRERROR%g
                   7987: s%@STRDUP@%$STRDUP%g
                   7988: s%@STRTOL@%$STRTOL%g
                   7989: s%@STRTOUL@%$STRTOUL%g
                   7990: s%@STRCASECMP@%$STRCASECMP%g
                   7991: s%@HPUXMATHLIB@%$HPUXMATHLIB%g
                   7992: s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
                   7993: s%@TCLSH@%$TCLSH%g
                   7994: s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
                   7995: s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
1.81      petere   7996: s%@NSGMLS@%$NSGMLS%g
                   7997: s%@JADE@%$JADE%g
                   7998: s%@have_docbook@%$have_docbook%g
                   7999: s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
                   8000: s%@SGMLSPL@%$SGMLSPL%g
1.1       petere   8001: 
                   8002: CEOF
                   8003: EOF
                   8004: 
                   8005: cat >> $CONFIG_STATUS <<\EOF
                   8006: 
                   8007: # Split the substitutions into bite-sized pieces for seds with
                   8008: # small command number limits, like on Digital OSF/1 and HP-UX.
                   8009: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
                   8010: ac_file=1 # Number of current file.
                   8011: ac_beg=1 # First line for current file.
                   8012: ac_end=$ac_max_sed_cmds # Line after last line for current file.
                   8013: ac_more_lines=:
                   8014: ac_sed_cmds=""
                   8015: while $ac_more_lines; do
                   8016:   if test $ac_beg -gt 1; then
                   8017:     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
                   8018:   else
                   8019:     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
                   8020:   fi
                   8021:   if test ! -s conftest.s$ac_file; then
                   8022:     ac_more_lines=false
                   8023:     rm -f conftest.s$ac_file
                   8024:   else
                   8025:     if test -z "$ac_sed_cmds"; then
                   8026:       ac_sed_cmds="sed -f conftest.s$ac_file"
                   8027:     else
                   8028:       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
                   8029:     fi
                   8030:     ac_file=`expr $ac_file + 1`
                   8031:     ac_beg=$ac_end
                   8032:     ac_end=`expr $ac_end + $ac_max_sed_cmds`
                   8033:   fi
                   8034: done
                   8035: if test -z "$ac_sed_cmds"; then
                   8036:   ac_sed_cmds=cat
                   8037: fi
                   8038: EOF
                   8039: 
                   8040: cat >> $CONFIG_STATUS <<EOF
                   8041: 
                   8042: CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
1.33      petere   8043:   src/GNUmakefile
                   8044:   src/Makefile.global
                   8045:   src/backend/port/Makefile
1.1       petere   8046: "}
                   8047: EOF
                   8048: cat >> $CONFIG_STATUS <<\EOF
                   8049: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
                   8050:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   8051:   case "$ac_file" in
                   8052:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   8053:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   8054:   *) ac_file_in="${ac_file}.in" ;;
                   8055:   esac
                   8056: 
                   8057:   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
                   8058: 
                   8059:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   8060:   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   8061:   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   8062:     # The file is in a subdirectory.
                   8063:     test ! -d "$ac_dir" && mkdir "$ac_dir"
                   8064:     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
                   8065:     # A "../" for each directory in $ac_dir_suffix.
                   8066:     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
                   8067:   else
                   8068:     ac_dir_suffix= ac_dots=
                   8069:   fi
                   8070: 
                   8071:   case "$ac_given_srcdir" in
                   8072:   .)  srcdir=.
                   8073:       if test -z "$ac_dots"; then top_srcdir=.
                   8074:       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
                   8075:   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
                   8076:   *) # Relative path.
                   8077:     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
                   8078:     top_srcdir="$ac_dots$ac_given_srcdir" ;;
                   8079:   esac
                   8080: 
                   8081:   case "$ac_given_INSTALL" in
                   8082:   [/$]*) INSTALL="$ac_given_INSTALL" ;;
                   8083:   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
                   8084:   esac
                   8085: 
                   8086:   echo creating "$ac_file"
                   8087:   rm -f "$ac_file"
                   8088:   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
                   8089:   case "$ac_file" in
                   8090:   *Makefile*) ac_comsub="1i\\
                   8091: # $configure_input" ;;
                   8092:   *) ac_comsub= ;;
                   8093:   esac
                   8094: 
                   8095:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   8096:   sed -e "$ac_comsub
                   8097: s%@configure_input@%$configure_input%g
                   8098: s%@srcdir@%$srcdir%g
                   8099: s%@top_srcdir@%$top_srcdir%g
                   8100: s%@INSTALL@%$INSTALL%g
                   8101: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
                   8102: fi; done
                   8103: rm -f conftest.s*
                   8104: 
                   8105: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
                   8106: # NAME is the cpp macro being defined and VALUE is the value it is being given.
                   8107: #
                   8108: # ac_d sets the value in "#define NAME VALUE" lines.
                   8109: ac_dA='s%^\([  ]*\)#\([        ]*define[       ][      ]*\)'
                   8110: ac_dB='\([     ][      ]*\)[^  ]*%\1#\2'
                   8111: ac_dC='\3'
                   8112: ac_dD='%g'
                   8113: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
                   8114: ac_uA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   8115: ac_uB='\([     ]\)%\1#\2define\3'
                   8116: ac_uC=' '
                   8117: ac_uD='\4%g'
                   8118: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
                   8119: ac_eA='s%^\([  ]*\)#\([        ]*\)undef\([    ][      ]*\)'
                   8120: ac_eB='$%\1#\2define\3'
                   8121: ac_eC=' '
                   8122: ac_eD='%g'
                   8123: 
                   8124: if test "${CONFIG_HEADERS+set}" != set; then
                   8125: EOF
                   8126: cat >> $CONFIG_STATUS <<EOF
                   8127:   CONFIG_HEADERS="src/include/config.h"
                   8128: EOF
                   8129: cat >> $CONFIG_STATUS <<\EOF
                   8130: fi
                   8131: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
                   8132:   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
                   8133:   case "$ac_file" in
                   8134:   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
                   8135:        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
                   8136:   *) ac_file_in="${ac_file}.in" ;;
                   8137:   esac
                   8138: 
                   8139:   echo creating $ac_file
                   8140: 
                   8141:   rm -f conftest.frag conftest.in conftest.out
                   8142:   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
                   8143:   cat $ac_file_inputs > conftest.in
                   8144: 
                   8145: EOF
                   8146: 
                   8147: # Transform confdefs.h into a sed script conftest.vals that substitutes
                   8148: # the proper values into config.h.in to produce config.h.  And first:
                   8149: # Protect against being on the right side of a sed subst in config.status.
                   8150: # Protect against being in an unquoted here document in config.status.
                   8151: rm -f conftest.vals
                   8152: cat > conftest.hdr <<\EOF
                   8153: s/[\\&%]/\\&/g
                   8154: s%[\\$`]%\\&%g
                   8155: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
                   8156: s%ac_d%ac_u%gp
                   8157: s%ac_u%ac_e%gp
                   8158: EOF
                   8159: sed -n -f conftest.hdr confdefs.h > conftest.vals
                   8160: rm -f conftest.hdr
                   8161: 
                   8162: # This sed command replaces #undef with comments.  This is necessary, for
                   8163: # example, in the case of _POSIX_SOURCE, which is predefined and required
                   8164: # on some systems where configure will not decide to define it.
                   8165: cat >> conftest.vals <<\EOF
                   8166: s%^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
                   8167: EOF
                   8168: 
                   8169: # Break up conftest.vals because some shells have a limit on
                   8170: # the size of here documents, and old seds have small limits too.
                   8171: 
                   8172: rm -f conftest.tail
                   8173: while :
                   8174: do
                   8175:   ac_lines=`grep -c . conftest.vals`
                   8176:   # grep -c gives empty output for an empty file on some AIX systems.
                   8177:   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
                   8178:   # Write a limited-size here document to conftest.frag.
                   8179:   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
                   8180:   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
                   8181:   echo 'CEOF
                   8182:   sed -f conftest.frag conftest.in > conftest.out
                   8183:   rm -f conftest.in
                   8184:   mv conftest.out conftest.in
                   8185: ' >> $CONFIG_STATUS
                   8186:   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
                   8187:   rm -f conftest.vals
                   8188:   mv conftest.tail conftest.vals
                   8189: done
                   8190: rm -f conftest.vals
                   8191: 
                   8192: cat >> $CONFIG_STATUS <<\EOF
                   8193:   rm -f conftest.frag conftest.h
                   8194:   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
                   8195:   cat conftest.in >> conftest.h
                   8196:   rm -f conftest.in
                   8197:   if cmp -s $ac_file conftest.h 2>/dev/null; then
                   8198:     echo "$ac_file is unchanged"
                   8199:     rm -f conftest.h
                   8200:   else
                   8201:     # Remove last slash and all that follows it.  Not all systems have dirname.
                   8202:       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
                   8203:       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
                   8204:       # The file is in a subdirectory.
                   8205:       test ! -d "$ac_dir" && mkdir "$ac_dir"
                   8206:     fi
                   8207:     rm -f $ac_file
                   8208:     mv conftest.h $ac_file
                   8209:   fi
                   8210: fi; done
                   8211: 
                   8212: EOF
                   8213: 
                   8214: cat >> $CONFIG_STATUS <<EOF
1.30      petere   8215: ac_sources="src/backend/port/dynloader/${template}.c src/backend/port/dynloader/${template}.h src/include/port/${template}.h src/makefiles/Makefile.${template} src/backend/port/tas/${tas_file}"
1.15      petere   8216: ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
1.1       petere   8217: EOF
                   8218: 
                   8219: cat >> $CONFIG_STATUS <<\EOF
                   8220: srcdir=$ac_given_srcdir
                   8221: while test -n "$ac_sources"; do
                   8222:   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
                   8223:   set $ac_sources; ac_source=$1; shift; ac_sources=$*
                   8224: 
                   8225:   echo "linking $srcdir/$ac_source to $ac_dest"
                   8226: 
                   8227:   if test ! -r $srcdir/$ac_source; then
                   8228:     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
                   8229:   fi
                   8230:   rm -f $ac_dest
                   8231: 
                   8232:   # Make relative symlinks.
                   8233:   # Remove last slash and all that follows it.  Not all systems have dirname.
                   8234:   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
                   8235:   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
                   8236:     # The dest file is in a subdirectory.
                   8237:     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
                   8238:     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
                   8239:     # A "../" for each directory in $ac_dest_dir_suffix.
                   8240:     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
                   8241:   else
                   8242:     ac_dest_dir_suffix= ac_dots=
                   8243:   fi
                   8244: 
                   8245:   case "$srcdir" in
                   8246:   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
                   8247:   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
                   8248:   esac
                   8249: 
                   8250:   # Make a symlink if possible; otherwise try a hard link.
                   8251:   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
                   8252:     ln $srcdir/$ac_source $ac_dest; then :
                   8253:   else
                   8254:     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
                   8255:   fi
                   8256: done
                   8257: EOF
                   8258: cat >> $CONFIG_STATUS <<EOF
                   8259: 
                   8260: EOF
                   8261: cat >> $CONFIG_STATUS <<\EOF
1.91      tgl      8262: 
                   8263: # Update timestamp for config.h (see Makefile.global)
1.93      petere   8264: test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
1.1       petere   8265: 
                   8266: exit 0
                   8267: EOF
                   8268: chmod +x $CONFIG_STATUS
                   8269: rm -fr confdefs* $ac_clean_files
                   8270: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
                   8271: 

PostgreSQL CVSweb <[email protected]>