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 --enable-nls[=LANGUAGES] enable Native Language Support"
32 --with-pgport=PORTNUM change default port number [5432]"
34 --with-maxbackends=N set default maximum number of connections [32]"
36 --disable-shared do not build shared libraries"
38 --disable-rpath do not embed shared library search path in executables"
40 --enable-debug build with debugging symbols (-g)"
42 --enable-depend turn on automatic dependency tracking"
44 --enable-cassert enable assertion checks (for debugging)"
46 --with-tcl build Tcl and Tk interfaces"
48 --without-tk do not build Tk interfaces if Tcl is enabled"
50 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
52 --with-tkconfig=DIR tkConfig.sh is in DIR"
54 --enable-pltcl-unknown build PL/Tcl unknown support (if Tcl is enabled)"
56 --with-perl build Perl interface and PL/Perl"
58 --with-python build Python interface module"
60 --with-java build JDBC interface and Java tools"
62 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
64 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
66 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]"
68 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
70 --enable-odbc build the ODBC driver package"
72 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
74 --with-CXX build C++ modules (libpq++)"
76 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
78 --enable-syslog enable logging to syslog"
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
84 cache_file=./config.cache
93 program_transform_name=s,x,x,
101 bindir='${exec_prefix}/bin'
102 sbindir='${exec_prefix}/sbin'
103 libexecdir='${exec_prefix}/libexec'
104 datadir='${prefix}/share'
105 sysconfdir='${prefix}/etc'
106 sharedstatedir='${prefix}/com'
107 localstatedir='${prefix}/var'
108 libdir='${exec_prefix}/lib'
109 includedir='${prefix}/include'
110 oldincludedir='/usr/include'
111 docdir='${prefix}/doc'
112 mandir='${prefix}/man'
114 # Initialize some other variables.
117 SHELL=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
133 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 # Accept the important Cygnus configure options, so we can diagnose typos.
141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144 bindir="$ac_optarg" ;;
146 -build | --build | --buil | --bui | --bu)
148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149 build="$ac_optarg" ;;
151 -cache-file | --cache-file | --cache-fil | --cache-fi \
152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153 ac_prev=cache_file ;;
154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156 cache_file="$ac_optarg" ;;
158 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162 datadir="$ac_optarg" ;;
164 -disable-* | --disable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* | --enable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188 | --exec | --exe | --ex)
189 ac_prev=exec_prefix ;;
190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192 | --exec=* | --exe=* | --ex=*)
193 exec_prefix="$ac_optarg" ;;
195 -gas | --gas | --ga | --g)
196 # Obsolete; use --with-gas.
199 -help | --help | --hel | --he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --docdir=DIR doc documentation in DIR [PREFIX/doc]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
254 -host | --host | --hos | --ho)
256 -host=* | --host=* | --hos=* | --ho=*)
259 -includedir | --includedir | --includedi | --included | --include \
260 | --includ | --inclu | --incl | --inc)
261 ac_prev=includedir ;;
262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263 | --includ=* | --inclu=* | --incl=* | --inc=*)
264 includedir="$ac_optarg" ;;
266 -docdir | --docdir | --infodi | --infod | --doc | --inf)
268 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
269 docdir="$ac_optarg" ;;
271 -libdir | --libdir | --libdi | --libd)
273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
274 libdir="$ac_optarg" ;;
276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277 | --libexe | --libex | --libe)
278 ac_prev=libexecdir ;;
279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280 | --libexe=* | --libex=* | --libe=*)
281 libexecdir="$ac_optarg" ;;
283 -localstatedir | --localstatedir | --localstatedi | --localstated \
284 | --localstate | --localstat | --localsta | --localst \
285 | --locals | --local | --loca | --loc | --lo)
286 ac_prev=localstatedir ;;
287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290 localstatedir="$ac_optarg" ;;
292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295 mandir="$ac_optarg" ;;
298 # Obsolete; use --without-fp.
301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311 | --oldin | --oldi | --old | --ol | --o)
312 ac_prev=oldincludedir ;;
313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316 oldincludedir="$ac_optarg" ;;
318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321 prefix="$ac_optarg" ;;
323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
324 | --program-pre | --program-pr | --program-p)
325 ac_prev=program_prefix ;;
326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328 program_prefix="$ac_optarg" ;;
330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
331 | --program-suf | --program-su | --program-s)
332 ac_prev=program_suffix ;;
333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335 program_suffix="$ac_optarg" ;;
337 -program-transform-name | --program-transform-name \
338 | --program-transform-nam | --program-transform-na \
339 | --program-transform-n | --program-transform- \
340 | --program-transform | --program-transfor \
341 | --program-transfo | --program-transf \
342 | --program-trans | --program-tran \
343 | --progr-tra | --program-tr | --program-t)
344 ac_prev=program_transform_name ;;
345 -program-transform-name=* | --program-transform-name=* \
346 | --program-transform-nam=* | --program-transform-na=* \
347 | --program-transform-n=* | --program-transform-=* \
348 | --program-transform=* | --program-transfor=* \
349 | --program-transfo=* | --program-transf=* \
350 | --program-trans=* | --program-tran=* \
351 | --progr-tra=* | --program-tr=* | --program-t=*)
352 program_transform_name="$ac_optarg" ;;
354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355 | -silent | --silent | --silen | --sile | --sil)
358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362 sbindir="$ac_optarg" ;;
364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366 | --sharedst | --shareds | --shared | --share | --shar \
368 ac_prev=sharedstatedir ;;
369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373 sharedstatedir="$ac_optarg" ;;
375 -site | --site | --sit)
377 -site=* | --site=* | --sit=*)
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
392 -target | --target | --targe | --targ | --tar | --ta | --t)
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.13"
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
427 # Obsolete; use --with-x.
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file=src/backend/access/common/heaptuple.c
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
585 ac_n= ac_c='\c' ac_t=
597 for ac_dir in config $srcdir/config; do
598 if test -f $ac_dir/install-sh; then
600 ac_install_sh="$ac_aux_dir/install-sh -c"
602 elif test -f $ac_dir/install.sh; then
604 ac_install_sh="$ac_aux_dir/install.sh -c"
608 if test -z "$ac_aux_dir"; then
609 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
611 ac_config_guess=$ac_aux_dir/config.guess
612 ac_config_sub=$ac_aux_dir/config.sub
613 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
618 cat >> confdefs.h <<EOF
619 #define PG_VERSION "$VERSION"
626 # Make sure we can run config.sub.
627 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
628 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
631 echo $ac_n "checking host system type""... $ac_c" 1>&6
632 echo "configure:633: checking host system type" >&5
635 case "$host_alias" in
639 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
640 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
642 *) host_alias=$nonopt ;;
646 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
647 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
648 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
649 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
650 echo "$ac_t""$host" 1>&6
657 echo $ac_n "checking which template to use""... $ac_c" 1>&6
658 echo "configure:659: checking which template to use" >&5
660 # Check whether --with-template was given
661 if test x"${with_template+set}" = xset; then
662 case $with_template in
664 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
667 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
670 withval=$with_template
673 list) echo; ls "$srcdir/src/template"; exit;;
674 *) if test -f "$srcdir/src/template/$with_template" ; then
677 { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
682 esac # $with_template
685 # --with-template not given
688 aix*) template=aix ;;
689 beos*) template=beos ;;
690 bsdi*) template=bsdi ;;
691 cygwin*) template=win ;;
692 darwin*) template=darwin ;;
693 dgux*) template=dgux ;;
694 freebsd*) template=freebsd ;;
695 hpux*) template=hpux ;;
696 irix*) template=irix5 ;;
697 linux*) template=linux ;;
698 netbsd*) template=netbsd ;;
699 nextstep*) template=nextstep ;;
700 openbsd*) template=openbsd ;;
701 osf*) template=osf ;;
702 qnx*) template=qnx4 ;;
703 sco*) template=sco ;;
704 solaris*) template=solaris ;;
705 sunos*) template=sunos4 ;;
708 univel) template=univel ;;
710 sysv4*) template=svr4 ;;
711 sysv5*) template=unixware ;;
712 ultrix*) template=ultrix4 ;;
715 if test x"$template" = x"" ; then
716 { echo "configure: error:
717 *******************************************************************
718 PostgreSQL has apparently not been ported to your platform yet.
719 To try a manual configuration, look into the src/template directory
720 for a similar platform and use the '--with-template=' option.
722 Please also contact <pgsql-ports@postgresql.org> to see about
723 rectifying this. Include the above 'checking host system type...'
725 *******************************************************************
732 echo "$ac_t""$template" 1>&6
742 # Pick right test-and-set (TAS) code. Most platforms have inline
743 # assembler code in src/include/storage/s_lock.h, so we just use
746 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
747 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
748 i?86-*-solaris) need_tas=yes; tas_file=solaris_i386.s ;;
749 *) need_tas=no; tas_file=dummy.s ;;
753 if test "$need_tas" = yes ; then
761 ## Command line options
766 # Add non-standard directories to the include path
768 # Check whether --with-includes was given
769 if test x"${with_includes+set}" = xset; then
770 case $with_includes in
772 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
775 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
777 esac # $with_includes
782 # Add non-standard directories to the library search path
784 # Check whether --with-libraries was given
785 if test x"${with_libraries+set}" = xset; then
786 case $with_libraries in
788 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
791 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
794 withval=$with_libraries
795 LIBRARY_DIRS=$withval
797 esac # $with_libraries
800 # Check whether --with-libs was given
801 if test x"${with_libs+set}" = xset; then
804 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
807 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
811 LIBRARY_DIRS=$withval
818 # Locale (--enable-locale)
820 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
821 echo "configure:822: checking whether to build with locale support" >&5
822 # Check whether --enable-locale was given
823 if test x"${enable_locale+set}" = xset; then
824 case $enable_locale in
826 cat >> confdefs.h <<\EOF
835 enableval=$enable_locale
836 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
838 esac # $enable_locale
843 echo "$ac_t""$enable_locale" 1>&6
847 # Character set recode (--enable-recode)
849 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
850 echo "configure:851: checking whether to build with recode support" >&5
851 # Check whether --enable-recode was given
852 if test x"${enable_recode+set}" = xset; then
853 case $enable_recode in
855 cat >> confdefs.h <<\EOF
864 enableval=$enable_recode
865 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
867 esac # $enable_recode
872 echo "$ac_t""$enable_recode" 1>&6
879 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
880 echo "configure:881: checking whether to build with multibyte character support" >&5
882 # Check whether --enable-multibyte was given
883 if test x"${enable_multibyte+set}" = xset; then
884 case $enable_multibyte in
892 enableval=$enable_multibyte
896 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
897 MULTIBYTE=$enableval;;
899 { echo "configure: error: argument to --enable-multibyte must be one of:
900 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
901 UNICODE, MULE_INTERNAL,
902 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
904 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
908 esac # $enable_multibyte
913 if test "$enable_multibyte" = yes; then
915 cat >> confdefs.h <<\EOF
919 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
922 echo "$ac_t""no" 1>&6
929 # Unicode conversion (--enable-unicode-conversion)
931 echo $ac_n "checking whether to build with Unicode conversion support""... $ac_c" 1>&6
932 echo "configure:933: checking whether to build with Unicode conversion support" >&5
933 # Check whether --enable-unicode-conversion was given
934 if test x"${enable_unicode_conversion+set}" = xset; then
935 case $enable_unicode_conversion in
937 if test -z "$MULTIBYTE"; then
938 { echo "configure: error: --enable-unicode-conversion only works with --enable-multibyte" 1>&2; exit 1; }
940 cat >> confdefs.h <<\EOF
941 #define UNICODE_CONVERSION 1
949 enableval=$enable_unicode_conversion
950 { echo "configure: error: no argument expected for --enable-unicode-conversion option" 1>&2; exit 1; }
952 esac # $enable_unicode_conversion
954 enable_unicode_conversion=no
957 echo "$ac_t""$enable_unicode_conversion" 1>&6
962 echo $ac_n "checking whether NLS is wanted""... $ac_c" 1>&6
963 echo "configure:964: checking whether NLS is wanted" >&5
964 # Check whether --enable-nls was given
965 if test x"${enable_nls+set}" = xset; then
974 enableval=$enable_nls
976 WANTED_LANGUAGES=$enableval
983 if test "$enable_nls" = yes; then
984 cat >> confdefs.h <<\EOF
990 echo "$ac_t""$enable_nls" 1>&6
995 # Default port number (--with-pgport), default 5432
997 echo $ac_n "checking for default port number""... $ac_c" 1>&6
998 echo "configure:999: checking for default port number" >&5
999 # Check whether --with-pgport was given
1000 if test x"${with_pgport+set}" = xset; then
1001 case $with_pgport in
1003 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
1006 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
1009 withval=$with_pgport
1010 default_port=$withval
1016 echo "$ac_t""$default_port" 1>&6
1017 # Need both of these because some places want an integer and some a string
1018 cat >> confdefs.h <<EOF
1019 #define DEF_PGPORT ${default_port}
1022 cat >> confdefs.h <<EOF
1023 #define DEF_PGPORT_STR "${default_port}"
1029 # Maximum number of allowed connections (--with-maxbackends), default 32
1031 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
1032 echo "configure:1033: checking for default soft limit on number of connections" >&5
1033 # Check whether --with-maxbackends was given
1034 if test x"${with_maxbackends+set}" = xset; then
1035 case $with_maxbackends in
1037 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1040 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1042 esac # $with_maxbackends
1046 echo "$ac_t""$with_maxbackends" 1>&6
1047 cat >> confdefs.h <<EOF
1048 #define DEF_MAXBACKENDS $with_maxbackends
1054 # Option to disable shared libraries
1056 # Check whether --enable-shared was given
1057 if test x"${enable_shared+set}" = xset; then
1058 case $enable_shared in
1066 enableval=$enable_shared
1067 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1069 esac # $enable_shared
1077 # '-rpath'-like feature can be disabled
1079 # Check whether --enable-rpath was given
1080 if test x"${enable_rpath+set}" = xset; then
1081 case $enable_rpath in
1089 enableval=$enable_rpath
1090 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1092 esac # $enable_rpath
1101 # --enable-debug adds -g to compiler flags
1103 # Check whether --enable-debug was given
1104 if test x"${enable_debug+set}" = xset; then
1105 case $enable_debug in
1113 enableval=$enable_debug
1114 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1116 esac # $enable_debug
1127 # For historical reasons you can also use --with-CC to specify the C compiler
1128 # to use, although the standard way to do this is to set the CC environment
1130 # Check whether --with-CC was given
1131 if test x"${with_CC+set}" = xset; then
1134 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1137 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1146 # On AIX, default compiler to xlc.
1147 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1149 # Save CFLAGS from the environment
1150 has_environ_CFLAGS="${CFLAGS+yes}"
1153 # Extract the first word of "gcc", so it can be a program name with args.
1154 set dummy gcc; ac_word=$2
1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1156 echo "configure:1157: checking for $ac_word" >&5
1157 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1160 if test -n "$CC"; then
1161 ac_cv_prog_CC="$CC" # Let the user override the test.
1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1165 for ac_dir in $ac_dummy; do
1166 test -z "$ac_dir" && ac_dir=.
1167 if test -f $ac_dir/$ac_word; then
1176 if test -n "$CC"; then
1177 echo "$ac_t""$CC" 1>&6
1179 echo "$ac_t""no" 1>&6
1182 if test -z "$CC"; then
1183 # Extract the first word of "cc", so it can be a program name with args.
1184 set dummy cc; ac_word=$2
1185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1186 echo "configure:1187: checking for $ac_word" >&5
1187 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 if test -n "$CC"; then
1191 ac_cv_prog_CC="$CC" # Let the user override the test.
1193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1196 for ac_dir in $ac_dummy; do
1197 test -z "$ac_dir" && ac_dir=.
1198 if test -f $ac_dir/$ac_word; then
1199 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1200 ac_prog_rejected=yes
1208 if test $ac_prog_rejected = yes; then
1209 # We found a bogon in the path, so make sure we never use it.
1210 set dummy $ac_cv_prog_CC
1212 if test $# -gt 0; then
1213 # We chose a different compiler from the bogus one.
1214 # However, it has the same basename, so the bogon will be chosen
1215 # first if we set CC to just the basename; use the full file name.
1217 set dummy "$ac_dir/$ac_word" "$@"
1225 if test -n "$CC"; then
1226 echo "$ac_t""$CC" 1>&6
1228 echo "$ac_t""no" 1>&6
1231 if test -z "$CC"; then
1232 case "`uname -s`" in
1234 # Extract the first word of "cl", so it can be a program name with args.
1235 set dummy cl; ac_word=$2
1236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1237 echo "configure:1238: checking for $ac_word" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 if test -n "$CC"; then
1242 ac_cv_prog_CC="$CC" # Let the user override the test.
1244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1246 for ac_dir in $ac_dummy; do
1247 test -z "$ac_dir" && ac_dir=.
1248 if test -f $ac_dir/$ac_word; then
1257 if test -n "$CC"; then
1258 echo "$ac_t""$CC" 1>&6
1260 echo "$ac_t""no" 1>&6
1265 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1268 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1269 echo "configure:1270: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1272 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1273 ac_cpp='$CPP $CPPFLAGS'
1274 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1275 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1276 cross_compiling=$ac_cv_prog_cc_cross
1278 cat > conftest.$ac_ext << EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1285 if { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1286 ac_cv_prog_cc_works=yes
1287 # If we can't run a trivial program, we are probably using a cross compiler.
1288 if (./conftest; exit) 2>/dev/null; then
1289 ac_cv_prog_cc_cross=no
1291 ac_cv_prog_cc_cross=yes
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1296 ac_cv_prog_cc_works=no
1300 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1303 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1304 cross_compiling=$ac_cv_prog_cc_cross
1306 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1307 if test $ac_cv_prog_cc_works = no; then
1308 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1310 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1311 echo "configure:1312: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1312 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1313 cross_compiling=$ac_cv_prog_cc_cross
1315 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1316 echo "configure:1317: checking whether we are using GNU C" >&5
1317 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1320 cat > conftest.c <<EOF
1325 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1332 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1334 if test $ac_cv_prog_gcc = yes; then
1340 ac_test_CFLAGS="${CFLAGS+set}"
1341 ac_save_CFLAGS="$CFLAGS"
1343 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1344 echo "configure:1345: checking whether ${CC-cc} accepts -g" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 echo 'void f(){}' > conftest.c
1349 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1358 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1359 if test "$ac_test_CFLAGS" = set; then
1360 CFLAGS="$ac_save_CFLAGS"
1361 elif test $ac_cv_prog_cc_g = yes; then
1362 if test "$GCC" = yes; then
1368 if test "$GCC" = yes; then
1376 . "$srcdir/src/template/$template" || exit
1378 if test "$has_environ_CFLAGS" = yes; then
1381 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
1384 echo "using CFLAGS=$CFLAGS"
1385 # Check if the compiler still works with the template settings
1386 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1387 echo "configure:1388: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1390 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1391 ac_cpp='$CPP $CPPFLAGS'
1392 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1393 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1394 cross_compiling=$ac_cv_prog_cc_cross
1396 cat > conftest.$ac_ext << EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1403 if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1404 ac_cv_prog_cc_works=yes
1405 # If we can't run a trivial program, we are probably using a cross compiler.
1406 if (./conftest; exit) 2>/dev/null; then
1407 ac_cv_prog_cc_cross=no
1409 ac_cv_prog_cc_cross=yes
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1414 ac_cv_prog_cc_works=no
1418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1419 ac_cpp='$CPP $CPPFLAGS'
1420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1422 cross_compiling=$ac_cv_prog_cc_cross
1424 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1425 if test $ac_cv_prog_cc_works = no; then
1426 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1428 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1429 echo "configure:1430: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1430 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1431 cross_compiling=$ac_cv_prog_cc_cross
1433 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1434 echo "configure:1435: checking for Cygwin environment" >&5
1435 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1445 #define __CYGWIN__ __CYGWIN32__
1450 if { (eval echo configure:1451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1454 echo "configure: failed program was:" >&5
1455 cat conftest.$ac_ext >&5
1463 echo "$ac_t""$ac_cv_cygwin" 1>&6
1465 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1466 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1467 echo "configure:1468: checking for mingw32 environment" >&5
1468 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftest.$ac_ext <<EOF
1472 #line 1473 "configure"
1473 #include "confdefs.h"
1479 if { (eval echo configure:1480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1483 echo "configure: failed program was:" >&5
1484 cat conftest.$ac_ext >&5
1492 echo "$ac_t""$ac_cv_mingw32" 1>&6
1494 test "$ac_cv_mingw32" = yes && MINGW32=yes
1497 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1498 echo "configure:1499: checking for executable suffix" >&5
1499 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1502 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1506 echo 'int main () { return 0; }' > conftest.$ac_ext
1508 if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1509 for file in conftest.*; do
1511 *.c | *.o | *.obj) ;;
1512 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1516 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1519 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1524 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1525 echo "$ac_t""${ac_cv_exeext}" 1>&6
1528 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1529 echo "configure:1530: checking how to run the C preprocessor" >&5
1530 # On Suns, sometimes $CPP names a directory.
1531 if test -n "$CPP" && test -d "$CPP"; then
1534 if test -z "$CPP"; then
1535 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 # This must be in double quotes, not single quotes, because CPP may get
1539 # substituted into the Makefile and "${CC-cc}" will confuse make.
1541 # On the NeXT, cc -E runs the code through the compiler's parser,
1542 # not just through cpp.
1543 cat > conftest.$ac_ext <<EOF
1544 #line 1545 "configure"
1545 #include "confdefs.h"
1549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1550 { (eval echo configure:1551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1552 if test -z "$ac_err"; then
1556 echo "configure: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1559 CPP="${CC-cc} -E -traditional-cpp"
1560 cat > conftest.$ac_ext <<EOF
1561 #line 1562 "configure"
1562 #include "confdefs.h"
1566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1567 { (eval echo configure:1568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1569 if test -z "$ac_err"; then
1573 echo "configure: failed program was:" >&5
1574 cat conftest.$ac_ext >&5
1576 CPP="${CC-cc} -nologo -E"
1577 cat > conftest.$ac_ext <<EOF
1578 #line 1579 "configure"
1579 #include "confdefs.h"
1583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1584 { (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1586 if test -z "$ac_err"; then
1590 echo "configure: failed program was:" >&5
1591 cat conftest.$ac_ext >&5
1600 ac_cv_prog_CPP="$CPP"
1602 CPP="$ac_cv_prog_CPP"
1604 ac_cv_prog_CPP="$CPP"
1606 echo "$ac_t""$CPP" 1>&6
1608 if test $ac_cv_prog_gcc = yes; then
1609 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1610 echo "configure:1611: checking whether ${CC-cc} needs -traditional" >&5
1611 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 ac_pattern="Autoconf.*'x'"
1615 cat > conftest.$ac_ext <<EOF
1616 #line 1617 "configure"
1617 #include "confdefs.h"
1621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1622 egrep "$ac_pattern" >/dev/null 2>&1; then
1624 ac_cv_prog_gcc_traditional=yes
1627 ac_cv_prog_gcc_traditional=no
1632 if test $ac_cv_prog_gcc_traditional = no; then
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1640 egrep "$ac_pattern" >/dev/null 2>&1; then
1642 ac_cv_prog_gcc_traditional=yes
1649 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1650 if test $ac_cv_prog_gcc_traditional = yes; then
1651 CC="$CC -traditional"
1657 # Create compiler version string
1658 if test x"$GCC" = x"yes" ; then
1659 cc_string="GCC `${CC} --version`"
1663 cat >> confdefs.h <<EOF
1664 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1670 # Automatic dependency tracking
1672 # Check whether --enable-depend was given
1673 if test x"${enable_depend+set}" = xset; then
1674 case $enable_depend in
1682 enableval=$enable_depend
1683 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1685 esac # $enable_depend
1694 # Enable assert checks
1696 # Check whether --enable-cassert was given
1697 if test x"${enable_cassert+set}" = xset; then
1698 case $enable_cassert in
1700 cat >> confdefs.h <<\EOF
1701 #define USE_ASSERT_CHECKING 1
1709 enableval=$enable_cassert
1710 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1712 esac # $enable_cassert
1720 # Include directories
1724 # SRCH_INC comes from the template file
1725 for dir in $with_includes $SRCH_INC; do
1726 if test -d "$dir"; then
1727 INCLUDES="$INCLUDES -I$dir"
1729 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1737 # Library directories
1741 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1742 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1743 if test -d "$dir"; then
1744 LIBDIRS="$LIBDIRS -L$dir"
1746 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1755 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1756 echo "configure:1757: checking whether to build with Tcl" >&5
1757 # Check whether --with-tcl was given
1758 if test x"${with_tcl+set}" = xset; then
1768 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1775 echo "$ac_t""$with_tcl" 1>&6
1778 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1779 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether to build with Tk" >&5
1781 if test "$with_tcl" = yes; then
1782 # Check whether --with-tk was given
1783 if test x"${with_tk+set}" = xset; then
1793 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1803 echo "$ac_t""$with_tk" 1>&6
1807 # We see if the path to the TCL/TK configuration scripts is specified.
1808 # This will override the use of tclsh to find the paths to search.
1810 # Check whether --with-tclconfig was given
1811 if test x"${with_tclconfig+set}" = xset; then
1812 case $with_tclconfig in
1814 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1817 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1819 esac # $with_tclconfig
1822 # We see if the path to the TK configuration scripts is specified.
1823 # This will override the use of tclsh to find the paths to search.
1825 # Check whether --with-tkconfig was given
1826 if test x"${with_tkconfig+set}" = xset; then
1827 case $with_tkconfig in
1829 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1832 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1834 esac # $with_tkconfig
1839 # If Tcl is enabled (above) then check for pltcl_unknown_support
1841 echo $ac_n "checking whether to build with PL/Tcl unknown support""... $ac_c" 1>&6
1842 echo "configure:1843: checking whether to build with PL/Tcl unknown support" >&5
1843 if test "$with_tcl" = yes; then
1844 # Check whether --enable-pltcl-unknown was given
1845 if test x"${enable_pltcl_unknown+set}" = xset; then
1846 case $enable_pltcl_unknown in
1848 cat >> confdefs.h <<\EOF
1849 #define ENABLE_PLTCL_UNKNOWN 1
1857 enableval=$enable_pltcl_unknown
1858 { echo "configure: error: no argument expected for --enable-pltcl-unknown option" 1>&2; exit 1; }
1860 esac # $enable_pltcl_unknown
1862 enable_pltcl_unknown=no
1866 enable_pltcl_unknown=no
1868 echo "$ac_t""$enable_pltcl_unknown" 1>&6
1873 # Optionally build Perl modules (Pg.pm and PL/Perl)
1875 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1876 echo "configure:1877: checking whether to build Perl modules" >&5
1877 # Check whether --with-perl was given
1878 if test x"${with_perl+set}" = xset; then
1888 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1895 echo "$ac_t""$with_perl" 1>&6
1900 # Optionally build Python interface module
1902 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1903 echo "configure:1904: checking whether to build Python modules" >&5
1904 # Check whether --with-python was given
1905 if test x"${with_python+set}" = xset; then
1906 case $with_python in
1914 withval=$with_python
1915 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1922 echo "$ac_t""$with_python" 1>&6
1926 # Optionally build the Java/JDBC tools
1928 echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
1929 echo "configure:1930: checking whether to build Java/JDBC tools" >&5
1930 # Check whether --with-java was given
1931 if test x"${with_java+set}" = xset; then
1934 echo "$ac_t""yes" 1>&6
1936 for ac_prog in jakarta-ant ant ant.sh ant.bat
1938 # Extract the first word of "$ac_prog", so it can be a program name with args.
1939 set dummy $ac_prog; ac_word=$2
1940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_word" >&5
1942 if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1947 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
1950 ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
1953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1955 for ac_dir in $ac_dummy; do
1956 test -z "$ac_dir" && ac_dir=.
1957 if test -f $ac_dir/$ac_word; then
1958 ac_cv_path_ANT="$ac_dir/$ac_word"
1966 ANT="$ac_cv_path_ANT"
1967 if test -n "$ANT"; then
1968 echo "$ac_t""$ANT" 1>&6
1970 echo "$ac_t""no" 1>&6
1973 test -n "$ANT" && break
1977 echo $ac_n "checking whether $ANT works""... $ac_c" 1>&6
1978 echo "configure:1979: checking whether $ANT works" >&5
1979 if eval "test \"`echo '$''{'pgac_cv_prog_ant_works'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1983 cat > conftest.java << EOF
1984 public class conftest {
1985 int testmethod(int a, int b) {
1991 cat > conftest.xml << EOF
1992 <project name="conftest" default="conftest">
1993 <target name="conftest">
1994 <javac srcdir="." includes="conftest.java">
2000 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
2001 { (eval echo configure:2002: \"$pgac_cmd\") 1>&5; (eval $pgac_cmd) 2>&5; }
2003 if test $? = 0 && test -f ./conftest.class ; then
2004 pgac_cv_prog_ant_works=yes
2006 echo "configure: failed java program was:" >&5
2007 cat conftest.java >&5
2008 echo "configure: failed build file was:" >&5
2009 cat conftest.xml >&5
2010 pgac_cv_prog_ant_works=no
2013 rm -f conftest* core core.* *.core
2017 echo "$ac_t""$pgac_cv_prog_ant_works" 1>&6
2019 if test "$pgac_cv_prog_ant_works" != yes; then
2020 { echo "configure: error: ant does not work" 1>&2; exit 1; }
2024 if test -z "$ANT"; then
2025 { echo "configure: error: Ant is required to build Java components" 1>&2; exit 1; }
2029 echo "$ac_t""no" 1>&6
2033 { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
2038 echo "$ac_t""no" 1>&6
2046 # Check whether --with-krb4 was given
2047 if test x"${with_krb4+set}" = xset; then
2050 krb4_prefix=/usr/athena
2058 krb4_prefix=$withval
2065 if test "$with_krb4" = yes; then
2067 echo "$ac_t""building with Kerberos 4 support" 1>&6
2068 cat >> confdefs.h <<\EOF
2073 if test -d "$krb4_prefix/include"; then
2074 INCLUDES="$INCLUDES -I$krb4_prefix/include"
2076 if test -d "$krb4_prefix/lib"; then
2077 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
2080 krb_srvtab="/etc/srvtab"
2091 # Check whether --with-krb5 was given
2092 if test x"${with_krb5+set}" = xset; then
2095 krb5_prefix=/usr/athena
2103 krb5_prefix=$withval
2110 if test "$with_krb5" = yes; then
2112 echo "$ac_t""building with Kerberos 5 support" 1>&6
2113 cat >> confdefs.h <<\EOF
2118 if test -d "$krb5_prefix/include"; then
2119 INCLUDES="$INCLUDES -I$krb5_prefix/include"
2121 if test -d "$krb5_prefix/lib"; then
2122 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
2125 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2133 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2134 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2135 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2142 # Kerberos configuration parameters
2144 # Check whether --with-krb-srvnam was given
2145 if test x"${with_krb_srvnam+set}" = xset; then
2146 case $with_krb_srvnam in
2148 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2151 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2153 esac # $with_krb_srvnam
2155 with_krb_srvnam="postgres"
2157 cat >> confdefs.h <<EOF
2158 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2167 # Check whether --with-openssl was given
2168 if test x"${with_openssl+set}" = xset; then
2169 case $with_openssl in
2171 openssl_prefix=/usr/local/ssl
2177 withval=$with_openssl
2179 openssl_prefix=$withval
2181 esac # $with_openssl
2186 if test "$with_openssl" = yes; then
2188 echo "$ac_t""building with OpenSSL support" 1>&6
2189 cat >> confdefs.h <<\EOF
2194 if test -d "${openssl_prefix}/include" ; then
2195 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2197 if test -d "${openssl_prefix}/lib" ; then
2198 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2209 # Optionally enable the building of the ODBC driver
2213 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2214 enable_odbc=$with_odbc
2217 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2218 echo "configure:2219: checking whether to build the ODBC driver" >&5
2219 # Check whether --enable-odbc was given
2220 if test x"${enable_odbc+set}" = xset; then
2221 case $enable_odbc in
2229 enableval=$enable_odbc
2230 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2237 echo "$ac_t""$enable_odbc" 1>&6
2241 # Allow for overriding the default location of the odbcinst.ini
2242 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2243 # Check whether --with-odbcinst was given
2244 if test x"${with_odbcinst+set}" = xset; then
2245 case $with_odbcinst in
2247 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2250 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2253 withval=$with_odbcinst
2254 odbcinst_ini_dir=$withval
2256 esac # $with_odbcinst
2258 odbcinst_ini_dir="\${sysconfdir}"
2264 # Assume system is ELF if it predefines __ELF__ as 1,
2265 # otherwise believe host_os based default.
2267 freebsd1*|freebsd2*) elf=no;;
2268 freebsd3*|freebsd4*) elf=yes;;
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2280 egrep "yes" >/dev/null 2>&1; then
2285 if test "X$elf" = "Xyes" ; then
2298 # Optionally build C++ code (i.e., libpq++)
2300 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2301 echo "configure:2302: checking whether to build C++ modules" >&5
2302 # Check whether --with-CXX was given
2303 if test x"${with_CXX+set}" = xset; then
2321 if test "$with_CXX" = yes; then
2323 echo "$ac_t""yes" 1>&6
2325 # If the user has specified CXXFLAGS in the environment, leave it
2326 # alone, else use a default.
2328 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2329 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2331 # Extract the first word of "$ac_prog", so it can be a program name with args.
2332 set dummy $ac_prog; ac_word=$2
2333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 if test -n "$CXX"; then
2339 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2343 for ac_dir in $ac_dummy; do
2344 test -z "$ac_dir" && ac_dir=.
2345 if test -f $ac_dir/$ac_word; then
2346 ac_cv_prog_CXX="$ac_prog"
2353 CXX="$ac_cv_prog_CXX"
2354 if test -n "$CXX"; then
2355 echo "$ac_t""$CXX" 1>&6
2357 echo "$ac_t""no" 1>&6
2360 test -n "$CXX" && break
2362 test -n "$CXX" || CXX="gcc"
2365 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2366 echo "configure:2367: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2369 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2370 ac_cpp='$CXXCPP $CPPFLAGS'
2371 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2372 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2373 cross_compiling=$ac_cv_prog_cxx_cross
2375 cat > conftest.$ac_ext << EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2380 int main(){return(0);}
2382 if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2383 ac_cv_prog_cxx_works=yes
2384 # If we can't run a trivial program, we are probably using a cross compiler.
2385 if (./conftest; exit) 2>/dev/null; then
2386 ac_cv_prog_cxx_cross=no
2388 ac_cv_prog_cxx_cross=yes
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2393 ac_cv_prog_cxx_works=no
2397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2401 cross_compiling=$ac_cv_prog_cc_cross
2403 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2404 if test $ac_cv_prog_cxx_works = no; then
2405 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2407 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2408 echo "configure:2409: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2409 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2410 cross_compiling=$ac_cv_prog_cxx_cross
2412 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2413 echo "configure:2414: checking whether we are using GNU C++" >&5
2414 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.C <<EOF
2422 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2429 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2431 if test $ac_cv_prog_gxx = yes; then
2437 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2438 ac_save_CXXFLAGS="$CXXFLAGS"
2440 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2441 echo "configure:2442: checking whether ${CXX-g++} accepts -g" >&5
2442 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 echo 'void f(){}' > conftest.cc
2446 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2447 ac_cv_prog_cxx_g=yes
2455 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2456 if test "$ac_test_CXXFLAGS" = set; then
2457 CXXFLAGS="$ac_save_CXXFLAGS"
2458 elif test $ac_cv_prog_cxx_g = yes; then
2459 if test "$GXX" = yes; then
2465 if test "$GXX" = yes; then
2472 if test "$has_environ_CXXFLAGS" != yes; then
2473 if test "$GXX" = yes; then
2477 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2478 unixware) CXXFLAGS='-O' ;;
2483 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2484 CXXFLAGS="$CXXFLAGS -g"
2486 echo "using CXXFLAGS=$CXXFLAGS"
2488 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2489 echo "configure:2490: checking how to run the C++ preprocessor" >&5
2490 if test -z "$CXXCPP"; then
2491 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2495 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2496 ac_cpp='$CXXCPP $CPPFLAGS'
2497 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2498 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2499 cross_compiling=$ac_cv_prog_cxx_cross
2500 CXXCPP="${CXX-g++} -E"
2501 cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2507 { (eval echo configure:2508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2509 if test -z "$ac_err"; then
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2519 ac_cv_prog_CXXCPP="$CXXCPP"
2521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2525 cross_compiling=$ac_cv_prog_cc_cross
2528 CXXCPP="$ac_cv_prog_CXXCPP"
2529 echo "$ac_t""$CXXCPP" 1>&6
2534 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2535 ac_cpp='$CXXCPP $CPPFLAGS'
2536 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2537 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2538 cross_compiling=$ac_cv_prog_cxx_cross
2540 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2541 echo $ac_n "checking for string""... $ac_c" 1>&6
2542 echo "configure:2543: checking for string" >&5
2543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2552 { (eval echo configure:2553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2554 if test -z "$ac_err"; then
2556 eval "ac_cv_header_$ac_safe=yes"
2559 echo "configure: failed program was:" >&5
2560 cat conftest.$ac_ext >&5
2562 eval "ac_cv_header_$ac_safe=no"
2566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2567 echo "$ac_t""yes" 1>&6
2568 cat >> confdefs.h <<\EOF
2569 #define HAVE_CXX_STRING_HEADER 1
2573 echo "$ac_t""no" 1>&6
2577 if test x"$ac_cv_header_string" != xyes ; then
2578 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2579 echo "configure:2580: checking for class string in <string.h>" >&5
2580 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2594 if { (eval echo configure:2595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2596 pgac_cv_class_string_in_string_h=yes
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2601 pgac_cv_class_string_in_string_h=no
2606 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2608 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2609 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2617 cross_compiling=$ac_cv_prog_cc_cross
2620 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2621 echo "configure:2622: checking for namespace std in C++" >&5
2622 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2628 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2629 ac_cpp='$CXXCPP $CPPFLAGS'
2630 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2631 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2632 cross_compiling=$ac_cv_prog_cxx_cross
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2639 #ifdef HAVE_CXX_STRING_HEADER
2642 using namespace std;
2648 if { (eval echo configure:2649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2650 pgac_cv_cxx_namespace_std=yes
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2655 pgac_cv_cxx_namespace_std=no
2659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2663 cross_compiling=$ac_cv_prog_cc_cross
2667 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2669 if test $pgac_cv_cxx_namespace_std = yes ; then
2670 cat >> confdefs.h <<\EOF
2671 #define HAVE_NAMESPACE_STD 1
2677 echo "$ac_t""no" 1>&6
2682 CPPFLAGS="$CPPFLAGS $INCLUDES"
2683 LDFLAGS="$LDFLAGS $LIBDIRS"
2685 echo "using CPPFLAGS=$CPPFLAGS"
2686 echo "using LDFLAGS=$LDFLAGS"
2689 for ac_prog in mawk gawk nawk awk
2691 # Extract the first word of "$ac_prog", so it can be a program name with args.
2692 set dummy $ac_prog; ac_word=$2
2693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2694 echo "configure:2695: checking for $ac_word" >&5
2695 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 if test -n "$AWK"; then
2699 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2703 for ac_dir in $ac_dummy; do
2704 test -z "$ac_dir" && ac_dir=.
2705 if test -f $ac_dir/$ac_word; then
2706 ac_cv_prog_AWK="$ac_prog"
2713 AWK="$ac_cv_prog_AWK"
2714 if test -n "$AWK"; then
2715 echo "$ac_t""$AWK" 1>&6
2717 echo "$ac_t""no" 1>&6
2720 test -n "$AWK" && break
2723 echo $ac_n "checking for flex""... $ac_c" 1>&6
2724 echo "configure:2725: checking for flex" >&5
2725 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 # Let the user override the test
2729 if test -n "$FLEX"; then
2730 pgac_cv_path_flex=$FLEX
2734 for pgac_dir in $PATH; do
2735 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2738 for pgac_prog in flex lex; do
2739 pgac_candidate="$pgac_dir/$pgac_prog"
2740 if test -f "$pgac_candidate" \
2741 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2743 echo '%%' > conftest.l
2744 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2745 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2746 pgac_broken_flex=$pgac_candidate
2750 pgac_cv_path_flex=$pgac_candidate
2758 : ${pgac_cv_path_flex=no}
2763 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2764 if test x"$pgac_cv_path_flex" = x"no"; then
2765 if test -n "$pgac_broken_flex"; then
2766 echo "configure: warning:
2767 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2768 *** should get version 2.5.4 or later." 1>&2
2771 echo "configure: warning:
2772 *** Without Flex you will not be able to build PostgreSQL from CVS or
2773 *** change any of the scanner definition files. You can obtain Flex from
2774 *** a GNU mirror site. (If you are using the official distribution of
2775 *** PostgreSQL then you do not need to worry about this because the Flex
2776 *** output is pre-generated.)" 1>&2
2779 if test x"$pgac_cv_path_flex" = x"no"; then
2782 FLEX=$pgac_cv_path_flex
2788 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2789 echo "configure:2790: checking whether ln -s works" >&5
2790 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2794 if ln -s X conftestdata 2>/dev/null
2797 ac_cv_prog_LN_S="ln -s"
2802 LN_S="$ac_cv_prog_LN_S"
2803 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2804 echo "$ac_t""yes" 1>&6
2806 echo "$ac_t""no" 1>&6
2809 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2810 if test "${with_gnu_ld+set}" = set; then
2811 withval="$with_gnu_ld"
2812 test "$withval" = no || with_gnu_ld=yes
2818 if test "$ac_cv_prog_gcc" = yes; then
2819 # Check if gcc -print-prog-name=ld gives a path.
2820 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2821 echo "configure:2822: checking for ld used by GCC" >&5
2824 # gcc leaves a trailing carriage return which upsets mingw
2825 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2827 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2830 # Accept absolute paths.
2831 [\\/]* | [A-Za-z]:[\\/]*)
2832 re_direlt='/[^/][^/]*/\.\./'
2833 # Canonicalize the path of ld
2834 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2835 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2836 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2838 test -z "$LD" && LD="$ac_prog"
2841 # If it fails, then pretend we aren't using GCC.
2845 # If it is relative, then search for the first ld in PATH.
2849 elif test "$with_gnu_ld" = yes; then
2850 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2851 echo "configure:2852: checking for GNU ld" >&5
2853 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2854 echo "configure:2855: checking for non-GNU ld" >&5
2856 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 if test -z "$LD"; then
2860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2861 for ac_dir in $PATH; do
2862 test -z "$ac_dir" && ac_dir=.
2863 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2864 ac_cv_path_LD="$ac_dir/$ac_prog"
2865 # Check to see if the program is GNU ld. I'd rather use --version,
2866 # but apparently some GNU ld's only accept -v.
2867 # Break only if it was the GNU/non-GNU ld that we prefer.
2868 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2869 test "$with_gnu_ld" != no && break
2871 test "$with_gnu_ld" != yes && break
2877 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2882 if test -n "$LD"; then
2883 echo "$ac_t""$LD" 1>&6
2885 echo "$ac_t""no" 1>&6
2887 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2888 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2889 echo "configure:2890: checking if the linker ($LD) is GNU ld" >&5
2890 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2894 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2895 ac_cv_prog_gnu_ld=yes
2897 ac_cv_prog_gnu_ld=no
2901 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2902 with_gnu_ld=$ac_cv_prog_gnu_ld
2907 case $host_os in sysv5*)
2908 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2909 echo "configure:2910: checking whether ld -R works" >&5
2910 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2914 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2915 cat > conftest.$ac_ext <<EOF
2916 #line 2917 "configure"
2917 #include "confdefs.h"
2923 if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2925 pgac_cv_prog_ld_R=yes
2927 echo "configure: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2930 pgac_cv_prog_ld_R=no
2933 LDFLAGS=$pgac_save_LDFLAGS
2937 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2938 ld_R_works=$pgac_cv_prog_ld_R
2941 # Extract the first word of "ranlib", so it can be a program name with args.
2942 set dummy ranlib; ac_word=$2
2943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2944 echo "configure:2945: checking for $ac_word" >&5
2945 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 if test -n "$RANLIB"; then
2949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2953 for ac_dir in $ac_dummy; do
2954 test -z "$ac_dir" && ac_dir=.
2955 if test -f $ac_dir/$ac_word; then
2956 ac_cv_prog_RANLIB="ranlib"
2961 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2964 RANLIB="$ac_cv_prog_RANLIB"
2965 if test -n "$RANLIB"; then
2966 echo "$ac_t""$RANLIB" 1>&6
2968 echo "$ac_t""no" 1>&6
2971 for ac_prog in lorder
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2976 echo "configure:2977: checking for $ac_word" >&5
2977 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 if test -n "$LORDER"; then
2981 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
2983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2985 for ac_dir in $ac_dummy; do
2986 test -z "$ac_dir" && ac_dir=.
2987 if test -f $ac_dir/$ac_word; then
2988 ac_cv_prog_LORDER="$ac_prog"
2995 LORDER="$ac_cv_prog_LORDER"
2996 if test -n "$LORDER"; then
2997 echo "$ac_t""$LORDER" 1>&6
2999 echo "$ac_t""no" 1>&6
3002 test -n "$LORDER" && break
3005 # Extract the first word of "tar", so it can be a program name with args.
3006 set dummy tar; ac_word=$2
3007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3008 echo "configure:3009: checking for $ac_word" >&5
3009 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3014 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3017 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
3020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3022 for ac_dir in $ac_dummy; do
3023 test -z "$ac_dir" && ac_dir=.
3024 if test -f $ac_dir/$ac_word; then
3025 ac_cv_path_TAR="$ac_dir/$ac_word"
3033 TAR="$ac_cv_path_TAR"
3034 if test -n "$TAR"; then
3035 echo "$ac_t""$TAR" 1>&6
3037 echo "$ac_t""no" 1>&6
3042 # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3045 echo "configure:3046: checking for $ac_word" >&5
3046 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 if test -n "$PERL"; then
3050 ac_cv_prog_PERL="$PERL" # Let the user override the test.
3052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3054 for ac_dir in $ac_dummy; do
3055 test -z "$ac_dir" && ac_dir=.
3056 if test -f $ac_dir/$ac_word; then
3057 ac_cv_prog_PERL="$ac_prog"
3064 PERL="$ac_cv_prog_PERL"
3065 if test -n "$PERL"; then
3066 echo "$ac_t""$PERL" 1>&6
3068 echo "$ac_t""no" 1>&6
3071 test -n "$PERL" && break
3075 for ac_prog in 'bison -y'
3077 # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_word" >&5
3081 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 if test -n "$YACC"; then
3085 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3089 for ac_dir in $ac_dummy; do
3090 test -z "$ac_dir" && ac_dir=.
3091 if test -f $ac_dir/$ac_word; then
3092 ac_cv_prog_YACC="$ac_prog"
3099 YACC="$ac_cv_prog_YACC"
3100 if test -n "$YACC"; then
3101 echo "$ac_t""$YACC" 1>&6
3103 echo "$ac_t""no" 1>&6
3106 test -n "$YACC" && break
3109 if test -z "$YACC"; then
3110 echo "configure: warning:
3111 *** Without Bison you will not be able to build PostgreSQL from CVS or
3112 *** change any of the parser definition files. You can obtain Bison from
3113 *** a GNU mirror site. (If you are using the official distribution of
3114 *** PostgreSQL then you do not need to worry about this because the Bison
3115 *** output is pre-generated.) To use a different yacc program (possible,
3116 *** but not recommended), set the environment variable YACC before running
3117 *** 'configure'." 1>&2
3121 if test "$with_tk" = yes; then
3122 # Extract the first word of "wish", so it can be a program name with args.
3123 set dummy wish; ac_word=$2
3124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3125 echo "configure:3126: checking for $ac_word" >&5
3126 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3131 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3134 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3139 for ac_dir in $ac_dummy; do
3140 test -z "$ac_dir" && ac_dir=.
3141 if test -f $ac_dir/$ac_word; then
3142 ac_cv_path_WISH="$ac_dir/$ac_word"
3150 WISH="$ac_cv_path_WISH"
3151 if test -n "$WISH"; then
3152 echo "$ac_t""$WISH" 1>&6
3154 echo "$ac_t""no" 1>&6
3157 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3160 if test "$with_python" = yes; then
3161 # Extract the first word of "python", so it can be a program name with args.
3162 set dummy python; ac_word=$2
3163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3164 echo "configure:3165: checking for $ac_word" >&5
3165 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3170 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3173 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
3176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3178 for ac_dir in $ac_dummy; do
3179 test -z "$ac_dir" && ac_dir=.
3180 if test -f $ac_dir/$ac_word; then
3181 ac_cv_path_PYTHON="$ac_dir/$ac_word"
3189 PYTHON="$ac_cv_path_PYTHON"
3190 if test -n "$PYTHON"; then
3191 echo "$ac_t""$PYTHON" 1>&6
3193 echo "$ac_t""no" 1>&6
3196 if test x"$PYTHON" = x""; then
3197 { echo "configure: error: Python not found" 1>&2; exit 1; }
3201 echo $ac_n "checking Python installation directories""... $ac_c" 1>&6
3202 echo "configure:3203: checking Python installation directories" >&5
3203 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
3204 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
3205 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
3206 python_configdir="${python_execprefix}/lib/python${python_version}/config"
3207 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
3208 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
3209 python_includespec="-I${python_prefix}/include/python${python_version}"
3210 if test "$python_prefix" != "$python_execprefix"; then
3211 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
3214 # This should be enough of a message.
3215 if test "$python_prefix" != "$python_execprefix"; then
3216 echo "$ac_t""$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" 1>&6
3218 echo "$ac_t""$python_prefix/lib/python${python_version}" 1>&6
3225 echo $ac_n "checking how to link an embedded Python application""... $ac_c" 1>&6
3226 echo "configure:3227: checking how to link an embedded Python application" >&5
3228 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3229 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
3230 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
3231 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3232 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3234 pgac_tab=" " # tab character
3235 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"`
3237 echo "$ac_t""${python_libspec}" 1>&6
3247 echo $ac_n "checking for readline""... $ac_c" 1>&6
3248 echo "configure:3249: checking for readline" >&5
3250 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 pgac_cv_check_readline=no
3254 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3255 for pgac_rllib in -lreadline -ledit ; do
3256 pgac_save_LIBS=$LIBS
3257 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* Override any gcc2 internal prototype to avoid an error. */
3262 /* We use char because int might match the return type of a gcc2
3263 builtin and then its argument prototype would still apply. */
3270 if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3272 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2
3274 echo "configure: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3278 LIBS=$pgac_save_LIBS
3281 LIBS=$pgac_save_LIBS
3285 if test "$pgac_cv_check_readline" != no ; then
3286 cat >> confdefs.h <<\EOF
3287 #define HAVE_LIBREADLINE 1
3290 LIBS="$pgac_cv_check_readline $LIBS"
3291 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3293 echo "$ac_t""no" 1>&6
3296 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3297 echo "configure:3298: checking for library containing using_history" >&5
3298 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 ac_func_search_save_LIBS="$LIBS"
3302 ac_cv_search_using_history="no"
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3309 char using_history();
3315 if { (eval echo configure:3316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3317 ac_cv_search_using_history="none required"
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3323 test "$ac_cv_search_using_history" = "no" && for i in history; do
3324 LIBS="-l$i $ac_func_search_save_LIBS"
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 /* Override any gcc2 internal prototype to avoid an error. */
3329 /* We use char because int might match the return type of a gcc2
3330 builtin and then its argument prototype would still apply. */
3331 char using_history();
3337 if { (eval echo configure:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3339 ac_cv_search_using_history="-l$i"
3342 echo "configure: failed program was:" >&5
3343 cat conftest.$ac_ext >&5
3347 LIBS="$ac_func_search_save_LIBS"
3350 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3351 if test "$ac_cv_search_using_history" != "no"; then
3352 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3353 cat >> confdefs.h <<\EOF
3354 #define HAVE_HISTORY_FUNCTIONS 1
3361 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3363 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3364 echo "configure:3365: checking for main in -lbsd" >&5
3365 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 ac_save_LIBS="$LIBS"
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3381 eval "ac_cv_lib_$ac_lib_var=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 eval "ac_cv_lib_$ac_lib_var=no"
3389 LIBS="$ac_save_LIBS"
3392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3393 echo "$ac_t""yes" 1>&6
3394 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3395 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3396 cat >> confdefs.h <<EOF
3397 #define $ac_tr_lib 1
3403 echo "$ac_t""no" 1>&6
3407 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3408 echo "configure:3409: checking for setproctitle in -lutil" >&5
3409 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 ac_save_LIBS="$LIBS"
3415 cat > conftest.$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 /* Override any gcc2 internal prototype to avoid an error. */
3419 /* We use char because int might match the return type of a gcc2
3420 builtin and then its argument prototype would still apply. */
3421 char setproctitle();
3427 if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3429 eval "ac_cv_lib_$ac_lib_var=yes"
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3434 eval "ac_cv_lib_$ac_lib_var=no"
3437 LIBS="$ac_save_LIBS"
3440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3442 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3443 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3444 cat >> confdefs.h <<EOF
3445 #define $ac_tr_lib 1
3451 echo "$ac_t""no" 1>&6
3454 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3455 echo "configure:3456: checking for main in -lm" >&5
3456 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 ac_save_LIBS="$LIBS"
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3470 if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3472 eval "ac_cv_lib_$ac_lib_var=yes"
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3477 eval "ac_cv_lib_$ac_lib_var=no"
3480 LIBS="$ac_save_LIBS"
3483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3484 echo "$ac_t""yes" 1>&6
3485 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3487 cat >> confdefs.h <<EOF
3488 #define $ac_tr_lib 1
3494 echo "$ac_t""no" 1>&6
3497 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3498 echo "configure:3499: checking for main in -ldl" >&5
3499 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 ac_save_LIBS="$LIBS"
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3513 if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3515 eval "ac_cv_lib_$ac_lib_var=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 eval "ac_cv_lib_$ac_lib_var=no"
3523 LIBS="$ac_save_LIBS"
3526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3528 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3530 cat >> confdefs.h <<EOF
3531 #define $ac_tr_lib 1
3537 echo "$ac_t""no" 1>&6
3540 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3541 echo "configure:3542: checking for main in -lsocket" >&5
3542 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 ac_save_LIBS="$LIBS"
3547 LIBS="-lsocket $LIBS"
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3556 if { (eval echo configure:3557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3558 eval "ac_cv_lib_$ac_lib_var=yes"
3560 echo "configure: failed program was:" >&5
3561 cat conftest.$ac_ext >&5
3563 eval "ac_cv_lib_$ac_lib_var=no"
3566 LIBS="$ac_save_LIBS"
3569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3570 echo "$ac_t""yes" 1>&6
3571 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3572 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3573 cat >> confdefs.h <<EOF
3574 #define $ac_tr_lib 1
3577 LIBS="-lsocket $LIBS"
3580 echo "$ac_t""no" 1>&6
3583 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3584 echo "configure:3585: checking for main in -lnsl" >&5
3585 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 ac_save_LIBS="$LIBS"
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3601 eval "ac_cv_lib_$ac_lib_var=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 eval "ac_cv_lib_$ac_lib_var=no"
3609 LIBS="$ac_save_LIBS"
3612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3613 echo "$ac_t""yes" 1>&6
3614 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3616 cat >> confdefs.h <<EOF
3617 #define $ac_tr_lib 1
3623 echo "$ac_t""no" 1>&6
3626 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3627 echo "configure:3628: checking for main in -lipc" >&5
3628 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3632 ac_save_LIBS="$LIBS"
3634 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3642 if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3644 eval "ac_cv_lib_$ac_lib_var=yes"
3646 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5
3649 eval "ac_cv_lib_$ac_lib_var=no"
3652 LIBS="$ac_save_LIBS"
3655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3656 echo "$ac_t""yes" 1>&6
3657 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3659 cat >> confdefs.h <<EOF
3660 #define $ac_tr_lib 1
3666 echo "$ac_t""no" 1>&6
3669 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3670 echo "configure:3671: checking for main in -lIPC" >&5
3671 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3673 echo $ac_n "(cached) $ac_c" 1>&6
3675 ac_save_LIBS="$LIBS"
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3685 if { (eval echo configure:3686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3687 eval "ac_cv_lib_$ac_lib_var=yes"
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 eval "ac_cv_lib_$ac_lib_var=no"
3695 LIBS="$ac_save_LIBS"
3698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3700 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3701 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3702 cat >> confdefs.h <<EOF
3703 #define $ac_tr_lib 1
3709 echo "$ac_t""no" 1>&6
3712 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3713 echo "configure:3714: checking for main in -llc" >&5
3714 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3718 ac_save_LIBS="$LIBS"
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3728 if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3730 eval "ac_cv_lib_$ac_lib_var=yes"
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3735 eval "ac_cv_lib_$ac_lib_var=no"
3738 LIBS="$ac_save_LIBS"
3741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3743 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3744 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3745 cat >> confdefs.h <<EOF
3746 #define $ac_tr_lib 1
3752 echo "$ac_t""no" 1>&6
3755 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3756 echo "configure:3757: checking for main in -ldld" >&5
3757 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 ac_save_LIBS="$LIBS"
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3771 if { (eval echo configure:3772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3773 eval "ac_cv_lib_$ac_lib_var=yes"
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3778 eval "ac_cv_lib_$ac_lib_var=no"
3781 LIBS="$ac_save_LIBS"
3784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3788 cat >> confdefs.h <<EOF
3789 #define $ac_tr_lib 1
3795 echo "$ac_t""no" 1>&6
3798 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3799 echo "configure:3800: checking for main in -lld" >&5
3800 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 ac_save_LIBS="$LIBS"
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3814 if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3816 eval "ac_cv_lib_$ac_lib_var=yes"
3818 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3821 eval "ac_cv_lib_$ac_lib_var=no"
3824 LIBS="$ac_save_LIBS"
3827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3828 echo "$ac_t""yes" 1>&6
3829 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3830 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3831 cat >> confdefs.h <<EOF
3832 #define $ac_tr_lib 1
3838 echo "$ac_t""no" 1>&6
3841 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3842 echo "configure:3843: checking for main in -lcompat" >&5
3843 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 ac_save_LIBS="$LIBS"
3848 LIBS="-lcompat $LIBS"
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3859 eval "ac_cv_lib_$ac_lib_var=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.$ac_ext >&5
3864 eval "ac_cv_lib_$ac_lib_var=no"
3867 LIBS="$ac_save_LIBS"
3870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3871 echo "$ac_t""yes" 1>&6
3872 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3874 cat >> confdefs.h <<EOF
3875 #define $ac_tr_lib 1
3878 LIBS="-lcompat $LIBS"
3881 echo "$ac_t""no" 1>&6
3884 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3885 echo "configure:3886: checking for main in -lBSD" >&5
3886 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 ac_save_LIBS="$LIBS"
3892 cat > conftest.$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3902 eval "ac_cv_lib_$ac_lib_var=yes"
3904 echo "configure: failed program was:" >&5
3905 cat conftest.$ac_ext >&5
3907 eval "ac_cv_lib_$ac_lib_var=no"
3910 LIBS="$ac_save_LIBS"
3913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3914 echo "$ac_t""yes" 1>&6
3915 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3916 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3917 cat >> confdefs.h <<EOF
3918 #define $ac_tr_lib 1
3924 echo "$ac_t""no" 1>&6
3927 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3928 echo "configure:3929: checking for main in -lgen" >&5
3929 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3933 ac_save_LIBS="$LIBS"
3935 cat > conftest.$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3943 if { (eval echo configure:3944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3945 eval "ac_cv_lib_$ac_lib_var=yes"
3947 echo "configure: failed program was:" >&5
3948 cat conftest.$ac_ext >&5
3950 eval "ac_cv_lib_$ac_lib_var=no"
3953 LIBS="$ac_save_LIBS"
3956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3957 echo "$ac_t""yes" 1>&6
3958 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3959 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3960 cat >> confdefs.h <<EOF
3961 #define $ac_tr_lib 1
3967 echo "$ac_t""no" 1>&6
3970 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3971 echo "configure:3972: checking for main in -lPW" >&5
3972 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 ac_save_LIBS="$LIBS"
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3986 if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3988 eval "ac_cv_lib_$ac_lib_var=yes"
3990 echo "configure: failed program was:" >&5
3991 cat conftest.$ac_ext >&5
3993 eval "ac_cv_lib_$ac_lib_var=no"
3996 LIBS="$ac_save_LIBS"
3999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4000 echo "$ac_t""yes" 1>&6
4001 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4002 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4003 cat >> confdefs.h <<EOF
4004 #define $ac_tr_lib 1
4010 echo "$ac_t""no" 1>&6
4013 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
4014 echo "configure:4015: checking for main in -lresolv" >&5
4015 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
4016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4019 ac_save_LIBS="$LIBS"
4020 LIBS="-lresolv $LIBS"
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4029 if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4031 eval "ac_cv_lib_$ac_lib_var=yes"
4033 echo "configure: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4036 eval "ac_cv_lib_$ac_lib_var=no"
4039 LIBS="$ac_save_LIBS"
4042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4043 echo "$ac_t""yes" 1>&6
4044 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4045 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4046 cat >> confdefs.h <<EOF
4047 #define $ac_tr_lib 1
4050 LIBS="-lresolv $LIBS"
4053 echo "$ac_t""no" 1>&6
4056 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
4057 echo "configure:4058: checking for main in -lunix" >&5
4058 ac_lib_var=`echo unix'_'main | sed 'y%./+-%__p_%'`
4059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 ac_save_LIBS="$LIBS"
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4072 if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4074 eval "ac_cv_lib_$ac_lib_var=yes"
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 eval "ac_cv_lib_$ac_lib_var=no"
4082 LIBS="$ac_save_LIBS"
4085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4086 echo "$ac_t""yes" 1>&6
4087 ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4088 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4089 cat >> confdefs.h <<EOF
4090 #define $ac_tr_lib 1
4096 echo "$ac_t""no" 1>&6
4100 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4101 echo "configure:4102: checking for library containing crypt" >&5
4102 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4105 ac_func_search_save_LIBS="$LIBS"
4106 ac_cv_search_crypt="no"
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 /* Override any gcc2 internal prototype to avoid an error. */
4111 /* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4121 ac_cv_search_crypt="none required"
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4127 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4128 LIBS="-l$i $ac_func_search_save_LIBS"
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4132 /* Override any gcc2 internal prototype to avoid an error. */
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4143 ac_cv_search_crypt="-l$i"
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4151 LIBS="$ac_func_search_save_LIBS"
4154 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4155 if test "$ac_cv_search_crypt" != "no"; then
4156 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4161 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4162 echo "configure:4163: checking for __inet_ntoa in -lbind" >&5
4163 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4165 echo $ac_n "(cached) $ac_c" 1>&6
4167 ac_save_LIBS="$LIBS"
4169 cat > conftest.$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4172 /* Override any gcc2 internal prototype to avoid an error. */
4173 /* We use char because int might match the return type of a gcc2
4174 builtin and then its argument prototype would still apply. */
4181 if { (eval echo configure:4182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4183 eval "ac_cv_lib_$ac_lib_var=yes"
4185 echo "configure: failed program was:" >&5
4186 cat conftest.$ac_ext >&5
4188 eval "ac_cv_lib_$ac_lib_var=no"
4191 LIBS="$ac_save_LIBS"
4194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4195 echo "$ac_t""yes" 1>&6
4196 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4197 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4198 cat >> confdefs.h <<EOF
4199 #define $ac_tr_lib 1
4205 echo "$ac_t""no" 1>&6
4208 cat > conftest.$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 egrep "z_streamp" >/dev/null 2>&1; then
4217 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4218 echo "configure:4219: checking for inflate in -lz" >&5
4219 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 ac_save_LIBS="$LIBS"
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 /* Override any gcc2 internal prototype to avoid an error. */
4229 /* We use char because int might match the return type of a gcc2
4230 builtin and then its argument prototype would still apply. */
4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4239 eval "ac_cv_lib_$ac_lib_var=yes"
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4244 eval "ac_cv_lib_$ac_lib_var=no"
4247 LIBS="$ac_save_LIBS"
4250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4251 echo "$ac_t""yes" 1>&6
4252 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4254 cat >> confdefs.h <<EOF
4255 #define $ac_tr_lib 1
4261 echo "$ac_t""no" 1>&6
4270 if test "$with_krb4" = yes ; then
4271 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4272 echo "configure:4273: checking for des_encrypt in -ldes" >&5
4273 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4277 ac_save_LIBS="$LIBS"
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4282 /* Override any gcc2 internal prototype to avoid an error. */
4283 /* We use char because int might match the return type of a gcc2
4284 builtin and then its argument prototype would still apply. */
4291 if { (eval echo configure:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4293 eval "ac_cv_lib_$ac_lib_var=yes"
4295 echo "configure: failed program was:" >&5
4296 cat conftest.$ac_ext >&5
4298 eval "ac_cv_lib_$ac_lib_var=no"
4301 LIBS="$ac_save_LIBS"
4304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4305 echo "$ac_t""yes" 1>&6
4306 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4307 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4308 cat >> confdefs.h <<EOF
4309 #define $ac_tr_lib 1
4315 echo "$ac_t""no" 1>&6
4316 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4319 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4320 echo "configure:4321: checking for krb_sendauth in -lkrb" >&5
4321 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 ac_save_LIBS="$LIBS"
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 /* Override any gcc2 internal prototype to avoid an error. */
4331 /* We use char because int might match the return type of a gcc2
4332 builtin and then its argument prototype would still apply. */
4333 char krb_sendauth();
4339 if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4341 eval "ac_cv_lib_$ac_lib_var=yes"
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4346 eval "ac_cv_lib_$ac_lib_var=no"
4349 LIBS="$ac_save_LIBS"
4352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4354 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4355 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4356 cat >> confdefs.h <<EOF
4357 #define $ac_tr_lib 1
4363 echo "$ac_t""no" 1>&6
4364 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4369 if test "$with_krb5" = yes ; then
4370 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4371 echo "configure:4372: checking for com_err in -lcom_err" >&5
4372 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 ac_save_LIBS="$LIBS"
4377 LIBS="-lcom_err $LIBS"
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4381 /* Override any gcc2 internal prototype to avoid an error. */
4382 /* We use char because int might match the return type of a gcc2
4383 builtin and then its argument prototype would still apply. */
4390 if { (eval echo configure:4391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4392 eval "ac_cv_lib_$ac_lib_var=yes"
4394 echo "configure: failed program was:" >&5
4395 cat conftest.$ac_ext >&5
4397 eval "ac_cv_lib_$ac_lib_var=no"
4400 LIBS="$ac_save_LIBS"
4403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4404 echo "$ac_t""yes" 1>&6
4405 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4406 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4407 cat >> confdefs.h <<EOF
4408 #define $ac_tr_lib 1
4411 LIBS="-lcom_err $LIBS"
4414 echo "$ac_t""no" 1>&6
4415 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4418 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4419 echo "configure:4420: checking for krb5_encrypt in -lcrypto" >&5
4420 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4422 echo $ac_n "(cached) $ac_c" 1>&6
4424 ac_save_LIBS="$LIBS"
4425 LIBS="-lcrypto $LIBS"
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 /* Override any gcc2 internal prototype to avoid an error. */
4430 /* We use char because int might match the return type of a gcc2
4431 builtin and then its argument prototype would still apply. */
4432 char krb5_encrypt();
4438 if { (eval echo configure:4439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4440 eval "ac_cv_lib_$ac_lib_var=yes"
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4445 eval "ac_cv_lib_$ac_lib_var=no"
4448 LIBS="$ac_save_LIBS"
4451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4452 echo "$ac_t""yes" 1>&6
4453 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4455 cat >> confdefs.h <<EOF
4456 #define $ac_tr_lib 1
4459 LIBS="-lcrypto $LIBS"
4462 echo "$ac_t""no" 1>&6
4463 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4464 echo "configure:4465: checking for krb5_encrypt in -lk5crypto" >&5
4465 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 ac_save_LIBS="$LIBS"
4470 LIBS="-lk5crypto $LIBS"
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4474 /* Override any gcc2 internal prototype to avoid an error. */
4475 /* We use char because int might match the return type of a gcc2
4476 builtin and then its argument prototype would still apply. */
4477 char krb5_encrypt();
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4485 eval "ac_cv_lib_$ac_lib_var=yes"
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4490 eval "ac_cv_lib_$ac_lib_var=no"
4493 LIBS="$ac_save_LIBS"
4496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4500 cat >> confdefs.h <<EOF
4501 #define $ac_tr_lib 1
4504 LIBS="-lk5crypto $LIBS"
4507 echo "$ac_t""no" 1>&6
4508 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4513 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4514 echo "configure:4515: checking for krb5_sendauth in -lkrb5" >&5
4515 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4519 ac_save_LIBS="$LIBS"
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4524 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4527 char krb5_sendauth();
4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535 eval "ac_cv_lib_$ac_lib_var=yes"
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4540 eval "ac_cv_lib_$ac_lib_var=no"
4543 LIBS="$ac_save_LIBS"
4546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4548 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4549 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4550 cat >> confdefs.h <<EOF
4551 #define $ac_tr_lib 1
4557 echo "$ac_t""no" 1>&6
4558 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4563 if test "$with_openssl" = yes ; then
4564 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4565 echo "configure:4566: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4566 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 ac_save_LIBS="$LIBS"
4571 LIBS="-lcrypto $LIBS"
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 /* Override any gcc2 internal prototype to avoid an error. */
4576 /* We use char because int might match the return type of a gcc2
4577 builtin and then its argument prototype would still apply. */
4578 char CRYPTO_new_ex_data();
4581 CRYPTO_new_ex_data()
4584 if { (eval echo configure:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4586 eval "ac_cv_lib_$ac_lib_var=yes"
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4591 eval "ac_cv_lib_$ac_lib_var=no"
4594 LIBS="$ac_save_LIBS"
4597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4599 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4600 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4601 cat >> confdefs.h <<EOF
4602 #define $ac_tr_lib 1
4605 LIBS="-lcrypto $LIBS"
4608 echo "$ac_t""no" 1>&6
4609 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4612 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4613 echo "configure:4614: checking for SSL_library_init in -lssl" >&5
4614 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 ac_save_LIBS="$LIBS"
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 /* Override any gcc2 internal prototype to avoid an error. */
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4626 char SSL_library_init();
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4634 eval "ac_cv_lib_$ac_lib_var=yes"
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4639 eval "ac_cv_lib_$ac_lib_var=no"
4642 LIBS="$ac_save_LIBS"
4645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4648 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4649 cat >> confdefs.h <<EOF
4650 #define $ac_tr_lib 1
4656 echo "$ac_t""no" 1>&6
4657 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4662 if test "$enable_nls" = yes ; then
4665 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
4666 echo "configure:4667: checking for library containing gettext" >&5
4667 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 ac_func_search_save_LIBS="$LIBS"
4671 ac_cv_search_gettext="no"
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4686 ac_cv_search_gettext="none required"
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4692 test "$ac_cv_search_gettext" = "no" && for i in intl; do
4693 LIBS="-l$i $ac_func_search_save_LIBS"
4694 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure"
4696 #include "confdefs.h"
4697 /* Override any gcc2 internal prototype to avoid an error. */
4698 /* We use char because int might match the return type of a gcc2
4699 builtin and then its argument prototype would still apply. */
4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4708 ac_cv_search_gettext="-l$i"
4711 echo "configure: failed program was:" >&5
4712 cat conftest.$ac_ext >&5
4716 LIBS="$ac_func_search_save_LIBS"
4719 echo "$ac_t""$ac_cv_search_gettext" 1>&6
4720 if test "$ac_cv_search_gettext" != "no"; then
4721 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
4724 { echo "configure: error: a gettext implementation is required for NLS" 1>&2; exit 1; }
4726 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4727 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4728 echo "configure:4729: checking for libintl.h" >&5
4729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4730 echo $ac_n "(cached) $ac_c" 1>&6
4732 cat > conftest.$ac_ext <<EOF
4733 #line 4734 "configure"
4734 #include "confdefs.h"
4735 #include <libintl.h>
4737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4738 { (eval echo configure:4739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4740 if test -z "$ac_err"; then
4742 eval "ac_cv_header_$ac_safe=yes"
4745 echo "configure: failed program was:" >&5
4746 cat conftest.$ac_ext >&5
4748 eval "ac_cv_header_$ac_safe=no"
4752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4753 echo "$ac_t""yes" 1>&6
4756 echo "$ac_t""no" 1>&6
4757 { echo "configure: error: header file <libintl.h> is required for NLS" 1>&2; exit 1; }
4760 for ac_prog in msgfmt
4762 # Extract the first word of "$ac_prog", so it can be a program name with args.
4763 set dummy $ac_prog; ac_word=$2
4764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4765 echo "configure:4766: checking for $ac_word" >&5
4766 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
4767 echo $ac_n "(cached) $ac_c" 1>&6
4769 if test -n "$MSGFMT"; then
4770 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4772 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4774 for ac_dir in $ac_dummy; do
4775 test -z "$ac_dir" && ac_dir=.
4776 if test -f $ac_dir/$ac_word; then
4777 ac_cv_prog_MSGFMT="$ac_prog"
4784 MSGFMT="$ac_cv_prog_MSGFMT"
4785 if test -n "$MSGFMT"; then
4786 echo "$ac_t""$MSGFMT" 1>&6
4788 echo "$ac_t""no" 1>&6
4791 test -n "$MSGFMT" && break
4794 if test -z "$MSGFMT"; then
4795 { echo "configure: error: msgfmt is required for NLS" 1>&2; exit 1; }
4797 for ac_prog in msgmerge
4799 # Extract the first word of "$ac_prog", so it can be a program name with args.
4800 set dummy $ac_prog; ac_word=$2
4801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4802 echo "configure:4803: checking for $ac_word" >&5
4803 if eval "test \"`echo '$''{'ac_cv_prog_MSGMERGE'+set}'`\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4806 if test -n "$MSGMERGE"; then
4807 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
4809 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4811 for ac_dir in $ac_dummy; do
4812 test -z "$ac_dir" && ac_dir=.
4813 if test -f $ac_dir/$ac_word; then
4814 ac_cv_prog_MSGMERGE="$ac_prog"
4821 MSGMERGE="$ac_cv_prog_MSGMERGE"
4822 if test -n "$MSGMERGE"; then
4823 echo "$ac_t""$MSGMERGE" 1>&6
4825 echo "$ac_t""no" 1>&6
4828 test -n "$MSGMERGE" && break
4831 for ac_prog in xgettext
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4836 echo "configure:4837: checking for $ac_word" >&5
4837 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 if test -n "$XGETTEXT"; then
4841 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
4843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4845 for ac_dir in $ac_dummy; do
4846 test -z "$ac_dir" && ac_dir=.
4847 if test -f $ac_dir/$ac_word; then
4848 ac_cv_prog_XGETTEXT="$ac_prog"
4855 XGETTEXT="$ac_cv_prog_XGETTEXT"
4856 if test -n "$XGETTEXT"; then
4857 echo "$ac_t""$XGETTEXT" 1>&6
4859 echo "$ac_t""no" 1>&6
4862 test -n "$XGETTEXT" && break
4866 # Note: share/locale is always the default, independent of $datadir
4867 localedir='${prefix}/share/locale'
4868 if test x"$prefix" = x"NONE"; then
4869 exp_localedir="$ac_default_prefix/share/locale"
4871 exp_localedir="$prefix/share/locale"
4875 cat >> confdefs.h <<EOF
4876 #define LOCALEDIR "$exp_localedir"
4886 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
4888 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4890 echo "configure:4891: checking for $ac_hdr" >&5
4891 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4900 { (eval echo configure:4901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4902 if test -z "$ac_err"; then
4904 eval "ac_cv_header_$ac_safe=yes"
4907 echo "configure: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 eval "ac_cv_header_$ac_safe=no"
4914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4917 cat >> confdefs.h <<EOF
4918 #define $ac_tr_hdr 1
4922 echo "$ac_t""no" 1>&6
4927 for ac_hdr in netinet/in.h
4929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4931 echo "configure:4932: checking for $ac_hdr" >&5
4932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4933 echo $ac_n "(cached) $ac_c" 1>&6
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4941 { (eval echo configure:4942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4943 if test -z "$ac_err"; then
4945 eval "ac_cv_header_$ac_safe=yes"
4948 echo "configure: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4951 eval "ac_cv_header_$ac_safe=no"
4955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4958 cat >> confdefs.h <<EOF
4959 #define $ac_tr_hdr 1
4963 echo "$ac_t""no" 1>&6
4967 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
4968 echo "configure:4969: checking for netinet/tcp.h" >&5
4969 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4973 #ifdef HAVE_NETINET_IN_H
4974 #include <netinet/in.h>
4976 #include <netinet/tcp.h>
4979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4980 { (eval echo configure:4981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4982 if test -z "$ac_err"; then
4984 cat >> confdefs.h <<\EOF
4985 #define HAVE_NETINET_TCP_H 1
4987 echo "$ac_t""yes" 1>&6
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 echo "$ac_t""no" 1>&6
4997 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
4998 echo "configure:4999: checking whether string.h and strings.h may both be included" >&5
4999 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5006 #include <strings.h>
5009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5010 { (eval echo configure:5011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5012 if test -z "$ac_err"; then
5014 cat > conftest.$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5018 #include <strings.h>
5021 int n = strcasecmp("a", "b");
5024 if { (eval echo configure:5025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5026 pgac_cv_header_strings_both=yes
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5031 pgac_cv_header_strings_both=no
5036 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5
5039 pgac_cv_header_strings_both=no
5044 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
5045 if test x"$pgac_cv_header_strings_both" = x"yes"; then
5046 cat >> confdefs.h <<\EOF
5047 #define STRING_H_WITH_STRINGS_H 1
5052 for ac_hdr in readline/readline.h readline.h
5054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5056 echo "configure:5057: checking for $ac_hdr" >&5
5057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5066 { (eval echo configure:5067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5068 if test -z "$ac_err"; then
5070 eval "ac_cv_header_$ac_safe=yes"
5073 echo "configure: failed program was:" >&5
5074 cat conftest.$ac_ext >&5
5076 eval "ac_cv_header_$ac_safe=no"
5080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5081 echo "$ac_t""yes" 1>&6
5082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5083 cat >> confdefs.h <<EOF
5084 #define $ac_tr_hdr 1
5088 echo "$ac_t""no" 1>&6
5092 for ac_hdr in readline/history.h history.h
5094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5096 echo "configure:5097: checking for $ac_hdr" >&5
5097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5098 echo $ac_n "(cached) $ac_c" 1>&6
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5106 { (eval echo configure:5107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5108 if test -z "$ac_err"; then
5110 eval "ac_cv_header_$ac_safe=yes"
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5116 eval "ac_cv_header_$ac_safe=no"
5120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5121 echo "$ac_t""yes" 1>&6
5122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5123 cat >> confdefs.h <<EOF
5124 #define $ac_tr_hdr 1
5128 echo "$ac_t""no" 1>&6
5133 if test "$with_krb4" = yes ; then
5134 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
5135 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
5136 echo "configure:5137: checking for krb.h" >&5
5137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5138 echo $ac_n "(cached) $ac_c" 1>&6
5140 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure"
5142 #include "confdefs.h"
5145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5146 { (eval echo configure:5147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5148 if test -z "$ac_err"; then
5150 eval "ac_cv_header_$ac_safe=yes"
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 eval "ac_cv_header_$ac_safe=no"
5160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5164 echo "$ac_t""no" 1>&6
5165 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
5170 if test "$with_krb5" = yes ; then
5171 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
5172 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
5173 echo "configure:5174: checking for krb5.h" >&5
5174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5175 echo $ac_n "(cached) $ac_c" 1>&6
5177 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5183 { (eval echo configure:5184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5185 if test -z "$ac_err"; then
5187 eval "ac_cv_header_$ac_safe=yes"
5190 echo "configure: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5193 eval "ac_cv_header_$ac_safe=no"
5197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5198 echo "$ac_t""yes" 1>&6
5201 echo "$ac_t""no" 1>&6
5202 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
5205 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
5206 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
5207 echo "configure:5208: checking for com_err.h" >&5
5208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 cat > conftest.$ac_ext <<EOF
5212 #line 5213 "configure"
5213 #include "confdefs.h"
5214 #include <com_err.h>
5216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5217 { (eval echo configure:5218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5219 if test -z "$ac_err"; then
5221 eval "ac_cv_header_$ac_safe=yes"
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5227 eval "ac_cv_header_$ac_safe=no"
5231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5232 echo "$ac_t""yes" 1>&6
5235 echo "$ac_t""no" 1>&6
5236 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
5241 if test "$with_openssl" = yes ; then
5242 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
5243 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
5244 echo "configure:5245: checking for openssl/ssl.h" >&5
5245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5248 cat > conftest.$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5251 #include <openssl/ssl.h>
5253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5254 { (eval echo configure:5255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5256 if test -z "$ac_err"; then
5258 eval "ac_cv_header_$ac_safe=yes"
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 eval "ac_cv_header_$ac_safe=no"
5268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5269 echo "$ac_t""yes" 1>&6
5272 echo "$ac_t""no" 1>&6
5273 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
5276 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
5277 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
5278 echo "configure:5279: checking for openssl/err.h" >&5
5279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 #include <openssl/err.h>
5287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5288 { (eval echo configure:5289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5290 if test -z "$ac_err"; then
5292 eval "ac_cv_header_$ac_safe=yes"
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5298 eval "ac_cv_header_$ac_safe=no"
5302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5303 echo "$ac_t""yes" 1>&6
5306 echo "$ac_t""no" 1>&6
5307 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
5314 ## Types, structures, compiler characteristics
5316 echo $ac_n "checking for working const""... $ac_c" 1>&6
5317 echo "configure:5318: checking for working const" >&5
5318 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5327 /* Ultrix mips cc rejects this. */
5328 typedef int charset[2]; const charset x;
5329 /* SunOS 4.1.1 cc rejects this. */
5330 char const *const *ccp;
5332 /* NEC SVR4.0.2 mips cc rejects this. */
5333 struct point {int x, y;};
5334 static struct point const zero = {0,0};
5335 /* AIX XL C 1.02.0.0 rejects this.
5336 It does not let you subtract one const X* pointer from another in an arm
5337 of an if-expression whose if-part is not a constant expression */
5338 const char *g = "string";
5339 ccp = &g + (g ? g-g : 0);
5340 /* HPUX 7.0 cc rejects these. */
5343 ccp = (char const *const *) p;
5344 { /* SCO 3.2v4 cc rejects this. */
5346 char const *s = 0 ? (char *) 0 : (char const *) 0;
5350 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5352 const int *foo = &x[0];
5355 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5356 typedef const int *iptr;
5360 { /* AIX XL C 1.02.0.0 rejects this saying
5361 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5362 struct s { int j; const int *ap[3]; };
5363 struct s *b; b->j = 5;
5365 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5371 if { (eval echo configure:5372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5383 echo "$ac_t""$ac_cv_c_const" 1>&6
5384 if test $ac_cv_c_const = no; then
5385 cat >> confdefs.h <<\EOF
5391 echo $ac_n "checking for inline""... $ac_c" 1>&6
5392 echo "configure:5393: checking for inline" >&5
5393 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5397 for ac_kw in inline __inline__ __inline; do
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5406 if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5408 ac_cv_c_inline=$ac_kw; break
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5418 echo "$ac_t""$ac_cv_c_inline" 1>&6
5419 case "$ac_cv_c_inline" in
5421 no) cat >> confdefs.h <<\EOF
5425 *) cat >> confdefs.h <<EOF
5426 #define inline $ac_cv_c_inline
5433 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5434 echo "configure:5435: checking for preprocessor stringizing operator" >&5
5435 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5444 char *s = x(teststring);
5447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448 egrep "#teststring" >/dev/null 2>&1; then
5450 ac_cv_c_stringize=no
5453 ac_cv_c_stringize=yes
5459 if test "${ac_cv_c_stringize}" = yes
5461 cat >> confdefs.h <<\EOF
5462 #define HAVE_STRINGIZE 1
5466 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5468 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5469 echo "configure:5470: checking for signed types" >&5
5470 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5478 signed char c; signed short s; signed int i;
5481 if { (eval echo configure:5482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5483 pgac_cv_c_signed=yes
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5493 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5494 if test x"$pgac_cv_c_signed" = xno ; then
5495 cat >> confdefs.h <<\EOF
5500 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5501 echo "configure:5502: checking for volatile" >&5
5502 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5510 extern volatile int i;
5513 if { (eval echo configure:5514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5515 pgac_cv_c_volatile=yes
5517 echo "configure: failed program was:" >&5
5518 cat conftest.$ac_ext >&5
5520 pgac_cv_c_volatile=no
5525 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5526 if test x"$pgac_cv_c_volatile" = xno ; then
5527 cat >> confdefs.h <<\EOF
5532 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5533 echo "configure:5534: checking whether struct tm is in sys/time.h or time.h" >&5
5534 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 #include <sys/types.h>
5543 struct tm *tp; tp->tm_sec;
5546 if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5548 ac_cv_struct_tm=time.h
5550 echo "configure: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5553 ac_cv_struct_tm=sys/time.h
5558 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5559 if test $ac_cv_struct_tm = sys/time.h; then
5560 cat >> confdefs.h <<\EOF
5561 #define TM_IN_SYS_TIME 1
5566 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5567 echo "configure:5568: checking for tm_zone in struct tm" >&5
5568 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5569 echo $ac_n "(cached) $ac_c" 1>&6
5571 cat > conftest.$ac_ext <<EOF
5572 #line 5573 "configure"
5573 #include "confdefs.h"
5574 #include <sys/types.h>
5575 #include <$ac_cv_struct_tm>
5577 struct tm tm; tm.tm_zone;
5580 if { (eval echo configure:5581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5582 ac_cv_struct_tm_zone=yes
5584 echo "configure: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5587 ac_cv_struct_tm_zone=no
5592 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5593 if test "$ac_cv_struct_tm_zone" = yes; then
5594 cat >> confdefs.h <<\EOF
5595 #define HAVE_TM_ZONE 1
5599 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5600 echo "configure:5601: checking for tzname" >&5
5601 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5602 echo $ac_n "(cached) $ac_c" 1>&6
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5608 #ifndef tzname /* For SGI. */
5609 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5615 if { (eval echo configure:5616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5617 ac_cv_var_tzname=yes
5619 echo "configure: failed program was:" >&5
5620 cat conftest.$ac_ext >&5
5627 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5628 if test $ac_cv_var_tzname = yes; then
5629 cat >> confdefs.h <<\EOF
5630 #define HAVE_TZNAME 1
5636 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5637 echo "configure:5638: checking for union semun" >&5
5638 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5644 #include <sys/types.h>
5645 #include <sys/ipc.h>
5646 #include <sys/sem.h>
5651 if { (eval echo configure:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5653 pgac_cv_union_semun=yes
5655 echo "configure: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5658 pgac_cv_union_semun=no
5663 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5664 if test x"$pgac_cv_union_semun" = xyes ; then
5665 cat >> confdefs.h <<\EOF
5666 #define HAVE_UNION_SEMUN 1
5670 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5671 echo "configure:5672: checking for struct sockaddr_un" >&5
5672 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5673 echo $ac_n "(cached) $ac_c" 1>&6
5675 cat > conftest.$ac_ext <<EOF
5676 #line 5677 "configure"
5677 #include "confdefs.h"
5678 #include <sys/types.h>
5679 #ifdef HAVE_SYS_UN_H
5683 struct sockaddr_un un;
5686 if { (eval echo configure:5687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5688 pgac_cv_struct_sockaddr_un=yes
5690 echo "configure: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5693 pgac_cv_struct_sockaddr_un=no
5698 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5699 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5700 cat >> confdefs.h <<\EOF
5701 #define HAVE_STRUCT_SOCKADDR_UN 1
5707 ## Functions, global variables
5709 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
5710 echo "configure:5711: checking for int timezone" >&5
5711 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5714 cat > conftest.$ac_ext <<EOF
5715 #line 5716 "configure"
5716 #include "confdefs.h"
5720 res = timezone / 60;
5723 if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5725 pgac_cv_var_int_timezone=yes
5727 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5730 pgac_cv_var_int_timezone=no
5735 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5736 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5737 cat >> confdefs.h <<\EOF
5738 #define HAVE_INT_TIMEZONE
5742 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5743 echo "configure:5744: checking types of arguments for accept()" >&5
5744 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5745 echo $ac_n "(cached) $ac_c" 1>&6
5747 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5751 echo $ac_n "(cached) $ac_c" 1>&6
5753 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5754 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5755 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5759 #ifdef HAVE_SYS_TYPES_H
5760 #include <sys/types.h>
5762 #ifdef HAVE_SYS_SOCKET_H
5763 #include <sys/socket.h>
5765 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5770 if { (eval echo configure:5771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5772 ac_not_found=no; break 3
5774 echo "configure: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5783 if test "$ac_not_found" = yes; then
5784 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5786 if test "$ac_cv_func_accept_arg3" = "void"; then
5787 ac_cv_func_accept_arg3=int
5795 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5796 cat >> confdefs.h <<EOF
5797 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5800 cat >> confdefs.h <<EOF
5801 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5804 cat >> confdefs.h <<EOF
5805 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5809 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5810 echo "configure:5811: checking whether gettimeofday takes only one argument" >&5
5811 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 #include <sys/time.h>
5820 struct timezone *tzp;
5821 gettimeofday(tp,tzp);
5824 if { (eval echo configure:5825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5826 pgac_cv_func_gettimeofday_1arg=no
5828 echo "configure: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5831 pgac_cv_func_gettimeofday_1arg=yes
5836 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5837 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5838 cat >> confdefs.h <<\EOF
5839 #define GETTIMEOFDAY_1ARG
5844 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
5846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5847 echo "configure:5848: checking for $ac_func" >&5
5848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5854 /* System header to define __stub macros and hopefully few prototypes,
5855 which can conflict with char $ac_func(); below. */
5857 /* Override any gcc2 internal prototype to avoid an error. */
5858 /* We use char because int might match the return type of a gcc2
5859 builtin and then its argument prototype would still apply. */
5864 /* The GNU C library defines this for functions which it implements
5865 to always fail with ENOSYS. Some functions are actually named
5866 something starting with __ and the normal name is an alias. */
5867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5875 if { (eval echo configure:5876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5877 eval "ac_cv_func_$ac_func=yes"
5879 echo "configure: failed program was:" >&5
5880 cat conftest.$ac_ext >&5
5882 eval "ac_cv_func_$ac_func=no"
5887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5888 echo "$ac_t""yes" 1>&6
5889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5890 cat >> confdefs.h <<EOF
5891 #define $ac_tr_func 1
5895 echo "$ac_t""no" 1>&6
5900 cat > conftest.$ac_ext <<EOF
5901 #line 5902 "configure"
5902 #include "confdefs.h"
5905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5906 egrep "fdatasync" >/dev/null 2>&1; then
5908 cat >> confdefs.h <<\EOF
5909 #define HAVE_FDATASYNC_DECL 1
5916 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5917 echo "configure:5918: checking for PS_STRINGS" >&5
5918 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5919 echo $ac_n "(cached) $ac_c" 1>&6
5921 cat > conftest.$ac_ext <<EOF
5922 #line 5923 "configure"
5923 #include "confdefs.h"
5924 #include <machine/vmparam.h>
5925 #include <sys/exec.h>
5928 PS_STRINGS->ps_nargvstr = 1;
5929 PS_STRINGS->ps_argvstr = "foo";
5932 if { (eval echo configure:5933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5934 pgac_cv_var_PS_STRINGS=yes
5936 echo "configure: failed program was:" >&5
5937 cat conftest.$ac_ext >&5
5939 pgac_cv_var_PS_STRINGS=no
5944 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5945 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5946 cat >> confdefs.h <<\EOF
5947 #define HAVE_PS_STRINGS
5953 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5954 echo "configure:5955: checking for snprintf" >&5
5955 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5956 echo $ac_n "(cached) $ac_c" 1>&6
5958 cat > conftest.$ac_ext <<EOF
5959 #line 5960 "configure"
5960 #include "confdefs.h"
5961 /* System header to define __stub macros and hopefully few prototypes,
5962 which can conflict with char snprintf(); below. */
5964 /* Override any gcc2 internal prototype to avoid an error. */
5965 /* We use char because int might match the return type of a gcc2
5966 builtin and then its argument prototype would still apply. */
5971 /* The GNU C library defines this for functions which it implements
5972 to always fail with ENOSYS. Some functions are actually named
5973 something starting with __ and the normal name is an alias. */
5974 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5982 if { (eval echo configure:5983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5984 eval "ac_cv_func_snprintf=yes"
5986 echo "configure: failed program was:" >&5
5987 cat conftest.$ac_ext >&5
5989 eval "ac_cv_func_snprintf=no"
5994 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5995 echo "$ac_t""yes" 1>&6
5996 cat >> confdefs.h <<\EOF
5997 #define HAVE_SNPRINTF 1
6001 echo "$ac_t""no" 1>&6
6002 SNPRINTF='snprintf.o'
6005 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
6006 echo "configure:6007: checking for vsnprintf" >&5
6007 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
6008 echo $ac_n "(cached) $ac_c" 1>&6
6010 cat > conftest.$ac_ext <<EOF
6011 #line 6012 "configure"
6012 #include "confdefs.h"
6013 /* System header to define __stub macros and hopefully few prototypes,
6014 which can conflict with char vsnprintf(); below. */
6016 /* Override any gcc2 internal prototype to avoid an error. */
6017 /* We use char because int might match the return type of a gcc2
6018 builtin and then its argument prototype would still apply. */
6023 /* The GNU C library defines this for functions which it implements
6024 to always fail with ENOSYS. Some functions are actually named
6025 something starting with __ and the normal name is an alias. */
6026 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6036 eval "ac_cv_func_vsnprintf=yes"
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6041 eval "ac_cv_func_vsnprintf=no"
6046 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
6047 echo "$ac_t""yes" 1>&6
6048 cat >> confdefs.h <<\EOF
6049 #define HAVE_VSNPRINTF 1
6053 echo "$ac_t""no" 1>&6
6054 SNPRINTF='snprintf.o'
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6064 egrep "snprintf" >/dev/null 2>&1; then
6066 cat >> confdefs.h <<\EOF
6067 #define HAVE_SNPRINTF_DECL 1
6073 cat > conftest.$ac_ext <<EOF
6074 #line 6075 "configure"
6075 #include "confdefs.h"
6078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6079 egrep "vsnprintf" >/dev/null 2>&1; then
6081 cat >> confdefs.h <<\EOF
6082 #define HAVE_VSNPRINTF_DECL 1
6089 # do this one the hard way in case isinf() is a macro
6090 echo $ac_n "checking for isinf""... $ac_c" 1>&6
6091 echo "configure:6092: checking for isinf" >&5
6092 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6101 double x = 0.0; int res = isinf(x);
6104 if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6106 ac_cv_func_isinf=yes
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6116 echo "$ac_t""$ac_cv_func_isinf" 1>&6
6118 if test $ac_cv_func_isinf = yes ; then
6119 cat >> confdefs.h <<\EOF
6120 #define HAVE_ISINF 1
6126 # Look for a way to implement a substitute for isinf()
6127 for ac_func in fpclass fp_class fp_class_d class
6129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6130 echo "configure:6131: checking for $ac_func" >&5
6131 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6132 echo $ac_n "(cached) $ac_c" 1>&6
6134 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure"
6136 #include "confdefs.h"
6137 /* System header to define __stub macros and hopefully few prototypes,
6138 which can conflict with char $ac_func(); below. */
6140 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6147 /* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6158 if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6160 eval "ac_cv_func_$ac_func=yes"
6162 echo "configure: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6165 eval "ac_cv_func_$ac_func=no"
6170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6171 echo "$ac_t""yes" 1>&6
6172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6173 cat >> confdefs.h <<EOF
6174 #define $ac_tr_func 1
6178 echo "$ac_t""no" 1>&6
6185 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
6186 echo "configure:6187: checking for getrusage" >&5
6187 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
6188 echo $ac_n "(cached) $ac_c" 1>&6
6190 cat > conftest.$ac_ext <<EOF
6191 #line 6192 "configure"
6192 #include "confdefs.h"
6193 /* System header to define __stub macros and hopefully few prototypes,
6194 which can conflict with char getrusage(); below. */
6196 /* Override any gcc2 internal prototype to avoid an error. */
6197 /* We use char because int might match the return type of a gcc2
6198 builtin and then its argument prototype would still apply. */
6203 /* The GNU C library defines this for functions which it implements
6204 to always fail with ENOSYS. Some functions are actually named
6205 something starting with __ and the normal name is an alias. */
6206 #if defined (__stub_getrusage) || defined (__stub___getrusage)
6214 if { (eval echo configure:6215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6216 eval "ac_cv_func_getrusage=yes"
6218 echo "configure: failed program was:" >&5
6219 cat conftest.$ac_ext >&5
6221 eval "ac_cv_func_getrusage=no"
6226 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
6227 echo "$ac_t""yes" 1>&6
6228 cat >> confdefs.h <<\EOF
6229 #define HAVE_GETRUSAGE 1
6233 echo "$ac_t""no" 1>&6
6234 GETRUSAGE='getrusage.o'
6238 echo $ac_n "checking for srandom""... $ac_c" 1>&6
6239 echo "configure:6240: checking for srandom" >&5
6240 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
6241 echo $ac_n "(cached) $ac_c" 1>&6
6243 cat > conftest.$ac_ext <<EOF
6244 #line 6245 "configure"
6245 #include "confdefs.h"
6246 /* System header to define __stub macros and hopefully few prototypes,
6247 which can conflict with char srandom(); below. */
6249 /* Override any gcc2 internal prototype to avoid an error. */
6250 /* We use char because int might match the return type of a gcc2
6251 builtin and then its argument prototype would still apply. */
6256 /* The GNU C library defines this for functions which it implements
6257 to always fail with ENOSYS. Some functions are actually named
6258 something starting with __ and the normal name is an alias. */
6259 #if defined (__stub_srandom) || defined (__stub___srandom)
6267 if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6269 eval "ac_cv_func_srandom=yes"
6271 echo "configure: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6274 eval "ac_cv_func_srandom=no"
6279 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
6280 echo "$ac_t""yes" 1>&6
6281 cat >> confdefs.h <<\EOF
6282 #define HAVE_SRANDOM 1
6286 echo "$ac_t""no" 1>&6
6291 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
6292 echo "configure:6293: checking for gethostname" >&5
6293 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
6294 echo $ac_n "(cached) $ac_c" 1>&6
6296 cat > conftest.$ac_ext <<EOF
6297 #line 6298 "configure"
6298 #include "confdefs.h"
6299 /* System header to define __stub macros and hopefully few prototypes,
6300 which can conflict with char gethostname(); below. */
6302 /* Override any gcc2 internal prototype to avoid an error. */
6303 /* We use char because int might match the return type of a gcc2
6304 builtin and then its argument prototype would still apply. */
6309 /* The GNU C library defines this for functions which it implements
6310 to always fail with ENOSYS. Some functions are actually named
6311 something starting with __ and the normal name is an alias. */
6312 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6320 if { (eval echo configure:6321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6322 eval "ac_cv_func_gethostname=yes"
6324 echo "configure: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6327 eval "ac_cv_func_gethostname=no"
6332 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6333 echo "$ac_t""yes" 1>&6
6334 cat >> confdefs.h <<\EOF
6335 #define HAVE_GETHOSTNAME 1
6339 echo "$ac_t""no" 1>&6
6340 GETHOSTNAME='gethostname.o'
6344 echo $ac_n "checking for random""... $ac_c" 1>&6
6345 echo "configure:6346: checking for random" >&5
6346 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352 /* System header to define __stub macros and hopefully few prototypes,
6353 which can conflict with char random(); below. */
6355 /* Override any gcc2 internal prototype to avoid an error. */
6356 /* We use char because int might match the return type of a gcc2
6357 builtin and then its argument prototype would still apply. */
6362 /* The GNU C library defines this for functions which it implements
6363 to always fail with ENOSYS. Some functions are actually named
6364 something starting with __ and the normal name is an alias. */
6365 #if defined (__stub_random) || defined (__stub___random)
6373 if { (eval echo configure:6374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6375 eval "ac_cv_func_random=yes"
6377 echo "configure: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6380 eval "ac_cv_func_random=no"
6385 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6387 cat >> confdefs.h <<\EOF
6388 #define HAVE_RANDOM 1
6392 echo "$ac_t""no" 1>&6
6393 MISSING_RANDOM='random.o'
6397 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6398 echo "configure:6399: checking for inet_aton" >&5
6399 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6400 echo $ac_n "(cached) $ac_c" 1>&6
6402 cat > conftest.$ac_ext <<EOF
6403 #line 6404 "configure"
6404 #include "confdefs.h"
6405 /* System header to define __stub macros and hopefully few prototypes,
6406 which can conflict with char inet_aton(); below. */
6408 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6415 /* The GNU C library defines this for functions which it implements
6416 to always fail with ENOSYS. Some functions are actually named
6417 something starting with __ and the normal name is an alias. */
6418 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6428 eval "ac_cv_func_inet_aton=yes"
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6433 eval "ac_cv_func_inet_aton=no"
6438 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6439 echo "$ac_t""yes" 1>&6
6440 cat >> confdefs.h <<\EOF
6441 #define HAVE_INET_ATON 1
6445 echo "$ac_t""no" 1>&6
6446 INET_ATON='inet_aton.o'
6450 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6451 echo "configure:6452: checking for strerror" >&5
6452 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 /* System header to define __stub macros and hopefully few prototypes,
6459 which can conflict with char strerror(); below. */
6461 /* Override any gcc2 internal prototype to avoid an error. */
6462 /* We use char because int might match the return type of a gcc2
6463 builtin and then its argument prototype would still apply. */
6468 /* The GNU C library defines this for functions which it implements
6469 to always fail with ENOSYS. Some functions are actually named
6470 something starting with __ and the normal name is an alias. */
6471 #if defined (__stub_strerror) || defined (__stub___strerror)
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_func_strerror=yes"
6483 echo "configure: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6486 eval "ac_cv_func_strerror=no"
6491 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6492 echo "$ac_t""yes" 1>&6
6493 cat >> confdefs.h <<\EOF
6494 #define HAVE_STRERROR 1
6498 echo "$ac_t""no" 1>&6
6499 STRERROR='strerror.o'
6503 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6504 echo "configure:6505: checking for strdup" >&5
6505 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6506 echo $ac_n "(cached) $ac_c" 1>&6
6508 cat > conftest.$ac_ext <<EOF
6509 #line 6510 "configure"
6510 #include "confdefs.h"
6511 /* System header to define __stub macros and hopefully few prototypes,
6512 which can conflict with char strdup(); below. */
6514 /* Override any gcc2 internal prototype to avoid an error. */
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6521 /* The GNU C library defines this for functions which it implements
6522 to always fail with ENOSYS. Some functions are actually named
6523 something starting with __ and the normal name is an alias. */
6524 #if defined (__stub_strdup) || defined (__stub___strdup)
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6534 eval "ac_cv_func_strdup=yes"
6536 echo "configure: failed program was:" >&5
6537 cat conftest.$ac_ext >&5
6539 eval "ac_cv_func_strdup=no"
6544 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6546 cat >> confdefs.h <<\EOF
6547 #define HAVE_STRDUP 1
6551 echo "$ac_t""no" 1>&6
6552 STRDUP='../../utils/strdup.o'
6556 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6557 echo "configure:6558: checking for strtol" >&5
6558 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6559 echo $ac_n "(cached) $ac_c" 1>&6
6561 cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6564 /* System header to define __stub macros and hopefully few prototypes,
6565 which can conflict with char strtol(); below. */
6567 /* Override any gcc2 internal prototype to avoid an error. */
6568 /* We use char because int might match the return type of a gcc2
6569 builtin and then its argument prototype would still apply. */
6574 /* The GNU C library defines this for functions which it implements
6575 to always fail with ENOSYS. Some functions are actually named
6576 something starting with __ and the normal name is an alias. */
6577 #if defined (__stub_strtol) || defined (__stub___strtol)
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_func_strtol=yes"
6589 echo "configure: failed program was:" >&5
6590 cat conftest.$ac_ext >&5
6592 eval "ac_cv_func_strtol=no"
6597 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6598 echo "$ac_t""yes" 1>&6
6599 cat >> confdefs.h <<\EOF
6600 #define HAVE_STRTOL 1
6604 echo "$ac_t""no" 1>&6
6609 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6610 echo "configure:6611: checking for strtoul" >&5
6611 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6612 echo $ac_n "(cached) $ac_c" 1>&6
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 /* System header to define __stub macros and hopefully few prototypes,
6618 which can conflict with char strtoul(); below. */
6620 /* Override any gcc2 internal prototype to avoid an error. */
6621 /* We use char because int might match the return type of a gcc2
6622 builtin and then its argument prototype would still apply. */
6627 /* The GNU C library defines this for functions which it implements
6628 to always fail with ENOSYS. Some functions are actually named
6629 something starting with __ and the normal name is an alias. */
6630 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6640 eval "ac_cv_func_strtoul=yes"
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6645 eval "ac_cv_func_strtoul=no"
6650 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6651 echo "$ac_t""yes" 1>&6
6652 cat >> confdefs.h <<\EOF
6653 #define HAVE_STRTOUL 1
6657 echo "$ac_t""no" 1>&6
6662 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6663 echo "configure:6664: checking for strcasecmp" >&5
6664 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 cat > conftest.$ac_ext <<EOF
6668 #line 6669 "configure"
6669 #include "confdefs.h"
6670 /* System header to define __stub macros and hopefully few prototypes,
6671 which can conflict with char strcasecmp(); below. */
6673 /* Override any gcc2 internal prototype to avoid an error. */
6674 /* We use char because int might match the return type of a gcc2
6675 builtin and then its argument prototype would still apply. */
6680 /* The GNU C library defines this for functions which it implements
6681 to always fail with ENOSYS. Some functions are actually named
6682 something starting with __ and the normal name is an alias. */
6683 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6691 if { (eval echo configure:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6693 eval "ac_cv_func_strcasecmp=yes"
6695 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 eval "ac_cv_func_strcasecmp=no"
6703 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6704 echo "$ac_t""yes" 1>&6
6705 cat >> confdefs.h <<\EOF
6706 #define HAVE_STRCASECMP 1
6710 echo "$ac_t""no" 1>&6
6711 STRCASECMP='strcasecmp.o'
6715 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6716 echo "configure:6717: checking for cbrt" >&5
6717 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure"
6722 #include "confdefs.h"
6723 /* System header to define __stub macros and hopefully few prototypes,
6724 which can conflict with char cbrt(); below. */
6726 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6746 eval "ac_cv_func_cbrt=yes"
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6751 eval "ac_cv_func_cbrt=no"
6756 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6758 cat >> confdefs.h <<\EOF
6763 echo "$ac_t""no" 1>&6
6764 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6765 echo "configure:6766: checking for cbrt in -lm" >&5
6766 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 ac_save_LIBS="$LIBS"
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6775 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6784 if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6786 eval "ac_cv_lib_$ac_lib_var=yes"
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6791 eval "ac_cv_lib_$ac_lib_var=no"
6794 LIBS="$ac_save_LIBS"
6797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6799 cat >> confdefs.h <<\EOF
6804 echo "$ac_t""no" 1>&6
6810 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6811 # this hackery with HPUXMATHLIB allows us to cope.
6815 if [ -r /lib/pa1.1/libm.a ] ; then
6816 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6821 echo $ac_n "checking for rint""... $ac_c" 1>&6
6822 echo "configure:6823: checking for rint" >&5
6823 if eval "test \"`echo '$''{'ac_cv_func_rint'+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"
6829 /* System header to define __stub macros and hopefully few prototypes,
6830 which can conflict with char rint(); below. */
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6839 /* The GNU C library defines this for functions which it implements
6840 to always fail with ENOSYS. Some functions are actually named
6841 something starting with __ and the normal name is an alias. */
6842 #if defined (__stub_rint) || defined (__stub___rint)
6850 if { (eval echo configure:6851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6852 eval "ac_cv_func_rint=yes"
6854 echo "configure: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6857 eval "ac_cv_func_rint=no"
6862 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6863 echo "$ac_t""yes" 1>&6
6864 cat >> confdefs.h <<\EOF
6869 echo "$ac_t""no" 1>&6
6870 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6871 echo "configure:6872: checking for rint in -lm" >&5
6872 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6
6876 ac_save_LIBS="$LIBS"
6877 LIBS="-lm $HPUXMATHLIB $LIBS"
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6892 eval "ac_cv_lib_$ac_lib_var=yes"
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6897 eval "ac_cv_lib_$ac_lib_var=no"
6900 LIBS="$ac_save_LIBS"
6903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6904 echo "$ac_t""yes" 1>&6
6905 cat >> confdefs.h <<\EOF
6910 echo "$ac_t""no" 1>&6
6917 # Readline versions < 2.1 don't have rl_completion_append_character
6918 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
6919 echo "configure:6920: checking for rl_completion_append_character" >&5
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6924 #ifdef HAVE_READLINE_READLINE_H
6925 # include <readline/readline.h>
6926 #elif defined(HAVE_READLINE_H)
6927 # include <readline.h>
6931 rl_completion_append_character = 'x';
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6936 echo "$ac_t""yes" 1>&6
6937 cat >> confdefs.h <<\EOF
6938 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6945 echo "$ac_t""no" 1>&6
6949 for ac_func in rl_completion_matches rl_filename_completion_function
6951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6952 echo "configure:6953: checking for $ac_func" >&5
6953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6954 echo $ac_n "(cached) $ac_c" 1>&6
6956 cat > conftest.$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6959 /* System header to define __stub macros and hopefully few prototypes,
6960 which can conflict with char $ac_func(); below. */
6962 /* Override any gcc2 internal prototype to avoid an error. */
6963 /* We use char because int might match the return type of a gcc2
6964 builtin and then its argument prototype would still apply. */
6969 /* The GNU C library defines this for functions which it implements
6970 to always fail with ENOSYS. Some functions are actually named
6971 something starting with __ and the normal name is an alias. */
6972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6982 eval "ac_cv_func_$ac_func=yes"
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6987 eval "ac_cv_func_$ac_func=no"
6992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6993 echo "$ac_t""yes" 1>&6
6994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6995 cat >> confdefs.h <<EOF
6996 #define $ac_tr_func 1
7000 echo "$ac_t""no" 1>&6
7006 echo $ac_n "checking for finite""... $ac_c" 1>&6
7007 echo "configure:7008: checking for finite" >&5
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7013 int dummy=finite(1.0);
7016 if { (eval echo configure:7017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7018 cat >> confdefs.h <<\EOF
7019 #define HAVE_FINITE 1
7021 echo "$ac_t""yes" 1>&6
7023 echo "configure: failed program was:" >&5
7024 cat conftest.$ac_ext >&5
7026 echo "$ac_t""no" 1>&6
7030 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7031 echo "configure:7032: checking for sigsetjmp" >&5
7032 cat > conftest.$ac_ext <<EOF
7033 #line 7034 "configure"
7034 #include "confdefs.h"
7037 sigjmp_buf x; sigsetjmp(x, 1);
7040 if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042 cat >> confdefs.h <<\EOF
7043 #define HAVE_SIGSETJMP 1
7045 echo "$ac_t""yes" 1>&6
7047 echo "configure: failed program was:" >&5
7048 cat conftest.$ac_ext >&5
7050 echo "$ac_t""no" 1>&6
7055 # Check whether --enable-syslog was given
7056 if test x"${enable_syslog+set}" = xset; then
7057 case $enable_syslog in
7059 echo $ac_n "checking for syslog""... $ac_c" 1>&6
7060 echo "configure:7061: checking for syslog" >&5
7061 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
7062 echo $ac_n "(cached) $ac_c" 1>&6
7064 cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7067 /* System header to define __stub macros and hopefully few prototypes,
7068 which can conflict with char syslog(); below. */
7070 /* Override any gcc2 internal prototype to avoid an error. */
7071 /* We use char because int might match the return type of a gcc2
7072 builtin and then its argument prototype would still apply. */
7077 /* The GNU C library defines this for functions which it implements
7078 to always fail with ENOSYS. Some functions are actually named
7079 something starting with __ and the normal name is an alias. */
7080 #if defined (__stub_syslog) || defined (__stub___syslog)
7088 if { (eval echo configure:7089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7090 eval "ac_cv_func_syslog=yes"
7092 echo "configure: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7095 eval "ac_cv_func_syslog=no"
7100 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
7101 echo "$ac_t""yes" 1>&6
7102 cat >> confdefs.h <<\EOF
7103 #define ENABLE_SYSLOG 1
7107 echo "$ac_t""no" 1>&6
7108 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
7116 enableval=$enable_syslog
7117 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
7119 esac # $enable_syslog
7126 echo $ac_n "checking for optreset""... $ac_c" 1>&6
7127 echo "configure:7128: checking for optreset" >&5
7128 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
7129 echo $ac_n "(cached) $ac_c" 1>&6
7131 cat > conftest.$ac_ext <<EOF
7132 #line 7133 "configure"
7133 #include "confdefs.h"
7136 extern int optreset; optreset = 1;
7139 if { (eval echo configure:7140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7141 pgac_cv_var_int_optreset=yes
7143 echo "configure: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7146 pgac_cv_var_int_optreset=no
7151 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
7152 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
7153 cat >> confdefs.h <<\EOF
7154 #define HAVE_INT_OPTRESET 1
7160 # This test makes sure that run tests work at all. Sometimes a shared
7161 # library is found by the linker, but the runtime linker can't find it.
7162 # This check should come after all modifications of compiler or linker
7163 # variables, and before any other run tests.
7164 echo $ac_n "checking test program""... $ac_c" 1>&6
7165 echo "configure:7166: checking test program" >&5
7166 if test "$cross_compiling" = yes; then
7167 echo "$ac_t""cross-compiling" 1>&6
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 int main() { return 0; }
7174 if { (eval echo configure:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7176 echo "$ac_t""ok" 1>&6
7178 echo "configure: failed program was:" >&5
7179 cat conftest.$ac_ext >&5
7181 echo "$ac_t""failed" 1>&6
7182 { echo "configure: error:
7183 *** Could not execute a simple test program. This may be a problem
7184 *** related to locating shared libraries. Check the file 'config.log'
7185 *** for the exact reason." 1>&2; exit 1; }
7193 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
7194 echo "configure:7195: checking whether long int is 64 bits" >&5
7195 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
7196 echo $ac_n "(cached) $ac_c" 1>&6
7198 if test "$cross_compiling" = yes; then
7199 pgac_cv_type_long_int_64=no
7200 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7205 typedef long int int64;
7208 * These are globals to discourage the compiler from folding all the
7209 * arithmetic tests down to compile-time constants.
7214 int does_int64_work()
7218 if (sizeof(int64) != 8)
7219 return 0; /* definitely not the right size */
7221 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7229 exit(! does_int64_work());
7232 if { (eval echo configure:7233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7234 pgac_cv_type_long_int_64=yes
7236 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5
7239 pgac_cv_type_long_int_64=no
7246 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
7248 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
7249 if test x"$pgac_cv_type_long_int_64" = xyes ; then
7250 cat >> confdefs.h <<\EOF
7251 #define HAVE_LONG_INT_64
7257 if test x"$HAVE_LONG_INT_64" = x"no" ; then
7258 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
7259 echo "configure:7260: checking whether long long int is 64 bits" >&5
7260 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
7261 echo $ac_n "(cached) $ac_c" 1>&6
7263 if test "$cross_compiling" = yes; then
7264 pgac_cv_type_long_long_int_64=no
7265 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7267 cat > conftest.$ac_ext <<EOF
7268 #line 7269 "configure"
7269 #include "confdefs.h"
7270 typedef long long int int64;
7273 * These are globals to discourage the compiler from folding all the
7274 * arithmetic tests down to compile-time constants.
7279 int does_int64_work()
7283 if (sizeof(int64) != 8)
7284 return 0; /* definitely not the right size */
7286 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7294 exit(! does_int64_work());
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7299 pgac_cv_type_long_long_int_64=yes
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7304 pgac_cv_type_long_long_int_64=no
7311 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
7313 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
7314 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
7315 cat >> confdefs.h <<\EOF
7316 #define HAVE_LONG_LONG_INT_64
7325 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7326 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure"
7328 #include "confdefs.h"
7330 #define INT64CONST(x) x##LL
7331 long long int foo = INT64CONST(0x1234567890123456);
7337 if { (eval echo configure:7338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7339 cat >> confdefs.h <<\EOF
7340 #define HAVE_LL_CONSTANTS 1
7344 echo "configure: failed program was:" >&5
7345 cat conftest.$ac_ext >&5
7352 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7353 if [ x$SNPRINTF = x ] ; then
7354 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7355 echo "configure:7356: checking whether snprintf handles 'long long int' as %lld" >&5
7356 if test "$cross_compiling" = yes; then
7357 echo "$ac_t""assuming not on target machine" 1>&6
7358 # Force usage of our own snprintf, since we cannot test foreign snprintf
7359 SNPRINTF='snprintf.o'
7360 INT64_FORMAT='"%lld"'
7363 cat > conftest.$ac_ext <<EOF
7364 #line 7365 "configure"
7365 #include "confdefs.h"
7367 typedef long long int int64;
7368 #define INT64_FORMAT "%lld"
7373 int does_int64_snprintf_work()
7378 if (sizeof(int64) != 8)
7379 return 0; /* doesn't look like the right size */
7382 snprintf(buf, 100, INT64_FORMAT, c);
7383 if (strcmp(buf, "800000140000005") != 0)
7384 return 0; /* either multiply or snprintf is busted */
7388 exit(! does_int64_snprintf_work());
7391 if { (eval echo configure:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7393 echo "$ac_t""yes" 1>&6
7394 INT64_FORMAT='"%lld"'
7397 echo "configure: failed program was:" >&5
7398 cat conftest.$ac_ext >&5
7400 echo "$ac_t""no" 1>&6
7401 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7402 echo "configure:7403: checking whether snprintf handles 'long long int' as %qd" >&5
7403 if test "$cross_compiling" = yes; then
7404 echo "$ac_t""assuming not on target machine" 1>&6
7405 # Force usage of our own snprintf, since we cannot test foreign snprintf
7406 SNPRINTF='snprintf.o'
7407 INT64_FORMAT='"%lld"'
7410 cat > conftest.$ac_ext <<EOF
7411 #line 7412 "configure"
7412 #include "confdefs.h"
7414 typedef long long int int64;
7415 #define INT64_FORMAT "%qd"
7420 int does_int64_snprintf_work()
7425 if (sizeof(int64) != 8)
7426 return 0; /* doesn't look like the right size */
7429 snprintf(buf, 100, INT64_FORMAT, c);
7430 if (strcmp(buf, "800000140000005") != 0)
7431 return 0; /* either multiply or snprintf is busted */
7435 exit(! does_int64_snprintf_work());
7438 if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7440 echo "$ac_t""yes" 1>&6
7441 INT64_FORMAT='"%qd"'
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7447 echo "$ac_t""no" 1>&6
7448 # Force usage of our own snprintf, since system snprintf is broken
7449 SNPRINTF='snprintf.o'
7450 INT64_FORMAT='"%lld"'
7461 # here if we previously decided we needed to use our own snprintf
7462 INT64_FORMAT='"%lld"'
7465 # Here if we are not using 'long long int' at all
7466 INT64_FORMAT='"%ld"'
7469 cat >> confdefs.h <<EOF
7470 #define INT64_FORMAT $INT64_FORMAT
7475 for ac_func in strtoll strtoq
7477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7478 echo "configure:7479: checking for $ac_func" >&5
7479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7480 echo $ac_n "(cached) $ac_c" 1>&6
7482 cat > conftest.$ac_ext <<EOF
7483 #line 7484 "configure"
7484 #include "confdefs.h"
7485 /* System header to define __stub macros and hopefully few prototypes,
7486 which can conflict with char $ac_func(); below. */
7488 /* Override any gcc2 internal prototype to avoid an error. */
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7495 /* The GNU C library defines this for functions which it implements
7496 to always fail with ENOSYS. Some functions are actually named
7497 something starting with __ and the normal name is an alias. */
7498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7506 if { (eval echo configure:7507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7508 eval "ac_cv_func_$ac_func=yes"
7510 echo "configure: failed program was:" >&5
7511 cat conftest.$ac_ext >&5
7513 eval "ac_cv_func_$ac_func=no"
7518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7519 echo "$ac_t""yes" 1>&6
7520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7521 cat >> confdefs.h <<EOF
7522 #define $ac_tr_func 1
7526 echo "$ac_t""no" 1>&6
7530 for ac_func in strtoull strtouq
7532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7533 echo "configure:7534: checking for $ac_func" >&5
7534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7535 echo $ac_n "(cached) $ac_c" 1>&6
7537 cat > conftest.$ac_ext <<EOF
7538 #line 7539 "configure"
7539 #include "confdefs.h"
7540 /* System header to define __stub macros and hopefully few prototypes,
7541 which can conflict with char $ac_func(); below. */
7543 /* Override any gcc2 internal prototype to avoid an error. */
7544 /* We use char because int might match the return type of a gcc2
7545 builtin and then its argument prototype would still apply. */
7550 /* The GNU C library defines this for functions which it implements
7551 to always fail with ENOSYS. Some functions are actually named
7552 something starting with __ and the normal name is an alias. */
7553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7561 if { (eval echo configure:7562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7563 eval "ac_cv_func_$ac_func=yes"
7565 echo "configure: failed program was:" >&5
7566 cat conftest.$ac_ext >&5
7568 eval "ac_cv_func_$ac_func=no"
7573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7574 echo "$ac_t""yes" 1>&6
7575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7576 cat >> confdefs.h <<EOF
7577 #define $ac_tr_func 1
7581 echo "$ac_t""no" 1>&6
7586 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7587 echo "configure:7588: checking for atexit" >&5
7588 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7589 echo $ac_n "(cached) $ac_c" 1>&6
7591 cat > conftest.$ac_ext <<EOF
7592 #line 7593 "configure"
7593 #include "confdefs.h"
7594 /* System header to define __stub macros and hopefully few prototypes,
7595 which can conflict with char atexit(); below. */
7597 /* Override any gcc2 internal prototype to avoid an error. */
7598 /* We use char because int might match the return type of a gcc2
7599 builtin and then its argument prototype would still apply. */
7604 /* The GNU C library defines this for functions which it implements
7605 to always fail with ENOSYS. Some functions are actually named
7606 something starting with __ and the normal name is an alias. */
7607 #if defined (__stub_atexit) || defined (__stub___atexit)
7615 if { (eval echo configure:7616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7617 eval "ac_cv_func_atexit=yes"
7619 echo "configure: failed program was:" >&5
7620 cat conftest.$ac_ext >&5
7622 eval "ac_cv_func_atexit=no"
7627 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7628 echo "$ac_t""yes" 1>&6
7629 cat >> confdefs.h <<\EOF
7630 #define HAVE_ATEXIT 1
7634 echo "$ac_t""no" 1>&6
7635 for ac_func in on_exit
7637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7638 echo "configure:7639: checking for $ac_func" >&5
7639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7640 echo $ac_n "(cached) $ac_c" 1>&6
7642 cat > conftest.$ac_ext <<EOF
7643 #line 7644 "configure"
7644 #include "confdefs.h"
7645 /* System header to define __stub macros and hopefully few prototypes,
7646 which can conflict with char $ac_func(); below. */
7648 /* Override any gcc2 internal prototype to avoid an error. */
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7655 /* The GNU C library defines this for functions which it implements
7656 to always fail with ENOSYS. Some functions are actually named
7657 something starting with __ and the normal name is an alias. */
7658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7666 if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7668 eval "ac_cv_func_$ac_func=yes"
7670 echo "configure: failed program was:" >&5
7671 cat conftest.$ac_ext >&5
7673 eval "ac_cv_func_$ac_func=no"
7678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7679 echo "$ac_t""yes" 1>&6
7680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7681 cat >> confdefs.h <<EOF
7682 #define $ac_tr_func 1
7684 cat >> confdefs.h <<\EOF
7685 #define HAVE_ON_EXIT 1
7689 echo "$ac_t""no" 1>&6
7690 { echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; }
7698 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
7699 echo "configure:7700: checking size of unsigned long" >&5
7700 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7703 if test "$cross_compiling" = yes; then
7704 ac_cv_sizeof_unsigned_long=4
7706 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7712 FILE *f=fopen("conftestval", "w");
7714 fprintf(f, "%d\n", sizeof(unsigned long));
7718 if { (eval echo configure:7719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7720 ac_cv_sizeof_unsigned_long=`cat conftestval`
7722 echo "configure: failed program was:" >&5
7723 cat conftest.$ac_ext >&5
7725 ac_cv_sizeof_unsigned_long=0
7731 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
7732 cat >> confdefs.h <<EOF
7733 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7737 cat >> confdefs.h <<EOF
7738 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
7743 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
7744 echo "configure:7745: checking alignment of short" >&5
7745 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7748 if test "$cross_compiling" = yes; then
7749 pgac_cv_alignof_short='sizeof(short)'
7751 cat > conftest.$ac_ext <<EOF
7752 #line 7753 "configure"
7753 #include "confdefs.h"
7755 struct { char filler; short field; } mystruct;
7758 FILE *f=fopen("conftestval", "w");
7760 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7764 if { (eval echo configure:7765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7766 pgac_cv_alignof_short=`cat conftestval`
7768 echo "configure: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7771 pgac_cv_alignof_short='sizeof(short)'
7777 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
7778 cat >> confdefs.h <<EOF
7779 #define ALIGNOF_SHORT $pgac_cv_alignof_short
7783 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
7784 echo "configure:7785: checking alignment of int" >&5
7785 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
7786 echo $ac_n "(cached) $ac_c" 1>&6
7788 if test "$cross_compiling" = yes; then
7789 pgac_cv_alignof_int='sizeof(int)'
7791 cat > conftest.$ac_ext <<EOF
7792 #line 7793 "configure"
7793 #include "confdefs.h"
7795 struct { char filler; int field; } mystruct;
7798 FILE *f=fopen("conftestval", "w");
7800 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7804 if { (eval echo configure:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7806 pgac_cv_alignof_int=`cat conftestval`
7808 echo "configure: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7811 pgac_cv_alignof_int='sizeof(int)'
7817 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
7818 cat >> confdefs.h <<EOF
7819 #define ALIGNOF_INT $pgac_cv_alignof_int
7823 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
7824 echo "configure:7825: checking alignment of long" >&5
7825 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7828 if test "$cross_compiling" = yes; then
7829 pgac_cv_alignof_long='sizeof(long)'
7831 cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7835 struct { char filler; long field; } mystruct;
7838 FILE *f=fopen("conftestval", "w");
7840 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7844 if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7846 pgac_cv_alignof_long=`cat conftestval`
7848 echo "configure: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7851 pgac_cv_alignof_long='sizeof(long)'
7857 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
7858 cat >> confdefs.h <<EOF
7859 #define ALIGNOF_LONG $pgac_cv_alignof_long
7863 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7864 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
7865 echo "configure:7866: checking alignment of long long int" >&5
7866 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7869 if test "$cross_compiling" = yes; then
7870 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7872 cat > conftest.$ac_ext <<EOF
7873 #line 7874 "configure"
7874 #include "confdefs.h"
7876 struct { char filler; long long int field; } mystruct;
7879 FILE *f=fopen("conftestval", "w");
7881 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7885 if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7887 pgac_cv_alignof_long_long_int=`cat conftestval`
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7892 pgac_cv_alignof_long_long_int='sizeof(long long int)'
7898 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
7899 cat >> confdefs.h <<EOF
7900 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
7905 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
7906 echo "configure:7907: checking alignment of double" >&5
7907 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
7908 echo $ac_n "(cached) $ac_c" 1>&6
7910 if test "$cross_compiling" = yes; then
7911 pgac_cv_alignof_double='sizeof(double)'
7913 cat > conftest.$ac_ext <<EOF
7914 #line 7915 "configure"
7915 #include "confdefs.h"
7917 struct { char filler; double field; } mystruct;
7920 FILE *f=fopen("conftestval", "w");
7922 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
7926 if { (eval echo configure:7927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7928 pgac_cv_alignof_double=`cat conftestval`
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7933 pgac_cv_alignof_double='sizeof(double)'
7939 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
7940 cat >> confdefs.h <<EOF
7941 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
7947 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
7948 MAX_ALIGNOF=$pgac_cv_alignof_long
7949 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
7950 MAX_ALIGNOF=$pgac_cv_alignof_double
7952 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
7953 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
7956 MAX_ALIGNOF="$pgac_cv_alignof_double"
7958 cat >> confdefs.h <<EOF
7959 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
7963 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
7964 echo "configure:7965: checking for POSIX signal interface" >&5
7965 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7968 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure"
7970 #include "confdefs.h"
7974 struct sigaction act, oact;
7975 sigemptyset(&act.sa_mask);
7976 act.sa_flags = SA_RESTART;
7977 sigaction(0, &act, &oact);
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7982 pgac_cv_func_posix_signals=yes
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7987 pgac_cv_func_posix_signals=no
7992 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
7993 if test x"$pgac_cv_func_posix_signals" = xyes ; then
7994 cat >> confdefs.h <<\EOF
7995 #define HAVE_POSIX_SIGNALS
7999 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
8003 # Check for Tcl configuration script tclConfig.sh
8004 if test "$with_tcl" = yes; then
8005 for ac_prog in tclsh tcl
8007 # Extract the first word of "$ac_prog", so it can be a program name with args.
8008 set dummy $ac_prog; ac_word=$2
8009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8010 echo "configure:8011: checking for $ac_word" >&5
8011 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8016 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8019 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
8022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8024 for ac_dir in $ac_dummy; do
8025 test -z "$ac_dir" && ac_dir=.
8026 if test -f $ac_dir/$ac_word; then
8027 ac_cv_path_TCLSH="$ac_dir/$ac_word"
8035 TCLSH="$ac_cv_path_TCLSH"
8036 if test -n "$TCLSH"; then
8037 echo "$ac_t""$TCLSH" 1>&6
8039 echo "$ac_t""no" 1>&6
8042 test -n "$TCLSH" && break
8045 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
8046 echo "configure:8047: checking for tclConfig.sh" >&5
8047 # Let user override test
8048 if test -z "$TCL_CONFIG_SH"; then
8049 pgac_test_dirs="$with_tclconfig"
8051 set X $pgac_test_dirs; shift
8052 if test $# -eq 0; then
8053 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8054 set X `echo 'puts $auto_path' | $TCLSH`; shift
8058 if test -r "$pgac_dir/tclConfig.sh"; then
8059 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
8065 if test -z "$TCL_CONFIG_SH"; then
8066 echo "$ac_t""no" 1>&6
8067 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
8069 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
8076 # Check for Tk configuration script tkConfig.sh
8077 if test "$with_tk" = yes; then
8078 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
8079 echo "configure:8080: checking for tkConfig.sh" >&5
8080 # Let user override test
8081 if test -z "$TK_CONFIG_SH"; then
8082 pgac_test_dirs="$with_tkconfig $with_tclconfig"
8084 set X $pgac_test_dirs; shift
8085 if test $# -eq 0; then
8086 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8087 set X `echo 'puts $auto_path' | $TCLSH`; shift
8091 if test -r "$pgac_dir/tkConfig.sh"; then
8092 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
8098 if test -z "$TK_CONFIG_SH"; then
8099 echo "$ac_t""no" 1>&6
8100 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
8102 echo "$ac_t""$TK_CONFIG_SH" 1>&6
8111 # Check for DocBook and tools
8113 for ac_prog in onsgmls nsgmls
8115 # Extract the first word of "$ac_prog", so it can be a program name with args.
8116 set dummy $ac_prog; ac_word=$2
8117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8118 echo "configure:8119: checking for $ac_word" >&5
8119 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
8120 echo $ac_n "(cached) $ac_c" 1>&6
8122 if test -n "$NSGMLS"; then
8123 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
8125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8127 for ac_dir in $ac_dummy; do
8128 test -z "$ac_dir" && ac_dir=.
8129 if test -f $ac_dir/$ac_word; then
8130 ac_cv_prog_NSGMLS="$ac_prog"
8137 NSGMLS="$ac_cv_prog_NSGMLS"
8138 if test -n "$NSGMLS"; then
8139 echo "$ac_t""$NSGMLS" 1>&6
8141 echo "$ac_t""no" 1>&6
8144 test -n "$NSGMLS" && break
8147 # If you don't have nsgmls you won't get very far, so save the cycles.
8148 if test -n "$NSGMLS"; then
8149 for ac_prog in openjade jade
8151 # Extract the first word of "$ac_prog", so it can be a program name with args.
8152 set dummy $ac_prog; ac_word=$2
8153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8154 echo "configure:8155: checking for $ac_word" >&5
8155 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
8156 echo $ac_n "(cached) $ac_c" 1>&6
8158 if test -n "$JADE"; then
8159 ac_cv_prog_JADE="$JADE" # Let the user override the test.
8161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8163 for ac_dir in $ac_dummy; do
8164 test -z "$ac_dir" && ac_dir=.
8165 if test -f $ac_dir/$ac_word; then
8166 ac_cv_prog_JADE="$ac_prog"
8173 JADE="$ac_cv_prog_JADE"
8174 if test -n "$JADE"; then
8175 echo "$ac_t""$JADE" 1>&6
8177 echo "$ac_t""no" 1>&6
8180 test -n "$JADE" && break
8184 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
8185 echo "configure:8186: checking for DocBook V3.1" >&5
8186 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
8189 cat >conftest.sgml <<EOF
8190 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
8194 <title>random</title>
8196 <title>testsect</title>
8203 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
8204 if test $? -eq 0; then
8205 pgac_cv_check_docbook=yes
8207 pgac_cv_check_docbook=no
8212 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
8214 have_docbook=$pgac_cv_check_docbook
8217 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
8218 echo "configure:8219: checking for DocBook stylesheets" >&5
8219 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
8220 echo $ac_n "(cached) $ac_c" 1>&6
8222 if test -n "$DOCBOOKSTYLE"; then
8223 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
8225 for pgac_prefix in /usr /usr/local /opt; do
8226 for pgac_infix in share lib; do
8227 for pgac_postfix in \
8228 sgml/stylesheets/nwalsh-modular \
8229 sgml/stylesheets/docbook \
8230 sgml/docbook/dsssl/modular
8232 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
8233 if test -r "$pgac_candidate/html/docbook.dsl" \
8234 && test -r "$pgac_candidate/print/docbook.dsl"
8236 pgac_cv_path_stylesheets=$pgac_candidate
8245 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
8247 if test -n "$DOCBOOKSTYLE"; then
8248 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
8250 echo "$ac_t""no" 1>&6
8252 for ac_prog in sgmlspl
8254 # Extract the first word of "$ac_prog", so it can be a program name with args.
8255 set dummy $ac_prog; ac_word=$2
8256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8257 echo "configure:8258: checking for $ac_word" >&5
8258 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8261 if test -n "$SGMLSPL"; then
8262 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
8264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8266 for ac_dir in $ac_dummy; do
8267 test -z "$ac_dir" && ac_dir=.
8268 if test -f $ac_dir/$ac_word; then
8269 ac_cv_prog_SGMLSPL="$ac_prog"
8276 SGMLSPL="$ac_cv_prog_SGMLSPL"
8277 if test -n "$SGMLSPL"; then
8278 echo "$ac_t""$SGMLSPL" 1>&6
8280 echo "$ac_t""no" 1>&6
8283 test -n "$SGMLSPL" && break
8288 # check whether 'test -ef' works
8289 if (test "$srcdir" -ef "$srcdir") >/dev/null 2>&1 ; then
8298 if test "$test_ef_works" = yes ; then
8299 # prepare build tree if outside source tree
8300 if test "$srcdir" -ef . ; then : ; else
8301 abs_top_srcdir=`cd $srcdir && pwd`
8302 echo $ac_n "preparing build tree... $ac_c" 1>&6
8303 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
8304 || { echo "configure: error: failed" 1>&2; exit 1; }
8305 echo "$ac_t""done" 1>&6
8310 cat > confcache <<\EOF
8311 # This file is a shell script that caches the results of configure
8312 # tests run on this system so they can be shared between configure
8313 # scripts and configure runs. It is not useful on other systems.
8314 # If it contains results you don't want to keep, you may remove or edit it.
8316 # By default, configure uses ./config.cache as the cache file,
8317 # creating it if it does not exist already. You can give configure
8318 # the --cache-file=FILE option to use a different cache file; that is
8319 # what configure does when it calls configure scripts in
8320 # subdirectories, so they share the cache.
8321 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8322 # config.status only pays attention to the cache file if you give it the
8323 # --recheck option to rerun configure.
8326 # The following way of writing the cache mishandles newlines in values,
8327 # but we know of no workaround that is simple, portable, and efficient.
8328 # So, don't put newlines in cache variables' values.
8329 # Ultrix sh set writes to stderr and can't be redirected directly,
8330 # and sets the high bit in the cache file unless we assign to the vars.
8332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8334 # `set' does not quote correctly, so add quotes (double-quote substitution
8335 # turns \\\\ into \\, and sed turns \\ into \).
8337 -e "s/'/'\\\\''/g" \
8338 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8341 # `set' quotes correctly as required by POSIX, so do not add quotes.
8342 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8345 if cmp -s $cache_file confcache; then
8348 if test -w $cache_file; then
8349 echo "updating cache $cache_file"
8350 cat confcache > $cache_file
8352 echo "not updating unwritable cache $cache_file"
8357 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8359 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8360 # Let make expand exec_prefix.
8361 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8363 # Any assignment to VPATH causes Sun make to only execute
8364 # the first set of double-colon rules, so remove it if not needed.
8365 # If there is a colon in the path, we need to keep it.
8366 if test "x$srcdir" = x.; then
8367 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8370 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8372 DEFS=-DHAVE_CONFIG_H
8374 # Without the "./", some shells look in PATH for config.status.
8375 : ${CONFIG_STATUS=./config.status}
8377 echo creating $CONFIG_STATUS
8378 rm -f $CONFIG_STATUS
8379 cat > $CONFIG_STATUS <<EOF
8381 # Generated automatically by configure.
8382 # Run this file to recreate the current configuration.
8383 # This directory was configured as follows,
8384 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8386 # $0 $ac_configure_args
8388 # Compiler output produced by configure, useful for debugging
8389 # configure, is in ./config.log if it exists.
8391 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8394 case "\$ac_option" in
8395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8396 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8397 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8398 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8399 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8401 -help | --help | --hel | --he | --h)
8402 echo "\$ac_cs_usage"; exit 0 ;;
8403 *) echo "\$ac_cs_usage"; exit 1 ;;
8407 ac_given_srcdir=$srcdir
8409 trap 'rm -fr `echo "
8413 src/backend/port/Makefile
8414 src/include/pg_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8416 cat >> $CONFIG_STATUS <<EOF
8418 # Protect against being on the right side of a sed subst in config.status.
8419 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8420 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8424 s%@CFLAGS@%$CFLAGS%g
8425 s%@CPPFLAGS@%$CPPFLAGS%g
8426 s%@CXXFLAGS@%$CXXFLAGS%g
8427 s%@FFLAGS@%$FFLAGS%g
8429 s%@LDFLAGS@%$LDFLAGS%g
8431 s%@exec_prefix@%$exec_prefix%g
8432 s%@prefix@%$prefix%g
8433 s%@program_transform_name@%$program_transform_name%g
8434 s%@bindir@%$bindir%g
8435 s%@sbindir@%$sbindir%g
8436 s%@libexecdir@%$libexecdir%g
8437 s%@datadir@%$datadir%g
8438 s%@sysconfdir@%$sysconfdir%g
8439 s%@sharedstatedir@%$sharedstatedir%g
8440 s%@localstatedir@%$localstatedir%g
8441 s%@libdir@%$libdir%g
8442 s%@includedir@%$includedir%g
8443 s%@oldincludedir@%$oldincludedir%g
8444 s%@docdir@%$docdir%g
8445 s%@mandir@%$mandir%g
8446 s%@VERSION@%$VERSION%g
8448 s%@host_alias@%$host_alias%g
8449 s%@host_cpu@%$host_cpu%g
8450 s%@host_vendor@%$host_vendor%g
8451 s%@host_os@%$host_os%g
8452 s%@PORTNAME@%$PORTNAME%g
8454 s%@MULTIBYTE@%$MULTIBYTE%g
8455 s%@enable_nls@%$enable_nls%g
8456 s%@WANTED_LANGUAGES@%$WANTED_LANGUAGES%g
8457 s%@default_port@%$default_port%g
8458 s%@enable_shared@%$enable_shared%g
8459 s%@enable_rpath@%$enable_rpath%g
8461 s%@EXEEXT@%$EXEEXT%g
8464 s%@autodepend@%$autodepend%g
8465 s%@INCLUDES@%$INCLUDES%g
8466 s%@with_tcl@%$with_tcl%g
8467 s%@with_tk@%$with_tk%g
8468 s%@enable_pltcl_unknown@%$enable_pltcl_unknown%g
8469 s%@with_perl@%$with_perl%g
8470 s%@with_python@%$with_python%g
8472 s%@with_java@%$with_java%g
8473 s%@with_krb4@%$with_krb4%g
8474 s%@with_krb5@%$with_krb5%g
8475 s%@krb_srvtab@%$krb_srvtab%g
8476 s%@with_openssl@%$with_openssl%g
8477 s%@enable_odbc@%$enable_odbc%g
8478 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8479 s%@ELF_SYS@%$ELF_SYS%g
8481 s%@CXXCPP@%$CXXCPP%g
8483 s%@with_CXX@%$with_CXX%g
8486 s%@FLEXFLAGS@%$FLEXFLAGS%g
8489 s%@with_gnu_ld@%$with_gnu_ld%g
8490 s%@ld_R_works@%$ld_R_works%g
8491 s%@RANLIB@%$RANLIB%g
8492 s%@LORDER@%$LORDER%g
8496 s%@YFLAGS@%$YFLAGS%g
8498 s%@PYTHON@%$PYTHON%g
8499 s%@python_version@%$python_version%g
8500 s%@python_prefix@%$python_prefix%g
8501 s%@python_execprefix@%$python_execprefix%g
8502 s%@python_configdir@%$python_configdir%g
8503 s%@python_moduledir@%$python_moduledir%g
8504 s%@python_moduleexecdir@%$python_moduleexecdir%g
8505 s%@python_includespec@%$python_includespec%g
8506 s%@python_libspec@%$python_libspec%g
8507 s%@MSGFMT@%$MSGFMT%g
8508 s%@MSGMERGE@%$MSGMERGE%g
8509 s%@XGETTEXT@%$XGETTEXT%g
8510 s%@localedir@%$localedir%g
8511 s%@SNPRINTF@%$SNPRINTF%g
8513 s%@GETRUSAGE@%$GETRUSAGE%g
8514 s%@SRANDOM@%$SRANDOM%g
8515 s%@GETHOSTNAME@%$GETHOSTNAME%g
8516 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8517 s%@INET_ATON@%$INET_ATON%g
8518 s%@STRERROR@%$STRERROR%g
8519 s%@STRDUP@%$STRDUP%g
8520 s%@STRTOL@%$STRTOL%g
8521 s%@STRTOUL@%$STRTOUL%g
8522 s%@STRCASECMP@%$STRCASECMP%g
8523 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8524 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8526 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8527 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8528 s%@NSGMLS@%$NSGMLS%g
8530 s%@have_docbook@%$have_docbook%g
8531 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
8532 s%@SGMLSPL@%$SGMLSPL%g
8533 s%@abs_top_srcdir@%$abs_top_srcdir%g
8538 cat >> $CONFIG_STATUS <<\EOF
8540 # Split the substitutions into bite-sized pieces for seds with
8541 # small command number limits, like on Digital OSF/1 and HP-UX.
8542 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8543 ac_file=1 # Number of current file.
8544 ac_beg=1 # First line for current file.
8545 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8548 while $ac_more_lines; do
8549 if test $ac_beg -gt 1; then
8550 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8552 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8554 if test ! -s conftest.s$ac_file; then
8556 rm -f conftest.s$ac_file
8558 if test -z "$ac_sed_cmds"; then
8559 ac_sed_cmds="sed -f conftest.s$ac_file"
8561 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8563 ac_file=`expr $ac_file + 1`
8565 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8568 if test -z "$ac_sed_cmds"; then
8573 cat >> $CONFIG_STATUS <<EOF
8575 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8578 src/backend/port/Makefile
8581 cat >> $CONFIG_STATUS <<\EOF
8582 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8583 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8585 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8586 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8587 *) ac_file_in="${ac_file}.in" ;;
8590 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8592 # Remove last slash and all that follows it. Not all systems have dirname.
8593 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8594 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8595 # The file is in a subdirectory.
8596 test ! -d "$ac_dir" && mkdir "$ac_dir"
8597 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8598 # A "../" for each directory in $ac_dir_suffix.
8599 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8601 ac_dir_suffix= ac_dots=
8604 case "$ac_given_srcdir" in
8606 if test -z "$ac_dots"; then top_srcdir=.
8607 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8608 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8610 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8611 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8615 echo creating "$ac_file"
8617 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8619 *Makefile*) ac_comsub="1i\\
8620 # $configure_input" ;;
8624 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8626 s%@configure_input@%$configure_input%g
8627 s%@srcdir@%$srcdir%g
8628 s%@top_srcdir@%$top_srcdir%g
8629 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8633 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8634 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8636 # ac_d sets the value in "#define NAME VALUE" lines.
8637 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8638 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8641 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8642 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8643 ac_uB='\([ ]\)%\1#\2define\3'
8646 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8647 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8648 ac_eB='$%\1#\2define\3'
8652 if test "${CONFIG_HEADERS+set}" != set; then
8654 cat >> $CONFIG_STATUS <<EOF
8655 CONFIG_HEADERS="src/include/pg_config.h"
8657 cat >> $CONFIG_STATUS <<\EOF
8659 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8662 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8663 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8664 *) ac_file_in="${ac_file}.in" ;;
8667 echo creating $ac_file
8669 rm -f conftest.frag conftest.in conftest.out
8670 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8671 cat $ac_file_inputs > conftest.in
8675 # Transform confdefs.h into a sed script conftest.vals that substitutes
8676 # the proper values into config.h.in to produce config.h. And first:
8677 # Protect against being on the right side of a sed subst in config.status.
8678 # Protect against being in an unquoted here document in config.status.
8680 cat > conftest.hdr <<\EOF
8683 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8687 sed -n -f conftest.hdr confdefs.h > conftest.vals
8690 # This sed command replaces #undef with comments. This is necessary, for
8691 # example, in the case of _POSIX_SOURCE, which is predefined and required
8692 # on some systems where configure will not decide to define it.
8693 cat >> conftest.vals <<\EOF
8694 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8697 # Break up conftest.vals because some shells have a limit on
8698 # the size of here documents, and old seds have small limits too.
8703 ac_lines=`grep -c . conftest.vals`
8704 # grep -c gives empty output for an empty file on some AIX systems.
8705 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8706 # Write a limited-size here document to conftest.frag.
8707 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8708 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8710 sed -f conftest.frag conftest.in > conftest.out
8712 mv conftest.out conftest.in
8714 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8716 mv conftest.tail conftest.vals
8720 cat >> $CONFIG_STATUS <<\EOF
8721 rm -f conftest.frag conftest.h
8722 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8723 cat conftest.in >> conftest.h
8725 if cmp -s $ac_file conftest.h 2>/dev/null; then
8726 echo "$ac_file is unchanged"
8729 # Remove last slash and all that follows it. Not all systems have dirname.
8730 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8731 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8732 # The file is in a subdirectory.
8733 test ! -d "$ac_dir" && mkdir "$ac_dir"
8736 mv conftest.h $ac_file
8742 cat >> $CONFIG_STATUS <<EOF
8743 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}"
8744 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/pg_config_os.h src/Makefile.port src/backend/port/tas.s"
8747 cat >> $CONFIG_STATUS <<\EOF
8748 srcdir=$ac_given_srcdir
8749 while test -n "$ac_sources"; do
8750 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
8751 set $ac_sources; ac_source=$1; shift; ac_sources=$*
8753 echo "linking $srcdir/$ac_source to $ac_dest"
8755 if test ! -r $srcdir/$ac_source; then
8756 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
8760 # Make relative symlinks.
8761 # Remove last slash and all that follows it. Not all systems have dirname.
8762 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
8763 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
8764 # The dest file is in a subdirectory.
8765 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
8766 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
8767 # A "../" for each directory in $ac_dest_dir_suffix.
8768 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
8770 ac_dest_dir_suffix= ac_dots=
8774 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
8775 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
8778 # Make a symlink if possible; otherwise try a hard link.
8779 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
8780 ln $srcdir/$ac_source $ac_dest; then :
8782 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
8786 cat >> $CONFIG_STATUS <<EOF
8789 cat >> $CONFIG_STATUS <<\EOF
8791 # Update timestamp for pg_config.h (see Makefile.global)
8792 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
8796 chmod +x $CONFIG_STATUS
8797 rm -fr confdefs* $ac_clean_files
8798 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1