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 --with-pgport=PORTNUM change default port number [5432]"
30 --with-maxbackends=N set default maximum number of connections [32]"
32 --enable-depend turn on automatic dependency tracking"
34 --enable-debug build with debugging symbols (-g)"
36 --enable-cassert enable assertion checks (for debugging)"
38 --with-tcl build Tcl and Tk interfaces"
40 --without-tk do not build Tk interfaces if Tcl is enabled"
42 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
44 --with-tkconfig=DIR tkConfig.sh is in DIR"
46 --with-perl build Perl interface and PL/Perl"
48 --with-python build Python interface module"
50 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
52 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
54 --with-krb-srvnam=NAME name of the PostgreSQL service principal in Kerberos [postgres]"
56 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
58 --enable-odbc build the ODBC driver package"
60 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
62 --with-CXX build C++ modules (libpq++)"
64 --enable-syslog enable logging to syslog"
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
70 cache_file=./config.cache
79 program_transform_name=s,x,x,
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 docdir='${prefix}/doc'
98 mandir='${prefix}/man'
100 # Initialize some other variables.
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
119 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 # Accept the important Cygnus configure options, so we can diagnose typos.
127 -bindir | --bindir | --bindi | --bind | --bin | --bi)
129 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130 bindir="$ac_optarg" ;;
132 -build | --build | --buil | --bui | --bu)
134 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135 build="$ac_optarg" ;;
137 -cache-file | --cache-file | --cache-fil | --cache-fi \
138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139 ac_prev=cache_file ;;
140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142 cache_file="$ac_optarg" ;;
144 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148 datadir="$ac_optarg" ;;
150 -disable-* | --disable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
159 -enable-* | --enable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174 | --exec | --exe | --ex)
175 ac_prev=exec_prefix ;;
176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178 | --exec=* | --exe=* | --ex=*)
179 exec_prefix="$ac_optarg" ;;
181 -gas | --gas | --ga | --g)
182 # Obsolete; use --with-gas.
185 -help | --help | --hel | --he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --docdir=DIR doc documentation in DIR [PREFIX/doc]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
240 -host | --host | --hos | --ho)
242 -host=* | --host=* | --hos=* | --ho=*)
245 -includedir | --includedir | --includedi | --included | --include \
246 | --includ | --inclu | --incl | --inc)
247 ac_prev=includedir ;;
248 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249 | --includ=* | --inclu=* | --incl=* | --inc=*)
250 includedir="$ac_optarg" ;;
252 -docdir | --docdir | --infodi | --infod | --doc | --inf)
254 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
255 docdir="$ac_optarg" ;;
257 -libdir | --libdir | --libdi | --libd)
259 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 libdir="$ac_optarg" ;;
262 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263 | --libexe | --libex | --libe)
264 ac_prev=libexecdir ;;
265 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266 | --libexe=* | --libex=* | --libe=*)
267 libexecdir="$ac_optarg" ;;
269 -localstatedir | --localstatedir | --localstatedi | --localstated \
270 | --localstate | --localstat | --localsta | --localst \
271 | --locals | --local | --loca | --loc | --lo)
272 ac_prev=localstatedir ;;
273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276 localstatedir="$ac_optarg" ;;
278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281 mandir="$ac_optarg" ;;
284 # Obsolete; use --without-fp.
287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297 | --oldin | --oldi | --old | --ol | --o)
298 ac_prev=oldincludedir ;;
299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302 oldincludedir="$ac_optarg" ;;
304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 prefix="$ac_optarg" ;;
309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
310 | --program-pre | --program-pr | --program-p)
311 ac_prev=program_prefix ;;
312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314 program_prefix="$ac_optarg" ;;
316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
317 | --program-suf | --program-su | --program-s)
318 ac_prev=program_suffix ;;
319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321 program_suffix="$ac_optarg" ;;
323 -program-transform-name | --program-transform-name \
324 | --program-transform-nam | --program-transform-na \
325 | --program-transform-n | --program-transform- \
326 | --program-transform | --program-transfor \
327 | --program-transfo | --program-transf \
328 | --program-trans | --program-tran \
329 | --progr-tra | --program-tr | --program-t)
330 ac_prev=program_transform_name ;;
331 -program-transform-name=* | --program-transform-name=* \
332 | --program-transform-nam=* | --program-transform-na=* \
333 | --program-transform-n=* | --program-transform-=* \
334 | --program-transform=* | --program-transfor=* \
335 | --program-transfo=* | --program-transf=* \
336 | --program-trans=* | --program-tran=* \
337 | --progr-tra=* | --program-tr=* | --program-t=*)
338 program_transform_name="$ac_optarg" ;;
340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341 | -silent | --silent | --silen | --sile | --sil)
344 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
346 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
348 sbindir="$ac_optarg" ;;
350 -sharedstatedir | --sharedstatedir | --sharedstatedi \
351 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352 | --sharedst | --shareds | --shared | --share | --shar \
354 ac_prev=sharedstatedir ;;
355 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
359 sharedstatedir="$ac_optarg" ;;
361 -site | --site | --sit)
363 -site=* | --site=* | --sit=*)
366 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
368 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 srcdir="$ac_optarg" ;;
371 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372 | --syscon | --sysco | --sysc | --sys | --sy)
373 ac_prev=sysconfdir ;;
374 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376 sysconfdir="$ac_optarg" ;;
378 -target | --target | --targe | --targ | --tar | --ta | --t)
380 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381 target="$ac_optarg" ;;
383 -v | -verbose | --verbose | --verbos | --verbo | --verb)
386 -version | --version | --versio | --versi | --vers)
387 echo "configure generated by autoconf version 2.13"
391 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}='$ac_optarg'" ;;
403 -without-* | --without-*)
404 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}=no" ;;
413 # Obsolete; use --with-x.
416 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417 | --x-incl | --x-inc | --x-in | --x-i)
418 ac_prev=x_includes ;;
419 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421 x_includes="$ac_optarg" ;;
423 -x-libraries | --x-libraries | --x-librarie | --x-librari \
424 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425 ac_prev=x_libraries ;;
426 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428 x_libraries="$ac_optarg" ;;
430 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435 echo "configure: warning: $ac_option: invalid host type" 1>&2
437 if test "x$nonopt" != xNONE; then
438 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 if test -n "$ac_prev"; then
447 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
452 # File descriptor usage:
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
478 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479 | --no-cr | --no-c) ;;
480 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
484 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
489 # Only set these to C if already set. These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
494 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
496 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file=src/backend/access/common/heaptuple.c
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509 ac_srcdir_defaulted=yes
510 # Try the directory containing this script, then its parent.
512 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
515 if test ! -r $srcdir/$ac_unique_file; then
519 ac_srcdir_defaulted=no
521 if test ! -r $srcdir/$ac_unique_file; then
522 if test "$ac_srcdir_defaulted" = yes; then
523 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
525 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
528 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532 if test "x$prefix" != xNONE; then
533 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
535 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
538 for ac_site_file in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
549 echo "creating cache $cache_file"
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp='$CPP $CPPFLAGS'
556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling=$ac_cv_prog_cc_cross
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='\c' ac_t=
583 for ac_dir in config $srcdir/config; do
584 if test -f $ac_dir/install-sh; then
586 ac_install_sh="$ac_aux_dir/install-sh -c"
588 elif test -f $ac_dir/install.sh; then
590 ac_install_sh="$ac_aux_dir/install.sh -c"
594 if test -z "$ac_aux_dir"; then
595 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
597 ac_config_guess=$ac_aux_dir/config.guess
598 ac_config_sub=$ac_aux_dir/config.sub
599 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604 cat >> confdefs.h <<EOF
605 #define PG_VERSION "$VERSION"
610 # Make sure we can run config.sub.
611 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
612 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
615 echo $ac_n "checking host system type""... $ac_c" 1>&6
616 echo "configure:617: checking host system type" >&5
619 case "$host_alias" in
623 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
624 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
626 *) host_alias=$nonopt ;;
630 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
631 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634 echo "$ac_t""$host" 1>&6
638 echo $ac_n "checking which template to use""... $ac_c" 1>&6
639 echo "configure:640: checking which template to use" >&5
641 # Check whether --with-template was given
642 if test x"${with_template+set}" = xset; then
643 case $with_template in
645 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
648 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
651 withval=$with_template
654 list) echo; ls "$srcdir/src/template"; exit;;
655 *) if test -f "$srcdir/src/template/$with_template" ; then
658 { echo "configure: error: \`$withval' is not a valid template name. Use \`list' for a list." 1>&2; exit 1; }
663 esac # $with_template
666 # --with-template not given
669 aix*) template=aix ;;
670 bsdi*) template=bsdi ;;
671 cygwin*) template=win ;;
672 dgux*) template=dgux ;;
673 freebsd*) template=freebsd ;;
674 hpux*) template=hpux ;;
675 irix*) template=irix5 ;;
676 linux*) template=linux ;;
677 netbsd*) template=netbsd ;;
678 nextstep*) template=nextstep ;;
679 openbsd*) template=openbsd ;;
680 osf*) template=osf ;;
681 qnx*) template=qnx4 ;;
682 sco*) template=sco ;;
685 sparc) template=solaris_sparc ;;
686 i?86) template=solaris_i386 ;;
688 sunos*) template=sunos4 ;;
691 univel) template=univel ;;
693 sysv4*) template=svr4 ;;
694 sysv5uw*) template=unixware ;;
695 ultrix*) template=ultrix4 ;;
698 if test x"$template" = x"" ; then
699 { echo "configure: error:
700 *******************************************************************
701 PostgreSQL has apparently not been ported to your platform yet.
702 To try a manual configuration, look into the src/template directory
703 for a similar platform and use the \`--with-template=' option.
705 Please also contact <pgsql-ports@postgresql.org> to see about
706 rectifying this. Include the above \`checking host system type...'
708 *******************************************************************
715 echo "$ac_t""$template" 1>&6
727 # Pick right test-and-set (TAS) code. Most platforms have inline
728 # assembler code in their port include file, so we just use a dummy
733 hpux) need_tas=yes; tas_file=hpux.s ;;
734 solaris_sparc) need_tas=yes; tas_file=solaris_sparc.s ;;
735 solaris_i386) need_tas=yes; tas_file=solaris_i386.s ;;
738 if test "$need_tas" = yes ; then
747 ## Command line options
752 # Add non-standard directories to the include path
754 # Check whether --with-includes was given
755 if test x"${with_includes+set}" = xset; then
756 case $with_includes in
758 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
761 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
763 esac # $with_includes
768 # Add non-standard directories to the library search path
770 # Check whether --with-libraries was given
771 if test x"${with_libraries+set}" = xset; then
772 case $with_libraries in
774 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
777 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
780 withval=$with_libraries
781 LIBRARY_DIRS=$withval
783 esac # $with_libraries
786 # Check whether --with-libs was given
787 if test x"${with_libs+set}" = xset; then
790 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
793 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
797 LIBRARY_DIRS=$withval
804 # Locale (--enable-locale)
806 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
807 echo "configure:808: checking whether to build with locale support" >&5
808 # Check whether --enable-locale was given
809 if test x"${enable_locale+set}" = xset; then
810 case $enable_locale in
812 cat >> confdefs.h <<\EOF
821 enableval=$enable_locale
822 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
824 esac # $enable_locale
829 echo "$ac_t""$enable_locale" 1>&6
833 # Character set recode (--enable-recode)
835 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
836 echo "configure:837: checking whether to build with recode support" >&5
837 # Check whether --enable-recode was given
838 if test x"${enable_recode+set}" = xset; then
839 case $enable_recode in
841 cat >> confdefs.h <<\EOF
850 enableval=$enable_recode
851 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
853 esac # $enable_recode
858 echo "$ac_t""$enable_recode" 1>&6
865 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
866 echo "configure:867: checking whether to build with multibyte character support" >&5
868 # Check whether --enable-multibyte was given
869 if test x"${enable_multibyte+set}" = xset; then
870 case $enable_multibyte in
878 enableval=$enable_multibyte
882 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
883 MULTIBYTE=$enableval;;
885 { echo "configure: error: argument to --enable-multibyte must be one of:
886 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
887 UNICODE, MULE_INTERNAL,
888 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
890 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
894 esac # $enable_multibyte
899 if test "$enable_multibyte" = yes; then
901 cat >> confdefs.h <<\EOF
905 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
908 echo "$ac_t""no" 1>&6
916 # Default port number (--with-pgport), default 5432
918 echo $ac_n "checking for default port number""... $ac_c" 1>&6
919 echo "configure:920: checking for default port number" >&5
920 # Check whether --with-pgport was given
921 if test x"${with_pgport+set}" = xset; then
924 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
927 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
931 default_port=$withval
937 # Need both of these because backend wants an integer and frontend a string
938 cat >> confdefs.h <<EOF
939 #define DEF_PGPORT ${default_port}
942 cat >> confdefs.h <<EOF
943 #define DEF_PGPORT_STR "${default_port}"
946 echo "$ac_t""$default_port" 1>&6
950 # Maximum number of allowed connections (--with-maxbackends), default 32
952 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
953 echo "configure:954: checking for default soft limit on number of connections" >&5
954 # Check whether --with-maxbackends was given
955 if test x"${with_maxbackends+set}" = xset; then
956 case $with_maxbackends in
958 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
961 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
963 esac # $with_maxbackends
967 echo "$ac_t""$with_maxbackends" 1>&6
968 cat >> confdefs.h <<EOF
969 #define DEF_MAXBACKENDS $with_maxbackends
978 # For historical reasons you can also use --with-CC to specify the C compiler
979 # to use, although the standard way to do this is to set the CC environment
981 # Check whether --with-CC was given
982 if test x"${with_CC+set}" = xset; then
985 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
988 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
997 # On AIX, default compiler to xlc.
998 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1000 # Extract the first word of "gcc", so it can be a program name with args.
1001 set dummy gcc; ac_word=$2
1002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1003 echo "configure:1004: checking for $ac_word" >&5
1004 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1007 if test -n "$CC"; then
1008 ac_cv_prog_CC="$CC" # Let the user override the test.
1010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1012 for ac_dir in $ac_dummy; do
1013 test -z "$ac_dir" && ac_dir=.
1014 if test -f $ac_dir/$ac_word; then
1023 if test -n "$CC"; then
1024 echo "$ac_t""$CC" 1>&6
1026 echo "$ac_t""no" 1>&6
1029 if test -z "$CC"; then
1030 # Extract the first word of "cc", so it can be a program name with args.
1031 set dummy cc; ac_word=$2
1032 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1033 echo "configure:1034: checking for $ac_word" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1037 if test -n "$CC"; then
1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1043 for ac_dir in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir=.
1045 if test -f $ac_dir/$ac_word; then
1046 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1047 ac_prog_rejected=yes
1055 if test $ac_prog_rejected = yes; then
1056 # We found a bogon in the path, so make sure we never use it.
1057 set dummy $ac_cv_prog_CC
1059 if test $# -gt 0; then
1060 # We chose a different compiler from the bogus one.
1061 # However, it has the same basename, so the bogon will be chosen
1062 # first if we set CC to just the basename; use the full file name.
1064 set dummy "$ac_dir/$ac_word" "$@"
1072 if test -n "$CC"; then
1073 echo "$ac_t""$CC" 1>&6
1075 echo "$ac_t""no" 1>&6
1078 if test -z "$CC"; then
1079 case "`uname -s`" in
1081 # Extract the first word of "cl", so it can be a program name with args.
1082 set dummy cl; ac_word=$2
1083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084 echo "configure:1085: checking for $ac_word" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 if test -n "$CC"; then
1089 ac_cv_prog_CC="$CC" # Let the user override the test.
1091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1093 for ac_dir in $ac_dummy; do
1094 test -z "$ac_dir" && ac_dir=.
1095 if test -f $ac_dir/$ac_word; then
1104 if test -n "$CC"; then
1105 echo "$ac_t""$CC" 1>&6
1107 echo "$ac_t""no" 1>&6
1112 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1115 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1116 echo "configure:1117: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1119 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1120 ac_cpp='$CPP $CPPFLAGS'
1121 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1122 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1123 cross_compiling=$ac_cv_prog_cc_cross
1125 cat > conftest.$ac_ext << EOF
1127 #line 1128 "configure"
1128 #include "confdefs.h"
1132 if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1133 ac_cv_prog_cc_works=yes
1134 # If we can't run a trivial program, we are probably using a cross compiler.
1135 if (./conftest; exit) 2>/dev/null; then
1136 ac_cv_prog_cc_cross=no
1138 ac_cv_prog_cc_cross=yes
1141 echo "configure: failed program was:" >&5
1142 cat conftest.$ac_ext >&5
1143 ac_cv_prog_cc_works=no
1147 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1148 ac_cpp='$CPP $CPPFLAGS'
1149 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1150 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1151 cross_compiling=$ac_cv_prog_cc_cross
1153 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1154 if test $ac_cv_prog_cc_works = no; then
1155 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1157 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1159 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1160 cross_compiling=$ac_cv_prog_cc_cross
1162 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1163 echo "configure:1164: checking whether we are using GNU C" >&5
1164 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 cat > conftest.c <<EOF
1172 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1179 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1181 if test $ac_cv_prog_gcc = yes; then
1187 ac_test_CFLAGS="${CFLAGS+set}"
1188 ac_save_CFLAGS="$CFLAGS"
1190 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1191 echo "configure:1192: checking whether ${CC-cc} accepts -g" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 echo 'void f(){}' > conftest.c
1196 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1205 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1206 if test "$ac_test_CFLAGS" = set; then
1207 CFLAGS="$ac_save_CFLAGS"
1208 elif test $ac_cv_prog_cc_g = yes; then
1209 if test "$GCC" = yes; then
1215 if test "$GCC" = yes; then
1223 . "$srcdir/src/template/$template" || exit
1224 echo "using CFLAGS=$CFLAGS"
1225 # Check if the compiler still works with the template settings
1226 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1227 echo "configure:1228: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1230 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1233 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1234 cross_compiling=$ac_cv_prog_cc_cross
1236 cat > conftest.$ac_ext << EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1243 if { (eval echo configure:1244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1244 ac_cv_prog_cc_works=yes
1245 # If we can't run a trivial program, we are probably using a cross compiler.
1246 if (./conftest; exit) 2>/dev/null; then
1247 ac_cv_prog_cc_cross=no
1249 ac_cv_prog_cc_cross=yes
1252 echo "configure: failed program was:" >&5
1253 cat conftest.$ac_ext >&5
1254 ac_cv_prog_cc_works=no
1258 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1261 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1262 cross_compiling=$ac_cv_prog_cc_cross
1264 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1265 if test $ac_cv_prog_cc_works = no; then
1266 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1268 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1269 echo "configure:1270: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1270 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1271 cross_compiling=$ac_cv_prog_cc_cross
1273 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1274 echo "configure:1275: checking for Cygwin environment" >&5
1275 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1285 #define __CYGWIN__ __CYGWIN32__
1290 if { (eval echo configure:1291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1303 echo "$ac_t""$ac_cv_cygwin" 1>&6
1305 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1306 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1307 echo "configure:1308: checking for mingw32 environment" >&5
1308 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1319 if { (eval echo configure:1320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1323 echo "configure: failed program was:" >&5
1324 cat conftest.$ac_ext >&5
1332 echo "$ac_t""$ac_cv_mingw32" 1>&6
1334 test "$ac_cv_mingw32" = yes && MINGW32=yes
1337 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1338 echo "configure:1339: checking for executable suffix" >&5
1339 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1346 echo 'int main () { return 0; }' > conftest.$ac_ext
1348 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1349 for file in conftest.*; do
1351 *.c | *.o | *.obj) ;;
1352 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1356 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1359 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1364 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1365 echo "$ac_t""${ac_cv_exeext}" 1>&6
1368 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1369 echo "configure:1370: checking how to run the C preprocessor" >&5
1370 # On Suns, sometimes $CPP names a directory.
1371 if test -n "$CPP" && test -d "$CPP"; then
1374 if test -z "$CPP"; then
1375 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 # This must be in double quotes, not single quotes, because CPP may get
1379 # substituted into the Makefile and "${CC-cc}" will confuse make.
1381 # On the NeXT, cc -E runs the code through the compiler's parser,
1382 # not just through cpp.
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1390 { (eval echo configure:1391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1392 if test -z "$ac_err"; then
1396 echo "configure: failed program was:" >&5
1397 cat conftest.$ac_ext >&5
1399 CPP="${CC-cc} -E -traditional-cpp"
1400 cat > conftest.$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1407 { (eval echo configure:1408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1409 if test -z "$ac_err"; then
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1416 CPP="${CC-cc} -nologo -E"
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1424 { (eval echo configure:1425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1426 if test -z "$ac_err"; then
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1440 ac_cv_prog_CPP="$CPP"
1442 CPP="$ac_cv_prog_CPP"
1444 ac_cv_prog_CPP="$CPP"
1446 echo "$ac_t""$CPP" 1>&6
1448 if test $ac_cv_prog_gcc = yes; then
1449 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1450 echo "configure:1451: checking whether ${CC-cc} needs -traditional" >&5
1451 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 ac_pattern="Autoconf.*'x'"
1455 cat > conftest.$ac_ext <<EOF
1456 #line 1457 "configure"
1457 #include "confdefs.h"
1461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1462 egrep "$ac_pattern" >/dev/null 2>&1; then
1464 ac_cv_prog_gcc_traditional=yes
1467 ac_cv_prog_gcc_traditional=no
1472 if test $ac_cv_prog_gcc_traditional = no; then
1473 cat > conftest.$ac_ext <<EOF
1474 #line 1475 "configure"
1475 #include "confdefs.h"
1479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1480 egrep "$ac_pattern" >/dev/null 2>&1; then
1482 ac_cv_prog_gcc_traditional=yes
1489 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1490 if test $ac_cv_prog_gcc_traditional = yes; then
1491 CC="$CC -traditional"
1502 # Create compiler version string
1503 if test x"$GCC" = x"yes" ; then
1504 cc_string="GCC `${CC} --version`"
1508 cat >> confdefs.h <<EOF
1509 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1515 # Automatic dependency tracking
1517 # Check whether --enable-depend was given
1518 if test x"${enable_depend+set}" = xset; then
1519 case $enable_depend in
1527 enableval=$enable_depend
1528 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1530 esac # $enable_depend
1539 # --enable-debug adds -g to compiler flags
1541 # Check whether --enable-debug was given
1542 if test x"${enable_debug+set}" = xset; then
1543 case $enable_debug in
1551 enableval=$enable_debug
1552 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1554 esac # $enable_debug
1562 # Enable assert checks
1564 # Check whether --enable-cassert was given
1565 if test x"${enable_cassert+set}" = xset; then
1566 case $enable_cassert in
1568 cat >> confdefs.h <<\EOF
1569 #define USE_ASSERT_CHECKING 1
1577 enableval=$enable_cassert
1578 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1580 esac # $enable_cassert
1588 # Include directories
1592 # SRCH_INC comes from the template file
1593 for dir in $with_includes $SRCH_INC; do
1594 if test -d "$dir"; then
1595 INCLUDES="$INCLUDES -I$dir"
1597 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1605 # Library directories
1609 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1610 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1611 if test -d "$dir"; then
1612 PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
1614 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1623 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1624 echo "configure:1625: checking whether to build with Tcl" >&5
1625 # Check whether --with-tcl was given
1626 if test x"${with_tcl+set}" = xset; then
1636 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1643 echo "$ac_t""$with_tcl" 1>&6
1646 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1647 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1648 echo "configure:1649: checking whether to build with Tk" >&5
1649 if test "$with_tcl" = yes; then
1650 # Check whether --with-tk was given
1651 if test x"${with_tk+set}" = xset; then
1661 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1671 echo "$ac_t""$with_tk" 1>&6
1675 # We see if the path to the TCL/TK configuration scripts is specified.
1676 # This will override the use of tclsh to find the paths to search.
1678 # Check whether --with-tclconfig was given
1679 if test x"${with_tclconfig+set}" = xset; then
1680 case $with_tclconfig in
1682 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1685 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1687 esac # $with_tclconfig
1690 # We see if the path to the TK configuration scripts is specified.
1691 # This will override the use of tclsh to find the paths to search.
1693 # Check whether --with-tkconfig was given
1694 if test x"${with_tkconfig+set}" = xset; then
1695 case $with_tkconfig in
1697 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1700 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1702 esac # $with_tkconfig
1707 # Optionally build Perl modules (Pg.pm and PL/Perl)
1709 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1710 echo "configure:1711: checking whether to build Perl modules" >&5
1711 # Check whether --with-perl was given
1712 if test x"${with_perl+set}" = xset; then
1722 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1729 echo "$ac_t""$with_perl" 1>&6
1734 # Optionally build Python interface module
1736 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1737 echo "configure:1738: checking whether to build Python modules" >&5
1738 # Check whether --with-python was given
1739 if test x"${with_python+set}" = xset; then
1740 case $with_python in
1742 echo "$ac_t""yes" 1>&6
1743 # Extract the first word of "python", so it can be a program name with args.
1744 set dummy python; ac_word=$2
1745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1746 echo "configure:1747: checking for $ac_word" >&5
1747 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1750 if test -n "$PYTHON"; then
1751 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1755 for ac_dir in $ac_dummy; do
1756 test -z "$ac_dir" && ac_dir=.
1757 if test -f $ac_dir/$ac_word; then
1758 ac_cv_prog_PYTHON="python"
1765 PYTHON="$ac_cv_prog_PYTHON"
1766 if test -n "$PYTHON"; then
1767 echo "$ac_t""$PYTHON" 1>&6
1769 echo "$ac_t""no" 1>&6
1773 if test "${PYTHON+set}" = set ; then
1774 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1775 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1776 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1777 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1778 python_moduledir="${python_prefix}/lib/python${python_version}"
1779 python_extmakefile="${python_configdir}/Makefile.pre.in"
1781 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1782 echo "configure:1783: checking for Python extension makefile" >&5
1783 if test -f "${python_extmakefile}" ; then
1784 echo "$ac_t""found" 1>&6
1786 echo "$ac_t""no" 1>&6
1787 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1788 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1798 { echo "configure: error: Python not found" 1>&2; exit 1; }
1802 echo "$ac_t""no" 1>&6
1805 withval=$with_python
1806 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1811 echo "$ac_t""no" 1>&6
1820 # Check whether --with-krb4 was given
1821 if test x"${with_krb4+set}" = xset; then
1824 krb4_prefix=/usr/athena
1832 krb4_prefix=$withval
1839 if test "$with_krb4" = yes; then
1841 echo "$ac_t""building with Kerberos 4 support" 1>&6
1842 cat >> confdefs.h <<\EOF
1847 if test -d "$krb4_prefix"; then
1848 if test -d "$krb4_prefix/include"; then
1849 INCLUDES="$INCLUDES -I$krb4_prefix/include"
1851 if test -d "$krb4_prefix/lib"; then
1852 krb_libdir="-L$krb4_prefix/lib"
1853 LIBS="$krb_libdir $LIBS"
1856 # Test for these libraries is below
1857 KRB_LIBS="$krb_libdir -lkrb -ldes"
1859 krb_srvtab="/etc/srvtab"
1870 # Check whether --with-krb5 was given
1871 if test x"${with_krb5+set}" = xset; then
1874 krb5_prefix=/usr/athena
1882 krb5_prefix=$withval
1889 if test "$with_krb5" = yes; then
1891 echo "$ac_t""building with Kerberos 5 support" 1>&6
1892 cat >> confdefs.h <<\EOF
1897 if test -d "$krb5_prefix"; then
1898 if test -d "$krb5_prefix/include"; then
1899 INCLUDES="$INCLUDES -I$krb5_prefix/include"
1901 if test -d "$krb5_prefix/lib"; then
1902 krb_libdir="-L$krb5_prefix/lib"
1903 LIBS="$krb_libdir $LIBS"
1907 # Test for these libraries is below
1908 KRB_LIBS="$krb_libdir -lkrb5 -lcrypto -lcom_err"
1910 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1918 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
1919 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
1920 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
1928 # Kerberos configuration parameters
1930 # Check whether --with-krb-srvnam was given
1931 if test x"${with_krb_srvnam+set}" = xset; then
1932 case $with_krb_srvnam in
1934 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
1937 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
1939 esac # $with_krb_srvnam
1941 with_krb_srvnam="postgres"
1943 cat >> confdefs.h <<EOF
1944 #define PG_KRB_SRVNAM "$with_krb_srvnam"
1953 # Check whether --with-openssl was given
1954 if test x"${with_openssl+set}" = xset; then
1955 case $with_openssl in
1957 openssl_prefix=/usr/local/ssl
1963 withval=$with_openssl
1965 openssl_prefix=$withval
1967 esac # $with_openssl
1972 if test "$with_openssl" = yes; then
1974 echo "$ac_t""building with OpenSSL support" 1>&6
1975 cat >> confdefs.h <<\EOF
1980 if test -d "${openssl_prefix}/include" ; then
1981 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
1983 if test -d "${openssl_prefix}/lib" ; then
1984 openssl_libdir="${openssl_prefix}/lib"
1985 LIBS="$LIBS -L${openssl_prefix}/lib"
1987 openssl_libdir="${openssl_prefix}"
1988 LIBS="$LIBS -L${openssl_prefix}"
1997 # OpenSSL and Kerberos 5 both have a `crypto' library, so if you want to
1998 # use both of them you'll have to figure it out yourself.
1999 if test "$with_openssl" = yes && test "$with_krb5" = yes ; then
2000 { echo "configure: error: OpenSSL and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2005 # Optionally enable the building of the ODBC driver
2009 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2010 enable_odbc=$with_odbc
2013 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2014 echo "configure:2015: checking whether to build the ODBC driver" >&5
2015 # Check whether --enable-odbc was given
2016 if test x"${enable_odbc+set}" = xset; then
2017 case $enable_odbc in
2025 enableval=$enable_odbc
2026 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2033 echo "$ac_t""$enable_odbc" 1>&6
2037 # Allow for overriding the default location of the odbcinst.ini
2038 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2039 # Check whether --with-odbcinst was given
2040 if test x"${with_odbcinst+set}" = xset; then
2041 case $with_odbcinst in
2043 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2046 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2049 withval=$with_odbcinst
2050 odbcinst_ini_dir=$withval
2052 esac # $with_odbcinst
2054 odbcinst_ini_dir="\${sysconfdir}"
2060 # Assume system is ELF if it predefines __ELF__ as 1,
2061 # otherwise believe host_os based default.
2063 freebsd1*|freebsd2*) elf=yes;;
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2075 egrep "yes" >/dev/null 2>&1; then
2080 if test "X$elf" = "Xyes" ; then
2093 # Optionally build C++ code (i.e., libpq++)
2095 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2096 echo "configure:2097: checking whether to build C++ modules" >&5
2097 # Check whether --with-CXX was given
2098 if test x"${with_CXX+set}" = xset; then
2116 if test "$with_CXX" = yes; then
2118 echo "$ac_t""yes" 1>&6
2119 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2121 # Extract the first word of "$ac_prog", so it can be a program name with args.
2122 set dummy $ac_prog; ac_word=$2
2123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2124 echo "configure:2125: checking for $ac_word" >&5
2125 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2128 if test -n "$CXX"; then
2129 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2133 for ac_dir in $ac_dummy; do
2134 test -z "$ac_dir" && ac_dir=.
2135 if test -f $ac_dir/$ac_word; then
2136 ac_cv_prog_CXX="$ac_prog"
2143 CXX="$ac_cv_prog_CXX"
2144 if test -n "$CXX"; then
2145 echo "$ac_t""$CXX" 1>&6
2147 echo "$ac_t""no" 1>&6
2150 test -n "$CXX" && break
2152 test -n "$CXX" || CXX="gcc"
2155 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2156 echo "configure:2157: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2159 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2160 ac_cpp='$CXXCPP $CPPFLAGS'
2161 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2162 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2163 cross_compiling=$ac_cv_prog_cxx_cross
2165 cat > conftest.$ac_ext << EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2170 int main(){return(0);}
2172 if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2173 ac_cv_prog_cxx_works=yes
2174 # If we can't run a trivial program, we are probably using a cross compiler.
2175 if (./conftest; exit) 2>/dev/null; then
2176 ac_cv_prog_cxx_cross=no
2178 ac_cv_prog_cxx_cross=yes
2181 echo "configure: failed program was:" >&5
2182 cat conftest.$ac_ext >&5
2183 ac_cv_prog_cxx_works=no
2187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2190 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2191 cross_compiling=$ac_cv_prog_cc_cross
2193 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2194 if test $ac_cv_prog_cxx_works = no; then
2195 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2197 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2198 echo "configure:2199: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2199 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2200 cross_compiling=$ac_cv_prog_cxx_cross
2202 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2203 echo "configure:2204: checking whether we are using GNU C++" >&5
2204 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 cat > conftest.C <<EOF
2212 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2219 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2221 if test $ac_cv_prog_gxx = yes; then
2227 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2228 ac_save_CXXFLAGS="$CXXFLAGS"
2230 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2231 echo "configure:2232: checking whether ${CXX-g++} accepts -g" >&5
2232 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 echo 'void f(){}' > conftest.cc
2236 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2237 ac_cv_prog_cxx_g=yes
2245 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2246 if test "$ac_test_CXXFLAGS" = set; then
2247 CXXFLAGS="$ac_save_CXXFLAGS"
2248 elif test $ac_cv_prog_cxx_g = yes; then
2249 if test "$GXX" = yes; then
2255 if test "$GXX" = yes; then
2262 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2263 echo "configure:2264: checking how to run the C++ preprocessor" >&5
2264 if test -z "$CXXCPP"; then
2265 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2269 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2270 ac_cpp='$CXXCPP $CPPFLAGS'
2271 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2272 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2273 cross_compiling=$ac_cv_prog_cxx_cross
2274 CXXCPP="${CXX-g++} -E"
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2281 { (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2283 if test -z "$ac_err"; then
2287 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5
2293 ac_cv_prog_CXXCPP="$CXXCPP"
2295 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2296 ac_cpp='$CPP $CPPFLAGS'
2297 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2298 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2299 cross_compiling=$ac_cv_prog_cc_cross
2302 CXXCPP="$ac_cv_prog_CXXCPP"
2303 echo "$ac_t""$CXXCPP" 1>&6
2307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2308 ac_cpp='$CXXCPP $CPPFLAGS'
2309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2311 cross_compiling=$ac_cv_prog_cxx_cross
2313 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2314 echo $ac_n "checking for string""... $ac_c" 1>&6
2315 echo "configure:2316: checking for string" >&5
2316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2325 { (eval echo configure:2326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2327 if test -z "$ac_err"; then
2329 eval "ac_cv_header_$ac_safe=yes"
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2335 eval "ac_cv_header_$ac_safe=no"
2339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2340 echo "$ac_t""yes" 1>&6
2341 cat >> confdefs.h <<\EOF
2342 #define HAVE_CXX_STRING_HEADER 1
2346 echo "$ac_t""no" 1>&6
2350 if test x"$ac_cv_header_string" != xyes ; then
2351 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2352 echo "configure:2353: checking for class string in <string.h>" >&5
2353 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2367 if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2369 pgac_cv_class_string_in_string_h=yes
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2374 pgac_cv_class_string_in_string_h=no
2379 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2381 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2382 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2386 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2389 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2390 cross_compiling=$ac_cv_prog_cc_cross
2393 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2394 echo "configure:2395: checking for namespace std in C++" >&5
2395 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2401 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2402 ac_cpp='$CXXCPP $CPPFLAGS'
2403 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2404 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2405 cross_compiling=$ac_cv_prog_cxx_cross
2407 cat > conftest.$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2412 #ifdef HAVE_CXX_STRING_HEADER
2415 using namespace std;
2421 if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2423 pgac_cv_cxx_namespace_std=yes
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2428 pgac_cv_cxx_namespace_std=no
2432 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2433 ac_cpp='$CPP $CPPFLAGS'
2434 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2435 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2436 cross_compiling=$ac_cv_prog_cc_cross
2440 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2442 if test $pgac_cv_cxx_namespace_std = yes ; then
2443 cat >> confdefs.h <<\EOF
2444 #define HAVE_NAMESPACE_STD 1
2450 echo "$ac_t""no" 1>&6
2456 CPPFLAGS="$CPPFLAGS $INCLUDES"
2457 LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
2459 echo "using CPPFLAGS=$CPPFLAGS"
2460 echo "using LDFLAGS=$LDFLAGS"
2463 # Figure out how to invoke "install" and what install options to use.
2465 # Find a good install program. We prefer a C program (faster),
2466 # so one script is as good as another. But avoid the broken or
2467 # incompatible versions:
2468 # SysV /etc/install, /usr/sbin/install
2469 # SunOS /usr/etc/install
2470 # IRIX /sbin/install
2472 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2473 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2474 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2475 # ./install, which can be erroneously created by make from ./install.sh.
2476 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2477 echo "configure:2478: checking for a BSD compatible install" >&5
2478 if test -z "$INSTALL"; then
2479 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2483 for ac_dir in $PATH; do
2484 # Account for people who put trailing slashes in PATH elements.
2486 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2488 # OSF1 and SCO ODT 3.0 have their own names for install.
2489 # Don't use installbsd from OSF since it installs stuff as root
2491 for ac_prog in ginstall scoinst install; do
2492 if test -f $ac_dir/$ac_prog; then
2493 if test $ac_prog = install &&
2494 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2495 # AIX install. It has an incompatible calling convention.
2498 ac_cv_path_install="$ac_dir/$ac_prog -c"
2509 if test "${ac_cv_path_install+set}" = set; then
2510 INSTALL="$ac_cv_path_install"
2512 # As a last resort, use the slow shell script. We don't cache a
2513 # path for INSTALL within a source directory, because that will
2514 # break other packages using the cache if that directory is
2515 # removed, or if the path is relative.
2516 INSTALL="$ac_install_sh"
2519 echo "$ac_t""$INSTALL" 1>&6
2521 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2522 # It thinks the first close brace ends the variable substitution.
2523 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2525 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2527 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2529 # When Autoconf chooses install-sh as install program it tries to generate
2530 # a relative path to it in each makefile where it subsitutes it. This clashes
2531 # with our Makefile.global concept. This workaround helps.
2533 *install-sh*) INSTALL='\${SHELL} \${top_srcdir}/config/install-sh -c';;
2536 # Fix Autoconf's brain-dead defaults for script installs.
2537 INSTALL_SCRIPT="\${INSTALL} -m 755"
2539 # HPUX wants shared libs to be mode 555. Add your platform's special
2540 # needs here if necessary.
2542 hpux*) INSTL_SHLIB_OPTS="-m 555" ;;
2543 *) INSTL_SHLIB_OPTS="-m 644" ;;
2546 INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
2550 mkinstalldirs="\$(SHELL) \$(top_srcdir)/config/mkinstalldirs"
2554 for ac_prog in gawk mawk nawk awk
2556 # Extract the first word of "$ac_prog", so it can be a program name with args.
2557 set dummy $ac_prog; ac_word=$2
2558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2559 echo "configure:2560: checking for $ac_word" >&5
2560 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6
2563 if test -n "$AWK"; then
2564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2568 for ac_dir in $ac_dummy; do
2569 test -z "$ac_dir" && ac_dir=.
2570 if test -f $ac_dir/$ac_word; then
2571 ac_cv_prog_AWK="$ac_prog"
2578 AWK="$ac_cv_prog_AWK"
2579 if test -n "$AWK"; then
2580 echo "$ac_t""$AWK" 1>&6
2582 echo "$ac_t""no" 1>&6
2585 test -n "$AWK" && break
2588 echo $ac_n "checking for flex""... $ac_c" 1>&6
2589 echo "configure:2590: checking for flex" >&5
2590 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 # Let the user override the test
2594 if test -n "$FLEX"; then
2595 pgac_cv_path_flex=$FLEX
2599 for pgac_dir in $PATH; do
2600 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2603 for pgac_prog in flex lex; do
2604 pgac_candidate="$pgac_dir/$pgac_prog"
2605 if test -f "$pgac_candidate" \
2606 && $pgac_candidate --version >/dev/null 2>&1
2608 echo '%%' > conftest.l
2609 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2610 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2611 pgac_broken_flex=$pgac_candidate
2615 pgac_cv_path_flex=$pgac_candidate
2623 : ${pgac_cv_path_flex=no}
2628 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2629 if test x"$pgac_cv_path_flex" = x"no"; then
2630 if test -n "$pgac_broken_flex"; then
2631 echo "configure: warning:
2633 The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2634 should get version 2.5.4 or later.
2638 echo "configure: warning:
2640 Without Flex you won't be able to build PostgreSQL from scratch, or change
2641 any of the scanner definition files. You can obtain Flex from a GNU mirror
2642 site. (If you are using the official distribution of PostgreSQL then you
2643 do not need to worry about this because the lexer files are pre-generated.)
2647 if test x"$pgac_cv_path_flex" = x"no"; then
2650 FLEX=$pgac_cv_path_flex
2656 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2657 echo "configure:2658: checking whether ln -s works" >&5
2658 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2662 if ln -s X conftestdata 2>/dev/null
2665 ac_cv_prog_LN_S="ln -s"
2670 LN_S="$ac_cv_prog_LN_S"
2671 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2672 echo "$ac_t""yes" 1>&6
2674 echo "$ac_t""no" 1>&6
2677 # Extract the first word of "ranlib", so it can be a program name with args.
2678 set dummy ranlib; ac_word=$2
2679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_word" >&5
2681 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 if test -n "$RANLIB"; then
2685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2689 for ac_dir in $ac_dummy; do
2690 test -z "$ac_dir" && ac_dir=.
2691 if test -f $ac_dir/$ac_word; then
2692 ac_cv_prog_RANLIB="ranlib"
2697 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2700 RANLIB="$ac_cv_prog_RANLIB"
2701 if test -n "$RANLIB"; then
2702 echo "$ac_t""$RANLIB" 1>&6
2704 echo "$ac_t""no" 1>&6
2707 # Extract the first word of "tar", so it can be a program name with args.
2708 set dummy tar; ac_word=$2
2709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $ac_word" >&5
2711 if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2716 ac_cv_path_tar="$tar" # Let the user override the test with a path.
2719 ac_cv_path_tar="$tar" # Let the user override the test with a dos path.
2722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2724 for ac_dir in $ac_dummy; do
2725 test -z "$ac_dir" && ac_dir=.
2726 if test -f $ac_dir/$ac_word; then
2727 ac_cv_path_tar="$ac_dir/$ac_word"
2735 tar="$ac_cv_path_tar"
2736 if test -n "$tar"; then
2737 echo "$ac_t""$tar" 1>&6
2739 echo "$ac_t""no" 1>&6
2744 # Extract the first word of "$ac_prog", so it can be a program name with args.
2745 set dummy $ac_prog; ac_word=$2
2746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2747 echo "configure:2748: checking for $ac_word" >&5
2748 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 if test -n "$PERL"; then
2752 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2756 for ac_dir in $ac_dummy; do
2757 test -z "$ac_dir" && ac_dir=.
2758 if test -f $ac_dir/$ac_word; then
2759 ac_cv_prog_PERL="$ac_prog"
2766 PERL="$ac_cv_prog_PERL"
2767 if test -n "$PERL"; then
2768 echo "$ac_t""$PERL" 1>&6
2770 echo "$ac_t""no" 1>&6
2773 test -n "$PERL" && break
2776 for ac_prog in 'bison -y' byacc
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy $ac_prog; ac_word=$2
2780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2781 echo "configure:2782: checking for $ac_word" >&5
2782 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 if test -n "$YACC"; then
2786 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2790 for ac_dir in $ac_dummy; do
2791 test -z "$ac_dir" && ac_dir=.
2792 if test -f $ac_dir/$ac_word; then
2793 ac_cv_prog_YACC="$ac_prog"
2800 YACC="$ac_cv_prog_YACC"
2801 if test -n "$YACC"; then
2802 echo "$ac_t""$YACC" 1>&6
2804 echo "$ac_t""no" 1>&6
2807 test -n "$YACC" && break
2809 test -n "$YACC" || YACC="yacc"
2812 if test "$with_tk" = yes; then
2813 # Extract the first word of "wish", so it can be a program name with args.
2814 set dummy wish; ac_word=$2
2815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_word" >&5
2817 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2822 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
2825 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
2828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2830 for ac_dir in $ac_dummy; do
2831 test -z "$ac_dir" && ac_dir=.
2832 if test -f $ac_dir/$ac_word; then
2833 ac_cv_path_WISH="$ac_dir/$ac_word"
2841 WISH="$ac_cv_path_WISH"
2842 if test -n "$WISH"; then
2843 echo "$ac_t""$WISH" 1>&6
2845 echo "$ac_t""no" 1>&6
2848 test -z "$WISH" && { echo "configure: error: \`wish' is required for Tk support" 1>&2; exit 1; }
2856 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
2857 echo "configure:2858: checking for main in -lsfio" >&5
2858 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
2859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2862 ac_save_LIBS="$LIBS"
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2872 if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2874 eval "ac_cv_lib_$ac_lib_var=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2879 eval "ac_cv_lib_$ac_lib_var=no"
2882 LIBS="$ac_save_LIBS"
2885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2886 echo "$ac_t""yes" 1>&6
2887 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2889 cat >> confdefs.h <<EOF
2890 #define $ac_tr_lib 1
2896 echo "$ac_t""no" 1>&6
2899 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2900 echo "configure:2901: checking for main in -lncurses" >&5
2901 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 ac_save_LIBS="$LIBS"
2906 LIBS="-lncurses $LIBS"
2907 cat > conftest.$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2915 if { (eval echo configure:2916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2917 eval "ac_cv_lib_$ac_lib_var=yes"
2919 echo "configure: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2922 eval "ac_cv_lib_$ac_lib_var=no"
2925 LIBS="$ac_save_LIBS"
2928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2929 echo "$ac_t""yes" 1>&6
2930 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2931 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2932 cat >> confdefs.h <<EOF
2933 #define $ac_tr_lib 1
2936 LIBS="-lncurses $LIBS"
2939 echo "$ac_t""no" 1>&6
2940 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2941 echo "configure:2942: checking for main in -lcurses" >&5
2942 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2946 ac_save_LIBS="$LIBS"
2947 LIBS="-lcurses $LIBS"
2948 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2956 if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2958 eval "ac_cv_lib_$ac_lib_var=yes"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2963 eval "ac_cv_lib_$ac_lib_var=no"
2966 LIBS="$ac_save_LIBS"
2969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2970 echo "$ac_t""yes" 1>&6
2971 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2972 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2973 cat >> confdefs.h <<EOF
2974 #define $ac_tr_lib 1
2977 LIBS="-lcurses $LIBS"
2980 echo "$ac_t""no" 1>&6
2985 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
2986 echo "configure:2987: checking for main in -ltermcap" >&5
2987 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
2988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 ac_save_LIBS="$LIBS"
2992 LIBS="-ltermcap $LIBS"
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
3001 if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3003 eval "ac_cv_lib_$ac_lib_var=yes"
3005 echo "configure: failed program was:" >&5
3006 cat conftest.$ac_ext >&5
3008 eval "ac_cv_lib_$ac_lib_var=no"
3011 LIBS="$ac_save_LIBS"
3014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3015 echo "$ac_t""yes" 1>&6
3016 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3018 cat >> confdefs.h <<EOF
3019 #define $ac_tr_lib 1
3022 LIBS="-ltermcap $LIBS"
3025 echo "$ac_t""no" 1>&6
3028 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
3029 echo "configure:3030: checking for main in -lreadline" >&5
3030 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
3031 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 ac_save_LIBS="$LIBS"
3035 LIBS="-lreadline $LIBS"
3036 cat > conftest.$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3044 if { (eval echo configure:3045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3046 eval "ac_cv_lib_$ac_lib_var=yes"
3048 echo "configure: failed program was:" >&5
3049 cat conftest.$ac_ext >&5
3051 eval "ac_cv_lib_$ac_lib_var=no"
3054 LIBS="$ac_save_LIBS"
3057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3058 echo "$ac_t""yes" 1>&6
3059 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3060 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3061 cat >> confdefs.h <<EOF
3062 #define $ac_tr_lib 1
3065 LIBS="-lreadline $LIBS"
3068 echo "$ac_t""no" 1>&6
3071 echo $ac_n "checking for using_history in -lreadline""... $ac_c" 1>&6
3072 echo "configure:3073: checking for using_history in -lreadline" >&5
3073 ac_lib_var=`echo readline'_'using_history | sed 'y%./+-%__p_%'`
3074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3077 ac_save_LIBS="$LIBS"
3078 LIBS="-lreadline $LIBS"
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 /* Override any gcc2 internal prototype to avoid an error. */
3083 /* We use char because int might match the return type of a gcc2
3084 builtin and then its argument prototype would still apply. */
3085 char using_history();
3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3093 eval "ac_cv_lib_$ac_lib_var=yes"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3098 eval "ac_cv_lib_$ac_lib_var=no"
3101 LIBS="$ac_save_LIBS"
3104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3105 echo "$ac_t""yes" 1>&6
3106 cat >> confdefs.h <<\EOF
3107 #define HAVE_HISTORY_IN_READLINE 1
3111 echo "$ac_t""no" 1>&6
3112 echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
3113 echo "configure:3114: checking for main in -lhistory" >&5
3114 ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
3115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 ac_save_LIBS="$LIBS"
3119 LIBS="-lhistory $LIBS"
3120 cat > conftest.$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3128 if { (eval echo configure:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3130 eval "ac_cv_lib_$ac_lib_var=yes"
3132 echo "configure: failed program was:" >&5
3133 cat conftest.$ac_ext >&5
3135 eval "ac_cv_lib_$ac_lib_var=no"
3138 LIBS="$ac_save_LIBS"
3141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3142 echo "$ac_t""yes" 1>&6
3143 ac_tr_lib=HAVE_LIB`echo history | sed -e 's/^a-zA-Z0-9_/_/g' \
3144 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3145 cat >> confdefs.h <<EOF
3146 #define $ac_tr_lib 1
3149 LIBS="-lhistory $LIBS"
3152 echo "$ac_t""no" 1>&6
3158 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3160 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3161 echo "configure:3162: checking for main in -lbsd" >&5
3162 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 ac_save_LIBS="$LIBS"
3168 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3176 if { (eval echo configure:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3178 eval "ac_cv_lib_$ac_lib_var=yes"
3180 echo "configure: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3183 eval "ac_cv_lib_$ac_lib_var=no"
3186 LIBS="$ac_save_LIBS"
3189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3190 echo "$ac_t""yes" 1>&6
3191 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3192 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3193 cat >> confdefs.h <<EOF
3194 #define $ac_tr_lib 1
3200 echo "$ac_t""no" 1>&6
3204 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3205 echo "configure:3206: checking for setproctitle in -lutil" >&5
3206 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3207 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 ac_save_LIBS="$LIBS"
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 /* Override any gcc2 internal prototype to avoid an error. */
3216 /* We use char because int might match the return type of a gcc2
3217 builtin and then its argument prototype would still apply. */
3218 char setproctitle();
3224 if { (eval echo configure:3225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3226 eval "ac_cv_lib_$ac_lib_var=yes"
3228 echo "configure: failed program was:" >&5
3229 cat conftest.$ac_ext >&5
3231 eval "ac_cv_lib_$ac_lib_var=no"
3234 LIBS="$ac_save_LIBS"
3237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3238 echo "$ac_t""yes" 1>&6
3239 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3240 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3241 cat >> confdefs.h <<EOF
3242 #define $ac_tr_lib 1
3248 echo "$ac_t""no" 1>&6
3251 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3252 echo "configure:3253: checking for main in -lm" >&5
3253 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3255 echo $ac_n "(cached) $ac_c" 1>&6
3257 ac_save_LIBS="$LIBS"
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3267 if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3269 eval "ac_cv_lib_$ac_lib_var=yes"
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3274 eval "ac_cv_lib_$ac_lib_var=no"
3277 LIBS="$ac_save_LIBS"
3280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3281 echo "$ac_t""yes" 1>&6
3282 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3284 cat >> confdefs.h <<EOF
3285 #define $ac_tr_lib 1
3291 echo "$ac_t""no" 1>&6
3294 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3295 echo "configure:3296: checking for main in -ldl" >&5
3296 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 ac_save_LIBS="$LIBS"
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3310 if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312 eval "ac_cv_lib_$ac_lib_var=yes"
3314 echo "configure: failed program was:" >&5
3315 cat conftest.$ac_ext >&5
3317 eval "ac_cv_lib_$ac_lib_var=no"
3320 LIBS="$ac_save_LIBS"
3323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3325 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3327 cat >> confdefs.h <<EOF
3328 #define $ac_tr_lib 1
3334 echo "$ac_t""no" 1>&6
3337 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3338 echo "configure:3339: checking for main in -lsocket" >&5
3339 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 ac_save_LIBS="$LIBS"
3344 LIBS="-lsocket $LIBS"
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3353 if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355 eval "ac_cv_lib_$ac_lib_var=yes"
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3360 eval "ac_cv_lib_$ac_lib_var=no"
3363 LIBS="$ac_save_LIBS"
3366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3367 echo "$ac_t""yes" 1>&6
3368 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3370 cat >> confdefs.h <<EOF
3371 #define $ac_tr_lib 1
3374 LIBS="-lsocket $LIBS"
3377 echo "$ac_t""no" 1>&6
3380 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3381 echo "configure:3382: checking for main in -lnsl" >&5
3382 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 ac_save_LIBS="$LIBS"
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3396 if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3398 eval "ac_cv_lib_$ac_lib_var=yes"
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3403 eval "ac_cv_lib_$ac_lib_var=no"
3406 LIBS="$ac_save_LIBS"
3409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3411 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3413 cat >> confdefs.h <<EOF
3414 #define $ac_tr_lib 1
3420 echo "$ac_t""no" 1>&6
3423 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3424 echo "configure:3425: checking for main in -lipc" >&5
3425 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3429 ac_save_LIBS="$LIBS"
3431 cat > conftest.$ac_ext <<EOF
3432 #line 3433 "configure"
3433 #include "confdefs.h"
3439 if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3441 eval "ac_cv_lib_$ac_lib_var=yes"
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3446 eval "ac_cv_lib_$ac_lib_var=no"
3449 LIBS="$ac_save_LIBS"
3452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3455 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3456 cat >> confdefs.h <<EOF
3457 #define $ac_tr_lib 1
3463 echo "$ac_t""no" 1>&6
3466 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3467 echo "configure:3468: checking for main in -lIPC" >&5
3468 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3469 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 ac_save_LIBS="$LIBS"
3474 cat > conftest.$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3482 if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3484 eval "ac_cv_lib_$ac_lib_var=yes"
3486 echo "configure: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3489 eval "ac_cv_lib_$ac_lib_var=no"
3492 LIBS="$ac_save_LIBS"
3495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3498 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3499 cat >> confdefs.h <<EOF
3500 #define $ac_tr_lib 1
3506 echo "$ac_t""no" 1>&6
3509 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3510 echo "configure:3511: checking for main in -llc" >&5
3511 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 ac_save_LIBS="$LIBS"
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3525 if { (eval echo configure:3526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3527 eval "ac_cv_lib_$ac_lib_var=yes"
3529 echo "configure: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3532 eval "ac_cv_lib_$ac_lib_var=no"
3535 LIBS="$ac_save_LIBS"
3538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3539 echo "$ac_t""yes" 1>&6
3540 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3541 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3542 cat >> confdefs.h <<EOF
3543 #define $ac_tr_lib 1
3549 echo "$ac_t""no" 1>&6
3552 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3553 echo "configure:3554: checking for main in -ldld" >&5
3554 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3558 ac_save_LIBS="$LIBS"
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3568 if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3570 eval "ac_cv_lib_$ac_lib_var=yes"
3572 echo "configure: failed program was:" >&5
3573 cat conftest.$ac_ext >&5
3575 eval "ac_cv_lib_$ac_lib_var=no"
3578 LIBS="$ac_save_LIBS"
3581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3582 echo "$ac_t""yes" 1>&6
3583 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3584 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3585 cat >> confdefs.h <<EOF
3586 #define $ac_tr_lib 1
3592 echo "$ac_t""no" 1>&6
3595 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
3596 echo "configure:3597: checking for main in -lln" >&5
3597 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
3598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3599 echo $ac_n "(cached) $ac_c" 1>&6
3601 ac_save_LIBS="$LIBS"
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3611 if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3613 eval "ac_cv_lib_$ac_lib_var=yes"
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3618 eval "ac_cv_lib_$ac_lib_var=no"
3621 LIBS="$ac_save_LIBS"
3624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3625 echo "$ac_t""yes" 1>&6
3626 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3628 cat >> confdefs.h <<EOF
3629 #define $ac_tr_lib 1
3635 echo "$ac_t""no" 1>&6
3638 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3639 echo "configure:3640: checking for main in -lld" >&5
3640 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3642 echo $ac_n "(cached) $ac_c" 1>&6
3644 ac_save_LIBS="$LIBS"
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3654 if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3656 eval "ac_cv_lib_$ac_lib_var=yes"
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3661 eval "ac_cv_lib_$ac_lib_var=no"
3664 LIBS="$ac_save_LIBS"
3667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3668 echo "$ac_t""yes" 1>&6
3669 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3670 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3671 cat >> confdefs.h <<EOF
3672 #define $ac_tr_lib 1
3678 echo "$ac_t""no" 1>&6
3681 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3682 echo "configure:3683: checking for main in -lcompat" >&5
3683 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 ac_save_LIBS="$LIBS"
3688 LIBS="-lcompat $LIBS"
3689 cat > conftest.$ac_ext <<EOF
3690 #line 3691 "configure"
3691 #include "confdefs.h"
3697 if { (eval echo configure:3698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3699 eval "ac_cv_lib_$ac_lib_var=yes"
3701 echo "configure: failed program was:" >&5
3702 cat conftest.$ac_ext >&5
3704 eval "ac_cv_lib_$ac_lib_var=no"
3707 LIBS="$ac_save_LIBS"
3710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3711 echo "$ac_t""yes" 1>&6
3712 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3713 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3714 cat >> confdefs.h <<EOF
3715 #define $ac_tr_lib 1
3718 LIBS="-lcompat $LIBS"
3721 echo "$ac_t""no" 1>&6
3724 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3725 echo "configure:3726: checking for main in -lBSD" >&5
3726 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 ac_save_LIBS="$LIBS"
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3740 if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3742 eval "ac_cv_lib_$ac_lib_var=yes"
3744 echo "configure: failed program was:" >&5
3745 cat conftest.$ac_ext >&5
3747 eval "ac_cv_lib_$ac_lib_var=no"
3750 LIBS="$ac_save_LIBS"
3753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3754 echo "$ac_t""yes" 1>&6
3755 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3756 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3757 cat >> confdefs.h <<EOF
3758 #define $ac_tr_lib 1
3764 echo "$ac_t""no" 1>&6
3767 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3768 echo "configure:3769: checking for main in -lgen" >&5
3769 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 ac_save_LIBS="$LIBS"
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3783 if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 eval "ac_cv_lib_$ac_lib_var=yes"
3787 echo "configure: failed program was:" >&5
3788 cat conftest.$ac_ext >&5
3790 eval "ac_cv_lib_$ac_lib_var=no"
3793 LIBS="$ac_save_LIBS"
3796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3800 cat >> confdefs.h <<EOF
3801 #define $ac_tr_lib 1
3807 echo "$ac_t""no" 1>&6
3810 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3811 echo "configure:3812: checking for main in -lPW" >&5
3812 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 ac_save_LIBS="$LIBS"
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 eval "ac_cv_lib_$ac_lib_var=yes"
3830 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5
3833 eval "ac_cv_lib_$ac_lib_var=no"
3836 LIBS="$ac_save_LIBS"
3839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3842 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3843 cat >> confdefs.h <<EOF
3844 #define $ac_tr_lib 1
3850 echo "$ac_t""no" 1>&6
3854 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
3855 echo "configure:3856: checking for library containing crypt" >&5
3856 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3859 ac_func_search_save_LIBS="$LIBS"
3860 ac_cv_search_crypt="no"
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */
3873 if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3875 ac_cv_search_crypt="none required"
3877 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
3881 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
3882 LIBS="-l$i $ac_func_search_save_LIBS"
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3886 /* Override any gcc2 internal prototype to avoid an error. */
3887 /* We use char because int might match the return type of a gcc2
3888 builtin and then its argument prototype would still apply. */
3895 if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3897 ac_cv_search_crypt="-l$i"
3900 echo "configure: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3905 LIBS="$ac_func_search_save_LIBS"
3908 echo "$ac_t""$ac_cv_search_crypt" 1>&6
3909 if test "$ac_cv_search_crypt" != "no"; then
3910 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3915 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
3916 echo "configure:3917: checking for inflate in -lz" >&5
3917 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
3918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 ac_save_LIBS="$LIBS"
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3935 if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3937 eval "ac_cv_lib_$ac_lib_var=yes"
3939 echo "configure: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3942 eval "ac_cv_lib_$ac_lib_var=no"
3945 LIBS="$ac_save_LIBS"
3948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3950 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3951 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3952 cat >> confdefs.h <<EOF
3953 #define $ac_tr_lib 1
3959 echo "$ac_t""no" 1>&6
3963 if test "$with_krb4" = yes ; then
3964 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
3965 echo "configure:3966: checking for des_encrypt in -ldes" >&5
3966 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
3967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 ac_save_LIBS="$LIBS"
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3986 eval "ac_cv_lib_$ac_lib_var=yes"
3988 echo "configure: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3991 eval "ac_cv_lib_$ac_lib_var=no"
3994 LIBS="$ac_save_LIBS"
3997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3998 echo "$ac_t""yes" 1>&6
3999 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4000 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4001 cat >> confdefs.h <<EOF
4002 #define $ac_tr_lib 1
4008 echo "$ac_t""no" 1>&6
4009 { echo "configure: error: library \`des' is required for Kerberos 4" 1>&2; exit 1; }
4012 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4013 echo "configure:4014: checking for krb_sendauth in -lkrb" >&5
4014 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4016 echo $ac_n "(cached) $ac_c" 1>&6
4018 ac_save_LIBS="$LIBS"
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure"
4022 #include "confdefs.h"
4023 /* Override any gcc2 internal prototype to avoid an error. */
4024 /* We use char because int might match the return type of a gcc2
4025 builtin and then its argument prototype would still apply. */
4026 char krb_sendauth();
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4034 eval "ac_cv_lib_$ac_lib_var=yes"
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4039 eval "ac_cv_lib_$ac_lib_var=no"
4042 LIBS="$ac_save_LIBS"
4045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4046 echo "$ac_t""yes" 1>&6
4047 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4048 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4049 cat >> confdefs.h <<EOF
4050 #define $ac_tr_lib 1
4056 echo "$ac_t""no" 1>&6
4057 { echo "configure: error: library \`krb' is required for Kerberos 4" 1>&2; exit 1; }
4062 if test "$with_krb5" = yes ; then
4063 echo $ac_n "checking for main in -lcom_err""... $ac_c" 1>&6
4064 echo "configure:4065: checking for main in -lcom_err" >&5
4065 ac_lib_var=`echo com_err'_'main | sed 'y%./+-%__p_%'`
4066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4069 ac_save_LIBS="$LIBS"
4070 LIBS="-lcom_err $LIBS"
4071 cat > conftest.$ac_ext <<EOF
4072 #line 4073 "configure"
4073 #include "confdefs.h"
4079 if { (eval echo configure:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4081 eval "ac_cv_lib_$ac_lib_var=yes"
4083 echo "configure: failed program was:" >&5
4084 cat conftest.$ac_ext >&5
4086 eval "ac_cv_lib_$ac_lib_var=no"
4089 LIBS="$ac_save_LIBS"
4092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4093 echo "$ac_t""yes" 1>&6
4094 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4095 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4096 cat >> confdefs.h <<EOF
4097 #define $ac_tr_lib 1
4100 LIBS="-lcom_err $LIBS"
4103 echo "$ac_t""no" 1>&6
4104 { echo "configure: error: library \`com_err' is required for Kerberos 5" 1>&2; exit 1; }
4107 echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
4108 echo "configure:4109: checking for main in -lcrypto" >&5
4109 ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
4110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4113 ac_save_LIBS="$LIBS"
4114 LIBS="-lcrypto $LIBS"
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4123 if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4125 eval "ac_cv_lib_$ac_lib_var=yes"
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4130 eval "ac_cv_lib_$ac_lib_var=no"
4133 LIBS="$ac_save_LIBS"
4136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4137 echo "$ac_t""yes" 1>&6
4138 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4139 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4140 cat >> confdefs.h <<EOF
4141 #define $ac_tr_lib 1
4144 LIBS="-lcrypto $LIBS"
4147 echo "$ac_t""no" 1>&6
4148 { echo "configure: error: library \`crypto' is required for Kerberos 5" 1>&2; exit 1; }
4151 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
4152 echo "configure:4153: checking for main in -lkrb5" >&5
4153 ac_lib_var=`echo krb5'_'main | sed 'y%./+-%__p_%'`
4154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 ac_save_LIBS="$LIBS"
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4167 if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4169 eval "ac_cv_lib_$ac_lib_var=yes"
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4174 eval "ac_cv_lib_$ac_lib_var=no"
4177 LIBS="$ac_save_LIBS"
4180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4181 echo "$ac_t""yes" 1>&6
4182 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4183 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4184 cat >> confdefs.h <<EOF
4185 #define $ac_tr_lib 1
4191 echo "$ac_t""no" 1>&6
4192 { echo "configure: error: library \`krb5' is required for Kerberos 5" 1>&2; exit 1; }
4197 if test "$with_openssl" = yes ; then
4198 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4199 echo "configure:4200: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4200 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4204 ac_save_LIBS="$LIBS"
4205 LIBS="-lcrypto $LIBS"
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char CRYPTO_new_ex_data();
4215 CRYPTO_new_ex_data()
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4220 eval "ac_cv_lib_$ac_lib_var=yes"
4222 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4225 eval "ac_cv_lib_$ac_lib_var=no"
4228 LIBS="$ac_save_LIBS"
4231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4232 echo "$ac_t""yes" 1>&6
4233 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4234 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4235 cat >> confdefs.h <<EOF
4236 #define $ac_tr_lib 1
4239 LIBS="-lcrypto $LIBS"
4242 echo "$ac_t""no" 1>&6
4243 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4246 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4247 echo "configure:4248: checking for SSL_library_init in -lssl" >&5
4248 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 ac_save_LIBS="$LIBS"
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* Override any gcc2 internal prototype to avoid an error. */
4258 /* We use char because int might match the return type of a gcc2
4259 builtin and then its argument prototype would still apply. */
4260 char SSL_library_init();
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4268 eval "ac_cv_lib_$ac_lib_var=yes"
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4273 eval "ac_cv_lib_$ac_lib_var=no"
4276 LIBS="$ac_save_LIBS"
4279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4281 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4282 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4283 cat >> confdefs.h <<EOF
4284 #define $ac_tr_lib 1
4290 echo "$ac_t""no" 1>&6
4291 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4300 for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h netinet/tcp.h pwd.h sys/pstat.h sys/select.h sys/socket.h sys/types.h sys/un.h termios.h
4302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4304 echo "configure:4305: checking for $ac_hdr" >&5
4305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4314 { (eval echo configure:4315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4316 if test -z "$ac_err"; then
4318 eval "ac_cv_header_$ac_safe=yes"
4321 echo "configure: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4324 eval "ac_cv_header_$ac_safe=no"
4328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4329 echo "$ac_t""yes" 1>&6
4330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4331 cat >> confdefs.h <<EOF
4332 #define $ac_tr_hdr 1
4336 echo "$ac_t""no" 1>&6
4341 for ac_hdr in readline/readline.h readline.h
4343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4345 echo "configure:4346: checking for $ac_hdr" >&5
4346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 cat > conftest.$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4355 { (eval echo configure:4356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4357 if test -z "$ac_err"; then
4359 eval "ac_cv_header_$ac_safe=yes"
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4365 eval "ac_cv_header_$ac_safe=no"
4369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4370 echo "$ac_t""yes" 1>&6
4371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4372 cat >> confdefs.h <<EOF
4373 #define $ac_tr_hdr 1
4377 echo "$ac_t""no" 1>&6
4381 for ac_hdr in readline/history.h history.h
4383 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4385 echo "configure:4386: checking for $ac_hdr" >&5
4386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4395 { (eval echo configure:4396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4397 if test -z "$ac_err"; then
4399 eval "ac_cv_header_$ac_safe=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 eval "ac_cv_header_$ac_safe=no"
4409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4412 cat >> confdefs.h <<EOF
4413 #define $ac_tr_hdr 1
4417 echo "$ac_t""no" 1>&6
4422 if test "$with_krb4" = yes ; then
4423 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4424 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4425 echo "configure:4426: checking for krb.h" >&5
4426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4427 echo $ac_n "(cached) $ac_c" 1>&6
4429 cat > conftest.$ac_ext <<EOF
4430 #line 4431 "configure"
4431 #include "confdefs.h"
4434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4435 { (eval echo configure:4436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4437 if test -z "$ac_err"; then
4439 eval "ac_cv_header_$ac_safe=yes"
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4445 eval "ac_cv_header_$ac_safe=no"
4449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4450 echo "$ac_t""yes" 1>&6
4453 echo "$ac_t""no" 1>&6
4454 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4459 if test "$with_krb5" = yes ; then
4460 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4461 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4462 echo "configure:4463: checking for krb5.h" >&5
4463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4472 { (eval echo configure:4473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4474 if test -z "$ac_err"; then
4476 eval "ac_cv_header_$ac_safe=yes"
4479 echo "configure: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4482 eval "ac_cv_header_$ac_safe=no"
4486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4490 echo "$ac_t""no" 1>&6
4491 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4494 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4495 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4496 echo "configure:4497: checking for com_err.h" >&5
4497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4503 #include <com_err.h>
4505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4506 { (eval echo configure:4507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4508 if test -z "$ac_err"; then
4510 eval "ac_cv_header_$ac_safe=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_header_$ac_safe=no"
4520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4524 echo "$ac_t""no" 1>&6
4525 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4530 if test "$with_openssl" = yes ; then
4531 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4532 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4533 echo "configure:4534: checking for openssl/ssl.h" >&5
4534 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4537 cat > conftest.$ac_ext <<EOF
4538 #line 4539 "configure"
4539 #include "confdefs.h"
4540 #include <openssl/ssl.h>
4542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4543 { (eval echo configure:4544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4545 if test -z "$ac_err"; then
4547 eval "ac_cv_header_$ac_safe=yes"
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4553 eval "ac_cv_header_$ac_safe=no"
4557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4558 echo "$ac_t""yes" 1>&6
4561 echo "$ac_t""no" 1>&6
4562 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4565 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4566 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4567 echo "configure:4568: checking for openssl/err.h" >&5
4568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4574 #include <openssl/err.h>
4576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4577 { (eval echo configure:4578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4579 if test -z "$ac_err"; then
4581 eval "ac_cv_header_$ac_safe=yes"
4584 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4587 eval "ac_cv_header_$ac_safe=no"
4591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4595 echo "$ac_t""no" 1>&6
4596 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
4603 ## Types, structures, compiler characteristics
4605 echo $ac_n "checking for working const""... $ac_c" 1>&6
4606 echo "configure:4607: checking for working const" >&5
4607 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4610 cat > conftest.$ac_ext <<EOF
4611 #line 4612 "configure"
4612 #include "confdefs.h"
4616 /* Ultrix mips cc rejects this. */
4617 typedef int charset[2]; const charset x;
4618 /* SunOS 4.1.1 cc rejects this. */
4619 char const *const *ccp;
4621 /* NEC SVR4.0.2 mips cc rejects this. */
4622 struct point {int x, y;};
4623 static struct point const zero = {0,0};
4624 /* AIX XL C 1.02.0.0 rejects this.
4625 It does not let you subtract one const X* pointer from another in an arm
4626 of an if-expression whose if-part is not a constant expression */
4627 const char *g = "string";
4628 ccp = &g + (g ? g-g : 0);
4629 /* HPUX 7.0 cc rejects these. */
4632 ccp = (char const *const *) p;
4633 { /* SCO 3.2v4 cc rejects this. */
4635 char const *s = 0 ? (char *) 0 : (char const *) 0;
4639 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4641 const int *foo = &x[0];
4644 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4645 typedef const int *iptr;
4649 { /* AIX XL C 1.02.0.0 rejects this saying
4650 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4651 struct s { int j; const int *ap[3]; };
4652 struct s *b; b->j = 5;
4654 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4660 if { (eval echo configure:4661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4664 echo "configure: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4672 echo "$ac_t""$ac_cv_c_const" 1>&6
4673 if test $ac_cv_c_const = no; then
4674 cat >> confdefs.h <<\EOF
4680 echo $ac_n "checking for inline""... $ac_c" 1>&6
4681 echo "configure:4682: checking for inline" >&5
4682 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4686 for ac_kw in inline __inline__ __inline; do
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4695 if { (eval echo configure:4696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4697 ac_cv_c_inline=$ac_kw; break
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4707 echo "$ac_t""$ac_cv_c_inline" 1>&6
4708 case "$ac_cv_c_inline" in
4710 no) cat >> confdefs.h <<\EOF
4714 *) cat >> confdefs.h <<EOF
4715 #define inline $ac_cv_c_inline
4722 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
4723 echo "configure:4724: checking for preprocessor stringizing operator" >&5
4724 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4733 char *s = x(teststring);
4736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4737 egrep "#teststring" >/dev/null 2>&1; then
4739 ac_cv_c_stringize=no
4742 ac_cv_c_stringize=yes
4748 if test "${ac_cv_c_stringize}" = yes
4750 cat >> confdefs.h <<\EOF
4751 #define HAVE_STRINGIZE 1
4755 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
4757 echo $ac_n "checking for signed types""... $ac_c" 1>&6
4758 echo "configure:4759: checking for signed types" >&5
4759 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4767 signed char c; signed short s; signed int i;
4770 if { (eval echo configure:4771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4772 pgac_cv_c_signed=yes
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4782 echo "$ac_t""$pgac_cv_c_signed" 1>&6
4783 if test x"$pgac_cv_c_signed" = xno ; then
4784 cat >> confdefs.h <<\EOF
4789 echo $ac_n "checking for volatile""... $ac_c" 1>&6
4790 echo "configure:4791: checking for volatile" >&5
4791 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4799 extern volatile int i;
4802 if { (eval echo configure:4803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4804 pgac_cv_c_volatile=yes
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4809 pgac_cv_c_volatile=no
4814 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
4815 if test x"$pgac_cv_c_volatile" = xno ; then
4816 cat >> confdefs.h <<\EOF
4821 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4822 echo "configure:4823: checking whether struct tm is in sys/time.h or time.h" >&5
4823 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4826 cat > conftest.$ac_ext <<EOF
4827 #line 4828 "configure"
4828 #include "confdefs.h"
4829 #include <sys/types.h>
4832 struct tm *tp; tp->tm_sec;
4835 if { (eval echo configure:4836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4837 ac_cv_struct_tm=time.h
4839 echo "configure: failed program was:" >&5
4840 cat conftest.$ac_ext >&5
4842 ac_cv_struct_tm=sys/time.h
4847 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4848 if test $ac_cv_struct_tm = sys/time.h; then
4849 cat >> confdefs.h <<\EOF
4850 #define TM_IN_SYS_TIME 1
4855 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4856 echo "configure:4857: checking for tm_zone in struct tm" >&5
4857 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4858 echo $ac_n "(cached) $ac_c" 1>&6
4860 cat > conftest.$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 #include <sys/types.h>
4864 #include <$ac_cv_struct_tm>
4866 struct tm tm; tm.tm_zone;
4869 if { (eval echo configure:4870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4871 ac_cv_struct_tm_zone=yes
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 ac_cv_struct_tm_zone=no
4881 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4882 if test "$ac_cv_struct_tm_zone" = yes; then
4883 cat >> confdefs.h <<\EOF
4884 #define HAVE_TM_ZONE 1
4888 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4889 echo "configure:4890: checking for tzname" >&5
4890 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4897 #ifndef tzname /* For SGI. */
4898 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4904 if { (eval echo configure:4905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4906 ac_cv_var_tzname=yes
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4916 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4917 if test $ac_cv_var_tzname = yes; then
4918 cat >> confdefs.h <<\EOF
4919 #define HAVE_TZNAME 1
4925 echo $ac_n "checking for union semun""... $ac_c" 1>&6
4926 echo "configure:4927: checking for union semun" >&5
4927 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 #include <sys/types.h>
4934 #include <sys/ipc.h>
4935 #include <sys/sem.h>
4940 if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4942 pgac_cv_union_semun=yes
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4947 pgac_cv_union_semun=no
4952 echo "$ac_t""$pgac_cv_union_semun" 1>&6
4953 if test x"$pgac_cv_union_semun" = xyes ; then
4954 cat >> confdefs.h <<\EOF
4955 #define HAVE_UNION_SEMUN 1
4959 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
4960 echo "configure:4961: checking for struct sockaddr_un" >&5
4961 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 #ifdef HAVE_SYS_UN_H
4971 struct sockaddr_un un;
4974 if { (eval echo configure:4975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4976 pgac_cv_struct_sockaddr_un=yes
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4981 pgac_cv_struct_sockaddr_un=no
4986 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
4987 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
4988 cat >> confdefs.h <<\EOF
4989 #define HAVE_STRUCT_SOCKADDR_UN 1
4995 ## Functions, global variables
4997 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
4998 echo "configure:4999: checking for int timezone" >&5
4999 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5007 int res = timezone / 60;
5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5012 pgac_cv_var_int_timezone=yes
5014 echo "configure: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5017 pgac_cv_var_int_timezone=no
5022 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5023 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5024 cat >> confdefs.h <<\EOF
5025 #define HAVE_INT_TIMEZONE
5029 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5030 echo "configure:5031: checking types of arguments for accept()" >&5
5031 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5034 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5040 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5041 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5042 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int'; do
5043 cat > conftest.$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 #ifdef HAVE_SYS_TYPES_H
5047 #include <sys/types.h>
5049 #ifdef HAVE_SYS_SOCKET_H
5050 #include <sys/socket.h>
5052 extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5057 if { (eval echo configure:5058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5059 ac_not_found=no; break 3
5061 echo "configure: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5070 if test "$ac_not_found" = yes; then
5071 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5079 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5080 cat >> confdefs.h <<EOF
5081 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5084 cat >> confdefs.h <<EOF
5085 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5088 cat >> confdefs.h <<EOF
5089 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5093 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5094 echo "configure:5095: checking whether gettimeofday takes only one argument" >&5
5095 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 #include <sys/time.h>
5104 struct timezone *tzp;
5105 gettimeofday(tp,tzp);
5108 if { (eval echo configure:5109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5110 pgac_cv_func_gettimeofday_1arg=no
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5115 pgac_cv_func_gettimeofday_1arg=yes
5120 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5121 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5122 cat >> confdefs.h <<\EOF
5123 #define GETTIMEOFDAY_1ARG
5128 echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
5129 echo "configure:5130: checking for fcntl(F_SETLK)" >&5
5131 linux*) echo "$ac_t""broken on Linux" 1>&6 ;;
5133 cat > conftest.$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5141 lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
5142 lck.l_type = F_WRLCK;
5143 fcntl(0, F_SETLK, &lck);
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5148 cat >> confdefs.h <<\EOF
5149 #define HAVE_FCNTL_SETLK 1
5151 echo "$ac_t""yes" 1>&6
5153 echo "configure: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 echo "$ac_t""no" 1>&6
5162 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid
5164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5165 echo "configure:5166: checking for $ac_func" >&5
5166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5172 /* System header to define __stub macros and hopefully few prototypes,
5173 which can conflict with char $ac_func(); below. */
5175 /* Override any gcc2 internal prototype to avoid an error. */
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5182 /* The GNU C library defines this for functions which it implements
5183 to always fail with ENOSYS. Some functions are actually named
5184 something starting with __ and the normal name is an alias. */
5185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5193 if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5195 eval "ac_cv_func_$ac_func=yes"
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5200 eval "ac_cv_func_$ac_func=no"
5205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5206 echo "$ac_t""yes" 1>&6
5207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5208 cat >> confdefs.h <<EOF
5209 #define $ac_tr_func 1
5213 echo "$ac_t""no" 1>&6
5218 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5219 echo "configure:5220: checking for PS_STRINGS" >&5
5220 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5223 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5226 #include <machine/vmparam.h>
5227 #include <sys/exec.h>
5230 PS_STRINGS->ps_nargvstr = 1;
5231 PS_STRINGS->ps_argvstr = "foo";
5234 if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5236 pgac_cv_var_PS_STRINGS=yes
5238 echo "configure: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5241 pgac_cv_var_PS_STRINGS=no
5246 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5247 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5248 cat >> confdefs.h <<\EOF
5249 #define HAVE_PS_STRINGS
5255 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5256 echo "configure:5257: checking for snprintf" >&5
5257 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5263 /* System header to define __stub macros and hopefully few prototypes,
5264 which can conflict with char snprintf(); below. */
5266 /* Override any gcc2 internal prototype to avoid an error. */
5267 /* We use char because int might match the return type of a gcc2
5268 builtin and then its argument prototype would still apply. */
5273 /* The GNU C library defines this for functions which it implements
5274 to always fail with ENOSYS. Some functions are actually named
5275 something starting with __ and the normal name is an alias. */
5276 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5284 if { (eval echo configure:5285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5286 eval "ac_cv_func_snprintf=yes"
5288 echo "configure: failed program was:" >&5
5289 cat conftest.$ac_ext >&5
5291 eval "ac_cv_func_snprintf=no"
5296 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5297 echo "$ac_t""yes" 1>&6
5298 cat >> confdefs.h <<\EOF
5299 #define HAVE_SNPRINTF 1
5303 echo "$ac_t""no" 1>&6
5304 SNPRINTF='snprintf.o'
5307 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5308 echo "configure:5309: checking for vsnprintf" >&5
5309 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5310 echo $ac_n "(cached) $ac_c" 1>&6
5312 cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315 /* System header to define __stub macros and hopefully few prototypes,
5316 which can conflict with char vsnprintf(); below. */
5318 /* Override any gcc2 internal prototype to avoid an error. */
5319 /* We use char because int might match the return type of a gcc2
5320 builtin and then its argument prototype would still apply. */
5325 /* The GNU C library defines this for functions which it implements
5326 to always fail with ENOSYS. Some functions are actually named
5327 something starting with __ and the normal name is an alias. */
5328 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5336 if { (eval echo configure:5337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5338 eval "ac_cv_func_vsnprintf=yes"
5340 echo "configure: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5343 eval "ac_cv_func_vsnprintf=no"
5348 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5349 echo "$ac_t""yes" 1>&6
5350 cat >> confdefs.h <<\EOF
5351 #define HAVE_VSNPRINTF 1
5355 echo "$ac_t""no" 1>&6
5356 SNPRINTF='snprintf.o'
5360 cat > conftest.$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 egrep "snprintf" >/dev/null 2>&1; then
5368 cat >> confdefs.h <<\EOF
5369 #define HAVE_SNPRINTF_DECL 1
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 egrep "vsnprintf" >/dev/null 2>&1; then
5383 cat >> confdefs.h <<\EOF
5384 #define HAVE_VSNPRINTF_DECL 1
5391 # do this one the hard way in case isinf() is a macro
5392 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5393 echo "configure:5394: checking for isinf" >&5
5394 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5403 double x = 0.0; int res = isinf(x);
5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5408 ac_cv_func_isinf=yes
5410 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5418 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5420 if test $ac_cv_func_isinf = yes ; then
5421 cat >> confdefs.h <<\EOF
5422 #define HAVE_ISINF 1
5428 # Look for a way to implement a substitute for isinf()
5429 for ac_func in fpclass fp_class fp_class_d class
5431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5432 echo "configure:5433: checking for $ac_func" >&5
5433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5436 cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 /* System header to define __stub macros and hopefully few prototypes,
5440 which can conflict with char $ac_func(); below. */
5442 /* Override any gcc2 internal prototype to avoid an error. */
5443 /* We use char because int might match the return type of a gcc2
5444 builtin and then its argument prototype would still apply. */
5449 /* The GNU C library defines this for functions which it implements
5450 to always fail with ENOSYS. Some functions are actually named
5451 something starting with __ and the normal name is an alias. */
5452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5460 if { (eval echo configure:5461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5462 eval "ac_cv_func_$ac_func=yes"
5464 echo "configure: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5467 eval "ac_cv_func_$ac_func=no"
5472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5473 echo "$ac_t""yes" 1>&6
5474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5475 cat >> confdefs.h <<EOF
5476 #define $ac_tr_func 1
5480 echo "$ac_t""no" 1>&6
5487 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5488 echo "configure:5489: checking for getrusage" >&5
5489 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5495 /* System header to define __stub macros and hopefully few prototypes,
5496 which can conflict with char getrusage(); below. */
5498 /* Override any gcc2 internal prototype to avoid an error. */
5499 /* We use char because int might match the return type of a gcc2
5500 builtin and then its argument prototype would still apply. */
5505 /* The GNU C library defines this for functions which it implements
5506 to always fail with ENOSYS. Some functions are actually named
5507 something starting with __ and the normal name is an alias. */
5508 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5516 if { (eval echo configure:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5518 eval "ac_cv_func_getrusage=yes"
5520 echo "configure: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5523 eval "ac_cv_func_getrusage=no"
5528 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5529 echo "$ac_t""yes" 1>&6
5530 cat >> confdefs.h <<\EOF
5531 #define HAVE_GETRUSAGE 1
5535 echo "$ac_t""no" 1>&6
5536 GETRUSAGE='getrusage.o'
5540 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5541 echo "configure:5542: checking for srandom" >&5
5542 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5545 cat > conftest.$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char srandom(); below. */
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5558 /* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561 #if defined (__stub_srandom) || defined (__stub___srandom)
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5571 eval "ac_cv_func_srandom=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.$ac_ext >&5
5576 eval "ac_cv_func_srandom=no"
5581 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 cat >> confdefs.h <<\EOF
5584 #define HAVE_SRANDOM 1
5588 echo "$ac_t""no" 1>&6
5593 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5594 echo "configure:5595: checking for gethostname" >&5
5595 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5596 echo $ac_n "(cached) $ac_c" 1>&6
5598 cat > conftest.$ac_ext <<EOF
5599 #line 5600 "configure"
5600 #include "confdefs.h"
5601 /* System header to define __stub macros and hopefully few prototypes,
5602 which can conflict with char gethostname(); below. */
5604 /* Override any gcc2 internal prototype to avoid an error. */
5605 /* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
5611 /* The GNU C library defines this for functions which it implements
5612 to always fail with ENOSYS. Some functions are actually named
5613 something starting with __ and the normal name is an alias. */
5614 #if defined (__stub_gethostname) || defined (__stub___gethostname)
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5624 eval "ac_cv_func_gethostname=yes"
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 eval "ac_cv_func_gethostname=no"
5634 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
5635 echo "$ac_t""yes" 1>&6
5636 cat >> confdefs.h <<\EOF
5637 #define HAVE_GETHOSTNAME 1
5641 echo "$ac_t""no" 1>&6
5642 GETHOSTNAME='gethostname.o'
5646 echo $ac_n "checking for random""... $ac_c" 1>&6
5647 echo "configure:5648: checking for random" >&5
5648 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 /* System header to define __stub macros and hopefully few prototypes,
5655 which can conflict with char random(); below. */
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5664 /* The GNU C library defines this for functions which it implements
5665 to always fail with ENOSYS. Some functions are actually named
5666 something starting with __ and the normal name is an alias. */
5667 #if defined (__stub_random) || defined (__stub___random)
5675 if { (eval echo configure:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5677 eval "ac_cv_func_random=yes"
5679 echo "configure: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5682 eval "ac_cv_func_random=no"
5687 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
5688 echo "$ac_t""yes" 1>&6
5689 cat >> confdefs.h <<\EOF
5690 #define HAVE_RANDOM 1
5694 echo "$ac_t""no" 1>&6
5695 MISSING_RANDOM='random.o'
5699 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
5700 echo "configure:5701: checking for inet_aton" >&5
5701 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
5702 echo $ac_n "(cached) $ac_c" 1>&6
5704 cat > conftest.$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5707 /* System header to define __stub macros and hopefully few prototypes,
5708 which can conflict with char inet_aton(); below. */
5710 /* Override any gcc2 internal prototype to avoid an error. */
5711 /* We use char because int might match the return type of a gcc2
5712 builtin and then its argument prototype would still apply. */
5717 /* The GNU C library defines this for functions which it implements
5718 to always fail with ENOSYS. Some functions are actually named
5719 something starting with __ and the normal name is an alias. */
5720 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
5728 if { (eval echo configure:5729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5730 eval "ac_cv_func_inet_aton=yes"
5732 echo "configure: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5735 eval "ac_cv_func_inet_aton=no"
5740 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
5741 echo "$ac_t""yes" 1>&6
5742 cat >> confdefs.h <<\EOF
5743 #define HAVE_INET_ATON 1
5747 echo "$ac_t""no" 1>&6
5748 INET_ATON='inet_aton.o'
5752 echo $ac_n "checking for strerror""... $ac_c" 1>&6
5753 echo "configure:5754: checking for strerror" >&5
5754 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5757 cat > conftest.$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char strerror(); below. */
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_strerror) || defined (__stub___strerror)
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5783 eval "ac_cv_func_strerror=yes"
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5788 eval "ac_cv_func_strerror=no"
5793 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 cat >> confdefs.h <<\EOF
5796 #define HAVE_STRERROR 1
5800 echo "$ac_t""no" 1>&6
5801 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
5806 echo $ac_n "checking for strdup""... $ac_c" 1>&6
5807 echo "configure:5808: checking for strdup" >&5
5808 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
5809 echo $ac_n "(cached) $ac_c" 1>&6
5811 cat > conftest.$ac_ext <<EOF
5812 #line 5813 "configure"
5813 #include "confdefs.h"
5814 /* System header to define __stub macros and hopefully few prototypes,
5815 which can conflict with char strdup(); below. */
5817 /* Override any gcc2 internal prototype to avoid an error. */
5818 /* We use char because int might match the return type of a gcc2
5819 builtin and then its argument prototype would still apply. */
5824 /* The GNU C library defines this for functions which it implements
5825 to always fail with ENOSYS. Some functions are actually named
5826 something starting with __ and the normal name is an alias. */
5827 #if defined (__stub_strdup) || defined (__stub___strdup)
5835 if { (eval echo configure:5836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5837 eval "ac_cv_func_strdup=yes"
5839 echo "configure: failed program was:" >&5
5840 cat conftest.$ac_ext >&5
5842 eval "ac_cv_func_strdup=no"
5847 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
5848 echo "$ac_t""yes" 1>&6
5849 cat >> confdefs.h <<\EOF
5850 #define HAVE_STRDUP 1
5854 echo "$ac_t""no" 1>&6
5855 STRDUP='../../utils/strdup.o'
5859 echo $ac_n "checking for strtol""... $ac_c" 1>&6
5860 echo "configure:5861: checking for strtol" >&5
5861 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
5862 echo $ac_n "(cached) $ac_c" 1>&6
5864 cat > conftest.$ac_ext <<EOF
5865 #line 5866 "configure"
5866 #include "confdefs.h"
5867 /* System header to define __stub macros and hopefully few prototypes,
5868 which can conflict with char strtol(); below. */
5870 /* Override any gcc2 internal prototype to avoid an error. */
5871 /* We use char because int might match the return type of a gcc2
5872 builtin and then its argument prototype would still apply. */
5877 /* The GNU C library defines this for functions which it implements
5878 to always fail with ENOSYS. Some functions are actually named
5879 something starting with __ and the normal name is an alias. */
5880 #if defined (__stub_strtol) || defined (__stub___strtol)
5888 if { (eval echo configure:5889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5890 eval "ac_cv_func_strtol=yes"
5892 echo "configure: failed program was:" >&5
5893 cat conftest.$ac_ext >&5
5895 eval "ac_cv_func_strtol=no"
5900 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
5901 echo "$ac_t""yes" 1>&6
5902 cat >> confdefs.h <<\EOF
5903 #define HAVE_STRTOL 1
5907 echo "$ac_t""no" 1>&6
5912 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
5913 echo "configure:5914: checking for strtoul" >&5
5914 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
5915 echo $ac_n "(cached) $ac_c" 1>&6
5917 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure"
5919 #include "confdefs.h"
5920 /* System header to define __stub macros and hopefully few prototypes,
5921 which can conflict with char strtoul(); below. */
5923 /* Override any gcc2 internal prototype to avoid an error. */
5924 /* We use char because int might match the return type of a gcc2
5925 builtin and then its argument prototype would still apply. */
5930 /* The GNU C library defines this for functions which it implements
5931 to always fail with ENOSYS. Some functions are actually named
5932 something starting with __ and the normal name is an alias. */
5933 #if defined (__stub_strtoul) || defined (__stub___strtoul)
5941 if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5943 eval "ac_cv_func_strtoul=yes"
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5948 eval "ac_cv_func_strtoul=no"
5953 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
5954 echo "$ac_t""yes" 1>&6
5955 cat >> confdefs.h <<\EOF
5956 #define HAVE_STRTOUL 1
5960 echo "$ac_t""no" 1>&6
5965 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
5966 echo "configure:5967: checking for strcasecmp" >&5
5967 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5970 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5973 /* System header to define __stub macros and hopefully few prototypes,
5974 which can conflict with char strcasecmp(); below. */
5976 /* Override any gcc2 internal prototype to avoid an error. */
5977 /* We use char because int might match the return type of a gcc2
5978 builtin and then its argument prototype would still apply. */
5983 /* The GNU C library defines this for functions which it implements
5984 to always fail with ENOSYS. Some functions are actually named
5985 something starting with __ and the normal name is an alias. */
5986 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5994 if { (eval echo configure:5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5996 eval "ac_cv_func_strcasecmp=yes"
5998 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6001 eval "ac_cv_func_strcasecmp=no"
6006 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6007 echo "$ac_t""yes" 1>&6
6008 cat >> confdefs.h <<\EOF
6009 #define HAVE_STRCASECMP 1
6013 echo "$ac_t""no" 1>&6
6014 STRCASECMP='strcasecmp.o'
6018 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6019 echo "configure:6020: checking for cbrt" >&5
6020 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6021 echo $ac_n "(cached) $ac_c" 1>&6
6023 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6026 /* System header to define __stub macros and hopefully few prototypes,
6027 which can conflict with char cbrt(); below. */
6029 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6036 /* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6047 if { (eval echo configure:6048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6049 eval "ac_cv_func_cbrt=yes"
6051 echo "configure: failed program was:" >&5
6052 cat conftest.$ac_ext >&5
6054 eval "ac_cv_func_cbrt=no"
6059 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6060 echo "$ac_t""yes" 1>&6
6061 cat >> confdefs.h <<\EOF
6066 echo "$ac_t""no" 1>&6
6067 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6068 echo "configure:6069: checking for cbrt in -lm" >&5
6069 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6071 echo $ac_n "(cached) $ac_c" 1>&6
6073 ac_save_LIBS="$LIBS"
6075 cat > conftest.$ac_ext <<EOF
6076 #line 6077 "configure"
6077 #include "confdefs.h"
6078 /* Override any gcc2 internal prototype to avoid an error. */
6079 /* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */
6087 if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6089 eval "ac_cv_lib_$ac_lib_var=yes"
6091 echo "configure: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6094 eval "ac_cv_lib_$ac_lib_var=no"
6097 LIBS="$ac_save_LIBS"
6100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6101 echo "$ac_t""yes" 1>&6
6102 cat >> confdefs.h <<\EOF
6107 echo "$ac_t""no" 1>&6
6113 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6114 # this hackery with HPUXMATHLIB allows us to cope.
6118 if [ -r /lib/pa1.1/libm.a ] ; then
6119 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6124 echo $ac_n "checking for rint""... $ac_c" 1>&6
6125 echo "configure:6126: checking for rint" >&5
6126 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6
6129 cat > conftest.$ac_ext <<EOF
6130 #line 6131 "configure"
6131 #include "confdefs.h"
6132 /* System header to define __stub macros and hopefully few prototypes,
6133 which can conflict with char rint(); below. */
6135 /* Override any gcc2 internal prototype to avoid an error. */
6136 /* We use char because int might match the return type of a gcc2
6137 builtin and then its argument prototype would still apply. */
6142 /* The GNU C library defines this for functions which it implements
6143 to always fail with ENOSYS. Some functions are actually named
6144 something starting with __ and the normal name is an alias. */
6145 #if defined (__stub_rint) || defined (__stub___rint)
6153 if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6155 eval "ac_cv_func_rint=yes"
6157 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6160 eval "ac_cv_func_rint=no"
6165 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6166 echo "$ac_t""yes" 1>&6
6167 cat >> confdefs.h <<\EOF
6172 echo "$ac_t""no" 1>&6
6173 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6174 echo "configure:6175: checking for rint in -lm" >&5
6175 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 ac_save_LIBS="$LIBS"
6180 LIBS="-lm $HPUXMATHLIB $LIBS"
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6184 /* Override any gcc2 internal prototype to avoid an error. */
6185 /* We use char because int might match the return type of a gcc2
6186 builtin and then its argument prototype would still apply. */
6193 if { (eval echo configure:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6195 eval "ac_cv_lib_$ac_lib_var=yes"
6197 echo "configure: failed program was:" >&5
6198 cat conftest.$ac_ext >&5
6200 eval "ac_cv_lib_$ac_lib_var=no"
6203 LIBS="$ac_save_LIBS"
6206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6207 echo "$ac_t""yes" 1>&6
6208 cat >> confdefs.h <<\EOF
6213 echo "$ac_t""no" 1>&6
6219 cat > conftest.$ac_ext <<EOF
6220 #line 6221 "configure"
6221 #include "confdefs.h"
6222 #include <readline.h>
6224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6225 egrep "rl_completion_append_character" >/dev/null 2>&1; then
6227 cat >> confdefs.h <<\EOF
6228 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6233 cat > conftest.$ac_ext <<EOF
6234 #line 6235 "configure"
6235 #include "confdefs.h"
6236 #include <readline/readline.h>
6238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6239 egrep "rl_completion_append_character" >/dev/null 2>&1; then
6241 cat >> confdefs.h <<\EOF
6242 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6253 for ac_func in filename_completion_function
6255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6256 echo "configure:6257: checking for $ac_func" >&5
6257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6258 echo $ac_n "(cached) $ac_c" 1>&6
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 /* System header to define __stub macros and hopefully few prototypes,
6264 which can conflict with char $ac_func(); below. */
6266 /* Override any gcc2 internal prototype to avoid an error. */
6267 /* We use char because int might match the return type of a gcc2
6268 builtin and then its argument prototype would still apply. */
6273 /* The GNU C library defines this for functions which it implements
6274 to always fail with ENOSYS. Some functions are actually named
6275 something starting with __ and the normal name is an alias. */
6276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6284 if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6286 eval "ac_cv_func_$ac_func=yes"
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6291 eval "ac_cv_func_$ac_func=no"
6296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6297 echo "$ac_t""yes" 1>&6
6298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6299 cat >> confdefs.h <<EOF
6300 #define $ac_tr_func 1
6302 cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 #include <readline.h>
6307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6308 egrep "filename_completion_function" >/dev/null 2>&1; then
6310 cat >> confdefs.h <<\EOF
6311 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6316 cat > conftest.$ac_ext <<EOF
6317 #line 6318 "configure"
6318 #include "confdefs.h"
6319 #include <readline/readline.h>
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322 egrep "filename_completion_function" >/dev/null 2>&1; then
6324 cat >> confdefs.h <<\EOF
6325 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6336 echo "$ac_t""no" 1>&6
6344 echo $ac_n "checking for finite""... $ac_c" 1>&6
6345 echo "configure:6346: checking for finite" >&5
6346 cat > conftest.$ac_ext <<EOF
6347 #line 6348 "configure"
6348 #include "confdefs.h"
6351 int dummy=finite(1.0);
6354 if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6356 cat >> confdefs.h <<\EOF
6357 #define HAVE_FINITE 1
6359 echo "$ac_t""yes" 1>&6
6361 echo "configure: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6364 echo "$ac_t""no" 1>&6
6368 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6369 echo "configure:6370: checking for sigsetjmp" >&5
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6375 sigjmp_buf x; sigsetjmp(x, 1);
6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6380 cat >> confdefs.h <<\EOF
6381 #define HAVE_SIGSETJMP 1
6383 echo "$ac_t""yes" 1>&6
6385 echo "configure: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6388 echo "$ac_t""no" 1>&6
6393 # Check whether --enable-syslog was given
6394 if test x"${enable_syslog+set}" = xset; then
6395 case $enable_syslog in
6397 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6398 echo "configure:6399: checking for syslog" >&5
6399 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6400 echo $ac_n "(cached) $ac_c" 1>&6
6402 cat > conftest.$ac_ext <<EOF
6403 #line 6404 "configure"
6404 #include "confdefs.h"
6405 /* System header to define __stub macros and hopefully few prototypes,
6406 which can conflict with char syslog(); below. */
6408 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6415 /* The GNU C library defines this for functions which it implements
6416 to always fail with ENOSYS. Some functions are actually named
6417 something starting with __ and the normal name is an alias. */
6418 #if defined (__stub_syslog) || defined (__stub___syslog)
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6428 eval "ac_cv_func_syslog=yes"
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6433 eval "ac_cv_func_syslog=no"
6438 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6439 echo "$ac_t""yes" 1>&6
6440 cat >> confdefs.h <<\EOF
6441 #define ENABLE_SYSLOG 1
6445 echo "$ac_t""no" 1>&6
6446 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6454 enableval=$enable_syslog
6455 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6457 esac # $enable_syslog
6465 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6466 echo "configure:6467: checking whether long int is 64 bits" >&5
6467 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 if test "$cross_compiling" = yes; then
6471 pgac_cv_type_long_int_64=no
6472 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6474 cat > conftest.$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6477 typedef long int int64;
6480 * These are globals to discourage the compiler from folding all the
6481 * arithmetic tests down to compile-time constants.
6486 int does_int64_work()
6490 if (sizeof(int64) != 8)
6491 return 0; /* definitely not the right size */
6493 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6501 exit(! does_int64_work());
6504 if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6506 pgac_cv_type_long_int_64=yes
6508 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6511 pgac_cv_type_long_int_64=no
6518 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6520 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6521 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6522 cat >> confdefs.h <<\EOF
6523 #define HAVE_LONG_INT_64
6529 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6530 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6531 echo "configure:6532: checking whether long long int is 64 bits" >&5
6532 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6535 if test "$cross_compiling" = yes; then
6536 pgac_cv_type_long_long_int_64=no
6537 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6539 cat > conftest.$ac_ext <<EOF
6540 #line 6541 "configure"
6541 #include "confdefs.h"
6542 typedef long long int int64;
6545 * These are globals to discourage the compiler from folding all the
6546 * arithmetic tests down to compile-time constants.
6551 int does_int64_work()
6555 if (sizeof(int64) != 8)
6556 return 0; /* definitely not the right size */
6558 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6566 exit(! does_int64_work());
6569 if { (eval echo configure:6570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6571 pgac_cv_type_long_long_int_64=yes
6573 echo "configure: failed program was:" >&5
6574 cat conftest.$ac_ext >&5
6576 pgac_cv_type_long_long_int_64=no
6583 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6585 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6586 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6587 cat >> confdefs.h <<\EOF
6588 #define HAVE_LONG_LONG_INT_64
6597 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6598 if [ x$SNPRINTF = x ] ; then
6599 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
6600 echo "configure:6601: checking whether snprintf handles 'long long int' as %lld" >&5
6601 if test "$cross_compiling" = yes; then
6602 echo "$ac_t""assuming not on target machine" 1>&6
6603 # Force usage of our own snprintf, since we cannot test foreign snprintf
6604 SNPRINTF='snprintf.o'
6605 INT64_FORMAT='"%lld"'
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6612 typedef long long int int64;
6613 #define INT64_FORMAT "%lld"
6618 int does_int64_snprintf_work()
6623 if (sizeof(int64) != 8)
6624 return 0; /* doesn't look like the right size */
6627 snprintf(buf, 100, INT64_FORMAT, c);
6628 if (strcmp(buf, "800000140000005") != 0)
6629 return 0; /* either multiply or snprintf is busted */
6633 exit(! does_int64_snprintf_work());
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6638 echo "$ac_t""yes" 1>&6
6639 INT64_FORMAT='"%lld"'
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6645 echo "$ac_t""no" 1>&6
6646 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
6647 echo "configure:6648: checking whether snprintf handles 'long long int' as %qd" >&5
6648 if test "$cross_compiling" = yes; then
6649 echo "$ac_t""assuming not on target machine" 1>&6
6650 # Force usage of our own snprintf, since we cannot test foreign snprintf
6651 SNPRINTF='snprintf.o'
6652 INT64_FORMAT='"%lld"'
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6659 typedef long long int int64;
6660 #define INT64_FORMAT "%qd"
6665 int does_int64_snprintf_work()
6670 if (sizeof(int64) != 8)
6671 return 0; /* doesn't look like the right size */
6674 snprintf(buf, 100, INT64_FORMAT, c);
6675 if (strcmp(buf, "800000140000005") != 0)
6676 return 0; /* either multiply or snprintf is busted */
6680 exit(! does_int64_snprintf_work());
6683 if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6685 echo "$ac_t""yes" 1>&6
6686 INT64_FORMAT='"%qd"'
6689 echo "configure: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6692 echo "$ac_t""no" 1>&6
6693 # Force usage of our own snprintf, since system snprintf is broken
6694 SNPRINTF='snprintf.o'
6695 INT64_FORMAT='"%lld"'
6706 # here if we previously decided we needed to use our own snprintf
6707 INT64_FORMAT='"%lld"'
6710 # Here if we are not using 'long long int' at all
6711 INT64_FORMAT='"%ld"'
6714 cat >> confdefs.h <<EOF
6715 #define INT64_FORMAT $INT64_FORMAT
6721 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
6722 echo "configure:6723: checking alignment of short" >&5
6723 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
6724 echo $ac_n "(cached) $ac_c" 1>&6
6726 if test "$cross_compiling" = yes; then
6727 pgac_cv_alignof_short='sizeof(short)'
6729 cat > conftest.$ac_ext <<EOF
6730 #line 6731 "configure"
6731 #include "confdefs.h"
6733 struct { char filler; short field; } mystruct;
6736 FILE *f=fopen("conftestval", "w");
6738 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6742 if { (eval echo configure:6743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6744 pgac_cv_alignof_short=`cat conftestval`
6746 echo "configure: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6749 pgac_cv_alignof_short='sizeof(short)'
6755 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
6756 cat >> confdefs.h <<EOF
6757 #define ALIGNOF_SHORT $pgac_cv_alignof_short
6761 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
6762 echo "configure:6763: checking alignment of int" >&5
6763 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6766 if test "$cross_compiling" = yes; then
6767 pgac_cv_alignof_int='sizeof(int)'
6769 cat > conftest.$ac_ext <<EOF
6770 #line 6771 "configure"
6771 #include "confdefs.h"
6773 struct { char filler; int field; } mystruct;
6776 FILE *f=fopen("conftestval", "w");
6778 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6784 pgac_cv_alignof_int=`cat conftestval`
6786 echo "configure: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6789 pgac_cv_alignof_int='sizeof(int)'
6795 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
6796 cat >> confdefs.h <<EOF
6797 #define ALIGNOF_INT $pgac_cv_alignof_int
6801 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
6802 echo "configure:6803: checking alignment of long" >&5
6803 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6806 if test "$cross_compiling" = yes; then
6807 pgac_cv_alignof_long='sizeof(long)'
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6813 struct { char filler; long field; } mystruct;
6816 FILE *f=fopen("conftestval", "w");
6818 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6824 pgac_cv_alignof_long=`cat conftestval`
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6829 pgac_cv_alignof_long='sizeof(long)'
6835 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
6836 cat >> confdefs.h <<EOF
6837 #define ALIGNOF_LONG $pgac_cv_alignof_long
6841 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6842 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
6843 echo "configure:6844: checking alignment of long long int" >&5
6844 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
6845 echo $ac_n "(cached) $ac_c" 1>&6
6847 if test "$cross_compiling" = yes; then
6848 pgac_cv_alignof_long_long_int='sizeof(long long int)'
6850 cat > conftest.$ac_ext <<EOF
6851 #line 6852 "configure"
6852 #include "confdefs.h"
6854 struct { char filler; long long int field; } mystruct;
6857 FILE *f=fopen("conftestval", "w");
6859 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6863 if { (eval echo configure:6864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6865 pgac_cv_alignof_long_long_int=`cat conftestval`
6867 echo "configure: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 pgac_cv_alignof_long_long_int='sizeof(long long int)'
6876 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
6877 cat >> confdefs.h <<EOF
6878 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
6883 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
6884 echo "configure:6885: checking alignment of double" >&5
6885 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
6886 echo $ac_n "(cached) $ac_c" 1>&6
6888 if test "$cross_compiling" = yes; then
6889 pgac_cv_alignof_double='sizeof(double)'
6891 cat > conftest.$ac_ext <<EOF
6892 #line 6893 "configure"
6893 #include "confdefs.h"
6895 struct { char filler; double field; } mystruct;
6898 FILE *f=fopen("conftestval", "w");
6900 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6904 if { (eval echo configure:6905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6906 pgac_cv_alignof_double=`cat conftestval`
6908 echo "configure: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6911 pgac_cv_alignof_double='sizeof(double)'
6917 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
6918 cat >> confdefs.h <<EOF
6919 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
6925 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
6926 MAX_ALIGNOF=$pgac_cv_alignof_long
6927 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
6928 MAX_ALIGNOF=$pgac_cv_alignof_double
6930 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
6931 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
6934 MAX_ALIGNOF="$pgac_cv_alignof_double"
6936 cat >> confdefs.h <<EOF
6937 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
6941 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
6942 echo "configure:6943: checking for POSIX signal interface" >&5
6943 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
6944 echo $ac_n "(cached) $ac_c" 1>&6
6946 cat > conftest.$ac_ext <<EOF
6947 #line 6948 "configure"
6948 #include "confdefs.h"
6952 struct sigaction act, oact;
6953 sigemptyset(&act.sa_mask);
6954 act.sa_flags = SA_RESTART;
6955 sigaction(0, &act, &oact);
6958 if { (eval echo configure:6959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6960 pgac_cv_func_posix_signals=yes
6962 echo "configure: failed program was:" >&5
6963 cat conftest.$ac_ext >&5
6965 pgac_cv_func_posix_signals=no
6970 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
6971 if test x"$pgac_cv_func_posix_signals" = xyes ; then
6972 cat >> confdefs.h <<\EOF
6973 #define HAVE_POSIX_SIGNALS
6977 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
6981 # Check for Tcl configuration script tclConfig.sh
6982 if test "$with_tcl" = yes; then
6983 for ac_prog in tclsh tcl
6985 # Extract the first word of "$ac_prog", so it can be a program name with args.
6986 set dummy $ac_prog; ac_word=$2
6987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6988 echo "configure:6989: checking for $ac_word" >&5
6989 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
6990 echo $ac_n "(cached) $ac_c" 1>&6
6994 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6997 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7002 for ac_dir in $ac_dummy; do
7003 test -z "$ac_dir" && ac_dir=.
7004 if test -f $ac_dir/$ac_word; then
7005 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7013 TCLSH="$ac_cv_path_TCLSH"
7014 if test -n "$TCLSH"; then
7015 echo "$ac_t""$TCLSH" 1>&6
7017 echo "$ac_t""no" 1>&6
7020 test -n "$TCLSH" && break
7023 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7024 echo "configure:7025: checking for tclConfig.sh" >&5
7025 # Let user override test
7026 if test -z "$TCL_CONFIG_SH"; then
7027 pgac_test_dirs="$with_tclconfig"
7029 set X $pgac_test_dirs; shift
7030 if test $# -eq 0; then
7031 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7032 set X `echo 'puts $auto_path' | $TCLSH`; shift
7036 if test -r "$pgac_dir/tclConfig.sh"; then
7037 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7043 if test -z "$TCL_CONFIG_SH"; then
7044 echo "$ac_t""no" 1>&6
7045 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7047 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7054 # Check for Tk configuration script tkConfig.sh
7055 if test "$with_tk" = yes; then
7056 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7057 echo "configure:7058: checking for tkConfig.sh" >&5
7058 # Let user override test
7059 if test -z "$TK_CONFIG_SH"; then
7060 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7062 set X $pgac_test_dirs; shift
7063 if test $# -eq 0; then
7064 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7065 set X `echo 'puts $auto_path' | $TCLSH`; shift
7069 if test -r "$pgac_dir/tkConfig.sh"; then
7070 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7076 if test -z "$TK_CONFIG_SH"; then
7077 echo "$ac_t""no" 1>&6
7078 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7080 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7088 # Finally ready to produce output files ...
7091 cat > confcache <<\EOF
7092 # This file is a shell script that caches the results of configure
7093 # tests run on this system so they can be shared between configure
7094 # scripts and configure runs. It is not useful on other systems.
7095 # If it contains results you don't want to keep, you may remove or edit it.
7097 # By default, configure uses ./config.cache as the cache file,
7098 # creating it if it does not exist already. You can give configure
7099 # the --cache-file=FILE option to use a different cache file; that is
7100 # what configure does when it calls configure scripts in
7101 # subdirectories, so they share the cache.
7102 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7103 # config.status only pays attention to the cache file if you give it the
7104 # --recheck option to rerun configure.
7107 # The following way of writing the cache mishandles newlines in values,
7108 # but we know of no workaround that is simple, portable, and efficient.
7109 # So, don't put newlines in cache variables' values.
7110 # Ultrix sh set writes to stderr and can't be redirected directly,
7111 # and sets the high bit in the cache file unless we assign to the vars.
7113 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7115 # `set' does not quote correctly, so add quotes (double-quote substitution
7116 # turns \\\\ into \\, and sed turns \\ into \).
7118 -e "s/'/'\\\\''/g" \
7119 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7122 # `set' quotes correctly as required by POSIX, so do not add quotes.
7123 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7126 if cmp -s $cache_file confcache; then
7129 if test -w $cache_file; then
7130 echo "updating cache $cache_file"
7131 cat confcache > $cache_file
7133 echo "not updating unwritable cache $cache_file"
7138 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7140 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7141 # Let make expand exec_prefix.
7142 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7144 # Any assignment to VPATH causes Sun make to only execute
7145 # the first set of double-colon rules, so remove it if not needed.
7146 # If there is a colon in the path, we need to keep it.
7147 if test "x$srcdir" = x.; then
7148 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7151 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7153 DEFS=-DHAVE_CONFIG_H
7155 # Without the "./", some shells look in PATH for config.status.
7156 : ${CONFIG_STATUS=./config.status}
7158 echo creating $CONFIG_STATUS
7159 rm -f $CONFIG_STATUS
7160 cat > $CONFIG_STATUS <<EOF
7162 # Generated automatically by configure.
7163 # Run this file to recreate the current configuration.
7164 # This directory was configured as follows,
7165 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7167 # $0 $ac_configure_args
7169 # Compiler output produced by configure, useful for debugging
7170 # configure, is in ./config.log if it exists.
7172 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7175 case "\$ac_option" in
7176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7177 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7178 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7179 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7180 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7182 -help | --help | --hel | --he | --h)
7183 echo "\$ac_cs_usage"; exit 0 ;;
7184 *) echo "\$ac_cs_usage"; exit 1 ;;
7188 ac_given_srcdir=$srcdir
7189 ac_given_INSTALL="$INSTALL"
7191 trap 'rm -fr `echo "
7195 src/backend/port/Makefile
7196 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7198 cat >> $CONFIG_STATUS <<EOF
7200 # Protect against being on the right side of a sed subst in config.status.
7201 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7202 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7206 s%@CFLAGS@%$CFLAGS%g
7207 s%@CPPFLAGS@%$CPPFLAGS%g
7208 s%@CXXFLAGS@%$CXXFLAGS%g
7209 s%@FFLAGS@%$FFLAGS%g
7211 s%@LDFLAGS@%$LDFLAGS%g
7213 s%@exec_prefix@%$exec_prefix%g
7214 s%@prefix@%$prefix%g
7215 s%@program_transform_name@%$program_transform_name%g
7216 s%@bindir@%$bindir%g
7217 s%@sbindir@%$sbindir%g
7218 s%@libexecdir@%$libexecdir%g
7219 s%@datadir@%$datadir%g
7220 s%@sysconfdir@%$sysconfdir%g
7221 s%@sharedstatedir@%$sharedstatedir%g
7222 s%@localstatedir@%$localstatedir%g
7223 s%@libdir@%$libdir%g
7224 s%@includedir@%$includedir%g
7225 s%@oldincludedir@%$oldincludedir%g
7226 s%@docdir@%$docdir%g
7227 s%@mandir@%$mandir%g
7228 s%@VERSION@%$VERSION%g
7230 s%@host_alias@%$host_alias%g
7231 s%@host_cpu@%$host_cpu%g
7232 s%@host_vendor@%$host_vendor%g
7233 s%@host_os@%$host_os%g
7234 s%@PORTNAME@%$PORTNAME%g
7237 s%@MULTIBYTE@%$MULTIBYTE%g
7239 s%@EXEEXT@%$EXEEXT%g
7243 s%@SHARED_LIB@%$SHARED_LIB%g
7244 s%@DLSUFFIX@%$DLSUFFIX%g
7245 s%@DL_LIB@%$DL_LIB%g
7246 s%@autodepend@%$autodepend%g
7247 s%@INCLUDES@%$INCLUDES%g
7248 s%@with_tcl@%$with_tcl%g
7249 s%@with_tk@%$with_tk%g
7250 s%@with_perl@%$with_perl%g
7251 s%@PYTHON@%$PYTHON%g
7252 s%@python_version@%$python_version%g
7253 s%@python_prefix@%$python_prefix%g
7254 s%@python_execprefix@%$python_execprefix%g
7255 s%@python_configdir@%$python_configdir%g
7256 s%@python_moduledir@%$python_moduledir%g
7257 s%@python_extmakefile@%$python_extmakefile%g
7258 s%@with_python@%$with_python%g
7259 s%@with_krb4@%$with_krb4%g
7260 s%@with_krb5@%$with_krb5%g
7261 s%@krb_srvtab@%$krb_srvtab%g
7262 s%@KRB_LIBS@%$KRB_LIBS%g
7263 s%@with_openssl@%$with_openssl%g
7264 s%@enable_odbc@%$enable_odbc%g
7265 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
7266 s%@ELF_SYS@%$ELF_SYS%g
7268 s%@CXXCPP@%$CXXCPP%g
7269 s%@with_CXX@%$with_CXX%g
7270 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7271 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7272 s%@INSTALL_DATA@%$INSTALL_DATA%g
7273 s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
7274 s%@mkinstalldirs@%$mkinstalldirs%g
7277 s%@FLEXFLAGS@%$FLEXFLAGS%g
7279 s%@RANLIB@%$RANLIB%g
7283 s%@YFLAGS@%$YFLAGS%g
7285 s%@SNPRINTF@%$SNPRINTF%g
7287 s%@GETRUSAGE@%$GETRUSAGE%g
7288 s%@SRANDOM@%$SRANDOM%g
7289 s%@GETHOSTNAME@%$GETHOSTNAME%g
7290 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
7291 s%@INET_ATON@%$INET_ATON%g
7292 s%@STRERROR@%$STRERROR%g
7293 s%@STRERROR2@%$STRERROR2%g
7294 s%@STRDUP@%$STRDUP%g
7295 s%@STRTOL@%$STRTOL%g
7296 s%@STRTOUL@%$STRTOUL%g
7297 s%@STRCASECMP@%$STRCASECMP%g
7298 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
7299 s%@HAVE_RL_COMPLETION_APPEND_CHARACTER@%$HAVE_RL_COMPLETION_APPEND_CHARACTER%g
7300 s%@HAVE_FILENAME_COMPLETION_FUNCTION@%$HAVE_FILENAME_COMPLETION_FUNCTION%g
7301 s%@HAVE_FILENAME_COMPLETION_FUNCTION_DECL@%$HAVE_FILENAME_COMPLETION_FUNCTION_DECL%g
7302 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
7304 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
7305 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
7310 cat >> $CONFIG_STATUS <<\EOF
7312 # Split the substitutions into bite-sized pieces for seds with
7313 # small command number limits, like on Digital OSF/1 and HP-UX.
7314 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7315 ac_file=1 # Number of current file.
7316 ac_beg=1 # First line for current file.
7317 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7320 while $ac_more_lines; do
7321 if test $ac_beg -gt 1; then
7322 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7324 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7326 if test ! -s conftest.s$ac_file; then
7328 rm -f conftest.s$ac_file
7330 if test -z "$ac_sed_cmds"; then
7331 ac_sed_cmds="sed -f conftest.s$ac_file"
7333 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7335 ac_file=`expr $ac_file + 1`
7337 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7340 if test -z "$ac_sed_cmds"; then
7345 cat >> $CONFIG_STATUS <<EOF
7347 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
7350 src/backend/port/Makefile
7353 cat >> $CONFIG_STATUS <<\EOF
7354 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7355 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7357 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7358 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7359 *) ac_file_in="${ac_file}.in" ;;
7362 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7364 # Remove last slash and all that follows it. Not all systems have dirname.
7365 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7366 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7367 # The file is in a subdirectory.
7368 test ! -d "$ac_dir" && mkdir "$ac_dir"
7369 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7370 # A "../" for each directory in $ac_dir_suffix.
7371 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7373 ac_dir_suffix= ac_dots=
7376 case "$ac_given_srcdir" in
7378 if test -z "$ac_dots"; then top_srcdir=.
7379 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7380 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7382 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7383 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7386 case "$ac_given_INSTALL" in
7387 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7388 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7391 echo creating "$ac_file"
7393 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7395 *Makefile*) ac_comsub="1i\\
7396 # $configure_input" ;;
7400 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7402 s%@configure_input@%$configure_input%g
7403 s%@srcdir@%$srcdir%g
7404 s%@top_srcdir@%$top_srcdir%g
7405 s%@INSTALL@%$INSTALL%g
7406 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7410 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7411 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7413 # ac_d sets the value in "#define NAME VALUE" lines.
7414 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7415 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7418 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7419 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7420 ac_uB='\([ ]\)%\1#\2define\3'
7423 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7424 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7425 ac_eB='$%\1#\2define\3'
7429 if test "${CONFIG_HEADERS+set}" != set; then
7431 cat >> $CONFIG_STATUS <<EOF
7432 CONFIG_HEADERS="src/include/config.h"
7434 cat >> $CONFIG_STATUS <<\EOF
7436 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7437 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7439 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7440 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7441 *) ac_file_in="${ac_file}.in" ;;
7444 echo creating $ac_file
7446 rm -f conftest.frag conftest.in conftest.out
7447 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7448 cat $ac_file_inputs > conftest.in
7452 # Transform confdefs.h into a sed script conftest.vals that substitutes
7453 # the proper values into config.h.in to produce config.h. And first:
7454 # Protect against being on the right side of a sed subst in config.status.
7455 # Protect against being in an unquoted here document in config.status.
7457 cat > conftest.hdr <<\EOF
7460 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7464 sed -n -f conftest.hdr confdefs.h > conftest.vals
7467 # This sed command replaces #undef with comments. This is necessary, for
7468 # example, in the case of _POSIX_SOURCE, which is predefined and required
7469 # on some systems where configure will not decide to define it.
7470 cat >> conftest.vals <<\EOF
7471 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7474 # Break up conftest.vals because some shells have a limit on
7475 # the size of here documents, and old seds have small limits too.
7480 ac_lines=`grep -c . conftest.vals`
7481 # grep -c gives empty output for an empty file on some AIX systems.
7482 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7483 # Write a limited-size here document to conftest.frag.
7484 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7485 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7487 sed -f conftest.frag conftest.in > conftest.out
7489 mv conftest.out conftest.in
7491 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7493 mv conftest.tail conftest.vals
7497 cat >> $CONFIG_STATUS <<\EOF
7498 rm -f conftest.frag conftest.h
7499 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7500 cat conftest.in >> conftest.h
7502 if cmp -s $ac_file conftest.h 2>/dev/null; then
7503 echo "$ac_file is unchanged"
7506 # Remove last slash and all that follows it. Not all systems have dirname.
7507 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7508 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7509 # The file is in a subdirectory.
7510 test ! -d "$ac_dir" && mkdir "$ac_dir"
7513 mv conftest.h $ac_file
7519 cat >> $CONFIG_STATUS <<EOF
7520 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}"
7521 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/os.h src/Makefile.port src/backend/port/tas.s"
7524 cat >> $CONFIG_STATUS <<\EOF
7525 srcdir=$ac_given_srcdir
7526 while test -n "$ac_sources"; do
7527 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7528 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7530 echo "linking $srcdir/$ac_source to $ac_dest"
7532 if test ! -r $srcdir/$ac_source; then
7533 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7537 # Make relative symlinks.
7538 # Remove last slash and all that follows it. Not all systems have dirname.
7539 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7540 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7541 # The dest file is in a subdirectory.
7542 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7543 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7544 # A "../" for each directory in $ac_dest_dir_suffix.
7545 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7547 ac_dest_dir_suffix= ac_dots=
7551 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7552 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7555 # Make a symlink if possible; otherwise try a hard link.
7556 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7557 ln $srcdir/$ac_source $ac_dest; then :
7559 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7563 cat >> $CONFIG_STATUS <<EOF
7566 cat >> $CONFIG_STATUS <<\EOF
7567 echo "timestamp file" > src/include/stamp-h
7571 chmod +x $CONFIG_STATUS
7572 rm -fr confdefs* $ac_clean_files
7573 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1