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
1877 withval=$with_python
1878 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1885 echo "$ac_t""$with_python" 1>&6
1889 # Optionally build the Java/JDBC tools
1891 echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
1892 echo "configure:1893: checking whether to build Java/JDBC tools" >&5
1893 # Check whether --with-java was given
1894 if test x"${with_java+set}" = xset; then
1897 echo "$ac_t""yes" 1>&6
1898 for ac_prog in ant ant.sh ant.bat
1900 # Extract the first word of "$ac_prog", so it can be a program name with args.
1901 set dummy $ac_prog; ac_word=$2
1902 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1903 echo "configure:1904: checking for $ac_word" >&5
1904 if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
1905 echo $ac_n "(cached) $ac_c" 1>&6
1909 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
1912 ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
1915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1917 for ac_dir in $ac_dummy; do
1918 test -z "$ac_dir" && ac_dir=.
1919 if test -f $ac_dir/$ac_word; then
1920 ac_cv_path_ANT="$ac_dir/$ac_word"
1928 ANT="$ac_cv_path_ANT"
1929 if test -n "$ANT"; then
1930 echo "$ac_t""$ANT" 1>&6
1932 echo "$ac_t""no" 1>&6
1935 test -n "$ANT" && break
1938 if test -z "$ANT"; then
1939 { echo "configure: error: Ant is required to build Java components" 1>&2; exit 1; }
1943 echo "$ac_t""no" 1>&6
1947 { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
1952 echo "$ac_t""no" 1>&6
1960 # Check whether --with-krb4 was given
1961 if test x"${with_krb4+set}" = xset; then
1964 krb4_prefix=/usr/athena
1972 krb4_prefix=$withval
1979 if test "$with_krb4" = yes; then
1981 echo "$ac_t""building with Kerberos 4 support" 1>&6
1982 cat >> confdefs.h <<\EOF
1987 if test -d "$krb4_prefix/include"; then
1988 INCLUDES="$INCLUDES -I$krb4_prefix/include"
1990 if test -d "$krb4_prefix/lib"; then
1991 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
1994 krb_srvtab="/etc/srvtab"
2005 # Check whether --with-krb5 was given
2006 if test x"${with_krb5+set}" = xset; then
2009 krb5_prefix=/usr/athena
2017 krb5_prefix=$withval
2024 if test "$with_krb5" = yes; then
2026 echo "$ac_t""building with Kerberos 5 support" 1>&6
2027 cat >> confdefs.h <<\EOF
2032 if test -d "$krb5_prefix/include"; then
2033 INCLUDES="$INCLUDES -I$krb5_prefix/include"
2035 if test -d "$krb5_prefix/lib"; then
2036 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
2039 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2047 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2048 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2049 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2056 # Kerberos configuration parameters
2058 # Check whether --with-krb-srvnam was given
2059 if test x"${with_krb_srvnam+set}" = xset; then
2060 case $with_krb_srvnam in
2062 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2065 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2067 esac # $with_krb_srvnam
2069 with_krb_srvnam="postgres"
2071 cat >> confdefs.h <<EOF
2072 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2081 # Check whether --with-openssl was given
2082 if test x"${with_openssl+set}" = xset; then
2083 case $with_openssl in
2085 openssl_prefix=/usr/local/ssl
2091 withval=$with_openssl
2093 openssl_prefix=$withval
2095 esac # $with_openssl
2100 if test "$with_openssl" = yes; then
2102 echo "$ac_t""building with OpenSSL support" 1>&6
2103 cat >> confdefs.h <<\EOF
2108 if test -d "${openssl_prefix}/include" ; then
2109 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2111 if test -d "${openssl_prefix}/lib" ; then
2112 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2123 # Optionally enable the building of the ODBC driver
2127 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2128 enable_odbc=$with_odbc
2131 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2132 echo "configure:2133: checking whether to build the ODBC driver" >&5
2133 # Check whether --enable-odbc was given
2134 if test x"${enable_odbc+set}" = xset; then
2135 case $enable_odbc in
2143 enableval=$enable_odbc
2144 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2151 echo "$ac_t""$enable_odbc" 1>&6
2155 # Allow for overriding the default location of the odbcinst.ini
2156 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2157 # Check whether --with-odbcinst was given
2158 if test x"${with_odbcinst+set}" = xset; then
2159 case $with_odbcinst in
2161 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2164 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2167 withval=$with_odbcinst
2168 odbcinst_ini_dir=$withval
2170 esac # $with_odbcinst
2172 odbcinst_ini_dir="\${sysconfdir}"
2178 # Assume system is ELF if it predefines __ELF__ as 1,
2179 # otherwise believe host_os based default.
2181 freebsd1*|freebsd2*) elf=yes;;
2184 cat > conftest.$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2193 egrep "yes" >/dev/null 2>&1; then
2198 if test "X$elf" = "Xyes" ; then
2211 # Optionally build C++ code (i.e., libpq++)
2213 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2214 echo "configure:2215: checking whether to build C++ modules" >&5
2215 # Check whether --with-CXX was given
2216 if test x"${with_CXX+set}" = xset; then
2234 if test "$with_CXX" = yes; then
2236 echo "$ac_t""yes" 1>&6
2238 # If the user has specified CXXFLAGS in the environment, leave it
2239 # alone, else use a default.
2241 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2242 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2244 # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2247 echo "configure:2248: checking for $ac_word" >&5
2248 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 if test -n "$CXX"; then
2252 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2256 for ac_dir in $ac_dummy; do
2257 test -z "$ac_dir" && ac_dir=.
2258 if test -f $ac_dir/$ac_word; then
2259 ac_cv_prog_CXX="$ac_prog"
2266 CXX="$ac_cv_prog_CXX"
2267 if test -n "$CXX"; then
2268 echo "$ac_t""$CXX" 1>&6
2270 echo "$ac_t""no" 1>&6
2273 test -n "$CXX" && break
2275 test -n "$CXX" || CXX="gcc"
2278 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2279 echo "configure:2280: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2282 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2283 ac_cpp='$CXXCPP $CPPFLAGS'
2284 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2285 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2286 cross_compiling=$ac_cv_prog_cxx_cross
2288 cat > conftest.$ac_ext << EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2293 int main(){return(0);}
2295 if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2296 ac_cv_prog_cxx_works=yes
2297 # If we can't run a trivial program, we are probably using a cross compiler.
2298 if (./conftest; exit) 2>/dev/null; then
2299 ac_cv_prog_cxx_cross=no
2301 ac_cv_prog_cxx_cross=yes
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2306 ac_cv_prog_cxx_works=no
2310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2313 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2314 cross_compiling=$ac_cv_prog_cc_cross
2316 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2317 if test $ac_cv_prog_cxx_works = no; then
2318 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2320 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2321 echo "configure:2322: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2322 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2323 cross_compiling=$ac_cv_prog_cxx_cross
2325 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2326 echo "configure:2327: checking whether we are using GNU C++" >&5
2327 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.C <<EOF
2335 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2342 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2344 if test $ac_cv_prog_gxx = yes; then
2350 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2351 ac_save_CXXFLAGS="$CXXFLAGS"
2353 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2354 echo "configure:2355: checking whether ${CXX-g++} accepts -g" >&5
2355 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 echo 'void f(){}' > conftest.cc
2359 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2360 ac_cv_prog_cxx_g=yes
2368 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2369 if test "$ac_test_CXXFLAGS" = set; then
2370 CXXFLAGS="$ac_save_CXXFLAGS"
2371 elif test $ac_cv_prog_cxx_g = yes; then
2372 if test "$GXX" = yes; then
2378 if test "$GXX" = yes; then
2385 if test "$has_environ_CXXFLAGS" != yes; then
2386 if test "$GXX" = yes; then
2390 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2391 unixware) CXXFLAGS='-O' ;;
2396 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2397 CXXFLAGS="$CXXFLAGS -g"
2399 echo "using CXXFLAGS=$CXXFLAGS"
2401 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2402 echo "configure:2403: checking how to run the C++ preprocessor" >&5
2403 if test -z "$CXXCPP"; then
2404 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2408 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2409 ac_cpp='$CXXCPP $CPPFLAGS'
2410 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2411 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2412 cross_compiling=$ac_cv_prog_cxx_cross
2413 CXXCPP="${CXX-g++} -E"
2414 cat > conftest.$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2420 { (eval echo configure:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2422 if test -z "$ac_err"; then
2426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2432 ac_cv_prog_CXXCPP="$CXXCPP"
2434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2438 cross_compiling=$ac_cv_prog_cc_cross
2441 CXXCPP="$ac_cv_prog_CXXCPP"
2442 echo "$ac_t""$CXXCPP" 1>&6
2447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2448 ac_cpp='$CXXCPP $CPPFLAGS'
2449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2451 cross_compiling=$ac_cv_prog_cxx_cross
2453 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2454 echo $ac_n "checking for string""... $ac_c" 1>&6
2455 echo "configure:2456: checking for string" >&5
2456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2465 { (eval echo configure:2466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2467 if test -z "$ac_err"; then
2469 eval "ac_cv_header_$ac_safe=yes"
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2475 eval "ac_cv_header_$ac_safe=no"
2479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2480 echo "$ac_t""yes" 1>&6
2481 cat >> confdefs.h <<\EOF
2482 #define HAVE_CXX_STRING_HEADER 1
2486 echo "$ac_t""no" 1>&6
2490 if test x"$ac_cv_header_string" != xyes ; then
2491 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2492 echo "configure:2493: checking for class string in <string.h>" >&5
2493 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2507 if { (eval echo configure:2508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2509 pgac_cv_class_string_in_string_h=yes
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 pgac_cv_class_string_in_string_h=no
2519 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2521 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2522 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2529 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2530 cross_compiling=$ac_cv_prog_cc_cross
2533 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2534 echo "configure:2535: checking for namespace std in C++" >&5
2535 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2541 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2542 ac_cpp='$CXXCPP $CPPFLAGS'
2543 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2544 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2545 cross_compiling=$ac_cv_prog_cxx_cross
2547 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2552 #ifdef HAVE_CXX_STRING_HEADER
2555 using namespace std;
2561 if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2563 pgac_cv_cxx_namespace_std=yes
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2568 pgac_cv_cxx_namespace_std=no
2572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2576 cross_compiling=$ac_cv_prog_cc_cross
2580 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2582 if test $pgac_cv_cxx_namespace_std = yes ; then
2583 cat >> confdefs.h <<\EOF
2584 #define HAVE_NAMESPACE_STD 1
2590 echo "$ac_t""no" 1>&6
2595 CPPFLAGS="$CPPFLAGS $INCLUDES"
2596 LDFLAGS="$LDFLAGS $LIBDIRS"
2598 echo "using CPPFLAGS=$CPPFLAGS"
2599 echo "using LDFLAGS=$LDFLAGS"
2602 for ac_prog in mawk gawk nawk awk
2604 # Extract the first word of "$ac_prog", so it can be a program name with args.
2605 set dummy $ac_prog; ac_word=$2
2606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2607 echo "configure:2608: checking for $ac_word" >&5
2608 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 if test -n "$AWK"; then
2612 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2616 for ac_dir in $ac_dummy; do
2617 test -z "$ac_dir" && ac_dir=.
2618 if test -f $ac_dir/$ac_word; then
2619 ac_cv_prog_AWK="$ac_prog"
2626 AWK="$ac_cv_prog_AWK"
2627 if test -n "$AWK"; then
2628 echo "$ac_t""$AWK" 1>&6
2630 echo "$ac_t""no" 1>&6
2633 test -n "$AWK" && break
2636 echo $ac_n "checking for flex""... $ac_c" 1>&6
2637 echo "configure:2638: checking for flex" >&5
2638 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 # Let the user override the test
2642 if test -n "$FLEX"; then
2643 pgac_cv_path_flex=$FLEX
2647 for pgac_dir in $PATH; do
2648 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2651 for pgac_prog in flex lex; do
2652 pgac_candidate="$pgac_dir/$pgac_prog"
2653 if test -f "$pgac_candidate" \
2654 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2656 echo '%%' > conftest.l
2657 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2658 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2659 pgac_broken_flex=$pgac_candidate
2663 pgac_cv_path_flex=$pgac_candidate
2671 : ${pgac_cv_path_flex=no}
2676 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2677 if test x"$pgac_cv_path_flex" = x"no"; then
2678 if test -n "$pgac_broken_flex"; then
2679 echo "configure: warning:
2680 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2681 *** should get version 2.5.4 or later." 1>&2
2684 echo "configure: warning:
2685 *** Without Flex you will not be able to build PostgreSQL from CVS or
2686 *** change any of the scanner definition files. You can obtain Flex from
2687 *** a GNU mirror site. (If you are using the official distribution of
2688 *** PostgreSQL then you do not need to worry about this because the Flex
2689 *** output is pre-generated.)" 1>&2
2692 if test x"$pgac_cv_path_flex" = x"no"; then
2695 FLEX=$pgac_cv_path_flex
2701 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2702 echo "configure:2703: checking whether ln -s works" >&5
2703 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2707 if ln -s X conftestdata 2>/dev/null
2710 ac_cv_prog_LN_S="ln -s"
2715 LN_S="$ac_cv_prog_LN_S"
2716 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2717 echo "$ac_t""yes" 1>&6
2719 echo "$ac_t""no" 1>&6
2722 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2723 if test "${with_gnu_ld+set}" = set; then
2724 withval="$with_gnu_ld"
2725 test "$withval" = no || with_gnu_ld=yes
2731 if test "$ac_cv_prog_gcc" = yes; then
2732 # Check if gcc -print-prog-name=ld gives a path.
2733 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2734 echo "configure:2735: checking for ld used by GCC" >&5
2737 # gcc leaves a trailing carriage return which upsets mingw
2738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2743 # Accept absolute paths.
2744 [\\/]* | [A-Za-z]:[\\/]*)
2745 re_direlt='/[^/][^/]*/\.\./'
2746 # Canonicalize the path of ld
2747 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2748 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2749 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2751 test -z "$LD" && LD="$ac_prog"
2754 # If it fails, then pretend we aren't using GCC.
2758 # If it is relative, then search for the first ld in PATH.
2762 elif test "$with_gnu_ld" = yes; then
2763 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2764 echo "configure:2765: checking for GNU ld" >&5
2766 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2767 echo "configure:2768: checking for non-GNU ld" >&5
2769 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2772 if test -z "$LD"; then
2773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2774 for ac_dir in $PATH; do
2775 test -z "$ac_dir" && ac_dir=.
2776 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2777 ac_cv_path_LD="$ac_dir/$ac_prog"
2778 # Check to see if the program is GNU ld. I'd rather use --version,
2779 # but apparently some GNU ld's only accept -v.
2780 # Break only if it was the GNU/non-GNU ld that we prefer.
2781 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2782 test "$with_gnu_ld" != no && break
2784 test "$with_gnu_ld" != yes && break
2790 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2795 if test -n "$LD"; then
2796 echo "$ac_t""$LD" 1>&6
2798 echo "$ac_t""no" 1>&6
2800 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2801 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2802 echo "configure:2803: checking if the linker ($LD) is GNU ld" >&5
2803 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2807 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2808 ac_cv_prog_gnu_ld=yes
2810 ac_cv_prog_gnu_ld=no
2814 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2815 with_gnu_ld=$ac_cv_prog_gnu_ld
2820 case $host_os in sysv5uw*)
2821 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2822 echo "configure:2823: checking whether ld -R works" >&5
2823 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2827 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2836 if { (eval echo configure:2837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2838 pgac_cv_prog_ld_R=yes
2840 echo "configure: failed program was:" >&5
2841 cat conftest.$ac_ext >&5
2843 pgac_cv_prog_ld_R=no
2846 LDFLAGS=$pgac_save_LDFLAGS
2850 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2851 ld_R_works=$pgac_cv_prog_ld_R
2854 # Extract the first word of "ranlib", so it can be a program name with args.
2855 set dummy ranlib; ac_word=$2
2856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_word" >&5
2858 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 if test -n "$RANLIB"; then
2862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2866 for ac_dir in $ac_dummy; do
2867 test -z "$ac_dir" && ac_dir=.
2868 if test -f $ac_dir/$ac_word; then
2869 ac_cv_prog_RANLIB="ranlib"
2874 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2877 RANLIB="$ac_cv_prog_RANLIB"
2878 if test -n "$RANLIB"; then
2879 echo "$ac_t""$RANLIB" 1>&6
2881 echo "$ac_t""no" 1>&6
2884 for ac_prog in lorder
2886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2889 echo "configure:2890: checking for $ac_word" >&5
2890 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 if test -n "$LORDER"; then
2894 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
2896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2898 for ac_dir in $ac_dummy; do
2899 test -z "$ac_dir" && ac_dir=.
2900 if test -f $ac_dir/$ac_word; then
2901 ac_cv_prog_LORDER="$ac_prog"
2908 LORDER="$ac_cv_prog_LORDER"
2909 if test -n "$LORDER"; then
2910 echo "$ac_t""$LORDER" 1>&6
2912 echo "$ac_t""no" 1>&6
2915 test -n "$LORDER" && break
2918 # Extract the first word of "tar", so it can be a program name with args.
2919 set dummy tar; ac_word=$2
2920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2921 echo "configure:2922: checking for $ac_word" >&5
2922 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2927 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2930 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
2933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2935 for ac_dir in $ac_dummy; do
2936 test -z "$ac_dir" && ac_dir=.
2937 if test -f $ac_dir/$ac_word; then
2938 ac_cv_path_TAR="$ac_dir/$ac_word"
2946 TAR="$ac_cv_path_TAR"
2947 if test -n "$TAR"; then
2948 echo "$ac_t""$TAR" 1>&6
2950 echo "$ac_t""no" 1>&6
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_word" >&5
2959 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 if test -n "$PERL"; then
2963 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2967 for ac_dir in $ac_dummy; do
2968 test -z "$ac_dir" && ac_dir=.
2969 if test -f $ac_dir/$ac_word; then
2970 ac_cv_prog_PERL="$ac_prog"
2977 PERL="$ac_cv_prog_PERL"
2978 if test -n "$PERL"; then
2979 echo "$ac_t""$PERL" 1>&6
2981 echo "$ac_t""no" 1>&6
2984 test -n "$PERL" && break
2988 for ac_prog in 'bison -y'
2990 # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2993 echo "configure:2994: checking for $ac_word" >&5
2994 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2995 echo $ac_n "(cached) $ac_c" 1>&6
2997 if test -n "$YACC"; then
2998 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3002 for ac_dir in $ac_dummy; do
3003 test -z "$ac_dir" && ac_dir=.
3004 if test -f $ac_dir/$ac_word; then
3005 ac_cv_prog_YACC="$ac_prog"
3012 YACC="$ac_cv_prog_YACC"
3013 if test -n "$YACC"; then
3014 echo "$ac_t""$YACC" 1>&6
3016 echo "$ac_t""no" 1>&6
3019 test -n "$YACC" && break
3022 if test -z "$YACC"; then
3023 echo "configure: warning:
3024 *** Without Bison you will not be able to build PostgreSQL from CVS or
3025 *** change any of the parser definition files. You can obtain Bison from
3026 *** a GNU mirror site. (If you are using the official distribution of
3027 *** PostgreSQL then you do not need to worry about this because the Bison
3028 *** output is pre-generated.) To use a different yacc program (possible,
3029 *** but not recommended), set the environment variable YACC before running
3030 *** 'configure'." 1>&2
3034 if test "$with_tk" = yes; then
3035 # Extract the first word of "wish", so it can be a program name with args.
3036 set dummy wish; ac_word=$2
3037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3038 echo "configure:3039: checking for $ac_word" >&5
3039 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3044 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3047 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3052 for ac_dir in $ac_dummy; do
3053 test -z "$ac_dir" && ac_dir=.
3054 if test -f $ac_dir/$ac_word; then
3055 ac_cv_path_WISH="$ac_dir/$ac_word"
3063 WISH="$ac_cv_path_WISH"
3064 if test -n "$WISH"; then
3065 echo "$ac_t""$WISH" 1>&6
3067 echo "$ac_t""no" 1>&6
3070 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3073 if test "$with_python" = yes; then
3074 # Extract the first word of "python", so it can be a program name with args.
3075 set dummy python; ac_word=$2
3076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3077 echo "configure:3078: checking for $ac_word" >&5
3078 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3083 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3086 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
3089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3091 for ac_dir in $ac_dummy; do
3092 test -z "$ac_dir" && ac_dir=.
3093 if test -f $ac_dir/$ac_word; then
3094 ac_cv_path_PYTHON="$ac_dir/$ac_word"
3102 PYTHON="$ac_cv_path_PYTHON"
3103 if test -n "$PYTHON"; then
3104 echo "$ac_t""$PYTHON" 1>&6
3106 echo "$ac_t""no" 1>&6
3109 if test x"$PYTHON" = x""; then
3110 { echo "configure: error: Python not found" 1>&2; exit 1; }
3114 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
3115 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
3116 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
3117 python_configdir="${python_execprefix}/lib/python${python_version}/config"
3118 python_moduledir="${python_prefix}/lib/python${python_version}"
3119 python_includedir="${python_prefix}/include/python${python_version}"
3120 python_dynlibdir="${python_execprefix}/lib/python${python_version}/lib-dynload"
3124 echo $ac_n "checking for makefile to build Python module""... $ac_c" 1>&6
3125 echo "configure:3126: checking for makefile to build Python module" >&5
3126 python_makefile_pre_in="${python_configdir}/Makefile.pre.in"
3128 if test -f "${python_makefile_pre_in}" ; then
3129 echo "$ac_t""${python_makefile_pre_in}" 1>&6
3131 echo "$ac_t""no" 1>&6
3132 { echo "configure: error: The file
3133 ${python_makefile_pre_in}
3134 required to build Python modules does not exist. Make sure that you have
3135 a full Python installation and that this is the right location." 1>&2; exit 1; }
3140 echo $ac_n "checking how to link an embedded Python application""... $ac_c" 1>&6
3141 echo "configure:3142: checking how to link an embedded Python application" >&5
3143 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3144 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
3145 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
3146 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3147 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3149 pgac_tab=" " # tab character
3150 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
3152 echo "$ac_t""${python_libspec}" 1>&6
3162 echo $ac_n "checking for readline""... $ac_c" 1>&6
3163 echo "configure:3164: checking for readline" >&5
3165 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 pgac_cv_check_readline=no
3169 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3170 for pgac_rllib in -lreadline -ledit ; do
3171 pgac_save_LIBS=$LIBS
3172 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3176 /* Override any gcc2 internal prototype to avoid an error. */
3177 /* We use char because int might match the return type of a gcc2
3178 builtin and then its argument prototype would still apply. */
3185 if { (eval echo configure:3186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3187 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2
3189 echo "configure: failed program was:" >&5
3190 cat conftest.$ac_ext >&5
3193 LIBS=$pgac_save_LIBS
3196 LIBS=$pgac_save_LIBS
3200 if test "$pgac_cv_check_readline" != no ; then
3201 cat >> confdefs.h <<\EOF
3202 #define HAVE_LIBREADLINE 1
3205 LIBS="$pgac_cv_check_readline $LIBS"
3206 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3208 echo "$ac_t""no" 1>&6
3211 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3212 echo "configure:3213: checking for library containing using_history" >&5
3213 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 ac_func_search_save_LIBS="$LIBS"
3217 ac_cv_search_using_history="no"
3218 cat > conftest.$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3221 /* Override any gcc2 internal prototype to avoid an error. */
3222 /* We use char because int might match the return type of a gcc2
3223 builtin and then its argument prototype would still apply. */
3224 char using_history();
3230 if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3232 ac_cv_search_using_history="none required"
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3238 test "$ac_cv_search_using_history" = "no" && for i in history; do
3239 LIBS="-l$i $ac_func_search_save_LIBS"
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 /* Override any gcc2 internal prototype to avoid an error. */
3244 /* We use char because int might match the return type of a gcc2
3245 builtin and then its argument prototype would still apply. */
3246 char using_history();
3252 if { (eval echo configure:3253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3254 ac_cv_search_using_history="-l$i"
3257 echo "configure: failed program was:" >&5
3258 cat conftest.$ac_ext >&5
3262 LIBS="$ac_func_search_save_LIBS"
3265 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3266 if test "$ac_cv_search_using_history" != "no"; then
3267 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3268 cat >> confdefs.h <<\EOF
3269 #define HAVE_HISTORY_FUNCTIONS 1
3276 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3278 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3279 echo "configure:3280: checking for main in -lbsd" >&5
3280 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 ac_save_LIBS="$LIBS"
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3294 if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3296 eval "ac_cv_lib_$ac_lib_var=yes"
3298 echo "configure: failed program was:" >&5
3299 cat conftest.$ac_ext >&5
3301 eval "ac_cv_lib_$ac_lib_var=no"
3304 LIBS="$ac_save_LIBS"
3307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3308 echo "$ac_t""yes" 1>&6
3309 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3311 cat >> confdefs.h <<EOF
3312 #define $ac_tr_lib 1
3318 echo "$ac_t""no" 1>&6
3322 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3323 echo "configure:3324: checking for setproctitle in -lutil" >&5
3324 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3325 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 ac_save_LIBS="$LIBS"
3330 cat > conftest.$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3333 /* Override any gcc2 internal prototype to avoid an error. */
3334 /* We use char because int might match the return type of a gcc2
3335 builtin and then its argument prototype would still apply. */
3336 char setproctitle();
3342 if { (eval echo configure:3343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3344 eval "ac_cv_lib_$ac_lib_var=yes"
3346 echo "configure: failed program was:" >&5
3347 cat conftest.$ac_ext >&5
3349 eval "ac_cv_lib_$ac_lib_var=no"
3352 LIBS="$ac_save_LIBS"
3355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3356 echo "$ac_t""yes" 1>&6
3357 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3358 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3359 cat >> confdefs.h <<EOF
3360 #define $ac_tr_lib 1
3366 echo "$ac_t""no" 1>&6
3369 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3370 echo "configure:3371: checking for main in -lm" >&5
3371 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 ac_save_LIBS="$LIBS"
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3385 if { (eval echo configure:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3387 eval "ac_cv_lib_$ac_lib_var=yes"
3389 echo "configure: failed program was:" >&5
3390 cat conftest.$ac_ext >&5
3392 eval "ac_cv_lib_$ac_lib_var=no"
3395 LIBS="$ac_save_LIBS"
3398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3399 echo "$ac_t""yes" 1>&6
3400 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3402 cat >> confdefs.h <<EOF
3403 #define $ac_tr_lib 1
3409 echo "$ac_t""no" 1>&6
3412 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3413 echo "configure:3414: checking for main in -ldl" >&5
3414 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 ac_save_LIBS="$LIBS"
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3428 if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3430 eval "ac_cv_lib_$ac_lib_var=yes"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3435 eval "ac_cv_lib_$ac_lib_var=no"
3438 LIBS="$ac_save_LIBS"
3441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3445 cat >> confdefs.h <<EOF
3446 #define $ac_tr_lib 1
3452 echo "$ac_t""no" 1>&6
3455 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3456 echo "configure:3457: checking for main in -lsocket" >&5
3457 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 ac_save_LIBS="$LIBS"
3462 LIBS="-lsocket $LIBS"
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3471 if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3473 eval "ac_cv_lib_$ac_lib_var=yes"
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3478 eval "ac_cv_lib_$ac_lib_var=no"
3481 LIBS="$ac_save_LIBS"
3484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3485 echo "$ac_t""yes" 1>&6
3486 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3488 cat >> confdefs.h <<EOF
3489 #define $ac_tr_lib 1
3492 LIBS="-lsocket $LIBS"
3495 echo "$ac_t""no" 1>&6
3498 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3499 echo "configure:3500: checking for main in -lnsl" >&5
3500 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 ac_save_LIBS="$LIBS"
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3516 eval "ac_cv_lib_$ac_lib_var=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 eval "ac_cv_lib_$ac_lib_var=no"
3524 LIBS="$ac_save_LIBS"
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3529 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3530 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3531 cat >> confdefs.h <<EOF
3532 #define $ac_tr_lib 1
3538 echo "$ac_t""no" 1>&6
3541 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3542 echo "configure:3543: checking for main in -lipc" >&5
3543 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 ac_save_LIBS="$LIBS"
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3557 if { (eval echo configure:3558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3559 eval "ac_cv_lib_$ac_lib_var=yes"
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3564 eval "ac_cv_lib_$ac_lib_var=no"
3567 LIBS="$ac_save_LIBS"
3570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3571 echo "$ac_t""yes" 1>&6
3572 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3573 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3574 cat >> confdefs.h <<EOF
3575 #define $ac_tr_lib 1
3581 echo "$ac_t""no" 1>&6
3584 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3585 echo "configure:3586: checking for main in -lIPC" >&5
3586 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3587 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3590 ac_save_LIBS="$LIBS"
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3602 eval "ac_cv_lib_$ac_lib_var=yes"
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3607 eval "ac_cv_lib_$ac_lib_var=no"
3610 LIBS="$ac_save_LIBS"
3613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3614 echo "$ac_t""yes" 1>&6
3615 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3616 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3617 cat >> confdefs.h <<EOF
3618 #define $ac_tr_lib 1
3624 echo "$ac_t""no" 1>&6
3627 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3628 echo "configure:3629: checking for main in -llc" >&5
3629 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 ac_save_LIBS="$LIBS"
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3645 eval "ac_cv_lib_$ac_lib_var=yes"
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3650 eval "ac_cv_lib_$ac_lib_var=no"
3653 LIBS="$ac_save_LIBS"
3656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3659 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3660 cat >> confdefs.h <<EOF
3661 #define $ac_tr_lib 1
3667 echo "$ac_t""no" 1>&6
3670 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3671 echo "configure:3672: checking for main in -ldld" >&5
3672 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 ac_save_LIBS="$LIBS"
3678 cat > conftest.$ac_ext <<EOF
3679 #line 3680 "configure"
3680 #include "confdefs.h"
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3688 eval "ac_cv_lib_$ac_lib_var=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3693 eval "ac_cv_lib_$ac_lib_var=no"
3696 LIBS="$ac_save_LIBS"
3699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3701 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3702 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3703 cat >> confdefs.h <<EOF
3704 #define $ac_tr_lib 1
3710 echo "$ac_t""no" 1>&6
3713 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3714 echo "configure:3715: checking for main in -lld" >&5
3715 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3716 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3717 echo $ac_n "(cached) $ac_c" 1>&6
3719 ac_save_LIBS="$LIBS"
3721 cat > conftest.$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3731 eval "ac_cv_lib_$ac_lib_var=yes"
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3736 eval "ac_cv_lib_$ac_lib_var=no"
3739 LIBS="$ac_save_LIBS"
3742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3744 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3746 cat >> confdefs.h <<EOF
3747 #define $ac_tr_lib 1
3753 echo "$ac_t""no" 1>&6
3756 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3757 echo "configure:3758: checking for main in -lcompat" >&5
3758 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 ac_save_LIBS="$LIBS"
3763 LIBS="-lcompat $LIBS"
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3772 if { (eval echo configure:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3774 eval "ac_cv_lib_$ac_lib_var=yes"
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3779 eval "ac_cv_lib_$ac_lib_var=no"
3782 LIBS="$ac_save_LIBS"
3785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3787 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3788 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3789 cat >> confdefs.h <<EOF
3790 #define $ac_tr_lib 1
3793 LIBS="-lcompat $LIBS"
3796 echo "$ac_t""no" 1>&6
3799 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3800 echo "configure:3801: checking for main in -lBSD" >&5
3801 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3805 ac_save_LIBS="$LIBS"
3807 cat > conftest.$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3815 if { (eval echo configure:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3817 eval "ac_cv_lib_$ac_lib_var=yes"
3819 echo "configure: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3822 eval "ac_cv_lib_$ac_lib_var=no"
3825 LIBS="$ac_save_LIBS"
3828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3829 echo "$ac_t""yes" 1>&6
3830 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3831 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3832 cat >> confdefs.h <<EOF
3833 #define $ac_tr_lib 1
3839 echo "$ac_t""no" 1>&6
3842 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3843 echo "configure:3844: checking for main in -lgen" >&5
3844 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 ac_save_LIBS="$LIBS"
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3858 if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3860 eval "ac_cv_lib_$ac_lib_var=yes"
3862 echo "configure: failed program was:" >&5
3863 cat conftest.$ac_ext >&5
3865 eval "ac_cv_lib_$ac_lib_var=no"
3868 LIBS="$ac_save_LIBS"
3871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3872 echo "$ac_t""yes" 1>&6
3873 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3875 cat >> confdefs.h <<EOF
3876 #define $ac_tr_lib 1
3882 echo "$ac_t""no" 1>&6
3885 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3886 echo "configure:3887: checking for main in -lPW" >&5
3887 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 ac_save_LIBS="$LIBS"
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3903 eval "ac_cv_lib_$ac_lib_var=yes"
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 eval "ac_cv_lib_$ac_lib_var=no"
3911 LIBS="$ac_save_LIBS"
3914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3915 echo "$ac_t""yes" 1>&6
3916 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3918 cat >> confdefs.h <<EOF
3919 #define $ac_tr_lib 1
3925 echo "$ac_t""no" 1>&6
3928 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
3929 echo "configure:3930: checking for main in -lresolv" >&5
3930 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
3931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3934 ac_save_LIBS="$LIBS"
3935 LIBS="-lresolv $LIBS"
3936 cat > conftest.$ac_ext <<EOF
3937 #line 3938 "configure"
3938 #include "confdefs.h"
3944 if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3946 eval "ac_cv_lib_$ac_lib_var=yes"
3948 echo "configure: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3951 eval "ac_cv_lib_$ac_lib_var=no"
3954 LIBS="$ac_save_LIBS"
3957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3958 echo "$ac_t""yes" 1>&6
3959 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3961 cat >> confdefs.h <<EOF
3962 #define $ac_tr_lib 1
3965 LIBS="-lresolv $LIBS"
3968 echo "$ac_t""no" 1>&6
3971 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
3972 echo "configure:3973: checking for main in -lunix" >&5
3973 ac_lib_var=`echo unix'_'main | sed 'y%./+-%__p_%'`
3974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3977 ac_save_LIBS="$LIBS"
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3989 eval "ac_cv_lib_$ac_lib_var=yes"
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 eval "ac_cv_lib_$ac_lib_var=no"
3997 LIBS="$ac_save_LIBS"
4000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4001 echo "$ac_t""yes" 1>&6
4002 ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4003 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4004 cat >> confdefs.h <<EOF
4005 #define $ac_tr_lib 1
4011 echo "$ac_t""no" 1>&6
4015 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4016 echo "configure:4017: checking for library containing crypt" >&5
4017 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4020 ac_func_search_save_LIBS="$LIBS"
4021 ac_cv_search_crypt="no"
4022 cat > conftest.$ac_ext <<EOF
4023 #line 4024 "configure"
4024 #include "confdefs.h"
4025 /* Override any gcc2 internal prototype to avoid an error. */
4026 /* We use char because int might match the return type of a gcc2
4027 builtin and then its argument prototype would still apply. */
4034 if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4036 ac_cv_search_crypt="none required"
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4042 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4043 LIBS="-l$i $ac_func_search_save_LIBS"
4044 cat > conftest.$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4056 if { (eval echo configure:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4058 ac_cv_search_crypt="-l$i"
4061 echo "configure: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4066 LIBS="$ac_func_search_save_LIBS"
4069 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4070 if test "$ac_cv_search_crypt" != "no"; then
4071 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4076 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4077 echo "configure:4078: checking for __inet_ntoa in -lbind" >&5
4078 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 ac_save_LIBS="$LIBS"
4084 cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 /* Override any gcc2 internal prototype to avoid an error. */
4088 /* We use char because int might match the return type of a gcc2
4089 builtin and then its argument prototype would still apply. */
4096 if { (eval echo configure:4097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4098 eval "ac_cv_lib_$ac_lib_var=yes"
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4103 eval "ac_cv_lib_$ac_lib_var=no"
4106 LIBS="$ac_save_LIBS"
4109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4110 echo "$ac_t""yes" 1>&6
4111 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4112 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4113 cat >> confdefs.h <<EOF
4114 #define $ac_tr_lib 1
4120 echo "$ac_t""no" 1>&6
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 egrep "z_streamp" >/dev/null 2>&1; then
4132 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4133 echo "configure:4134: checking for inflate in -lz" >&5
4134 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4138 ac_save_LIBS="$LIBS"
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4143 /* Override any gcc2 internal prototype to avoid an error. */
4144 /* We use char because int might match the return type of a gcc2
4145 builtin and then its argument prototype would still apply. */
4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4154 eval "ac_cv_lib_$ac_lib_var=yes"
4156 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4159 eval "ac_cv_lib_$ac_lib_var=no"
4162 LIBS="$ac_save_LIBS"
4165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4166 echo "$ac_t""yes" 1>&6
4167 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4169 cat >> confdefs.h <<EOF
4170 #define $ac_tr_lib 1
4176 echo "$ac_t""no" 1>&6
4185 if test "$with_krb4" = yes ; then
4186 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4187 echo "configure:4188: checking for des_encrypt in -ldes" >&5
4188 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 ac_save_LIBS="$LIBS"
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* Override any gcc2 internal prototype to avoid an error. */
4198 /* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4206 if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208 eval "ac_cv_lib_$ac_lib_var=yes"
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4213 eval "ac_cv_lib_$ac_lib_var=no"
4216 LIBS="$ac_save_LIBS"
4219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4220 echo "$ac_t""yes" 1>&6
4221 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4222 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4223 cat >> confdefs.h <<EOF
4224 #define $ac_tr_lib 1
4230 echo "$ac_t""no" 1>&6
4231 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4234 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4235 echo "configure:4236: checking for krb_sendauth in -lkrb" >&5
4236 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 ac_save_LIBS="$LIBS"
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4245 /* Override any gcc2 internal prototype to avoid an error. */
4246 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4248 char krb_sendauth();
4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4256 eval "ac_cv_lib_$ac_lib_var=yes"
4258 echo "configure: failed program was:" >&5
4259 cat conftest.$ac_ext >&5
4261 eval "ac_cv_lib_$ac_lib_var=no"
4264 LIBS="$ac_save_LIBS"
4267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4268 echo "$ac_t""yes" 1>&6
4269 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4271 cat >> confdefs.h <<EOF
4272 #define $ac_tr_lib 1
4278 echo "$ac_t""no" 1>&6
4279 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4284 if test "$with_krb5" = yes ; then
4285 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4286 echo "configure:4287: checking for com_err in -lcom_err" >&5
4287 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 ac_save_LIBS="$LIBS"
4292 LIBS="-lcom_err $LIBS"
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4307 eval "ac_cv_lib_$ac_lib_var=yes"
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4312 eval "ac_cv_lib_$ac_lib_var=no"
4315 LIBS="$ac_save_LIBS"
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4321 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4322 cat >> confdefs.h <<EOF
4323 #define $ac_tr_lib 1
4326 LIBS="-lcom_err $LIBS"
4329 echo "$ac_t""no" 1>&6
4330 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4333 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4334 echo "configure:4335: checking for krb5_encrypt in -lcrypto" >&5
4335 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 ac_save_LIBS="$LIBS"
4340 LIBS="-lcrypto $LIBS"
4341 cat > conftest.$ac_ext <<EOF
4342 #line 4343 "configure"
4343 #include "confdefs.h"
4344 /* Override any gcc2 internal prototype to avoid an error. */
4345 /* We use char because int might match the return type of a gcc2
4346 builtin and then its argument prototype would still apply. */
4347 char krb5_encrypt();
4353 if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4355 eval "ac_cv_lib_$ac_lib_var=yes"
4357 echo "configure: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4360 eval "ac_cv_lib_$ac_lib_var=no"
4363 LIBS="$ac_save_LIBS"
4366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4367 echo "$ac_t""yes" 1>&6
4368 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4370 cat >> confdefs.h <<EOF
4371 #define $ac_tr_lib 1
4374 LIBS="-lcrypto $LIBS"
4377 echo "$ac_t""no" 1>&6
4378 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4379 echo "configure:4380: checking for krb5_encrypt in -lk5crypto" >&5
4380 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 ac_save_LIBS="$LIBS"
4385 LIBS="-lk5crypto $LIBS"
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 /* Override any gcc2 internal prototype to avoid an error. */
4390 /* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4392 char krb5_encrypt();
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4400 eval "ac_cv_lib_$ac_lib_var=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 eval "ac_cv_lib_$ac_lib_var=no"
4408 LIBS="$ac_save_LIBS"
4411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4413 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4414 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4415 cat >> confdefs.h <<EOF
4416 #define $ac_tr_lib 1
4419 LIBS="-lk5crypto $LIBS"
4422 echo "$ac_t""no" 1>&6
4423 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4428 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4429 echo "configure:4430: checking for krb5_sendauth in -lkrb5" >&5
4430 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 ac_save_LIBS="$LIBS"
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4439 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4442 char krb5_sendauth();
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4450 eval "ac_cv_lib_$ac_lib_var=yes"
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4455 eval "ac_cv_lib_$ac_lib_var=no"
4458 LIBS="$ac_save_LIBS"
4461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4464 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4465 cat >> confdefs.h <<EOF
4466 #define $ac_tr_lib 1
4472 echo "$ac_t""no" 1>&6
4473 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4478 if test "$with_openssl" = yes ; then
4479 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4480 echo "configure:4481: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4481 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 ac_save_LIBS="$LIBS"
4486 LIBS="-lcrypto $LIBS"
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4490 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4493 char CRYPTO_new_ex_data();
4496 CRYPTO_new_ex_data()
4499 if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4501 eval "ac_cv_lib_$ac_lib_var=yes"
4503 echo "configure: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 eval "ac_cv_lib_$ac_lib_var=no"
4509 LIBS="$ac_save_LIBS"
4512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4513 echo "$ac_t""yes" 1>&6
4514 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4516 cat >> confdefs.h <<EOF
4517 #define $ac_tr_lib 1
4520 LIBS="-lcrypto $LIBS"
4523 echo "$ac_t""no" 1>&6
4524 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4527 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4528 echo "configure:4529: checking for SSL_library_init in -lssl" >&5
4529 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 ac_save_LIBS="$LIBS"
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* Override any gcc2 internal prototype to avoid an error. */
4539 /* We use char because int might match the return type of a gcc2
4540 builtin and then its argument prototype would still apply. */
4541 char SSL_library_init();
4547 if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4549 eval "ac_cv_lib_$ac_lib_var=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_lib_$ac_lib_var=no"
4557 LIBS="$ac_save_LIBS"
4560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4561 echo "$ac_t""yes" 1>&6
4562 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4564 cat >> confdefs.h <<EOF
4565 #define $ac_tr_lib 1
4571 echo "$ac_t""no" 1>&6
4572 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4581 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
4583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4585 echo "configure:4586: checking for $ac_hdr" >&5
4586 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4589 cat > conftest.$ac_ext <<EOF
4590 #line 4591 "configure"
4591 #include "confdefs.h"
4594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4595 { (eval echo configure:4596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4597 if test -z "$ac_err"; then
4599 eval "ac_cv_header_$ac_safe=yes"
4602 echo "configure: failed program was:" >&5
4603 cat conftest.$ac_ext >&5
4605 eval "ac_cv_header_$ac_safe=no"
4609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4610 echo "$ac_t""yes" 1>&6
4611 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4612 cat >> confdefs.h <<EOF
4613 #define $ac_tr_hdr 1
4617 echo "$ac_t""no" 1>&6
4622 for ac_hdr in netinet/in.h
4624 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4625 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4626 echo "configure:4627: checking for $ac_hdr" >&5
4627 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4636 { (eval echo configure:4637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4638 if test -z "$ac_err"; then
4640 eval "ac_cv_header_$ac_safe=yes"
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4646 eval "ac_cv_header_$ac_safe=no"
4650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4651 echo "$ac_t""yes" 1>&6
4652 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4653 cat >> confdefs.h <<EOF
4654 #define $ac_tr_hdr 1
4658 echo "$ac_t""no" 1>&6
4662 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4663 echo "configure:4664: checking for netinet/tcp.h" >&5
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4668 #ifdef HAVE_NETINET_IN_H
4669 #include <netinet/in.h>
4671 #include <netinet/tcp.h>
4674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4675 { (eval echo configure:4676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4676 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4677 if test -z "$ac_err"; then
4679 cat >> confdefs.h <<\EOF
4680 #define HAVE_NETINET_TCP_H 1
4682 echo "$ac_t""yes" 1>&6
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 echo "$ac_t""no" 1>&6
4692 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
4693 echo "configure:4694: checking whether string.h and strings.h may both be included" >&5
4694 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4701 #include <strings.h>
4704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4705 { (eval echo configure:4706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4707 if test -z "$ac_err"; then
4709 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure"
4711 #include "confdefs.h"
4713 #include <strings.h>
4716 int n = strcasecmp("a", "b");
4719 if { (eval echo configure:4720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4721 pgac_cv_header_strings_both=yes
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4726 pgac_cv_header_strings_both=no
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4734 pgac_cv_header_strings_both=no
4739 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
4740 if test x"$pgac_cv_header_strings_both" = x"yes"; then
4741 cat >> confdefs.h <<\EOF
4742 #define STRING_H_WITH_STRINGS_H 1
4747 for ac_hdr in readline/readline.h readline.h
4749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_hdr" >&5
4752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4761 { (eval echo configure:4762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4763 if test -z "$ac_err"; then
4765 eval "ac_cv_header_$ac_safe=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 eval "ac_cv_header_$ac_safe=no"
4775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4778 cat >> confdefs.h <<EOF
4779 #define $ac_tr_hdr 1
4783 echo "$ac_t""no" 1>&6
4787 for ac_hdr in readline/history.h history.h
4789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4791 echo "configure:4792: checking for $ac_hdr" >&5
4792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4801 { (eval echo configure:4802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4803 if test -z "$ac_err"; then
4805 eval "ac_cv_header_$ac_safe=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5
4811 eval "ac_cv_header_$ac_safe=no"
4815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
4817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4818 cat >> confdefs.h <<EOF
4819 #define $ac_tr_hdr 1
4823 echo "$ac_t""no" 1>&6
4828 if test "$with_krb4" = yes ; then
4829 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4830 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4831 echo "configure:4832: checking for krb.h" >&5
4832 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4841 { (eval echo configure:4842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4843 if test -z "$ac_err"; then
4845 eval "ac_cv_header_$ac_safe=yes"
4848 echo "configure: failed program was:" >&5
4849 cat conftest.$ac_ext >&5
4851 eval "ac_cv_header_$ac_safe=no"
4855 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4859 echo "$ac_t""no" 1>&6
4860 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4865 if test "$with_krb5" = yes ; then
4866 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4867 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4868 echo "configure:4869: checking for krb5.h" >&5
4869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4872 cat > conftest.$ac_ext <<EOF
4873 #line 4874 "configure"
4874 #include "confdefs.h"
4877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4878 { (eval echo configure:4879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4880 if test -z "$ac_err"; then
4882 eval "ac_cv_header_$ac_safe=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 eval "ac_cv_header_$ac_safe=no"
4892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4893 echo "$ac_t""yes" 1>&6
4896 echo "$ac_t""no" 1>&6
4897 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4900 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4901 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4902 echo "configure:4903: checking for com_err.h" >&5
4903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4906 cat > conftest.$ac_ext <<EOF
4907 #line 4908 "configure"
4908 #include "confdefs.h"
4909 #include <com_err.h>
4911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4912 { (eval echo configure:4913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4914 if test -z "$ac_err"; then
4916 eval "ac_cv_header_$ac_safe=yes"
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4922 eval "ac_cv_header_$ac_safe=no"
4926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4927 echo "$ac_t""yes" 1>&6
4930 echo "$ac_t""no" 1>&6
4931 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4936 if test "$with_openssl" = yes ; then
4937 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4938 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4939 echo "configure:4940: checking for openssl/ssl.h" >&5
4940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4946 #include <openssl/ssl.h>
4948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4949 { (eval echo configure:4950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4951 if test -z "$ac_err"; then
4953 eval "ac_cv_header_$ac_safe=yes"
4956 echo "configure: failed program was:" >&5
4957 cat conftest.$ac_ext >&5
4959 eval "ac_cv_header_$ac_safe=no"
4963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4967 echo "$ac_t""no" 1>&6
4968 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4971 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4972 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4973 echo "configure:4974: checking for openssl/err.h" >&5
4974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4977 cat > conftest.$ac_ext <<EOF
4978 #line 4979 "configure"
4979 #include "confdefs.h"
4980 #include <openssl/err.h>
4982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4983 { (eval echo configure:4984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4985 if test -z "$ac_err"; then
4987 eval "ac_cv_header_$ac_safe=yes"
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 eval "ac_cv_header_$ac_safe=no"
4997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4998 echo "$ac_t""yes" 1>&6
5001 echo "$ac_t""no" 1>&6
5002 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
5009 ## Types, structures, compiler characteristics
5011 echo $ac_n "checking for working const""... $ac_c" 1>&6
5012 echo "configure:5013: checking for working const" >&5
5013 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5022 /* Ultrix mips cc rejects this. */
5023 typedef int charset[2]; const charset x;
5024 /* SunOS 4.1.1 cc rejects this. */
5025 char const *const *ccp;
5027 /* NEC SVR4.0.2 mips cc rejects this. */
5028 struct point {int x, y;};
5029 static struct point const zero = {0,0};
5030 /* AIX XL C 1.02.0.0 rejects this.
5031 It does not let you subtract one const X* pointer from another in an arm
5032 of an if-expression whose if-part is not a constant expression */
5033 const char *g = "string";
5034 ccp = &g + (g ? g-g : 0);
5035 /* HPUX 7.0 cc rejects these. */
5038 ccp = (char const *const *) p;
5039 { /* SCO 3.2v4 cc rejects this. */
5041 char const *s = 0 ? (char *) 0 : (char const *) 0;
5045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5047 const int *foo = &x[0];
5050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5051 typedef const int *iptr;
5055 { /* AIX XL C 1.02.0.0 rejects this saying
5056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5057 struct s { int j; const int *ap[3]; };
5058 struct s *b; b->j = 5;
5060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5066 if { (eval echo configure:5067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5070 echo "configure: failed program was:" >&5
5071 cat conftest.$ac_ext >&5
5078 echo "$ac_t""$ac_cv_c_const" 1>&6
5079 if test $ac_cv_c_const = no; then
5080 cat >> confdefs.h <<\EOF
5086 echo $ac_n "checking for inline""... $ac_c" 1>&6
5087 echo "configure:5088: checking for inline" >&5
5088 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5092 for ac_kw in inline __inline__ __inline; do
5093 cat > conftest.$ac_ext <<EOF
5094 #line 5095 "configure"
5095 #include "confdefs.h"
5101 if { (eval echo configure:5102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5103 ac_cv_c_inline=$ac_kw; break
5105 echo "configure: failed program was:" >&5
5106 cat conftest.$ac_ext >&5
5113 echo "$ac_t""$ac_cv_c_inline" 1>&6
5114 case "$ac_cv_c_inline" in
5116 no) cat >> confdefs.h <<\EOF
5120 *) cat >> confdefs.h <<EOF
5121 #define inline $ac_cv_c_inline
5128 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5129 echo "configure:5130: checking for preprocessor stringizing operator" >&5
5130 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5139 char *s = x(teststring);
5142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5143 egrep "#teststring" >/dev/null 2>&1; then
5145 ac_cv_c_stringize=no
5148 ac_cv_c_stringize=yes
5154 if test "${ac_cv_c_stringize}" = yes
5156 cat >> confdefs.h <<\EOF
5157 #define HAVE_STRINGIZE 1
5161 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5163 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5164 echo "configure:5165: checking for signed types" >&5
5165 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5173 signed char c; signed short s; signed int i;
5176 if { (eval echo configure:5177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5178 pgac_cv_c_signed=yes
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5188 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5189 if test x"$pgac_cv_c_signed" = xno ; then
5190 cat >> confdefs.h <<\EOF
5195 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5196 echo "configure:5197: checking for volatile" >&5
5197 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5198 echo $ac_n "(cached) $ac_c" 1>&6
5200 cat > conftest.$ac_ext <<EOF
5201 #line 5202 "configure"
5202 #include "confdefs.h"
5205 extern volatile int i;
5208 if { (eval echo configure:5209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5210 pgac_cv_c_volatile=yes
5212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5215 pgac_cv_c_volatile=no
5220 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5221 if test x"$pgac_cv_c_volatile" = xno ; then
5222 cat >> confdefs.h <<\EOF
5227 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5228 echo "configure:5229: checking whether struct tm is in sys/time.h or time.h" >&5
5229 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5235 #include <sys/types.h>
5238 struct tm *tp; tp->tm_sec;
5241 if { (eval echo configure:5242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5243 ac_cv_struct_tm=time.h
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5248 ac_cv_struct_tm=sys/time.h
5253 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5254 if test $ac_cv_struct_tm = sys/time.h; then
5255 cat >> confdefs.h <<\EOF
5256 #define TM_IN_SYS_TIME 1
5261 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5262 echo "configure:5263: checking for tm_zone in struct tm" >&5
5263 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5264 echo $ac_n "(cached) $ac_c" 1>&6
5266 cat > conftest.$ac_ext <<EOF
5267 #line 5268 "configure"
5268 #include "confdefs.h"
5269 #include <sys/types.h>
5270 #include <$ac_cv_struct_tm>
5272 struct tm tm; tm.tm_zone;
5275 if { (eval echo configure:5276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5277 ac_cv_struct_tm_zone=yes
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5282 ac_cv_struct_tm_zone=no
5287 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5288 if test "$ac_cv_struct_tm_zone" = yes; then
5289 cat >> confdefs.h <<\EOF
5290 #define HAVE_TM_ZONE 1
5294 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5295 echo "configure:5296: checking for tzname" >&5
5296 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5303 #ifndef tzname /* For SGI. */
5304 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5310 if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5312 ac_cv_var_tzname=yes
5314 echo "configure: failed program was:" >&5
5315 cat conftest.$ac_ext >&5
5322 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5323 if test $ac_cv_var_tzname = yes; then
5324 cat >> confdefs.h <<\EOF
5325 #define HAVE_TZNAME 1
5331 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5332 echo "configure:5333: checking for union semun" >&5
5333 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5334 echo $ac_n "(cached) $ac_c" 1>&6
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure"
5338 #include "confdefs.h"
5339 #include <sys/types.h>
5340 #include <sys/ipc.h>
5341 #include <sys/sem.h>
5346 if { (eval echo configure:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5348 pgac_cv_union_semun=yes
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5353 pgac_cv_union_semun=no
5358 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5359 if test x"$pgac_cv_union_semun" = xyes ; then
5360 cat >> confdefs.h <<\EOF
5361 #define HAVE_UNION_SEMUN 1
5365 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5366 echo "configure:5367: checking for struct sockaddr_un" >&5
5367 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5368 echo $ac_n "(cached) $ac_c" 1>&6
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5373 #include <sys/types.h>
5374 #ifdef HAVE_SYS_UN_H
5378 struct sockaddr_un un;
5381 if { (eval echo configure:5382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5383 pgac_cv_struct_sockaddr_un=yes
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5388 pgac_cv_struct_sockaddr_un=no
5393 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5394 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5395 cat >> confdefs.h <<\EOF
5396 #define HAVE_STRUCT_SOCKADDR_UN 1
5402 ## Functions, global variables
5404 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5405 echo "configure:5406: checking for int timezone" >&5
5406 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5415 res = timezone / 60;
5418 if { (eval echo configure:5419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5420 pgac_cv_var_int_timezone=yes
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5425 pgac_cv_var_int_timezone=no
5430 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5431 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5432 cat >> confdefs.h <<\EOF
5433 #define HAVE_INT_TIMEZONE
5437 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5438 echo "configure:5439: checking types of arguments for accept()" >&5
5439 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5442 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6
5448 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5449 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5450 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
5451 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5454 #ifdef HAVE_SYS_TYPES_H
5455 #include <sys/types.h>
5457 #ifdef HAVE_SYS_SOCKET_H
5458 #include <sys/socket.h>
5460 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5465 if { (eval echo configure:5466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5467 ac_not_found=no; break 3
5469 echo "configure: failed program was:" >&5
5470 cat conftest.$ac_ext >&5
5478 if test "$ac_not_found" = yes; then
5479 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5481 if test "$ac_cv_func_accept_arg3" = "void"; then
5482 ac_cv_func_accept_arg3=int
5490 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5491 cat >> confdefs.h <<EOF
5492 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5495 cat >> confdefs.h <<EOF
5496 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5499 cat >> confdefs.h <<EOF
5500 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5504 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5505 echo "configure:5506: checking whether gettimeofday takes only one argument" >&5
5506 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 #include <sys/time.h>
5515 struct timezone *tzp;
5516 gettimeofday(tp,tzp);
5519 if { (eval echo configure:5520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5521 pgac_cv_func_gettimeofday_1arg=no
5523 echo "configure: failed program was:" >&5
5524 cat conftest.$ac_ext >&5
5526 pgac_cv_func_gettimeofday_1arg=yes
5531 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5532 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5533 cat >> confdefs.h <<\EOF
5534 #define GETTIMEOFDAY_1ARG
5539 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
5541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5542 echo "configure:5543: checking for $ac_func" >&5
5543 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5546 cat > conftest.$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5549 /* System header to define __stub macros and hopefully few prototypes,
5550 which can conflict with char $ac_func(); below. */
5552 /* Override any gcc2 internal prototype to avoid an error. */
5553 /* We use char because int might match the return type of a gcc2
5554 builtin and then its argument prototype would still apply. */
5559 /* The GNU C library defines this for functions which it implements
5560 to always fail with ENOSYS. Some functions are actually named
5561 something starting with __ and the normal name is an alias. */
5562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5572 eval "ac_cv_func_$ac_func=yes"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5577 eval "ac_cv_func_$ac_func=no"
5582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5583 echo "$ac_t""yes" 1>&6
5584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5585 cat >> confdefs.h <<EOF
5586 #define $ac_tr_func 1
5590 echo "$ac_t""no" 1>&6
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5601 egrep "fdatasync" >/dev/null 2>&1; then
5603 cat >> confdefs.h <<\EOF
5604 #define HAVE_FDATASYNC_DECL 1
5611 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5612 echo "configure:5613: checking for PS_STRINGS" >&5
5613 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 cat > conftest.$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5619 #include <machine/vmparam.h>
5620 #include <sys/exec.h>
5623 PS_STRINGS->ps_nargvstr = 1;
5624 PS_STRINGS->ps_argvstr = "foo";
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5629 pgac_cv_var_PS_STRINGS=yes
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 pgac_cv_var_PS_STRINGS=no
5639 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5640 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5641 cat >> confdefs.h <<\EOF
5642 #define HAVE_PS_STRINGS
5648 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5649 echo "configure:5650: checking for snprintf" >&5
5650 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5656 /* System header to define __stub macros and hopefully few prototypes,
5657 which can conflict with char snprintf(); below. */
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5666 /* The GNU C library defines this for functions which it implements
5667 to always fail with ENOSYS. Some functions are actually named
5668 something starting with __ and the normal name is an alias. */
5669 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 eval "ac_cv_func_snprintf=yes"
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5684 eval "ac_cv_func_snprintf=no"
5689 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5690 echo "$ac_t""yes" 1>&6
5691 cat >> confdefs.h <<\EOF
5692 #define HAVE_SNPRINTF 1
5696 echo "$ac_t""no" 1>&6
5697 SNPRINTF='snprintf.o'
5700 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5701 echo "configure:5702: checking for vsnprintf" >&5
5702 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char vsnprintf(); below. */
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5718 /* The GNU C library defines this for functions which it implements
5719 to always fail with ENOSYS. Some functions are actually named
5720 something starting with __ and the normal name is an alias. */
5721 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5729 if { (eval echo configure:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5731 eval "ac_cv_func_vsnprintf=yes"
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5736 eval "ac_cv_func_vsnprintf=no"
5741 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5742 echo "$ac_t""yes" 1>&6
5743 cat >> confdefs.h <<\EOF
5744 #define HAVE_VSNPRINTF 1
5748 echo "$ac_t""no" 1>&6
5749 SNPRINTF='snprintf.o'
5753 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure"
5755 #include "confdefs.h"
5758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5759 egrep "snprintf" >/dev/null 2>&1; then
5761 cat >> confdefs.h <<\EOF
5762 #define HAVE_SNPRINTF_DECL 1
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5774 egrep "vsnprintf" >/dev/null 2>&1; then
5776 cat >> confdefs.h <<\EOF
5777 #define HAVE_VSNPRINTF_DECL 1
5784 # do this one the hard way in case isinf() is a macro
5785 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5786 echo "configure:5787: checking for isinf" >&5
5787 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5788 echo $ac_n "(cached) $ac_c" 1>&6
5790 cat > conftest.$ac_ext <<EOF
5791 #line 5792 "configure"
5792 #include "confdefs.h"
5796 double x = 0.0; int res = isinf(x);
5799 if { (eval echo configure:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5801 ac_cv_func_isinf=yes
5803 echo "configure: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5811 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5813 if test $ac_cv_func_isinf = yes ; then
5814 cat >> confdefs.h <<\EOF
5815 #define HAVE_ISINF 1
5821 # Look for a way to implement a substitute for isinf()
5822 for ac_func in fpclass fp_class fp_class_d class
5824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5825 echo "configure:5826: checking for $ac_func" >&5
5826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5827 echo $ac_n "(cached) $ac_c" 1>&6
5829 cat > conftest.$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5832 /* System header to define __stub macros and hopefully few prototypes,
5833 which can conflict with char $ac_func(); below. */
5835 /* Override any gcc2 internal prototype to avoid an error. */
5836 /* We use char because int might match the return type of a gcc2
5837 builtin and then its argument prototype would still apply. */
5842 /* The GNU C library defines this for functions which it implements
5843 to always fail with ENOSYS. Some functions are actually named
5844 something starting with __ and the normal name is an alias. */
5845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5853 if { (eval echo configure:5854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5855 eval "ac_cv_func_$ac_func=yes"
5857 echo "configure: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5860 eval "ac_cv_func_$ac_func=no"
5865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5866 echo "$ac_t""yes" 1>&6
5867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5868 cat >> confdefs.h <<EOF
5869 #define $ac_tr_func 1
5873 echo "$ac_t""no" 1>&6
5880 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5881 echo "configure:5882: checking for getrusage" >&5
5882 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5885 cat > conftest.$ac_ext <<EOF
5886 #line 5887 "configure"
5887 #include "confdefs.h"
5888 /* System header to define __stub macros and hopefully few prototypes,
5889 which can conflict with char getrusage(); below. */
5891 /* Override any gcc2 internal prototype to avoid an error. */
5892 /* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5898 /* The GNU C library defines this for functions which it implements
5899 to always fail with ENOSYS. Some functions are actually named
5900 something starting with __ and the normal name is an alias. */
5901 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5911 eval "ac_cv_func_getrusage=yes"
5913 echo "configure: failed program was:" >&5
5914 cat conftest.$ac_ext >&5
5916 eval "ac_cv_func_getrusage=no"
5921 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5922 echo "$ac_t""yes" 1>&6
5923 cat >> confdefs.h <<\EOF
5924 #define HAVE_GETRUSAGE 1
5928 echo "$ac_t""no" 1>&6
5929 GETRUSAGE='getrusage.o'
5933 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5934 echo "configure:5935: checking for srandom" >&5
5935 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 cat > conftest.$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5941 /* System header to define __stub macros and hopefully few prototypes,
5942 which can conflict with char srandom(); below. */
5944 /* Override any gcc2 internal prototype to avoid an error. */
5945 /* We use char because int might match the return type of a gcc2
5946 builtin and then its argument prototype would still apply. */
5951 /* The GNU C library defines this for functions which it implements
5952 to always fail with ENOSYS. Some functions are actually named
5953 something starting with __ and the normal name is an alias. */
5954 #if defined (__stub_srandom) || defined (__stub___srandom)
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5964 eval "ac_cv_func_srandom=yes"
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 eval "ac_cv_func_srandom=no"
5974 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5975 echo "$ac_t""yes" 1>&6
5976 cat >> confdefs.h <<\EOF
5977 #define HAVE_SRANDOM 1
5981 echo "$ac_t""no" 1>&6
5986 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5987 echo "configure:5988: checking for gethostname" >&5
5988 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5991 cat > conftest.$ac_ext <<EOF
5992 #line 5993 "configure"
5993 #include "confdefs.h"
5994 /* System header to define __stub macros and hopefully few prototypes,
5995 which can conflict with char gethostname(); below. */
5997 /* Override any gcc2 internal prototype to avoid an error. */
5998 /* We use char because int might match the return type of a gcc2
5999 builtin and then its argument prototype would still apply. */
6004 /* The GNU C library defines this for functions which it implements
6005 to always fail with ENOSYS. Some functions are actually named
6006 something starting with __ and the normal name is an alias. */
6007 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6017 eval "ac_cv_func_gethostname=yes"
6019 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 eval "ac_cv_func_gethostname=no"
6027 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6028 echo "$ac_t""yes" 1>&6
6029 cat >> confdefs.h <<\EOF
6030 #define HAVE_GETHOSTNAME 1
6034 echo "$ac_t""no" 1>&6
6035 GETHOSTNAME='gethostname.o'
6039 echo $ac_n "checking for random""... $ac_c" 1>&6
6040 echo "configure:6041: checking for random" >&5
6041 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 /* System header to define __stub macros and hopefully few prototypes,
6048 which can conflict with char random(); below. */
6050 /* Override any gcc2 internal prototype to avoid an error. */
6051 /* We use char because int might match the return type of a gcc2
6052 builtin and then its argument prototype would still apply. */
6057 /* The GNU C library defines this for functions which it implements
6058 to always fail with ENOSYS. Some functions are actually named
6059 something starting with __ and the normal name is an alias. */
6060 #if defined (__stub_random) || defined (__stub___random)
6068 if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6070 eval "ac_cv_func_random=yes"
6072 echo "configure: failed program was:" >&5
6073 cat conftest.$ac_ext >&5
6075 eval "ac_cv_func_random=no"
6080 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6081 echo "$ac_t""yes" 1>&6
6082 cat >> confdefs.h <<\EOF
6083 #define HAVE_RANDOM 1
6087 echo "$ac_t""no" 1>&6
6088 MISSING_RANDOM='random.o'
6092 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6093 echo "configure:6094: checking for inet_aton" >&5
6094 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 /* System header to define __stub macros and hopefully few prototypes,
6101 which can conflict with char inet_aton(); below. */
6103 /* Override any gcc2 internal prototype to avoid an error. */
6104 /* We use char because int might match the return type of a gcc2
6105 builtin and then its argument prototype would still apply. */
6110 /* The GNU C library defines this for functions which it implements
6111 to always fail with ENOSYS. Some functions are actually named
6112 something starting with __ and the normal name is an alias. */
6113 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6121 if { (eval echo configure:6122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6123 eval "ac_cv_func_inet_aton=yes"
6125 echo "configure: failed program was:" >&5
6126 cat conftest.$ac_ext >&5
6128 eval "ac_cv_func_inet_aton=no"
6133 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6134 echo "$ac_t""yes" 1>&6
6135 cat >> confdefs.h <<\EOF
6136 #define HAVE_INET_ATON 1
6140 echo "$ac_t""no" 1>&6
6141 INET_ATON='inet_aton.o'
6145 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6146 echo "configure:6147: checking for strerror" >&5
6147 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6150 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6153 /* System header to define __stub macros and hopefully few prototypes,
6154 which can conflict with char strerror(); below. */
6156 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6163 /* The GNU C library defines this for functions which it implements
6164 to always fail with ENOSYS. Some functions are actually named
6165 something starting with __ and the normal name is an alias. */
6166 #if defined (__stub_strerror) || defined (__stub___strerror)
6174 if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6176 eval "ac_cv_func_strerror=yes"
6178 echo "configure: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6181 eval "ac_cv_func_strerror=no"
6186 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6187 echo "$ac_t""yes" 1>&6
6188 cat >> confdefs.h <<\EOF
6189 #define HAVE_STRERROR 1
6193 echo "$ac_t""no" 1>&6
6194 STRERROR='strerror.o'
6198 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6199 echo "configure:6200: checking for strdup" >&5
6200 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6203 cat > conftest.$ac_ext <<EOF
6204 #line 6205 "configure"
6205 #include "confdefs.h"
6206 /* System header to define __stub macros and hopefully few prototypes,
6207 which can conflict with char strdup(); below. */
6209 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6216 /* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219 #if defined (__stub_strdup) || defined (__stub___strdup)
6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6229 eval "ac_cv_func_strdup=yes"
6231 echo "configure: failed program was:" >&5
6232 cat conftest.$ac_ext >&5
6234 eval "ac_cv_func_strdup=no"
6239 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6240 echo "$ac_t""yes" 1>&6
6241 cat >> confdefs.h <<\EOF
6242 #define HAVE_STRDUP 1
6246 echo "$ac_t""no" 1>&6
6247 STRDUP='../../utils/strdup.o'
6251 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6252 echo "configure:6253: checking for strtol" >&5
6253 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6254 echo $ac_n "(cached) $ac_c" 1>&6
6256 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 /* System header to define __stub macros and hopefully few prototypes,
6260 which can conflict with char strtol(); below. */
6262 /* Override any gcc2 internal prototype to avoid an error. */
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6269 /* The GNU C library defines this for functions which it implements
6270 to always fail with ENOSYS. Some functions are actually named
6271 something starting with __ and the normal name is an alias. */
6272 #if defined (__stub_strtol) || defined (__stub___strtol)
6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6282 eval "ac_cv_func_strtol=yes"
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6287 eval "ac_cv_func_strtol=no"
6292 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 cat >> confdefs.h <<\EOF
6295 #define HAVE_STRTOL 1
6299 echo "$ac_t""no" 1>&6
6304 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6305 echo "configure:6306: checking for strtoul" >&5
6306 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6309 cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6312 /* System header to define __stub macros and hopefully few prototypes,
6313 which can conflict with char strtoul(); below. */
6315 /* Override any gcc2 internal prototype to avoid an error. */
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6322 /* The GNU C library defines this for functions which it implements
6323 to always fail with ENOSYS. Some functions are actually named
6324 something starting with __ and the normal name is an alias. */
6325 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6335 eval "ac_cv_func_strtoul=yes"
6337 echo "configure: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6340 eval "ac_cv_func_strtoul=no"
6345 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6346 echo "$ac_t""yes" 1>&6
6347 cat >> confdefs.h <<\EOF
6348 #define HAVE_STRTOUL 1
6352 echo "$ac_t""no" 1>&6
6357 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6358 echo "configure:6359: checking for strcasecmp" >&5
6359 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6360 echo $ac_n "(cached) $ac_c" 1>&6
6362 cat > conftest.$ac_ext <<EOF
6363 #line 6364 "configure"
6364 #include "confdefs.h"
6365 /* System header to define __stub macros and hopefully few prototypes,
6366 which can conflict with char strcasecmp(); below. */
6368 /* Override any gcc2 internal prototype to avoid an error. */
6369 /* We use char because int might match the return type of a gcc2
6370 builtin and then its argument prototype would still apply. */
6375 /* The GNU C library defines this for functions which it implements
6376 to always fail with ENOSYS. Some functions are actually named
6377 something starting with __ and the normal name is an alias. */
6378 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6386 if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6388 eval "ac_cv_func_strcasecmp=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 eval "ac_cv_func_strcasecmp=no"
6398 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6399 echo "$ac_t""yes" 1>&6
6400 cat >> confdefs.h <<\EOF
6401 #define HAVE_STRCASECMP 1
6405 echo "$ac_t""no" 1>&6
6406 STRCASECMP='strcasecmp.o'
6410 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6411 echo "configure:6412: checking for cbrt" >&5
6412 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6415 cat > conftest.$ac_ext <<EOF
6416 #line 6417 "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419 which can conflict with char cbrt(); below. */
6421 /* Override any gcc2 internal prototype to avoid an error. */
6422 /* We use char because int might match the return type of a gcc2
6423 builtin and then its argument prototype would still apply. */
6428 /* The GNU C library defines this for functions which it implements
6429 to always fail with ENOSYS. Some functions are actually named
6430 something starting with __ and the normal name is an alias. */
6431 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6439 if { (eval echo configure:6440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6441 eval "ac_cv_func_cbrt=yes"
6443 echo "configure: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6446 eval "ac_cv_func_cbrt=no"
6451 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6452 echo "$ac_t""yes" 1>&6
6453 cat >> confdefs.h <<\EOF
6458 echo "$ac_t""no" 1>&6
6459 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6460 echo "configure:6461: checking for cbrt in -lm" >&5
6461 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6463 echo $ac_n "(cached) $ac_c" 1>&6
6465 ac_save_LIBS="$LIBS"
6467 cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure"
6469 #include "confdefs.h"
6470 /* Override any gcc2 internal prototype to avoid an error. */
6471 /* We use char because int might match the return type of a gcc2
6472 builtin and then its argument prototype would still apply. */
6479 if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6481 eval "ac_cv_lib_$ac_lib_var=yes"
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6486 eval "ac_cv_lib_$ac_lib_var=no"
6489 LIBS="$ac_save_LIBS"
6492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6493 echo "$ac_t""yes" 1>&6
6494 cat >> confdefs.h <<\EOF
6499 echo "$ac_t""no" 1>&6
6505 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6506 # this hackery with HPUXMATHLIB allows us to cope.
6510 if [ -r /lib/pa1.1/libm.a ] ; then
6511 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6516 echo $ac_n "checking for rint""... $ac_c" 1>&6
6517 echo "configure:6518: checking for rint" >&5
6518 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6519 echo $ac_n "(cached) $ac_c" 1>&6
6521 cat > conftest.$ac_ext <<EOF
6522 #line 6523 "configure"
6523 #include "confdefs.h"
6524 /* System header to define __stub macros and hopefully few prototypes,
6525 which can conflict with char rint(); below. */
6527 /* Override any gcc2 internal prototype to avoid an error. */
6528 /* We use char because int might match the return type of a gcc2
6529 builtin and then its argument prototype would still apply. */
6534 /* The GNU C library defines this for functions which it implements
6535 to always fail with ENOSYS. Some functions are actually named
6536 something starting with __ and the normal name is an alias. */
6537 #if defined (__stub_rint) || defined (__stub___rint)
6545 if { (eval echo configure:6546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6547 eval "ac_cv_func_rint=yes"
6549 echo "configure: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6552 eval "ac_cv_func_rint=no"
6557 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6558 echo "$ac_t""yes" 1>&6
6559 cat >> confdefs.h <<\EOF
6564 echo "$ac_t""no" 1>&6
6565 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6566 echo "configure:6567: checking for rint in -lm" >&5
6567 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6571 ac_save_LIBS="$LIBS"
6572 LIBS="-lm $HPUXMATHLIB $LIBS"
6573 cat > conftest.$ac_ext <<EOF
6574 #line 6575 "configure"
6575 #include "confdefs.h"
6576 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6585 if { (eval echo configure:6586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6587 eval "ac_cv_lib_$ac_lib_var=yes"
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6592 eval "ac_cv_lib_$ac_lib_var=no"
6595 LIBS="$ac_save_LIBS"
6598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6600 cat >> confdefs.h <<\EOF
6605 echo "$ac_t""no" 1>&6
6612 # Readline versions < 2.1 don't have rl_completion_append_character
6613 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6614 echo "configure:6615: checking for rl_completion_append_character" >&5
6615 cat > conftest.$ac_ext <<EOF
6616 #line 6617 "configure"
6617 #include "confdefs.h"
6619 #ifdef HAVE_READLINE_READLINE_H
6620 # include <readline/readline.h>
6621 #elif defined(HAVE_READLINE_H)
6622 # include <readline.h>
6626 rl_completion_append_character = 'x';
6629 if { (eval echo configure:6630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6631 echo "$ac_t""yes" 1>&6
6632 cat >> confdefs.h <<\EOF
6633 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6640 echo "$ac_t""no" 1>&6
6644 for ac_func in rl_completion_matches
6646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6647 echo "configure:6648: checking for $ac_func" >&5
6648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6649 echo $ac_n "(cached) $ac_c" 1>&6
6651 cat > conftest.$ac_ext <<EOF
6652 #line 6653 "configure"
6653 #include "confdefs.h"
6654 /* System header to define __stub macros and hopefully few prototypes,
6655 which can conflict with char $ac_func(); below. */
6657 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6664 /* The GNU C library defines this for functions which it implements
6665 to always fail with ENOSYS. Some functions are actually named
6666 something starting with __ and the normal name is an alias. */
6667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6675 if { (eval echo configure:6676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6677 eval "ac_cv_func_$ac_func=yes"
6679 echo "configure: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6682 eval "ac_cv_func_$ac_func=no"
6687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6688 echo "$ac_t""yes" 1>&6
6689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6690 cat >> confdefs.h <<EOF
6691 #define $ac_tr_func 1
6695 echo "$ac_t""no" 1>&6
6701 echo $ac_n "checking for finite""... $ac_c" 1>&6
6702 echo "configure:6703: checking for finite" >&5
6703 cat > conftest.$ac_ext <<EOF
6704 #line 6705 "configure"
6705 #include "confdefs.h"
6708 int dummy=finite(1.0);
6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6713 cat >> confdefs.h <<\EOF
6714 #define HAVE_FINITE 1
6716 echo "$ac_t""yes" 1>&6
6718 echo "configure: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6721 echo "$ac_t""no" 1>&6
6725 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6726 echo "configure:6727: checking for sigsetjmp" >&5
6727 cat > conftest.$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6732 sigjmp_buf x; sigsetjmp(x, 1);
6735 if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6737 cat >> confdefs.h <<\EOF
6738 #define HAVE_SIGSETJMP 1
6740 echo "$ac_t""yes" 1>&6
6742 echo "configure: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6745 echo "$ac_t""no" 1>&6
6750 # Check whether --enable-syslog was given
6751 if test x"${enable_syslog+set}" = xset; then
6752 case $enable_syslog in
6754 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6755 echo "configure:6756: checking for syslog" >&5
6756 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6757 echo $ac_n "(cached) $ac_c" 1>&6
6759 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure"
6761 #include "confdefs.h"
6762 /* System header to define __stub macros and hopefully few prototypes,
6763 which can conflict with char syslog(); below. */
6765 /* Override any gcc2 internal prototype to avoid an error. */
6766 /* We use char because int might match the return type of a gcc2
6767 builtin and then its argument prototype would still apply. */
6772 /* The GNU C library defines this for functions which it implements
6773 to always fail with ENOSYS. Some functions are actually named
6774 something starting with __ and the normal name is an alias. */
6775 #if defined (__stub_syslog) || defined (__stub___syslog)
6783 if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6785 eval "ac_cv_func_syslog=yes"
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6790 eval "ac_cv_func_syslog=no"
6795 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6796 echo "$ac_t""yes" 1>&6
6797 cat >> confdefs.h <<\EOF
6798 #define ENABLE_SYSLOG 1
6802 echo "$ac_t""no" 1>&6
6803 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6811 enableval=$enable_syslog
6812 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6814 esac # $enable_syslog
6821 echo $ac_n "checking for optreset""... $ac_c" 1>&6
6822 echo "configure:6823: checking for optreset" >&5
6823 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
6824 echo $ac_n "(cached) $ac_c" 1>&6
6826 cat > conftest.$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6831 extern int optreset; optreset = 1;
6834 if { (eval echo configure:6835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6836 pgac_cv_var_int_optreset=yes
6838 echo "configure: failed program was:" >&5
6839 cat conftest.$ac_ext >&5
6841 pgac_cv_var_int_optreset=no
6846 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
6847 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
6848 cat >> confdefs.h <<\EOF
6849 #define HAVE_INT_OPTRESET 1
6855 # This test makes sure that run tests work at all. Sometimes a shared
6856 # library is found by the linker, but the runtime linker can't find it.
6857 # This check should come after all modifications of compiler or linker
6858 # variables, and before any other run tests.
6859 echo $ac_n "checking test program""... $ac_c" 1>&6
6860 echo "configure:6861: checking test program" >&5
6861 if test "$cross_compiling" = yes; then
6862 echo "$ac_t""cross-compiling" 1>&6
6864 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 int main() { return 0; }
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6871 echo "$ac_t""ok" 1>&6
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 echo "$ac_t""failed" 1>&6
6877 { echo "configure: error:
6878 *** Could not execute a simple test program. This may be a problem
6879 *** related to locating shared libraries. Check the file 'config.log'
6880 *** for the exact reason." 1>&2; exit 1; }
6888 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6889 echo "configure:6890: checking whether long int is 64 bits" >&5
6890 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6891 echo $ac_n "(cached) $ac_c" 1>&6
6893 if test "$cross_compiling" = yes; then
6894 pgac_cv_type_long_int_64=no
6895 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6897 cat > conftest.$ac_ext <<EOF
6898 #line 6899 "configure"
6899 #include "confdefs.h"
6900 typedef long int int64;
6903 * These are globals to discourage the compiler from folding all the
6904 * arithmetic tests down to compile-time constants.
6909 int does_int64_work()
6913 if (sizeof(int64) != 8)
6914 return 0; /* definitely not the right size */
6916 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6924 exit(! does_int64_work());
6927 if { (eval echo configure:6928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6929 pgac_cv_type_long_int_64=yes
6931 echo "configure: failed program was:" >&5
6932 cat conftest.$ac_ext >&5
6934 pgac_cv_type_long_int_64=no
6941 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6943 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6944 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6945 cat >> confdefs.h <<\EOF
6946 #define HAVE_LONG_INT_64
6952 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6953 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6954 echo "configure:6955: checking whether long long int is 64 bits" >&5
6955 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6956 echo $ac_n "(cached) $ac_c" 1>&6
6958 if test "$cross_compiling" = yes; then
6959 pgac_cv_type_long_long_int_64=no
6960 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6965 typedef long long int int64;
6968 * These are globals to discourage the compiler from folding all the
6969 * arithmetic tests down to compile-time constants.
6974 int does_int64_work()
6978 if (sizeof(int64) != 8)
6979 return 0; /* definitely not the right size */
6981 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6989 exit(! does_int64_work());
6992 if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6994 pgac_cv_type_long_long_int_64=yes
6996 echo "configure: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
6999 pgac_cv_type_long_long_int_64=no
7006 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
7008 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
7009 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
7010 cat >> confdefs.h <<\EOF
7011 #define HAVE_LONG_LONG_INT_64
7020 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7021 cat > conftest.$ac_ext <<EOF
7022 #line 7023 "configure"
7023 #include "confdefs.h"
7025 #define INT64CONST(x) x##LL
7026 long long int foo = INT64CONST(0x1234567890123456);
7032 if { (eval echo configure:7033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7034 cat >> confdefs.h <<\EOF
7035 #define HAVE_LL_CONSTANTS 1
7039 echo "configure: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7047 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7048 if [ x$SNPRINTF = x ] ; then
7049 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7050 echo "configure:7051: checking whether snprintf handles 'long long int' as %lld" >&5
7051 if test "$cross_compiling" = yes; then
7052 echo "$ac_t""assuming not on target machine" 1>&6
7053 # Force usage of our own snprintf, since we cannot test foreign snprintf
7054 SNPRINTF='snprintf.o'
7055 INT64_FORMAT='"%lld"'
7058 cat > conftest.$ac_ext <<EOF
7059 #line 7060 "configure"
7060 #include "confdefs.h"
7062 typedef long long int int64;
7063 #define INT64_FORMAT "%lld"
7068 int does_int64_snprintf_work()
7073 if (sizeof(int64) != 8)
7074 return 0; /* doesn't look like the right size */
7077 snprintf(buf, 100, INT64_FORMAT, c);
7078 if (strcmp(buf, "800000140000005") != 0)
7079 return 0; /* either multiply or snprintf is busted */
7083 exit(! does_int64_snprintf_work());
7086 if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7088 echo "$ac_t""yes" 1>&6
7089 INT64_FORMAT='"%lld"'
7092 echo "configure: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7095 echo "$ac_t""no" 1>&6
7096 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7097 echo "configure:7098: checking whether snprintf handles 'long long int' as %qd" >&5
7098 if test "$cross_compiling" = yes; then
7099 echo "$ac_t""assuming not on target machine" 1>&6
7100 # Force usage of our own snprintf, since we cannot test foreign snprintf
7101 SNPRINTF='snprintf.o'
7102 INT64_FORMAT='"%lld"'
7105 cat > conftest.$ac_ext <<EOF
7106 #line 7107 "configure"
7107 #include "confdefs.h"
7109 typedef long long int int64;
7110 #define INT64_FORMAT "%qd"
7115 int does_int64_snprintf_work()
7120 if (sizeof(int64) != 8)
7121 return 0; /* doesn't look like the right size */
7124 snprintf(buf, 100, INT64_FORMAT, c);
7125 if (strcmp(buf, "800000140000005") != 0)
7126 return 0; /* either multiply or snprintf is busted */
7130 exit(! does_int64_snprintf_work());
7133 if { (eval echo configure:7134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7135 echo "$ac_t""yes" 1>&6
7136 INT64_FORMAT='"%qd"'
7139 echo "configure: failed program was:" >&5
7140 cat conftest.$ac_ext >&5
7142 echo "$ac_t""no" 1>&6
7143 # Force usage of our own snprintf, since system snprintf is broken
7144 SNPRINTF='snprintf.o'
7145 INT64_FORMAT='"%lld"'
7156 # here if we previously decided we needed to use our own snprintf
7157 INT64_FORMAT='"%lld"'
7160 # Here if we are not using 'long long int' at all
7161 INT64_FORMAT='"%ld"'
7164 cat >> confdefs.h <<EOF
7165 #define INT64_FORMAT $INT64_FORMAT
7170 for ac_func in strtoll strtoq
7172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7173 echo "configure:7174: checking for $ac_func" >&5
7174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7175 echo $ac_n "(cached) $ac_c" 1>&6
7177 cat > conftest.$ac_ext <<EOF
7178 #line 7179 "configure"
7179 #include "confdefs.h"
7180 /* System header to define __stub macros and hopefully few prototypes,
7181 which can conflict with char $ac_func(); below. */
7183 /* Override any gcc2 internal prototype to avoid an error. */
7184 /* We use char because int might match the return type of a gcc2
7185 builtin and then its argument prototype would still apply. */
7190 /* The GNU C library defines this for functions which it implements
7191 to always fail with ENOSYS. Some functions are actually named
7192 something starting with __ and the normal name is an alias. */
7193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7201 if { (eval echo configure:7202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7203 eval "ac_cv_func_$ac_func=yes"
7205 echo "configure: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7208 eval "ac_cv_func_$ac_func=no"
7213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7214 echo "$ac_t""yes" 1>&6
7215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7216 cat >> confdefs.h <<EOF
7217 #define $ac_tr_func 1
7221 echo "$ac_t""no" 1>&6
7225 for ac_func in strtoull strtouq
7227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7228 echo "configure:7229: checking for $ac_func" >&5
7229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7230 echo $ac_n "(cached) $ac_c" 1>&6
7232 cat > conftest.$ac_ext <<EOF
7233 #line 7234 "configure"
7234 #include "confdefs.h"
7235 /* System header to define __stub macros and hopefully few prototypes,
7236 which can conflict with char $ac_func(); below. */
7238 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7245 /* The GNU C library defines this for functions which it implements
7246 to always fail with ENOSYS. Some functions are actually named
7247 something starting with __ and the normal name is an alias. */
7248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7256 if { (eval echo configure:7257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7258 eval "ac_cv_func_$ac_func=yes"
7260 echo "configure: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7263 eval "ac_cv_func_$ac_func=no"
7268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7269 echo "$ac_t""yes" 1>&6
7270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7271 cat >> confdefs.h <<EOF
7272 #define $ac_tr_func 1
7276 echo "$ac_t""no" 1>&6
7281 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7282 echo "configure:7283: checking for atexit" >&5
7283 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7284 echo $ac_n "(cached) $ac_c" 1>&6
7286 cat > conftest.$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7289 /* System header to define __stub macros and hopefully few prototypes,
7290 which can conflict with char atexit(); below. */
7292 /* Override any gcc2 internal prototype to avoid an error. */
7293 /* We use char because int might match the return type of a gcc2
7294 builtin and then its argument prototype would still apply. */
7299 /* The GNU C library defines this for functions which it implements
7300 to always fail with ENOSYS. Some functions are actually named
7301 something starting with __ and the normal name is an alias. */
7302 #if defined (__stub_atexit) || defined (__stub___atexit)
7310 if { (eval echo configure:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7312 eval "ac_cv_func_atexit=yes"
7314 echo "configure: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7317 eval "ac_cv_func_atexit=no"
7322 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7323 echo "$ac_t""yes" 1>&6
7324 cat >> confdefs.h <<\EOF
7325 #define HAVE_ATEXIT 1
7329 echo "$ac_t""no" 1>&6
7330 for ac_func in on_exit
7332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7333 echo "configure:7334: checking for $ac_func" >&5
7334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7335 echo $ac_n "(cached) $ac_c" 1>&6
7337 cat > conftest.$ac_ext <<EOF
7338 #line 7339 "configure"
7339 #include "confdefs.h"
7340 /* System header to define __stub macros and hopefully few prototypes,
7341 which can conflict with char $ac_func(); below. */
7343 /* Override any gcc2 internal prototype to avoid an error. */
7344 /* We use char because int might match the return type of a gcc2
7345 builtin and then its argument prototype would still apply. */
7350 /* The GNU C library defines this for functions which it implements
7351 to always fail with ENOSYS. Some functions are actually named
7352 something starting with __ and the normal name is an alias. */
7353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7361 if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7363 eval "ac_cv_func_$ac_func=yes"
7365 echo "configure: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7368 eval "ac_cv_func_$ac_func=no"
7373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7374 echo "$ac_t""yes" 1>&6
7375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7376 cat >> confdefs.h <<EOF
7377 #define $ac_tr_func 1
7379 cat >> confdefs.h <<\EOF
7380 #define HAVE_ON_EXIT 1
7384 echo "$ac_t""no" 1>&6
7385 { echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; }
7393 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
7394 echo "configure:7395: checking size of unsigned long" >&5
7395 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7398 if test "$cross_compiling" = yes; then
7399 ac_cv_sizeof_unsigned_long=4
7401 cat > conftest.$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7407 FILE *f=fopen("conftestval", "w");
7409 fprintf(f, "%d\n", sizeof(unsigned long));
7413 if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7415 ac_cv_sizeof_unsigned_long=`cat conftestval`
7417 echo "configure: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7420 ac_cv_sizeof_unsigned_long=0
7426 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
7427 cat >> confdefs.h <<EOF
7428 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7432 cat >> confdefs.h <<EOF
7433 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
7438 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7439 echo "configure:7440: checking alignment of short" >&5
7440 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7441 echo $ac_n "(cached) $ac_c" 1>&6
7443 if test "$cross_compiling" = yes; then
7444 pgac_cv_alignof_short='sizeof(short)'
7446 cat > conftest.$ac_ext <<EOF
7447 #line 7448 "configure"
7448 #include "confdefs.h"
7450 struct { char filler; short field; } mystruct;
7453 FILE *f=fopen("conftestval", "w");
7455 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7461 pgac_cv_alignof_short=`cat conftestval`
7463 echo "configure: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7466 pgac_cv_alignof_short='sizeof(short)'
7472 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7473 cat >> confdefs.h <<EOF
7474 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7478 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7479 echo "configure:7480: checking alignment of int" >&5
7480 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7481 echo $ac_n "(cached) $ac_c" 1>&6
7483 if test "$cross_compiling" = yes; then
7484 pgac_cv_alignof_int='sizeof(int)'
7486 cat > conftest.$ac_ext <<EOF
7487 #line 7488 "configure"
7488 #include "confdefs.h"
7490 struct { char filler; int field; } mystruct;
7493 FILE *f=fopen("conftestval", "w");
7495 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7499 if { (eval echo configure:7500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7501 pgac_cv_alignof_int=`cat conftestval`
7503 echo "configure: failed program was:" >&5
7504 cat conftest.$ac_ext >&5
7506 pgac_cv_alignof_int='sizeof(int)'
7512 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7513 cat >> confdefs.h <<EOF
7514 #define ALIGNOF_INT $pgac_cv_alignof_int
7518 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7519 echo "configure:7520: checking alignment of long" >&5
7520 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7521 echo $ac_n "(cached) $ac_c" 1>&6
7523 if test "$cross_compiling" = yes; then
7524 pgac_cv_alignof_long='sizeof(long)'
7526 cat > conftest.$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7530 struct { char filler; long field; } mystruct;
7533 FILE *f=fopen("conftestval", "w");
7535 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7539 if { (eval echo configure:7540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7541 pgac_cv_alignof_long=`cat conftestval`
7543 echo "configure: failed program was:" >&5
7544 cat conftest.$ac_ext >&5
7546 pgac_cv_alignof_long='sizeof(long)'
7552 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7553 cat >> confdefs.h <<EOF
7554 #define ALIGNOF_LONG $pgac_cv_alignof_long
7558 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7559 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7560 echo "configure:7561: checking alignment of long long int" >&5
7561 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7562 echo $ac_n "(cached) $ac_c" 1>&6
7564 if test "$cross_compiling" = yes; then
7565 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7571 struct { char filler; long long int field; } mystruct;
7574 FILE *f=fopen("conftestval", "w");
7576 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7580 if { (eval echo configure:7581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7582 pgac_cv_alignof_long_long_int=`cat conftestval`
7584 echo "configure: failed program was:" >&5
7585 cat conftest.$ac_ext >&5
7587 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7593 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7594 cat >> confdefs.h <<EOF
7595 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7600 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7601 echo "configure:7602: checking alignment of double" >&5
7602 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7605 if test "$cross_compiling" = yes; then
7606 pgac_cv_alignof_double='sizeof(double)'
7608 cat > conftest.$ac_ext <<EOF
7609 #line 7610 "configure"
7610 #include "confdefs.h"
7612 struct { char filler; double field; } mystruct;
7615 FILE *f=fopen("conftestval", "w");
7617 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7621 if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7623 pgac_cv_alignof_double=`cat conftestval`
7625 echo "configure: failed program was:" >&5
7626 cat conftest.$ac_ext >&5
7628 pgac_cv_alignof_double='sizeof(double)'
7634 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7635 cat >> confdefs.h <<EOF
7636 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7642 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7643 MAX_ALIGNOF=$pgac_cv_alignof_long
7644 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7645 MAX_ALIGNOF=$pgac_cv_alignof_double
7647 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7648 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7651 MAX_ALIGNOF="$pgac_cv_alignof_double"
7653 cat >> confdefs.h <<EOF
7654 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7658 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7659 echo "configure:7660: checking for POSIX signal interface" >&5
7660 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7663 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7669 struct sigaction act, oact;
7670 sigemptyset(&act.sa_mask);
7671 act.sa_flags = SA_RESTART;
7672 sigaction(0, &act, &oact);
7675 if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7677 pgac_cv_func_posix_signals=yes
7679 echo "configure: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7682 pgac_cv_func_posix_signals=no
7687 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7688 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7689 cat >> confdefs.h <<\EOF
7690 #define HAVE_POSIX_SIGNALS
7694 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
7698 # Check for Tcl configuration script tclConfig.sh
7699 if test "$with_tcl" = yes; then
7700 for ac_prog in tclsh tcl
7702 # Extract the first word of "$ac_prog", so it can be a program name with args.
7703 set dummy $ac_prog; ac_word=$2
7704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7705 echo "configure:7706: checking for $ac_word" >&5
7706 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
7707 echo $ac_n "(cached) $ac_c" 1>&6
7711 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7714 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7719 for ac_dir in $ac_dummy; do
7720 test -z "$ac_dir" && ac_dir=.
7721 if test -f $ac_dir/$ac_word; then
7722 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7730 TCLSH="$ac_cv_path_TCLSH"
7731 if test -n "$TCLSH"; then
7732 echo "$ac_t""$TCLSH" 1>&6
7734 echo "$ac_t""no" 1>&6
7737 test -n "$TCLSH" && break
7740 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7741 echo "configure:7742: checking for tclConfig.sh" >&5
7742 # Let user override test
7743 if test -z "$TCL_CONFIG_SH"; then
7744 pgac_test_dirs="$with_tclconfig"
7746 set X $pgac_test_dirs; shift
7747 if test $# -eq 0; then
7748 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7749 set X `echo 'puts $auto_path' | $TCLSH`; shift
7753 if test -r "$pgac_dir/tclConfig.sh"; then
7754 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7760 if test -z "$TCL_CONFIG_SH"; then
7761 echo "$ac_t""no" 1>&6
7762 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7764 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7771 # Check for Tk configuration script tkConfig.sh
7772 if test "$with_tk" = yes; then
7773 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7774 echo "configure:7775: checking for tkConfig.sh" >&5
7775 # Let user override test
7776 if test -z "$TK_CONFIG_SH"; then
7777 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7779 set X $pgac_test_dirs; shift
7780 if test $# -eq 0; then
7781 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7782 set X `echo 'puts $auto_path' | $TCLSH`; shift
7786 if test -r "$pgac_dir/tkConfig.sh"; then
7787 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7793 if test -z "$TK_CONFIG_SH"; then
7794 echo "$ac_t""no" 1>&6
7795 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7797 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7806 # Check for DocBook and tools
7808 for ac_prog in onsgmls nsgmls
7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
7811 set dummy $ac_prog; ac_word=$2
7812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7813 echo "configure:7814: checking for $ac_word" >&5
7814 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7817 if test -n "$NSGMLS"; then
7818 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
7820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7822 for ac_dir in $ac_dummy; do
7823 test -z "$ac_dir" && ac_dir=.
7824 if test -f $ac_dir/$ac_word; then
7825 ac_cv_prog_NSGMLS="$ac_prog"
7832 NSGMLS="$ac_cv_prog_NSGMLS"
7833 if test -n "$NSGMLS"; then
7834 echo "$ac_t""$NSGMLS" 1>&6
7836 echo "$ac_t""no" 1>&6
7839 test -n "$NSGMLS" && break
7842 # If you don't have nsgmls you won't get very far, so save the cycles.
7843 if test -n "$NSGMLS"; then
7844 for ac_prog in openjade jade
7846 # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7849 echo "configure:7850: checking for $ac_word" >&5
7850 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7853 if test -n "$JADE"; then
7854 ac_cv_prog_JADE="$JADE" # Let the user override the test.
7856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7858 for ac_dir in $ac_dummy; do
7859 test -z "$ac_dir" && ac_dir=.
7860 if test -f $ac_dir/$ac_word; then
7861 ac_cv_prog_JADE="$ac_prog"
7868 JADE="$ac_cv_prog_JADE"
7869 if test -n "$JADE"; then
7870 echo "$ac_t""$JADE" 1>&6
7872 echo "$ac_t""no" 1>&6
7875 test -n "$JADE" && break
7879 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
7880 echo "configure:7881: checking for DocBook V3.1" >&5
7881 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7884 cat >conftest.sgml <<EOF
7885 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
7889 <title>random</title>
7891 <title>testsect</title>
7898 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
7899 if test $? -eq 0; then
7900 pgac_cv_check_docbook=yes
7902 pgac_cv_check_docbook=no
7907 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
7909 have_docbook=$pgac_cv_check_docbook
7912 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
7913 echo "configure:7914: checking for DocBook stylesheets" >&5
7914 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
7915 echo $ac_n "(cached) $ac_c" 1>&6
7917 if test -n "$DOCBOOKSTYLE"; then
7918 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
7920 for pgac_prefix in /usr /usr/local /opt; do
7921 for pgac_infix in share lib; do
7922 for pgac_postfix in \
7923 sgml/stylesheets/nwalsh-modular \
7924 sgml/stylesheets/docbook \
7925 sgml/docbook/dsssl/modular
7927 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
7928 if test -r "$pgac_candidate/html/docbook.dsl" \
7929 && test -r "$pgac_candidate/print/docbook.dsl"
7931 pgac_cv_path_stylesheets=$pgac_candidate
7940 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
7942 if test -n "$DOCBOOKSTYLE"; then
7943 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
7945 echo "$ac_t""no" 1>&6
7947 for ac_prog in sgmlspl
7949 # Extract the first word of "$ac_prog", so it can be a program name with args.
7950 set dummy $ac_prog; ac_word=$2
7951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7952 echo "configure:7953: checking for $ac_word" >&5
7953 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7956 if test -n "$SGMLSPL"; then
7957 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
7959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7961 for ac_dir in $ac_dummy; do
7962 test -z "$ac_dir" && ac_dir=.
7963 if test -f $ac_dir/$ac_word; then
7964 ac_cv_prog_SGMLSPL="$ac_prog"
7971 SGMLSPL="$ac_cv_prog_SGMLSPL"
7972 if test -n "$SGMLSPL"; then
7973 echo "$ac_t""$SGMLSPL" 1>&6
7975 echo "$ac_t""no" 1>&6
7978 test -n "$SGMLSPL" && break
7983 # check whether 'test -ef' works
7984 if (test "$srcdir" -ef "$srcdir") >/dev/null 2>&1 ; then
7993 if test "$test_ef_works" = yes ; then
7994 # prepare build tree if outside source tree
7995 if test "$srcdir" -ef . ; then : ; else
7996 abs_top_srcdir=`cd $srcdir && pwd`
7997 echo $ac_n "preparing build tree... $ac_c" 1>&6
7998 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
7999 || { echo "configure: error: failed" 1>&2; exit 1; }
8000 echo "$ac_t""done" 1>&6
8005 cat > confcache <<\EOF
8006 # This file is a shell script that caches the results of configure
8007 # tests run on this system so they can be shared between configure
8008 # scripts and configure runs. It is not useful on other systems.
8009 # If it contains results you don't want to keep, you may remove or edit it.
8011 # By default, configure uses ./config.cache as the cache file,
8012 # creating it if it does not exist already. You can give configure
8013 # the --cache-file=FILE option to use a different cache file; that is
8014 # what configure does when it calls configure scripts in
8015 # subdirectories, so they share the cache.
8016 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8017 # config.status only pays attention to the cache file if you give it the
8018 # --recheck option to rerun configure.
8021 # The following way of writing the cache mishandles newlines in values,
8022 # but we know of no workaround that is simple, portable, and efficient.
8023 # So, don't put newlines in cache variables' values.
8024 # Ultrix sh set writes to stderr and can't be redirected directly,
8025 # and sets the high bit in the cache file unless we assign to the vars.
8027 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8029 # `set' does not quote correctly, so add quotes (double-quote substitution
8030 # turns \\\\ into \\, and sed turns \\ into \).
8032 -e "s/'/'\\\\''/g" \
8033 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8036 # `set' quotes correctly as required by POSIX, so do not add quotes.
8037 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8040 if cmp -s $cache_file confcache; then
8043 if test -w $cache_file; then
8044 echo "updating cache $cache_file"
8045 cat confcache > $cache_file
8047 echo "not updating unwritable cache $cache_file"
8052 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8054 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8055 # Let make expand exec_prefix.
8056 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8058 # Any assignment to VPATH causes Sun make to only execute
8059 # the first set of double-colon rules, so remove it if not needed.
8060 # If there is a colon in the path, we need to keep it.
8061 if test "x$srcdir" = x.; then
8062 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8065 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8067 DEFS=-DHAVE_CONFIG_H
8069 # Without the "./", some shells look in PATH for config.status.
8070 : ${CONFIG_STATUS=./config.status}
8072 echo creating $CONFIG_STATUS
8073 rm -f $CONFIG_STATUS
8074 cat > $CONFIG_STATUS <<EOF
8076 # Generated automatically by configure.
8077 # Run this file to recreate the current configuration.
8078 # This directory was configured as follows,
8079 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8081 # $0 $ac_configure_args
8083 # Compiler output produced by configure, useful for debugging
8084 # configure, is in ./config.log if it exists.
8086 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8089 case "\$ac_option" in
8090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8091 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8092 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8093 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8094 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8096 -help | --help | --hel | --he | --h)
8097 echo "\$ac_cs_usage"; exit 0 ;;
8098 *) echo "\$ac_cs_usage"; exit 1 ;;
8102 ac_given_srcdir=$srcdir
8104 trap 'rm -fr `echo "
8108 src/backend/port/Makefile
8109 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8111 cat >> $CONFIG_STATUS <<EOF
8113 # Protect against being on the right side of a sed subst in config.status.
8114 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8115 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8119 s%@CFLAGS@%$CFLAGS%g
8120 s%@CPPFLAGS@%$CPPFLAGS%g
8121 s%@CXXFLAGS@%$CXXFLAGS%g
8122 s%@FFLAGS@%$FFLAGS%g
8124 s%@LDFLAGS@%$LDFLAGS%g
8126 s%@exec_prefix@%$exec_prefix%g
8127 s%@prefix@%$prefix%g
8128 s%@program_transform_name@%$program_transform_name%g
8129 s%@bindir@%$bindir%g
8130 s%@sbindir@%$sbindir%g
8131 s%@libexecdir@%$libexecdir%g
8132 s%@datadir@%$datadir%g
8133 s%@sysconfdir@%$sysconfdir%g
8134 s%@sharedstatedir@%$sharedstatedir%g
8135 s%@localstatedir@%$localstatedir%g
8136 s%@libdir@%$libdir%g
8137 s%@includedir@%$includedir%g
8138 s%@oldincludedir@%$oldincludedir%g
8139 s%@docdir@%$docdir%g
8140 s%@mandir@%$mandir%g
8141 s%@VERSION@%$VERSION%g
8143 s%@host_alias@%$host_alias%g
8144 s%@host_cpu@%$host_cpu%g
8145 s%@host_vendor@%$host_vendor%g
8146 s%@host_os@%$host_os%g
8147 s%@PORTNAME@%$PORTNAME%g
8149 s%@MULTIBYTE@%$MULTIBYTE%g
8150 s%@default_port@%$default_port%g
8151 s%@enable_shared@%$enable_shared%g
8152 s%@enable_rpath@%$enable_rpath%g
8154 s%@EXEEXT@%$EXEEXT%g
8157 s%@autodepend@%$autodepend%g
8158 s%@INCLUDES@%$INCLUDES%g
8159 s%@with_tcl@%$with_tcl%g
8160 s%@with_tk@%$with_tk%g
8161 s%@enable_pltcl_unknown@%$enable_pltcl_unknown%g
8162 s%@with_perl@%$with_perl%g
8163 s%@with_python@%$with_python%g
8165 s%@with_java@%$with_java%g
8166 s%@with_krb4@%$with_krb4%g
8167 s%@with_krb5@%$with_krb5%g
8168 s%@krb_srvtab@%$krb_srvtab%g
8169 s%@with_openssl@%$with_openssl%g
8170 s%@enable_odbc@%$enable_odbc%g
8171 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8172 s%@ELF_SYS@%$ELF_SYS%g
8174 s%@CXXCPP@%$CXXCPP%g
8176 s%@with_CXX@%$with_CXX%g
8179 s%@FLEXFLAGS@%$FLEXFLAGS%g
8182 s%@with_gnu_ld@%$with_gnu_ld%g
8183 s%@ld_R_works@%$ld_R_works%g
8184 s%@RANLIB@%$RANLIB%g
8185 s%@LORDER@%$LORDER%g
8189 s%@YFLAGS@%$YFLAGS%g
8191 s%@PYTHON@%$PYTHON%g
8192 s%@python_version@%$python_version%g
8193 s%@python_prefix@%$python_prefix%g
8194 s%@python_execprefix@%$python_execprefix%g
8195 s%@python_configdir@%$python_configdir%g
8196 s%@python_moduledir@%$python_moduledir%g
8197 s%@python_includedir@%$python_includedir%g
8198 s%@python_dynlibdir@%$python_dynlibdir%g
8199 s%@python_makefile_pre_in@%$python_makefile_pre_in%g
8200 s%@python_libspec@%$python_libspec%g
8201 s%@SNPRINTF@%$SNPRINTF%g
8203 s%@GETRUSAGE@%$GETRUSAGE%g
8204 s%@SRANDOM@%$SRANDOM%g
8205 s%@GETHOSTNAME@%$GETHOSTNAME%g
8206 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8207 s%@INET_ATON@%$INET_ATON%g
8208 s%@STRERROR@%$STRERROR%g
8209 s%@STRDUP@%$STRDUP%g
8210 s%@STRTOL@%$STRTOL%g
8211 s%@STRTOUL@%$STRTOUL%g
8212 s%@STRCASECMP@%$STRCASECMP%g
8213 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8214 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8216 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8217 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8218 s%@NSGMLS@%$NSGMLS%g
8220 s%@have_docbook@%$have_docbook%g
8221 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
8222 s%@SGMLSPL@%$SGMLSPL%g
8223 s%@abs_top_srcdir@%$abs_top_srcdir%g
8228 cat >> $CONFIG_STATUS <<\EOF
8230 # Split the substitutions into bite-sized pieces for seds with
8231 # small command number limits, like on Digital OSF/1 and HP-UX.
8232 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8233 ac_file=1 # Number of current file.
8234 ac_beg=1 # First line for current file.
8235 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8238 while $ac_more_lines; do
8239 if test $ac_beg -gt 1; then
8240 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8242 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8244 if test ! -s conftest.s$ac_file; then
8246 rm -f conftest.s$ac_file
8248 if test -z "$ac_sed_cmds"; then
8249 ac_sed_cmds="sed -f conftest.s$ac_file"
8251 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8253 ac_file=`expr $ac_file + 1`
8255 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8258 if test -z "$ac_sed_cmds"; then
8263 cat >> $CONFIG_STATUS <<EOF
8265 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8268 src/backend/port/Makefile
8271 cat >> $CONFIG_STATUS <<\EOF
8272 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8273 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8275 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8276 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8277 *) ac_file_in="${ac_file}.in" ;;
8280 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8282 # Remove last slash and all that follows it. Not all systems have dirname.
8283 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8284 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8285 # The file is in a subdirectory.
8286 test ! -d "$ac_dir" && mkdir "$ac_dir"
8287 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8288 # A "../" for each directory in $ac_dir_suffix.
8289 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8291 ac_dir_suffix= ac_dots=
8294 case "$ac_given_srcdir" in
8296 if test -z "$ac_dots"; then top_srcdir=.
8297 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8298 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8300 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8301 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8305 echo creating "$ac_file"
8307 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8309 *Makefile*) ac_comsub="1i\\
8310 # $configure_input" ;;
8314 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8316 s%@configure_input@%$configure_input%g
8317 s%@srcdir@%$srcdir%g
8318 s%@top_srcdir@%$top_srcdir%g
8319 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8323 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8324 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8326 # ac_d sets the value in "#define NAME VALUE" lines.
8327 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8328 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8331 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8332 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8333 ac_uB='\([ ]\)%\1#\2define\3'
8336 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8337 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8338 ac_eB='$%\1#\2define\3'
8342 if test "${CONFIG_HEADERS+set}" != set; then
8344 cat >> $CONFIG_STATUS <<EOF
8345 CONFIG_HEADERS="src/include/config.h"
8347 cat >> $CONFIG_STATUS <<\EOF
8349 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8352 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8353 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8354 *) ac_file_in="${ac_file}.in" ;;
8357 echo creating $ac_file
8359 rm -f conftest.frag conftest.in conftest.out
8360 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8361 cat $ac_file_inputs > conftest.in
8365 # Transform confdefs.h into a sed script conftest.vals that substitutes
8366 # the proper values into config.h.in to produce config.h. And first:
8367 # Protect against being on the right side of a sed subst in config.status.
8368 # Protect against being in an unquoted here document in config.status.
8370 cat > conftest.hdr <<\EOF
8373 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8377 sed -n -f conftest.hdr confdefs.h > conftest.vals
8380 # This sed command replaces #undef with comments. This is necessary, for
8381 # example, in the case of _POSIX_SOURCE, which is predefined and required
8382 # on some systems where configure will not decide to define it.
8383 cat >> conftest.vals <<\EOF
8384 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8387 # Break up conftest.vals because some shells have a limit on
8388 # the size of here documents, and old seds have small limits too.
8393 ac_lines=`grep -c . conftest.vals`
8394 # grep -c gives empty output for an empty file on some AIX systems.
8395 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8396 # Write a limited-size here document to conftest.frag.
8397 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8398 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8400 sed -f conftest.frag conftest.in > conftest.out
8402 mv conftest.out conftest.in
8404 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8406 mv conftest.tail conftest.vals
8410 cat >> $CONFIG_STATUS <<\EOF
8411 rm -f conftest.frag conftest.h
8412 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8413 cat conftest.in >> conftest.h
8415 if cmp -s $ac_file conftest.h 2>/dev/null; then
8416 echo "$ac_file is unchanged"
8419 # Remove last slash and all that follows it. Not all systems have dirname.
8420 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8421 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8422 # The file is in a subdirectory.
8423 test ! -d "$ac_dir" && mkdir "$ac_dir"
8426 mv conftest.h $ac_file
8432 cat >> $CONFIG_STATUS <<EOF
8433 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}"
8434 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
8437 cat >> $CONFIG_STATUS <<\EOF
8438 srcdir=$ac_given_srcdir
8439 while test -n "$ac_sources"; do
8440 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8441 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8443 echo "linking $srcdir/$ac_source to $ac_dest"
8445 if test ! -r $srcdir/$ac_source; then
8446 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8450 # Make relative symlinks.
8451 # Remove last slash and all that follows it. Not all systems have dirname.
8452 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8453 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8454 # The dest file is in a subdirectory.
8455 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8456 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8457 # A "../" for each directory in $ac_dest_dir_suffix.
8458 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8460 ac_dest_dir_suffix= ac_dots=
8464 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8465 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8468 # Make a symlink if possible; otherwise try a hard link.
8469 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8470 ln $srcdir/$ac_source $ac_dest; then :
8472 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8476 cat >> $CONFIG_STATUS <<EOF
8479 cat >> $CONFIG_STATUS <<\EOF
8481 # Update timestamp for config.h (see Makefile.global)
8482 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
8486 chmod +x $CONFIG_STATUS
8487 rm -fr confdefs* $ac_clean_files
8488 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1