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 --enable-pltcl-utf build PL/Tcl UTF support (if Tcl is enabled)"
58 --with-perl build Perl interface and PL/Perl"
60 --with-python build Python interface module"
62 --with-java build JDBC interface and Java tools"
64 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
66 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
68 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]"
70 --with-pam[=DIR] build with PAM support [/usr]"
72 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
74 --enable-odbc build the ODBC driver package"
76 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
78 --with-CXX build C++ modules (libpq++)"
80 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
82 --enable-syslog enable logging to syslog"
84 # Initialize some variables set by options.
85 # The variables have the same names as the options, with
86 # dashes changed to underlines.
88 cache_file=./config.cache
97 program_transform_name=s,x,x,
105 bindir='${exec_prefix}/bin'
106 sbindir='${exec_prefix}/sbin'
107 libexecdir='${exec_prefix}/libexec'
108 datadir='${prefix}/share'
109 sysconfdir='${prefix}/etc'
110 sharedstatedir='${prefix}/com'
111 localstatedir='${prefix}/var'
112 libdir='${exec_prefix}/lib'
113 includedir='${prefix}/include'
114 oldincludedir='/usr/include'
115 docdir='${prefix}/doc'
116 mandir='${prefix}/man'
118 # Initialize some other variables.
121 SHELL=${CONFIG_SHELL-/bin/sh}
122 # Maximum number of lines to put in a shell here document.
129 # If the previous option needs an argument, assign it.
130 if test -n "$ac_prev"; then
131 eval "$ac_prev=\$ac_option"
137 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
141 # Accept the important Cygnus configure options, so we can diagnose typos.
145 -bindir | --bindir | --bindi | --bind | --bin | --bi)
147 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
148 bindir="$ac_optarg" ;;
150 -build | --build | --buil | --bui | --bu)
152 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
153 build="$ac_optarg" ;;
155 -cache-file | --cache-file | --cache-fil | --cache-fi \
156 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
157 ac_prev=cache_file ;;
158 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
159 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
160 cache_file="$ac_optarg" ;;
162 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
164 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
166 datadir="$ac_optarg" ;;
168 -disable-* | --disable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 eval "enable_${ac_feature}=no" ;;
177 -enable-* | --enable-*)
178 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
179 # Reject names that are not valid shell variable names.
180 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
181 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
183 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}='$ac_optarg'" ;;
190 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
191 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
192 | --exec | --exe | --ex)
193 ac_prev=exec_prefix ;;
194 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
195 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
196 | --exec=* | --exe=* | --ex=*)
197 exec_prefix="$ac_optarg" ;;
199 -gas | --gas | --ga | --g)
200 # Obsolete; use --with-gas.
203 -help | --help | --hel | --he)
204 # Omit some internal or obsolete options to make the list less imposing.
205 # This message is too long to be a string in the A/UX 3.1 sh.
207 Usage: configure [options] [host]
208 Options: [defaults in brackets after descriptions]
210 --cache-file=FILE cache test results in FILE
211 --help print this message
212 --no-create do not create output files
213 --quiet, --silent do not print \`checking...' messages
214 --version print the version of autoconf that created configure
215 Directory and file names:
216 --prefix=PREFIX install architecture-independent files in PREFIX
218 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
220 --bindir=DIR user executables in DIR [EPREFIX/bin]
221 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
222 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
223 --datadir=DIR read-only architecture-independent data in DIR
225 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
226 --sharedstatedir=DIR modifiable architecture-independent data in DIR
228 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
229 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
230 --includedir=DIR C header files in DIR [PREFIX/include]
231 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
232 --docdir=DIR doc documentation in DIR [PREFIX/doc]
233 --mandir=DIR man documentation in DIR [PREFIX/man]
234 --srcdir=DIR find the sources in DIR [configure dir or ..]
235 --program-prefix=PREFIX prepend PREFIX to installed program names
236 --program-suffix=SUFFIX append SUFFIX to installed program names
237 --program-transform-name=PROGRAM
238 run sed PROGRAM on installed program names
242 --build=BUILD configure for building on BUILD [BUILD=HOST]
243 --host=HOST configure for HOST [guessed]
244 --target=TARGET configure for TARGET [TARGET=HOST]
245 Features and packages:
246 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
247 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
248 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
249 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
250 --x-includes=DIR X include files are in DIR
251 --x-libraries=DIR X library files are in DIR
253 if test -n "$ac_help"; then
254 echo "--enable and --with options recognized:$ac_help"
258 -host | --host | --hos | --ho)
260 -host=* | --host=* | --hos=* | --ho=*)
263 -includedir | --includedir | --includedi | --included | --include \
264 | --includ | --inclu | --incl | --inc)
265 ac_prev=includedir ;;
266 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
267 | --includ=* | --inclu=* | --incl=* | --inc=*)
268 includedir="$ac_optarg" ;;
270 -docdir | --docdir | --infodi | --infod | --doc | --inf)
272 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
273 docdir="$ac_optarg" ;;
275 -libdir | --libdir | --libdi | --libd)
277 -libdir=* | --libdir=* | --libdi=* | --libd=*)
278 libdir="$ac_optarg" ;;
280 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
281 | --libexe | --libex | --libe)
282 ac_prev=libexecdir ;;
283 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
284 | --libexe=* | --libex=* | --libe=*)
285 libexecdir="$ac_optarg" ;;
287 -localstatedir | --localstatedir | --localstatedi | --localstated \
288 | --localstate | --localstat | --localsta | --localst \
289 | --locals | --local | --loca | --loc | --lo)
290 ac_prev=localstatedir ;;
291 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
292 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
293 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
294 localstatedir="$ac_optarg" ;;
296 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
298 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
299 mandir="$ac_optarg" ;;
302 # Obsolete; use --without-fp.
305 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
309 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
310 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
313 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
314 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
315 | --oldin | --oldi | --old | --ol | --o)
316 ac_prev=oldincludedir ;;
317 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
318 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
319 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
320 oldincludedir="$ac_optarg" ;;
322 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
324 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
325 prefix="$ac_optarg" ;;
327 -program-prefix | --program-prefix | --program-prefi | --program-pref \
328 | --program-pre | --program-pr | --program-p)
329 ac_prev=program_prefix ;;
330 -program-prefix=* | --program-prefix=* | --program-prefi=* \
331 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
332 program_prefix="$ac_optarg" ;;
334 -program-suffix | --program-suffix | --program-suffi | --program-suff \
335 | --program-suf | --program-su | --program-s)
336 ac_prev=program_suffix ;;
337 -program-suffix=* | --program-suffix=* | --program-suffi=* \
338 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
339 program_suffix="$ac_optarg" ;;
341 -program-transform-name | --program-transform-name \
342 | --program-transform-nam | --program-transform-na \
343 | --program-transform-n | --program-transform- \
344 | --program-transform | --program-transfor \
345 | --program-transfo | --program-transf \
346 | --program-trans | --program-tran \
347 | --progr-tra | --program-tr | --program-t)
348 ac_prev=program_transform_name ;;
349 -program-transform-name=* | --program-transform-name=* \
350 | --program-transform-nam=* | --program-transform-na=* \
351 | --program-transform-n=* | --program-transform-=* \
352 | --program-transform=* | --program-transfor=* \
353 | --program-transfo=* | --program-transf=* \
354 | --program-trans=* | --program-tran=* \
355 | --progr-tra=* | --program-tr=* | --program-t=*)
356 program_transform_name="$ac_optarg" ;;
358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
359 | -silent | --silent | --silen | --sile | --sil)
362 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
364 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
366 sbindir="$ac_optarg" ;;
368 -sharedstatedir | --sharedstatedir | --sharedstatedi \
369 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
370 | --sharedst | --shareds | --shared | --share | --shar \
372 ac_prev=sharedstatedir ;;
373 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
374 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
375 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
377 sharedstatedir="$ac_optarg" ;;
379 -site | --site | --sit)
381 -site=* | --site=* | --sit=*)
384 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
386 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
387 srcdir="$ac_optarg" ;;
389 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
390 | --syscon | --sysco | --sysc | --sys | --sy)
391 ac_prev=sysconfdir ;;
392 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
393 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
394 sysconfdir="$ac_optarg" ;;
396 -target | --target | --targe | --targ | --tar | --ta | --t)
398 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
399 target="$ac_optarg" ;;
401 -v | -verbose | --verbose | --verbos | --verbo | --verb)
404 -version | --version | --versio | --versi | --vers)
405 echo "configure generated by autoconf version 2.13"
409 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
412 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
414 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}='$ac_optarg'" ;;
421 -without-* | --without-*)
422 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package=`echo $ac_package| sed 's/-/_/g'`
428 eval "with_${ac_package}=no" ;;
431 # Obsolete; use --with-x.
434 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
435 | --x-incl | --x-inc | --x-in | --x-i)
436 ac_prev=x_includes ;;
437 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
438 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
439 x_includes="$ac_optarg" ;;
441 -x-libraries | --x-libraries | --x-librarie | --x-librari \
442 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
443 ac_prev=x_libraries ;;
444 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
445 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
446 x_libraries="$ac_optarg" ;;
448 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
452 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
453 echo "configure: warning: $ac_option: invalid host type" 1>&2
455 if test "x$nonopt" != xNONE; then
456 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 if test -n "$ac_prev"; then
465 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
468 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
470 # File descriptor usage:
473 # 2 errors and warnings
474 # 3 some systems may open it to /dev/tty
475 # 4 used on the Kubota Titan
476 # 6 checking for... messages and results
477 # 5 compiler messages saved in config.log
478 if test "$silent" = yes; then
486 This file contains any messages produced by compilers while
487 running configure, to aid debugging if configure makes a mistake.
490 # Strip out --no-create and --no-recursion so they do not pile up.
491 # Also quote any args containing shell metacharacters.
496 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
497 | --no-cr | --no-c) ;;
498 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
499 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
501 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
502 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
507 # Only set these to C if already set. These must not be set unconditionally
508 # because not all systems understand e.g. LANG=C (notably SCO).
509 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
510 # Non-C LC_CTYPE values break the ctype check.
511 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
512 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
513 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
514 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
517 rm -rf conftest* confdefs.h
518 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
521 # A filename unique to this package, relative to the directory that
522 # configure is in, which we can look for to find out if srcdir is correct.
523 ac_unique_file=src/backend/access/common/heaptuple.c
525 # Find the source files, if location was not specified.
526 if test -z "$srcdir"; then
527 ac_srcdir_defaulted=yes
528 # Try the directory containing this script, then its parent.
530 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
531 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
533 if test ! -r $srcdir/$ac_unique_file; then
537 ac_srcdir_defaulted=no
539 if test ! -r $srcdir/$ac_unique_file; then
540 if test "$ac_srcdir_defaulted" = yes; then
541 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
543 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
546 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
548 # Prefer explicitly selected file to automatically selected ones.
549 if test -z "$CONFIG_SITE"; then
550 if test "x$prefix" != xNONE; then
551 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
553 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
556 for ac_site_file in $CONFIG_SITE; do
557 if test -r "$ac_site_file"; then
558 echo "loading site script $ac_site_file"
563 if test -r "$cache_file"; then
564 echo "loading cache $cache_file"
567 echo "creating cache $cache_file"
572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
573 ac_cpp='$CPP $CPPFLAGS'
574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
576 cross_compiling=$ac_cv_prog_cc_cross
580 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
581 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
582 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
589 ac_n= ac_c='\c' ac_t=
601 for ac_dir in config $srcdir/config; do
602 if test -f $ac_dir/install-sh; then
604 ac_install_sh="$ac_aux_dir/install-sh -c"
606 elif test -f $ac_dir/install.sh; then
608 ac_install_sh="$ac_aux_dir/install.sh -c"
612 if test -z "$ac_aux_dir"; then
613 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
615 ac_config_guess=$ac_aux_dir/config.guess
616 ac_config_sub=$ac_aux_dir/config.sub
617 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 cat >> confdefs.h <<EOF
623 #define PG_VERSION "$VERSION"
630 # Make sure we can run config.sub.
631 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
632 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
635 echo $ac_n "checking host system type""... $ac_c" 1>&6
636 echo "configure:637: checking host system type" >&5
639 case "$host_alias" in
643 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
644 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
646 *) host_alias=$nonopt ;;
650 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
651 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
652 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
653 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
654 echo "$ac_t""$host" 1>&6
661 echo $ac_n "checking which template to use""... $ac_c" 1>&6
662 echo "configure:663: checking which template to use" >&5
664 # Check whether --with-template was given
665 if test x"${with_template+set}" = xset; then
666 case $with_template in
668 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
671 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
674 withval=$with_template
677 list) echo; ls "$srcdir/src/template"; exit;;
678 *) if test -f "$srcdir/src/template/$with_template" ; then
681 { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
686 esac # $with_template
689 # --with-template not given
692 aix*) template=aix ;;
693 beos*) template=beos ;;
694 bsdi*) template=bsdi ;;
695 cygwin*) template=win ;;
696 darwin*) template=darwin ;;
697 dgux*) template=dgux ;;
698 freebsd*) template=freebsd ;;
699 hpux*) template=hpux ;;
700 irix*) template=irix5 ;;
701 linux*) template=linux ;;
702 netbsd*) template=netbsd ;;
703 nextstep*) template=nextstep ;;
704 openbsd*) template=openbsd ;;
705 osf*) template=osf ;;
706 qnx*) template=qnx4 ;;
707 sco*) template=sco ;;
708 solaris*) template=solaris ;;
709 sunos*) template=sunos4 ;;
712 univel) template=univel ;;
714 sysv4*) template=svr4 ;;
715 sysv5*) template=unixware ;;
716 ultrix*) template=ultrix4 ;;
719 if test x"$template" = x"" ; then
720 { echo "configure: error:
721 *******************************************************************
722 PostgreSQL has apparently not been ported to your platform yet.
723 To try a manual configuration, look into the src/template directory
724 for a similar platform and use the '--with-template=' option.
726 Please also contact <pgsql-ports@postgresql.org> to see about
727 rectifying this. Include the above 'checking host system type...'
729 *******************************************************************
736 echo "$ac_t""$template" 1>&6
746 # Pick right test-and-set (TAS) code. Most platforms have inline
747 # assembler code in src/include/storage/s_lock.h, so we just use
750 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
751 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
752 i?86-*-solaris) need_tas=yes; tas_file=solaris_i386.s ;;
753 *) need_tas=no; tas_file=dummy.s ;;
757 if test "$need_tas" = yes ; then
765 ## Command line options
770 # Add non-standard directories to the include path
772 # Check whether --with-includes was given
773 if test x"${with_includes+set}" = xset; then
774 case $with_includes in
776 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
779 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
781 esac # $with_includes
786 # Add non-standard directories to the library search path
788 # Check whether --with-libraries was given
789 if test x"${with_libraries+set}" = xset; then
790 case $with_libraries in
792 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
795 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
798 withval=$with_libraries
799 LIBRARY_DIRS=$withval
801 esac # $with_libraries
804 # Check whether --with-libs was given
805 if test x"${with_libs+set}" = xset; then
808 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
811 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
815 LIBRARY_DIRS=$withval
822 # Locale (--enable-locale)
824 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
825 echo "configure:826: checking whether to build with locale support" >&5
826 # Check whether --enable-locale was given
827 if test x"${enable_locale+set}" = xset; then
828 case $enable_locale in
830 cat >> confdefs.h <<\EOF
839 enableval=$enable_locale
840 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
842 esac # $enable_locale
847 echo "$ac_t""$enable_locale" 1>&6
851 # Character set recode (--enable-recode)
853 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
854 echo "configure:855: checking whether to build with recode support" >&5
855 # Check whether --enable-recode was given
856 if test x"${enable_recode+set}" = xset; then
857 case $enable_recode in
859 cat >> confdefs.h <<\EOF
868 enableval=$enable_recode
869 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
871 esac # $enable_recode
876 echo "$ac_t""$enable_recode" 1>&6
883 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
884 echo "configure:885: checking whether to build with multibyte character support" >&5
886 # Check whether --enable-multibyte was given
887 if test x"${enable_multibyte+set}" = xset; then
888 case $enable_multibyte in
896 enableval=$enable_multibyte
900 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
901 MULTIBYTE=$enableval;;
903 { echo "configure: error: argument to --enable-multibyte must be one of:
904 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
905 UNICODE, MULE_INTERNAL,
906 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
908 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
912 esac # $enable_multibyte
917 if test "$enable_multibyte" = yes; then
919 cat >> confdefs.h <<\EOF
923 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
926 echo "$ac_t""no" 1>&6
933 # Unicode conversion (--enable-unicode-conversion)
935 echo $ac_n "checking whether to build with Unicode conversion support""... $ac_c" 1>&6
936 echo "configure:937: checking whether to build with Unicode conversion support" >&5
937 # Check whether --enable-unicode-conversion was given
938 if test x"${enable_unicode_conversion+set}" = xset; then
939 case $enable_unicode_conversion in
941 if test -z "$MULTIBYTE"; then
942 { echo "configure: error: --enable-unicode-conversion only works with --enable-multibyte" 1>&2; exit 1; }
944 cat >> confdefs.h <<\EOF
945 #define UNICODE_CONVERSION 1
953 enableval=$enable_unicode_conversion
954 { echo "configure: error: no argument expected for --enable-unicode-conversion option" 1>&2; exit 1; }
956 esac # $enable_unicode_conversion
958 enable_unicode_conversion=no
961 echo "$ac_t""$enable_unicode_conversion" 1>&6
966 echo $ac_n "checking whether NLS is wanted""... $ac_c" 1>&6
967 echo "configure:968: checking whether NLS is wanted" >&5
968 # Check whether --enable-nls was given
969 if test x"${enable_nls+set}" = xset; then
978 enableval=$enable_nls
980 WANTED_LANGUAGES=$enableval
987 if test "$enable_nls" = yes; then
988 cat >> confdefs.h <<\EOF
994 echo "$ac_t""$enable_nls" 1>&6
999 # Default port number (--with-pgport), default 5432
1001 echo $ac_n "checking for default port number""... $ac_c" 1>&6
1002 echo "configure:1003: checking for default port number" >&5
1003 # Check whether --with-pgport was given
1004 if test x"${with_pgport+set}" = xset; then
1005 case $with_pgport in
1007 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
1010 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
1013 withval=$with_pgport
1014 default_port=$withval
1020 echo "$ac_t""$default_port" 1>&6
1021 # Need both of these because some places want an integer and some a string
1022 cat >> confdefs.h <<EOF
1023 #define DEF_PGPORT ${default_port}
1026 cat >> confdefs.h <<EOF
1027 #define DEF_PGPORT_STR "${default_port}"
1033 # Maximum number of allowed connections (--with-maxbackends), default 32
1035 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
1036 echo "configure:1037: checking for default soft limit on number of connections" >&5
1037 # Check whether --with-maxbackends was given
1038 if test x"${with_maxbackends+set}" = xset; then
1039 case $with_maxbackends in
1041 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1044 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1046 esac # $with_maxbackends
1050 echo "$ac_t""$with_maxbackends" 1>&6
1051 cat >> confdefs.h <<EOF
1052 #define DEF_MAXBACKENDS $with_maxbackends
1058 # Option to disable shared libraries
1060 # Check whether --enable-shared was given
1061 if test x"${enable_shared+set}" = xset; then
1062 case $enable_shared in
1070 enableval=$enable_shared
1071 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1073 esac # $enable_shared
1081 # '-rpath'-like feature can be disabled
1083 # Check whether --enable-rpath was given
1084 if test x"${enable_rpath+set}" = xset; then
1085 case $enable_rpath in
1093 enableval=$enable_rpath
1094 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1096 esac # $enable_rpath
1105 # --enable-debug adds -g to compiler flags
1107 # Check whether --enable-debug was given
1108 if test x"${enable_debug+set}" = xset; then
1109 case $enable_debug in
1117 enableval=$enable_debug
1118 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1120 esac # $enable_debug
1131 # For historical reasons you can also use --with-CC to specify the C compiler
1132 # to use, although the standard way to do this is to set the CC environment
1134 # Check whether --with-CC was given
1135 if test x"${with_CC+set}" = xset; then
1138 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1141 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1150 # On AIX, default compiler to xlc.
1151 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1153 # Save CFLAGS from the environment
1154 has_environ_CFLAGS="${CFLAGS+yes}"
1157 # Extract the first word of "gcc", so it can be a program name with args.
1158 set dummy gcc; ac_word=$2
1159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1160 echo "configure:1161: checking for $ac_word" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1164 if test -n "$CC"; then
1165 ac_cv_prog_CC="$CC" # Let the user override the test.
1167 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1180 if test -n "$CC"; then
1181 echo "$ac_t""$CC" 1>&6
1183 echo "$ac_t""no" 1>&6
1186 if test -z "$CC"; then
1187 # Extract the first word of "cc", so it can be a program name with args.
1188 set dummy cc; ac_word=$2
1189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190 echo "configure:1191: checking for $ac_word" >&5
1191 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 if test -n "$CC"; then
1195 ac_cv_prog_CC="$CC" # Let the user override the test.
1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1200 for ac_dir in $ac_dummy; do
1201 test -z "$ac_dir" && ac_dir=.
1202 if test -f $ac_dir/$ac_word; then
1203 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1204 ac_prog_rejected=yes
1212 if test $ac_prog_rejected = yes; then
1213 # We found a bogon in the path, so make sure we never use it.
1214 set dummy $ac_cv_prog_CC
1216 if test $# -gt 0; then
1217 # We chose a different compiler from the bogus one.
1218 # However, it has the same basename, so the bogon will be chosen
1219 # first if we set CC to just the basename; use the full file name.
1221 set dummy "$ac_dir/$ac_word" "$@"
1229 if test -n "$CC"; then
1230 echo "$ac_t""$CC" 1>&6
1232 echo "$ac_t""no" 1>&6
1235 if test -z "$CC"; then
1236 case "`uname -s`" in
1238 # Extract the first word of "cl", so it can be a program name with args.
1239 set dummy cl; ac_word=$2
1240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1241 echo "configure:1242: checking for $ac_word" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 if test -n "$CC"; then
1246 ac_cv_prog_CC="$CC" # Let the user override the test.
1248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1250 for ac_dir in $ac_dummy; do
1251 test -z "$ac_dir" && ac_dir=.
1252 if test -f $ac_dir/$ac_word; then
1261 if test -n "$CC"; then
1262 echo "$ac_t""$CC" 1>&6
1264 echo "$ac_t""no" 1>&6
1269 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1272 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1273 echo "configure:1274: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1276 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1277 ac_cpp='$CPP $CPPFLAGS'
1278 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1279 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1280 cross_compiling=$ac_cv_prog_cc_cross
1282 cat > conftest.$ac_ext << EOF
1284 #line 1285 "configure"
1285 #include "confdefs.h"
1289 if { (eval echo configure:1290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1290 ac_cv_prog_cc_works=yes
1291 # If we can't run a trivial program, we are probably using a cross compiler.
1292 if (./conftest; exit) 2>/dev/null; then
1293 ac_cv_prog_cc_cross=no
1295 ac_cv_prog_cc_cross=yes
1298 echo "configure: failed program was:" >&5
1299 cat conftest.$ac_ext >&5
1300 ac_cv_prog_cc_works=no
1304 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1305 ac_cpp='$CPP $CPPFLAGS'
1306 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1307 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1308 cross_compiling=$ac_cv_prog_cc_cross
1310 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1311 if test $ac_cv_prog_cc_works = no; then
1312 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1314 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1315 echo "configure:1316: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1316 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1317 cross_compiling=$ac_cv_prog_cc_cross
1319 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1320 echo "configure:1321: checking whether we are using GNU C" >&5
1321 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 cat > conftest.c <<EOF
1329 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1336 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1338 if test $ac_cv_prog_gcc = yes; then
1344 ac_test_CFLAGS="${CFLAGS+set}"
1345 ac_save_CFLAGS="$CFLAGS"
1347 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1348 echo "configure:1349: checking whether ${CC-cc} accepts -g" >&5
1349 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 echo 'void f(){}' > conftest.c
1353 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1362 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1363 if test "$ac_test_CFLAGS" = set; then
1364 CFLAGS="$ac_save_CFLAGS"
1365 elif test $ac_cv_prog_cc_g = yes; then
1366 if test "$GCC" = yes; then
1372 if test "$GCC" = yes; then
1380 . "$srcdir/src/template/$template" || exit
1382 if test "$has_environ_CFLAGS" = yes; then
1385 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
1388 echo "using CFLAGS=$CFLAGS"
1389 # Check if the compiler still works with the template settings
1390 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1391 echo "configure:1392: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1394 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1395 ac_cpp='$CPP $CPPFLAGS'
1396 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1397 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1398 cross_compiling=$ac_cv_prog_cc_cross
1400 cat > conftest.$ac_ext << EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 if { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1408 ac_cv_prog_cc_works=yes
1409 # If we can't run a trivial program, we are probably using a cross compiler.
1410 if (./conftest; exit) 2>/dev/null; then
1411 ac_cv_prog_cc_cross=no
1413 ac_cv_prog_cc_cross=yes
1416 echo "configure: failed program was:" >&5
1417 cat conftest.$ac_ext >&5
1418 ac_cv_prog_cc_works=no
1422 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1423 ac_cpp='$CPP $CPPFLAGS'
1424 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1425 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1426 cross_compiling=$ac_cv_prog_cc_cross
1428 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1429 if test $ac_cv_prog_cc_works = no; then
1430 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1432 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1434 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1435 cross_compiling=$ac_cv_prog_cc_cross
1437 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1438 echo "configure:1439: checking for Cygwin environment" >&5
1439 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 cat > conftest.$ac_ext <<EOF
1443 #line 1444 "configure"
1444 #include "confdefs.h"
1449 #define __CYGWIN__ __CYGWIN32__
1454 if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1458 echo "configure: failed program was:" >&5
1459 cat conftest.$ac_ext >&5
1467 echo "$ac_t""$ac_cv_cygwin" 1>&6
1469 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1470 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1471 echo "configure:1472: checking for mingw32 environment" >&5
1472 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 cat > conftest.$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1483 if { (eval echo configure:1484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1487 echo "configure: failed program was:" >&5
1488 cat conftest.$ac_ext >&5
1496 echo "$ac_t""$ac_cv_mingw32" 1>&6
1498 test "$ac_cv_mingw32" = yes && MINGW32=yes
1501 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1502 echo "configure:1503: checking for executable suffix" >&5
1503 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1510 echo 'int main () { return 0; }' > conftest.$ac_ext
1512 if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1513 for file in conftest.*; do
1515 *.c | *.o | *.obj) ;;
1516 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1520 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1523 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1528 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1529 echo "$ac_t""${ac_cv_exeext}" 1>&6
1532 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1533 echo "configure:1534: checking how to run the C preprocessor" >&5
1534 # On Suns, sometimes $CPP names a directory.
1535 if test -n "$CPP" && test -d "$CPP"; then
1538 if test -z "$CPP"; then
1539 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 # This must be in double quotes, not single quotes, because CPP may get
1543 # substituted into the Makefile and "${CC-cc}" will confuse make.
1545 # On the NeXT, cc -E runs the code through the compiler's parser,
1546 # not just through cpp.
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554 { (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556 if test -z "$ac_err"; then
1560 echo "configure: failed program was:" >&5
1561 cat conftest.$ac_ext >&5
1563 CPP="${CC-cc} -E -traditional-cpp"
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1571 { (eval echo configure:1572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1573 if test -z "$ac_err"; then
1577 echo "configure: failed program was:" >&5
1578 cat conftest.$ac_ext >&5
1580 CPP="${CC-cc} -nologo -E"
1581 cat > conftest.$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1588 { (eval echo configure:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1590 if test -z "$ac_err"; then
1594 echo "configure: failed program was:" >&5
1595 cat conftest.$ac_ext >&5
1604 ac_cv_prog_CPP="$CPP"
1606 CPP="$ac_cv_prog_CPP"
1608 ac_cv_prog_CPP="$CPP"
1610 echo "$ac_t""$CPP" 1>&6
1612 if test $ac_cv_prog_gcc = yes; then
1613 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1614 echo "configure:1615: checking whether ${CC-cc} needs -traditional" >&5
1615 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1618 ac_pattern="Autoconf.*'x'"
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1626 egrep "$ac_pattern" >/dev/null 2>&1; then
1628 ac_cv_prog_gcc_traditional=yes
1631 ac_cv_prog_gcc_traditional=no
1636 if test $ac_cv_prog_gcc_traditional = no; then
1637 cat > conftest.$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1644 egrep "$ac_pattern" >/dev/null 2>&1; then
1646 ac_cv_prog_gcc_traditional=yes
1653 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1654 if test $ac_cv_prog_gcc_traditional = yes; then
1655 CC="$CC -traditional"
1661 # Create compiler version string
1662 if test x"$GCC" = x"yes" ; then
1663 cc_string="GCC `${CC} --version`"
1667 cat >> confdefs.h <<EOF
1668 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1674 # Automatic dependency tracking
1676 # Check whether --enable-depend was given
1677 if test x"${enable_depend+set}" = xset; then
1678 case $enable_depend in
1686 enableval=$enable_depend
1687 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1689 esac # $enable_depend
1698 # Enable assert checks
1700 # Check whether --enable-cassert was given
1701 if test x"${enable_cassert+set}" = xset; then
1702 case $enable_cassert in
1704 cat >> confdefs.h <<\EOF
1705 #define USE_ASSERT_CHECKING 1
1713 enableval=$enable_cassert
1714 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1716 esac # $enable_cassert
1724 # Include directories
1728 # SRCH_INC comes from the template file
1729 for dir in $with_includes $SRCH_INC; do
1730 if test -d "$dir"; then
1731 INCLUDES="$INCLUDES -I$dir"
1733 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1741 # Library directories
1745 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1746 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1747 if test -d "$dir"; then
1748 LIBDIRS="$LIBDIRS -L$dir"
1750 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1759 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1760 echo "configure:1761: checking whether to build with Tcl" >&5
1761 # Check whether --with-tcl was given
1762 if test x"${with_tcl+set}" = xset; then
1772 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1779 echo "$ac_t""$with_tcl" 1>&6
1782 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1783 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1784 echo "configure:1785: checking whether to build with Tk" >&5
1785 if test "$with_tcl" = yes; then
1786 # Check whether --with-tk was given
1787 if test x"${with_tk+set}" = xset; then
1797 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1807 echo "$ac_t""$with_tk" 1>&6
1811 # We see if the path to the TCL/TK configuration scripts is specified.
1812 # This will override the use of tclsh to find the paths to search.
1814 # Check whether --with-tclconfig was given
1815 if test x"${with_tclconfig+set}" = xset; then
1816 case $with_tclconfig in
1818 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1821 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1823 esac # $with_tclconfig
1826 # We see if the path to the TK configuration scripts is specified.
1827 # This will override the use of tclsh to find the paths to search.
1829 # Check whether --with-tkconfig was given
1830 if test x"${with_tkconfig+set}" = xset; then
1831 case $with_tkconfig in
1833 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1836 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1838 esac # $with_tkconfig
1843 # If Tcl is enabled (above) then check for pltcl_unknown_support
1845 echo $ac_n "checking whether to build with PL/Tcl unknown support""... $ac_c" 1>&6
1846 echo "configure:1847: checking whether to build with PL/Tcl unknown support" >&5
1847 if test "$with_tcl" = yes; then
1848 # Check whether --enable-pltcl-unknown was given
1849 if test x"${enable_pltcl_unknown+set}" = xset; then
1850 case $enable_pltcl_unknown in
1852 cat >> confdefs.h <<\EOF
1853 #define ENABLE_PLTCL_UNKNOWN 1
1861 enableval=$enable_pltcl_unknown
1862 { echo "configure: error: no argument expected for --enable-pltcl-unknown option" 1>&2; exit 1; }
1864 esac # $enable_pltcl_unknown
1866 enable_pltcl_unknown=no
1870 enable_pltcl_unknown=no
1872 echo "$ac_t""$enable_pltcl_unknown" 1>&6
1877 # If Tcl is enabled (above) then check for pltcl_utf
1879 echo $ac_n "checking whether to build with PL/Tcl with UTF support""... $ac_c" 1>&6
1880 echo "configure:1881: checking whether to build with PL/Tcl with UTF support" >&5
1881 if test "$with_tcl" = yes; then
1882 # Check whether --enable-pltcl-utf was given
1883 if test x"${enable_pltcl_utf+set}" = xset; then
1884 case $enable_pltcl_utf in
1886 cat >> confdefs.h <<\EOF
1887 #define ENABLE_PLTCL_UTF 1
1895 enableval=$enable_pltcl_utf
1896 { echo "configure: error: no argument expected for --enable-pltcl-utf option" 1>&2; exit 1; }
1898 esac # $enable_pltcl_utf
1906 echo "$ac_t""$enable_pltcl_utf" 1>&6
1911 # Optionally build Perl modules (Pg.pm and PL/Perl)
1913 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1914 echo "configure:1915: checking whether to build Perl modules" >&5
1915 # Check whether --with-perl was given
1916 if test x"${with_perl+set}" = xset; then
1926 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1933 echo "$ac_t""$with_perl" 1>&6
1937 # Optionally build Python interface module
1939 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1940 echo "configure:1941: checking whether to build Python modules" >&5
1941 # Check whether --with-python was given
1942 if test x"${with_python+set}" = xset; then
1943 case $with_python in
1951 withval=$with_python
1952 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1959 echo "$ac_t""$with_python" 1>&6
1963 # Optionally build the Java/JDBC tools
1965 echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
1966 echo "configure:1967: checking whether to build Java/JDBC tools" >&5
1967 # Check whether --with-java was given
1968 if test x"${with_java+set}" = xset; then
1971 echo "$ac_t""yes" 1>&6
1973 for ac_prog in jakarta-ant ant ant.sh ant.bat
1975 # Extract the first word of "$ac_prog", so it can be a program name with args.
1976 set dummy $ac_prog; ac_word=$2
1977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1978 echo "configure:1979: checking for $ac_word" >&5
1979 if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
1980 echo $ac_n "(cached) $ac_c" 1>&6
1984 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
1987 ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
1990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1992 for ac_dir in $ac_dummy; do
1993 test -z "$ac_dir" && ac_dir=.
1994 if test -f $ac_dir/$ac_word; then
1995 ac_cv_path_ANT="$ac_dir/$ac_word"
2003 ANT="$ac_cv_path_ANT"
2004 if test -n "$ANT"; then
2005 echo "$ac_t""$ANT" 1>&6
2007 echo "$ac_t""no" 1>&6
2010 test -n "$ANT" && break
2014 echo $ac_n "checking whether $ANT works""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether $ANT works" >&5
2016 if eval "test \"`echo '$''{'pgac_cv_prog_ant_works'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2020 cat > conftest.java << EOF
2021 public class conftest {
2022 int testmethod(int a, int b) {
2028 cat > conftest.xml << EOF
2029 <project name="conftest" default="conftest">
2030 <target name="conftest">
2031 <javac srcdir="." includes="conftest.java">
2037 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
2038 { (eval echo configure:2039: \"$pgac_cmd\") 1>&5; (eval $pgac_cmd) 2>&5; }
2040 if test $? = 0 && test -f ./conftest.class ; then
2041 pgac_cv_prog_ant_works=yes
2043 echo "configure: failed java program was:" >&5
2044 cat conftest.java >&5
2045 echo "configure: failed build file was:" >&5
2046 cat conftest.xml >&5
2047 pgac_cv_prog_ant_works=no
2050 rm -f conftest* core core.* *.core
2054 echo "$ac_t""$pgac_cv_prog_ant_works" 1>&6
2056 if test "$pgac_cv_prog_ant_works" != yes; then
2057 { echo "configure: error: ant does not work" 1>&2; exit 1; }
2061 if test -z "$ANT"; then
2062 { echo "configure: error: Ant is required to build Java components" 1>&2; exit 1; }
2066 echo "$ac_t""no" 1>&6
2070 { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
2075 echo "$ac_t""no" 1>&6
2083 # Check whether --with-krb4 was given
2084 if test x"${with_krb4+set}" = xset; then
2087 krb4_prefix=/usr/athena
2095 krb4_prefix=$withval
2102 if test "$with_krb4" = yes; then
2104 echo "$ac_t""building with Kerberos 4 support" 1>&6
2105 cat >> confdefs.h <<\EOF
2110 if test -d "$krb4_prefix/include"; then
2111 INCLUDES="$INCLUDES -I$krb4_prefix/include"
2113 if test -d "$krb4_prefix/lib"; then
2114 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
2117 krb_srvtab="/etc/srvtab"
2128 # Check whether --with-krb5 was given
2129 if test x"${with_krb5+set}" = xset; then
2132 krb5_prefix=/usr/athena
2140 krb5_prefix=$withval
2147 if test "$with_krb5" = yes; then
2149 echo "$ac_t""building with Kerberos 5 support" 1>&6
2150 cat >> confdefs.h <<\EOF
2155 if test -d "$krb5_prefix/include"; then
2156 INCLUDES="$INCLUDES -I$krb5_prefix/include"
2158 if test -d "$krb5_prefix/lib"; then
2159 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
2162 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2170 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2171 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2172 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2179 # Kerberos configuration parameters
2181 # Check whether --with-krb-srvnam was given
2182 if test x"${with_krb_srvnam+set}" = xset; then
2183 case $with_krb_srvnam in
2185 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2188 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2190 esac # $with_krb_srvnam
2192 with_krb_srvnam="postgres"
2194 cat >> confdefs.h <<EOF
2195 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2203 echo $ac_n "checking whether to build with PAM support""... $ac_c" 1>&6
2204 echo "configure:2205: checking whether to build with PAM support" >&5
2205 # Check whether --with-pam was given
2206 if test x"${with_pam+set}" = xset; then
2224 if test "$with_pam" = yes; then
2226 echo "$ac_t""yes" 1>&6
2227 cat >> confdefs.h <<\EOF
2234 echo "$ac_t""no" 1>&6
2244 # Check whether --with-openssl was given
2245 if test x"${with_openssl+set}" = xset; then
2246 case $with_openssl in
2248 openssl_prefix=/usr/local/ssl
2254 withval=$with_openssl
2256 openssl_prefix=$withval
2258 esac # $with_openssl
2263 if test "$with_openssl" = yes; then
2265 echo "$ac_t""building with OpenSSL support" 1>&6
2266 cat >> confdefs.h <<\EOF
2271 if test -d "${openssl_prefix}/include" ; then
2272 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2274 if test -d "${openssl_prefix}/lib" ; then
2275 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2286 # Optionally enable the building of the ODBC driver
2290 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2291 enable_odbc=$with_odbc
2294 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether to build the ODBC driver" >&5
2296 # Check whether --enable-odbc was given
2297 if test x"${enable_odbc+set}" = xset; then
2298 case $enable_odbc in
2306 enableval=$enable_odbc
2307 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2314 echo "$ac_t""$enable_odbc" 1>&6
2318 # Allow for overriding the default location of the odbcinst.ini
2319 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2320 # Check whether --with-odbcinst was given
2321 if test x"${with_odbcinst+set}" = xset; then
2322 case $with_odbcinst in
2324 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2327 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2330 withval=$with_odbcinst
2331 odbcinst_ini_dir=$withval
2333 esac # $with_odbcinst
2335 odbcinst_ini_dir="\${sysconfdir}"
2341 # Assume system is ELF if it predefines __ELF__ as 1,
2342 # otherwise believe host_os based default.
2344 freebsd1*|freebsd2*) elf=no;;
2345 freebsd3*|freebsd4*) elf=yes;;
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2357 egrep "yes" >/dev/null 2>&1; then
2362 if test "X$elf" = "Xyes" ; then
2375 # Optionally build C++ code (i.e., libpq++)
2377 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2378 echo "configure:2379: checking whether to build C++ modules" >&5
2379 # Check whether --with-CXX was given
2380 if test x"${with_CXX+set}" = xset; then
2398 if test "$with_CXX" = yes; then
2400 echo "$ac_t""yes" 1>&6
2402 # If the user has specified CXXFLAGS in the environment, leave it
2403 # alone, else use a default.
2405 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2406 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2408 # Extract the first word of "$ac_prog", so it can be a program name with args.
2409 set dummy $ac_prog; ac_word=$2
2410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2411 echo "configure:2412: checking for $ac_word" >&5
2412 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 if test -n "$CXX"; then
2416 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2420 for ac_dir in $ac_dummy; do
2421 test -z "$ac_dir" && ac_dir=.
2422 if test -f $ac_dir/$ac_word; then
2423 ac_cv_prog_CXX="$ac_prog"
2430 CXX="$ac_cv_prog_CXX"
2431 if test -n "$CXX"; then
2432 echo "$ac_t""$CXX" 1>&6
2434 echo "$ac_t""no" 1>&6
2437 test -n "$CXX" && break
2439 test -n "$CXX" || CXX="gcc"
2442 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2443 echo "configure:2444: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2446 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2447 ac_cpp='$CXXCPP $CPPFLAGS'
2448 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2449 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2450 cross_compiling=$ac_cv_prog_cxx_cross
2452 cat > conftest.$ac_ext << EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2457 int main(){return(0);}
2459 if { (eval echo configure:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460 ac_cv_prog_cxx_works=yes
2461 # If we can't run a trivial program, we are probably using a cross compiler.
2462 if (./conftest; exit) 2>/dev/null; then
2463 ac_cv_prog_cxx_cross=no
2465 ac_cv_prog_cxx_cross=yes
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2470 ac_cv_prog_cxx_works=no
2474 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2477 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2478 cross_compiling=$ac_cv_prog_cc_cross
2480 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2481 if test $ac_cv_prog_cxx_works = no; then
2482 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2484 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2485 echo "configure:2486: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2486 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2487 cross_compiling=$ac_cv_prog_cxx_cross
2489 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2490 echo "configure:2491: checking whether we are using GNU C++" >&5
2491 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 cat > conftest.C <<EOF
2499 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2506 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2508 if test $ac_cv_prog_gxx = yes; then
2514 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2515 ac_save_CXXFLAGS="$CXXFLAGS"
2517 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2518 echo "configure:2519: checking whether ${CXX-g++} accepts -g" >&5
2519 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2522 echo 'void f(){}' > conftest.cc
2523 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2524 ac_cv_prog_cxx_g=yes
2532 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2533 if test "$ac_test_CXXFLAGS" = set; then
2534 CXXFLAGS="$ac_save_CXXFLAGS"
2535 elif test $ac_cv_prog_cxx_g = yes; then
2536 if test "$GXX" = yes; then
2542 if test "$GXX" = yes; then
2549 if test "$has_environ_CXXFLAGS" != yes; then
2550 if test "$GXX" = yes; then
2554 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2555 unixware) CXXFLAGS='-O' ;;
2560 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2561 CXXFLAGS="$CXXFLAGS -g"
2563 echo "using CXXFLAGS=$CXXFLAGS"
2565 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2566 echo "configure:2567: checking how to run the C++ preprocessor" >&5
2567 if test -z "$CXXCPP"; then
2568 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6
2572 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2573 ac_cpp='$CXXCPP $CPPFLAGS'
2574 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2575 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2576 cross_compiling=$ac_cv_prog_cxx_cross
2577 CXXCPP="${CXX-g++} -E"
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2596 ac_cv_prog_CXXCPP="$CXXCPP"
2598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2601 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2602 cross_compiling=$ac_cv_prog_cc_cross
2605 CXXCPP="$ac_cv_prog_CXXCPP"
2606 echo "$ac_t""$CXXCPP" 1>&6
2611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2612 ac_cpp='$CXXCPP $CPPFLAGS'
2613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2615 cross_compiling=$ac_cv_prog_cxx_cross
2617 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2618 echo $ac_n "checking for string""... $ac_c" 1>&6
2619 echo "configure:2620: checking for string" >&5
2620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2629 { (eval echo configure:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2631 if test -z "$ac_err"; then
2633 eval "ac_cv_header_$ac_safe=yes"
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2639 eval "ac_cv_header_$ac_safe=no"
2643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
2645 cat >> confdefs.h <<\EOF
2646 #define HAVE_CXX_STRING_HEADER 1
2650 echo "$ac_t""no" 1>&6
2654 if test x"$ac_cv_header_string" != xyes ; then
2655 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2656 echo "configure:2657: checking for class string in <string.h>" >&5
2657 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 cat > conftest.$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2671 if { (eval echo configure:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2673 pgac_cv_class_string_in_string_h=yes
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2678 pgac_cv_class_string_in_string_h=no
2683 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2685 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2686 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2691 ac_cpp='$CPP $CPPFLAGS'
2692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2694 cross_compiling=$ac_cv_prog_cc_cross
2697 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2698 echo "configure:2699: checking for namespace std in C++" >&5
2699 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2705 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2706 ac_cpp='$CXXCPP $CPPFLAGS'
2707 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2708 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2709 cross_compiling=$ac_cv_prog_cxx_cross
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2716 #ifdef HAVE_CXX_STRING_HEADER
2719 using namespace std;
2725 if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2727 pgac_cv_cxx_namespace_std=yes
2729 echo "configure: failed program was:" >&5
2730 cat conftest.$ac_ext >&5
2732 pgac_cv_cxx_namespace_std=no
2736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2737 ac_cpp='$CPP $CPPFLAGS'
2738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2740 cross_compiling=$ac_cv_prog_cc_cross
2744 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2746 if test $pgac_cv_cxx_namespace_std = yes ; then
2747 cat >> confdefs.h <<\EOF
2748 #define HAVE_NAMESPACE_STD 1
2754 echo "$ac_t""no" 1>&6
2759 CPPFLAGS="$CPPFLAGS $INCLUDES"
2760 LDFLAGS="$LDFLAGS $LIBDIRS"
2762 echo "using CPPFLAGS=$CPPFLAGS"
2763 echo "using LDFLAGS=$LDFLAGS"
2766 for ac_prog in mawk gawk nawk awk
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2771 echo "configure:2772: checking for $ac_word" >&5
2772 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 if test -n "$AWK"; then
2776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2780 for ac_dir in $ac_dummy; do
2781 test -z "$ac_dir" && ac_dir=.
2782 if test -f $ac_dir/$ac_word; then
2783 ac_cv_prog_AWK="$ac_prog"
2790 AWK="$ac_cv_prog_AWK"
2791 if test -n "$AWK"; then
2792 echo "$ac_t""$AWK" 1>&6
2794 echo "$ac_t""no" 1>&6
2797 test -n "$AWK" && break
2800 echo $ac_n "checking for flex""... $ac_c" 1>&6
2801 echo "configure:2802: checking for flex" >&5
2802 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 # Let the user override the test
2806 if test -n "$FLEX"; then
2807 pgac_cv_path_flex=$FLEX
2811 for pgac_dir in $PATH; do
2812 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2815 for pgac_prog in flex lex; do
2816 pgac_candidate="$pgac_dir/$pgac_prog"
2817 if test -f "$pgac_candidate" \
2818 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2820 echo '%%' > conftest.l
2821 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2822 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2823 pgac_broken_flex=$pgac_candidate
2827 pgac_cv_path_flex=$pgac_candidate
2835 : ${pgac_cv_path_flex=no}
2840 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2841 if test x"$pgac_cv_path_flex" = x"no"; then
2842 if test -n "$pgac_broken_flex"; then
2843 echo "configure: warning:
2844 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2845 *** should get version 2.5.4 or later." 1>&2
2848 echo "configure: warning:
2849 *** Without Flex you will not be able to build PostgreSQL from CVS or
2850 *** change any of the scanner definition files. You can obtain Flex from
2851 *** a GNU mirror site. (If you are using the official distribution of
2852 *** PostgreSQL then you do not need to worry about this because the Flex
2853 *** output is pre-generated.)" 1>&2
2856 if test x"$pgac_cv_path_flex" = x"no"; then
2859 FLEX=$pgac_cv_path_flex
2865 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2866 echo "configure:2867: checking whether ln -s works" >&5
2867 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2871 if ln -s X conftestdata 2>/dev/null
2874 ac_cv_prog_LN_S="ln -s"
2879 LN_S="$ac_cv_prog_LN_S"
2880 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2881 echo "$ac_t""yes" 1>&6
2883 echo "$ac_t""no" 1>&6
2886 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2887 if test "${with_gnu_ld+set}" = set; then
2888 withval="$with_gnu_ld"
2889 test "$withval" = no || with_gnu_ld=yes
2895 if test "$ac_cv_prog_gcc" = yes; then
2896 # Check if gcc -print-prog-name=ld gives a path.
2897 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2898 echo "configure:2899: checking for ld used by GCC" >&5
2901 # gcc leaves a trailing carriage return which upsets mingw
2902 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2904 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2907 # Accept absolute paths.
2908 [\\/]* | [A-Za-z]:[\\/]*)
2909 re_direlt='/[^/][^/]*/\.\./'
2910 # Canonicalize the path of ld
2911 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2912 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2913 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2915 test -z "$LD" && LD="$ac_prog"
2918 # If it fails, then pretend we aren't using GCC.
2922 # If it is relative, then search for the first ld in PATH.
2926 elif test "$with_gnu_ld" = yes; then
2927 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2928 echo "configure:2929: checking for GNU ld" >&5
2930 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2931 echo "configure:2932: checking for non-GNU ld" >&5
2933 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 if test -z "$LD"; then
2937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2938 for ac_dir in $PATH; do
2939 test -z "$ac_dir" && ac_dir=.
2940 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2941 ac_cv_path_LD="$ac_dir/$ac_prog"
2942 # Check to see if the program is GNU ld. I'd rather use --version,
2943 # but apparently some GNU ld's only accept -v.
2944 # Break only if it was the GNU/non-GNU ld that we prefer.
2945 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2946 test "$with_gnu_ld" != no && break
2948 test "$with_gnu_ld" != yes && break
2954 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2959 if test -n "$LD"; then
2960 echo "$ac_t""$LD" 1>&6
2962 echo "$ac_t""no" 1>&6
2964 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2965 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2966 echo "configure:2967: checking if the linker ($LD) is GNU ld" >&5
2967 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2968 echo $ac_n "(cached) $ac_c" 1>&6
2970 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2971 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2972 ac_cv_prog_gnu_ld=yes
2974 ac_cv_prog_gnu_ld=no
2978 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2979 with_gnu_ld=$ac_cv_prog_gnu_ld
2984 case $host_os in sysv5*)
2985 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2986 echo "configure:2987: checking whether ld -R works" >&5
2987 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2991 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
3000 if { (eval echo configure:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3002 pgac_cv_prog_ld_R=yes
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3007 pgac_cv_prog_ld_R=no
3010 LDFLAGS=$pgac_save_LDFLAGS
3014 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
3015 ld_R_works=$pgac_cv_prog_ld_R
3018 # Extract the first word of "ranlib", so it can be a program name with args.
3019 set dummy ranlib; ac_word=$2
3020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_word" >&5
3022 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 if test -n "$RANLIB"; then
3026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3030 for ac_dir in $ac_dummy; do
3031 test -z "$ac_dir" && ac_dir=.
3032 if test -f $ac_dir/$ac_word; then
3033 ac_cv_prog_RANLIB="ranlib"
3038 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3041 RANLIB="$ac_cv_prog_RANLIB"
3042 if test -n "$RANLIB"; then
3043 echo "$ac_t""$RANLIB" 1>&6
3045 echo "$ac_t""no" 1>&6
3048 for ac_prog in lorder
3050 # Extract the first word of "$ac_prog", so it can be a program name with args.
3051 set dummy $ac_prog; ac_word=$2
3052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3053 echo "configure:3054: checking for $ac_word" >&5
3054 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 if test -n "$LORDER"; then
3058 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3062 for ac_dir in $ac_dummy; do
3063 test -z "$ac_dir" && ac_dir=.
3064 if test -f $ac_dir/$ac_word; then
3065 ac_cv_prog_LORDER="$ac_prog"
3072 LORDER="$ac_cv_prog_LORDER"
3073 if test -n "$LORDER"; then
3074 echo "$ac_t""$LORDER" 1>&6
3076 echo "$ac_t""no" 1>&6
3079 test -n "$LORDER" && break
3082 # Extract the first word of "tar", so it can be a program name with args.
3083 set dummy tar; ac_word=$2
3084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3085 echo "configure:3086: checking for $ac_word" >&5
3086 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3091 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3094 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
3097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3099 for ac_dir in $ac_dummy; do
3100 test -z "$ac_dir" && ac_dir=.
3101 if test -f $ac_dir/$ac_word; then
3102 ac_cv_path_TAR="$ac_dir/$ac_word"
3110 TAR="$ac_cv_path_TAR"
3111 if test -n "$TAR"; then
3112 echo "$ac_t""$TAR" 1>&6
3114 echo "$ac_t""no" 1>&6
3118 for ac_prog in 'bison -y'
3120 # Extract the first word of "$ac_prog", so it can be a program name with args.
3121 set dummy $ac_prog; ac_word=$2
3122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3123 echo "configure:3124: checking for $ac_word" >&5
3124 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3127 if test -n "$YACC"; then
3128 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3132 for ac_dir in $ac_dummy; do
3133 test -z "$ac_dir" && ac_dir=.
3134 if test -f $ac_dir/$ac_word; then
3135 ac_cv_prog_YACC="$ac_prog"
3142 YACC="$ac_cv_prog_YACC"
3143 if test -n "$YACC"; then
3144 echo "$ac_t""$YACC" 1>&6
3146 echo "$ac_t""no" 1>&6
3149 test -n "$YACC" && break
3152 if test -z "$YACC"; then
3153 echo "configure: warning:
3154 *** Without Bison you will not be able to build PostgreSQL from CVS or
3155 *** change any of the parser definition files. You can obtain Bison from
3156 *** a GNU mirror site. (If you are using the official distribution of
3157 *** PostgreSQL then you do not need to worry about this because the Bison
3158 *** output is pre-generated.) To use a different yacc program (possible,
3159 *** but not recommended), set the environment variable YACC before running
3160 *** 'configure'." 1>&2
3164 if test "$with_tk" = yes; then
3165 # Extract the first word of "wish", so it can be a program name with args.
3166 set dummy wish; ac_word=$2
3167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3168 echo "configure:3169: checking for $ac_word" >&5
3169 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3170 echo $ac_n "(cached) $ac_c" 1>&6
3174 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3177 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3182 for ac_dir in $ac_dummy; do
3183 test -z "$ac_dir" && ac_dir=.
3184 if test -f $ac_dir/$ac_word; then
3185 ac_cv_path_WISH="$ac_dir/$ac_word"
3193 WISH="$ac_cv_path_WISH"
3194 if test -n "$WISH"; then
3195 echo "$ac_t""$WISH" 1>&6
3197 echo "$ac_t""no" 1>&6
3200 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3203 # Extract the first word of "perl", so it can be a program name with args.
3204 set dummy perl; ac_word=$2
3205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3206 echo "configure:3207: checking for $ac_word" >&5
3207 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3212 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3215 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3220 for ac_dir in $ac_dummy; do
3221 test -z "$ac_dir" && ac_dir=.
3222 if test -f $ac_dir/$ac_word; then
3223 ac_cv_path_PERL="$ac_dir/$ac_word"
3231 PERL="$ac_cv_path_PERL"
3232 if test -n "$PERL"; then
3233 echo "$ac_t""$PERL" 1>&6
3235 echo "$ac_t""no" 1>&6
3238 if test "$with_perl" = yes; then
3241 echo $ac_n "checking Perl installation directories""... $ac_c" 1>&6
3242 echo "configure:3243: checking Perl installation directories" >&5
3244 # These are the ones we currently need. Others can be added easily.
3245 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
3246 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
3247 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
3250 echo "$ac_t""done" 1>&6
3254 if test "$with_python" = yes; then
3255 # Extract the first word of "python", so it can be a program name with args.
3256 set dummy python; ac_word=$2
3257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3258 echo "configure:3259: checking for $ac_word" >&5
3259 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
3260 echo $ac_n "(cached) $ac_c" 1>&6
3264 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3267 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
3270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3272 for ac_dir in $ac_dummy; do
3273 test -z "$ac_dir" && ac_dir=.
3274 if test -f $ac_dir/$ac_word; then
3275 ac_cv_path_PYTHON="$ac_dir/$ac_word"
3283 PYTHON="$ac_cv_path_PYTHON"
3284 if test -n "$PYTHON"; then
3285 echo "$ac_t""$PYTHON" 1>&6
3287 echo "$ac_t""no" 1>&6
3290 if test x"$PYTHON" = x""; then
3291 { echo "configure: error: Python not found" 1>&2; exit 1; }
3295 echo $ac_n "checking Python installation directories""... $ac_c" 1>&6
3296 echo "configure:3297: checking Python installation directories" >&5
3297 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
3298 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
3299 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
3300 python_configdir="${python_execprefix}/lib/python${python_version}/config"
3301 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
3302 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
3303 python_includespec="-I${python_prefix}/include/python${python_version}"
3304 if test "$python_prefix" != "$python_execprefix"; then
3305 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
3308 # This should be enough of a message.
3309 if test "$python_prefix" != "$python_execprefix"; then
3310 echo "$ac_t""$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" 1>&6
3312 echo "$ac_t""$python_prefix/lib/python${python_version}" 1>&6
3319 echo $ac_n "checking how to link an embedded Python application""... $ac_c" 1>&6
3320 echo "configure:3321: checking how to link an embedded Python application" >&5
3322 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3323 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
3324 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
3325 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3326 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3328 pgac_tab=" " # tab character
3329 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"`
3331 echo "$ac_t""${python_libspec}" 1>&6
3342 echo $ac_n "checking for readline""... $ac_c" 1>&6
3343 echo "configure:3344: checking for readline" >&5
3345 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 pgac_cv_check_readline=no
3349 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3350 for pgac_rllib in -lreadline -ledit ; do
3351 pgac_save_LIBS=$LIBS
3352 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 /* Override any gcc2 internal prototype to avoid an error. */
3357 /* We use char because int might match the return type of a gcc2
3358 builtin and then its argument prototype would still apply. */
3365 if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3368 # NetBSD and OpenBSD have a broken linker that does not
3369 # recognize dependent libraries
3370 case $host_os in netbsd* | openbsd* )
3373 *) pgac_lib=" -lcurses" ;;
3377 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
3381 echo "configure: failed program was:" >&5
3382 cat conftest.$ac_ext >&5
3385 LIBS=$pgac_save_LIBS
3388 LIBS=$pgac_save_LIBS
3392 if test "$pgac_cv_check_readline" != no ; then
3393 cat >> confdefs.h <<\EOF
3394 #define HAVE_LIBREADLINE 1
3397 LIBS="$pgac_cv_check_readline $LIBS"
3398 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3400 echo "$ac_t""no" 1>&6
3403 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3404 echo "configure:3405: checking for library containing using_history" >&5
3405 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 ac_func_search_save_LIBS="$LIBS"
3409 ac_cv_search_using_history="no"
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* Override any gcc2 internal prototype to avoid an error. */
3414 /* We use char because int might match the return type of a gcc2
3415 builtin and then its argument prototype would still apply. */
3416 char using_history();
3422 if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3424 ac_cv_search_using_history="none required"
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3430 test "$ac_cv_search_using_history" = "no" && for i in history; do
3431 LIBS="-l$i $ac_func_search_save_LIBS"
3432 cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3435 /* Override any gcc2 internal prototype to avoid an error. */
3436 /* We use char because int might match the return type of a gcc2
3437 builtin and then its argument prototype would still apply. */
3438 char using_history();
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3446 ac_cv_search_using_history="-l$i"
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3454 LIBS="$ac_func_search_save_LIBS"
3457 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3458 if test "$ac_cv_search_using_history" != "no"; then
3459 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3460 cat >> confdefs.h <<\EOF
3461 #define HAVE_HISTORY_FUNCTIONS 1
3468 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3470 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3471 echo "configure:3472: checking for main in -lbsd" >&5
3472 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3473 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 ac_save_LIBS="$LIBS"
3478 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3486 if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3488 eval "ac_cv_lib_$ac_lib_var=yes"
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3493 eval "ac_cv_lib_$ac_lib_var=no"
3496 LIBS="$ac_save_LIBS"
3499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3501 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3502 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3503 cat >> confdefs.h <<EOF
3504 #define $ac_tr_lib 1
3510 echo "$ac_t""no" 1>&6
3514 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3515 echo "configure:3516: checking for setproctitle in -lutil" >&5
3516 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 ac_save_LIBS="$LIBS"
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 /* Override any gcc2 internal prototype to avoid an error. */
3526 /* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3528 char setproctitle();
3534 if { (eval echo configure:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3536 eval "ac_cv_lib_$ac_lib_var=yes"
3538 echo "configure: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3541 eval "ac_cv_lib_$ac_lib_var=no"
3544 LIBS="$ac_save_LIBS"
3547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3551 cat >> confdefs.h <<EOF
3552 #define $ac_tr_lib 1
3558 echo "$ac_t""no" 1>&6
3561 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3562 echo "configure:3563: checking for main in -lm" >&5
3563 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3565 echo $ac_n "(cached) $ac_c" 1>&6
3567 ac_save_LIBS="$LIBS"
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3577 if { (eval echo configure:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3579 eval "ac_cv_lib_$ac_lib_var=yes"
3581 echo "configure: failed program was:" >&5
3582 cat conftest.$ac_ext >&5
3584 eval "ac_cv_lib_$ac_lib_var=no"
3587 LIBS="$ac_save_LIBS"
3590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3593 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3594 cat >> confdefs.h <<EOF
3595 #define $ac_tr_lib 1
3601 echo "$ac_t""no" 1>&6
3604 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3605 echo "configure:3606: checking for main in -ldl" >&5
3606 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 ac_save_LIBS="$LIBS"
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3620 if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3622 eval "ac_cv_lib_$ac_lib_var=yes"
3624 echo "configure: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3627 eval "ac_cv_lib_$ac_lib_var=no"
3630 LIBS="$ac_save_LIBS"
3633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3635 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3636 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3637 cat >> confdefs.h <<EOF
3638 #define $ac_tr_lib 1
3644 echo "$ac_t""no" 1>&6
3647 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3648 echo "configure:3649: checking for main in -lsocket" >&5
3649 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 ac_save_LIBS="$LIBS"
3654 LIBS="-lsocket $LIBS"
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3665 eval "ac_cv_lib_$ac_lib_var=yes"
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3670 eval "ac_cv_lib_$ac_lib_var=no"
3673 LIBS="$ac_save_LIBS"
3676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3678 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3680 cat >> confdefs.h <<EOF
3681 #define $ac_tr_lib 1
3684 LIBS="-lsocket $LIBS"
3687 echo "$ac_t""no" 1>&6
3690 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3691 echo "configure:3692: checking for main in -lnsl" >&5
3692 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 ac_save_LIBS="$LIBS"
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3708 eval "ac_cv_lib_$ac_lib_var=yes"
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3713 eval "ac_cv_lib_$ac_lib_var=no"
3716 LIBS="$ac_save_LIBS"
3719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3720 echo "$ac_t""yes" 1>&6
3721 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3723 cat >> confdefs.h <<EOF
3724 #define $ac_tr_lib 1
3730 echo "$ac_t""no" 1>&6
3733 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3734 echo "configure:3735: checking for main in -lipc" >&5
3735 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 ac_save_LIBS="$LIBS"
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3749 if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751 eval "ac_cv_lib_$ac_lib_var=yes"
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3756 eval "ac_cv_lib_$ac_lib_var=no"
3759 LIBS="$ac_save_LIBS"
3762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3765 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3766 cat >> confdefs.h <<EOF
3767 #define $ac_tr_lib 1
3773 echo "$ac_t""no" 1>&6
3776 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3777 echo "configure:3778: checking for main in -lIPC" >&5
3778 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 ac_save_LIBS="$LIBS"
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3792 if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3794 eval "ac_cv_lib_$ac_lib_var=yes"
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3799 eval "ac_cv_lib_$ac_lib_var=no"
3802 LIBS="$ac_save_LIBS"
3805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3806 echo "$ac_t""yes" 1>&6
3807 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3809 cat >> confdefs.h <<EOF
3810 #define $ac_tr_lib 1
3816 echo "$ac_t""no" 1>&6
3819 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3820 echo "configure:3821: checking for main in -llc" >&5
3821 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 ac_save_LIBS="$LIBS"
3827 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3837 eval "ac_cv_lib_$ac_lib_var=yes"
3839 echo "configure: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3842 eval "ac_cv_lib_$ac_lib_var=no"
3845 LIBS="$ac_save_LIBS"
3848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3851 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3852 cat >> confdefs.h <<EOF
3853 #define $ac_tr_lib 1
3859 echo "$ac_t""no" 1>&6
3862 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3863 echo "configure:3864: checking for main in -ldld" >&5
3864 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3868 ac_save_LIBS="$LIBS"
3870 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure"
3872 #include "confdefs.h"
3878 if { (eval echo configure:3879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3880 eval "ac_cv_lib_$ac_lib_var=yes"
3882 echo "configure: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3885 eval "ac_cv_lib_$ac_lib_var=no"
3888 LIBS="$ac_save_LIBS"
3891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3893 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3894 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3895 cat >> confdefs.h <<EOF
3896 #define $ac_tr_lib 1
3902 echo "$ac_t""no" 1>&6
3905 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3906 echo "configure:3907: checking for main in -lld" >&5
3907 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3911 ac_save_LIBS="$LIBS"
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3921 if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3923 eval "ac_cv_lib_$ac_lib_var=yes"
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3928 eval "ac_cv_lib_$ac_lib_var=no"
3931 LIBS="$ac_save_LIBS"
3934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3935 echo "$ac_t""yes" 1>&6
3936 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3937 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3938 cat >> confdefs.h <<EOF
3939 #define $ac_tr_lib 1
3945 echo "$ac_t""no" 1>&6
3948 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3949 echo "configure:3950: checking for main in -lcompat" >&5
3950 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3951 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 ac_save_LIBS="$LIBS"
3955 LIBS="-lcompat $LIBS"
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3964 if { (eval echo configure:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3966 eval "ac_cv_lib_$ac_lib_var=yes"
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3971 eval "ac_cv_lib_$ac_lib_var=no"
3974 LIBS="$ac_save_LIBS"
3977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3978 echo "$ac_t""yes" 1>&6
3979 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3980 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3981 cat >> confdefs.h <<EOF
3982 #define $ac_tr_lib 1
3985 LIBS="-lcompat $LIBS"
3988 echo "$ac_t""no" 1>&6
3991 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3992 echo "configure:3993: checking for main in -lBSD" >&5
3993 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 ac_save_LIBS="$LIBS"
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4009 eval "ac_cv_lib_$ac_lib_var=yes"
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4014 eval "ac_cv_lib_$ac_lib_var=no"
4017 LIBS="$ac_save_LIBS"
4020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4021 echo "$ac_t""yes" 1>&6
4022 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4023 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4024 cat >> confdefs.h <<EOF
4025 #define $ac_tr_lib 1
4031 echo "$ac_t""no" 1>&6
4034 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4035 echo "configure:4036: checking for main in -lgen" >&5
4036 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
4037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4040 ac_save_LIBS="$LIBS"
4042 cat > conftest.$ac_ext <<EOF
4043 #line 4044 "configure"
4044 #include "confdefs.h"
4050 if { (eval echo configure:4051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4052 eval "ac_cv_lib_$ac_lib_var=yes"
4054 echo "configure: failed program was:" >&5
4055 cat conftest.$ac_ext >&5
4057 eval "ac_cv_lib_$ac_lib_var=no"
4060 LIBS="$ac_save_LIBS"
4063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4064 echo "$ac_t""yes" 1>&6
4065 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4066 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4067 cat >> confdefs.h <<EOF
4068 #define $ac_tr_lib 1
4074 echo "$ac_t""no" 1>&6
4077 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
4078 echo "configure:4079: checking for main in -lPW" >&5
4079 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
4080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4081 echo $ac_n "(cached) $ac_c" 1>&6
4083 ac_save_LIBS="$LIBS"
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4093 if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4095 eval "ac_cv_lib_$ac_lib_var=yes"
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4100 eval "ac_cv_lib_$ac_lib_var=no"
4103 LIBS="$ac_save_LIBS"
4106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4107 echo "$ac_t""yes" 1>&6
4108 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4110 cat >> confdefs.h <<EOF
4111 #define $ac_tr_lib 1
4117 echo "$ac_t""no" 1>&6
4120 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
4121 echo "configure:4122: checking for main in -lresolv" >&5
4122 ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
4123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4124 echo $ac_n "(cached) $ac_c" 1>&6
4126 ac_save_LIBS="$LIBS"
4127 LIBS="-lresolv $LIBS"
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4136 if { (eval echo configure:4137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4138 eval "ac_cv_lib_$ac_lib_var=yes"
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4143 eval "ac_cv_lib_$ac_lib_var=no"
4146 LIBS="$ac_save_LIBS"
4149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4150 echo "$ac_t""yes" 1>&6
4151 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4152 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4153 cat >> confdefs.h <<EOF
4154 #define $ac_tr_lib 1
4157 LIBS="-lresolv $LIBS"
4160 echo "$ac_t""no" 1>&6
4163 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
4164 echo "configure:4165: checking for main in -lunix" >&5
4165 ac_lib_var=`echo unix'_'main | sed 'y%./+-%__p_%'`
4166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 ac_save_LIBS="$LIBS"
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4179 if { (eval echo configure:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4181 eval "ac_cv_lib_$ac_lib_var=yes"
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 eval "ac_cv_lib_$ac_lib_var=no"
4189 LIBS="$ac_save_LIBS"
4192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4193 echo "$ac_t""yes" 1>&6
4194 ac_tr_lib=HAVE_LIB`echo [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4195 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4196 cat >> confdefs.h <<EOF
4197 #define $ac_tr_lib 1
4203 echo "$ac_t""no" 1>&6
4207 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4208 echo "configure:4209: checking for library containing crypt" >&5
4209 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 ac_func_search_save_LIBS="$LIBS"
4213 ac_cv_search_crypt="no"
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure"
4216 #include "confdefs.h"
4217 /* Override any gcc2 internal prototype to avoid an error. */
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228 ac_cv_search_crypt="none required"
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4234 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4235 LIBS="-l$i $ac_func_search_save_LIBS"
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4239 /* Override any gcc2 internal prototype to avoid an error. */
4240 /* We use char because int might match the return type of a gcc2
4241 builtin and then its argument prototype would still apply. */
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4250 ac_cv_search_crypt="-l$i"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4258 LIBS="$ac_func_search_save_LIBS"
4261 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4262 if test "$ac_cv_search_crypt" != "no"; then
4263 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4268 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4269 echo "configure:4270: checking for __inet_ntoa in -lbind" >&5
4270 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4272 echo $ac_n "(cached) $ac_c" 1>&6
4274 ac_save_LIBS="$LIBS"
4276 cat > conftest.$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4279 /* Override any gcc2 internal prototype to avoid an error. */
4280 /* We use char because int might match the return type of a gcc2
4281 builtin and then its argument prototype would still apply. */
4288 if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4290 eval "ac_cv_lib_$ac_lib_var=yes"
4292 echo "configure: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4295 eval "ac_cv_lib_$ac_lib_var=no"
4298 LIBS="$ac_save_LIBS"
4301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4302 echo "$ac_t""yes" 1>&6
4303 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4304 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4305 cat >> confdefs.h <<EOF
4306 #define $ac_tr_lib 1
4312 echo "$ac_t""no" 1>&6
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 egrep "z_streamp" >/dev/null 2>&1; then
4324 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4325 echo "configure:4326: checking for inflate in -lz" >&5
4326 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4330 ac_save_LIBS="$LIBS"
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4344 if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4346 eval "ac_cv_lib_$ac_lib_var=yes"
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4351 eval "ac_cv_lib_$ac_lib_var=no"
4354 LIBS="$ac_save_LIBS"
4357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4358 echo "$ac_t""yes" 1>&6
4359 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4360 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4361 cat >> confdefs.h <<EOF
4362 #define $ac_tr_lib 1
4368 echo "$ac_t""no" 1>&6
4377 if test "$with_krb4" = yes ; then
4378 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4379 echo "configure:4380: checking for des_encrypt in -ldes" >&5
4380 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 ac_save_LIBS="$LIBS"
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 /* Override any gcc2 internal prototype to avoid an error. */
4390 /* We use char because int might match the return type of a gcc2
4391 builtin and then its argument prototype would still apply. */
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4400 eval "ac_cv_lib_$ac_lib_var=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 eval "ac_cv_lib_$ac_lib_var=no"
4408 LIBS="$ac_save_LIBS"
4411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4412 echo "$ac_t""yes" 1>&6
4413 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4414 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4415 cat >> confdefs.h <<EOF
4416 #define $ac_tr_lib 1
4422 echo "$ac_t""no" 1>&6
4423 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4426 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4427 echo "configure:4428: checking for krb_sendauth in -lkrb" >&5
4428 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 ac_save_LIBS="$LIBS"
4434 cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4440 char krb_sendauth();
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4448 eval "ac_cv_lib_$ac_lib_var=yes"
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4453 eval "ac_cv_lib_$ac_lib_var=no"
4456 LIBS="$ac_save_LIBS"
4459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4461 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4463 cat >> confdefs.h <<EOF
4464 #define $ac_tr_lib 1
4470 echo "$ac_t""no" 1>&6
4471 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4476 if test "$with_krb5" = yes ; then
4477 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4478 echo "configure:4479: checking for com_err in -lcom_err" >&5
4479 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 ac_save_LIBS="$LIBS"
4484 LIBS="-lcom_err $LIBS"
4485 cat > conftest.$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4499 eval "ac_cv_lib_$ac_lib_var=yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4504 eval "ac_cv_lib_$ac_lib_var=no"
4507 LIBS="$ac_save_LIBS"
4510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4512 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4513 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4514 cat >> confdefs.h <<EOF
4515 #define $ac_tr_lib 1
4518 LIBS="-lcom_err $LIBS"
4521 echo "$ac_t""no" 1>&6
4522 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4525 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4526 echo "configure:4527: checking for krb5_encrypt in -lcrypto" >&5
4527 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 ac_save_LIBS="$LIBS"
4532 LIBS="-lcrypto $LIBS"
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4536 /* Override any gcc2 internal prototype to avoid an error. */
4537 /* We use char because int might match the return type of a gcc2
4538 builtin and then its argument prototype would still apply. */
4539 char krb5_encrypt();
4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4547 eval "ac_cv_lib_$ac_lib_var=yes"
4549 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5
4552 eval "ac_cv_lib_$ac_lib_var=no"
4555 LIBS="$ac_save_LIBS"
4558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4561 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4562 cat >> confdefs.h <<EOF
4563 #define $ac_tr_lib 1
4566 LIBS="-lcrypto $LIBS"
4569 echo "$ac_t""no" 1>&6
4570 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4571 echo "configure:4572: checking for krb5_encrypt in -lk5crypto" >&5
4572 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4576 ac_save_LIBS="$LIBS"
4577 LIBS="-lk5crypto $LIBS"
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 /* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4584 char krb5_encrypt();
4590 if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4592 eval "ac_cv_lib_$ac_lib_var=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4597 eval "ac_cv_lib_$ac_lib_var=no"
4600 LIBS="$ac_save_LIBS"
4603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4605 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4606 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4607 cat >> confdefs.h <<EOF
4608 #define $ac_tr_lib 1
4611 LIBS="-lk5crypto $LIBS"
4614 echo "$ac_t""no" 1>&6
4615 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4620 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4621 echo "configure:4622: checking for krb5_sendauth in -lkrb5" >&5
4622 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 ac_save_LIBS="$LIBS"
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4631 /* Override any gcc2 internal prototype to avoid an error. */
4632 /* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4634 char krb5_sendauth();
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4642 eval "ac_cv_lib_$ac_lib_var=yes"
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 eval "ac_cv_lib_$ac_lib_var=no"
4650 LIBS="$ac_save_LIBS"
4653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4654 echo "$ac_t""yes" 1>&6
4655 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4656 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4657 cat >> confdefs.h <<EOF
4658 #define $ac_tr_lib 1
4664 echo "$ac_t""no" 1>&6
4665 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4670 if test "$with_openssl" = yes ; then
4671 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4672 echo "configure:4673: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4673 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 ac_save_LIBS="$LIBS"
4678 LIBS="-lcrypto $LIBS"
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 /* Override any gcc2 internal prototype to avoid an error. */
4683 /* We use char because int might match the return type of a gcc2
4684 builtin and then its argument prototype would still apply. */
4685 char CRYPTO_new_ex_data();
4688 CRYPTO_new_ex_data()
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 eval "ac_cv_lib_$ac_lib_var=yes"
4695 echo "configure: failed program was:" >&5
4696 cat conftest.$ac_ext >&5
4698 eval "ac_cv_lib_$ac_lib_var=no"
4701 LIBS="$ac_save_LIBS"
4704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4707 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4708 cat >> confdefs.h <<EOF
4709 #define $ac_tr_lib 1
4712 LIBS="-lcrypto $LIBS"
4715 echo "$ac_t""no" 1>&6
4716 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4719 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4720 echo "configure:4721: checking for SSL_library_init in -lssl" >&5
4721 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4722 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4725 ac_save_LIBS="$LIBS"
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 /* Override any gcc2 internal prototype to avoid an error. */
4731 /* We use char because int might match the return type of a gcc2
4732 builtin and then its argument prototype would still apply. */
4733 char SSL_library_init();
4739 if { (eval echo configure:4740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4741 eval "ac_cv_lib_$ac_lib_var=yes"
4743 echo "configure: failed program was:" >&5
4744 cat conftest.$ac_ext >&5
4746 eval "ac_cv_lib_$ac_lib_var=no"
4749 LIBS="$ac_save_LIBS"
4752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4753 echo "$ac_t""yes" 1>&6
4754 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4755 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4756 cat >> confdefs.h <<EOF
4757 #define $ac_tr_lib 1
4763 echo "$ac_t""no" 1>&6
4764 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4769 if test "$with_pam" = yes ; then
4770 echo $ac_n "checking for pam_start in -lpam""... $ac_c" 1>&6
4771 echo "configure:4772: checking for pam_start in -lpam" >&5
4772 ac_lib_var=`echo pam'_'pam_start | sed 'y%./+-%__p_%'`
4773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4776 ac_save_LIBS="$LIBS"
4778 cat > conftest.$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4781 /* Override any gcc2 internal prototype to avoid an error. */
4782 /* We use char because int might match the return type of a gcc2
4783 builtin and then its argument prototype would still apply. */
4790 if { (eval echo configure:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4792 eval "ac_cv_lib_$ac_lib_var=yes"
4794 echo "configure: failed program was:" >&5
4795 cat conftest.$ac_ext >&5
4797 eval "ac_cv_lib_$ac_lib_var=no"
4800 LIBS="$ac_save_LIBS"
4803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4804 echo "$ac_t""yes" 1>&6
4805 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4806 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4807 cat >> confdefs.h <<EOF
4808 #define $ac_tr_lib 1
4814 echo "$ac_t""no" 1>&6
4815 { echo "configure: error: library 'pam' is required for PAM" 1>&2; exit 1; }
4820 if test "$enable_nls" = yes ; then
4823 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
4824 echo "configure:4825: checking for library containing gettext" >&5
4825 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4828 ac_func_search_save_LIBS="$LIBS"
4829 ac_cv_search_gettext="no"
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 /* Override any gcc2 internal prototype to avoid an error. */
4834 /* We use char because int might match the return type of a gcc2
4835 builtin and then its argument prototype would still apply. */
4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4844 ac_cv_search_gettext="none required"
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4850 test "$ac_cv_search_gettext" = "no" && for i in intl; do
4851 LIBS="-l$i $ac_func_search_save_LIBS"
4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4855 /* Override any gcc2 internal prototype to avoid an error. */
4856 /* We use char because int might match the return type of a gcc2
4857 builtin and then its argument prototype would still apply. */
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4866 ac_cv_search_gettext="-l$i"
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4874 LIBS="$ac_func_search_save_LIBS"
4877 echo "$ac_t""$ac_cv_search_gettext" 1>&6
4878 if test "$ac_cv_search_gettext" != "no"; then
4879 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
4882 { echo "configure: error: a gettext implementation is required for NLS" 1>&2; exit 1; }
4884 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4885 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4886 echo "configure:4887: checking for libintl.h" >&5
4887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 #include <libintl.h>
4895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4896 { (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4898 if test -z "$ac_err"; then
4900 eval "ac_cv_header_$ac_safe=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4906 eval "ac_cv_header_$ac_safe=no"
4910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4911 echo "$ac_t""yes" 1>&6
4914 echo "$ac_t""no" 1>&6
4915 { echo "configure: error: header file <libintl.h> is required for NLS" 1>&2; exit 1; }
4918 for ac_prog in msgfmt
4920 # Extract the first word of "$ac_prog", so it can be a program name with args.
4921 set dummy $ac_prog; ac_word=$2
4922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4923 echo "configure:4924: checking for $ac_word" >&5
4924 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4927 if test -n "$MSGFMT"; then
4928 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4932 for ac_dir in $ac_dummy; do
4933 test -z "$ac_dir" && ac_dir=.
4934 if test -f $ac_dir/$ac_word; then
4935 ac_cv_prog_MSGFMT="$ac_prog"
4942 MSGFMT="$ac_cv_prog_MSGFMT"
4943 if test -n "$MSGFMT"; then
4944 echo "$ac_t""$MSGFMT" 1>&6
4946 echo "$ac_t""no" 1>&6
4949 test -n "$MSGFMT" && break
4952 if test -z "$MSGFMT"; then
4953 { echo "configure: error: msgfmt is required for NLS" 1>&2; exit 1; }
4955 for ac_prog in msgmerge
4957 # Extract the first word of "$ac_prog", so it can be a program name with args.
4958 set dummy $ac_prog; ac_word=$2
4959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4960 echo "configure:4961: checking for $ac_word" >&5
4961 if eval "test \"`echo '$''{'ac_cv_prog_MSGMERGE'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 if test -n "$MSGMERGE"; then
4965 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
4967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4969 for ac_dir in $ac_dummy; do
4970 test -z "$ac_dir" && ac_dir=.
4971 if test -f $ac_dir/$ac_word; then
4972 ac_cv_prog_MSGMERGE="$ac_prog"
4979 MSGMERGE="$ac_cv_prog_MSGMERGE"
4980 if test -n "$MSGMERGE"; then
4981 echo "$ac_t""$MSGMERGE" 1>&6
4983 echo "$ac_t""no" 1>&6
4986 test -n "$MSGMERGE" && break
4989 for ac_prog in xgettext
4991 # Extract the first word of "$ac_prog", so it can be a program name with args.
4992 set dummy $ac_prog; ac_word=$2
4993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4994 echo "configure:4995: checking for $ac_word" >&5
4995 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 if test -n "$XGETTEXT"; then
4999 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
5001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5003 for ac_dir in $ac_dummy; do
5004 test -z "$ac_dir" && ac_dir=.
5005 if test -f $ac_dir/$ac_word; then
5006 ac_cv_prog_XGETTEXT="$ac_prog"
5013 XGETTEXT="$ac_cv_prog_XGETTEXT"
5014 if test -n "$XGETTEXT"; then
5015 echo "$ac_t""$XGETTEXT" 1>&6
5017 echo "$ac_t""no" 1>&6
5020 test -n "$XGETTEXT" && break
5024 # Note: share/locale is always the default, independent of $datadir
5025 localedir='${prefix}/share/locale'
5026 if test x"$prefix" = x"NONE"; then
5027 exp_localedir="$ac_default_prefix/share/locale"
5029 exp_localedir="$prefix/share/locale"
5033 cat >> confdefs.h <<EOF
5034 #define LOCALEDIR "$exp_localedir"
5043 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
5045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5047 echo "configure:5048: checking for $ac_hdr" >&5
5048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5051 cat > conftest.$ac_ext <<EOF
5052 #line 5053 "configure"
5053 #include "confdefs.h"
5056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5057 { (eval echo configure:5058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5059 if test -z "$ac_err"; then
5061 eval "ac_cv_header_$ac_safe=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 eval "ac_cv_header_$ac_safe=no"
5071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5072 echo "$ac_t""yes" 1>&6
5073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5074 cat >> confdefs.h <<EOF
5075 #define $ac_tr_hdr 1
5079 echo "$ac_t""no" 1>&6
5084 for ac_hdr in netinet/in.h
5086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5088 echo "configure:5089: checking for $ac_hdr" >&5
5089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 cat > conftest.$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5098 { (eval echo configure:5099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5099 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5100 if test -z "$ac_err"; then
5102 eval "ac_cv_header_$ac_safe=yes"
5105 echo "configure: failed program was:" >&5
5106 cat conftest.$ac_ext >&5
5108 eval "ac_cv_header_$ac_safe=no"
5112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5113 echo "$ac_t""yes" 1>&6
5114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5115 cat >> confdefs.h <<EOF
5116 #define $ac_tr_hdr 1
5120 echo "$ac_t""no" 1>&6
5124 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
5125 echo "configure:5126: checking for netinet/tcp.h" >&5
5126 cat > conftest.$ac_ext <<EOF
5127 #line 5128 "configure"
5128 #include "confdefs.h"
5130 #ifdef HAVE_NETINET_IN_H
5131 #include <netinet/in.h>
5133 #include <netinet/tcp.h>
5136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5137 { (eval echo configure:5138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5139 if test -z "$ac_err"; then
5141 cat >> confdefs.h <<\EOF
5142 #define HAVE_NETINET_TCP_H 1
5144 echo "$ac_t""yes" 1>&6
5147 echo "configure: failed program was:" >&5
5148 cat conftest.$ac_ext >&5
5150 echo "$ac_t""no" 1>&6
5154 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
5155 echo "configure:5156: checking whether string.h and strings.h may both be included" >&5
5156 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5159 cat > conftest.$ac_ext <<EOF
5160 #line 5161 "configure"
5161 #include "confdefs.h"
5163 #include <strings.h>
5166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5167 { (eval echo configure:5168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5169 if test -z "$ac_err"; then
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5175 #include <strings.h>
5178 int n = strcasecmp("a", "b");
5181 if { (eval echo configure:5182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5183 pgac_cv_header_strings_both=yes
5185 echo "configure: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5188 pgac_cv_header_strings_both=no
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5196 pgac_cv_header_strings_both=no
5201 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
5202 if test x"$pgac_cv_header_strings_both" = x"yes"; then
5203 cat >> confdefs.h <<\EOF
5204 #define STRING_H_WITH_STRINGS_H 1
5209 for ac_hdr in readline/readline.h readline.h
5211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5213 echo "configure:5214: checking for $ac_hdr" >&5
5214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5223 { (eval echo configure:5224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5225 if test -z "$ac_err"; then
5227 eval "ac_cv_header_$ac_safe=yes"
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5233 eval "ac_cv_header_$ac_safe=no"
5237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5238 echo "$ac_t""yes" 1>&6
5239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5240 cat >> confdefs.h <<EOF
5241 #define $ac_tr_hdr 1
5245 echo "$ac_t""no" 1>&6
5249 for ac_hdr in readline/history.h history.h
5251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5253 echo "configure:5254: checking for $ac_hdr" >&5
5254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5255 echo $ac_n "(cached) $ac_c" 1>&6
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5263 { (eval echo configure:5264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5265 if test -z "$ac_err"; then
5267 eval "ac_cv_header_$ac_safe=yes"
5270 echo "configure: failed program was:" >&5
5271 cat conftest.$ac_ext >&5
5273 eval "ac_cv_header_$ac_safe=no"
5277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5278 echo "$ac_t""yes" 1>&6
5279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5280 cat >> confdefs.h <<EOF
5281 #define $ac_tr_hdr 1
5285 echo "$ac_t""no" 1>&6
5290 if test "$with_krb4" = yes ; then
5291 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
5292 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
5293 echo "configure:5294: checking for krb.h" >&5
5294 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5295 echo $ac_n "(cached) $ac_c" 1>&6
5297 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5303 { (eval echo configure:5304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5305 if test -z "$ac_err"; then
5307 eval "ac_cv_header_$ac_safe=yes"
5310 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5
5313 eval "ac_cv_header_$ac_safe=no"
5317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5321 echo "$ac_t""no" 1>&6
5322 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
5327 if test "$with_krb5" = yes ; then
5328 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
5329 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
5330 echo "configure:5331: checking for krb5.h" >&5
5331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5332 echo $ac_n "(cached) $ac_c" 1>&6
5334 cat > conftest.$ac_ext <<EOF
5335 #line 5336 "configure"
5336 #include "confdefs.h"
5339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5340 { (eval echo configure:5341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5342 if test -z "$ac_err"; then
5344 eval "ac_cv_header_$ac_safe=yes"
5347 echo "configure: failed program was:" >&5
5348 cat conftest.$ac_ext >&5
5350 eval "ac_cv_header_$ac_safe=no"
5354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5355 echo "$ac_t""yes" 1>&6
5358 echo "$ac_t""no" 1>&6
5359 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
5362 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
5363 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
5364 echo "configure:5365: checking for com_err.h" >&5
5365 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 #include <com_err.h>
5373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5374 { (eval echo configure:5375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5376 if test -z "$ac_err"; then
5378 eval "ac_cv_header_$ac_safe=yes"
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5384 eval "ac_cv_header_$ac_safe=no"
5388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5389 echo "$ac_t""yes" 1>&6
5392 echo "$ac_t""no" 1>&6
5393 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
5398 if test "$with_openssl" = yes ; then
5399 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
5400 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
5401 echo "configure:5402: checking for openssl/ssl.h" >&5
5402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5403 echo $ac_n "(cached) $ac_c" 1>&6
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 #include <openssl/ssl.h>
5410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5411 { (eval echo configure:5412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5413 if test -z "$ac_err"; then
5415 eval "ac_cv_header_$ac_safe=yes"
5418 echo "configure: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5421 eval "ac_cv_header_$ac_safe=no"
5425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5426 echo "$ac_t""yes" 1>&6
5429 echo "$ac_t""no" 1>&6
5430 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
5433 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
5434 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
5435 echo "configure:5436: checking for openssl/err.h" >&5
5436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5439 cat > conftest.$ac_ext <<EOF
5440 #line 5441 "configure"
5441 #include "confdefs.h"
5442 #include <openssl/err.h>
5444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5445 { (eval echo configure:5446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5447 if test -z "$ac_err"; then
5449 eval "ac_cv_header_$ac_safe=yes"
5452 echo "configure: failed program was:" >&5
5453 cat conftest.$ac_ext >&5
5455 eval "ac_cv_header_$ac_safe=no"
5459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5460 echo "$ac_t""yes" 1>&6
5463 echo "$ac_t""no" 1>&6
5464 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
5469 if test "$with_pam" = yes ; then
5470 ac_safe=`echo "security/pam_appl.h" | sed 'y%./+-%__p_%'`
5471 echo $ac_n "checking for security/pam_appl.h""... $ac_c" 1>&6
5472 echo "configure:5473: checking for security/pam_appl.h" >&5
5473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5476 cat > conftest.$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5479 #include <security/pam_appl.h>
5481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5482 { (eval echo configure:5483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5484 if test -z "$ac_err"; then
5486 eval "ac_cv_header_$ac_safe=yes"
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5492 eval "ac_cv_header_$ac_safe=no"
5496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5497 echo "$ac_t""yes" 1>&6
5500 echo "$ac_t""no" 1>&6
5501 { echo "configure: error: header file <security/pam_appl.h> is required for PAM" 1>&2; exit 1; }
5508 ## Types, structures, compiler characteristics
5510 echo $ac_n "checking for working const""... $ac_c" 1>&6
5511 echo "configure:5512: checking for working const" >&5
5512 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5513 echo $ac_n "(cached) $ac_c" 1>&6
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5521 /* Ultrix mips cc rejects this. */
5522 typedef int charset[2]; const charset x;
5523 /* SunOS 4.1.1 cc rejects this. */
5524 char const *const *ccp;
5526 /* NEC SVR4.0.2 mips cc rejects this. */
5527 struct point {int x, y;};
5528 static struct point const zero = {0,0};
5529 /* AIX XL C 1.02.0.0 rejects this.
5530 It does not let you subtract one const X* pointer from another in an arm
5531 of an if-expression whose if-part is not a constant expression */
5532 const char *g = "string";
5533 ccp = &g + (g ? g-g : 0);
5534 /* HPUX 7.0 cc rejects these. */
5537 ccp = (char const *const *) p;
5538 { /* SCO 3.2v4 cc rejects this. */
5540 char const *s = 0 ? (char *) 0 : (char const *) 0;
5544 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5546 const int *foo = &x[0];
5549 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5550 typedef const int *iptr;
5554 { /* AIX XL C 1.02.0.0 rejects this saying
5555 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5556 struct s { int j; const int *ap[3]; };
5557 struct s *b; b->j = 5;
5559 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5565 if { (eval echo configure:5566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5569 echo "configure: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5577 echo "$ac_t""$ac_cv_c_const" 1>&6
5578 if test $ac_cv_c_const = no; then
5579 cat >> confdefs.h <<\EOF
5585 echo $ac_n "checking for inline""... $ac_c" 1>&6
5586 echo "configure:5587: checking for inline" >&5
5587 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5591 for ac_kw in inline __inline__ __inline; do
5592 cat > conftest.$ac_ext <<EOF
5593 #line 5594 "configure"
5594 #include "confdefs.h"
5600 if { (eval echo configure:5601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5602 ac_cv_c_inline=$ac_kw; break
5604 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5
5612 echo "$ac_t""$ac_cv_c_inline" 1>&6
5613 case "$ac_cv_c_inline" in
5615 no) cat >> confdefs.h <<\EOF
5619 *) cat >> confdefs.h <<EOF
5620 #define inline $ac_cv_c_inline
5627 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5628 echo "configure:5629: checking for preprocessor stringizing operator" >&5
5629 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5630 echo $ac_n "(cached) $ac_c" 1>&6
5632 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure"
5634 #include "confdefs.h"
5638 char *s = x(teststring);
5641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5642 egrep "#teststring" >/dev/null 2>&1; then
5644 ac_cv_c_stringize=no
5647 ac_cv_c_stringize=yes
5653 if test "${ac_cv_c_stringize}" = yes
5655 cat >> confdefs.h <<\EOF
5656 #define HAVE_STRINGIZE 1
5660 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5662 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5663 echo "configure:5664: checking for signed types" >&5
5664 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5665 echo $ac_n "(cached) $ac_c" 1>&6
5667 cat > conftest.$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5672 signed char c; signed short s; signed int i;
5675 if { (eval echo configure:5676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5677 pgac_cv_c_signed=yes
5679 echo "configure: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5687 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5688 if test x"$pgac_cv_c_signed" = xno ; then
5689 cat >> confdefs.h <<\EOF
5694 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5695 echo "configure:5696: checking for volatile" >&5
5696 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5697 echo $ac_n "(cached) $ac_c" 1>&6
5699 cat > conftest.$ac_ext <<EOF
5700 #line 5701 "configure"
5701 #include "confdefs.h"
5704 extern volatile int i;
5707 if { (eval echo configure:5708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5709 pgac_cv_c_volatile=yes
5711 echo "configure: failed program was:" >&5
5712 cat conftest.$ac_ext >&5
5714 pgac_cv_c_volatile=no
5719 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5720 if test x"$pgac_cv_c_volatile" = xno ; then
5721 cat >> confdefs.h <<\EOF
5726 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5727 echo "configure:5728: checking whether struct tm is in sys/time.h or time.h" >&5
5728 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5729 echo $ac_n "(cached) $ac_c" 1>&6
5731 cat > conftest.$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5734 #include <sys/types.h>
5737 struct tm *tp; tp->tm_sec;
5740 if { (eval echo configure:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5742 ac_cv_struct_tm=time.h
5744 echo "configure: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5747 ac_cv_struct_tm=sys/time.h
5752 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5753 if test $ac_cv_struct_tm = sys/time.h; then
5754 cat >> confdefs.h <<\EOF
5755 #define TM_IN_SYS_TIME 1
5760 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5761 echo "configure:5762: checking for tm_zone in struct tm" >&5
5762 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5765 cat > conftest.$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5768 #include <sys/types.h>
5769 #include <$ac_cv_struct_tm>
5771 struct tm tm; tm.tm_zone;
5774 if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5776 ac_cv_struct_tm_zone=yes
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 ac_cv_struct_tm_zone=no
5786 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5787 if test "$ac_cv_struct_tm_zone" = yes; then
5788 cat >> confdefs.h <<\EOF
5789 #define HAVE_TM_ZONE 1
5793 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5794 echo "configure:5795: checking for tzname" >&5
5795 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5796 echo $ac_n "(cached) $ac_c" 1>&6
5798 cat > conftest.$ac_ext <<EOF
5799 #line 5800 "configure"
5800 #include "confdefs.h"
5802 #ifndef tzname /* For SGI. */
5803 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5809 if { (eval echo configure:5810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5811 ac_cv_var_tzname=yes
5813 echo "configure: failed program was:" >&5
5814 cat conftest.$ac_ext >&5
5821 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5822 if test $ac_cv_var_tzname = yes; then
5823 cat >> confdefs.h <<\EOF
5824 #define HAVE_TZNAME 1
5830 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5831 echo "configure:5832: checking for union semun" >&5
5832 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 #include <sys/types.h>
5839 #include <sys/ipc.h>
5840 #include <sys/sem.h>
5845 if { (eval echo configure:5846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5847 pgac_cv_union_semun=yes
5849 echo "configure: failed program was:" >&5
5850 cat conftest.$ac_ext >&5
5852 pgac_cv_union_semun=no
5857 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5858 if test x"$pgac_cv_union_semun" = xyes ; then
5859 cat >> confdefs.h <<\EOF
5860 #define HAVE_UNION_SEMUN 1
5864 echo $ac_n "checking for struct cmsgcred""... $ac_c" 1>&6
5865 echo "configure:5866: checking for struct cmsgcred" >&5
5866 if eval "test \"`echo '$''{'pgac_cv_struct_cmsgcred'+set}'`\" = set"; then
5867 echo $ac_n "(cached) $ac_c" 1>&6
5869 cat > conftest.$ac_ext <<EOF
5870 #line 5871 "configure"
5871 #include "confdefs.h"
5872 #include <sys/param.h>
5873 #include <sys/socket.h>
5874 #include <sys/ucred.h>
5876 struct cmsgcred sockcred;
5879 if { (eval echo configure:5880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5881 pgac_cv_struct_cmsgcred=yes
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5886 pgac_cv_struct_cmsgcred=no
5891 echo "$ac_t""$pgac_cv_struct_cmsgcred" 1>&6
5892 if test x"$pgac_cv_struct_cmsgcred" = xyes ; then
5893 cat >> confdefs.h <<\EOF
5894 #define HAVE_STRUCT_CMSGCRED 1
5898 echo $ac_n "checking for struct fcred""... $ac_c" 1>&6
5899 echo "configure:5900: checking for struct fcred" >&5
5900 if eval "test \"`echo '$''{'pgac_cv_struct_fcred'+set}'`\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5903 cat > conftest.$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5906 #include <sys/param.h>
5907 #include <sys/socket.h>
5908 #include <sys/ucred.h>
5910 struct fcred sockcred;
5913 if { (eval echo configure:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5915 pgac_cv_struct_fcred=yes
5917 echo "configure: failed program was:" >&5
5918 cat conftest.$ac_ext >&5
5920 pgac_cv_struct_fcred=no
5925 echo "$ac_t""$pgac_cv_struct_fcred" 1>&6
5926 if test x"$pgac_cv_struct_fcred" = xyes ; then
5927 cat >> confdefs.h <<\EOF
5928 #define HAVE_STRUCT_FCRED 1
5932 echo $ac_n "checking for struct sockcred""... $ac_c" 1>&6
5933 echo "configure:5934: checking for struct sockcred" >&5
5934 if eval "test \"`echo '$''{'pgac_cv_struct_sockcred'+set}'`\" = set"; then
5935 echo $ac_n "(cached) $ac_c" 1>&6
5937 cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5940 #include <sys/param.h>
5941 #include <sys/socket.h>
5942 #include <sys/ucred.h>
5944 struct sockcred sockcred;
5947 if { (eval echo configure:5948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5949 pgac_cv_struct_sockcred=yes
5951 echo "configure: failed program was:" >&5
5952 cat conftest.$ac_ext >&5
5954 pgac_cv_struct_sockcred=no
5959 echo "$ac_t""$pgac_cv_struct_sockcred" 1>&6
5960 if test x"$pgac_cv_struct_sockcred" = xyes ; then
5961 cat >> confdefs.h <<\EOF
5962 #define HAVE_STRUCT_SOCKCRED 1
5966 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5967 echo "configure:5968: checking for struct sockaddr_un" >&5
5968 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5969 echo $ac_n "(cached) $ac_c" 1>&6
5971 cat > conftest.$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5974 #include <sys/types.h>
5975 #ifdef HAVE_SYS_UN_H
5979 struct sockaddr_un un;
5982 if { (eval echo configure:5983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5984 pgac_cv_struct_sockaddr_un=yes
5986 echo "configure: failed program was:" >&5
5987 cat conftest.$ac_ext >&5
5989 pgac_cv_struct_sockaddr_un=no
5994 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
5995 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
5996 cat >> confdefs.h <<\EOF
5997 #define HAVE_STRUCT_SOCKADDR_UN 1
6003 ## Functions, global variables
6005 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
6006 echo "configure:6007: checking for int timezone" >&5
6007 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+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"
6016 res = timezone / 60;
6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6021 pgac_cv_var_int_timezone=yes
6023 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5
6026 pgac_cv_var_int_timezone=no
6031 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
6032 if test x"$pgac_cv_var_int_timezone" = xyes ; then
6033 cat >> confdefs.h <<\EOF
6034 #define HAVE_INT_TIMEZONE
6038 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
6039 echo "configure:6040: checking types of arguments for accept()" >&5
6040 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6043 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6049 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
6050 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
6051 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
6052 cat > conftest.$ac_ext <<EOF
6053 #line 6054 "configure"
6054 #include "confdefs.h"
6055 #ifdef HAVE_SYS_TYPES_H
6056 #include <sys/types.h>
6058 #ifdef HAVE_SYS_SOCKET_H
6059 #include <sys/socket.h>
6061 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
6066 if { (eval echo configure:6067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6068 ac_not_found=no; break 3
6070 echo "configure: failed program was:" >&5
6071 cat conftest.$ac_ext >&5
6079 if test "$ac_not_found" = yes; then
6080 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
6082 if test "$ac_cv_func_accept_arg3" = "void"; then
6083 ac_cv_func_accept_arg3=int
6091 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
6092 cat >> confdefs.h <<EOF
6093 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
6096 cat >> confdefs.h <<EOF
6097 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
6100 cat >> confdefs.h <<EOF
6101 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
6105 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
6106 echo "configure:6107: checking whether gettimeofday takes only one argument" >&5
6107 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 #include <sys/time.h>
6116 struct timezone *tzp;
6117 gettimeofday(tp,tzp);
6120 if { (eval echo configure:6121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6122 pgac_cv_func_gettimeofday_1arg=no
6124 echo "configure: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6127 pgac_cv_func_gettimeofday_1arg=yes
6132 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
6133 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
6134 cat >> confdefs.h <<\EOF
6135 #define GETTIMEOFDAY_1ARG
6140 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
6142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6143 echo "configure:6144: checking for $ac_func" >&5
6144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6145 echo $ac_n "(cached) $ac_c" 1>&6
6147 cat > conftest.$ac_ext <<EOF
6148 #line 6149 "configure"
6149 #include "confdefs.h"
6150 /* System header to define __stub macros and hopefully few prototypes,
6151 which can conflict with char $ac_func(); below. */
6153 /* Override any gcc2 internal prototype to avoid an error. */
6154 /* We use char because int might match the return type of a gcc2
6155 builtin and then its argument prototype would still apply. */
6160 /* The GNU C library defines this for functions which it implements
6161 to always fail with ENOSYS. Some functions are actually named
6162 something starting with __ and the normal name is an alias. */
6163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6171 if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6173 eval "ac_cv_func_$ac_func=yes"
6175 echo "configure: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
6178 eval "ac_cv_func_$ac_func=no"
6183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6184 echo "$ac_t""yes" 1>&6
6185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6186 cat >> confdefs.h <<EOF
6187 #define $ac_tr_func 1
6191 echo "$ac_t""no" 1>&6
6196 cat > conftest.$ac_ext <<EOF
6197 #line 6198 "configure"
6198 #include "confdefs.h"
6201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6202 egrep "fdatasync" >/dev/null 2>&1; then
6204 cat >> confdefs.h <<\EOF
6205 #define HAVE_FDATASYNC_DECL 1
6212 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
6213 echo "configure:6214: checking for PS_STRINGS" >&5
6214 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
6215 echo $ac_n "(cached) $ac_c" 1>&6
6217 cat > conftest.$ac_ext <<EOF
6218 #line 6219 "configure"
6219 #include "confdefs.h"
6220 #include <machine/vmparam.h>
6221 #include <sys/exec.h>
6224 PS_STRINGS->ps_nargvstr = 1;
6225 PS_STRINGS->ps_argvstr = "foo";
6228 if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6230 pgac_cv_var_PS_STRINGS=yes
6232 echo "configure: failed program was:" >&5
6233 cat conftest.$ac_ext >&5
6235 pgac_cv_var_PS_STRINGS=no
6240 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
6241 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
6242 cat >> confdefs.h <<\EOF
6243 #define HAVE_PS_STRINGS
6249 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
6250 echo "configure:6251: checking for snprintf" >&5
6251 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6254 cat > conftest.$ac_ext <<EOF
6255 #line 6256 "configure"
6256 #include "confdefs.h"
6257 /* System header to define __stub macros and hopefully few prototypes,
6258 which can conflict with char snprintf(); below. */
6260 /* Override any gcc2 internal prototype to avoid an error. */
6261 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */
6267 /* The GNU C library defines this for functions which it implements
6268 to always fail with ENOSYS. Some functions are actually named
6269 something starting with __ and the normal name is an alias. */
6270 #if defined (__stub_snprintf) || defined (__stub___snprintf)
6278 if { (eval echo configure:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6280 eval "ac_cv_func_snprintf=yes"
6282 echo "configure: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6285 eval "ac_cv_func_snprintf=no"
6290 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6292 cat >> confdefs.h <<\EOF
6293 #define HAVE_SNPRINTF 1
6297 echo "$ac_t""no" 1>&6
6298 SNPRINTF='snprintf.o'
6301 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
6302 echo "configure:6303: checking for vsnprintf" >&5
6303 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
6304 echo $ac_n "(cached) $ac_c" 1>&6
6306 cat > conftest.$ac_ext <<EOF
6307 #line 6308 "configure"
6308 #include "confdefs.h"
6309 /* System header to define __stub macros and hopefully few prototypes,
6310 which can conflict with char vsnprintf(); below. */
6312 /* Override any gcc2 internal prototype to avoid an error. */
6313 /* We use char because int might match the return type of a gcc2
6314 builtin and then its argument prototype would still apply. */
6319 /* The GNU C library defines this for functions which it implements
6320 to always fail with ENOSYS. Some functions are actually named
6321 something starting with __ and the normal name is an alias. */
6322 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
6330 if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6332 eval "ac_cv_func_vsnprintf=yes"
6334 echo "configure: failed program was:" >&5
6335 cat conftest.$ac_ext >&5
6337 eval "ac_cv_func_vsnprintf=no"
6342 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
6343 echo "$ac_t""yes" 1>&6
6344 cat >> confdefs.h <<\EOF
6345 #define HAVE_VSNPRINTF 1
6349 echo "$ac_t""no" 1>&6
6350 SNPRINTF='snprintf.o'
6354 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure"
6356 #include "confdefs.h"
6359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6360 egrep "snprintf" >/dev/null 2>&1; then
6362 cat >> confdefs.h <<\EOF
6363 #define HAVE_SNPRINTF_DECL 1
6369 cat > conftest.$ac_ext <<EOF
6370 #line 6371 "configure"
6371 #include "confdefs.h"
6374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6375 egrep "vsnprintf" >/dev/null 2>&1; then
6377 cat >> confdefs.h <<\EOF
6378 #define HAVE_VSNPRINTF_DECL 1
6385 # do this one the hard way in case isinf() is a macro
6386 echo $ac_n "checking for isinf""... $ac_c" 1>&6
6387 echo "configure:6388: checking for isinf" >&5
6388 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
6389 echo $ac_n "(cached) $ac_c" 1>&6
6391 cat > conftest.$ac_ext <<EOF
6392 #line 6393 "configure"
6393 #include "confdefs.h"
6397 double x = 0.0; int res = isinf(x);
6400 if { (eval echo configure:6401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6402 ac_cv_func_isinf=yes
6404 echo "configure: failed program was:" >&5
6405 cat conftest.$ac_ext >&5
6412 echo "$ac_t""$ac_cv_func_isinf" 1>&6
6414 if test $ac_cv_func_isinf = yes ; then
6415 cat >> confdefs.h <<\EOF
6416 #define HAVE_ISINF 1
6422 # Look for a way to implement a substitute for isinf()
6423 for ac_func in fpclass fp_class fp_class_d class
6425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6426 echo "configure:6427: checking for $ac_func" >&5
6427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6428 echo $ac_n "(cached) $ac_c" 1>&6
6430 cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6433 /* System header to define __stub macros and hopefully few prototypes,
6434 which can conflict with char $ac_func(); below. */
6436 /* Override any gcc2 internal prototype to avoid an error. */
6437 /* We use char because int might match the return type of a gcc2
6438 builtin and then its argument prototype would still apply. */
6443 /* The GNU C library defines this for functions which it implements
6444 to always fail with ENOSYS. Some functions are actually named
6445 something starting with __ and the normal name is an alias. */
6446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6454 if { (eval echo configure:6455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6456 eval "ac_cv_func_$ac_func=yes"
6458 echo "configure: failed program was:" >&5
6459 cat conftest.$ac_ext >&5
6461 eval "ac_cv_func_$ac_func=no"
6466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6467 echo "$ac_t""yes" 1>&6
6468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6469 cat >> confdefs.h <<EOF
6470 #define $ac_tr_func 1
6474 echo "$ac_t""no" 1>&6
6481 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
6482 echo "configure:6483: checking for getrusage" >&5
6483 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
6484 echo $ac_n "(cached) $ac_c" 1>&6
6486 cat > conftest.$ac_ext <<EOF
6487 #line 6488 "configure"
6488 #include "confdefs.h"
6489 /* System header to define __stub macros and hopefully few prototypes,
6490 which can conflict with char getrusage(); below. */
6492 /* Override any gcc2 internal prototype to avoid an error. */
6493 /* We use char because int might match the return type of a gcc2
6494 builtin and then its argument prototype would still apply. */
6499 /* The GNU C library defines this for functions which it implements
6500 to always fail with ENOSYS. Some functions are actually named
6501 something starting with __ and the normal name is an alias. */
6502 #if defined (__stub_getrusage) || defined (__stub___getrusage)
6510 if { (eval echo configure:6511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6512 eval "ac_cv_func_getrusage=yes"
6514 echo "configure: failed program was:" >&5
6515 cat conftest.$ac_ext >&5
6517 eval "ac_cv_func_getrusage=no"
6522 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
6523 echo "$ac_t""yes" 1>&6
6524 cat >> confdefs.h <<\EOF
6525 #define HAVE_GETRUSAGE 1
6529 echo "$ac_t""no" 1>&6
6530 GETRUSAGE='getrusage.o'
6534 echo $ac_n "checking for srandom""... $ac_c" 1>&6
6535 echo "configure:6536: checking for srandom" >&5
6536 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
6537 echo $ac_n "(cached) $ac_c" 1>&6
6539 cat > conftest.$ac_ext <<EOF
6540 #line 6541 "configure"
6541 #include "confdefs.h"
6542 /* System header to define __stub macros and hopefully few prototypes,
6543 which can conflict with char srandom(); below. */
6545 /* Override any gcc2 internal prototype to avoid an error. */
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6552 /* The GNU C library defines this for functions which it implements
6553 to always fail with ENOSYS. Some functions are actually named
6554 something starting with __ and the normal name is an alias. */
6555 #if defined (__stub_srandom) || defined (__stub___srandom)
6563 if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6565 eval "ac_cv_func_srandom=yes"
6567 echo "configure: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6570 eval "ac_cv_func_srandom=no"
6575 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
6576 echo "$ac_t""yes" 1>&6
6577 cat >> confdefs.h <<\EOF
6578 #define HAVE_SRANDOM 1
6582 echo "$ac_t""no" 1>&6
6587 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
6588 echo "configure:6589: checking for gethostname" >&5
6589 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
6590 echo $ac_n "(cached) $ac_c" 1>&6
6592 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure"
6594 #include "confdefs.h"
6595 /* System header to define __stub macros and hopefully few prototypes,
6596 which can conflict with char gethostname(); below. */
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6605 /* The GNU C library defines this for functions which it implements
6606 to always fail with ENOSYS. Some functions are actually named
6607 something starting with __ and the normal name is an alias. */
6608 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 eval "ac_cv_func_gethostname=yes"
6620 echo "configure: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6623 eval "ac_cv_func_gethostname=no"
6628 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6629 echo "$ac_t""yes" 1>&6
6630 cat >> confdefs.h <<\EOF
6631 #define HAVE_GETHOSTNAME 1
6635 echo "$ac_t""no" 1>&6
6636 GETHOSTNAME='gethostname.o'
6640 echo $ac_n "checking for random""... $ac_c" 1>&6
6641 echo "configure:6642: checking for random" >&5
6642 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 /* System header to define __stub macros and hopefully few prototypes,
6649 which can conflict with char random(); below. */
6651 /* Override any gcc2 internal prototype to avoid an error. */
6652 /* We use char because int might match the return type of a gcc2
6653 builtin and then its argument prototype would still apply. */
6658 /* The GNU C library defines this for functions which it implements
6659 to always fail with ENOSYS. Some functions are actually named
6660 something starting with __ and the normal name is an alias. */
6661 #if defined (__stub_random) || defined (__stub___random)
6669 if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6671 eval "ac_cv_func_random=yes"
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6676 eval "ac_cv_func_random=no"
6681 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6682 echo "$ac_t""yes" 1>&6
6683 cat >> confdefs.h <<\EOF
6684 #define HAVE_RANDOM 1
6688 echo "$ac_t""no" 1>&6
6689 MISSING_RANDOM='random.o'
6693 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6694 echo "configure:6695: checking for inet_aton" >&5
6695 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6696 echo $ac_n "(cached) $ac_c" 1>&6
6698 cat > conftest.$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6701 /* System header to define __stub macros and hopefully few prototypes,
6702 which can conflict with char inet_aton(); below. */
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */
6711 /* The GNU C library defines this for functions which it implements
6712 to always fail with ENOSYS. Some functions are actually named
6713 something starting with __ and the normal name is an alias. */
6714 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6722 if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6724 eval "ac_cv_func_inet_aton=yes"
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6729 eval "ac_cv_func_inet_aton=no"
6734 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6735 echo "$ac_t""yes" 1>&6
6736 cat >> confdefs.h <<\EOF
6737 #define HAVE_INET_ATON 1
6741 echo "$ac_t""no" 1>&6
6742 INET_ATON='inet_aton.o'
6746 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6747 echo "configure:6748: checking for strerror" >&5
6748 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6751 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6754 /* System header to define __stub macros and hopefully few prototypes,
6755 which can conflict with char strerror(); below. */
6757 /* Override any gcc2 internal prototype to avoid an error. */
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6764 /* The GNU C library defines this for functions which it implements
6765 to always fail with ENOSYS. Some functions are actually named
6766 something starting with __ and the normal name is an alias. */
6767 #if defined (__stub_strerror) || defined (__stub___strerror)
6775 if { (eval echo configure:6776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6777 eval "ac_cv_func_strerror=yes"
6779 echo "configure: failed program was:" >&5
6780 cat conftest.$ac_ext >&5
6782 eval "ac_cv_func_strerror=no"
6787 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6788 echo "$ac_t""yes" 1>&6
6789 cat >> confdefs.h <<\EOF
6790 #define HAVE_STRERROR 1
6794 echo "$ac_t""no" 1>&6
6795 STRERROR='strerror.o'
6799 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6800 echo "configure:6801: checking for strdup" >&5
6801 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6804 cat > conftest.$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6807 /* System header to define __stub macros and hopefully few prototypes,
6808 which can conflict with char strdup(); below. */
6810 /* Override any gcc2 internal prototype to avoid an error. */
6811 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6817 /* The GNU C library defines this for functions which it implements
6818 to always fail with ENOSYS. Some functions are actually named
6819 something starting with __ and the normal name is an alias. */
6820 #if defined (__stub_strdup) || defined (__stub___strdup)
6828 if { (eval echo configure:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6830 eval "ac_cv_func_strdup=yes"
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6835 eval "ac_cv_func_strdup=no"
6840 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6841 echo "$ac_t""yes" 1>&6
6842 cat >> confdefs.h <<\EOF
6843 #define HAVE_STRDUP 1
6847 echo "$ac_t""no" 1>&6
6848 STRDUP='../../utils/strdup.o'
6852 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6853 echo "configure:6854: checking for strtol" >&5
6854 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6857 cat > conftest.$ac_ext <<EOF
6858 #line 6859 "configure"
6859 #include "confdefs.h"
6860 /* System header to define __stub macros and hopefully few prototypes,
6861 which can conflict with char strtol(); below. */
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6870 /* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
6873 #if defined (__stub_strtol) || defined (__stub___strtol)
6881 if { (eval echo configure:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6883 eval "ac_cv_func_strtol=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 eval "ac_cv_func_strtol=no"
6893 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 cat >> confdefs.h <<\EOF
6896 #define HAVE_STRTOL 1
6900 echo "$ac_t""no" 1>&6
6905 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6906 echo "configure:6907: checking for strtoul" >&5
6907 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6908 echo $ac_n "(cached) $ac_c" 1>&6
6910 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6913 /* System header to define __stub macros and hopefully few prototypes,
6914 which can conflict with char strtoul(); below. */
6916 /* Override any gcc2 internal prototype to avoid an error. */
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6923 /* The GNU C library defines this for functions which it implements
6924 to always fail with ENOSYS. Some functions are actually named
6925 something starting with __ and the normal name is an alias. */
6926 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6936 eval "ac_cv_func_strtoul=yes"
6938 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6941 eval "ac_cv_func_strtoul=no"
6946 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6947 echo "$ac_t""yes" 1>&6
6948 cat >> confdefs.h <<\EOF
6949 #define HAVE_STRTOUL 1
6953 echo "$ac_t""no" 1>&6
6958 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6959 echo "configure:6960: checking for strcasecmp" >&5
6960 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6961 echo $ac_n "(cached) $ac_c" 1>&6
6963 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure"
6965 #include "confdefs.h"
6966 /* System header to define __stub macros and hopefully few prototypes,
6967 which can conflict with char strcasecmp(); below. */
6969 /* Override any gcc2 internal prototype to avoid an error. */
6970 /* We use char because int might match the return type of a gcc2
6971 builtin and then its argument prototype would still apply. */
6976 /* The GNU C library defines this for functions which it implements
6977 to always fail with ENOSYS. Some functions are actually named
6978 something starting with __ and the normal name is an alias. */
6979 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6987 if { (eval echo configure:6988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6989 eval "ac_cv_func_strcasecmp=yes"
6991 echo "configure: failed program was:" >&5
6992 cat conftest.$ac_ext >&5
6994 eval "ac_cv_func_strcasecmp=no"
6999 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
7000 echo "$ac_t""yes" 1>&6
7001 cat >> confdefs.h <<\EOF
7002 #define HAVE_STRCASECMP 1
7006 echo "$ac_t""no" 1>&6
7007 STRCASECMP='strcasecmp.o'
7011 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
7012 echo "configure:7013: checking for cbrt" >&5
7013 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
7014 echo $ac_n "(cached) $ac_c" 1>&6
7016 cat > conftest.$ac_ext <<EOF
7017 #line 7018 "configure"
7018 #include "confdefs.h"
7019 /* System header to define __stub macros and hopefully few prototypes,
7020 which can conflict with char cbrt(); below. */
7022 /* Override any gcc2 internal prototype to avoid an error. */
7023 /* We use char because int might match the return type of a gcc2
7024 builtin and then its argument prototype would still apply. */
7029 /* The GNU C library defines this for functions which it implements
7030 to always fail with ENOSYS. Some functions are actually named
7031 something starting with __ and the normal name is an alias. */
7032 #if defined (__stub_cbrt) || defined (__stub___cbrt)
7040 if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7042 eval "ac_cv_func_cbrt=yes"
7044 echo "configure: failed program was:" >&5
7045 cat conftest.$ac_ext >&5
7047 eval "ac_cv_func_cbrt=no"
7052 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
7053 echo "$ac_t""yes" 1>&6
7054 cat >> confdefs.h <<\EOF
7059 echo "$ac_t""no" 1>&6
7060 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
7061 echo "configure:7062: checking for cbrt in -lm" >&5
7062 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
7063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 ac_save_LIBS="$LIBS"
7068 cat > conftest.$ac_ext <<EOF
7069 #line 7070 "configure"
7070 #include "confdefs.h"
7071 /* Override any gcc2 internal prototype to avoid an error. */
7072 /* We use char because int might match the return type of a gcc2
7073 builtin and then its argument prototype would still apply. */
7080 if { (eval echo configure:7081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7082 eval "ac_cv_lib_$ac_lib_var=yes"
7084 echo "configure: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7087 eval "ac_cv_lib_$ac_lib_var=no"
7090 LIBS="$ac_save_LIBS"
7093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7094 echo "$ac_t""yes" 1>&6
7095 cat >> confdefs.h <<\EOF
7100 echo "$ac_t""no" 1>&6
7106 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
7107 # this hackery with HPUXMATHLIB allows us to cope.
7111 if [ -r /lib/pa1.1/libm.a ] ; then
7112 HPUXMATHLIB="-L /lib/pa1.1 -lm"
7117 echo $ac_n "checking for rint""... $ac_c" 1>&6
7118 echo "configure:7119: checking for rint" >&5
7119 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
7120 echo $ac_n "(cached) $ac_c" 1>&6
7122 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 /* System header to define __stub macros and hopefully few prototypes,
7126 which can conflict with char rint(); below. */
7128 /* Override any gcc2 internal prototype to avoid an error. */
7129 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7135 /* The GNU C library defines this for functions which it implements
7136 to always fail with ENOSYS. Some functions are actually named
7137 something starting with __ and the normal name is an alias. */
7138 #if defined (__stub_rint) || defined (__stub___rint)
7146 if { (eval echo configure:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7148 eval "ac_cv_func_rint=yes"
7150 echo "configure: failed program was:" >&5
7151 cat conftest.$ac_ext >&5
7153 eval "ac_cv_func_rint=no"
7158 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
7159 echo "$ac_t""yes" 1>&6
7160 cat >> confdefs.h <<\EOF
7165 echo "$ac_t""no" 1>&6
7166 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
7167 echo "configure:7168: checking for rint in -lm" >&5
7168 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
7169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7172 ac_save_LIBS="$LIBS"
7173 LIBS="-lm $HPUXMATHLIB $LIBS"
7174 cat > conftest.$ac_ext <<EOF
7175 #line 7176 "configure"
7176 #include "confdefs.h"
7177 /* Override any gcc2 internal prototype to avoid an error. */
7178 /* We use char because int might match the return type of a gcc2
7179 builtin and then its argument prototype would still apply. */
7186 if { (eval echo configure:7187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7188 eval "ac_cv_lib_$ac_lib_var=yes"
7190 echo "configure: failed program was:" >&5
7191 cat conftest.$ac_ext >&5
7193 eval "ac_cv_lib_$ac_lib_var=no"
7196 LIBS="$ac_save_LIBS"
7199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7200 echo "$ac_t""yes" 1>&6
7201 cat >> confdefs.h <<\EOF
7206 echo "$ac_t""no" 1>&6
7213 # Readline versions < 2.1 don't have rl_completion_append_character
7214 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
7215 echo "configure:7216: checking for rl_completion_append_character" >&5
7216 cat > conftest.$ac_ext <<EOF
7217 #line 7218 "configure"
7218 #include "confdefs.h"
7220 #ifdef HAVE_READLINE_READLINE_H
7221 # include <readline/readline.h>
7222 #elif defined(HAVE_READLINE_H)
7223 # include <readline.h>
7227 rl_completion_append_character = 'x';
7230 if { (eval echo configure:7231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7232 echo "$ac_t""yes" 1>&6
7233 cat >> confdefs.h <<\EOF
7234 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
7238 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7241 echo "$ac_t""no" 1>&6
7245 for ac_func in rl_completion_matches rl_filename_completion_function
7247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7248 echo "configure:7249: checking for $ac_func" >&5
7249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7250 echo $ac_n "(cached) $ac_c" 1>&6
7252 cat > conftest.$ac_ext <<EOF
7253 #line 7254 "configure"
7254 #include "confdefs.h"
7255 /* System header to define __stub macros and hopefully few prototypes,
7256 which can conflict with char $ac_func(); below. */
7258 /* Override any gcc2 internal prototype to avoid an error. */
7259 /* We use char because int might match the return type of a gcc2
7260 builtin and then its argument prototype would still apply. */
7265 /* The GNU C library defines this for functions which it implements
7266 to always fail with ENOSYS. Some functions are actually named
7267 something starting with __ and the normal name is an alias. */
7268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7276 if { (eval echo configure:7277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7278 eval "ac_cv_func_$ac_func=yes"
7280 echo "configure: failed program was:" >&5
7281 cat conftest.$ac_ext >&5
7283 eval "ac_cv_func_$ac_func=no"
7288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7289 echo "$ac_t""yes" 1>&6
7290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7291 cat >> confdefs.h <<EOF
7292 #define $ac_tr_func 1
7296 echo "$ac_t""no" 1>&6
7302 echo $ac_n "checking for finite""... $ac_c" 1>&6
7303 echo "configure:7304: checking for finite" >&5
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure"
7306 #include "confdefs.h"
7309 int dummy=finite(1.0);
7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7314 cat >> confdefs.h <<\EOF
7315 #define HAVE_FINITE 1
7317 echo "$ac_t""yes" 1>&6
7319 echo "configure: failed program was:" >&5
7320 cat conftest.$ac_ext >&5
7322 echo "$ac_t""no" 1>&6
7326 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7327 echo "configure:7328: checking for sigsetjmp" >&5
7328 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7333 sigjmp_buf x; sigsetjmp(x, 1);
7336 if { (eval echo configure:7337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7338 cat >> confdefs.h <<\EOF
7339 #define HAVE_SIGSETJMP 1
7341 echo "$ac_t""yes" 1>&6
7343 echo "configure: failed program was:" >&5
7344 cat conftest.$ac_ext >&5
7346 echo "$ac_t""no" 1>&6
7351 # Check whether --enable-syslog was given
7352 if test x"${enable_syslog+set}" = xset; then
7353 case $enable_syslog in
7355 echo $ac_n "checking for syslog""... $ac_c" 1>&6
7356 echo "configure:7357: checking for syslog" >&5
7357 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
7358 echo $ac_n "(cached) $ac_c" 1>&6
7360 cat > conftest.$ac_ext <<EOF
7361 #line 7362 "configure"
7362 #include "confdefs.h"
7363 /* System header to define __stub macros and hopefully few prototypes,
7364 which can conflict with char syslog(); below. */
7366 /* Override any gcc2 internal prototype to avoid an error. */
7367 /* We use char because int might match the return type of a gcc2
7368 builtin and then its argument prototype would still apply. */
7373 /* The GNU C library defines this for functions which it implements
7374 to always fail with ENOSYS. Some functions are actually named
7375 something starting with __ and the normal name is an alias. */
7376 #if defined (__stub_syslog) || defined (__stub___syslog)
7384 if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7386 eval "ac_cv_func_syslog=yes"
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7391 eval "ac_cv_func_syslog=no"
7396 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
7397 echo "$ac_t""yes" 1>&6
7398 cat >> confdefs.h <<\EOF
7399 #define ENABLE_SYSLOG 1
7403 echo "$ac_t""no" 1>&6
7404 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
7412 enableval=$enable_syslog
7413 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
7415 esac # $enable_syslog
7422 echo $ac_n "checking for optreset""... $ac_c" 1>&6
7423 echo "configure:7424: checking for optreset" >&5
7424 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7427 cat > conftest.$ac_ext <<EOF
7428 #line 7429 "configure"
7429 #include "confdefs.h"
7432 extern int optreset; optreset = 1;
7435 if { (eval echo configure:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437 pgac_cv_var_int_optreset=yes
7439 echo "configure: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7442 pgac_cv_var_int_optreset=no
7447 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
7448 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
7449 cat >> confdefs.h <<\EOF
7450 #define HAVE_INT_OPTRESET 1
7456 # This test makes sure that run tests work at all. Sometimes a shared
7457 # library is found by the linker, but the runtime linker can't find it.
7458 # This check should come after all modifications of compiler or linker
7459 # variables, and before any other run tests.
7460 echo $ac_n "checking test program""... $ac_c" 1>&6
7461 echo "configure:7462: checking test program" >&5
7462 if test "$cross_compiling" = yes; then
7463 echo "$ac_t""cross-compiling" 1>&6
7465 cat > conftest.$ac_ext <<EOF
7466 #line 7467 "configure"
7467 #include "confdefs.h"
7468 int main() { return 0; }
7470 if { (eval echo configure:7471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7472 echo "$ac_t""ok" 1>&6
7474 echo "configure: failed program was:" >&5
7475 cat conftest.$ac_ext >&5
7477 echo "$ac_t""failed" 1>&6
7478 { echo "configure: error:
7479 *** Could not execute a simple test program. This may be a problem
7480 *** related to locating shared libraries. Check the file 'config.log'
7481 *** for the exact reason." 1>&2; exit 1; }
7489 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
7490 echo "configure:7491: checking whether long int is 64 bits" >&5
7491 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
7492 echo $ac_n "(cached) $ac_c" 1>&6
7494 if test "$cross_compiling" = yes; then
7495 pgac_cv_type_long_int_64=no
7496 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7498 cat > conftest.$ac_ext <<EOF
7499 #line 7500 "configure"
7500 #include "confdefs.h"
7501 typedef long int int64;
7504 * These are globals to discourage the compiler from folding all the
7505 * arithmetic tests down to compile-time constants.
7510 int does_int64_work()
7514 if (sizeof(int64) != 8)
7515 return 0; /* definitely not the right size */
7517 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7525 exit(! does_int64_work());
7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7530 pgac_cv_type_long_int_64=yes
7532 echo "configure: failed program was:" >&5
7533 cat conftest.$ac_ext >&5
7535 pgac_cv_type_long_int_64=no
7542 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
7544 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
7545 if test x"$pgac_cv_type_long_int_64" = xyes ; then
7546 cat >> confdefs.h <<\EOF
7547 #define HAVE_LONG_INT_64
7553 if test x"$HAVE_LONG_INT_64" = x"no" ; then
7554 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
7555 echo "configure:7556: checking whether long long int is 64 bits" >&5
7556 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
7557 echo $ac_n "(cached) $ac_c" 1>&6
7559 if test "$cross_compiling" = yes; then
7560 pgac_cv_type_long_long_int_64=no
7561 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7563 cat > conftest.$ac_ext <<EOF
7564 #line 7565 "configure"
7565 #include "confdefs.h"
7566 typedef long long int int64;
7569 * These are globals to discourage the compiler from folding all the
7570 * arithmetic tests down to compile-time constants.
7575 int does_int64_work()
7579 if (sizeof(int64) != 8)
7580 return 0; /* definitely not the right size */
7582 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7590 exit(! does_int64_work());
7593 if { (eval echo configure:7594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7595 pgac_cv_type_long_long_int_64=yes
7597 echo "configure: failed program was:" >&5
7598 cat conftest.$ac_ext >&5
7600 pgac_cv_type_long_long_int_64=no
7607 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
7609 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
7610 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
7611 cat >> confdefs.h <<\EOF
7612 #define HAVE_LONG_LONG_INT_64
7621 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7622 cat > conftest.$ac_ext <<EOF
7623 #line 7624 "configure"
7624 #include "confdefs.h"
7626 #define INT64CONST(x) x##LL
7627 long long int foo = INT64CONST(0x1234567890123456);
7633 if { (eval echo configure:7634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7635 cat >> confdefs.h <<\EOF
7636 #define HAVE_LL_CONSTANTS 1
7640 echo "configure: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7648 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7649 if [ x$SNPRINTF = x ] ; then
7650 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7651 echo "configure:7652: checking whether snprintf handles 'long long int' as %lld" >&5
7652 if test "$cross_compiling" = yes; then
7653 echo "$ac_t""assuming not on target machine" 1>&6
7654 # Force usage of our own snprintf, since we cannot test foreign snprintf
7655 SNPRINTF='snprintf.o'
7656 INT64_FORMAT='"%lld"'
7659 cat > conftest.$ac_ext <<EOF
7660 #line 7661 "configure"
7661 #include "confdefs.h"
7663 typedef long long int int64;
7664 #define INT64_FORMAT "%lld"
7669 int does_int64_snprintf_work()
7674 if (sizeof(int64) != 8)
7675 return 0; /* doesn't look like the right size */
7678 snprintf(buf, 100, INT64_FORMAT, c);
7679 if (strcmp(buf, "800000140000005") != 0)
7680 return 0; /* either multiply or snprintf is busted */
7684 exit(! does_int64_snprintf_work());
7687 if { (eval echo configure:7688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7689 echo "$ac_t""yes" 1>&6
7690 INT64_FORMAT='"%lld"'
7693 echo "configure: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7696 echo "$ac_t""no" 1>&6
7697 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7698 echo "configure:7699: checking whether snprintf handles 'long long int' as %qd" >&5
7699 if test "$cross_compiling" = yes; then
7700 echo "$ac_t""assuming not on target machine" 1>&6
7701 # Force usage of our own snprintf, since we cannot test foreign snprintf
7702 SNPRINTF='snprintf.o'
7703 INT64_FORMAT='"%lld"'
7706 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure"
7708 #include "confdefs.h"
7710 typedef long long int int64;
7711 #define INT64_FORMAT "%qd"
7716 int does_int64_snprintf_work()
7721 if (sizeof(int64) != 8)
7722 return 0; /* doesn't look like the right size */
7725 snprintf(buf, 100, INT64_FORMAT, c);
7726 if (strcmp(buf, "800000140000005") != 0)
7727 return 0; /* either multiply or snprintf is busted */
7731 exit(! does_int64_snprintf_work());
7734 if { (eval echo configure:7735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7736 echo "$ac_t""yes" 1>&6
7737 INT64_FORMAT='"%qd"'
7740 echo "configure: failed program was:" >&5
7741 cat conftest.$ac_ext >&5
7743 echo "$ac_t""no" 1>&6
7744 # Force usage of our own snprintf, since system snprintf is broken
7745 SNPRINTF='snprintf.o'
7746 INT64_FORMAT='"%lld"'
7757 # here if we previously decided we needed to use our own snprintf
7758 INT64_FORMAT='"%lld"'
7761 # Here if we are not using 'long long int' at all
7762 INT64_FORMAT='"%ld"'
7765 cat >> confdefs.h <<EOF
7766 #define INT64_FORMAT $INT64_FORMAT
7771 for ac_func in strtoll strtoq
7773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7774 echo "configure:7775: checking for $ac_func" >&5
7775 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7778 cat > conftest.$ac_ext <<EOF
7779 #line 7780 "configure"
7780 #include "confdefs.h"
7781 /* System header to define __stub macros and hopefully few prototypes,
7782 which can conflict with char $ac_func(); below. */
7784 /* Override any gcc2 internal prototype to avoid an error. */
7785 /* We use char because int might match the return type of a gcc2
7786 builtin and then its argument prototype would still apply. */
7791 /* The GNU C library defines this for functions which it implements
7792 to always fail with ENOSYS. Some functions are actually named
7793 something starting with __ and the normal name is an alias. */
7794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7802 if { (eval echo configure:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7804 eval "ac_cv_func_$ac_func=yes"
7806 echo "configure: failed program was:" >&5
7807 cat conftest.$ac_ext >&5
7809 eval "ac_cv_func_$ac_func=no"
7814 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7815 echo "$ac_t""yes" 1>&6
7816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7817 cat >> confdefs.h <<EOF
7818 #define $ac_tr_func 1
7822 echo "$ac_t""no" 1>&6
7826 for ac_func in strtoull strtouq
7828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7829 echo "configure:7830: checking for $ac_func" >&5
7830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7833 cat > conftest.$ac_ext <<EOF
7834 #line 7835 "configure"
7835 #include "confdefs.h"
7836 /* System header to define __stub macros and hopefully few prototypes,
7837 which can conflict with char $ac_func(); below. */
7839 /* Override any gcc2 internal prototype to avoid an error. */
7840 /* We use char because int might match the return type of a gcc2
7841 builtin and then its argument prototype would still apply. */
7846 /* The GNU C library defines this for functions which it implements
7847 to always fail with ENOSYS. Some functions are actually named
7848 something starting with __ and the normal name is an alias. */
7849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7857 if { (eval echo configure:7858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7859 eval "ac_cv_func_$ac_func=yes"
7861 echo "configure: failed program was:" >&5
7862 cat conftest.$ac_ext >&5
7864 eval "ac_cv_func_$ac_func=no"
7869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7870 echo "$ac_t""yes" 1>&6
7871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7872 cat >> confdefs.h <<EOF
7873 #define $ac_tr_func 1
7877 echo "$ac_t""no" 1>&6
7882 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7883 echo "configure:7884: checking for atexit" >&5
7884 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7885 echo $ac_n "(cached) $ac_c" 1>&6
7887 cat > conftest.$ac_ext <<EOF
7888 #line 7889 "configure"
7889 #include "confdefs.h"
7890 /* System header to define __stub macros and hopefully few prototypes,
7891 which can conflict with char atexit(); below. */
7893 /* Override any gcc2 internal prototype to avoid an error. */
7894 /* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7900 /* The GNU C library defines this for functions which it implements
7901 to always fail with ENOSYS. Some functions are actually named
7902 something starting with __ and the normal name is an alias. */
7903 #if defined (__stub_atexit) || defined (__stub___atexit)
7911 if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7913 eval "ac_cv_func_atexit=yes"
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7918 eval "ac_cv_func_atexit=no"
7923 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7924 echo "$ac_t""yes" 1>&6
7925 cat >> confdefs.h <<\EOF
7926 #define HAVE_ATEXIT 1
7930 echo "$ac_t""no" 1>&6
7931 for ac_func in on_exit
7933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7934 echo "configure:7935: checking for $ac_func" >&5
7935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7938 cat > conftest.$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7941 /* System header to define __stub macros and hopefully few prototypes,
7942 which can conflict with char $ac_func(); below. */
7944 /* Override any gcc2 internal prototype to avoid an error. */
7945 /* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7951 /* The GNU C library defines this for functions which it implements
7952 to always fail with ENOSYS. Some functions are actually named
7953 something starting with __ and the normal name is an alias. */
7954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7964 eval "ac_cv_func_$ac_func=yes"
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7969 eval "ac_cv_func_$ac_func=no"
7974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7975 echo "$ac_t""yes" 1>&6
7976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7977 cat >> confdefs.h <<EOF
7978 #define $ac_tr_func 1
7980 cat >> confdefs.h <<\EOF
7981 #define HAVE_ON_EXIT 1
7985 echo "$ac_t""no" 1>&6
7986 { echo "configure: error: atexi() nor on_exit() found" 1>&2; exit 1; }
7994 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
7995 echo "configure:7996: checking size of unsigned long" >&5
7996 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
7997 echo $ac_n "(cached) $ac_c" 1>&6
7999 if test "$cross_compiling" = yes; then
8000 ac_cv_sizeof_unsigned_long=4
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8008 FILE *f=fopen("conftestval", "w");
8010 fprintf(f, "%d\n", sizeof(unsigned long));
8014 if { (eval echo configure:8015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8016 ac_cv_sizeof_unsigned_long=`cat conftestval`
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8021 ac_cv_sizeof_unsigned_long=0
8027 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
8028 cat >> confdefs.h <<EOF
8029 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8033 cat >> confdefs.h <<EOF
8034 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
8039 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
8040 echo "configure:8041: checking alignment of short" >&5
8041 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
8042 echo $ac_n "(cached) $ac_c" 1>&6
8044 if test "$cross_compiling" = yes; then
8045 pgac_cv_alignof_short='sizeof(short)'
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8051 struct { char filler; short field; } mystruct;
8054 FILE *f=fopen("conftestval", "w");
8056 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8060 if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8062 pgac_cv_alignof_short=`cat conftestval`
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8067 pgac_cv_alignof_short='sizeof(short)'
8073 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
8074 cat >> confdefs.h <<EOF
8075 #define ALIGNOF_SHORT $pgac_cv_alignof_short
8079 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
8080 echo "configure:8081: checking alignment of int" >&5
8081 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8084 if test "$cross_compiling" = yes; then
8085 pgac_cv_alignof_int='sizeof(int)'
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8091 struct { char filler; int field; } mystruct;
8094 FILE *f=fopen("conftestval", "w");
8096 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8100 if { (eval echo configure:8101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8102 pgac_cv_alignof_int=`cat conftestval`
8104 echo "configure: failed program was:" >&5
8105 cat conftest.$ac_ext >&5
8107 pgac_cv_alignof_int='sizeof(int)'
8113 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
8114 cat >> confdefs.h <<EOF
8115 #define ALIGNOF_INT $pgac_cv_alignof_int
8119 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
8120 echo "configure:8121: checking alignment of long" >&5
8121 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
8122 echo $ac_n "(cached) $ac_c" 1>&6
8124 if test "$cross_compiling" = yes; then
8125 pgac_cv_alignof_long='sizeof(long)'
8127 cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8131 struct { char filler; long field; } mystruct;
8134 FILE *f=fopen("conftestval", "w");
8136 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8140 if { (eval echo configure:8141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8142 pgac_cv_alignof_long=`cat conftestval`
8144 echo "configure: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8147 pgac_cv_alignof_long='sizeof(long)'
8153 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
8154 cat >> confdefs.h <<EOF
8155 #define ALIGNOF_LONG $pgac_cv_alignof_long
8159 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
8160 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
8161 echo "configure:8162: checking alignment of long long int" >&5
8162 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
8163 echo $ac_n "(cached) $ac_c" 1>&6
8165 if test "$cross_compiling" = yes; then
8166 pgac_cv_alignof_long_long_int='sizeof(long long int)'
8168 cat > conftest.$ac_ext <<EOF
8169 #line 8170 "configure"
8170 #include "confdefs.h"
8172 struct { char filler; long long int field; } mystruct;
8175 FILE *f=fopen("conftestval", "w");
8177 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8183 pgac_cv_alignof_long_long_int=`cat conftestval`
8185 echo "configure: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8188 pgac_cv_alignof_long_long_int='sizeof(long long int)'
8194 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
8195 cat >> confdefs.h <<EOF
8196 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
8201 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
8202 echo "configure:8203: checking alignment of double" >&5
8203 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
8204 echo $ac_n "(cached) $ac_c" 1>&6
8206 if test "$cross_compiling" = yes; then
8207 pgac_cv_alignof_double='sizeof(double)'
8209 cat > conftest.$ac_ext <<EOF
8210 #line 8211 "configure"
8211 #include "confdefs.h"
8213 struct { char filler; double field; } mystruct;
8216 FILE *f=fopen("conftestval", "w");
8218 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8222 if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8224 pgac_cv_alignof_double=`cat conftestval`
8226 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8229 pgac_cv_alignof_double='sizeof(double)'
8235 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
8236 cat >> confdefs.h <<EOF
8237 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
8243 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
8244 MAX_ALIGNOF=$pgac_cv_alignof_long
8245 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
8246 MAX_ALIGNOF=$pgac_cv_alignof_double
8248 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
8249 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
8252 MAX_ALIGNOF="$pgac_cv_alignof_double"
8254 cat >> confdefs.h <<EOF
8255 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
8259 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
8260 echo "configure:8261: checking for POSIX signal interface" >&5
8261 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8264 cat > conftest.$ac_ext <<EOF
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8270 struct sigaction act, oact;
8271 sigemptyset(&act.sa_mask);
8272 act.sa_flags = SA_RESTART;
8273 sigaction(0, &act, &oact);
8276 if { (eval echo configure:8277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8278 pgac_cv_func_posix_signals=yes
8280 echo "configure: failed program was:" >&5
8281 cat conftest.$ac_ext >&5
8283 pgac_cv_func_posix_signals=no
8288 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
8289 if test x"$pgac_cv_func_posix_signals" = xyes ; then
8290 cat >> confdefs.h <<\EOF
8291 #define HAVE_POSIX_SIGNALS
8295 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
8299 # Check for Tcl configuration script tclConfig.sh
8300 if test "$with_tcl" = yes; then
8301 for ac_prog in tclsh tcl
8303 # Extract the first word of "$ac_prog", so it can be a program name with args.
8304 set dummy $ac_prog; ac_word=$2
8305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8306 echo "configure:8307: checking for $ac_word" >&5
8307 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
8308 echo $ac_n "(cached) $ac_c" 1>&6
8312 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8315 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
8318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8320 for ac_dir in $ac_dummy; do
8321 test -z "$ac_dir" && ac_dir=.
8322 if test -f $ac_dir/$ac_word; then
8323 ac_cv_path_TCLSH="$ac_dir/$ac_word"
8331 TCLSH="$ac_cv_path_TCLSH"
8332 if test -n "$TCLSH"; then
8333 echo "$ac_t""$TCLSH" 1>&6
8335 echo "$ac_t""no" 1>&6
8338 test -n "$TCLSH" && break
8341 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
8342 echo "configure:8343: checking for tclConfig.sh" >&5
8343 # Let user override test
8344 if test -z "$TCL_CONFIG_SH"; then
8345 pgac_test_dirs="$with_tclconfig"
8347 set X $pgac_test_dirs; shift
8348 if test $# -eq 0; then
8349 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8350 set X `echo 'puts $auto_path' | $TCLSH`; shift
8354 if test -r "$pgac_dir/tclConfig.sh"; then
8355 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
8361 if test -z "$TCL_CONFIG_SH"; then
8362 echo "$ac_t""no" 1>&6
8363 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
8365 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
8372 # Check for Tk configuration script tkConfig.sh
8373 if test "$with_tk" = yes; then
8374 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
8375 echo "configure:8376: checking for tkConfig.sh" >&5
8376 # Let user override test
8377 if test -z "$TK_CONFIG_SH"; then
8378 pgac_test_dirs="$with_tkconfig $with_tclconfig"
8380 set X $pgac_test_dirs; shift
8381 if test $# -eq 0; then
8382 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8383 set X `echo 'puts $auto_path' | $TCLSH`; shift
8387 if test -r "$pgac_dir/tkConfig.sh"; then
8388 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
8394 if test -z "$TK_CONFIG_SH"; then
8395 echo "$ac_t""no" 1>&6
8396 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
8398 echo "$ac_t""$TK_CONFIG_SH" 1>&6
8407 # Check for DocBook and tools
8409 for ac_prog in onsgmls nsgmls
8411 # Extract the first word of "$ac_prog", so it can be a program name with args.
8412 set dummy $ac_prog; ac_word=$2
8413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8414 echo "configure:8415: checking for $ac_word" >&5
8415 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
8416 echo $ac_n "(cached) $ac_c" 1>&6
8418 if test -n "$NSGMLS"; then
8419 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
8421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8423 for ac_dir in $ac_dummy; do
8424 test -z "$ac_dir" && ac_dir=.
8425 if test -f $ac_dir/$ac_word; then
8426 ac_cv_prog_NSGMLS="$ac_prog"
8433 NSGMLS="$ac_cv_prog_NSGMLS"
8434 if test -n "$NSGMLS"; then
8435 echo "$ac_t""$NSGMLS" 1>&6
8437 echo "$ac_t""no" 1>&6
8440 test -n "$NSGMLS" && break
8443 # If you don't have nsgmls you won't get very far, so save the cycles.
8444 if test -n "$NSGMLS"; then
8445 for ac_prog in openjade jade
8447 # Extract the first word of "$ac_prog", so it can be a program name with args.
8448 set dummy $ac_prog; ac_word=$2
8449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8450 echo "configure:8451: checking for $ac_word" >&5
8451 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
8452 echo $ac_n "(cached) $ac_c" 1>&6
8454 if test -n "$JADE"; then
8455 ac_cv_prog_JADE="$JADE" # Let the user override the test.
8457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8459 for ac_dir in $ac_dummy; do
8460 test -z "$ac_dir" && ac_dir=.
8461 if test -f $ac_dir/$ac_word; then
8462 ac_cv_prog_JADE="$ac_prog"
8469 JADE="$ac_cv_prog_JADE"
8470 if test -n "$JADE"; then
8471 echo "$ac_t""$JADE" 1>&6
8473 echo "$ac_t""no" 1>&6
8476 test -n "$JADE" && break
8480 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
8481 echo "configure:8482: checking for DocBook V3.1" >&5
8482 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
8483 echo $ac_n "(cached) $ac_c" 1>&6
8485 cat >conftest.sgml <<EOF
8486 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
8490 <title>random</title>
8492 <title>testsect</title>
8499 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
8500 if test $? -eq 0; then
8501 pgac_cv_check_docbook=yes
8503 pgac_cv_check_docbook=no
8508 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
8510 have_docbook=$pgac_cv_check_docbook
8513 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
8514 echo "configure:8515: checking for DocBook stylesheets" >&5
8515 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
8516 echo $ac_n "(cached) $ac_c" 1>&6
8518 if test -n "$DOCBOOKSTYLE"; then
8519 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
8521 for pgac_prefix in /usr /usr/local /opt; do
8522 for pgac_infix in share lib; do
8523 for pgac_postfix in \
8524 sgml/stylesheets/nwalsh-modular \
8525 sgml/stylesheets/docbook \
8526 sgml/docbook/dsssl/modular
8528 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
8529 if test -r "$pgac_candidate/html/docbook.dsl" \
8530 && test -r "$pgac_candidate/print/docbook.dsl"
8532 pgac_cv_path_stylesheets=$pgac_candidate
8541 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
8543 if test -n "$DOCBOOKSTYLE"; then
8544 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
8546 echo "$ac_t""no" 1>&6
8548 for ac_prog in sgmlspl
8550 # Extract the first word of "$ac_prog", so it can be a program name with args.
8551 set dummy $ac_prog; ac_word=$2
8552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8553 echo "configure:8554: checking for $ac_word" >&5
8554 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
8555 echo $ac_n "(cached) $ac_c" 1>&6
8557 if test -n "$SGMLSPL"; then
8558 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
8560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8562 for ac_dir in $ac_dummy; do
8563 test -z "$ac_dir" && ac_dir=.
8564 if test -f $ac_dir/$ac_word; then
8565 ac_cv_prog_SGMLSPL="$ac_prog"
8572 SGMLSPL="$ac_cv_prog_SGMLSPL"
8573 if test -n "$SGMLSPL"; then
8574 echo "$ac_t""$SGMLSPL" 1>&6
8576 echo "$ac_t""no" 1>&6
8579 test -n "$SGMLSPL" && break
8584 # check whether 'test -ef' works
8585 if (test "$srcdir" -ef "$srcdir") >/dev/null 2>&1 ; then
8594 if test "$test_ef_works" = yes ; then
8595 # prepare build tree if outside source tree
8596 if test "$srcdir" -ef . ; then : ; else
8597 abs_top_srcdir=`cd $srcdir && pwd`
8598 echo $ac_n "preparing build tree... $ac_c" 1>&6
8599 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
8600 || { echo "configure: error: failed" 1>&2; exit 1; }
8601 echo "$ac_t""done" 1>&6
8606 cat > confcache <<\EOF
8607 # This file is a shell script that caches the results of configure
8608 # tests run on this system so they can be shared between configure
8609 # scripts and configure runs. It is not useful on other systems.
8610 # If it contains results you don't want to keep, you may remove or edit it.
8612 # By default, configure uses ./config.cache as the cache file,
8613 # creating it if it does not exist already. You can give configure
8614 # the --cache-file=FILE option to use a different cache file; that is
8615 # what configure does when it calls configure scripts in
8616 # subdirectories, so they share the cache.
8617 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8618 # config.status only pays attention to the cache file if you give it the
8619 # --recheck option to rerun configure.
8622 # The following way of writing the cache mishandles newlines in values,
8623 # but we know of no workaround that is simple, portable, and efficient.
8624 # So, don't put newlines in cache variables' values.
8625 # Ultrix sh set writes to stderr and can't be redirected directly,
8626 # and sets the high bit in the cache file unless we assign to the vars.
8628 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8630 # `set' does not quote correctly, so add quotes (double-quote substitution
8631 # turns \\\\ into \\, and sed turns \\ into \).
8633 -e "s/'/'\\\\''/g" \
8634 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8637 # `set' quotes correctly as required by POSIX, so do not add quotes.
8638 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8641 if cmp -s $cache_file confcache; then
8644 if test -w $cache_file; then
8645 echo "updating cache $cache_file"
8646 cat confcache > $cache_file
8648 echo "not updating unwritable cache $cache_file"
8653 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8655 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8656 # Let make expand exec_prefix.
8657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8659 # Any assignment to VPATH causes Sun make to only execute
8660 # the first set of double-colon rules, so remove it if not needed.
8661 # If there is a colon in the path, we need to keep it.
8662 if test "x$srcdir" = x.; then
8663 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8666 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8668 DEFS=-DHAVE_CONFIG_H
8670 # Without the "./", some shells look in PATH for config.status.
8671 : ${CONFIG_STATUS=./config.status}
8673 echo creating $CONFIG_STATUS
8674 rm -f $CONFIG_STATUS
8675 cat > $CONFIG_STATUS <<EOF
8677 # Generated automatically by configure.
8678 # Run this file to recreate the current configuration.
8679 # This directory was configured as follows,
8680 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8682 # $0 $ac_configure_args
8684 # Compiler output produced by configure, useful for debugging
8685 # configure, is in ./config.log if it exists.
8687 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8690 case "\$ac_option" in
8691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8692 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8693 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8694 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8695 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8697 -help | --help | --hel | --he | --h)
8698 echo "\$ac_cs_usage"; exit 0 ;;
8699 *) echo "\$ac_cs_usage"; exit 1 ;;
8703 ac_given_srcdir=$srcdir
8705 trap 'rm -fr `echo "
8709 src/backend/port/Makefile
8710 src/include/pg_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8712 cat >> $CONFIG_STATUS <<EOF
8714 # Protect against being on the right side of a sed subst in config.status.
8715 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8716 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8720 s%@CFLAGS@%$CFLAGS%g
8721 s%@CPPFLAGS@%$CPPFLAGS%g
8722 s%@CXXFLAGS@%$CXXFLAGS%g
8723 s%@FFLAGS@%$FFLAGS%g
8725 s%@LDFLAGS@%$LDFLAGS%g
8727 s%@exec_prefix@%$exec_prefix%g
8728 s%@prefix@%$prefix%g
8729 s%@program_transform_name@%$program_transform_name%g
8730 s%@bindir@%$bindir%g
8731 s%@sbindir@%$sbindir%g
8732 s%@libexecdir@%$libexecdir%g
8733 s%@datadir@%$datadir%g
8734 s%@sysconfdir@%$sysconfdir%g
8735 s%@sharedstatedir@%$sharedstatedir%g
8736 s%@localstatedir@%$localstatedir%g
8737 s%@libdir@%$libdir%g
8738 s%@includedir@%$includedir%g
8739 s%@oldincludedir@%$oldincludedir%g
8740 s%@docdir@%$docdir%g
8741 s%@mandir@%$mandir%g
8742 s%@VERSION@%$VERSION%g
8744 s%@host_alias@%$host_alias%g
8745 s%@host_cpu@%$host_cpu%g
8746 s%@host_vendor@%$host_vendor%g
8747 s%@host_os@%$host_os%g
8748 s%@PORTNAME@%$PORTNAME%g
8750 s%@MULTIBYTE@%$MULTIBYTE%g
8751 s%@enable_nls@%$enable_nls%g
8752 s%@WANTED_LANGUAGES@%$WANTED_LANGUAGES%g
8753 s%@default_port@%$default_port%g
8754 s%@enable_shared@%$enable_shared%g
8755 s%@enable_rpath@%$enable_rpath%g
8757 s%@EXEEXT@%$EXEEXT%g
8760 s%@autodepend@%$autodepend%g
8761 s%@INCLUDES@%$INCLUDES%g
8762 s%@with_tcl@%$with_tcl%g
8763 s%@with_tk@%$with_tk%g
8764 s%@enable_pltcl_unknown@%$enable_pltcl_unknown%g
8765 s%@enable_pltcl_utf@%$enable_pltcl_utf%g
8766 s%@with_perl@%$with_perl%g
8767 s%@with_python@%$with_python%g
8769 s%@with_java@%$with_java%g
8770 s%@with_krb4@%$with_krb4%g
8771 s%@with_krb5@%$with_krb5%g
8772 s%@krb_srvtab@%$krb_srvtab%g
8773 s%@with_pam@%$with_pam%g
8774 s%@with_openssl@%$with_openssl%g
8775 s%@enable_odbc@%$enable_odbc%g
8776 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8777 s%@ELF_SYS@%$ELF_SYS%g
8779 s%@CXXCPP@%$CXXCPP%g
8781 s%@with_CXX@%$with_CXX%g
8784 s%@FLEXFLAGS@%$FLEXFLAGS%g
8787 s%@with_gnu_ld@%$with_gnu_ld%g
8788 s%@ld_R_works@%$ld_R_works%g
8789 s%@RANLIB@%$RANLIB%g
8790 s%@LORDER@%$LORDER%g
8793 s%@YFLAGS@%$YFLAGS%g
8796 s%@perl_installsitearch@%$perl_installsitearch%g
8797 s%@perl_installsitelib@%$perl_installsitelib%g
8798 s%@perl_installman3dir@%$perl_installman3dir%g
8799 s%@PYTHON@%$PYTHON%g
8800 s%@python_version@%$python_version%g
8801 s%@python_prefix@%$python_prefix%g
8802 s%@python_execprefix@%$python_execprefix%g
8803 s%@python_configdir@%$python_configdir%g
8804 s%@python_moduledir@%$python_moduledir%g
8805 s%@python_moduleexecdir@%$python_moduleexecdir%g
8806 s%@python_includespec@%$python_includespec%g
8807 s%@python_libspec@%$python_libspec%g
8808 s%@MSGFMT@%$MSGFMT%g
8809 s%@MSGMERGE@%$MSGMERGE%g
8810 s%@XGETTEXT@%$XGETTEXT%g
8811 s%@localedir@%$localedir%g
8812 s%@SNPRINTF@%$SNPRINTF%g
8814 s%@GETRUSAGE@%$GETRUSAGE%g
8815 s%@SRANDOM@%$SRANDOM%g
8816 s%@GETHOSTNAME@%$GETHOSTNAME%g
8817 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
8818 s%@INET_ATON@%$INET_ATON%g
8819 s%@STRERROR@%$STRERROR%g
8820 s%@STRDUP@%$STRDUP%g
8821 s%@STRTOL@%$STRTOL%g
8822 s%@STRTOUL@%$STRTOUL%g
8823 s%@STRCASECMP@%$STRCASECMP%g
8824 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
8825 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
8827 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
8828 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
8829 s%@NSGMLS@%$NSGMLS%g
8831 s%@have_docbook@%$have_docbook%g
8832 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
8833 s%@SGMLSPL@%$SGMLSPL%g
8834 s%@abs_top_srcdir@%$abs_top_srcdir%g
8839 cat >> $CONFIG_STATUS <<\EOF
8841 # Split the substitutions into bite-sized pieces for seds with
8842 # small command number limits, like on Digital OSF/1 and HP-UX.
8843 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8844 ac_file=1 # Number of current file.
8845 ac_beg=1 # First line for current file.
8846 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8849 while $ac_more_lines; do
8850 if test $ac_beg -gt 1; then
8851 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8853 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8855 if test ! -s conftest.s$ac_file; then
8857 rm -f conftest.s$ac_file
8859 if test -z "$ac_sed_cmds"; then
8860 ac_sed_cmds="sed -f conftest.s$ac_file"
8862 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8864 ac_file=`expr $ac_file + 1`
8866 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8869 if test -z "$ac_sed_cmds"; then
8874 cat >> $CONFIG_STATUS <<EOF
8876 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
8879 src/backend/port/Makefile
8882 cat >> $CONFIG_STATUS <<\EOF
8883 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8884 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8886 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8887 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8888 *) ac_file_in="${ac_file}.in" ;;
8891 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8893 # Remove last slash and all that follows it. Not all systems have dirname.
8894 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8895 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8896 # The file is in a subdirectory.
8897 test ! -d "$ac_dir" && mkdir "$ac_dir"
8898 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8899 # A "../" for each directory in $ac_dir_suffix.
8900 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8902 ac_dir_suffix= ac_dots=
8905 case "$ac_given_srcdir" in
8907 if test -z "$ac_dots"; then top_srcdir=.
8908 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8909 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8911 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8912 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8916 echo creating "$ac_file"
8918 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8920 *Makefile*) ac_comsub="1i\\
8921 # $configure_input" ;;
8925 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8927 s%@configure_input@%$configure_input%g
8928 s%@srcdir@%$srcdir%g
8929 s%@top_srcdir@%$top_srcdir%g
8930 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8934 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8935 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8937 # ac_d sets the value in "#define NAME VALUE" lines.
8938 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8939 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8942 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8943 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8944 ac_uB='\([ ]\)%\1#\2define\3'
8947 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8948 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8949 ac_eB='$%\1#\2define\3'
8953 if test "${CONFIG_HEADERS+set}" != set; then
8955 cat >> $CONFIG_STATUS <<EOF
8956 CONFIG_HEADERS="src/include/pg_config.h"
8958 cat >> $CONFIG_STATUS <<\EOF
8960 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8961 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8963 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8964 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8965 *) ac_file_in="${ac_file}.in" ;;
8968 echo creating $ac_file
8970 rm -f conftest.frag conftest.in conftest.out
8971 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8972 cat $ac_file_inputs > conftest.in
8976 # Transform confdefs.h into a sed script conftest.vals that substitutes
8977 # the proper values into config.h.in to produce config.h. And first:
8978 # Protect against being on the right side of a sed subst in config.status.
8979 # Protect against being in an unquoted here document in config.status.
8981 cat > conftest.hdr <<\EOF
8984 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8988 sed -n -f conftest.hdr confdefs.h > conftest.vals
8991 # This sed command replaces #undef with comments. This is necessary, for
8992 # example, in the case of _POSIX_SOURCE, which is predefined and required
8993 # on some systems where configure will not decide to define it.
8994 cat >> conftest.vals <<\EOF
8995 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8998 # Break up conftest.vals because some shells have a limit on
8999 # the size of here documents, and old seds have small limits too.
9004 ac_lines=`grep -c . conftest.vals`
9005 # grep -c gives empty output for an empty file on some AIX systems.
9006 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9007 # Write a limited-size here document to conftest.frag.
9008 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9009 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9011 sed -f conftest.frag conftest.in > conftest.out
9013 mv conftest.out conftest.in
9015 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9017 mv conftest.tail conftest.vals
9021 cat >> $CONFIG_STATUS <<\EOF
9022 rm -f conftest.frag conftest.h
9023 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9024 cat conftest.in >> conftest.h
9026 if cmp -s $ac_file conftest.h 2>/dev/null; then
9027 echo "$ac_file is unchanged"
9030 # Remove last slash and all that follows it. Not all systems have dirname.
9031 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9032 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9033 # The file is in a subdirectory.
9034 test ! -d "$ac_dir" && mkdir "$ac_dir"
9037 mv conftest.h $ac_file
9043 cat >> $CONFIG_STATUS <<EOF
9044 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}"
9045 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"
9048 cat >> $CONFIG_STATUS <<\EOF
9049 srcdir=$ac_given_srcdir
9050 while test -n "$ac_sources"; do
9051 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9052 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9054 echo "linking $srcdir/$ac_source to $ac_dest"
9056 if test ! -r $srcdir/$ac_source; then
9057 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9061 # Make relative symlinks.
9062 # Remove last slash and all that follows it. Not all systems have dirname.
9063 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9064 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9065 # The dest file is in a subdirectory.
9066 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9067 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9068 # A "../" for each directory in $ac_dest_dir_suffix.
9069 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9071 ac_dest_dir_suffix= ac_dots=
9075 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9076 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9079 # Make a symlink if possible; otherwise try a hard link.
9080 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9081 ln $srcdir/$ac_source $ac_dest; then :
9083 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9087 cat >> $CONFIG_STATUS <<EOF
9090 cat >> $CONFIG_STATUS <<\EOF
9092 # Update timestamp for pg_config.h (see Makefile.global)
9093 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
9097 chmod +x $CONFIG_STATUS
9098 rm -fr confdefs* $ac_clean_files
9099 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1