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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/pgsql
16 --with-includes=DIRS look for additional header files in DIRS"
18 --with-libraries=DIRS look for additional libraries in DIRS"
20 --with-libs=DIRS alternative spelling of --with-libraries"
22 --enable-locale enable locale support"
24 --enable-recode enable character set recode support"
26 --enable-multibyte enable multibyte character support"
28 --enable-unicode-conversion enable unicode conversion support"
30 --with-pgport=PORTNUM change default port number [5432]"
32 --with-maxbackends=N set default maximum number of connections [32]"
34 --disable-shared do not build shared libraries"
36 --disable-rpath do not embed shared library search path in executables"
38 --enable-debug build with debugging symbols (-g)"
40 --enable-depend turn on automatic dependency tracking"
42 --enable-cassert enable assertion checks (for debugging)"
44 --with-tcl build Tcl and Tk interfaces"
46 --without-tk do not build Tk interfaces if Tcl is enabled"
48 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
50 --with-tkconfig=DIR tkConfig.sh is in DIR"
52 --enable-pltcl-unknown build PL/Tcl unknown support (if Tcl is enabled)"
54 --with-perl build Perl interface and PL/Perl"
56 --with-python build Python interface module"
58 --with-java build JDBC interface and Java tools"
60 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
62 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
64 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]"
66 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
68 --enable-odbc build the ODBC driver package"
70 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
72 --with-CXX build C++ modules (libpq++)"
74 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
76 --enable-syslog enable logging to syslog"
78 # Initialize some variables set by options.
79 # The variables have the same names as the options, with
80 # dashes changed to underlines.
82 cache_file=./config.cache
91 program_transform_name=s,x,x,
99 bindir='${exec_prefix}/bin'
100 sbindir='${exec_prefix}/sbin'
101 libexecdir='${exec_prefix}/libexec'
102 datadir='${prefix}/share'
103 sysconfdir='${prefix}/etc'
104 sharedstatedir='${prefix}/com'
105 localstatedir='${prefix}/var'
106 libdir='${exec_prefix}/lib'
107 includedir='${prefix}/include'
108 oldincludedir='/usr/include'
109 docdir='${prefix}/doc'
110 mandir='${prefix}/man'
112 # Initialize some other variables.
115 SHELL=${CONFIG_SHELL-/bin/sh}
116 # Maximum number of lines to put in a shell here document.
123 # If the previous option needs an argument, assign it.
124 if test -n "$ac_prev"; then
125 eval "$ac_prev=\$ac_option"
131 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 # Accept the important Cygnus configure options, so we can diagnose typos.
139 -bindir | --bindir | --bindi | --bind | --bin | --bi)
141 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
142 bindir="$ac_optarg" ;;
144 -build | --build | --buil | --bui | --bu)
146 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
147 build="$ac_optarg" ;;
149 -cache-file | --cache-file | --cache-fil | --cache-fi \
150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
151 ac_prev=cache_file ;;
152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
154 cache_file="$ac_optarg" ;;
156 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
158 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
160 datadir="$ac_optarg" ;;
162 -disable-* | --disable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}=no" ;;
171 -enable-* | --enable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}='$ac_optarg'" ;;
184 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
185 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
186 | --exec | --exe | --ex)
187 ac_prev=exec_prefix ;;
188 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
189 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
190 | --exec=* | --exe=* | --ex=*)
191 exec_prefix="$ac_optarg" ;;
193 -gas | --gas | --ga | --g)
194 # Obsolete; use --with-gas.
197 -help | --help | --hel | --he)
198 # Omit some internal or obsolete options to make the list less imposing.
199 # This message is too long to be a string in the A/UX 3.1 sh.
201 Usage: configure [options] [host]
202 Options: [defaults in brackets after descriptions]
204 --cache-file=FILE cache test results in FILE
205 --help print this message
206 --no-create do not create output files
207 --quiet, --silent do not print \`checking...' messages
208 --version print the version of autoconf that created configure
209 Directory and file names:
210 --prefix=PREFIX install architecture-independent files in PREFIX
212 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
214 --bindir=DIR user executables in DIR [EPREFIX/bin]
215 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
216 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
217 --datadir=DIR read-only architecture-independent data in DIR
219 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
220 --sharedstatedir=DIR modifiable architecture-independent data in DIR
222 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
223 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
224 --includedir=DIR C header files in DIR [PREFIX/include]
225 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
226 --docdir=DIR doc documentation in DIR [PREFIX/doc]
227 --mandir=DIR man documentation in DIR [PREFIX/man]
228 --srcdir=DIR find the sources in DIR [configure dir or ..]
229 --program-prefix=PREFIX prepend PREFIX to installed program names
230 --program-suffix=SUFFIX append SUFFIX to installed program names
231 --program-transform-name=PROGRAM
232 run sed PROGRAM on installed program names
236 --build=BUILD configure for building on BUILD [BUILD=HOST]
237 --host=HOST configure for HOST [guessed]
238 --target=TARGET configure for TARGET [TARGET=HOST]
239 Features and packages:
240 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
241 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
242 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
243 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
244 --x-includes=DIR X include files are in DIR
245 --x-libraries=DIR X library files are in DIR
247 if test -n "$ac_help"; then
248 echo "--enable and --with options recognized:$ac_help"
252 -host | --host | --hos | --ho)
254 -host=* | --host=* | --hos=* | --ho=*)
257 -includedir | --includedir | --includedi | --included | --include \
258 | --includ | --inclu | --incl | --inc)
259 ac_prev=includedir ;;
260 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
261 | --includ=* | --inclu=* | --incl=* | --inc=*)
262 includedir="$ac_optarg" ;;
264 -docdir | --docdir | --infodi | --infod | --doc | --inf)
266 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
267 docdir="$ac_optarg" ;;
269 -libdir | --libdir | --libdi | --libd)
271 -libdir=* | --libdir=* | --libdi=* | --libd=*)
272 libdir="$ac_optarg" ;;
274 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
275 | --libexe | --libex | --libe)
276 ac_prev=libexecdir ;;
277 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
278 | --libexe=* | --libex=* | --libe=*)
279 libexecdir="$ac_optarg" ;;
281 -localstatedir | --localstatedir | --localstatedi | --localstated \
282 | --localstate | --localstat | --localsta | --localst \
283 | --locals | --local | --loca | --loc | --lo)
284 ac_prev=localstatedir ;;
285 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
286 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
287 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
288 localstatedir="$ac_optarg" ;;
290 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
292 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
293 mandir="$ac_optarg" ;;
296 # Obsolete; use --without-fp.
299 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
304 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
307 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
308 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
309 | --oldin | --oldi | --old | --ol | --o)
310 ac_prev=oldincludedir ;;
311 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
312 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
313 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
314 oldincludedir="$ac_optarg" ;;
316 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
318 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
319 prefix="$ac_optarg" ;;
321 -program-prefix | --program-prefix | --program-prefi | --program-pref \
322 | --program-pre | --program-pr | --program-p)
323 ac_prev=program_prefix ;;
324 -program-prefix=* | --program-prefix=* | --program-prefi=* \
325 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
326 program_prefix="$ac_optarg" ;;
328 -program-suffix | --program-suffix | --program-suffi | --program-suff \
329 | --program-suf | --program-su | --program-s)
330 ac_prev=program_suffix ;;
331 -program-suffix=* | --program-suffix=* | --program-suffi=* \
332 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
333 program_suffix="$ac_optarg" ;;
335 -program-transform-name | --program-transform-name \
336 | --program-transform-nam | --program-transform-na \
337 | --program-transform-n | --program-transform- \
338 | --program-transform | --program-transfor \
339 | --program-transfo | --program-transf \
340 | --program-trans | --program-tran \
341 | --progr-tra | --program-tr | --program-t)
342 ac_prev=program_transform_name ;;
343 -program-transform-name=* | --program-transform-name=* \
344 | --program-transform-nam=* | --program-transform-na=* \
345 | --program-transform-n=* | --program-transform-=* \
346 | --program-transform=* | --program-transfor=* \
347 | --program-transfo=* | --program-transf=* \
348 | --program-trans=* | --program-tran=* \
349 | --progr-tra=* | --program-tr=* | --program-t=*)
350 program_transform_name="$ac_optarg" ;;
352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
353 | -silent | --silent | --silen | --sile | --sil)
356 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
358 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
360 sbindir="$ac_optarg" ;;
362 -sharedstatedir | --sharedstatedir | --sharedstatedi \
363 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
364 | --sharedst | --shareds | --shared | --share | --shar \
366 ac_prev=sharedstatedir ;;
367 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
368 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
369 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
371 sharedstatedir="$ac_optarg" ;;
373 -site | --site | --sit)
375 -site=* | --site=* | --sit=*)
378 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
381 srcdir="$ac_optarg" ;;
383 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
384 | --syscon | --sysco | --sysc | --sys | --sy)
385 ac_prev=sysconfdir ;;
386 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
387 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
388 sysconfdir="$ac_optarg" ;;
390 -target | --target | --targe | --targ | --tar | --ta | --t)
392 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
393 target="$ac_optarg" ;;
395 -v | -verbose | --verbose | --verbos | --verbo | --verb)
398 -version | --version | --versio | --versi | --vers)
399 echo "configure generated by autoconf version 2.13"
403 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}='$ac_optarg'" ;;
415 -without-* | --without-*)
416 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}=no" ;;
425 # Obsolete; use --with-x.
428 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
429 | --x-incl | --x-inc | --x-in | --x-i)
430 ac_prev=x_includes ;;
431 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
432 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
433 x_includes="$ac_optarg" ;;
435 -x-libraries | --x-libraries | --x-librarie | --x-librari \
436 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
437 ac_prev=x_libraries ;;
438 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
439 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
440 x_libraries="$ac_optarg" ;;
442 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
447 echo "configure: warning: $ac_option: invalid host type" 1>&2
449 if test "x$nonopt" != xNONE; then
450 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
458 if test -n "$ac_prev"; then
459 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
462 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464 # File descriptor usage:
467 # 2 errors and warnings
468 # 3 some systems may open it to /dev/tty
469 # 4 used on the Kubota Titan
470 # 6 checking for... messages and results
471 # 5 compiler messages saved in config.log
472 if test "$silent" = yes; then
480 This file contains any messages produced by compilers while
481 running configure, to aid debugging if configure makes a mistake.
484 # Strip out --no-create and --no-recursion so they do not pile up.
485 # Also quote any args containing shell metacharacters.
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c) ;;
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
495 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
496 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
501 # Only set these to C if already set. These must not be set unconditionally
502 # because not all systems understand e.g. LANG=C (notably SCO).
503 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
504 # Non-C LC_CTYPE values break the ctype check.
505 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
506 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
507 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
508 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
511 rm -rf conftest* confdefs.h
512 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 # A filename unique to this package, relative to the directory that
516 # configure is in, which we can look for to find out if srcdir is correct.
517 ac_unique_file=src/backend/access/common/heaptuple.c
519 # Find the source files, if location was not specified.
520 if test -z "$srcdir"; then
521 ac_srcdir_defaulted=yes
522 # Try the directory containing this script, then its parent.
524 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
525 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527 if test ! -r $srcdir/$ac_unique_file; then
531 ac_srcdir_defaulted=no
533 if test ! -r $srcdir/$ac_unique_file; then
534 if test "$ac_srcdir_defaulted" = yes; then
535 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
540 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542 # Prefer explicitly selected file to automatically selected ones.
543 if test -z "$CONFIG_SITE"; then
544 if test "x$prefix" != xNONE; then
545 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
547 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 for ac_site_file in $CONFIG_SITE; do
551 if test -r "$ac_site_file"; then
552 echo "loading site script $ac_site_file"
557 if test -r "$cache_file"; then
558 echo "loading cache $cache_file"
561 echo "creating cache $cache_file"
566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
567 ac_cpp='$CPP $CPPFLAGS'
568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 cross_compiling=$ac_cv_prog_cc_cross
574 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
575 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
576 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
583 ac_n= ac_c='\c' ac_t=
595 for ac_dir in config $srcdir/config; do
596 if test -f $ac_dir/install-sh; then
598 ac_install_sh="$ac_aux_dir/install-sh -c"
600 elif test -f $ac_dir/install.sh; then
602 ac_install_sh="$ac_aux_dir/install.sh -c"
606 if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
609 ac_config_guess=$ac_aux_dir/config.guess
610 ac_config_sub=$ac_aux_dir/config.sub
611 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
616 cat >> confdefs.h <<EOF
617 #define PG_VERSION "$VERSION"
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; }
629 echo $ac_n "checking host system type""... $ac_c" 1>&6
630 echo "configure:631: checking host system type" >&5
633 case "$host_alias" in
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; }
640 *) host_alias=$nonopt ;;
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
655 echo $ac_n "checking which template to use""... $ac_c" 1>&6
656 echo "configure:657: checking which template to use" >&5
658 # Check whether --with-template was given
659 if test x"${with_template+set}" = xset; then
660 case $with_template in
662 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
665 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
668 withval=$with_template
671 list) echo; ls "$srcdir/src/template"; exit;;
672 *) if test -f "$srcdir/src/template/$with_template" ; then
675 { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
680 esac # $with_template
683 # --with-template not given
686 aix*) template=aix ;;
687 beos*) template=beos ;;
688 bsdi*) template=bsdi ;;
689 cygwin*) template=win ;;
690 darwin*) template=darwin ;;
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 ;;
702 solaris*) template=solaris ;;
703 sunos*) template=sunos4 ;;
706 univel) template=univel ;;
708 sysv4*) template=svr4 ;;
709 sysv5uw*) template=unixware ;;
710 ultrix*) template=ultrix4 ;;
713 if test x"$template" = x"" ; then
714 { echo "configure: error:
715 *******************************************************************
716 PostgreSQL has apparently not been ported to your platform yet.
717 To try a manual configuration, look into the src/template directory
718 for a similar platform and use the '--with-template=' option.
720 Please also contact <pgsql-ports@postgresql.org> to see about
721 rectifying this. Include the above 'checking host system type...'
723 *******************************************************************
730 echo "$ac_t""$template" 1>&6
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
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 ;;
747 *) need_tas=no; tas_file=dummy.s ;;
751 if test "$need_tas" = yes ; then
759 ## Command line options
764 # Add non-standard directories to the include path
766 # Check whether --with-includes was given
767 if test x"${with_includes+set}" = xset; then
768 case $with_includes in
770 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
773 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
775 esac # $with_includes
780 # Add non-standard directories to the library search path
782 # Check whether --with-libraries was given
783 if test x"${with_libraries+set}" = xset; then
784 case $with_libraries in
786 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
789 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
792 withval=$with_libraries
793 LIBRARY_DIRS=$withval
795 esac # $with_libraries
798 # Check whether --with-libs was given
799 if test x"${with_libs+set}" = xset; then
802 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
805 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
809 LIBRARY_DIRS=$withval
816 # Locale (--enable-locale)
818 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
819 echo "configure:820: checking whether to build with locale support" >&5
820 # Check whether --enable-locale was given
821 if test x"${enable_locale+set}" = xset; then
822 case $enable_locale in
824 cat >> confdefs.h <<\EOF
833 enableval=$enable_locale
834 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
836 esac # $enable_locale
841 echo "$ac_t""$enable_locale" 1>&6
845 # Character set recode (--enable-recode)
847 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
848 echo "configure:849: checking whether to build with recode support" >&5
849 # Check whether --enable-recode was given
850 if test x"${enable_recode+set}" = xset; then
851 case $enable_recode in
853 cat >> confdefs.h <<\EOF
862 enableval=$enable_recode
863 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
865 esac # $enable_recode
870 echo "$ac_t""$enable_recode" 1>&6
877 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
878 echo "configure:879: checking whether to build with multibyte character support" >&5
880 # Check whether --enable-multibyte was given
881 if test x"${enable_multibyte+set}" = xset; then
882 case $enable_multibyte in
890 enableval=$enable_multibyte
894 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
895 MULTIBYTE=$enableval;;
897 { echo "configure: error: argument to --enable-multibyte must be one of:
898 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
899 UNICODE, MULE_INTERNAL,
900 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
902 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
906 esac # $enable_multibyte
911 if test "$enable_multibyte" = yes; then
913 cat >> confdefs.h <<\EOF
917 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
920 echo "$ac_t""no" 1>&6
927 # Unicode conversion (--enable-unicode-conversion)
929 echo $ac_n "checking whether to build with Unicode conversion support""... $ac_c" 1>&6
930 echo "configure:931: checking whether to build with Unicode conversion support" >&5
931 # Check whether --enable-unicode-conversion was given
932 if test x"${enable_unicode_conversion+set}" = xset; then
933 case $enable_unicode_conversion in
935 if test -z "$MULTIBYTE"; then
936 { echo "configure: error: --enable-unicode-conversion only works with --enable-multibyte" 1>&2; exit 1; }
938 cat >> confdefs.h <<\EOF
939 #define UNICODE_CONVERSION 1
947 enableval=$enable_unicode_conversion
948 { echo "configure: error: no argument expected for --enable-unicode-conversion option" 1>&2; exit 1; }
950 esac # $enable_unicode_conversion
952 enable_unicode_conversion=no
955 echo "$ac_t""$enable_unicode_conversion" 1>&6
958 # Default port number (--with-pgport), default 5432
960 echo $ac_n "checking for default port number""... $ac_c" 1>&6
961 echo "configure:962: checking for default port number" >&5
962 # Check whether --with-pgport was given
963 if test x"${with_pgport+set}" = xset; then
966 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
969 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
973 default_port=$withval
979 echo "$ac_t""$default_port" 1>&6
980 # Need both of these because some places want an integer and some a string
981 cat >> confdefs.h <<EOF
982 #define DEF_PGPORT ${default_port}
985 cat >> confdefs.h <<EOF
986 #define DEF_PGPORT_STR "${default_port}"
992 # Maximum number of allowed connections (--with-maxbackends), default 32
994 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
995 echo "configure:996: checking for default soft limit on number of connections" >&5
996 # Check whether --with-maxbackends was given
997 if test x"${with_maxbackends+set}" = xset; then
998 case $with_maxbackends in
1000 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1003 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1005 esac # $with_maxbackends
1009 echo "$ac_t""$with_maxbackends" 1>&6
1010 cat >> confdefs.h <<EOF
1011 #define DEF_MAXBACKENDS $with_maxbackends
1017 # Option to disable shared libraries
1019 # Check whether --enable-shared was given
1020 if test x"${enable_shared+set}" = xset; then
1021 case $enable_shared in
1029 enableval=$enable_shared
1030 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1032 esac # $enable_shared
1040 # '-rpath'-like feature can be disabled
1042 # Check whether --enable-rpath was given
1043 if test x"${enable_rpath+set}" = xset; then
1044 case $enable_rpath in
1052 enableval=$enable_rpath
1053 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1055 esac # $enable_rpath
1064 # --enable-debug adds -g to compiler flags
1066 # Check whether --enable-debug was given
1067 if test x"${enable_debug+set}" = xset; then
1068 case $enable_debug in
1076 enableval=$enable_debug
1077 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1079 esac # $enable_debug
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
1093 # Check whether --with-CC was given
1094 if test x"${with_CC+set}" = xset; then
1097 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1100 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1109 # On AIX, default compiler to xlc.
1110 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1112 # Save CFLAGS from the environment
1113 has_environ_CFLAGS="${CFLAGS+yes}"
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
1119 echo "configure:1120: checking for $ac_word" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 if test -n "$CC"; then
1124 ac_cv_prog_CC="$CC" # Let the user override the test.
1126 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1128 for ac_dir in $ac_dummy; do
1129 test -z "$ac_dir" && ac_dir=.
1130 if test -f $ac_dir/$ac_word; then
1139 if test -n "$CC"; then
1140 echo "$ac_t""$CC" 1>&6
1142 echo "$ac_t""no" 1>&6
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
1149 echo "configure:1150: checking for $ac_word" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 if test -n "$CC"; then
1154 ac_cv_prog_CC="$CC" # Let the user override the test.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
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
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
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.
1180 set dummy "$ac_dir/$ac_word" "$@"
1188 if test -n "$CC"; then
1189 echo "$ac_t""$CC" 1>&6
1191 echo "$ac_t""no" 1>&6
1194 if test -z "$CC"; then
1195 case "`uname -s`" in
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
1200 echo "configure:1201: checking for $ac_word" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 if test -n "$CC"; then
1205 ac_cv_prog_CC="$CC" # Let the user override the test.
1207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1209 for ac_dir in $ac_dummy; do
1210 test -z "$ac_dir" && ac_dir=.
1211 if test -f $ac_dir/$ac_word; then
1220 if test -n "$CC"; then
1221 echo "$ac_t""$CC" 1>&6
1223 echo "$ac_t""no" 1>&6
1228 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1231 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1232 echo "configure:1233: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
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
1241 cat > conftest.$ac_ext << EOF
1243 #line 1244 "configure"
1244 #include "confdefs.h"
1248 if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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
1254 ac_cv_prog_cc_cross=yes
1257 echo "configure: failed program was:" >&5
1258 cat conftest.$ac_ext >&5
1259 ac_cv_prog_cc_works=no
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
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; }
1273 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1274 echo "configure:1275: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1275 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1276 cross_compiling=$ac_cv_prog_cc_cross
1278 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1279 echo "configure:1280: checking whether we are using GNU C" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 cat > conftest.c <<EOF
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
1295 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1297 if test $ac_cv_prog_gcc = yes; then
1303 ac_test_CFLAGS="${CFLAGS+set}"
1304 ac_save_CFLAGS="$CFLAGS"
1306 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1307 echo "configure:1308: checking whether ${CC-cc} accepts -g" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 echo 'void f(){}' > conftest.c
1312 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
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
1331 if test "$GCC" = yes; then
1339 . "$srcdir/src/template/$template" || exit
1341 if test "$has_environ_CFLAGS" = yes; then
1344 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
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
1350 echo "configure:1351: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
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
1359 cat > conftest.$ac_ext << EOF
1361 #line 1362 "configure"
1362 #include "confdefs.h"
1366 if { (eval echo configure:1367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
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
1372 ac_cv_prog_cc_cross=yes
1375 echo "configure: failed program was:" >&5
1376 cat conftest.$ac_ext >&5
1377 ac_cv_prog_cc_works=no
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
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; }
1391 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1392 echo "configure:1393: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1393 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1394 cross_compiling=$ac_cv_prog_cc_cross
1396 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1397 echo "configure:1398: checking for Cygwin environment" >&5
1398 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1408 #define __CYGWIN__ __CYGWIN32__
1413 if { (eval echo configure:1414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1426 echo "$ac_t""$ac_cv_cygwin" 1>&6
1428 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1429 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1430 echo "configure:1431: checking for mingw32 environment" >&5
1431 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&6
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1442 if { (eval echo configure:1443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1446 echo "configure: failed program was:" >&5
1447 cat conftest.$ac_ext >&5
1455 echo "$ac_t""$ac_cv_mingw32" 1>&6
1457 test "$ac_cv_mingw32" = yes && MINGW32=yes
1460 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1461 echo "configure:1462: checking for executable suffix" >&5
1462 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1469 echo 'int main () { return 0; }' > conftest.$ac_ext
1471 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1472 for file in conftest.*; do
1474 *.c | *.o | *.obj) ;;
1475 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1479 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1482 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1487 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1488 echo "$ac_t""${ac_cv_exeext}" 1>&6
1491 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1492 echo "configure:1493: checking how to run the C preprocessor" >&5
1493 # On Suns, sometimes $CPP names a directory.
1494 if test -n "$CPP" && test -d "$CPP"; then
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
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.
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
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513 { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515 if test -z "$ac_err"; then
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1522 CPP="${CC-cc} -E -traditional-cpp"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530 { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532 if test -z "$ac_err"; then
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1539 CPP="${CC-cc} -nologo -E"
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1547 { (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1549 if test -z "$ac_err"; then
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1563 ac_cv_prog_CPP="$CPP"
1565 CPP="$ac_cv_prog_CPP"
1567 ac_cv_prog_CPP="$CPP"
1569 echo "$ac_t""$CPP" 1>&6
1571 if test $ac_cv_prog_gcc = yes; then
1572 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1573 echo "configure:1574: checking whether ${CC-cc} needs -traditional" >&5
1574 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 ac_pattern="Autoconf.*'x'"
1578 cat > conftest.$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1585 egrep "$ac_pattern" >/dev/null 2>&1; then
1587 ac_cv_prog_gcc_traditional=yes
1590 ac_cv_prog_gcc_traditional=no
1595 if test $ac_cv_prog_gcc_traditional = no; then
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1603 egrep "$ac_pattern" >/dev/null 2>&1; then
1605 ac_cv_prog_gcc_traditional=yes
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"
1620 # Create compiler version string
1621 if test x"$GCC" = x"yes" ; then
1622 cc_string="GCC `${CC} --version`"
1626 cat >> confdefs.h <<EOF
1627 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1633 # Automatic dependency tracking
1635 # Check whether --enable-depend was given
1636 if test x"${enable_depend+set}" = xset; then
1637 case $enable_depend in
1645 enableval=$enable_depend
1646 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1648 esac # $enable_depend
1657 # Enable assert checks
1659 # Check whether --enable-cassert was given
1660 if test x"${enable_cassert+set}" = xset; then
1661 case $enable_cassert in
1663 cat >> confdefs.h <<\EOF
1664 #define USE_ASSERT_CHECKING 1
1672 enableval=$enable_cassert
1673 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1675 esac # $enable_cassert
1683 # Include directories
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"
1692 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1700 # Library directories
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
1707 LIBDIRS="$LIBDIRS -L$dir"
1709 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1718 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1719 echo "configure:1720: checking whether to build with Tcl" >&5
1720 # Check whether --with-tcl was given
1721 if test x"${with_tcl+set}" = xset; then
1731 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1738 echo "$ac_t""$with_tcl" 1>&6
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
1743 echo "configure:1744: checking whether to build with Tk" >&5
1744 if test "$with_tcl" = yes; then
1745 # Check whether --with-tk was given
1746 if test x"${with_tk+set}" = xset; then
1756 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1766 echo "$ac_t""$with_tk" 1>&6
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.
1773 # Check whether --with-tclconfig was given
1774 if test x"${with_tclconfig+set}" = xset; then
1775 case $with_tclconfig in
1777 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1780 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1782 esac # $with_tclconfig
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.
1788 # Check whether --with-tkconfig was given
1789 if test x"${with_tkconfig+set}" = xset; then
1790 case $with_tkconfig in
1792 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1795 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1797 esac # $with_tkconfig
1802 # If Tcl is enabled (above) then check for pltcl_unknown_support
1804 echo $ac_n "checking whether to build with PL/Tcl unknown support""... $ac_c" 1>&6
1805 echo "configure:1806: checking whether to build with PL/Tcl unknown support" >&5
1806 if test "$with_tcl" = yes; then
1807 # Check whether --enable-pltcl-unknown was given
1808 if test x"${enable_pltcl_unknown+set}" = xset; then
1809 case $enable_pltcl_unknown in
1811 cat >> confdefs.h <<\EOF
1812 #define ENABLE_PLTCL_UNKNOWN 1
1820 enableval=$enable_pltcl_unknown
1821 { echo "configure: error: no argument expected for --enable-pltcl-unknown option" 1>&2; exit 1; }
1823 esac # $enable_pltcl_unknown
1825 enable_pltcl_unknown=no
1829 enable_pltcl_unknown=no
1831 echo "$ac_t""$enable_pltcl_unknown" 1>&6
1836 # Optionally build Perl modules (Pg.pm and PL/Perl)
1838 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1839 echo "configure:1840: checking whether to build Perl modules" >&5
1840 # Check whether --with-perl was given
1841 if test x"${with_perl+set}" = xset; then
1851 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1858 echo "$ac_t""$with_perl" 1>&6
1863 # Optionally build Python interface module
1865 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1866 echo "configure:1867: checking whether to build Python modules" >&5
1867 # Check whether --with-python was given
1868 if test x"${with_python+set}" = xset; then
1869 case $with_python in
1871 echo "$ac_t""yes" 1>&6
1872 # Extract the first word of "python", so it can be a program name with args.
1873 set dummy python; ac_word=$2
1874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1875 echo "configure:1876: checking for $ac_word" >&5
1876 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test -n "$PYTHON"; then
1880 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1884 for ac_dir in $ac_dummy; do
1885 test -z "$ac_dir" && ac_dir=.
1886 if test -f $ac_dir/$ac_word; then
1887 ac_cv_prog_PYTHON="python"
1894 PYTHON="$ac_cv_prog_PYTHON"
1895 if test -n "$PYTHON"; then
1896 echo "$ac_t""$PYTHON" 1>&6
1898 echo "$ac_t""no" 1>&6
1902 if test "${PYTHON+set}" = set ; then
1903 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1904 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1905 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1906 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1907 python_moduledir="${python_prefix}/lib/python${python_version}"
1908 python_extmakefile="${python_configdir}/Makefile.pre.in"
1910 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1911 echo "configure:1912: checking for Python extension makefile" >&5
1912 if test -f "${python_extmakefile}" ; then
1913 echo "$ac_t""found" 1>&6
1915 echo "$ac_t""no" 1>&6
1916 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1917 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1927 { echo "configure: error: Python not found" 1>&2; exit 1; }
1931 echo "$ac_t""no" 1>&6
1934 withval=$with_python
1935 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1940 echo "$ac_t""no" 1>&6
1945 # Optionally build the Java/JDBC tools
1947 echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
1948 echo "configure:1949: checking whether to build Java/JDBC tools" >&5
1949 # Check whether --with-java was given
1950 if test x"${with_java+set}" = xset; then
1953 echo "$ac_t""yes" 1>&6
1954 for ac_prog in ant ant.sh ant.bat
1956 # Extract the first word of "$ac_prog", so it can be a program name with args.
1957 set dummy $ac_prog; ac_word=$2
1958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1959 echo "configure:1960: checking for $ac_word" >&5
1960 if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1965 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
1968 ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
1971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1973 for ac_dir in $ac_dummy; do
1974 test -z "$ac_dir" && ac_dir=.
1975 if test -f $ac_dir/$ac_word; then
1976 ac_cv_path_ANT="$ac_dir/$ac_word"
1984 ANT="$ac_cv_path_ANT"
1985 if test -n "$ANT"; then
1986 echo "$ac_t""$ANT" 1>&6
1988 echo "$ac_t""no" 1>&6
1991 test -n "$ANT" && break
1994 if test -z "$ANT"; then
1995 { echo "configure: error: Ant is required to build Java components" 1>&2; exit 1; }
1999 echo "$ac_t""no" 1>&6
2003 { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
2008 echo "$ac_t""no" 1>&6
2016 # Check whether --with-krb4 was given
2017 if test x"${with_krb4+set}" = xset; then
2020 krb4_prefix=/usr/athena
2028 krb4_prefix=$withval
2035 if test "$with_krb4" = yes; then
2037 echo "$ac_t""building with Kerberos 4 support" 1>&6
2038 cat >> confdefs.h <<\EOF
2043 if test -d "$krb4_prefix/include"; then
2044 INCLUDES="$INCLUDES -I$krb4_prefix/include"
2046 if test -d "$krb4_prefix/lib"; then
2047 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
2050 krb_srvtab="/etc/srvtab"
2061 # Check whether --with-krb5 was given
2062 if test x"${with_krb5+set}" = xset; then
2065 krb5_prefix=/usr/athena
2073 krb5_prefix=$withval
2080 if test "$with_krb5" = yes; then
2082 echo "$ac_t""building with Kerberos 5 support" 1>&6
2083 cat >> confdefs.h <<\EOF
2088 if test -d "$krb5_prefix/include"; then
2089 INCLUDES="$INCLUDES -I$krb5_prefix/include"
2091 if test -d "$krb5_prefix/lib"; then
2092 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
2095 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2103 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2104 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2105 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2112 # Kerberos configuration parameters
2114 # Check whether --with-krb-srvnam was given
2115 if test x"${with_krb_srvnam+set}" = xset; then
2116 case $with_krb_srvnam in
2118 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2121 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2123 esac # $with_krb_srvnam
2125 with_krb_srvnam="postgres"
2127 cat >> confdefs.h <<EOF
2128 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2137 # Check whether --with-openssl was given
2138 if test x"${with_openssl+set}" = xset; then
2139 case $with_openssl in
2141 openssl_prefix=/usr/local/ssl
2147 withval=$with_openssl
2149 openssl_prefix=$withval
2151 esac # $with_openssl
2156 if test "$with_openssl" = yes; then
2158 echo "$ac_t""building with OpenSSL support" 1>&6
2159 cat >> confdefs.h <<\EOF
2164 if test -d "${openssl_prefix}/include" ; then
2165 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2167 if test -d "${openssl_prefix}/lib" ; then
2168 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2179 # Optionally enable the building of the ODBC driver
2183 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2184 enable_odbc=$with_odbc
2187 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2188 echo "configure:2189: checking whether to build the ODBC driver" >&5
2189 # Check whether --enable-odbc was given
2190 if test x"${enable_odbc+set}" = xset; then
2191 case $enable_odbc in
2199 enableval=$enable_odbc
2200 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2207 echo "$ac_t""$enable_odbc" 1>&6
2211 # Allow for overriding the default location of the odbcinst.ini
2212 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2213 # Check whether --with-odbcinst was given
2214 if test x"${with_odbcinst+set}" = xset; then
2215 case $with_odbcinst in
2217 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2220 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2223 withval=$with_odbcinst
2224 odbcinst_ini_dir=$withval
2226 esac # $with_odbcinst
2228 odbcinst_ini_dir="\${sysconfdir}"
2234 # Assume system is ELF if it predefines __ELF__ as 1,
2235 # otherwise believe host_os based default.
2237 freebsd1*|freebsd2*) elf=yes;;
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2249 egrep "yes" >/dev/null 2>&1; then
2254 if test "X$elf" = "Xyes" ; then
2267 # Optionally build C++ code (i.e., libpq++)
2269 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2270 echo "configure:2271: checking whether to build C++ modules" >&5
2271 # Check whether --with-CXX was given
2272 if test x"${with_CXX+set}" = xset; then
2290 if test "$with_CXX" = yes; then
2292 echo "$ac_t""yes" 1>&6
2294 # If the user has specified CXXFLAGS in the environment, leave it
2295 # alone, else use a default.
2297 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2298 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2300 # Extract the first word of "$ac_prog", so it can be a program name with args.
2301 set dummy $ac_prog; ac_word=$2
2302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2303 echo "configure:2304: checking for $ac_word" >&5
2304 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 if test -n "$CXX"; then
2308 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2312 for ac_dir in $ac_dummy; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word; then
2315 ac_cv_prog_CXX="$ac_prog"
2322 CXX="$ac_cv_prog_CXX"
2323 if test -n "$CXX"; then
2324 echo "$ac_t""$CXX" 1>&6
2326 echo "$ac_t""no" 1>&6
2329 test -n "$CXX" && break
2331 test -n "$CXX" || CXX="gcc"
2334 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2335 echo "configure:2336: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2338 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2339 ac_cpp='$CXXCPP $CPPFLAGS'
2340 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2341 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2342 cross_compiling=$ac_cv_prog_cxx_cross
2344 cat > conftest.$ac_ext << EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2349 int main(){return(0);}
2351 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2352 ac_cv_prog_cxx_works=yes
2353 # If we can't run a trivial program, we are probably using a cross compiler.
2354 if (./conftest; exit) 2>/dev/null; then
2355 ac_cv_prog_cxx_cross=no
2357 ac_cv_prog_cxx_cross=yes
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2362 ac_cv_prog_cxx_works=no
2366 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2367 ac_cpp='$CPP $CPPFLAGS'
2368 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2369 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2370 cross_compiling=$ac_cv_prog_cc_cross
2372 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2373 if test $ac_cv_prog_cxx_works = no; then
2374 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2376 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2377 echo "configure:2378: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2378 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2379 cross_compiling=$ac_cv_prog_cxx_cross
2381 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2382 echo "configure:2383: checking whether we are using GNU C++" >&5
2383 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.C <<EOF
2391 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2398 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2400 if test $ac_cv_prog_gxx = yes; then
2406 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2407 ac_save_CXXFLAGS="$CXXFLAGS"
2409 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2410 echo "configure:2411: checking whether ${CXX-g++} accepts -g" >&5
2411 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 echo 'void f(){}' > conftest.cc
2415 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2416 ac_cv_prog_cxx_g=yes
2424 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2425 if test "$ac_test_CXXFLAGS" = set; then
2426 CXXFLAGS="$ac_save_CXXFLAGS"
2427 elif test $ac_cv_prog_cxx_g = yes; then
2428 if test "$GXX" = yes; then
2434 if test "$GXX" = yes; then
2441 if test "$has_environ_CXXFLAGS" != yes; then
2442 if test "$GXX" = yes; then
2446 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2447 unixware) CXXFLAGS='-O' ;;
2452 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2453 CXXFLAGS="$CXXFLAGS -g"
2455 echo "using CXXFLAGS=$CXXFLAGS"
2457 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2458 echo "configure:2459: checking how to run the C++ preprocessor" >&5
2459 if test -z "$CXXCPP"; then
2460 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2464 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2465 ac_cpp='$CXXCPP $CPPFLAGS'
2466 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2467 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2468 cross_compiling=$ac_cv_prog_cxx_cross
2469 CXXCPP="${CXX-g++} -E"
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2476 { (eval echo configure:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2478 if test -z "$ac_err"; then
2482 echo "configure: failed program was:" >&5
2483 cat conftest.$ac_ext >&5
2488 ac_cv_prog_CXXCPP="$CXXCPP"
2490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2494 cross_compiling=$ac_cv_prog_cc_cross
2497 CXXCPP="$ac_cv_prog_CXXCPP"
2498 echo "$ac_t""$CXXCPP" 1>&6
2503 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2504 ac_cpp='$CXXCPP $CPPFLAGS'
2505 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2506 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2507 cross_compiling=$ac_cv_prog_cxx_cross
2509 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2510 echo $ac_n "checking for string""... $ac_c" 1>&6
2511 echo "configure:2512: checking for string" >&5
2512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2521 { (eval echo configure:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2523 if test -z "$ac_err"; then
2525 eval "ac_cv_header_$ac_safe=yes"
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 eval "ac_cv_header_$ac_safe=no"
2535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2537 cat >> confdefs.h <<\EOF
2538 #define HAVE_CXX_STRING_HEADER 1
2542 echo "$ac_t""no" 1>&6
2546 if test x"$ac_cv_header_string" != xyes ; then
2547 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2548 echo "configure:2549: checking for class string in <string.h>" >&5
2549 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2563 if { (eval echo configure:2564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2565 pgac_cv_class_string_in_string_h=yes
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2570 pgac_cv_class_string_in_string_h=no
2575 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2577 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2578 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2586 cross_compiling=$ac_cv_prog_cc_cross
2589 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2590 echo "configure:2591: checking for namespace std in C++" >&5
2591 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2597 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2598 ac_cpp='$CXXCPP $CPPFLAGS'
2599 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2600 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2601 cross_compiling=$ac_cv_prog_cxx_cross
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2608 #ifdef HAVE_CXX_STRING_HEADER
2611 using namespace std;
2617 if { (eval echo configure:2618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2619 pgac_cv_cxx_namespace_std=yes
2621 echo "configure: failed program was:" >&5
2622 cat conftest.$ac_ext >&5
2624 pgac_cv_cxx_namespace_std=no
2628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2632 cross_compiling=$ac_cv_prog_cc_cross
2636 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2638 if test $pgac_cv_cxx_namespace_std = yes ; then
2639 cat >> confdefs.h <<\EOF
2640 #define HAVE_NAMESPACE_STD 1
2646 echo "$ac_t""no" 1>&6
2651 CPPFLAGS="$CPPFLAGS $INCLUDES"
2652 LDFLAGS="$LDFLAGS $LIBDIRS"
2654 echo "using CPPFLAGS=$CPPFLAGS"
2655 echo "using LDFLAGS=$LDFLAGS"
2658 for ac_prog in mawk gawk nawk awk
2660 # Extract the first word of "$ac_prog", so it can be a program name with args.
2661 set dummy $ac_prog; ac_word=$2
2662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2663 echo "configure:2664: checking for $ac_word" >&5
2664 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 if test -n "$AWK"; then
2668 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2670 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2672 for ac_dir in $ac_dummy; do
2673 test -z "$ac_dir" && ac_dir=.
2674 if test -f $ac_dir/$ac_word; then
2675 ac_cv_prog_AWK="$ac_prog"
2682 AWK="$ac_cv_prog_AWK"
2683 if test -n "$AWK"; then
2684 echo "$ac_t""$AWK" 1>&6
2686 echo "$ac_t""no" 1>&6
2689 test -n "$AWK" && break
2692 echo $ac_n "checking for flex""... $ac_c" 1>&6
2693 echo "configure:2694: checking for flex" >&5
2694 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2695 echo $ac_n "(cached) $ac_c" 1>&6
2697 # Let the user override the test
2698 if test -n "$FLEX"; then
2699 pgac_cv_path_flex=$FLEX
2703 for pgac_dir in $PATH; do
2704 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2707 for pgac_prog in flex lex; do
2708 pgac_candidate="$pgac_dir/$pgac_prog"
2709 if test -f "$pgac_candidate" \
2710 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2712 echo '%%' > conftest.l
2713 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2714 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2715 pgac_broken_flex=$pgac_candidate
2719 pgac_cv_path_flex=$pgac_candidate
2727 : ${pgac_cv_path_flex=no}
2732 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2733 if test x"$pgac_cv_path_flex" = x"no"; then
2734 if test -n "$pgac_broken_flex"; then
2735 echo "configure: warning:
2736 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2737 *** should get version 2.5.4 or later." 1>&2
2740 echo "configure: warning:
2741 *** Without Flex you will not be able to build PostgreSQL from CVS or
2742 *** change any of the scanner definition files. You can obtain Flex from
2743 *** a GNU mirror site. (If you are using the official distribution of
2744 *** PostgreSQL then you do not need to worry about this because the Flex
2745 *** output is pre-generated.)" 1>&2
2748 if test x"$pgac_cv_path_flex" = x"no"; then
2751 FLEX=$pgac_cv_path_flex
2757 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2758 echo "configure:2759: checking whether ln -s works" >&5
2759 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2760 echo $ac_n "(cached) $ac_c" 1>&6
2763 if ln -s X conftestdata 2>/dev/null
2766 ac_cv_prog_LN_S="ln -s"
2771 LN_S="$ac_cv_prog_LN_S"
2772 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2773 echo "$ac_t""yes" 1>&6
2775 echo "$ac_t""no" 1>&6
2778 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2779 if test "${with_gnu_ld+set}" = set; then
2780 withval="$with_gnu_ld"
2781 test "$withval" = no || with_gnu_ld=yes
2787 if test "$ac_cv_prog_gcc" = yes; then
2788 # Check if gcc -print-prog-name=ld gives a path.
2789 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2790 echo "configure:2791: checking for ld used by GCC" >&5
2793 # gcc leaves a trailing carriage return which upsets mingw
2794 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2796 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2799 # Accept absolute paths.
2800 [\\/]* | [A-Za-z]:[\\/]*)
2801 re_direlt='/[^/][^/]*/\.\./'
2802 # Canonicalize the path of ld
2803 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2804 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2805 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2807 test -z "$LD" && LD="$ac_prog"
2810 # If it fails, then pretend we aren't using GCC.
2814 # If it is relative, then search for the first ld in PATH.
2818 elif test "$with_gnu_ld" = yes; then
2819 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2820 echo "configure:2821: checking for GNU ld" >&5
2822 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2823 echo "configure:2824: checking for non-GNU ld" >&5
2825 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 if test -z "$LD"; then
2829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2830 for ac_dir in $PATH; do
2831 test -z "$ac_dir" && ac_dir=.
2832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2833 ac_cv_path_LD="$ac_dir/$ac_prog"
2834 # Check to see if the program is GNU ld. I'd rather use --version,
2835 # but apparently some GNU ld's only accept -v.
2836 # Break only if it was the GNU/non-GNU ld that we prefer.
2837 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2838 test "$with_gnu_ld" != no && break
2840 test "$with_gnu_ld" != yes && break
2846 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2851 if test -n "$LD"; then
2852 echo "$ac_t""$LD" 1>&6
2854 echo "$ac_t""no" 1>&6
2856 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2857 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2858 echo "configure:2859: checking if the linker ($LD) is GNU ld" >&5
2859 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2863 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2864 ac_cv_prog_gnu_ld=yes
2866 ac_cv_prog_gnu_ld=no
2870 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2871 with_gnu_ld=$ac_cv_prog_gnu_ld
2876 case $host_os in sysv5uw*)
2877 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2878 echo "configure:2879: checking whether ld -R works" >&5
2879 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2880 echo $ac_n "(cached) $ac_c" 1>&6
2883 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2892 if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2894 pgac_cv_prog_ld_R=yes
2896 echo "configure: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2899 pgac_cv_prog_ld_R=no
2902 LDFLAGS=$pgac_save_LDFLAGS
2906 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2907 ld_R_works=$pgac_cv_prog_ld_R
2910 # Extract the first word of "ranlib", so it can be a program name with args.
2911 set dummy ranlib; ac_word=$2
2912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2913 echo "configure:2914: checking for $ac_word" >&5
2914 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2917 if test -n "$RANLIB"; then
2918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2922 for ac_dir in $ac_dummy; do
2923 test -z "$ac_dir" && ac_dir=.
2924 if test -f $ac_dir/$ac_word; then
2925 ac_cv_prog_RANLIB="ranlib"
2930 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2933 RANLIB="$ac_cv_prog_RANLIB"
2934 if test -n "$RANLIB"; then
2935 echo "$ac_t""$RANLIB" 1>&6
2937 echo "$ac_t""no" 1>&6
2940 for ac_prog in lorder
2942 # Extract the first word of "$ac_prog", so it can be a program name with args.
2943 set dummy $ac_prog; ac_word=$2
2944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2945 echo "configure:2946: checking for $ac_word" >&5
2946 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 if test -n "$LORDER"; then
2950 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
2952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2954 for ac_dir in $ac_dummy; do
2955 test -z "$ac_dir" && ac_dir=.
2956 if test -f $ac_dir/$ac_word; then
2957 ac_cv_prog_LORDER="$ac_prog"
2964 LORDER="$ac_cv_prog_LORDER"
2965 if test -n "$LORDER"; then
2966 echo "$ac_t""$LORDER" 1>&6
2968 echo "$ac_t""no" 1>&6
2971 test -n "$LORDER" && break
2974 # Extract the first word of "tar", so it can be a program name with args.
2975 set dummy tar; ac_word=$2
2976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2977 echo "configure:2978: checking for $ac_word" >&5
2978 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2983 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2986 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
2989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2991 for ac_dir in $ac_dummy; do
2992 test -z "$ac_dir" && ac_dir=.
2993 if test -f $ac_dir/$ac_word; then
2994 ac_cv_path_TAR="$ac_dir/$ac_word"
3002 TAR="$ac_cv_path_TAR"
3003 if test -n "$TAR"; then
3004 echo "$ac_t""$TAR" 1>&6
3006 echo "$ac_t""no" 1>&6
3011 # Extract the first word of "$ac_prog", so it can be a program name with args.
3012 set dummy $ac_prog; ac_word=$2
3013 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3014 echo "configure:3015: checking for $ac_word" >&5
3015 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 if test -n "$PERL"; then
3019 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3023 for ac_dir in $ac_dummy; do
3024 test -z "$ac_dir" && ac_dir=.
3025 if test -f $ac_dir/$ac_word; then
3026 ac_cv_prog_PERL="$ac_prog"
3033 PERL="$ac_cv_prog_PERL"
3034 if test -n "$PERL"; then
3035 echo "$ac_t""$PERL" 1>&6
3037 echo "$ac_t""no" 1>&6
3040 test -n "$PERL" && break
3044 for ac_prog in 'bison -y'
3046 # Extract the first word of "$ac_prog", so it can be a program name with args.
3047 set dummy $ac_prog; ac_word=$2
3048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3049 echo "configure:3050: checking for $ac_word" >&5
3050 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3051 echo $ac_n "(cached) $ac_c" 1>&6
3053 if test -n "$YACC"; then
3054 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3058 for ac_dir in $ac_dummy; do
3059 test -z "$ac_dir" && ac_dir=.
3060 if test -f $ac_dir/$ac_word; then
3061 ac_cv_prog_YACC="$ac_prog"
3068 YACC="$ac_cv_prog_YACC"
3069 if test -n "$YACC"; then
3070 echo "$ac_t""$YACC" 1>&6
3072 echo "$ac_t""no" 1>&6
3075 test -n "$YACC" && break
3078 if test -z "$YACC"; then
3079 echo "configure: warning:
3080 *** Without Bison you will not be able to build PostgreSQL from CVS or
3081 *** change any of the parser definition files. You can obtain Bison from
3082 *** a GNU mirror site. (If you are using the official distribution of
3083 *** PostgreSQL then you do not need to worry about this because the Bison
3084 *** output is pre-generated.) To use a different yacc program (possible,
3085 *** but not recommended), set the environment variable YACC before running
3086 *** 'configure'." 1>&2
3090 if test "$with_tk" = yes; then
3091 # Extract the first word of "wish", so it can be a program name with args.
3092 set dummy wish; ac_word=$2
3093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3094 echo "configure:3095: checking for $ac_word" >&5
3095 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3100 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3103 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3106 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3108 for ac_dir in $ac_dummy; do
3109 test -z "$ac_dir" && ac_dir=.
3110 if test -f $ac_dir/$ac_word; then
3111 ac_cv_path_WISH="$ac_dir/$ac_word"
3119 WISH="$ac_cv_path_WISH"
3120 if test -n "$WISH"; then
3121 echo "$ac_t""$WISH" 1>&6
3123 echo "$ac_t""no" 1>&6
3126 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3134 echo $ac_n "checking for readline""... $ac_c" 1>&6
3135 echo "configure:3136: checking for readline" >&5
3137 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 pgac_cv_check_readline=no
3141 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3142 for pgac_rllib in -lreadline -ledit ; do
3143 pgac_save_LIBS=$LIBS
3144 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 /* Override any gcc2 internal prototype to avoid an error. */
3149 /* We use char because int might match the return type of a gcc2
3150 builtin and then its argument prototype would still apply. */
3157 if { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3159 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2
3161 echo "configure: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3165 LIBS=$pgac_save_LIBS
3168 LIBS=$pgac_save_LIBS
3172 if test "$pgac_cv_check_readline" != no ; then
3173 cat >> confdefs.h <<\EOF
3174 #define HAVE_LIBREADLINE 1
3177 LIBS="$pgac_cv_check_readline $LIBS"
3178 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3180 echo "$ac_t""no" 1>&6
3183 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3184 echo "configure:3185: checking for library containing using_history" >&5
3185 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 ac_func_search_save_LIBS="$LIBS"
3189 ac_cv_search_using_history="no"
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 /* Override any gcc2 internal prototype to avoid an error. */
3194 /* We use char because int might match the return type of a gcc2
3195 builtin and then its argument prototype would still apply. */
3196 char using_history();
3202 if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3204 ac_cv_search_using_history="none required"
3206 echo "configure: failed program was:" >&5
3207 cat conftest.$ac_ext >&5
3210 test "$ac_cv_search_using_history" = "no" && for i in history; do
3211 LIBS="-l$i $ac_func_search_save_LIBS"
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 /* Override any gcc2 internal prototype to avoid an error. */
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3218 char using_history();
3224 if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3226 ac_cv_search_using_history="-l$i"
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3234 LIBS="$ac_func_search_save_LIBS"
3237 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3238 if test "$ac_cv_search_using_history" != "no"; then
3239 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3240 cat >> confdefs.h <<\EOF
3241 #define HAVE_HISTORY_FUNCTIONS 1
3248 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3250 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3251 echo "configure:3252: checking for main in -lbsd" >&5
3252 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 ac_save_LIBS="$LIBS"
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3266 if { (eval echo configure:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3268 eval "ac_cv_lib_$ac_lib_var=yes"
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3273 eval "ac_cv_lib_$ac_lib_var=no"
3276 LIBS="$ac_save_LIBS"
3279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3280 echo "$ac_t""yes" 1>&6
3281 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3282 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3283 cat >> confdefs.h <<EOF
3284 #define $ac_tr_lib 1
3290 echo "$ac_t""no" 1>&6
3294 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3295 echo "configure:3296: checking for setproctitle in -lutil" >&5
3296 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 ac_save_LIBS="$LIBS"
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 /* Override any gcc2 internal prototype to avoid an error. */
3306 /* We use char because int might match the return type of a gcc2
3307 builtin and then its argument prototype would still apply. */
3308 char setproctitle();
3314 if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3316 eval "ac_cv_lib_$ac_lib_var=yes"
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3321 eval "ac_cv_lib_$ac_lib_var=no"
3324 LIBS="$ac_save_LIBS"
3327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3328 echo "$ac_t""yes" 1>&6
3329 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3330 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3331 cat >> confdefs.h <<EOF
3332 #define $ac_tr_lib 1
3338 echo "$ac_t""no" 1>&6
3341 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3342 echo "configure:3343: checking for main in -lm" >&5
3343 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 ac_save_LIBS="$LIBS"
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3357 if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3359 eval "ac_cv_lib_$ac_lib_var=yes"
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3364 eval "ac_cv_lib_$ac_lib_var=no"
3367 LIBS="$ac_save_LIBS"
3370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3372 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3374 cat >> confdefs.h <<EOF
3375 #define $ac_tr_lib 1
3381 echo "$ac_t""no" 1>&6
3384 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3385 echo "configure:3386: checking for main in -ldl" >&5
3386 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3390 ac_save_LIBS="$LIBS"
3392 cat > conftest.$ac_ext <<EOF
3393 #line 3394 "configure"
3394 #include "confdefs.h"
3400 if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3402 eval "ac_cv_lib_$ac_lib_var=yes"
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3407 eval "ac_cv_lib_$ac_lib_var=no"
3410 LIBS="$ac_save_LIBS"
3413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3414 echo "$ac_t""yes" 1>&6
3415 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3416 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3417 cat >> confdefs.h <<EOF
3418 #define $ac_tr_lib 1
3424 echo "$ac_t""no" 1>&6
3427 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3428 echo "configure:3429: checking for main in -lsocket" >&5
3429 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 ac_save_LIBS="$LIBS"
3434 LIBS="-lsocket $LIBS"
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3443 if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3445 eval "ac_cv_lib_$ac_lib_var=yes"
3447 echo "configure: failed program was:" >&5
3448 cat conftest.$ac_ext >&5
3450 eval "ac_cv_lib_$ac_lib_var=no"
3453 LIBS="$ac_save_LIBS"
3456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3457 echo "$ac_t""yes" 1>&6
3458 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3459 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3460 cat >> confdefs.h <<EOF
3461 #define $ac_tr_lib 1
3464 LIBS="-lsocket $LIBS"
3467 echo "$ac_t""no" 1>&6
3470 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3471 echo "configure:3472: checking for main in -lnsl" >&5
3472 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 ac_save_LIBS="$LIBS"
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3486 if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3488 eval "ac_cv_lib_$ac_lib_var=yes"
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3493 eval "ac_cv_lib_$ac_lib_var=no"
3496 LIBS="$ac_save_LIBS"
3499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3501 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3502 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3503 cat >> confdefs.h <<EOF
3504 #define $ac_tr_lib 1
3510 echo "$ac_t""no" 1>&6
3513 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3514 echo "configure:3515: checking for main in -lipc" >&5
3515 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3519 ac_save_LIBS="$LIBS"
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3529 if { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3531 eval "ac_cv_lib_$ac_lib_var=yes"
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3536 eval "ac_cv_lib_$ac_lib_var=no"
3539 LIBS="$ac_save_LIBS"
3542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3543 echo "$ac_t""yes" 1>&6
3544 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3545 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3546 cat >> confdefs.h <<EOF
3547 #define $ac_tr_lib 1
3553 echo "$ac_t""no" 1>&6
3556 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3557 echo "configure:3558: checking for main in -lIPC" >&5
3558 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 ac_save_LIBS="$LIBS"
3564 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3572 if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3574 eval "ac_cv_lib_$ac_lib_var=yes"
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3579 eval "ac_cv_lib_$ac_lib_var=no"
3582 LIBS="$ac_save_LIBS"
3585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3586 echo "$ac_t""yes" 1>&6
3587 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3589 cat >> confdefs.h <<EOF
3590 #define $ac_tr_lib 1
3596 echo "$ac_t""no" 1>&6
3599 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3600 echo "configure:3601: checking for main in -llc" >&5
3601 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 ac_save_LIBS="$LIBS"
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3615 if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3617 eval "ac_cv_lib_$ac_lib_var=yes"
3619 echo "configure: failed program was:" >&5
3620 cat conftest.$ac_ext >&5
3622 eval "ac_cv_lib_$ac_lib_var=no"
3625 LIBS="$ac_save_LIBS"
3628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3629 echo "$ac_t""yes" 1>&6
3630 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3632 cat >> confdefs.h <<EOF
3633 #define $ac_tr_lib 1
3639 echo "$ac_t""no" 1>&6
3642 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3643 echo "configure:3644: checking for main in -ldld" >&5
3644 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3648 ac_save_LIBS="$LIBS"
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3660 eval "ac_cv_lib_$ac_lib_var=yes"
3662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3665 eval "ac_cv_lib_$ac_lib_var=no"
3668 LIBS="$ac_save_LIBS"
3671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3672 echo "$ac_t""yes" 1>&6
3673 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3674 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3675 cat >> confdefs.h <<EOF
3676 #define $ac_tr_lib 1
3682 echo "$ac_t""no" 1>&6
3685 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3686 echo "configure:3687: checking for main in -lld" >&5
3687 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 ac_save_LIBS="$LIBS"
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3703 eval "ac_cv_lib_$ac_lib_var=yes"
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3708 eval "ac_cv_lib_$ac_lib_var=no"
3711 LIBS="$ac_save_LIBS"
3714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3715 echo "$ac_t""yes" 1>&6
3716 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3717 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3718 cat >> confdefs.h <<EOF
3719 #define $ac_tr_lib 1
3725 echo "$ac_t""no" 1>&6
3728 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3729 echo "configure:3730: checking for main in -lcompat" >&5
3730 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3734 ac_save_LIBS="$LIBS"
3735 LIBS="-lcompat $LIBS"
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3746 eval "ac_cv_lib_$ac_lib_var=yes"
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3751 eval "ac_cv_lib_$ac_lib_var=no"
3754 LIBS="$ac_save_LIBS"
3757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3758 echo "$ac_t""yes" 1>&6
3759 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3760 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3761 cat >> confdefs.h <<EOF
3762 #define $ac_tr_lib 1
3765 LIBS="-lcompat $LIBS"
3768 echo "$ac_t""no" 1>&6
3771 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3772 echo "configure:3773: checking for main in -lBSD" >&5
3773 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3777 ac_save_LIBS="$LIBS"
3779 cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3789 eval "ac_cv_lib_$ac_lib_var=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 eval "ac_cv_lib_$ac_lib_var=no"
3797 LIBS="$ac_save_LIBS"
3800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3802 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3803 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3804 cat >> confdefs.h <<EOF
3805 #define $ac_tr_lib 1
3811 echo "$ac_t""no" 1>&6
3814 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3815 echo "configure:3816: checking for main in -lgen" >&5
3816 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 ac_save_LIBS="$LIBS"
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3830 if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3832 eval "ac_cv_lib_$ac_lib_var=yes"
3834 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3837 eval "ac_cv_lib_$ac_lib_var=no"
3840 LIBS="$ac_save_LIBS"
3843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3844 echo "$ac_t""yes" 1>&6
3845 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3846 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3847 cat >> confdefs.h <<EOF
3848 #define $ac_tr_lib 1
3854 echo "$ac_t""no" 1>&6
3857 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3858 echo "configure:3859: checking for main in -lPW" >&5
3859 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3863 ac_save_LIBS="$LIBS"
3865 cat > conftest.$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3873 if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3875 eval "ac_cv_lib_$ac_lib_var=yes"
3877 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3880 eval "ac_cv_lib_$ac_lib_var=no"
3883 LIBS="$ac_save_LIBS"
3886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3887 echo "$ac_t""yes" 1>&6
3888 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3889 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3890 cat >> confdefs.h <<EOF
3891 #define $ac_tr_lib 1
3897 echo "$ac_t""no" 1>&6
3900 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
3901 echo "configure:3902: checking for main in -lresolv" >&5
3902 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
3903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 ac_save_LIBS="$LIBS"
3907 LIBS="-lresolv $LIBS"
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3918 eval "ac_cv_lib_$ac_lib_var=yes"
3920 echo "configure: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3923 eval "ac_cv_lib_$ac_lib_var=no"
3926 LIBS="$ac_save_LIBS"
3929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3930 echo "$ac_t""yes" 1>&6
3931 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3932 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3933 cat >> confdefs.h <<EOF
3934 #define $ac_tr_lib 1
3937 LIBS="-lresolv $LIBS"
3940 echo "$ac_t""no" 1>&6
3943 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
3944 echo "configure:3945: checking for main in -lunix" >&5
3945 ac_lib_var=`echo unix'_'main | sed 'y%./+-%__p_%'`
3946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3949 ac_save_LIBS="$LIBS"
3951 cat > conftest.$ac_ext <<EOF
3952 #line 3953 "configure"
3953 #include "confdefs.h"
3959 if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3961 eval "ac_cv_lib_$ac_lib_var=yes"
3963 echo "configure: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3966 eval "ac_cv_lib_$ac_lib_var=no"
3969 LIBS="$ac_save_LIBS"
3972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3973 echo "$ac_t""yes" 1>&6
3974 ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3975 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3976 cat >> confdefs.h <<EOF
3977 #define $ac_tr_lib 1
3983 echo "$ac_t""no" 1>&6
3987 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
3988 echo "configure:3989: checking for library containing crypt" >&5
3989 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
3990 echo $ac_n "(cached) $ac_c" 1>&6
3992 ac_func_search_save_LIBS="$LIBS"
3993 ac_cv_search_crypt="no"
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3997 /* Override any gcc2 internal prototype to avoid an error. */
3998 /* We use char because int might match the return type of a gcc2
3999 builtin and then its argument prototype would still apply. */
4006 if { (eval echo configure:4007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4008 ac_cv_search_crypt="none required"
4010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4014 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4015 LIBS="-l$i $ac_func_search_save_LIBS"
4016 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4019 /* Override any gcc2 internal prototype to avoid an error. */
4020 /* We use char because int might match the return type of a gcc2
4021 builtin and then its argument prototype would still apply. */
4028 if { (eval echo configure:4029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4030 ac_cv_search_crypt="-l$i"
4033 echo "configure: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4038 LIBS="$ac_func_search_save_LIBS"
4041 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4042 if test "$ac_cv_search_crypt" != "no"; then
4043 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4048 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4049 echo "configure:4050: checking for __inet_ntoa in -lbind" >&5
4050 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4054 ac_save_LIBS="$LIBS"
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4059 /* Override any gcc2 internal prototype to avoid an error. */
4060 /* We use char because int might match the return type of a gcc2
4061 builtin and then its argument prototype would still apply. */
4068 if { (eval echo configure:4069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4070 eval "ac_cv_lib_$ac_lib_var=yes"
4072 echo "configure: failed program was:" >&5
4073 cat conftest.$ac_ext >&5
4075 eval "ac_cv_lib_$ac_lib_var=no"
4078 LIBS="$ac_save_LIBS"
4081 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4082 echo "$ac_t""yes" 1>&6
4083 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4084 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4085 cat >> confdefs.h <<EOF
4086 #define $ac_tr_lib 1
4092 echo "$ac_t""no" 1>&6
4095 cat > conftest.$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 egrep "z_streamp" >/dev/null 2>&1; then
4104 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4105 echo "configure:4106: checking for inflate in -lz" >&5
4106 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4110 ac_save_LIBS="$LIBS"
4112 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 /* Override any gcc2 internal prototype to avoid an error. */
4116 /* We use char because int might match the return type of a gcc2
4117 builtin and then its argument prototype would still apply. */
4124 if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4126 eval "ac_cv_lib_$ac_lib_var=yes"
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 eval "ac_cv_lib_$ac_lib_var=no"
4134 LIBS="$ac_save_LIBS"
4137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6
4139 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4141 cat >> confdefs.h <<EOF
4142 #define $ac_tr_lib 1
4148 echo "$ac_t""no" 1>&6
4157 if test "$with_krb4" = yes ; then
4158 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4159 echo "configure:4160: checking for des_encrypt in -ldes" >&5
4160 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4164 ac_save_LIBS="$LIBS"
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 /* Override any gcc2 internal prototype to avoid an error. */
4170 /* We use char because int might match the return type of a gcc2
4171 builtin and then its argument prototype would still apply. */
4178 if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4180 eval "ac_cv_lib_$ac_lib_var=yes"
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4185 eval "ac_cv_lib_$ac_lib_var=no"
4188 LIBS="$ac_save_LIBS"
4191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
4193 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4194 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4195 cat >> confdefs.h <<EOF
4196 #define $ac_tr_lib 1
4202 echo "$ac_t""no" 1>&6
4203 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4206 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4207 echo "configure:4208: checking for krb_sendauth in -lkrb" >&5
4208 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 ac_save_LIBS="$LIBS"
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4220 char krb_sendauth();
4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228 eval "ac_cv_lib_$ac_lib_var=yes"
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4233 eval "ac_cv_lib_$ac_lib_var=no"
4236 LIBS="$ac_save_LIBS"
4239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4240 echo "$ac_t""yes" 1>&6
4241 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4242 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4243 cat >> confdefs.h <<EOF
4244 #define $ac_tr_lib 1
4250 echo "$ac_t""no" 1>&6
4251 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4256 if test "$with_krb5" = yes ; then
4257 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4258 echo "configure:4259: checking for com_err in -lcom_err" >&5
4259 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 ac_save_LIBS="$LIBS"
4264 LIBS="-lcom_err $LIBS"
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4277 if { (eval echo configure:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4281 echo "configure: failed program was:" >&5
4282 cat conftest.$ac_ext >&5
4284 eval "ac_cv_lib_$ac_lib_var=no"
4287 LIBS="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4292 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4293 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4294 cat >> confdefs.h <<EOF
4295 #define $ac_tr_lib 1
4298 LIBS="-lcom_err $LIBS"
4301 echo "$ac_t""no" 1>&6
4302 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4305 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4306 echo "configure:4307: checking for krb5_encrypt in -lcrypto" >&5
4307 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 ac_save_LIBS="$LIBS"
4312 LIBS="-lcrypto $LIBS"
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 /* Override any gcc2 internal prototype to avoid an error. */
4317 /* We use char because int might match the return type of a gcc2
4318 builtin and then its argument prototype would still apply. */
4319 char krb5_encrypt();
4325 if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4327 eval "ac_cv_lib_$ac_lib_var=yes"
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4332 eval "ac_cv_lib_$ac_lib_var=no"
4335 LIBS="$ac_save_LIBS"
4338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4339 echo "$ac_t""yes" 1>&6
4340 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4341 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4342 cat >> confdefs.h <<EOF
4343 #define $ac_tr_lib 1
4346 LIBS="-lcrypto $LIBS"
4349 echo "$ac_t""no" 1>&6
4350 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4351 echo "configure:4352: checking for krb5_encrypt in -lk5crypto" >&5
4352 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4354 echo $ac_n "(cached) $ac_c" 1>&6
4356 ac_save_LIBS="$LIBS"
4357 LIBS="-lk5crypto $LIBS"
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4361 /* Override any gcc2 internal prototype to avoid an error. */
4362 /* We use char because int might match the return type of a gcc2
4363 builtin and then its argument prototype would still apply. */
4364 char krb5_encrypt();
4370 if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4372 eval "ac_cv_lib_$ac_lib_var=yes"
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4377 eval "ac_cv_lib_$ac_lib_var=no"
4380 LIBS="$ac_save_LIBS"
4383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4384 echo "$ac_t""yes" 1>&6
4385 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4387 cat >> confdefs.h <<EOF
4388 #define $ac_tr_lib 1
4391 LIBS="-lk5crypto $LIBS"
4394 echo "$ac_t""no" 1>&6
4395 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4400 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4401 echo "configure:4402: checking for krb5_sendauth in -lkrb5" >&5
4402 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4406 ac_save_LIBS="$LIBS"
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411 /* Override any gcc2 internal prototype to avoid an error. */
4412 /* We use char because int might match the return type of a gcc2
4413 builtin and then its argument prototype would still apply. */
4414 char krb5_sendauth();
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4422 eval "ac_cv_lib_$ac_lib_var=yes"
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4427 eval "ac_cv_lib_$ac_lib_var=no"
4430 LIBS="$ac_save_LIBS"
4433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4434 echo "$ac_t""yes" 1>&6
4435 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4436 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4437 cat >> confdefs.h <<EOF
4438 #define $ac_tr_lib 1
4444 echo "$ac_t""no" 1>&6
4445 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4450 if test "$with_openssl" = yes ; then
4451 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4452 echo "configure:4453: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4453 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 ac_save_LIBS="$LIBS"
4458 LIBS="-lcrypto $LIBS"
4459 cat > conftest.$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4462 /* Override any gcc2 internal prototype to avoid an error. */
4463 /* We use char because int might match the return type of a gcc2
4464 builtin and then its argument prototype would still apply. */
4465 char CRYPTO_new_ex_data();
4468 CRYPTO_new_ex_data()
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4473 eval "ac_cv_lib_$ac_lib_var=yes"
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4478 eval "ac_cv_lib_$ac_lib_var=no"
4481 LIBS="$ac_save_LIBS"
4484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4485 echo "$ac_t""yes" 1>&6
4486 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4488 cat >> confdefs.h <<EOF
4489 #define $ac_tr_lib 1
4492 LIBS="-lcrypto $LIBS"
4495 echo "$ac_t""no" 1>&6
4496 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4499 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4500 echo "configure:4501: checking for SSL_library_init in -lssl" >&5
4501 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4503 echo $ac_n "(cached) $ac_c" 1>&6
4505 ac_save_LIBS="$LIBS"
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4510 /* Override any gcc2 internal prototype to avoid an error. */
4511 /* We use char because int might match the return type of a gcc2
4512 builtin and then its argument prototype would still apply. */
4513 char SSL_library_init();
4519 if { (eval echo configure:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4521 eval "ac_cv_lib_$ac_lib_var=yes"
4523 echo "configure: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4526 eval "ac_cv_lib_$ac_lib_var=no"
4529 LIBS="$ac_save_LIBS"
4532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4533 echo "$ac_t""yes" 1>&6
4534 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4535 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4536 cat >> confdefs.h <<EOF
4537 #define $ac_tr_lib 1
4543 echo "$ac_t""no" 1>&6
4544 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4553 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
4555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4557 echo "configure:4558: checking for $ac_hdr" >&5
4558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4567 { (eval echo configure:4568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4569 if test -z "$ac_err"; then
4571 eval "ac_cv_header_$ac_safe=yes"
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 eval "ac_cv_header_$ac_safe=no"
4581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4582 echo "$ac_t""yes" 1>&6
4583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4584 cat >> confdefs.h <<EOF
4585 #define $ac_tr_hdr 1
4589 echo "$ac_t""no" 1>&6
4594 for ac_hdr in netinet/in.h
4596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4598 echo "configure:4599: checking for $ac_hdr" >&5
4599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4608 { (eval echo configure:4609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4610 if test -z "$ac_err"; then
4612 eval "ac_cv_header_$ac_safe=yes"
4615 echo "configure: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4618 eval "ac_cv_header_$ac_safe=no"
4622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4623 echo "$ac_t""yes" 1>&6
4624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4625 cat >> confdefs.h <<EOF
4626 #define $ac_tr_hdr 1
4630 echo "$ac_t""no" 1>&6
4634 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4635 echo "configure:4636: checking for netinet/tcp.h" >&5
4636 cat > conftest.$ac_ext <<EOF
4637 #line 4638 "configure"
4638 #include "confdefs.h"
4640 #ifdef HAVE_NETINET_IN_H
4641 #include <netinet/in.h>
4643 #include <netinet/tcp.h>
4646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4647 { (eval echo configure:4648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4649 if test -z "$ac_err"; then
4651 cat >> confdefs.h <<\EOF
4652 #define HAVE_NETINET_TCP_H 1
4654 echo "$ac_t""yes" 1>&6
4657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4660 echo "$ac_t""no" 1>&6
4664 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
4665 echo "configure:4666: checking whether string.h and strings.h may both be included" >&5
4666 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4673 #include <strings.h>
4676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4677 { (eval echo configure:4678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4679 if test -z "$ac_err"; then
4681 cat > conftest.$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
4685 #include <strings.h>
4688 int n = strcasecmp("a", "b");
4691 if { (eval echo configure:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4693 pgac_cv_header_strings_both=yes
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4698 pgac_cv_header_strings_both=no
4703 echo "configure: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
4706 pgac_cv_header_strings_both=no
4711 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
4712 if test x"$pgac_cv_header_strings_both" = x"yes"; then
4713 cat >> confdefs.h <<\EOF
4714 #define STRING_H_WITH_STRINGS_H 1
4719 for ac_hdr in readline/readline.h readline.h
4721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4723 echo "configure:4724: checking for $ac_hdr" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4735 if test -z "$ac_err"; then
4737 eval "ac_cv_header_$ac_safe=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 eval "ac_cv_header_$ac_safe=no"
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4750 cat >> confdefs.h <<EOF
4751 #define $ac_tr_hdr 1
4755 echo "$ac_t""no" 1>&6
4759 for ac_hdr in readline/history.h history.h
4761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4763 echo "configure:4764: checking for $ac_hdr" >&5
4764 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4773 { (eval echo configure:4774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4775 if test -z "$ac_err"; then
4777 eval "ac_cv_header_$ac_safe=yes"
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4783 eval "ac_cv_header_$ac_safe=no"
4787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4788 echo "$ac_t""yes" 1>&6
4789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4790 cat >> confdefs.h <<EOF
4791 #define $ac_tr_hdr 1
4795 echo "$ac_t""no" 1>&6
4800 if test "$with_krb4" = yes ; then
4801 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4802 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4803 echo "configure:4804: checking for krb.h" >&5
4804 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4805 echo $ac_n "(cached) $ac_c" 1>&6
4807 cat > conftest.$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4813 { (eval echo configure:4814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4815 if test -z "$ac_err"; then
4817 eval "ac_cv_header_$ac_safe=yes"
4820 echo "configure: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4823 eval "ac_cv_header_$ac_safe=no"
4827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4831 echo "$ac_t""no" 1>&6
4832 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4837 if test "$with_krb5" = yes ; then
4838 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4839 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4840 echo "configure:4841: checking for krb5.h" >&5
4841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4844 cat > conftest.$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4850 { (eval echo configure:4851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4852 if test -z "$ac_err"; then
4854 eval "ac_cv_header_$ac_safe=yes"
4857 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4860 eval "ac_cv_header_$ac_safe=no"
4864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4865 echo "$ac_t""yes" 1>&6
4868 echo "$ac_t""no" 1>&6
4869 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4872 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4873 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4874 echo "configure:4875: checking for com_err.h" >&5
4875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 cat > conftest.$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4881 #include <com_err.h>
4883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4884 { (eval echo configure:4885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4886 if test -z "$ac_err"; then
4888 eval "ac_cv_header_$ac_safe=yes"
4891 echo "configure: failed program was:" >&5
4892 cat conftest.$ac_ext >&5
4894 eval "ac_cv_header_$ac_safe=no"
4898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4899 echo "$ac_t""yes" 1>&6
4902 echo "$ac_t""no" 1>&6
4903 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4908 if test "$with_openssl" = yes ; then
4909 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4910 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4911 echo "configure:4912: checking for openssl/ssl.h" >&5
4912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4918 #include <openssl/ssl.h>
4920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4921 { (eval echo configure:4922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4923 if test -z "$ac_err"; then
4925 eval "ac_cv_header_$ac_safe=yes"
4928 echo "configure: failed program was:" >&5
4929 cat conftest.$ac_ext >&5
4931 eval "ac_cv_header_$ac_safe=no"
4935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4939 echo "$ac_t""no" 1>&6
4940 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4943 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4944 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4945 echo "configure:4946: checking for openssl/err.h" >&5
4946 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 #include <openssl/err.h>
4954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4955 { (eval echo configure:4956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4957 if test -z "$ac_err"; then
4959 eval "ac_cv_header_$ac_safe=yes"
4962 echo "configure: failed program was:" >&5
4963 cat conftest.$ac_ext >&5
4965 eval "ac_cv_header_$ac_safe=no"
4969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4970 echo "$ac_t""yes" 1>&6
4973 echo "$ac_t""no" 1>&6
4974 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
4981 ## Types, structures, compiler characteristics
4983 echo $ac_n "checking for working const""... $ac_c" 1>&6
4984 echo "configure:4985: checking for working const" >&5
4985 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4994 /* Ultrix mips cc rejects this. */
4995 typedef int charset[2]; const charset x;
4996 /* SunOS 4.1.1 cc rejects this. */
4997 char const *const *ccp;
4999 /* NEC SVR4.0.2 mips cc rejects this. */
5000 struct point {int x, y;};
5001 static struct point const zero = {0,0};
5002 /* AIX XL C 1.02.0.0 rejects this.
5003 It does not let you subtract one const X* pointer from another in an arm
5004 of an if-expression whose if-part is not a constant expression */
5005 const char *g = "string";
5006 ccp = &g + (g ? g-g : 0);
5007 /* HPUX 7.0 cc rejects these. */
5010 ccp = (char const *const *) p;
5011 { /* SCO 3.2v4 cc rejects this. */
5013 char const *s = 0 ? (char *) 0 : (char const *) 0;
5017 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5019 const int *foo = &x[0];
5022 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5023 typedef const int *iptr;
5027 { /* AIX XL C 1.02.0.0 rejects this saying
5028 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5029 struct s { int j; const int *ap[3]; };
5030 struct s *b; b->j = 5;
5032 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5038 if { (eval echo configure:5039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5042 echo "configure: failed program was:" >&5
5043 cat conftest.$ac_ext >&5
5050 echo "$ac_t""$ac_cv_c_const" 1>&6
5051 if test $ac_cv_c_const = no; then
5052 cat >> confdefs.h <<\EOF
5058 echo $ac_n "checking for inline""... $ac_c" 1>&6
5059 echo "configure:5060: checking for inline" >&5
5060 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5064 for ac_kw in inline __inline__ __inline; do
5065 cat > conftest.$ac_ext <<EOF
5066 #line 5067 "configure"
5067 #include "confdefs.h"
5073 if { (eval echo configure:5074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5075 ac_cv_c_inline=$ac_kw; break
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5085 echo "$ac_t""$ac_cv_c_inline" 1>&6
5086 case "$ac_cv_c_inline" in
5088 no) cat >> confdefs.h <<\EOF
5092 *) cat >> confdefs.h <<EOF
5093 #define inline $ac_cv_c_inline
5100 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5101 echo "configure:5102: checking for preprocessor stringizing operator" >&5
5102 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5111 char *s = x(teststring);
5114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5115 egrep "#teststring" >/dev/null 2>&1; then
5117 ac_cv_c_stringize=no
5120 ac_cv_c_stringize=yes
5126 if test "${ac_cv_c_stringize}" = yes
5128 cat >> confdefs.h <<\EOF
5129 #define HAVE_STRINGIZE 1
5133 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5135 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5136 echo "configure:5137: checking for signed types" >&5
5137 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5145 signed char c; signed short s; signed int i;
5148 if { (eval echo configure:5149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5150 pgac_cv_c_signed=yes
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5160 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5161 if test x"$pgac_cv_c_signed" = xno ; then
5162 cat >> confdefs.h <<\EOF
5167 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5168 echo "configure:5169: checking for volatile" >&5
5169 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5172 cat > conftest.$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5177 extern volatile int i;
5180 if { (eval echo configure:5181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5182 pgac_cv_c_volatile=yes
5184 echo "configure: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5187 pgac_cv_c_volatile=no
5192 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5193 if test x"$pgac_cv_c_volatile" = xno ; then
5194 cat >> confdefs.h <<\EOF
5199 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5200 echo "configure:5201: checking whether struct tm is in sys/time.h or time.h" >&5
5201 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5202 echo $ac_n "(cached) $ac_c" 1>&6
5204 cat > conftest.$ac_ext <<EOF
5205 #line 5206 "configure"
5206 #include "confdefs.h"
5207 #include <sys/types.h>
5210 struct tm *tp; tp->tm_sec;
5213 if { (eval echo configure:5214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5215 ac_cv_struct_tm=time.h
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 ac_cv_struct_tm=sys/time.h
5225 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5226 if test $ac_cv_struct_tm = sys/time.h; then
5227 cat >> confdefs.h <<\EOF
5228 #define TM_IN_SYS_TIME 1
5233 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5234 echo "configure:5235: checking for tm_zone in struct tm" >&5
5235 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 #include <sys/types.h>
5242 #include <$ac_cv_struct_tm>
5244 struct tm tm; tm.tm_zone;
5247 if { (eval echo configure:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249 ac_cv_struct_tm_zone=yes
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5254 ac_cv_struct_tm_zone=no
5259 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5260 if test "$ac_cv_struct_tm_zone" = yes; then
5261 cat >> confdefs.h <<\EOF
5262 #define HAVE_TM_ZONE 1
5266 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5267 echo "configure:5268: checking for tzname" >&5
5268 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5275 #ifndef tzname /* For SGI. */
5276 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5282 if { (eval echo configure:5283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5284 ac_cv_var_tzname=yes
5286 echo "configure: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5294 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5295 if test $ac_cv_var_tzname = yes; then
5296 cat >> confdefs.h <<\EOF
5297 #define HAVE_TZNAME 1
5303 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5304 echo "configure:5305: checking for union semun" >&5
5305 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5308 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5311 #include <sys/types.h>
5312 #include <sys/ipc.h>
5313 #include <sys/sem.h>
5318 if { (eval echo configure:5319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5320 pgac_cv_union_semun=yes
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5325 pgac_cv_union_semun=no
5330 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5331 if test x"$pgac_cv_union_semun" = xyes ; then
5332 cat >> confdefs.h <<\EOF
5333 #define HAVE_UNION_SEMUN 1
5337 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5338 echo "configure:5339: checking for struct sockaddr_un" >&5
5339 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 cat > conftest.$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 #include <sys/types.h>
5346 #ifdef HAVE_SYS_UN_H
5350 struct sockaddr_un un;
5353 if { (eval echo configure:5354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5355 pgac_cv_struct_sockaddr_un=yes
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5360 pgac_cv_struct_sockaddr_un=no
5365 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5366 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5367 cat >> confdefs.h <<\EOF
5368 #define HAVE_STRUCT_SOCKADDR_UN 1
5374 ## Functions, global variables
5376 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5377 echo "configure:5378: checking for int timezone" >&5
5378 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5387 res = timezone / 60;
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5392 pgac_cv_var_int_timezone=yes
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5397 pgac_cv_var_int_timezone=no
5402 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5403 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5404 cat >> confdefs.h <<\EOF
5405 #define HAVE_INT_TIMEZONE
5409 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5410 echo "configure:5411: checking types of arguments for accept()" >&5
5411 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5412 echo $ac_n "(cached) $ac_c" 1>&6
5414 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5420 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5421 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5422 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
5423 cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 #ifdef HAVE_SYS_TYPES_H
5427 #include <sys/types.h>
5429 #ifdef HAVE_SYS_SOCKET_H
5430 #include <sys/socket.h>
5432 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5437 if { (eval echo configure:5438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5439 ac_not_found=no; break 3
5441 echo "configure: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5450 if test "$ac_not_found" = yes; then
5451 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5453 if test "$ac_cv_func_accept_arg3" = "void"; then
5454 ac_cv_func_accept_arg3=int
5462 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5463 cat >> confdefs.h <<EOF
5464 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5467 cat >> confdefs.h <<EOF
5468 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5471 cat >> confdefs.h <<EOF
5472 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5476 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5477 echo "configure:5478: checking whether gettimeofday takes only one argument" >&5
5478 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5479 echo $ac_n "(cached) $ac_c" 1>&6
5481 cat > conftest.$ac_ext <<EOF
5482 #line 5483 "configure"
5483 #include "confdefs.h"
5484 #include <sys/time.h>
5487 struct timezone *tzp;
5488 gettimeofday(tp,tzp);
5491 if { (eval echo configure:5492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5493 pgac_cv_func_gettimeofday_1arg=no
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 pgac_cv_func_gettimeofday_1arg=yes
5503 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5504 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5505 cat >> confdefs.h <<\EOF
5506 #define GETTIMEOFDAY_1ARG
5511 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
5513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5514 echo "configure:5515: checking for $ac_func" >&5
5515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5516 echo $ac_n "(cached) $ac_c" 1>&6
5518 cat > conftest.$ac_ext <<EOF
5519 #line 5520 "configure"
5520 #include "confdefs.h"
5521 /* System header to define __stub macros and hopefully few prototypes,
5522 which can conflict with char $ac_func(); below. */
5524 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5531 /* The GNU C library defines this for functions which it implements
5532 to always fail with ENOSYS. Some functions are actually named
5533 something starting with __ and the normal name is an alias. */
5534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5542 if { (eval echo configure:5543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5544 eval "ac_cv_func_$ac_func=yes"
5546 echo "configure: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 eval "ac_cv_func_$ac_func=no"
5554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5555 echo "$ac_t""yes" 1>&6
5556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5557 cat >> confdefs.h <<EOF
5558 #define $ac_tr_func 1
5562 echo "$ac_t""no" 1>&6
5567 cat > conftest.$ac_ext <<EOF
5568 #line 5569 "configure"
5569 #include "confdefs.h"
5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573 egrep "fdatasync" >/dev/null 2>&1; then
5575 cat >> confdefs.h <<\EOF
5576 #define HAVE_FDATASYNC_DECL 1
5583 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5584 echo "configure:5585: checking for PS_STRINGS" >&5
5585 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5588 cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 #include <machine/vmparam.h>
5592 #include <sys/exec.h>
5595 PS_STRINGS->ps_nargvstr = 1;
5596 PS_STRINGS->ps_argvstr = "foo";
5599 if { (eval echo configure:5600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5601 pgac_cv_var_PS_STRINGS=yes
5603 echo "configure: failed program was:" >&5
5604 cat conftest.$ac_ext >&5
5606 pgac_cv_var_PS_STRINGS=no
5611 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5612 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5613 cat >> confdefs.h <<\EOF
5614 #define HAVE_PS_STRINGS
5620 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5621 echo "configure:5622: checking for snprintf" >&5
5622 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
5625 cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5628 /* System header to define __stub macros and hopefully few prototypes,
5629 which can conflict with char snprintf(); below. */
5631 /* Override any gcc2 internal prototype to avoid an error. */
5632 /* We use char because int might match the return type of a gcc2
5633 builtin and then its argument prototype would still apply. */
5638 /* The GNU C library defines this for functions which it implements
5639 to always fail with ENOSYS. Some functions are actually named
5640 something starting with __ and the normal name is an alias. */
5641 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5649 if { (eval echo configure:5650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5651 eval "ac_cv_func_snprintf=yes"
5653 echo "configure: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5656 eval "ac_cv_func_snprintf=no"
5661 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5662 echo "$ac_t""yes" 1>&6
5663 cat >> confdefs.h <<\EOF
5664 #define HAVE_SNPRINTF 1
5668 echo "$ac_t""no" 1>&6
5669 SNPRINTF='snprintf.o'
5672 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5673 echo "configure:5674: checking for vsnprintf" >&5
5674 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5675 echo $ac_n "(cached) $ac_c" 1>&6
5677 cat > conftest.$ac_ext <<EOF
5678 #line 5679 "configure"
5679 #include "confdefs.h"
5680 /* System header to define __stub macros and hopefully few prototypes,
5681 which can conflict with char vsnprintf(); below. */
5683 /* Override any gcc2 internal prototype to avoid an error. */
5684 /* We use char because int might match the return type of a gcc2
5685 builtin and then its argument prototype would still apply. */
5690 /* The GNU C library defines this for functions which it implements
5691 to always fail with ENOSYS. Some functions are actually named
5692 something starting with __ and the normal name is an alias. */
5693 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5701 if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703 eval "ac_cv_func_vsnprintf=yes"
5705 echo "configure: failed program was:" >&5
5706 cat conftest.$ac_ext >&5
5708 eval "ac_cv_func_vsnprintf=no"
5713 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5714 echo "$ac_t""yes" 1>&6
5715 cat >> confdefs.h <<\EOF
5716 #define HAVE_VSNPRINTF 1
5720 echo "$ac_t""no" 1>&6
5721 SNPRINTF='snprintf.o'
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5731 egrep "snprintf" >/dev/null 2>&1; then
5733 cat >> confdefs.h <<\EOF
5734 #define HAVE_SNPRINTF_DECL 1
5740 cat > conftest.$ac_ext <<EOF
5741 #line 5742 "configure"
5742 #include "confdefs.h"
5745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5746 egrep "vsnprintf" >/dev/null 2>&1; then
5748 cat >> confdefs.h <<\EOF
5749 #define HAVE_VSNPRINTF_DECL 1
5756 # do this one the hard way in case isinf() is a macro
5757 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5758 echo "configure:5759: checking for isinf" >&5
5759 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5768 double x = 0.0; int res = isinf(x);
5771 if { (eval echo configure:5772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5773 ac_cv_func_isinf=yes
5775 echo "configure: failed program was:" >&5
5776 cat conftest.$ac_ext >&5
5783 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5785 if test $ac_cv_func_isinf = yes ; then
5786 cat >> confdefs.h <<\EOF
5787 #define HAVE_ISINF 1
5793 # Look for a way to implement a substitute for isinf()
5794 for ac_func in fpclass fp_class fp_class_d class
5796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5797 echo "configure:5798: checking for $ac_func" >&5
5798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5801 cat > conftest.$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5804 /* System header to define __stub macros and hopefully few prototypes,
5805 which can conflict with char $ac_func(); below. */
5807 /* Override any gcc2 internal prototype to avoid an error. */
5808 /* We use char because int might match the return type of a gcc2
5809 builtin and then its argument prototype would still apply. */
5814 /* The GNU C library defines this for functions which it implements
5815 to always fail with ENOSYS. Some functions are actually named
5816 something starting with __ and the normal name is an alias. */
5817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5827 eval "ac_cv_func_$ac_func=yes"
5829 echo "configure: failed program was:" >&5
5830 cat conftest.$ac_ext >&5
5832 eval "ac_cv_func_$ac_func=no"
5837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5838 echo "$ac_t""yes" 1>&6
5839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5840 cat >> confdefs.h <<EOF
5841 #define $ac_tr_func 1
5845 echo "$ac_t""no" 1>&6
5852 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5853 echo "configure:5854: checking for getrusage" >&5
5854 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5855 echo $ac_n "(cached) $ac_c" 1>&6
5857 cat > conftest.$ac_ext <<EOF
5858 #line 5859 "configure"
5859 #include "confdefs.h"
5860 /* System header to define __stub macros and hopefully few prototypes,
5861 which can conflict with char getrusage(); below. */
5863 /* Override any gcc2 internal prototype to avoid an error. */
5864 /* We use char because int might match the return type of a gcc2
5865 builtin and then its argument prototype would still apply. */
5870 /* The GNU C library defines this for functions which it implements
5871 to always fail with ENOSYS. Some functions are actually named
5872 something starting with __ and the normal name is an alias. */
5873 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5881 if { (eval echo configure:5882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5883 eval "ac_cv_func_getrusage=yes"
5885 echo "configure: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5888 eval "ac_cv_func_getrusage=no"
5893 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5894 echo "$ac_t""yes" 1>&6
5895 cat >> confdefs.h <<\EOF
5896 #define HAVE_GETRUSAGE 1
5900 echo "$ac_t""no" 1>&6
5901 GETRUSAGE='getrusage.o'
5905 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5906 echo "configure:5907: checking for srandom" >&5
5907 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5908 echo $ac_n "(cached) $ac_c" 1>&6
5910 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5913 /* System header to define __stub macros and hopefully few prototypes,
5914 which can conflict with char srandom(); below. */
5916 /* Override any gcc2 internal prototype to avoid an error. */
5917 /* We use char because int might match the return type of a gcc2
5918 builtin and then its argument prototype would still apply. */
5923 /* The GNU C library defines this for functions which it implements
5924 to always fail with ENOSYS. Some functions are actually named
5925 something starting with __ and the normal name is an alias. */
5926 #if defined (__stub_srandom) || defined (__stub___srandom)
5934 if { (eval echo configure:5935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5936 eval "ac_cv_func_srandom=yes"
5938 echo "configure: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5941 eval "ac_cv_func_srandom=no"
5946 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5947 echo "$ac_t""yes" 1>&6
5948 cat >> confdefs.h <<\EOF
5949 #define HAVE_SRANDOM 1
5953 echo "$ac_t""no" 1>&6
5958 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5959 echo "configure:5960: checking for gethostname" >&5
5960 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5961 echo $ac_n "(cached) $ac_c" 1>&6
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 /* System header to define __stub macros and hopefully few prototypes,
5967 which can conflict with char gethostname(); below. */
5969 /* Override any gcc2 internal prototype to avoid an error. */
5970 /* We use char because int might match the return type of a gcc2
5971 builtin and then its argument prototype would still apply. */
5976 /* The GNU C library defines this for functions which it implements
5977 to always fail with ENOSYS. Some functions are actually named
5978 something starting with __ and the normal name is an alias. */
5979 #if defined (__stub_gethostname) || defined (__stub___gethostname)
5987 if { (eval echo configure:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5989 eval "ac_cv_func_gethostname=yes"
5991 echo "configure: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5994 eval "ac_cv_func_gethostname=no"
5999 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6000 echo "$ac_t""yes" 1>&6
6001 cat >> confdefs.h <<\EOF
6002 #define HAVE_GETHOSTNAME 1
6006 echo "$ac_t""no" 1>&6
6007 GETHOSTNAME='gethostname.o'
6011 echo $ac_n "checking for random""... $ac_c" 1>&6
6012 echo "configure:6013: checking for random" >&5
6013 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6014 echo $ac_n "(cached) $ac_c" 1>&6
6016 cat > conftest.$ac_ext <<EOF
6017 #line 6018 "configure"
6018 #include "confdefs.h"
6019 /* System header to define __stub macros and hopefully few prototypes,
6020 which can conflict with char random(); below. */
6022 /* Override any gcc2 internal prototype to avoid an error. */
6023 /* We use char because int might match the return type of a gcc2
6024 builtin and then its argument prototype would still apply. */
6029 /* The GNU C library defines this for functions which it implements
6030 to always fail with ENOSYS. Some functions are actually named
6031 something starting with __ and the normal name is an alias. */
6032 #if defined (__stub_random) || defined (__stub___random)
6040 if { (eval echo configure:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6042 eval "ac_cv_func_random=yes"
6044 echo "configure: failed program was:" >&5
6045 cat conftest.$ac_ext >&5
6047 eval "ac_cv_func_random=no"
6052 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6053 echo "$ac_t""yes" 1>&6
6054 cat >> confdefs.h <<\EOF
6055 #define HAVE_RANDOM 1
6059 echo "$ac_t""no" 1>&6
6060 MISSING_RANDOM='random.o'
6064 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6065 echo "configure:6066: checking for inet_aton" >&5
6066 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 /* System header to define __stub macros and hopefully few prototypes,
6073 which can conflict with char inet_aton(); below. */
6075 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6082 /* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6095 eval "ac_cv_func_inet_aton=yes"
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6100 eval "ac_cv_func_inet_aton=no"
6105 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 cat >> confdefs.h <<\EOF
6108 #define HAVE_INET_ATON 1
6112 echo "$ac_t""no" 1>&6
6113 INET_ATON='inet_aton.o'
6117 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6118 echo "configure:6119: checking for strerror" >&5
6119 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6125 /* System header to define __stub macros and hopefully few prototypes,
6126 which can conflict with char strerror(); below. */
6128 /* Override any gcc2 internal prototype to avoid an error. */
6129 /* We use char because int might match the return type of a gcc2
6130 builtin and then its argument prototype would still apply. */
6135 /* The GNU C library defines this for functions which it implements
6136 to always fail with ENOSYS. Some functions are actually named
6137 something starting with __ and the normal name is an alias. */
6138 #if defined (__stub_strerror) || defined (__stub___strerror)
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148 eval "ac_cv_func_strerror=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_func_strerror=no"
6158 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6159 echo "$ac_t""yes" 1>&6
6160 cat >> confdefs.h <<\EOF
6161 #define HAVE_STRERROR 1
6165 echo "$ac_t""no" 1>&6
6166 STRERROR='strerror.o'
6170 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6171 echo "configure:6172: checking for strdup" >&5
6172 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6173 echo $ac_n "(cached) $ac_c" 1>&6
6175 cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6178 /* System header to define __stub macros and hopefully few prototypes,
6179 which can conflict with char strdup(); below. */
6181 /* Override any gcc2 internal prototype to avoid an error. */
6182 /* We use char because int might match the return type of a gcc2
6183 builtin and then its argument prototype would still apply. */
6188 /* The GNU C library defines this for functions which it implements
6189 to always fail with ENOSYS. Some functions are actually named
6190 something starting with __ and the normal name is an alias. */
6191 #if defined (__stub_strdup) || defined (__stub___strdup)
6199 if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 eval "ac_cv_func_strdup=yes"
6203 echo "configure: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6206 eval "ac_cv_func_strdup=no"
6211 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6212 echo "$ac_t""yes" 1>&6
6213 cat >> confdefs.h <<\EOF
6214 #define HAVE_STRDUP 1
6218 echo "$ac_t""no" 1>&6
6219 STRDUP='../../utils/strdup.o'
6223 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6224 echo "configure:6225: checking for strtol" >&5
6225 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6226 echo $ac_n "(cached) $ac_c" 1>&6
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure"
6230 #include "confdefs.h"
6231 /* System header to define __stub macros and hopefully few prototypes,
6232 which can conflict with char strtol(); below. */
6234 /* Override any gcc2 internal prototype to avoid an error. */
6235 /* We use char because int might match the return type of a gcc2
6236 builtin and then its argument prototype would still apply. */
6241 /* The GNU C library defines this for functions which it implements
6242 to always fail with ENOSYS. Some functions are actually named
6243 something starting with __ and the normal name is an alias. */
6244 #if defined (__stub_strtol) || defined (__stub___strtol)
6252 if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6254 eval "ac_cv_func_strtol=yes"
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6259 eval "ac_cv_func_strtol=no"
6264 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6265 echo "$ac_t""yes" 1>&6
6266 cat >> confdefs.h <<\EOF
6267 #define HAVE_STRTOL 1
6271 echo "$ac_t""no" 1>&6
6276 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6277 echo "configure:6278: checking for strtoul" >&5
6278 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6279 echo $ac_n "(cached) $ac_c" 1>&6
6281 cat > conftest.$ac_ext <<EOF
6282 #line 6283 "configure"
6283 #include "confdefs.h"
6284 /* System header to define __stub macros and hopefully few prototypes,
6285 which can conflict with char strtoul(); below. */
6287 /* Override any gcc2 internal prototype to avoid an error. */
6288 /* We use char because int might match the return type of a gcc2
6289 builtin and then its argument prototype would still apply. */
6294 /* The GNU C library defines this for functions which it implements
6295 to always fail with ENOSYS. Some functions are actually named
6296 something starting with __ and the normal name is an alias. */
6297 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6305 if { (eval echo configure:6306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6307 eval "ac_cv_func_strtoul=yes"
6309 echo "configure: failed program was:" >&5
6310 cat conftest.$ac_ext >&5
6312 eval "ac_cv_func_strtoul=no"
6317 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6318 echo "$ac_t""yes" 1>&6
6319 cat >> confdefs.h <<\EOF
6320 #define HAVE_STRTOUL 1
6324 echo "$ac_t""no" 1>&6
6329 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6330 echo "configure:6331: checking for strcasecmp" >&5
6331 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6334 cat > conftest.$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 /* System header to define __stub macros and hopefully few prototypes,
6338 which can conflict with char strcasecmp(); below. */
6340 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6347 /* The GNU C library defines this for functions which it implements
6348 to always fail with ENOSYS. Some functions are actually named
6349 something starting with __ and the normal name is an alias. */
6350 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6358 if { (eval echo configure:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6360 eval "ac_cv_func_strcasecmp=yes"
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6365 eval "ac_cv_func_strcasecmp=no"
6370 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6371 echo "$ac_t""yes" 1>&6
6372 cat >> confdefs.h <<\EOF
6373 #define HAVE_STRCASECMP 1
6377 echo "$ac_t""no" 1>&6
6378 STRCASECMP='strcasecmp.o'
6382 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6383 echo "configure:6384: checking for cbrt" >&5
6384 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6385 echo $ac_n "(cached) $ac_c" 1>&6
6387 cat > conftest.$ac_ext <<EOF
6388 #line 6389 "configure"
6389 #include "confdefs.h"
6390 /* System header to define __stub macros and hopefully few prototypes,
6391 which can conflict with char cbrt(); below. */
6393 /* Override any gcc2 internal prototype to avoid an error. */
6394 /* We use char because int might match the return type of a gcc2
6395 builtin and then its argument prototype would still apply. */
6400 /* The GNU C library defines this for functions which it implements
6401 to always fail with ENOSYS. Some functions are actually named
6402 something starting with __ and the normal name is an alias. */
6403 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6413 eval "ac_cv_func_cbrt=yes"
6415 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6418 eval "ac_cv_func_cbrt=no"
6423 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6424 echo "$ac_t""yes" 1>&6
6425 cat >> confdefs.h <<\EOF
6430 echo "$ac_t""no" 1>&6
6431 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6432 echo "configure:6433: checking for cbrt in -lm" >&5
6433 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6437 ac_save_LIBS="$LIBS"
6439 cat > conftest.$ac_ext <<EOF
6440 #line 6441 "configure"
6441 #include "confdefs.h"
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6453 eval "ac_cv_lib_$ac_lib_var=yes"
6455 echo "configure: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 eval "ac_cv_lib_$ac_lib_var=no"
6461 LIBS="$ac_save_LIBS"
6464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6465 echo "$ac_t""yes" 1>&6
6466 cat >> confdefs.h <<\EOF
6471 echo "$ac_t""no" 1>&6
6477 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6478 # this hackery with HPUXMATHLIB allows us to cope.
6482 if [ -r /lib/pa1.1/libm.a ] ; then
6483 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6488 echo $ac_n "checking for rint""... $ac_c" 1>&6
6489 echo "configure:6490: checking for rint" >&5
6490 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* System header to define __stub macros and hopefully few prototypes,
6497 which can conflict with char rint(); below. */
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6506 /* The GNU C library defines this for functions which it implements
6507 to always fail with ENOSYS. Some functions are actually named
6508 something starting with __ and the normal name is an alias. */
6509 #if defined (__stub_rint) || defined (__stub___rint)
6517 if { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6519 eval "ac_cv_func_rint=yes"
6521 echo "configure: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6524 eval "ac_cv_func_rint=no"
6529 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6530 echo "$ac_t""yes" 1>&6
6531 cat >> confdefs.h <<\EOF
6536 echo "$ac_t""no" 1>&6
6537 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6538 echo "configure:6539: checking for rint in -lm" >&5
6539 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6543 ac_save_LIBS="$LIBS"
6544 LIBS="-lm $HPUXMATHLIB $LIBS"
6545 cat > conftest.$ac_ext <<EOF
6546 #line 6547 "configure"
6547 #include "confdefs.h"
6548 /* Override any gcc2 internal prototype to avoid an error. */
6549 /* We use char because int might match the return type of a gcc2
6550 builtin and then its argument prototype would still apply. */
6557 if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6559 eval "ac_cv_lib_$ac_lib_var=yes"
6561 echo "configure: failed program was:" >&5
6562 cat conftest.$ac_ext >&5
6564 eval "ac_cv_lib_$ac_lib_var=no"
6567 LIBS="$ac_save_LIBS"
6570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6571 echo "$ac_t""yes" 1>&6
6572 cat >> confdefs.h <<\EOF
6577 echo "$ac_t""no" 1>&6
6584 # Readline versions < 2.1 don't have rl_completion_append_character
6585 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6586 echo "configure:6587: checking for rl_completion_append_character" >&5
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6591 #ifdef HAVE_READLINE_READLINE_H
6592 # include <readline/readline.h>
6593 #elif defined(HAVE_READLINE_H)
6594 # include <readline.h>
6598 rl_completion_append_character = 'x';
6601 if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6603 echo "$ac_t""yes" 1>&6
6604 cat >> confdefs.h <<\EOF
6605 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6612 echo "$ac_t""no" 1>&6
6616 for ac_func in rl_completion_matches
6618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6619 echo "configure:6620: checking for $ac_func" >&5
6620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6621 echo $ac_n "(cached) $ac_c" 1>&6
6623 cat > conftest.$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 /* System header to define __stub macros and hopefully few prototypes,
6627 which can conflict with char $ac_func(); below. */
6629 /* Override any gcc2 internal prototype to avoid an error. */
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6636 /* The GNU C library defines this for functions which it implements
6637 to always fail with ENOSYS. Some functions are actually named
6638 something starting with __ and the normal name is an alias. */
6639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6647 if { (eval echo configure:6648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6649 eval "ac_cv_func_$ac_func=yes"
6651 echo "configure: failed program was:" >&5
6652 cat conftest.$ac_ext >&5
6654 eval "ac_cv_func_$ac_func=no"
6659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6660 echo "$ac_t""yes" 1>&6
6661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6662 cat >> confdefs.h <<EOF
6663 #define $ac_tr_func 1
6667 echo "$ac_t""no" 1>&6
6673 echo $ac_n "checking for finite""... $ac_c" 1>&6
6674 echo "configure:6675: checking for finite" >&5
6675 cat > conftest.$ac_ext <<EOF
6676 #line 6677 "configure"
6677 #include "confdefs.h"
6680 int dummy=finite(1.0);
6683 if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6685 cat >> confdefs.h <<\EOF
6686 #define HAVE_FINITE 1
6688 echo "$ac_t""yes" 1>&6
6690 echo "configure: failed program was:" >&5
6691 cat conftest.$ac_ext >&5
6693 echo "$ac_t""no" 1>&6
6697 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6698 echo "configure:6699: checking for sigsetjmp" >&5
6699 cat > conftest.$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6704 sigjmp_buf x; sigsetjmp(x, 1);
6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 cat >> confdefs.h <<\EOF
6710 #define HAVE_SIGSETJMP 1
6712 echo "$ac_t""yes" 1>&6
6714 echo "configure: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6717 echo "$ac_t""no" 1>&6
6722 # Check whether --enable-syslog was given
6723 if test x"${enable_syslog+set}" = xset; then
6724 case $enable_syslog in
6726 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6727 echo "configure:6728: checking for syslog" >&5
6728 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* System header to define __stub macros and hopefully few prototypes,
6735 which can conflict with char syslog(); below. */
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6744 /* The GNU C library defines this for functions which it implements
6745 to always fail with ENOSYS. Some functions are actually named
6746 something starting with __ and the normal name is an alias. */
6747 #if defined (__stub_syslog) || defined (__stub___syslog)
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6757 eval "ac_cv_func_syslog=yes"
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 eval "ac_cv_func_syslog=no"
6767 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6768 echo "$ac_t""yes" 1>&6
6769 cat >> confdefs.h <<\EOF
6770 #define ENABLE_SYSLOG 1
6774 echo "$ac_t""no" 1>&6
6775 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6783 enableval=$enable_syslog
6784 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6786 esac # $enable_syslog
6793 echo $ac_n "checking for optreset""... $ac_c" 1>&6
6794 echo "configure:6795: checking for optreset" >&5
6795 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6798 cat > conftest.$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6803 extern int optreset; optreset = 1;
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 pgac_cv_var_int_optreset=yes
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 pgac_cv_var_int_optreset=no
6818 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
6819 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
6820 cat >> confdefs.h <<\EOF
6821 #define HAVE_INT_OPTRESET 1
6827 # This test makes sure that run tests work at all. Sometimes a shared
6828 # library is found by the linker, but the runtime linker can't find it.
6829 # This check should come after all modifications of compiler or linker
6830 # variables, and before any other run tests.
6831 echo $ac_n "checking test program""... $ac_c" 1>&6
6832 echo "configure:6833: checking test program" >&5
6833 if test "$cross_compiling" = yes; then
6834 echo "$ac_t""cross-compiling" 1>&6
6836 cat > conftest.$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6839 int main() { return 0; }
6841 if { (eval echo configure:6842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6843 echo "$ac_t""ok" 1>&6
6845 echo "configure: failed program was:" >&5
6846 cat conftest.$ac_ext >&5
6848 echo "$ac_t""failed" 1>&6
6849 { echo "configure: error:
6850 *** Could not execute a simple test program. This may be a problem
6851 *** related to locating shared libraries. Check the file 'config.log'
6852 *** for the exact reason." 1>&2; exit 1; }
6860 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6861 echo "configure:6862: checking whether long int is 64 bits" >&5
6862 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6863 echo $ac_n "(cached) $ac_c" 1>&6
6865 if test "$cross_compiling" = yes; then
6866 pgac_cv_type_long_int_64=no
6867 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6869 cat > conftest.$ac_ext <<EOF
6870 #line 6871 "configure"
6871 #include "confdefs.h"
6872 typedef long int int64;
6875 * These are globals to discourage the compiler from folding all the
6876 * arithmetic tests down to compile-time constants.
6881 int does_int64_work()
6885 if (sizeof(int64) != 8)
6886 return 0; /* definitely not the right size */
6888 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6896 exit(! does_int64_work());
6899 if { (eval echo configure:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6901 pgac_cv_type_long_int_64=yes
6903 echo "configure: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6906 pgac_cv_type_long_int_64=no
6913 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6915 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6916 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6917 cat >> confdefs.h <<\EOF
6918 #define HAVE_LONG_INT_64
6924 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6925 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6926 echo "configure:6927: checking whether long long int is 64 bits" >&5
6927 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6928 echo $ac_n "(cached) $ac_c" 1>&6
6930 if test "$cross_compiling" = yes; then
6931 pgac_cv_type_long_long_int_64=no
6932 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6934 cat > conftest.$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6937 typedef long long int int64;
6940 * These are globals to discourage the compiler from folding all the
6941 * arithmetic tests down to compile-time constants.
6946 int does_int64_work()
6950 if (sizeof(int64) != 8)
6951 return 0; /* definitely not the right size */
6953 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6961 exit(! does_int64_work());
6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6966 pgac_cv_type_long_long_int_64=yes
6968 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6971 pgac_cv_type_long_long_int_64=no
6978 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6980 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6981 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6982 cat >> confdefs.h <<\EOF
6983 #define HAVE_LONG_LONG_INT_64
6992 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6993 cat > conftest.$ac_ext <<EOF
6994 #line 6995 "configure"
6995 #include "confdefs.h"
6997 #define INT64CONST(x) x##LL
6998 long long int foo = INT64CONST(0x1234567890123456);
7004 if { (eval echo configure:7005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7006 cat >> confdefs.h <<\EOF
7007 #define HAVE_LL_CONSTANTS 1
7011 echo "configure: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7019 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7020 if [ x$SNPRINTF = x ] ; then
7021 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7022 echo "configure:7023: checking whether snprintf handles 'long long int' as %lld" >&5
7023 if test "$cross_compiling" = yes; then
7024 echo "$ac_t""assuming not on target machine" 1>&6
7025 # Force usage of our own snprintf, since we cannot test foreign snprintf
7026 SNPRINTF='snprintf.o'
7027 INT64_FORMAT='"%lld"'
7030 cat > conftest.$ac_ext <<EOF
7031 #line 7032 "configure"
7032 #include "confdefs.h"
7034 typedef long long int int64;
7035 #define INT64_FORMAT "%lld"
7040 int does_int64_snprintf_work()
7045 if (sizeof(int64) != 8)
7046 return 0; /* doesn't look like the right size */
7049 snprintf(buf, 100, INT64_FORMAT, c);
7050 if (strcmp(buf, "800000140000005") != 0)
7051 return 0; /* either multiply or snprintf is busted */
7055 exit(! does_int64_snprintf_work());
7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7060 echo "$ac_t""yes" 1>&6
7061 INT64_FORMAT='"%lld"'
7064 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7067 echo "$ac_t""no" 1>&6
7068 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7069 echo "configure:7070: checking whether snprintf handles 'long long int' as %qd" >&5
7070 if test "$cross_compiling" = yes; then
7071 echo "$ac_t""assuming not on target machine" 1>&6
7072 # Force usage of our own snprintf, since we cannot test foreign snprintf
7073 SNPRINTF='snprintf.o'
7074 INT64_FORMAT='"%lld"'
7077 cat > conftest.$ac_ext <<EOF
7078 #line 7079 "configure"
7079 #include "confdefs.h"
7081 typedef long long int int64;
7082 #define INT64_FORMAT "%qd"
7087 int does_int64_snprintf_work()
7092 if (sizeof(int64) != 8)
7093 return 0; /* doesn't look like the right size */
7096 snprintf(buf, 100, INT64_FORMAT, c);
7097 if (strcmp(buf, "800000140000005") != 0)
7098 return 0; /* either multiply or snprintf is busted */
7102 exit(! does_int64_snprintf_work());
7105 if { (eval echo configure:7106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7107 echo "$ac_t""yes" 1>&6
7108 INT64_FORMAT='"%qd"'
7111 echo "configure: failed program was:" >&5
7112 cat conftest.$ac_ext >&5
7114 echo "$ac_t""no" 1>&6
7115 # Force usage of our own snprintf, since system snprintf is broken
7116 SNPRINTF='snprintf.o'
7117 INT64_FORMAT='"%lld"'
7128 # here if we previously decided we needed to use our own snprintf
7129 INT64_FORMAT='"%lld"'
7132 # Here if we are not using 'long long int' at all
7133 INT64_FORMAT='"%ld"'
7136 cat >> confdefs.h <<EOF
7137 #define INT64_FORMAT $INT64_FORMAT
7142 for ac_func in strtoll strtoq
7144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7145 echo "configure:7146: checking for $ac_func" >&5
7146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7147 echo $ac_n "(cached) $ac_c" 1>&6
7149 cat > conftest.$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7152 /* System header to define __stub macros and hopefully few prototypes,
7153 which can conflict with char $ac_func(); below. */
7155 /* Override any gcc2 internal prototype to avoid an error. */
7156 /* We use char because int might match the return type of a gcc2
7157 builtin and then its argument prototype would still apply. */
7162 /* The GNU C library defines this for functions which it implements
7163 to always fail with ENOSYS. Some functions are actually named
7164 something starting with __ and the normal name is an alias. */
7165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7173 if { (eval echo configure:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7175 eval "ac_cv_func_$ac_func=yes"
7177 echo "configure: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7180 eval "ac_cv_func_$ac_func=no"
7185 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7186 echo "$ac_t""yes" 1>&6
7187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7188 cat >> confdefs.h <<EOF
7189 #define $ac_tr_func 1
7193 echo "$ac_t""no" 1>&6
7197 for ac_func in strtoull strtouq
7199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7200 echo "configure:7201: checking for $ac_func" >&5
7201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7202 echo $ac_n "(cached) $ac_c" 1>&6
7204 cat > conftest.$ac_ext <<EOF
7205 #line 7206 "configure"
7206 #include "confdefs.h"
7207 /* System header to define __stub macros and hopefully few prototypes,
7208 which can conflict with char $ac_func(); below. */
7210 /* Override any gcc2 internal prototype to avoid an error. */
7211 /* We use char because int might match the return type of a gcc2
7212 builtin and then its argument prototype would still apply. */
7217 /* The GNU C library defines this for functions which it implements
7218 to always fail with ENOSYS. Some functions are actually named
7219 something starting with __ and the normal name is an alias. */
7220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7228 if { (eval echo configure:7229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7230 eval "ac_cv_func_$ac_func=yes"
7232 echo "configure: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7235 eval "ac_cv_func_$ac_func=no"
7240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7241 echo "$ac_t""yes" 1>&6
7242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7243 cat >> confdefs.h <<EOF
7244 #define $ac_tr_func 1
7248 echo "$ac_t""no" 1>&6
7253 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7254 echo "configure:7255: checking for atexit" >&5
7255 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7256 echo $ac_n "(cached) $ac_c" 1>&6
7258 cat > conftest.$ac_ext <<EOF
7259 #line 7260 "configure"
7260 #include "confdefs.h"
7261 /* System header to define __stub macros and hopefully few prototypes,
7262 which can conflict with char atexit(); below. */
7264 /* Override any gcc2 internal prototype to avoid an error. */
7265 /* We use char because int might match the return type of a gcc2
7266 builtin and then its argument prototype would still apply. */
7271 /* The GNU C library defines this for functions which it implements
7272 to always fail with ENOSYS. Some functions are actually named
7273 something starting with __ and the normal name is an alias. */
7274 #if defined (__stub_atexit) || defined (__stub___atexit)
7282 if { (eval echo configure:7283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7284 eval "ac_cv_func_atexit=yes"
7286 echo "configure: failed program was:" >&5
7287 cat conftest.$ac_ext >&5
7289 eval "ac_cv_func_atexit=no"
7294 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7295 echo "$ac_t""yes" 1>&6
7296 cat >> confdefs.h <<\EOF
7297 #define HAVE_ATEXIT 1
7301 echo "$ac_t""no" 1>&6
7302 for ac_func in on_exit
7304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7305 echo "configure:7306: checking for $ac_func" >&5
7306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7309 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7312 /* System header to define __stub macros and hopefully few prototypes,
7313 which can conflict with char $ac_func(); below. */
7315 /* Override any gcc2 internal prototype to avoid an error. */
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7322 /* The GNU C library defines this for functions which it implements
7323 to always fail with ENOSYS. Some functions are actually named
7324 something starting with __ and the normal name is an alias. */
7325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7333 if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7335 eval "ac_cv_func_$ac_func=yes"
7337 echo "configure: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7340 eval "ac_cv_func_$ac_func=no"
7345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7346 echo "$ac_t""yes" 1>&6
7347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7348 cat >> confdefs.h <<EOF
7349 #define $ac_tr_func 1
7351 cat >> confdefs.h <<\EOF
7352 #define HAVE_ON_EXIT 1
7356 echo "$ac_t""no" 1>&6
7357 { echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; }
7365 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
7366 echo "configure:7367: checking size of unsigned long" >&5
7367 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7370 if test "$cross_compiling" = yes; then
7371 ac_cv_sizeof_unsigned_long=4
7373 cat > conftest.$ac_ext <<EOF
7374 #line 7375 "configure"
7375 #include "confdefs.h"
7379 FILE *f=fopen("conftestval", "w");
7381 fprintf(f, "%d\n", sizeof(unsigned long));
7385 if { (eval echo configure:7386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7387 ac_cv_sizeof_unsigned_long=`cat conftestval`
7389 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5
7392 ac_cv_sizeof_unsigned_long=0
7398 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
7399 cat >> confdefs.h <<EOF
7400 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7404 cat >> confdefs.h <<EOF
7405 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
7410 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7411 echo "configure:7412: checking alignment of short" >&5
7412 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7413 echo $ac_n "(cached) $ac_c" 1>&6
7415 if test "$cross_compiling" = yes; then
7416 pgac_cv_alignof_short='sizeof(short)'
7418 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure"
7420 #include "confdefs.h"
7422 struct { char filler; short field; } mystruct;
7425 FILE *f=fopen("conftestval", "w");
7427 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7431 if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7433 pgac_cv_alignof_short=`cat conftestval`
7435 echo "configure: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7438 pgac_cv_alignof_short='sizeof(short)'
7444 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7445 cat >> confdefs.h <<EOF
7446 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7450 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7451 echo "configure:7452: checking alignment of int" >&5
7452 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7455 if test "$cross_compiling" = yes; then
7456 pgac_cv_alignof_int='sizeof(int)'
7458 cat > conftest.$ac_ext <<EOF
7459 #line 7460 "configure"
7460 #include "confdefs.h"
7462 struct { char filler; int field; } mystruct;
7465 FILE *f=fopen("conftestval", "w");
7467 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7471 if { (eval echo configure:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7473 pgac_cv_alignof_int=`cat conftestval`
7475 echo "configure: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7478 pgac_cv_alignof_int='sizeof(int)'
7484 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7485 cat >> confdefs.h <<EOF
7486 #define ALIGNOF_INT $pgac_cv_alignof_int
7490 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7491 echo "configure:7492: checking alignment of long" >&5
7492 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7493 echo $ac_n "(cached) $ac_c" 1>&6
7495 if test "$cross_compiling" = yes; then
7496 pgac_cv_alignof_long='sizeof(long)'
7498 cat > conftest.$ac_ext <<EOF
7499 #line 7500 "configure"
7500 #include "confdefs.h"
7502 struct { char filler; long field; } mystruct;
7505 FILE *f=fopen("conftestval", "w");
7507 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7511 if { (eval echo configure:7512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7513 pgac_cv_alignof_long=`cat conftestval`
7515 echo "configure: failed program was:" >&5
7516 cat conftest.$ac_ext >&5
7518 pgac_cv_alignof_long='sizeof(long)'
7524 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7525 cat >> confdefs.h <<EOF
7526 #define ALIGNOF_LONG $pgac_cv_alignof_long
7530 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7531 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7532 echo "configure:7533: checking alignment of long long int" >&5
7533 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7534 echo $ac_n "(cached) $ac_c" 1>&6
7536 if test "$cross_compiling" = yes; then
7537 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7539 cat > conftest.$ac_ext <<EOF
7540 #line 7541 "configure"
7541 #include "confdefs.h"
7543 struct { char filler; long long int field; } mystruct;
7546 FILE *f=fopen("conftestval", "w");
7548 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7552 if { (eval echo configure:7553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7554 pgac_cv_alignof_long_long_int=`cat conftestval`
7556 echo "configure: failed program was:" >&5
7557 cat conftest.$ac_ext >&5
7559 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7565 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7566 cat >> confdefs.h <<EOF
7567 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7572 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7573 echo "configure:7574: checking alignment of double" >&5
7574 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7577 if test "$cross_compiling" = yes; then
7578 pgac_cv_alignof_double='sizeof(double)'
7580 cat > conftest.$ac_ext <<EOF
7581 #line 7582 "configure"
7582 #include "confdefs.h"
7584 struct { char filler; double field; } mystruct;
7587 FILE *f=fopen("conftestval", "w");
7589 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7593 if { (eval echo configure:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7595 pgac_cv_alignof_double=`cat conftestval`
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7600 pgac_cv_alignof_double='sizeof(double)'
7606 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7607 cat >> confdefs.h <<EOF
7608 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7614 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7615 MAX_ALIGNOF=$pgac_cv_alignof_long
7616 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7617 MAX_ALIGNOF=$pgac_cv_alignof_double
7619 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7620 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7623 MAX_ALIGNOF="$pgac_cv_alignof_double"
7625 cat >> confdefs.h <<EOF
7626 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7630 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7631 echo "configure:7632: checking for POSIX signal interface" >&5
7632 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7635 cat > conftest.$ac_ext <<EOF
7636 #line 7637 "configure"
7637 #include "confdefs.h"
7641 struct sigaction act, oact;
7642 sigemptyset(&act.sa_mask);
7643 act.sa_flags = SA_RESTART;
7644 sigaction(0, &act, &oact);
7647 if { (eval echo configure:7648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7649 pgac_cv_func_posix_signals=yes
7651 echo "configure: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7654 pgac_cv_func_posix_signals=no
7659 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7660 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7661 cat >> confdefs.h <<\EOF
7662 #define HAVE_POSIX_SIGNALS
7666 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7670 # Check for Tcl configuration script tclConfig.sh
7671 if test "$with_tcl" = yes; then
7672 for ac_prog in tclsh tcl
7674 # Extract the first word of "$ac_prog", so it can be a program name with args.
7675 set dummy $ac_prog; ac_word=$2
7676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7677 echo "configure:7678: checking for $ac_word" >&5
7678 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7679 echo $ac_n "(cached) $ac_c" 1>&6
7683 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7686 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7691 for ac_dir in $ac_dummy; do
7692 test -z "$ac_dir" && ac_dir=.
7693 if test -f $ac_dir/$ac_word; then
7694 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7702 TCLSH="$ac_cv_path_TCLSH"
7703 if test -n "$TCLSH"; then
7704 echo "$ac_t""$TCLSH" 1>&6
7706 echo "$ac_t""no" 1>&6
7709 test -n "$TCLSH" && break
7712 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7713 echo "configure:7714: checking for tclConfig.sh" >&5
7714 # Let user override test
7715 if test -z "$TCL_CONFIG_SH"; then
7716 pgac_test_dirs="$with_tclconfig"
7718 set X $pgac_test_dirs; shift
7719 if test $# -eq 0; then
7720 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7721 set X `echo 'puts $auto_path' | $TCLSH`; shift
7725 if test -r "$pgac_dir/tclConfig.sh"; then
7726 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7732 if test -z "$TCL_CONFIG_SH"; then
7733 echo "$ac_t""no" 1>&6
7734 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7736 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7743 # Check for Tk configuration script tkConfig.sh
7744 if test "$with_tk" = yes; then
7745 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7746 echo "configure:7747: checking for tkConfig.sh" >&5
7747 # Let user override test
7748 if test -z "$TK_CONFIG_SH"; then
7749 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7751 set X $pgac_test_dirs; shift
7752 if test $# -eq 0; then
7753 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7754 set X `echo 'puts $auto_path' | $TCLSH`; shift
7758 if test -r "$pgac_dir/tkConfig.sh"; then
7759 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7765 if test -z "$TK_CONFIG_SH"; then
7766 echo "$ac_t""no" 1>&6
7767 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7769 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7778 # Check for DocBook and tools
7780 for ac_prog in onsgmls nsgmls
7782 # Extract the first word of "$ac_prog", so it can be a program name with args.
7783 set dummy $ac_prog; ac_word=$2
7784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7785 echo "configure:7786: checking for $ac_word" >&5
7786 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7789 if test -n "$NSGMLS"; then
7790 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
7792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7794 for ac_dir in $ac_dummy; do
7795 test -z "$ac_dir" && ac_dir=.
7796 if test -f $ac_dir/$ac_word; then
7797 ac_cv_prog_NSGMLS="$ac_prog"
7804 NSGMLS="$ac_cv_prog_NSGMLS"
7805 if test -n "$NSGMLS"; then
7806 echo "$ac_t""$NSGMLS" 1>&6
7808 echo "$ac_t""no" 1>&6
7811 test -n "$NSGMLS" && break
7814 # If you don't have nsgmls you won't get very far, so save the cycles.
7815 if test -n "$NSGMLS"; then
7816 for ac_prog in openjade jade
7818 # Extract the first word of "$ac_prog", so it can be a program name with args.
7819 set dummy $ac_prog; ac_word=$2
7820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7821 echo "configure:7822: checking for $ac_word" >&5
7822 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7825 if test -n "$JADE"; then
7826 ac_cv_prog_JADE="$JADE" # Let the user override the test.
7828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7830 for ac_dir in $ac_dummy; do
7831 test -z "$ac_dir" && ac_dir=.
7832 if test -f $ac_dir/$ac_word; then
7833 ac_cv_prog_JADE="$ac_prog"
7840 JADE="$ac_cv_prog_JADE"
7841 if test -n "$JADE"; then
7842 echo "$ac_t""$JADE" 1>&6
7844 echo "$ac_t""no" 1>&6
7847 test -n "$JADE" && break
7851 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
7852 echo "configure:7853: checking for DocBook V3.1" >&5
7853 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7856 cat >conftest.sgml <<EOF
7857 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
7861 <title>random</title>
7863 <title>testsect</title>
7870 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
7871 if test $? -eq 0; then
7872 pgac_cv_check_docbook=yes
7874 pgac_cv_check_docbook=no
7879 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
7881 have_docbook=$pgac_cv_check_docbook
7884 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
7885 echo "configure:7886: checking for DocBook stylesheets" >&5
7886 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7889 if test -n "$DOCBOOKSTYLE"; then
7890 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
7892 for pgac_prefix in /usr /usr/local /opt; do
7893 for pgac_infix in share lib; do
7894 for pgac_postfix in \
7895 sgml/stylesheets/nwalsh-modular \
7896 sgml/stylesheets/docbook \
7897 sgml/docbook/dsssl/modular
7899 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
7900 if test -r "$pgac_candidate/html/docbook.dsl" \
7901 && test -r "$pgac_candidate/print/docbook.dsl"
7903 pgac_cv_path_stylesheets=$pgac_candidate
7912 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
7914 if test -n "$DOCBOOKSTYLE"; then
7915 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
7917 echo "$ac_t""no" 1>&6
7919 for ac_prog in sgmlspl
7921 # Extract the first word of "$ac_prog", so it can be a program name with args.
7922 set dummy $ac_prog; ac_word=$2
7923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7924 echo "configure:7925: checking for $ac_word" >&5
7925 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
7926 echo $ac_n "(cached) $ac_c" 1>&6
7928 if test -n "$SGMLSPL"; then
7929 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
7931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7933 for ac_dir in $ac_dummy; do
7934 test -z "$ac_dir" && ac_dir=.
7935 if test -f $ac_dir/$ac_word; then
7936 ac_cv_prog_SGMLSPL="$ac_prog"
7943 SGMLSPL="$ac_cv_prog_SGMLSPL"
7944 if test -n "$SGMLSPL"; then
7945 echo "$ac_t""$SGMLSPL" 1>&6
7947 echo "$ac_t""no" 1>&6
7950 test -n "$SGMLSPL" && break
7955 # check whether 'test -ef' works
7956 if (test "$srcdir" -ef "$srcdir") >/dev/null 2>&1 ; then
7965 if test "$test_ef_works" = yes ; then
7966 # prepare build tree if outside source tree
7967 if test "$srcdir" -ef . ; then : ; else
7968 abs_top_srcdir=`cd $srcdir && pwd`
7969 echo $ac_n "preparing build tree... $ac_c" 1>&6
7970 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
7971 || { echo "configure: error: failed" 1>&2; exit 1; }
7972 echo "$ac_t""done" 1>&6
7977 cat > confcache <<\EOF
7978 # This file is a shell script that caches the results of configure
7979 # tests run on this system so they can be shared between configure
7980 # scripts and configure runs. It is not useful on other systems.
7981 # If it contains results you don't want to keep, you may remove or edit it.
7983 # By default, configure uses ./config.cache as the cache file,
7984 # creating it if it does not exist already. You can give configure
7985 # the --cache-file=FILE option to use a different cache file; that is
7986 # what configure does when it calls configure scripts in
7987 # subdirectories, so they share the cache.
7988 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7989 # config.status only pays attention to the cache file if you give it the
7990 # --recheck option to rerun configure.
7993 # The following way of writing the cache mishandles newlines in values,
7994 # but we know of no workaround that is simple, portable, and efficient.
7995 # So, don't put newlines in cache variables' values.
7996 # Ultrix sh set writes to stderr and can't be redirected directly,
7997 # and sets the high bit in the cache file unless we assign to the vars.
7999 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8001 # `set' does not quote correctly, so add quotes (double-quote substitution
8002 # turns \\\\ into \\, and sed turns \\ into \).
8004 -e "s/'/'\\\\''/g" \
8005 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8008 # `set' quotes correctly as required by POSIX, so do not add quotes.
8009 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8012 if cmp -s $cache_file confcache; then
8015 if test -w $cache_file; then
8016 echo "updating cache $cache_file"
8017 cat confcache > $cache_file
8019 echo "not updating unwritable cache $cache_file"
8024 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8027 # Let make expand exec_prefix.
8028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8030 # Any assignment to VPATH causes Sun make to only execute
8031 # the first set of double-colon rules, so remove it if not needed.
8032 # If there is a colon in the path, we need to keep it.
8033 if test "x$srcdir" = x.; then
8034 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8037 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8039 DEFS=-DHAVE_CONFIG_H
8041 # Without the "./", some shells look in PATH for config.status.
8042 : ${CONFIG_STATUS=./config.status}
8044 echo creating $CONFIG_STATUS
8045 rm -f $CONFIG_STATUS
8046 cat > $CONFIG_STATUS <<EOF
8048 # Generated automatically by configure.
8049 # Run this file to recreate the current configuration.
8050 # This directory was configured as follows,
8051 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8053 # $0 $ac_configure_args
8055 # Compiler output produced by configure, useful for debugging
8056 # configure, is in ./config.log if it exists.
8058 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8061 case "\$ac_option" in
8062 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8063 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8064 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8065 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8066 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8068 -help | --help | --hel | --he | --h)
8069 echo "\$ac_cs_usage"; exit 0 ;;
8070 *) echo "\$ac_cs_usage"; exit 1 ;;
8074 ac_given_srcdir=$srcdir
8076 trap 'rm -fr `echo "
8080 src/backend/port/Makefile
8081 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8083 cat >> $CONFIG_STATUS <<EOF
8085 # Protect against being on the right side of a sed subst in config.status.
8086 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8087 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8091 s%@CFLAGS@%$CFLAGS%g
8092 s%@CPPFLAGS@%$CPPFLAGS%g
8093 s%@CXXFLAGS@%$CXXFLAGS%g
8094 s%@FFLAGS@%$FFLAGS%g
8096 s%@LDFLAGS@%$LDFLAGS%g
8098 s%@exec_prefix@%$exec_prefix%g
8099 s%@prefix@%$prefix%g
8100 s%@program_transform_name@%$program_transform_name%g
8101 s%@bindir@%$bindir%g
8102 s%@sbindir@%$sbindir%g
8103 s%@libexecdir@%$libexecdir%g
8104 s%@datadir@%$datadir%g
8105 s%@sysconfdir@%$sysconfdir%g
8106 s%@sharedstatedir@%$sharedstatedir%g
8107 s%@localstatedir@%$localstatedir%g
8108 s%@libdir@%$libdir%g
8109 s%@includedir@%$includedir%g
8110 s%@oldincludedir@%$oldincludedir%g
8111 s%@docdir@%$docdir%g
8112 s%@mandir@%$mandir%g
8113 s%@VERSION@%$VERSION%g
8115 s%@host_alias@%$host_alias%g
8116 s%@host_cpu@%$host_cpu%g
8117 s%@host_vendor@%$host_vendor%g
8118 s%@host_os@%$host_os%g
8119 s%@PORTNAME@%$PORTNAME%g
8121 s%@MULTIBYTE@%$MULTIBYTE%g
8122 s%@default_port@%$default_port%g
8123 s%@enable_shared@%$enable_shared%g
8124 s%@enable_rpath@%$enable_rpath%g
8126 s%@EXEEXT@%$EXEEXT%g
8129 s%@autodepend@%$autodepend%g
8130 s%@INCLUDES@%$INCLUDES%g
8131 s%@with_tcl@%$with_tcl%g
8132 s%@with_tk@%$with_tk%g
8133 s%@enable_pltcl_unknown@%$enable_pltcl_unknown%g
8134 s%@with_perl@%$with_perl%g
8135 s%@PYTHON@%$PYTHON%g
8136 s%@python_version@%$python_version%g
8137 s%@python_prefix@%$python_prefix%g
8138 s%@python_execprefix@%$python_execprefix%g
8139 s%@python_configdir@%$python_configdir%g
8140 s%@python_moduledir@%$python_moduledir%g
8141 s%@python_extmakefile@%$python_extmakefile%g
8142 s%@with_python@%$with_python%g
8144 s%@with_java@%$with_java%g
8145 s%@with_krb4@%$with_krb4%g
8146 s%@with_krb5@%$with_krb5%g
8147 s%@krb_srvtab@%$krb_srvtab%g
8148 s%@with_openssl@%$with_openssl%g
8149 s%@enable_odbc@%$enable_odbc%g
8150 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8151 s%@ELF_SYS@%$ELF_SYS%g
8153 s%@CXXCPP@%$CXXCPP%g
8155 s%@with_CXX@%$with_CXX%g
8158 s%@FLEXFLAGS@%$FLEXFLAGS%g
8161 s%@with_gnu_ld@%$with_gnu_ld%g
8162 s%@ld_R_works@%$ld_R_works%g
8163 s%@RANLIB@%$RANLIB%g
8164 s%@LORDER@%$LORDER%g
8168 s%@YFLAGS@%$YFLAGS%g
8170 s%@SNPRINTF@%$SNPRINTF%g
8172 s%@GETRUSAGE@%$GETRUSAGE%g
8173 s%@SRANDOM@%$SRANDOM%g
8174 s%@GETHOSTNAME@%$GETHOSTNAME%g
8175 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8176 s%@INET_ATON@%$INET_ATON%g
8177 s%@STRERROR@%$STRERROR%g
8178 s%@STRDUP@%$STRDUP%g
8179 s%@STRTOL@%$STRTOL%g
8180 s%@STRTOUL@%$STRTOUL%g
8181 s%@STRCASECMP@%$STRCASECMP%g
8182 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8183 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8185 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8186 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8187 s%@NSGMLS@%$NSGMLS%g
8189 s%@have_docbook@%$have_docbook%g
8190 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
8191 s%@SGMLSPL@%$SGMLSPL%g
8192 s%@abs_top_srcdir@%$abs_top_srcdir%g
8197 cat >> $CONFIG_STATUS <<\EOF
8199 # Split the substitutions into bite-sized pieces for seds with
8200 # small command number limits, like on Digital OSF/1 and HP-UX.
8201 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8202 ac_file=1 # Number of current file.
8203 ac_beg=1 # First line for current file.
8204 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8207 while $ac_more_lines; do
8208 if test $ac_beg -gt 1; then
8209 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8211 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8213 if test ! -s conftest.s$ac_file; then
8215 rm -f conftest.s$ac_file
8217 if test -z "$ac_sed_cmds"; then
8218 ac_sed_cmds="sed -f conftest.s$ac_file"
8220 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8222 ac_file=`expr $ac_file + 1`
8224 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8227 if test -z "$ac_sed_cmds"; then
8232 cat >> $CONFIG_STATUS <<EOF
8234 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8237 src/backend/port/Makefile
8240 cat >> $CONFIG_STATUS <<\EOF
8241 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8242 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8244 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8245 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8246 *) ac_file_in="${ac_file}.in" ;;
8249 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8251 # Remove last slash and all that follows it. Not all systems have dirname.
8252 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8253 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8254 # The file is in a subdirectory.
8255 test ! -d "$ac_dir" && mkdir "$ac_dir"
8256 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8257 # A "../" for each directory in $ac_dir_suffix.
8258 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8260 ac_dir_suffix= ac_dots=
8263 case "$ac_given_srcdir" in
8265 if test -z "$ac_dots"; then top_srcdir=.
8266 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8267 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8269 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8270 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8274 echo creating "$ac_file"
8276 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8278 *Makefile*) ac_comsub="1i\\
8279 # $configure_input" ;;
8283 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8285 s%@configure_input@%$configure_input%g
8286 s%@srcdir@%$srcdir%g
8287 s%@top_srcdir@%$top_srcdir%g
8288 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8292 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8293 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8295 # ac_d sets the value in "#define NAME VALUE" lines.
8296 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8297 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8300 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8301 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8302 ac_uB='\([ ]\)%\1#\2define\3'
8305 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8306 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8307 ac_eB='$%\1#\2define\3'
8311 if test "${CONFIG_HEADERS+set}" != set; then
8313 cat >> $CONFIG_STATUS <<EOF
8314 CONFIG_HEADERS="src/include/config.h"
8316 cat >> $CONFIG_STATUS <<\EOF
8318 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8321 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8322 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8323 *) ac_file_in="${ac_file}.in" ;;
8326 echo creating $ac_file
8328 rm -f conftest.frag conftest.in conftest.out
8329 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8330 cat $ac_file_inputs > conftest.in
8334 # Transform confdefs.h into a sed script conftest.vals that substitutes
8335 # the proper values into config.h.in to produce config.h. And first:
8336 # Protect against being on the right side of a sed subst in config.status.
8337 # Protect against being in an unquoted here document in config.status.
8339 cat > conftest.hdr <<\EOF
8342 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8346 sed -n -f conftest.hdr confdefs.h > conftest.vals
8349 # This sed command replaces #undef with comments. This is necessary, for
8350 # example, in the case of _POSIX_SOURCE, which is predefined and required
8351 # on some systems where configure will not decide to define it.
8352 cat >> conftest.vals <<\EOF
8353 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8356 # Break up conftest.vals because some shells have a limit on
8357 # the size of here documents, and old seds have small limits too.
8362 ac_lines=`grep -c . conftest.vals`
8363 # grep -c gives empty output for an empty file on some AIX systems.
8364 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8365 # Write a limited-size here document to conftest.frag.
8366 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8367 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8369 sed -f conftest.frag conftest.in > conftest.out
8371 mv conftest.out conftest.in
8373 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8375 mv conftest.tail conftest.vals
8379 cat >> $CONFIG_STATUS <<\EOF
8380 rm -f conftest.frag conftest.h
8381 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8382 cat conftest.in >> conftest.h
8384 if cmp -s $ac_file conftest.h 2>/dev/null; then
8385 echo "$ac_file is unchanged"
8388 # Remove last slash and all that follows it. Not all systems have dirname.
8389 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8390 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8391 # The file is in a subdirectory.
8392 test ! -d "$ac_dir" && mkdir "$ac_dir"
8395 mv conftest.h $ac_file
8401 cat >> $CONFIG_STATUS <<EOF
8402 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}"
8403 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
8406 cat >> $CONFIG_STATUS <<\EOF
8407 srcdir=$ac_given_srcdir
8408 while test -n "$ac_sources"; do
8409 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8410 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8412 echo "linking $srcdir/$ac_source to $ac_dest"
8414 if test ! -r $srcdir/$ac_source; then
8415 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8419 # Make relative symlinks.
8420 # Remove last slash and all that follows it. Not all systems have dirname.
8421 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8422 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8423 # The dest file is in a subdirectory.
8424 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8425 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8426 # A "../" for each directory in $ac_dest_dir_suffix.
8427 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8429 ac_dest_dir_suffix= ac_dots=
8433 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8434 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8437 # Make a symlink if possible; otherwise try a hard link.
8438 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8439 ln $srcdir/$ac_source $ac_dest; then :
8441 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8445 cat >> $CONFIG_STATUS <<EOF
8448 cat >> $CONFIG_STATUS <<\EOF
8450 # Update timestamp for config.h (see Makefile.global)
8451 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
8455 chmod +x $CONFIG_STATUS
8456 rm -fr confdefs* $ac_clean_files
8457 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1