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
641 echo $ac_n "checking which template to use""... $ac_c" 1>&6
642 echo "configure:643: checking which template to use" >&5
644 # Check whether --with-template was given
645 if test x"${with_template+set}" = xset; then
646 case $with_template in
648 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
651 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
654 withval=$with_template
657 list) echo; ls "$srcdir/src/template"; exit;;
658 *) if test -f "$srcdir/src/template/$with_template" ; then
661 { echo "configure: error: \`$withval' is not a valid template name. Use \`list' for a list." 1>&2; exit 1; }
666 esac # $with_template
669 # --with-template not given
672 aix*) template=aix ;;
673 bsdi*) template=bsdi ;;
674 cygwin*) template=win ;;
675 dgux*) template=dgux ;;
676 freebsd*) template=freebsd ;;
677 hpux*) template=hpux ;;
678 irix*) template=irix5 ;;
679 linux*) template=linux ;;
680 netbsd*) template=netbsd ;;
681 nextstep*) template=nextstep ;;
682 openbsd*) template=openbsd ;;
683 osf*) template=osf ;;
684 qnx*) template=qnx4 ;;
685 sco*) template=sco ;;
688 sparc) template=solaris_sparc ;;
689 i?86) template=solaris_i386 ;;
691 sunos*) template=sunos4 ;;
694 univel) template=univel ;;
696 sysv4*) template=svr4 ;;
697 sysv5uw*) template=unixware ;;
698 ultrix*) template=ultrix4 ;;
701 if test x"$template" = x"" ; then
702 { echo "configure: error:
703 *******************************************************************
704 PostgreSQL has apparently not been ported to your platform yet.
705 To try a manual configuration, look into the src/template directory
706 for a similar platform and use the \`--with-template=' option.
708 Please also contact <pgsql-ports@postgresql.org> to see about
709 rectifying this. Include the above \`checking host system type...'
711 *******************************************************************
718 echo "$ac_t""$template" 1>&6
728 # Pick right test-and-set (TAS) code. Most platforms have inline
729 # assembler code in their port include file, so we just use a dummy
734 hpux) need_tas=yes; tas_file=hpux.s ;;
735 solaris_sparc) need_tas=yes; tas_file=solaris_sparc.s ;;
736 solaris_i386) need_tas=yes; tas_file=solaris_i386.s ;;
739 if test "$need_tas" = yes ; then
748 ## Command line options
753 # Add non-standard directories to the include path
755 # Check whether --with-includes was given
756 if test x"${with_includes+set}" = xset; then
757 case $with_includes in
759 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
762 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
764 esac # $with_includes
769 # Add non-standard directories to the library search path
771 # Check whether --with-libraries was given
772 if test x"${with_libraries+set}" = xset; then
773 case $with_libraries in
775 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
778 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
781 withval=$with_libraries
782 LIBRARY_DIRS=$withval
784 esac # $with_libraries
787 # Check whether --with-libs was given
788 if test x"${with_libs+set}" = xset; then
791 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
794 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
798 LIBRARY_DIRS=$withval
805 # Locale (--enable-locale)
807 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
808 echo "configure:809: checking whether to build with locale support" >&5
809 # Check whether --enable-locale was given
810 if test x"${enable_locale+set}" = xset; then
811 case $enable_locale in
813 cat >> confdefs.h <<\EOF
822 enableval=$enable_locale
823 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
825 esac # $enable_locale
830 echo "$ac_t""$enable_locale" 1>&6
834 # Character set recode (--enable-recode)
836 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
837 echo "configure:838: checking whether to build with recode support" >&5
838 # Check whether --enable-recode was given
839 if test x"${enable_recode+set}" = xset; then
840 case $enable_recode in
842 cat >> confdefs.h <<\EOF
851 enableval=$enable_recode
852 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
854 esac # $enable_recode
859 echo "$ac_t""$enable_recode" 1>&6
866 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
867 echo "configure:868: checking whether to build with multibyte character support" >&5
869 # Check whether --enable-multibyte was given
870 if test x"${enable_multibyte+set}" = xset; then
871 case $enable_multibyte in
879 enableval=$enable_multibyte
883 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|KOI8|WIN|ALT)
884 MULTIBYTE=$enableval;;
886 { echo "configure: error: argument to --enable-multibyte must be one of:
887 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
888 UNICODE, MULE_INTERNAL,
889 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
891 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
895 esac # $enable_multibyte
900 if test "$enable_multibyte" = yes; then
902 cat >> confdefs.h <<\EOF
906 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
909 echo "$ac_t""no" 1>&6
917 # Default port number (--with-pgport), default 5432
919 echo $ac_n "checking for default port number""... $ac_c" 1>&6
920 echo "configure:921: checking for default port number" >&5
921 # Check whether --with-pgport was given
922 if test x"${with_pgport+set}" = xset; then
925 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
928 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
932 default_port=$withval
938 # Need both of these because backend wants an integer and frontend a string
939 cat >> confdefs.h <<EOF
940 #define DEF_PGPORT ${default_port}
943 cat >> confdefs.h <<EOF
944 #define DEF_PGPORT_STR "${default_port}"
947 echo "$ac_t""$default_port" 1>&6
951 # Maximum number of allowed connections (--with-maxbackends), default 32
953 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
954 echo "configure:955: checking for default soft limit on number of connections" >&5
955 # Check whether --with-maxbackends was given
956 if test x"${with_maxbackends+set}" = xset; then
957 case $with_maxbackends in
959 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
962 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
964 esac # $with_maxbackends
968 echo "$ac_t""$with_maxbackends" 1>&6
969 cat >> confdefs.h <<EOF
970 #define DEF_MAXBACKENDS $with_maxbackends
979 # For historical reasons you can also use --with-CC to specify the C compiler
980 # to use, although the standard way to do this is to set the CC environment
982 # Check whether --with-CC was given
983 if test x"${with_CC+set}" = xset; then
986 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
989 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
998 # On AIX, default compiler to xlc.
999 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1001 # Extract the first word of "gcc", so it can be a program name with args.
1002 set dummy gcc; ac_word=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 if test -n "$CC"; then
1009 ac_cv_prog_CC="$CC" # Let the user override the test.
1011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1013 for ac_dir in $ac_dummy; do
1014 test -z "$ac_dir" && ac_dir=.
1015 if test -f $ac_dir/$ac_word; then
1024 if test -n "$CC"; then
1025 echo "$ac_t""$CC" 1>&6
1027 echo "$ac_t""no" 1>&6
1030 if test -z "$CC"; then
1031 # Extract the first word of "cc", so it can be a program name with args.
1032 set dummy cc; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC="$CC" # Let the user override the test.
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1044 for ac_dir in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir=.
1046 if test -f $ac_dir/$ac_word; then
1047 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1048 ac_prog_rejected=yes
1056 if test $ac_prog_rejected = yes; then
1057 # We found a bogon in the path, so make sure we never use it.
1058 set dummy $ac_cv_prog_CC
1060 if test $# -gt 0; then
1061 # We chose a different compiler from the bogus one.
1062 # However, it has the same basename, so the bogon will be chosen
1063 # first if we set CC to just the basename; use the full file name.
1065 set dummy "$ac_dir/$ac_word" "$@"
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1076 echo "$ac_t""no" 1>&6
1079 if test -z "$CC"; then
1080 case "`uname -s`" in
1082 # Extract the first word of "cl", so it can be a program name with args.
1083 set dummy cl; ac_word=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC="$CC" # Let the user override the test.
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1105 if test -n "$CC"; then
1106 echo "$ac_t""$CC" 1>&6
1108 echo "$ac_t""no" 1>&6
1113 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1116 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1121 ac_cpp='$CPP $CPPFLAGS'
1122 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1123 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1124 cross_compiling=$ac_cv_prog_cc_cross
1126 cat > conftest.$ac_ext << EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1133 if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1134 ac_cv_prog_cc_works=yes
1135 # If we can't run a trivial program, we are probably using a cross compiler.
1136 if (./conftest; exit) 2>/dev/null; then
1137 ac_cv_prog_cc_cross=no
1139 ac_cv_prog_cc_cross=yes
1142 echo "configure: failed program was:" >&5
1143 cat conftest.$ac_ext >&5
1144 ac_cv_prog_cc_works=no
1148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1149 ac_cpp='$CPP $CPPFLAGS'
1150 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1151 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1152 cross_compiling=$ac_cv_prog_cc_cross
1154 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1155 if test $ac_cv_prog_cc_works = no; then
1156 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1158 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1160 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1161 cross_compiling=$ac_cv_prog_cc_cross
1163 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether we are using GNU C" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 cat > conftest.c <<EOF
1173 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1180 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1182 if test $ac_cv_prog_gcc = yes; then
1188 ac_test_CFLAGS="${CFLAGS+set}"
1189 ac_save_CFLAGS="$CFLAGS"
1191 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether ${CC-cc} accepts -g" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 echo 'void f(){}' > conftest.c
1197 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1206 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1207 if test "$ac_test_CFLAGS" = set; then
1208 CFLAGS="$ac_save_CFLAGS"
1209 elif test $ac_cv_prog_cc_g = yes; then
1210 if test "$GCC" = yes; then
1216 if test "$GCC" = yes; then
1224 . "$srcdir/src/template/$template" || exit
1225 echo "using CFLAGS=$CFLAGS"
1226 # Check if the compiler still works with the template settings
1227 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1228 echo "configure:1229: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1231 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1232 ac_cpp='$CPP $CPPFLAGS'
1233 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1234 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1235 cross_compiling=$ac_cv_prog_cc_cross
1237 cat > conftest.$ac_ext << EOF
1239 #line 1240 "configure"
1240 #include "confdefs.h"
1244 if { (eval echo configure:1245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1245 ac_cv_prog_cc_works=yes
1246 # If we can't run a trivial program, we are probably using a cross compiler.
1247 if (./conftest; exit) 2>/dev/null; then
1248 ac_cv_prog_cc_cross=no
1250 ac_cv_prog_cc_cross=yes
1253 echo "configure: failed program was:" >&5
1254 cat conftest.$ac_ext >&5
1255 ac_cv_prog_cc_works=no
1259 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1260 ac_cpp='$CPP $CPPFLAGS'
1261 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1262 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1263 cross_compiling=$ac_cv_prog_cc_cross
1265 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1266 if test $ac_cv_prog_cc_works = no; then
1267 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1269 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1271 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1272 cross_compiling=$ac_cv_prog_cc_cross
1274 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1275 echo "configure:1276: checking for Cygwin environment" >&5
1276 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1286 #define __CYGWIN__ __CYGWIN32__
1291 if { (eval echo configure:1292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1295 echo "configure: failed program was:" >&5
1296 cat conftest.$ac_ext >&5
1304 echo "$ac_t""$ac_cv_cygwin" 1>&6
1306 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1307 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1308 echo "configure:1309: checking for mingw32 environment" >&5
1309 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 cat > conftest.$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1320 if { (eval echo configure:1321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1333 echo "$ac_t""$ac_cv_mingw32" 1>&6
1335 test "$ac_cv_mingw32" = yes && MINGW32=yes
1338 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1339 echo "configure:1340: checking for executable suffix" >&5
1340 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1347 echo 'int main () { return 0; }' > conftest.$ac_ext
1349 if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1350 for file in conftest.*; do
1352 *.c | *.o | *.obj) ;;
1353 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1357 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1360 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1365 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1366 echo "$ac_t""${ac_cv_exeext}" 1>&6
1369 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1370 echo "configure:1371: checking how to run the C preprocessor" >&5
1371 # On Suns, sometimes $CPP names a directory.
1372 if test -n "$CPP" && test -d "$CPP"; then
1375 if test -z "$CPP"; then
1376 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 # This must be in double quotes, not single quotes, because CPP may get
1380 # substituted into the Makefile and "${CC-cc}" will confuse make.
1382 # On the NeXT, cc -E runs the code through the compiler's parser,
1383 # not just through cpp.
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1391 { (eval echo configure:1392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1393 if test -z "$ac_err"; then
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1400 CPP="${CC-cc} -E -traditional-cpp"
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1408 { (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1410 if test -z "$ac_err"; then
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1417 CPP="${CC-cc} -nologo -E"
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1425 { (eval echo configure:1426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1427 if test -z "$ac_err"; then
1431 echo "configure: failed program was:" >&5
1432 cat conftest.$ac_ext >&5
1441 ac_cv_prog_CPP="$CPP"
1443 CPP="$ac_cv_prog_CPP"
1445 ac_cv_prog_CPP="$CPP"
1447 echo "$ac_t""$CPP" 1>&6
1449 if test $ac_cv_prog_gcc = yes; then
1450 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1451 echo "configure:1452: checking whether ${CC-cc} needs -traditional" >&5
1452 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 ac_pattern="Autoconf.*'x'"
1456 cat > conftest.$ac_ext <<EOF
1457 #line 1458 "configure"
1458 #include "confdefs.h"
1462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1463 egrep "$ac_pattern" >/dev/null 2>&1; then
1465 ac_cv_prog_gcc_traditional=yes
1468 ac_cv_prog_gcc_traditional=no
1473 if test $ac_cv_prog_gcc_traditional = no; then
1474 cat > conftest.$ac_ext <<EOF
1475 #line 1476 "configure"
1476 #include "confdefs.h"
1480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1481 egrep "$ac_pattern" >/dev/null 2>&1; then
1483 ac_cv_prog_gcc_traditional=yes
1490 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1491 if test $ac_cv_prog_gcc_traditional = yes; then
1492 CC="$CC -traditional"
1503 # Create compiler version string
1504 if test x"$GCC" = x"yes" ; then
1505 cc_string="GCC `${CC} --version`"
1509 cat >> confdefs.h <<EOF
1510 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1516 # Automatic dependency tracking
1518 # Check whether --enable-depend was given
1519 if test x"${enable_depend+set}" = xset; then
1520 case $enable_depend in
1528 enableval=$enable_depend
1529 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1531 esac # $enable_depend
1540 # --enable-debug adds -g to compiler flags
1542 # Check whether --enable-debug was given
1543 if test x"${enable_debug+set}" = xset; then
1544 case $enable_debug in
1552 enableval=$enable_debug
1553 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1555 esac # $enable_debug
1563 # Enable assert checks
1565 # Check whether --enable-cassert was given
1566 if test x"${enable_cassert+set}" = xset; then
1567 case $enable_cassert in
1569 cat >> confdefs.h <<\EOF
1570 #define USE_ASSERT_CHECKING 1
1578 enableval=$enable_cassert
1579 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1581 esac # $enable_cassert
1589 # Include directories
1593 # SRCH_INC comes from the template file
1594 for dir in $with_includes $SRCH_INC; do
1595 if test -d "$dir"; then
1596 INCLUDES="$INCLUDES -I$dir"
1598 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1606 # Library directories
1610 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1611 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1612 if test -d "$dir"; then
1613 PGSQL_LDFLAGS="$PGSQL_LDFLAGS -L$dir"
1615 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1624 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1625 echo "configure:1626: checking whether to build with Tcl" >&5
1626 # Check whether --with-tcl was given
1627 if test x"${with_tcl+set}" = xset; then
1637 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1644 echo "$ac_t""$with_tcl" 1>&6
1647 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1648 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1649 echo "configure:1650: checking whether to build with Tk" >&5
1650 if test "$with_tcl" = yes; then
1651 # Check whether --with-tk was given
1652 if test x"${with_tk+set}" = xset; then
1662 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1672 echo "$ac_t""$with_tk" 1>&6
1676 # We see if the path to the TCL/TK configuration scripts is specified.
1677 # This will override the use of tclsh to find the paths to search.
1679 # Check whether --with-tclconfig was given
1680 if test x"${with_tclconfig+set}" = xset; then
1681 case $with_tclconfig in
1683 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1686 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1688 esac # $with_tclconfig
1691 # We see if the path to the TK configuration scripts is specified.
1692 # This will override the use of tclsh to find the paths to search.
1694 # Check whether --with-tkconfig was given
1695 if test x"${with_tkconfig+set}" = xset; then
1696 case $with_tkconfig in
1698 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1701 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1703 esac # $with_tkconfig
1708 # Optionally build Perl modules (Pg.pm and PL/Perl)
1710 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1711 echo "configure:1712: checking whether to build Perl modules" >&5
1712 # Check whether --with-perl was given
1713 if test x"${with_perl+set}" = xset; then
1723 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1730 echo "$ac_t""$with_perl" 1>&6
1735 # Optionally build Python interface module
1737 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1738 echo "configure:1739: checking whether to build Python modules" >&5
1739 # Check whether --with-python was given
1740 if test x"${with_python+set}" = xset; then
1741 case $with_python in
1743 echo "$ac_t""yes" 1>&6
1744 # Extract the first word of "python", so it can be a program name with args.
1745 set dummy python; ac_word=$2
1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1747 echo "configure:1748: checking for $ac_word" >&5
1748 if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 if test -n "$PYTHON"; then
1752 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
1754 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1756 for ac_dir in $ac_dummy; do
1757 test -z "$ac_dir" && ac_dir=.
1758 if test -f $ac_dir/$ac_word; then
1759 ac_cv_prog_PYTHON="python"
1766 PYTHON="$ac_cv_prog_PYTHON"
1767 if test -n "$PYTHON"; then
1768 echo "$ac_t""$PYTHON" 1>&6
1770 echo "$ac_t""no" 1>&6
1774 if test "${PYTHON+set}" = set ; then
1775 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
1776 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
1777 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
1778 python_configdir="${python_execprefix}/lib/python${python_version}/config"
1779 python_moduledir="${python_prefix}/lib/python${python_version}"
1780 python_extmakefile="${python_configdir}/Makefile.pre.in"
1782 echo $ac_n "checking for Python extension makefile""... $ac_c" 1>&6
1783 echo "configure:1784: checking for Python extension makefile" >&5
1784 if test -f "${python_extmakefile}" ; then
1785 echo "$ac_t""found" 1>&6
1787 echo "$ac_t""no" 1>&6
1788 { echo "configure: error: The Python extension makefile was expected at \`${python_extmakefile}\'
1789 but does not exist. This means the Python module cannot be built automatically." 1>&2; exit 1; }
1799 { echo "configure: error: Python not found" 1>&2; exit 1; }
1803 echo "$ac_t""no" 1>&6
1806 withval=$with_python
1807 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1812 echo "$ac_t""no" 1>&6
1821 # Check whether --with-krb4 was given
1822 if test x"${with_krb4+set}" = xset; then
1825 krb4_prefix=/usr/athena
1833 krb4_prefix=$withval
1840 if test "$with_krb4" = yes; then
1842 echo "$ac_t""building with Kerberos 4 support" 1>&6
1843 cat >> confdefs.h <<\EOF
1848 if test -d "$krb4_prefix"; then
1849 if test -d "$krb4_prefix/include"; then
1850 INCLUDES="$INCLUDES -I$krb4_prefix/include"
1852 if test -d "$krb4_prefix/lib"; then
1853 krb_libdir="-L$krb4_prefix/lib"
1854 LIBS="$krb_libdir $LIBS"
1857 # Test for these libraries is below
1858 KRB_LIBS="$krb_libdir -lkrb -ldes"
1860 krb_srvtab="/etc/srvtab"
1871 # Check whether --with-krb5 was given
1872 if test x"${with_krb5+set}" = xset; then
1875 krb5_prefix=/usr/athena
1883 krb5_prefix=$withval
1890 if test "$with_krb5" = yes; then
1892 echo "$ac_t""building with Kerberos 5 support" 1>&6
1893 cat >> confdefs.h <<\EOF
1898 if test -d "$krb5_prefix"; then
1899 if test -d "$krb5_prefix/include"; then
1900 INCLUDES="$INCLUDES -I$krb5_prefix/include"
1902 if test -d "$krb5_prefix/lib"; then
1903 krb_libdir="-L$krb5_prefix/lib"
1904 LIBS="$krb_libdir $LIBS"
1908 # Test for these libraries is below
1909 KRB_LIBS="$krb_libdir -lkrb5 -lcrypto -lcom_err"
1911 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
1919 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
1920 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
1921 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
1929 # Kerberos configuration parameters
1931 # Check whether --with-krb-srvnam was given
1932 if test x"${with_krb_srvnam+set}" = xset; then
1933 case $with_krb_srvnam in
1935 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
1938 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
1940 esac # $with_krb_srvnam
1942 with_krb_srvnam="postgres"
1944 cat >> confdefs.h <<EOF
1945 #define PG_KRB_SRVNAM "$with_krb_srvnam"
1954 # Check whether --with-openssl was given
1955 if test x"${with_openssl+set}" = xset; then
1956 case $with_openssl in
1958 openssl_prefix=/usr/local/ssl
1964 withval=$with_openssl
1966 openssl_prefix=$withval
1968 esac # $with_openssl
1973 if test "$with_openssl" = yes; then
1975 echo "$ac_t""building with OpenSSL support" 1>&6
1976 cat >> confdefs.h <<\EOF
1981 if test -d "${openssl_prefix}/include" ; then
1982 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
1984 if test -d "${openssl_prefix}/lib" ; then
1985 openssl_libdir="${openssl_prefix}/lib"
1986 LIBS="$LIBS -L${openssl_prefix}/lib"
1988 openssl_libdir="${openssl_prefix}"
1989 LIBS="$LIBS -L${openssl_prefix}"
1998 # OpenSSL and Kerberos 5 both have a `crypto' library, so if you want to
1999 # use both of them you'll have to figure it out yourself.
2000 if test "$with_openssl" = yes && test "$with_krb5" = yes ; then
2001 { echo "configure: error: OpenSSL and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2006 # Optionally enable the building of the ODBC driver
2010 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2011 enable_odbc=$with_odbc
2014 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2015 echo "configure:2016: checking whether to build the ODBC driver" >&5
2016 # Check whether --enable-odbc was given
2017 if test x"${enable_odbc+set}" = xset; then
2018 case $enable_odbc in
2026 enableval=$enable_odbc
2027 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2034 echo "$ac_t""$enable_odbc" 1>&6
2038 # Allow for overriding the default location of the odbcinst.ini
2039 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2040 # Check whether --with-odbcinst was given
2041 if test x"${with_odbcinst+set}" = xset; then
2042 case $with_odbcinst in
2044 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2047 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2050 withval=$with_odbcinst
2051 odbcinst_ini_dir=$withval
2053 esac # $with_odbcinst
2055 odbcinst_ini_dir="\${sysconfdir}"
2061 # Assume system is ELF if it predefines __ELF__ as 1,
2062 # otherwise believe host_os based default.
2064 freebsd1*|freebsd2*) elf=yes;;
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2076 egrep "yes" >/dev/null 2>&1; then
2081 if test "X$elf" = "Xyes" ; then
2094 # Optionally build C++ code (i.e., libpq++)
2096 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2097 echo "configure:2098: checking whether to build C++ modules" >&5
2098 # Check whether --with-CXX was given
2099 if test x"${with_CXX+set}" = xset; then
2117 if test "$with_CXX" = yes; then
2119 echo "$ac_t""yes" 1>&6
2120 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2122 # Extract the first word of "$ac_prog", so it can be a program name with args.
2123 set dummy $ac_prog; ac_word=$2
2124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_word" >&5
2126 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 if test -n "$CXX"; then
2130 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2134 for ac_dir in $ac_dummy; do
2135 test -z "$ac_dir" && ac_dir=.
2136 if test -f $ac_dir/$ac_word; then
2137 ac_cv_prog_CXX="$ac_prog"
2144 CXX="$ac_cv_prog_CXX"
2145 if test -n "$CXX"; then
2146 echo "$ac_t""$CXX" 1>&6
2148 echo "$ac_t""no" 1>&6
2151 test -n "$CXX" && break
2153 test -n "$CXX" || CXX="gcc"
2156 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2157 echo "configure:2158: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2161 ac_cpp='$CXXCPP $CPPFLAGS'
2162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2164 cross_compiling=$ac_cv_prog_cxx_cross
2166 cat > conftest.$ac_ext << EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2171 int main(){return(0);}
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2174 ac_cv_prog_cxx_works=yes
2175 # If we can't run a trivial program, we are probably using a cross compiler.
2176 if (./conftest; exit) 2>/dev/null; then
2177 ac_cv_prog_cxx_cross=no
2179 ac_cv_prog_cxx_cross=yes
2182 echo "configure: failed program was:" >&5
2183 cat conftest.$ac_ext >&5
2184 ac_cv_prog_cxx_works=no
2188 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2191 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2192 cross_compiling=$ac_cv_prog_cc_cross
2194 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2195 if test $ac_cv_prog_cxx_works = no; then
2196 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2198 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2199 echo "configure:2200: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2200 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2201 cross_compiling=$ac_cv_prog_cxx_cross
2203 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2204 echo "configure:2205: checking whether we are using GNU C++" >&5
2205 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2208 cat > conftest.C <<EOF
2213 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2220 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2222 if test $ac_cv_prog_gxx = yes; then
2228 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2229 ac_save_CXXFLAGS="$CXXFLAGS"
2231 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2232 echo "configure:2233: checking whether ${CXX-g++} accepts -g" >&5
2233 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 echo 'void f(){}' > conftest.cc
2237 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2238 ac_cv_prog_cxx_g=yes
2246 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2247 if test "$ac_test_CXXFLAGS" = set; then
2248 CXXFLAGS="$ac_save_CXXFLAGS"
2249 elif test $ac_cv_prog_cxx_g = yes; then
2250 if test "$GXX" = yes; then
2256 if test "$GXX" = yes; then
2263 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2264 echo "configure:2265: checking how to run the C++ preprocessor" >&5
2265 if test -z "$CXXCPP"; then
2266 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2270 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2271 ac_cpp='$CXXCPP $CPPFLAGS'
2272 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2273 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2274 cross_compiling=$ac_cv_prog_cxx_cross
2275 CXXCPP="${CXX-g++} -E"
2276 cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2282 { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2284 if test -z "$ac_err"; then
2288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2294 ac_cv_prog_CXXCPP="$CXXCPP"
2296 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2299 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2300 cross_compiling=$ac_cv_prog_cc_cross
2303 CXXCPP="$ac_cv_prog_CXXCPP"
2304 echo "$ac_t""$CXXCPP" 1>&6
2308 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2309 ac_cpp='$CXXCPP $CPPFLAGS'
2310 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2311 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2312 cross_compiling=$ac_cv_prog_cxx_cross
2314 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2315 echo $ac_n "checking for string""... $ac_c" 1>&6
2316 echo "configure:2317: checking for string" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2326 { (eval echo configure:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2328 if test -z "$ac_err"; then
2330 eval "ac_cv_header_$ac_safe=yes"
2333 echo "configure: failed program was:" >&5
2334 cat conftest.$ac_ext >&5
2336 eval "ac_cv_header_$ac_safe=no"
2340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2341 echo "$ac_t""yes" 1>&6
2342 cat >> confdefs.h <<\EOF
2343 #define HAVE_CXX_STRING_HEADER 1
2347 echo "$ac_t""no" 1>&6
2351 if test x"$ac_cv_header_string" != xyes ; then
2352 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2353 echo "configure:2354: checking for class string in <string.h>" >&5
2354 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2368 if { (eval echo configure:2369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2370 pgac_cv_class_string_in_string_h=yes
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 pgac_cv_class_string_in_string_h=no
2380 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2382 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2383 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2390 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2391 cross_compiling=$ac_cv_prog_cc_cross
2394 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2395 echo "configure:2396: checking for namespace std in C++" >&5
2396 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2402 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2403 ac_cpp='$CXXCPP $CPPFLAGS'
2404 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2405 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2406 cross_compiling=$ac_cv_prog_cxx_cross
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2413 #ifdef HAVE_CXX_STRING_HEADER
2416 using namespace std;
2422 if { (eval echo configure:2423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2424 pgac_cv_cxx_namespace_std=yes
2426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2429 pgac_cv_cxx_namespace_std=no
2433 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2434 ac_cpp='$CPP $CPPFLAGS'
2435 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2436 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2437 cross_compiling=$ac_cv_prog_cc_cross
2441 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2443 if test $pgac_cv_cxx_namespace_std = yes ; then
2444 cat >> confdefs.h <<\EOF
2445 #define HAVE_NAMESPACE_STD 1
2451 echo "$ac_t""no" 1>&6
2457 CPPFLAGS="$CPPFLAGS $INCLUDES"
2458 LDFLAGS="$LDFLAGS $PGSQL_LDFLAGS"
2460 echo "using CPPFLAGS=$CPPFLAGS"
2461 echo "using LDFLAGS=$LDFLAGS"
2464 # Figure out how to invoke "install" and what install options to use.
2466 # Find a good install program. We prefer a C program (faster),
2467 # so one script is as good as another. But avoid the broken or
2468 # incompatible versions:
2469 # SysV /etc/install, /usr/sbin/install
2470 # SunOS /usr/etc/install
2471 # IRIX /sbin/install
2473 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2474 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2475 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2476 # ./install, which can be erroneously created by make from ./install.sh.
2477 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2478 echo "configure:2479: checking for a BSD compatible install" >&5
2479 if test -z "$INSTALL"; then
2480 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2484 for ac_dir in $PATH; do
2485 # Account for people who put trailing slashes in PATH elements.
2487 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2489 # OSF1 and SCO ODT 3.0 have their own names for install.
2490 # Don't use installbsd from OSF since it installs stuff as root
2492 for ac_prog in ginstall scoinst install; do
2493 if test -f $ac_dir/$ac_prog; then
2494 if test $ac_prog = install &&
2495 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2496 # AIX install. It has an incompatible calling convention.
2499 ac_cv_path_install="$ac_dir/$ac_prog -c"
2510 if test "${ac_cv_path_install+set}" = set; then
2511 INSTALL="$ac_cv_path_install"
2513 # As a last resort, use the slow shell script. We don't cache a
2514 # path for INSTALL within a source directory, because that will
2515 # break other packages using the cache if that directory is
2516 # removed, or if the path is relative.
2517 INSTALL="$ac_install_sh"
2520 echo "$ac_t""$INSTALL" 1>&6
2522 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2523 # It thinks the first close brace ends the variable substitution.
2524 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2526 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2528 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2530 # When Autoconf chooses install-sh as install program it tries to generate
2531 # a relative path to it in each makefile where it subsitutes it. This clashes
2532 # with our Makefile.global concept. This workaround helps.
2534 *install-sh*) INSTALL='\${SHELL} \${top_srcdir}/config/install-sh -c';;
2537 # Fix Autoconf's brain-dead defaults for script installs.
2538 INSTALL_SCRIPT="\${INSTALL} -m 755"
2540 # HPUX wants shared libs to be mode 555. Add your platform's special
2541 # needs here if necessary.
2543 hpux*) INSTL_SHLIB_OPTS="-m 555" ;;
2544 *) INSTL_SHLIB_OPTS="-m 644" ;;
2547 INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
2551 mkinstalldirs="\$(SHELL) \$(top_srcdir)/config/mkinstalldirs"
2555 for ac_prog in mawk gawk nawk awk
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2560 echo "configure:2561: checking for $ac_word" >&5
2561 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 if test -n "$AWK"; then
2565 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2569 for ac_dir in $ac_dummy; do
2570 test -z "$ac_dir" && ac_dir=.
2571 if test -f $ac_dir/$ac_word; then
2572 ac_cv_prog_AWK="$ac_prog"
2579 AWK="$ac_cv_prog_AWK"
2580 if test -n "$AWK"; then
2581 echo "$ac_t""$AWK" 1>&6
2583 echo "$ac_t""no" 1>&6
2586 test -n "$AWK" && break
2589 echo $ac_n "checking for flex""... $ac_c" 1>&6
2590 echo "configure:2591: checking for flex" >&5
2591 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2592 echo $ac_n "(cached) $ac_c" 1>&6
2594 # Let the user override the test
2595 if test -n "$FLEX"; then
2596 pgac_cv_path_flex=$FLEX
2600 for pgac_dir in $PATH; do
2601 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2604 for pgac_prog in flex lex; do
2605 pgac_candidate="$pgac_dir/$pgac_prog"
2606 if test -f "$pgac_candidate" \
2607 && $pgac_candidate --version >/dev/null 2>&1
2609 echo '%%' > conftest.l
2610 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2611 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2612 pgac_broken_flex=$pgac_candidate
2616 pgac_cv_path_flex=$pgac_candidate
2624 : ${pgac_cv_path_flex=no}
2629 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2630 if test x"$pgac_cv_path_flex" = x"no"; then
2631 if test -n "$pgac_broken_flex"; then
2632 echo "configure: warning:
2634 The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2635 should get version 2.5.4 or later.
2639 echo "configure: warning:
2641 Without Flex you won't be able to build PostgreSQL from scratch, or change
2642 any of the scanner definition files. You can obtain Flex from a GNU mirror
2643 site. (If you are using the official distribution of PostgreSQL then you
2644 do not need to worry about this because the lexer files are pre-generated.)
2648 if test x"$pgac_cv_path_flex" = x"no"; then
2651 FLEX=$pgac_cv_path_flex
2657 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2658 echo "configure:2659: checking whether ln -s works" >&5
2659 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2663 if ln -s X conftestdata 2>/dev/null
2666 ac_cv_prog_LN_S="ln -s"
2671 LN_S="$ac_cv_prog_LN_S"
2672 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2673 echo "$ac_t""yes" 1>&6
2675 echo "$ac_t""no" 1>&6
2678 # Extract the first word of "ranlib", so it can be a program name with args.
2679 set dummy ranlib; ac_word=$2
2680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_word" >&5
2682 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 if test -n "$RANLIB"; then
2686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2690 for ac_dir in $ac_dummy; do
2691 test -z "$ac_dir" && ac_dir=.
2692 if test -f $ac_dir/$ac_word; then
2693 ac_cv_prog_RANLIB="ranlib"
2698 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2701 RANLIB="$ac_cv_prog_RANLIB"
2702 if test -n "$RANLIB"; then
2703 echo "$ac_t""$RANLIB" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 # Extract the first word of "tar", so it can be a program name with args.
2709 set dummy tar; ac_word=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2717 ac_cv_path_tar="$tar" # Let the user override the test with a path.
2720 ac_cv_path_tar="$tar" # Let the user override the test with a dos path.
2723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2725 for ac_dir in $ac_dummy; do
2726 test -z "$ac_dir" && ac_dir=.
2727 if test -f $ac_dir/$ac_word; then
2728 ac_cv_path_tar="$ac_dir/$ac_word"
2736 tar="$ac_cv_path_tar"
2737 if test -n "$tar"; then
2738 echo "$ac_t""$tar" 1>&6
2740 echo "$ac_t""no" 1>&6
2745 # Extract the first word of "$ac_prog", so it can be a program name with args.
2746 set dummy $ac_prog; ac_word=$2
2747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2748 echo "configure:2749: checking for $ac_word" >&5
2749 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 if test -n "$PERL"; then
2753 ac_cv_prog_PERL="$PERL" # Let the user override the test.
2755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2757 for ac_dir in $ac_dummy; do
2758 test -z "$ac_dir" && ac_dir=.
2759 if test -f $ac_dir/$ac_word; then
2760 ac_cv_prog_PERL="$ac_prog"
2767 PERL="$ac_cv_prog_PERL"
2768 if test -n "$PERL"; then
2769 echo "$ac_t""$PERL" 1>&6
2771 echo "$ac_t""no" 1>&6
2774 test -n "$PERL" && break
2777 for ac_prog in 'bison -y' byacc
2779 # Extract the first word of "$ac_prog", so it can be a program name with args.
2780 set dummy $ac_prog; ac_word=$2
2781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2782 echo "configure:2783: checking for $ac_word" >&5
2783 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 if test -n "$YACC"; then
2787 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2791 for ac_dir in $ac_dummy; do
2792 test -z "$ac_dir" && ac_dir=.
2793 if test -f $ac_dir/$ac_word; then
2794 ac_cv_prog_YACC="$ac_prog"
2801 YACC="$ac_cv_prog_YACC"
2802 if test -n "$YACC"; then
2803 echo "$ac_t""$YACC" 1>&6
2805 echo "$ac_t""no" 1>&6
2808 test -n "$YACC" && break
2810 test -n "$YACC" || YACC="yacc"
2813 if test "$with_tk" = yes; then
2814 # Extract the first word of "wish", so it can be a program name with args.
2815 set dummy wish; ac_word=$2
2816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_word" >&5
2818 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2823 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
2826 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
2829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2831 for ac_dir in $ac_dummy; do
2832 test -z "$ac_dir" && ac_dir=.
2833 if test -f $ac_dir/$ac_word; then
2834 ac_cv_path_WISH="$ac_dir/$ac_word"
2842 WISH="$ac_cv_path_WISH"
2843 if test -n "$WISH"; then
2844 echo "$ac_t""$WISH" 1>&6
2846 echo "$ac_t""no" 1>&6
2849 test -z "$WISH" && { echo "configure: error: \`wish' is required for Tk support" 1>&2; exit 1; }
2857 echo $ac_n "checking for main in -lsfio""... $ac_c" 1>&6
2858 echo "configure:2859: checking for main in -lsfio" >&5
2859 ac_lib_var=`echo sfio'_'main | sed 'y%./+-%__p_%'`
2860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 ac_save_LIBS="$LIBS"
2865 cat > conftest.$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2873 if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2875 eval "ac_cv_lib_$ac_lib_var=yes"
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2880 eval "ac_cv_lib_$ac_lib_var=no"
2883 LIBS="$ac_save_LIBS"
2886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2887 echo "$ac_t""yes" 1>&6
2888 ac_tr_lib=HAVE_LIB`echo sfio | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2889 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2890 cat >> confdefs.h <<EOF
2891 #define $ac_tr_lib 1
2897 echo "$ac_t""no" 1>&6
2900 echo $ac_n "checking for main in -lncurses""... $ac_c" 1>&6
2901 echo "configure:2902: checking for main in -lncurses" >&5
2902 ac_lib_var=`echo ncurses'_'main | sed 'y%./+-%__p_%'`
2903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 ac_save_LIBS="$LIBS"
2907 LIBS="-lncurses $LIBS"
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2916 if { (eval echo configure:2917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2918 eval "ac_cv_lib_$ac_lib_var=yes"
2920 echo "configure: failed program was:" >&5
2921 cat conftest.$ac_ext >&5
2923 eval "ac_cv_lib_$ac_lib_var=no"
2926 LIBS="$ac_save_LIBS"
2929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2930 echo "$ac_t""yes" 1>&6
2931 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2932 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2933 cat >> confdefs.h <<EOF
2934 #define $ac_tr_lib 1
2937 LIBS="-lncurses $LIBS"
2940 echo "$ac_t""no" 1>&6
2941 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
2942 echo "configure:2943: checking for main in -lcurses" >&5
2943 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
2944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 ac_save_LIBS="$LIBS"
2948 LIBS="-lcurses $LIBS"
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2957 if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2959 eval "ac_cv_lib_$ac_lib_var=yes"
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2964 eval "ac_cv_lib_$ac_lib_var=no"
2967 LIBS="$ac_save_LIBS"
2970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2971 echo "$ac_t""yes" 1>&6
2972 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2974 cat >> confdefs.h <<EOF
2975 #define $ac_tr_lib 1
2978 LIBS="-lcurses $LIBS"
2981 echo "$ac_t""no" 1>&6
2986 echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
2987 echo "configure:2988: checking for main in -ltermcap" >&5
2988 ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
2989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 ac_save_LIBS="$LIBS"
2993 LIBS="-ltermcap $LIBS"
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
3002 if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3004 eval "ac_cv_lib_$ac_lib_var=yes"
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3009 eval "ac_cv_lib_$ac_lib_var=no"
3012 LIBS="$ac_save_LIBS"
3015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3016 echo "$ac_t""yes" 1>&6
3017 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3018 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3019 cat >> confdefs.h <<EOF
3020 #define $ac_tr_lib 1
3023 LIBS="-ltermcap $LIBS"
3026 echo "$ac_t""no" 1>&6
3029 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
3030 echo "configure:3031: checking for main in -lreadline" >&5
3031 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
3032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 ac_save_LIBS="$LIBS"
3036 LIBS="-lreadline $LIBS"
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3045 if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3047 eval "ac_cv_lib_$ac_lib_var=yes"
3049 echo "configure: failed program was:" >&5
3050 cat conftest.$ac_ext >&5
3052 eval "ac_cv_lib_$ac_lib_var=no"
3055 LIBS="$ac_save_LIBS"
3058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3059 echo "$ac_t""yes" 1>&6
3060 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3061 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3062 cat >> confdefs.h <<EOF
3063 #define $ac_tr_lib 1
3066 LIBS="-lreadline $LIBS"
3069 echo "$ac_t""no" 1>&6
3072 echo $ac_n "checking for using_history in -lreadline""... $ac_c" 1>&6
3073 echo "configure:3074: checking for using_history in -lreadline" >&5
3074 ac_lib_var=`echo readline'_'using_history | sed 'y%./+-%__p_%'`
3075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 ac_save_LIBS="$LIBS"
3079 LIBS="-lreadline $LIBS"
3080 cat > conftest.$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3083 /* Override any gcc2 internal prototype to avoid an error. */
3084 /* We use char because int might match the return type of a gcc2
3085 builtin and then its argument prototype would still apply. */
3086 char using_history();
3092 if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094 eval "ac_cv_lib_$ac_lib_var=yes"
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3099 eval "ac_cv_lib_$ac_lib_var=no"
3102 LIBS="$ac_save_LIBS"
3105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 cat >> confdefs.h <<\EOF
3108 #define HAVE_HISTORY_IN_READLINE 1
3112 echo "$ac_t""no" 1>&6
3113 echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
3114 echo "configure:3115: checking for main in -lhistory" >&5
3115 ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
3116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 ac_save_LIBS="$LIBS"
3120 LIBS="-lhistory $LIBS"
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3129 if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3131 eval "ac_cv_lib_$ac_lib_var=yes"
3133 echo "configure: failed program was:" >&5
3134 cat conftest.$ac_ext >&5
3136 eval "ac_cv_lib_$ac_lib_var=no"
3139 LIBS="$ac_save_LIBS"
3142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3143 echo "$ac_t""yes" 1>&6
3144 ac_tr_lib=HAVE_LIB`echo history | sed -e 's/^a-zA-Z0-9_/_/g' \
3145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3146 cat >> confdefs.h <<EOF
3147 #define $ac_tr_lib 1
3150 LIBS="-lhistory $LIBS"
3153 echo "$ac_t""no" 1>&6
3159 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3161 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3162 echo "configure:3163: checking for main in -lbsd" >&5
3163 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 ac_save_LIBS="$LIBS"
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3177 if { (eval echo configure:3178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3179 eval "ac_cv_lib_$ac_lib_var=yes"
3181 echo "configure: failed program was:" >&5
3182 cat conftest.$ac_ext >&5
3184 eval "ac_cv_lib_$ac_lib_var=no"
3187 LIBS="$ac_save_LIBS"
3190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3191 echo "$ac_t""yes" 1>&6
3192 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3194 cat >> confdefs.h <<EOF
3195 #define $ac_tr_lib 1
3201 echo "$ac_t""no" 1>&6
3205 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3206 echo "configure:3207: checking for setproctitle in -lutil" >&5
3207 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 ac_save_LIBS="$LIBS"
3213 cat > conftest.$ac_ext <<EOF
3214 #line 3215 "configure"
3215 #include "confdefs.h"
3216 /* Override any gcc2 internal prototype to avoid an error. */
3217 /* We use char because int might match the return type of a gcc2
3218 builtin and then its argument prototype would still apply. */
3219 char setproctitle();
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 eval "ac_cv_lib_$ac_lib_var=yes"
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 eval "ac_cv_lib_$ac_lib_var=no"
3235 LIBS="$ac_save_LIBS"
3238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3242 cat >> confdefs.h <<EOF
3243 #define $ac_tr_lib 1
3249 echo "$ac_t""no" 1>&6
3252 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3253 echo "configure:3254: checking for main in -lm" >&5
3254 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3258 ac_save_LIBS="$LIBS"
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270 eval "ac_cv_lib_$ac_lib_var=yes"
3272 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5
3275 eval "ac_cv_lib_$ac_lib_var=no"
3278 LIBS="$ac_save_LIBS"
3281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3282 echo "$ac_t""yes" 1>&6
3283 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3285 cat >> confdefs.h <<EOF
3286 #define $ac_tr_lib 1
3292 echo "$ac_t""no" 1>&6
3295 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3296 echo "configure:3297: checking for main in -ldl" >&5
3297 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 ac_save_LIBS="$LIBS"
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3311 if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313 eval "ac_cv_lib_$ac_lib_var=yes"
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3318 eval "ac_cv_lib_$ac_lib_var=no"
3321 LIBS="$ac_save_LIBS"
3324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3326 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3327 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3328 cat >> confdefs.h <<EOF
3329 #define $ac_tr_lib 1
3335 echo "$ac_t""no" 1>&6
3338 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3339 echo "configure:3340: checking for main in -lsocket" >&5
3340 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 ac_save_LIBS="$LIBS"
3345 LIBS="-lsocket $LIBS"
3346 cat > conftest.$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3356 eval "ac_cv_lib_$ac_lib_var=yes"
3358 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5
3361 eval "ac_cv_lib_$ac_lib_var=no"
3364 LIBS="$ac_save_LIBS"
3367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3368 echo "$ac_t""yes" 1>&6
3369 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3370 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3371 cat >> confdefs.h <<EOF
3372 #define $ac_tr_lib 1
3375 LIBS="-lsocket $LIBS"
3378 echo "$ac_t""no" 1>&6
3381 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3382 echo "configure:3383: checking for main in -lnsl" >&5
3383 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 ac_save_LIBS="$LIBS"
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3397 if { (eval echo configure:3398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3399 eval "ac_cv_lib_$ac_lib_var=yes"
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 eval "ac_cv_lib_$ac_lib_var=no"
3407 LIBS="$ac_save_LIBS"
3410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3413 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3414 cat >> confdefs.h <<EOF
3415 #define $ac_tr_lib 1
3421 echo "$ac_t""no" 1>&6
3424 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3425 echo "configure:3426: checking for main in -lipc" >&5
3426 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 ac_save_LIBS="$LIBS"
3432 cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3442 eval "ac_cv_lib_$ac_lib_var=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3447 eval "ac_cv_lib_$ac_lib_var=no"
3450 LIBS="$ac_save_LIBS"
3453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3457 cat >> confdefs.h <<EOF
3458 #define $ac_tr_lib 1
3464 echo "$ac_t""no" 1>&6
3467 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3468 echo "configure:3469: checking for main in -lIPC" >&5
3469 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 ac_save_LIBS="$LIBS"
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3483 if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3485 eval "ac_cv_lib_$ac_lib_var=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3490 eval "ac_cv_lib_$ac_lib_var=no"
3493 LIBS="$ac_save_LIBS"
3496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3497 echo "$ac_t""yes" 1>&6
3498 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3499 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3500 cat >> confdefs.h <<EOF
3501 #define $ac_tr_lib 1
3507 echo "$ac_t""no" 1>&6
3510 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3511 echo "configure:3512: checking for main in -llc" >&5
3512 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_save_LIBS="$LIBS"
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3526 if { (eval echo configure:3527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3528 eval "ac_cv_lib_$ac_lib_var=yes"
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3533 eval "ac_cv_lib_$ac_lib_var=no"
3536 LIBS="$ac_save_LIBS"
3539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3540 echo "$ac_t""yes" 1>&6
3541 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3542 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3543 cat >> confdefs.h <<EOF
3544 #define $ac_tr_lib 1
3550 echo "$ac_t""no" 1>&6
3553 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3554 echo "configure:3555: checking for main in -ldld" >&5
3555 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 ac_save_LIBS="$LIBS"
3561 cat > conftest.$ac_ext <<EOF
3562 #line 3563 "configure"
3563 #include "confdefs.h"
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_lib_$ac_lib_var=no"
3579 LIBS="$ac_save_LIBS"
3582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3584 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3585 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3586 cat >> confdefs.h <<EOF
3587 #define $ac_tr_lib 1
3593 echo "$ac_t""no" 1>&6
3596 echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
3597 echo "configure:3598: checking for main in -lln" >&5
3598 ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
3599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 ac_save_LIBS="$LIBS"
3604 cat > conftest.$ac_ext <<EOF
3605 #line 3606 "configure"
3606 #include "confdefs.h"
3612 if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3614 eval "ac_cv_lib_$ac_lib_var=yes"
3616 echo "configure: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3619 eval "ac_cv_lib_$ac_lib_var=no"
3622 LIBS="$ac_save_LIBS"
3625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3626 echo "$ac_t""yes" 1>&6
3627 ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3629 cat >> confdefs.h <<EOF
3630 #define $ac_tr_lib 1
3636 echo "$ac_t""no" 1>&6
3639 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3640 echo "configure:3641: checking for main in -lld" >&5
3641 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 ac_save_LIBS="$LIBS"
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3655 if { (eval echo configure:3656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3657 eval "ac_cv_lib_$ac_lib_var=yes"
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3662 eval "ac_cv_lib_$ac_lib_var=no"
3665 LIBS="$ac_save_LIBS"
3668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3669 echo "$ac_t""yes" 1>&6
3670 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3671 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3672 cat >> confdefs.h <<EOF
3673 #define $ac_tr_lib 1
3679 echo "$ac_t""no" 1>&6
3682 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3683 echo "configure:3684: checking for main in -lcompat" >&5
3684 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3688 ac_save_LIBS="$LIBS"
3689 LIBS="-lcompat $LIBS"
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3698 if { (eval echo configure:3699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3700 eval "ac_cv_lib_$ac_lib_var=yes"
3702 echo "configure: failed program was:" >&5
3703 cat conftest.$ac_ext >&5
3705 eval "ac_cv_lib_$ac_lib_var=no"
3708 LIBS="$ac_save_LIBS"
3711 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3712 echo "$ac_t""yes" 1>&6
3713 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3714 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3715 cat >> confdefs.h <<EOF
3716 #define $ac_tr_lib 1
3719 LIBS="-lcompat $LIBS"
3722 echo "$ac_t""no" 1>&6
3725 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3726 echo "configure:3727: checking for main in -lBSD" >&5
3727 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 ac_save_LIBS="$LIBS"
3733 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3741 if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3743 eval "ac_cv_lib_$ac_lib_var=yes"
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3748 eval "ac_cv_lib_$ac_lib_var=no"
3751 LIBS="$ac_save_LIBS"
3754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3755 echo "$ac_t""yes" 1>&6
3756 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3757 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3758 cat >> confdefs.h <<EOF
3759 #define $ac_tr_lib 1
3765 echo "$ac_t""no" 1>&6
3768 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3769 echo "configure:3770: checking for main in -lgen" >&5
3770 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 ac_save_LIBS="$LIBS"
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3786 eval "ac_cv_lib_$ac_lib_var=yes"
3788 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5
3791 eval "ac_cv_lib_$ac_lib_var=no"
3794 LIBS="$ac_save_LIBS"
3797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3798 echo "$ac_t""yes" 1>&6
3799 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3800 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3801 cat >> confdefs.h <<EOF
3802 #define $ac_tr_lib 1
3808 echo "$ac_t""no" 1>&6
3811 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
3812 echo "configure:3813: checking for main in -lPW" >&5
3813 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
3814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 ac_save_LIBS="$LIBS"
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829 eval "ac_cv_lib_$ac_lib_var=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3834 eval "ac_cv_lib_$ac_lib_var=no"
3837 LIBS="$ac_save_LIBS"
3840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3842 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3843 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3844 cat >> confdefs.h <<EOF
3845 #define $ac_tr_lib 1
3851 echo "$ac_t""no" 1>&6
3855 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
3856 echo "configure:3857: checking for library containing crypt" >&5
3857 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 ac_func_search_save_LIBS="$LIBS"
3861 ac_cv_search_crypt="no"
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876 ac_cv_search_crypt="none required"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3882 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
3883 LIBS="-l$i $ac_func_search_save_LIBS"
3884 cat > conftest.$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3887 /* Override any gcc2 internal prototype to avoid an error. */
3888 /* We use char because int might match the return type of a gcc2
3889 builtin and then its argument prototype would still apply. */
3896 if { (eval echo configure:3897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3898 ac_cv_search_crypt="-l$i"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3906 LIBS="$ac_func_search_save_LIBS"
3909 echo "$ac_t""$ac_cv_search_crypt" 1>&6
3910 if test "$ac_cv_search_crypt" != "no"; then
3911 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
3916 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
3917 echo "configure:3918: checking for inflate in -lz" >&5
3918 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
3919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3922 ac_save_LIBS="$LIBS"
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3927 /* Override any gcc2 internal prototype to avoid an error. */
3928 /* We use char because int might match the return type of a gcc2
3929 builtin and then its argument prototype would still apply. */
3936 if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3938 eval "ac_cv_lib_$ac_lib_var=yes"
3940 echo "configure: failed program was:" >&5
3941 cat conftest.$ac_ext >&5
3943 eval "ac_cv_lib_$ac_lib_var=no"
3946 LIBS="$ac_save_LIBS"
3949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3950 echo "$ac_t""yes" 1>&6
3951 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3953 cat >> confdefs.h <<EOF
3954 #define $ac_tr_lib 1
3960 echo "$ac_t""no" 1>&6
3964 if test "$with_krb4" = yes ; then
3965 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
3966 echo "configure:3967: checking for des_encrypt in -ldes" >&5
3967 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
3968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3971 ac_save_LIBS="$LIBS"
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3985 if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3987 eval "ac_cv_lib_$ac_lib_var=yes"
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3992 eval "ac_cv_lib_$ac_lib_var=no"
3995 LIBS="$ac_save_LIBS"
3998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3999 echo "$ac_t""yes" 1>&6
4000 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4001 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4002 cat >> confdefs.h <<EOF
4003 #define $ac_tr_lib 1
4009 echo "$ac_t""no" 1>&6
4010 { echo "configure: error: library \`des' is required for Kerberos 4" 1>&2; exit 1; }
4013 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4014 echo "configure:4015: checking for krb_sendauth in -lkrb" >&5
4015 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4019 ac_save_LIBS="$LIBS"
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4024 /* Override any gcc2 internal prototype to avoid an error. */
4025 /* We use char because int might match the return type of a gcc2
4026 builtin and then its argument prototype would still apply. */
4027 char krb_sendauth();
4033 if { (eval echo configure:4034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4035 eval "ac_cv_lib_$ac_lib_var=yes"
4037 echo "configure: failed program was:" >&5
4038 cat conftest.$ac_ext >&5
4040 eval "ac_cv_lib_$ac_lib_var=no"
4043 LIBS="$ac_save_LIBS"
4046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4047 echo "$ac_t""yes" 1>&6
4048 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4049 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4050 cat >> confdefs.h <<EOF
4051 #define $ac_tr_lib 1
4057 echo "$ac_t""no" 1>&6
4058 { echo "configure: error: library \`krb' is required for Kerberos 4" 1>&2; exit 1; }
4063 if test "$with_krb5" = yes ; then
4064 echo $ac_n "checking for main in -lcom_err""... $ac_c" 1>&6
4065 echo "configure:4066: checking for main in -lcom_err" >&5
4066 ac_lib_var=`echo com_err'_'main | sed 'y%./+-%__p_%'`
4067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4070 ac_save_LIBS="$LIBS"
4071 LIBS="-lcom_err $LIBS"
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4082 eval "ac_cv_lib_$ac_lib_var=yes"
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4087 eval "ac_cv_lib_$ac_lib_var=no"
4090 LIBS="$ac_save_LIBS"
4093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4094 echo "$ac_t""yes" 1>&6
4095 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4097 cat >> confdefs.h <<EOF
4098 #define $ac_tr_lib 1
4101 LIBS="-lcom_err $LIBS"
4104 echo "$ac_t""no" 1>&6
4105 { echo "configure: error: library \`com_err' is required for Kerberos 5" 1>&2; exit 1; }
4108 echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
4109 echo "configure:4110: checking for main in -lcrypto" >&5
4110 ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
4111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 ac_save_LIBS="$LIBS"
4115 LIBS="-lcrypto $LIBS"
4116 cat > conftest.$ac_ext <<EOF
4117 #line 4118 "configure"
4118 #include "confdefs.h"
4124 if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4126 eval "ac_cv_lib_$ac_lib_var=yes"
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4131 eval "ac_cv_lib_$ac_lib_var=no"
4134 LIBS="$ac_save_LIBS"
4137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6
4139 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4141 cat >> confdefs.h <<EOF
4142 #define $ac_tr_lib 1
4145 LIBS="-lcrypto $LIBS"
4148 echo "$ac_t""no" 1>&6
4149 { echo "configure: error: library \`crypto' is required for Kerberos 5" 1>&2; exit 1; }
4152 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
4153 echo "configure:4154: checking for main in -lkrb5" >&5
4154 ac_lib_var=`echo krb5'_'main | sed 'y%./+-%__p_%'`
4155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 ac_save_LIBS="$LIBS"
4160 cat > conftest.$ac_ext <<EOF
4161 #line 4162 "configure"
4162 #include "confdefs.h"
4168 if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4170 eval "ac_cv_lib_$ac_lib_var=yes"
4172 echo "configure: failed program was:" >&5
4173 cat conftest.$ac_ext >&5
4175 eval "ac_cv_lib_$ac_lib_var=no"
4178 LIBS="$ac_save_LIBS"
4181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4182 echo "$ac_t""yes" 1>&6
4183 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4184 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4185 cat >> confdefs.h <<EOF
4186 #define $ac_tr_lib 1
4192 echo "$ac_t""no" 1>&6
4193 { echo "configure: error: library \`krb5' is required for Kerberos 5" 1>&2; exit 1; }
4198 if test "$with_openssl" = yes ; then
4199 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4200 echo "configure:4201: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4201 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 ac_save_LIBS="$LIBS"
4206 LIBS="-lcrypto $LIBS"
4207 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure"
4209 #include "confdefs.h"
4210 /* Override any gcc2 internal prototype to avoid an error. */
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4213 char CRYPTO_new_ex_data();
4216 CRYPTO_new_ex_data()
4219 if { (eval echo configure:4220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4221 eval "ac_cv_lib_$ac_lib_var=yes"
4223 echo "configure: failed program was:" >&5
4224 cat conftest.$ac_ext >&5
4226 eval "ac_cv_lib_$ac_lib_var=no"
4229 LIBS="$ac_save_LIBS"
4232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4233 echo "$ac_t""yes" 1>&6
4234 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4235 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4236 cat >> confdefs.h <<EOF
4237 #define $ac_tr_lib 1
4240 LIBS="-lcrypto $LIBS"
4243 echo "$ac_t""no" 1>&6
4244 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4247 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4248 echo "configure:4249: checking for SSL_library_init in -lssl" >&5
4249 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4253 ac_save_LIBS="$LIBS"
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 /* Override any gcc2 internal prototype to avoid an error. */
4259 /* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */
4261 char SSL_library_init();
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4269 eval "ac_cv_lib_$ac_lib_var=yes"
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4274 eval "ac_cv_lib_$ac_lib_var=no"
4277 LIBS="$ac_save_LIBS"
4280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4281 echo "$ac_t""yes" 1>&6
4282 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4284 cat >> confdefs.h <<EOF
4285 #define $ac_tr_lib 1
4291 echo "$ac_t""no" 1>&6
4292 { echo "configure: error: library \`ssl' is required for OpenSSL" 1>&2; exit 1; }
4301 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
4303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4305 echo "configure:4306: checking for $ac_hdr" >&5
4306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 cat > conftest.$ac_ext <<EOF
4310 #line 4311 "configure"
4311 #include "confdefs.h"
4314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4315 { (eval echo configure:4316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4317 if test -z "$ac_err"; then
4319 eval "ac_cv_header_$ac_safe=yes"
4322 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4325 eval "ac_cv_header_$ac_safe=no"
4329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4332 cat >> confdefs.h <<EOF
4333 #define $ac_tr_hdr 1
4337 echo "$ac_t""no" 1>&6
4342 for ac_hdr in readline/readline.h readline.h
4344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4346 echo "configure:4347: checking for $ac_hdr" >&5
4347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4356 { (eval echo configure:4357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4358 if test -z "$ac_err"; then
4360 eval "ac_cv_header_$ac_safe=yes"
4363 echo "configure: failed program was:" >&5
4364 cat conftest.$ac_ext >&5
4366 eval "ac_cv_header_$ac_safe=no"
4370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4371 echo "$ac_t""yes" 1>&6
4372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4373 cat >> confdefs.h <<EOF
4374 #define $ac_tr_hdr 1
4378 echo "$ac_t""no" 1>&6
4382 for ac_hdr in readline/history.h history.h
4384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4386 echo "configure:4387: checking for $ac_hdr" >&5
4387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4396 { (eval echo configure:4397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4398 if test -z "$ac_err"; then
4400 eval "ac_cv_header_$ac_safe=yes"
4403 echo "configure: failed program was:" >&5
4404 cat conftest.$ac_ext >&5
4406 eval "ac_cv_header_$ac_safe=no"
4410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4411 echo "$ac_t""yes" 1>&6
4412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4413 cat >> confdefs.h <<EOF
4414 #define $ac_tr_hdr 1
4418 echo "$ac_t""no" 1>&6
4423 if test "$with_krb4" = yes ; then
4424 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
4425 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
4426 echo "configure:4427: checking for krb.h" >&5
4427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4436 { (eval echo configure:4437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4438 if test -z "$ac_err"; then
4440 eval "ac_cv_header_$ac_safe=yes"
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 eval "ac_cv_header_$ac_safe=no"
4450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4451 echo "$ac_t""yes" 1>&6
4454 echo "$ac_t""no" 1>&6
4455 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
4460 if test "$with_krb5" = yes ; then
4461 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
4462 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
4463 echo "configure:4464: checking for krb5.h" >&5
4464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure"
4469 #include "confdefs.h"
4472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4473 { (eval echo configure:4474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4475 if test -z "$ac_err"; then
4477 eval "ac_cv_header_$ac_safe=yes"
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4483 eval "ac_cv_header_$ac_safe=no"
4487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4488 echo "$ac_t""yes" 1>&6
4491 echo "$ac_t""no" 1>&6
4492 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
4495 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
4496 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
4497 echo "configure:4498: checking for com_err.h" >&5
4498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4501 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure"
4503 #include "confdefs.h"
4504 #include <com_err.h>
4506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4507 { (eval echo configure:4508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4509 if test -z "$ac_err"; then
4511 eval "ac_cv_header_$ac_safe=yes"
4514 echo "configure: failed program was:" >&5
4515 cat conftest.$ac_ext >&5
4517 eval "ac_cv_header_$ac_safe=no"
4521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4525 echo "$ac_t""no" 1>&6
4526 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
4531 if test "$with_openssl" = yes ; then
4532 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
4533 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
4534 echo "configure:4535: checking for openssl/ssl.h" >&5
4535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 #include <openssl/ssl.h>
4543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4544 { (eval echo configure:4545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4546 if test -z "$ac_err"; then
4548 eval "ac_cv_header_$ac_safe=yes"
4551 echo "configure: failed program was:" >&5
4552 cat conftest.$ac_ext >&5
4554 eval "ac_cv_header_$ac_safe=no"
4558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4562 echo "$ac_t""no" 1>&6
4563 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
4566 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
4567 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
4568 echo "configure:4569: checking for openssl/err.h" >&5
4569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 #include <openssl/err.h>
4577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4578 { (eval echo configure:4579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4580 if test -z "$ac_err"; then
4582 eval "ac_cv_header_$ac_safe=yes"
4585 echo "configure: failed program was:" >&5
4586 cat conftest.$ac_ext >&5
4588 eval "ac_cv_header_$ac_safe=no"
4592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4593 echo "$ac_t""yes" 1>&6
4596 echo "$ac_t""no" 1>&6
4597 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
4604 ## Types, structures, compiler characteristics
4606 echo $ac_n "checking for working const""... $ac_c" 1>&6
4607 echo "configure:4608: checking for working const" >&5
4608 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4617 /* Ultrix mips cc rejects this. */
4618 typedef int charset[2]; const charset x;
4619 /* SunOS 4.1.1 cc rejects this. */
4620 char const *const *ccp;
4622 /* NEC SVR4.0.2 mips cc rejects this. */
4623 struct point {int x, y;};
4624 static struct point const zero = {0,0};
4625 /* AIX XL C 1.02.0.0 rejects this.
4626 It does not let you subtract one const X* pointer from another in an arm
4627 of an if-expression whose if-part is not a constant expression */
4628 const char *g = "string";
4629 ccp = &g + (g ? g-g : 0);
4630 /* HPUX 7.0 cc rejects these. */
4633 ccp = (char const *const *) p;
4634 { /* SCO 3.2v4 cc rejects this. */
4636 char const *s = 0 ? (char *) 0 : (char const *) 0;
4640 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4642 const int *foo = &x[0];
4645 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4646 typedef const int *iptr;
4650 { /* AIX XL C 1.02.0.0 rejects this saying
4651 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4652 struct s { int j; const int *ap[3]; };
4653 struct s *b; b->j = 5;
4655 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4661 if { (eval echo configure:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4665 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5
4673 echo "$ac_t""$ac_cv_c_const" 1>&6
4674 if test $ac_cv_c_const = no; then
4675 cat >> confdefs.h <<\EOF
4681 echo $ac_n "checking for inline""... $ac_c" 1>&6
4682 echo "configure:4683: checking for inline" >&5
4683 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4687 for ac_kw in inline __inline__ __inline; do
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4696 if { (eval echo configure:4697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4698 ac_cv_c_inline=$ac_kw; break
4700 echo "configure: failed program was:" >&5
4701 cat conftest.$ac_ext >&5
4708 echo "$ac_t""$ac_cv_c_inline" 1>&6
4709 case "$ac_cv_c_inline" in
4711 no) cat >> confdefs.h <<\EOF
4715 *) cat >> confdefs.h <<EOF
4716 #define inline $ac_cv_c_inline
4723 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
4724 echo "configure:4725: checking for preprocessor stringizing operator" >&5
4725 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4734 char *s = x(teststring);
4737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738 egrep "#teststring" >/dev/null 2>&1; then
4740 ac_cv_c_stringize=no
4743 ac_cv_c_stringize=yes
4749 if test "${ac_cv_c_stringize}" = yes
4751 cat >> confdefs.h <<\EOF
4752 #define HAVE_STRINGIZE 1
4756 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
4758 echo $ac_n "checking for signed types""... $ac_c" 1>&6
4759 echo "configure:4760: checking for signed types" >&5
4760 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 cat > conftest.$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4768 signed char c; signed short s; signed int i;
4771 if { (eval echo configure:4772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4773 pgac_cv_c_signed=yes
4775 echo "configure: failed program was:" >&5
4776 cat conftest.$ac_ext >&5
4783 echo "$ac_t""$pgac_cv_c_signed" 1>&6
4784 if test x"$pgac_cv_c_signed" = xno ; then
4785 cat >> confdefs.h <<\EOF
4790 echo $ac_n "checking for volatile""... $ac_c" 1>&6
4791 echo "configure:4792: checking for volatile" >&5
4792 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4800 extern volatile int i;
4803 if { (eval echo configure:4804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4805 pgac_cv_c_volatile=yes
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4810 pgac_cv_c_volatile=no
4815 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
4816 if test x"$pgac_cv_c_volatile" = xno ; then
4817 cat >> confdefs.h <<\EOF
4822 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4823 echo "configure:4824: checking whether struct tm is in sys/time.h or time.h" >&5
4824 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 #include <sys/types.h>
4833 struct tm *tp; tp->tm_sec;
4836 if { (eval echo configure:4837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4838 ac_cv_struct_tm=time.h
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4843 ac_cv_struct_tm=sys/time.h
4848 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4849 if test $ac_cv_struct_tm = sys/time.h; then
4850 cat >> confdefs.h <<\EOF
4851 #define TM_IN_SYS_TIME 1
4856 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4857 echo "configure:4858: checking for tm_zone in struct tm" >&5
4858 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <sys/types.h>
4865 #include <$ac_cv_struct_tm>
4867 struct tm tm; tm.tm_zone;
4870 if { (eval echo configure:4871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4872 ac_cv_struct_tm_zone=yes
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4877 ac_cv_struct_tm_zone=no
4882 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4883 if test "$ac_cv_struct_tm_zone" = yes; then
4884 cat >> confdefs.h <<\EOF
4885 #define HAVE_TM_ZONE 1
4889 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4890 echo "configure:4891: checking for tzname" >&5
4891 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4898 #ifndef tzname /* For SGI. */
4899 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4907 ac_cv_var_tzname=yes
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4917 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4918 if test $ac_cv_var_tzname = yes; then
4919 cat >> confdefs.h <<\EOF
4920 #define HAVE_TZNAME 1
4926 echo $ac_n "checking for union semun""... $ac_c" 1>&6
4927 echo "configure:4928: checking for union semun" >&5
4928 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 cat > conftest.$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4934 #include <sys/types.h>
4935 #include <sys/ipc.h>
4936 #include <sys/sem.h>
4941 if { (eval echo configure:4942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4943 pgac_cv_union_semun=yes
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4948 pgac_cv_union_semun=no
4953 echo "$ac_t""$pgac_cv_union_semun" 1>&6
4954 if test x"$pgac_cv_union_semun" = xyes ; then
4955 cat >> confdefs.h <<\EOF
4956 #define HAVE_UNION_SEMUN 1
4960 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
4961 echo "configure:4962: checking for struct sockaddr_un" >&5
4962 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 #ifdef HAVE_SYS_UN_H
4972 struct sockaddr_un un;
4975 if { (eval echo configure:4976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4977 pgac_cv_struct_sockaddr_un=yes
4979 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4982 pgac_cv_struct_sockaddr_un=no
4987 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
4988 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
4989 cat >> confdefs.h <<\EOF
4990 #define HAVE_STRUCT_SOCKADDR_UN 1
4996 ## Functions, global variables
4998 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
4999 echo "configure:5000: checking for int timezone" >&5
5000 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6
5003 cat > conftest.$ac_ext <<EOF
5004 #line 5005 "configure"
5005 #include "confdefs.h"
5008 int res = timezone / 60;
5011 if { (eval echo configure:5012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5013 pgac_cv_var_int_timezone=yes
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5018 pgac_cv_var_int_timezone=no
5023 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
5024 if test x"$pgac_cv_var_int_timezone" = xyes ; then
5025 cat >> confdefs.h <<\EOF
5026 #define HAVE_INT_TIMEZONE
5030 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
5031 echo "configure:5032: checking types of arguments for accept()" >&5
5032 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6
5035 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
5042 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
5043 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int'; do
5044 cat > conftest.$ac_ext <<EOF
5045 #line 5046 "configure"
5046 #include "confdefs.h"
5047 #ifdef HAVE_SYS_TYPES_H
5048 #include <sys/types.h>
5050 #ifdef HAVE_SYS_SOCKET_H
5051 #include <sys/socket.h>
5053 extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
5058 if { (eval echo configure:5059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5060 ac_not_found=no; break 3
5062 echo "configure: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5071 if test "$ac_not_found" = yes; then
5072 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
5080 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
5081 cat >> confdefs.h <<EOF
5082 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
5085 cat >> confdefs.h <<EOF
5086 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
5089 cat >> confdefs.h <<EOF
5090 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
5094 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
5095 echo "configure:5096: checking whether gettimeofday takes only one argument" >&5
5096 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 #include <sys/time.h>
5105 struct timezone *tzp;
5106 gettimeofday(tp,tzp);
5109 if { (eval echo configure:5110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5111 pgac_cv_func_gettimeofday_1arg=no
5113 echo "configure: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5116 pgac_cv_func_gettimeofday_1arg=yes
5121 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
5122 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
5123 cat >> confdefs.h <<\EOF
5124 #define GETTIMEOFDAY_1ARG
5129 echo $ac_n "checking for fcntl(F_SETLK)""... $ac_c" 1>&6
5130 echo "configure:5131: checking for fcntl(F_SETLK)" >&5
5132 linux*) echo "$ac_t""broken on Linux" 1>&6 ;;
5134 cat > conftest.$ac_ext <<EOF
5135 #line 5136 "configure"
5136 #include "confdefs.h"
5142 lck.l_whence = SEEK_SET; lck.l_start = lck.l_len = 0;
5143 lck.l_type = F_WRLCK;
5144 fcntl(0, F_SETLK, &lck);
5147 if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149 cat >> confdefs.h <<\EOF
5150 #define HAVE_FCNTL_SETLK 1
5152 echo "$ac_t""yes" 1>&6
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5157 echo "$ac_t""no" 1>&6
5163 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen
5165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5166 echo "configure:5167: checking for $ac_func" >&5
5167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5168 echo $ac_n "(cached) $ac_c" 1>&6
5170 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure"
5172 #include "confdefs.h"
5173 /* System header to define __stub macros and hopefully few prototypes,
5174 which can conflict with char $ac_func(); below. */
5176 /* Override any gcc2 internal prototype to avoid an error. */
5177 /* We use char because int might match the return type of a gcc2
5178 builtin and then its argument prototype would still apply. */
5183 /* The GNU C library defines this for functions which it implements
5184 to always fail with ENOSYS. Some functions are actually named
5185 something starting with __ and the normal name is an alias. */
5186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5194 if { (eval echo configure:5195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5196 eval "ac_cv_func_$ac_func=yes"
5198 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5
5201 eval "ac_cv_func_$ac_func=no"
5206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5207 echo "$ac_t""yes" 1>&6
5208 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5209 cat >> confdefs.h <<EOF
5210 #define $ac_tr_func 1
5214 echo "$ac_t""no" 1>&6
5219 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
5220 echo "configure:5221: checking for PS_STRINGS" >&5
5221 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5224 cat > conftest.$ac_ext <<EOF
5225 #line 5226 "configure"
5226 #include "confdefs.h"
5227 #include <machine/vmparam.h>
5228 #include <sys/exec.h>
5231 PS_STRINGS->ps_nargvstr = 1;
5232 PS_STRINGS->ps_argvstr = "foo";
5235 if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5237 pgac_cv_var_PS_STRINGS=yes
5239 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5
5242 pgac_cv_var_PS_STRINGS=no
5247 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
5248 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
5249 cat >> confdefs.h <<\EOF
5250 #define HAVE_PS_STRINGS
5256 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
5257 echo "configure:5258: checking for snprintf" >&5
5258 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 /* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char snprintf(); below. */
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_snprintf) || defined (__stub___snprintf)
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5287 eval "ac_cv_func_snprintf=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 eval "ac_cv_func_snprintf=no"
5297 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 cat >> confdefs.h <<\EOF
5300 #define HAVE_SNPRINTF 1
5304 echo "$ac_t""no" 1>&6
5305 SNPRINTF='snprintf.o'
5308 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
5309 echo "configure:5310: checking for vsnprintf" >&5
5310 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
5311 echo $ac_n "(cached) $ac_c" 1>&6
5313 cat > conftest.$ac_ext <<EOF
5314 #line 5315 "configure"
5315 #include "confdefs.h"
5316 /* System header to define __stub macros and hopefully few prototypes,
5317 which can conflict with char vsnprintf(); below. */
5319 /* Override any gcc2 internal prototype to avoid an error. */
5320 /* We use char because int might match the return type of a gcc2
5321 builtin and then its argument prototype would still apply. */
5326 /* The GNU C library defines this for functions which it implements
5327 to always fail with ENOSYS. Some functions are actually named
5328 something starting with __ and the normal name is an alias. */
5329 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5339 eval "ac_cv_func_vsnprintf=yes"
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 eval "ac_cv_func_vsnprintf=no"
5349 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
5350 echo "$ac_t""yes" 1>&6
5351 cat >> confdefs.h <<\EOF
5352 #define HAVE_VSNPRINTF 1
5356 echo "$ac_t""no" 1>&6
5357 SNPRINTF='snprintf.o'
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5367 egrep "snprintf" >/dev/null 2>&1; then
5369 cat >> confdefs.h <<\EOF
5370 #define HAVE_SNPRINTF_DECL 1
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 egrep "vsnprintf" >/dev/null 2>&1; then
5384 cat >> confdefs.h <<\EOF
5385 #define HAVE_VSNPRINTF_DECL 1
5392 # do this one the hard way in case isinf() is a macro
5393 echo $ac_n "checking for isinf""... $ac_c" 1>&6
5394 echo "configure:5395: checking for isinf" >&5
5395 if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
5396 echo $ac_n "(cached) $ac_c" 1>&6
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5404 double x = 0.0; int res = isinf(x);
5407 if { (eval echo configure:5408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5409 ac_cv_func_isinf=yes
5411 echo "configure: failed program was:" >&5
5412 cat conftest.$ac_ext >&5
5419 echo "$ac_t""$ac_cv_func_isinf" 1>&6
5421 if test $ac_cv_func_isinf = yes ; then
5422 cat >> confdefs.h <<\EOF
5423 #define HAVE_ISINF 1
5429 # Look for a way to implement a substitute for isinf()
5430 for ac_func in fpclass fp_class fp_class_d class
5432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5433 echo "configure:5434: checking for $ac_func" >&5
5434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5435 echo $ac_n "(cached) $ac_c" 1>&6
5437 cat > conftest.$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 /* System header to define __stub macros and hopefully few prototypes,
5441 which can conflict with char $ac_func(); below. */
5443 /* Override any gcc2 internal prototype to avoid an error. */
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5450 /* The GNU C library defines this for functions which it implements
5451 to always fail with ENOSYS. Some functions are actually named
5452 something starting with __ and the normal name is an alias. */
5453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5461 if { (eval echo configure:5462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5463 eval "ac_cv_func_$ac_func=yes"
5465 echo "configure: failed program was:" >&5
5466 cat conftest.$ac_ext >&5
5468 eval "ac_cv_func_$ac_func=no"
5473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5474 echo "$ac_t""yes" 1>&6
5475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5476 cat >> confdefs.h <<EOF
5477 #define $ac_tr_func 1
5481 echo "$ac_t""no" 1>&6
5488 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
5489 echo "configure:5490: checking for getrusage" >&5
5490 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5493 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure"
5495 #include "confdefs.h"
5496 /* System header to define __stub macros and hopefully few prototypes,
5497 which can conflict with char getrusage(); below. */
5499 /* Override any gcc2 internal prototype to avoid an error. */
5500 /* We use char because int might match the return type of a gcc2
5501 builtin and then its argument prototype would still apply. */
5506 /* The GNU C library defines this for functions which it implements
5507 to always fail with ENOSYS. Some functions are actually named
5508 something starting with __ and the normal name is an alias. */
5509 #if defined (__stub_getrusage) || defined (__stub___getrusage)
5517 if { (eval echo configure:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5519 eval "ac_cv_func_getrusage=yes"
5521 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5
5524 eval "ac_cv_func_getrusage=no"
5529 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
5530 echo "$ac_t""yes" 1>&6
5531 cat >> confdefs.h <<\EOF
5532 #define HAVE_GETRUSAGE 1
5536 echo "$ac_t""no" 1>&6
5537 GETRUSAGE='getrusage.o'
5541 echo $ac_n "checking for srandom""... $ac_c" 1>&6
5542 echo "configure:5543: checking for srandom" >&5
5543 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5546 cat > conftest.$ac_ext <<EOF
5547 #line 5548 "configure"
5548 #include "confdefs.h"
5549 /* System header to define __stub macros and hopefully few prototypes,
5550 which can conflict with char srandom(); below. */
5552 /* Override any gcc2 internal prototype to avoid an error. */
5553 /* We use char because int might match the return type of a gcc2
5554 builtin and then its argument prototype would still apply. */
5559 /* The GNU C library defines this for functions which it implements
5560 to always fail with ENOSYS. Some functions are actually named
5561 something starting with __ and the normal name is an alias. */
5562 #if defined (__stub_srandom) || defined (__stub___srandom)
5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5572 eval "ac_cv_func_srandom=yes"
5574 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5
5577 eval "ac_cv_func_srandom=no"
5582 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
5583 echo "$ac_t""yes" 1>&6
5584 cat >> confdefs.h <<\EOF
5585 #define HAVE_SRANDOM 1
5589 echo "$ac_t""no" 1>&6
5594 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
5595 echo "configure:5596: checking for gethostname" >&5
5596 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5599 cat > conftest.$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5602 /* System header to define __stub macros and hopefully few prototypes,
5603 which can conflict with char gethostname(); below. */
5605 /* Override any gcc2 internal prototype to avoid an error. */
5606 /* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5612 /* The GNU C library defines this for functions which it implements
5613 to always fail with ENOSYS. Some functions are actually named
5614 something starting with __ and the normal name is an alias. */
5615 #if defined (__stub_gethostname) || defined (__stub___gethostname)
5623 if { (eval echo configure:5624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5625 eval "ac_cv_func_gethostname=yes"
5627 echo "configure: failed program was:" >&5
5628 cat conftest.$ac_ext >&5
5630 eval "ac_cv_func_gethostname=no"
5635 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5637 cat >> confdefs.h <<\EOF
5638 #define HAVE_GETHOSTNAME 1
5642 echo "$ac_t""no" 1>&6
5643 GETHOSTNAME='gethostname.o'
5647 echo $ac_n "checking for random""... $ac_c" 1>&6
5648 echo "configure:5649: checking for random" >&5
5649 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655 /* System header to define __stub macros and hopefully few prototypes,
5656 which can conflict with char random(); below. */
5658 /* Override any gcc2 internal prototype to avoid an error. */
5659 /* We use char because int might match the return type of a gcc2
5660 builtin and then its argument prototype would still apply. */
5665 /* The GNU C library defines this for functions which it implements
5666 to always fail with ENOSYS. Some functions are actually named
5667 something starting with __ and the normal name is an alias. */
5668 #if defined (__stub_random) || defined (__stub___random)
5676 if { (eval echo configure:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5678 eval "ac_cv_func_random=yes"
5680 echo "configure: failed program was:" >&5
5681 cat conftest.$ac_ext >&5
5683 eval "ac_cv_func_random=no"
5688 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
5689 echo "$ac_t""yes" 1>&6
5690 cat >> confdefs.h <<\EOF
5691 #define HAVE_RANDOM 1
5695 echo "$ac_t""no" 1>&6
5696 MISSING_RANDOM='random.o'
5700 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
5701 echo "configure:5702: checking for inet_aton" >&5
5702 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 /* System header to define __stub macros and hopefully few prototypes,
5709 which can conflict with char inet_aton(); below. */
5711 /* Override any gcc2 internal prototype to avoid an error. */
5712 /* We use char because int might match the return type of a gcc2
5713 builtin and then its argument prototype would still apply. */
5718 /* The GNU C library defines this for functions which it implements
5719 to always fail with ENOSYS. Some functions are actually named
5720 something starting with __ and the normal name is an alias. */
5721 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
5729 if { (eval echo configure:5730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5731 eval "ac_cv_func_inet_aton=yes"
5733 echo "configure: failed program was:" >&5
5734 cat conftest.$ac_ext >&5
5736 eval "ac_cv_func_inet_aton=no"
5741 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
5742 echo "$ac_t""yes" 1>&6
5743 cat >> confdefs.h <<\EOF
5744 #define HAVE_INET_ATON 1
5748 echo "$ac_t""no" 1>&6
5749 INET_ATON='inet_aton.o'
5753 echo $ac_n "checking for strerror""... $ac_c" 1>&6
5754 echo "configure:5755: checking for strerror" >&5
5755 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
5756 echo $ac_n "(cached) $ac_c" 1>&6
5758 cat > conftest.$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5761 /* System header to define __stub macros and hopefully few prototypes,
5762 which can conflict with char strerror(); below. */
5764 /* Override any gcc2 internal prototype to avoid an error. */
5765 /* We use char because int might match the return type of a gcc2
5766 builtin and then its argument prototype would still apply. */
5771 /* The GNU C library defines this for functions which it implements
5772 to always fail with ENOSYS. Some functions are actually named
5773 something starting with __ and the normal name is an alias. */
5774 #if defined (__stub_strerror) || defined (__stub___strerror)
5782 if { (eval echo configure:5783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5784 eval "ac_cv_func_strerror=yes"
5786 echo "configure: failed program was:" >&5
5787 cat conftest.$ac_ext >&5
5789 eval "ac_cv_func_strerror=no"
5794 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
5795 echo "$ac_t""yes" 1>&6
5796 cat >> confdefs.h <<\EOF
5797 #define HAVE_STRERROR 1
5801 echo "$ac_t""no" 1>&6
5802 STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
5807 echo $ac_n "checking for strdup""... $ac_c" 1>&6
5808 echo "configure:5809: checking for strdup" >&5
5809 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* System header to define __stub macros and hopefully few prototypes,
5816 which can conflict with char strdup(); below. */
5818 /* Override any gcc2 internal prototype to avoid an error. */
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5825 /* The GNU C library defines this for functions which it implements
5826 to always fail with ENOSYS. Some functions are actually named
5827 something starting with __ and the normal name is an alias. */
5828 #if defined (__stub_strdup) || defined (__stub___strdup)
5836 if { (eval echo configure:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5838 eval "ac_cv_func_strdup=yes"
5840 echo "configure: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5843 eval "ac_cv_func_strdup=no"
5848 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
5849 echo "$ac_t""yes" 1>&6
5850 cat >> confdefs.h <<\EOF
5851 #define HAVE_STRDUP 1
5855 echo "$ac_t""no" 1>&6
5856 STRDUP='../../utils/strdup.o'
5860 echo $ac_n "checking for strtol""... $ac_c" 1>&6
5861 echo "configure:5862: checking for strtol" >&5
5862 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5865 cat > conftest.$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5868 /* System header to define __stub macros and hopefully few prototypes,
5869 which can conflict with char strtol(); below. */
5871 /* Override any gcc2 internal prototype to avoid an error. */
5872 /* We use char because int might match the return type of a gcc2
5873 builtin and then its argument prototype would still apply. */
5878 /* The GNU C library defines this for functions which it implements
5879 to always fail with ENOSYS. Some functions are actually named
5880 something starting with __ and the normal name is an alias. */
5881 #if defined (__stub_strtol) || defined (__stub___strtol)
5889 if { (eval echo configure:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5891 eval "ac_cv_func_strtol=yes"
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5896 eval "ac_cv_func_strtol=no"
5901 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5903 cat >> confdefs.h <<\EOF
5904 #define HAVE_STRTOL 1
5908 echo "$ac_t""no" 1>&6
5913 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
5914 echo "configure:5915: checking for strtoul" >&5
5915 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
5916 echo $ac_n "(cached) $ac_c" 1>&6
5918 cat > conftest.$ac_ext <<EOF
5919 #line 5920 "configure"
5920 #include "confdefs.h"
5921 /* System header to define __stub macros and hopefully few prototypes,
5922 which can conflict with char strtoul(); below. */
5924 /* Override any gcc2 internal prototype to avoid an error. */
5925 /* We use char because int might match the return type of a gcc2
5926 builtin and then its argument prototype would still apply. */
5931 /* The GNU C library defines this for functions which it implements
5932 to always fail with ENOSYS. Some functions are actually named
5933 something starting with __ and the normal name is an alias. */
5934 #if defined (__stub_strtoul) || defined (__stub___strtoul)
5942 if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5944 eval "ac_cv_func_strtoul=yes"
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 eval "ac_cv_func_strtoul=no"
5954 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
5955 echo "$ac_t""yes" 1>&6
5956 cat >> confdefs.h <<\EOF
5957 #define HAVE_STRTOUL 1
5961 echo "$ac_t""no" 1>&6
5966 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
5967 echo "configure:5968: checking for strcasecmp" >&5
5968 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
5969 echo $ac_n "(cached) $ac_c" 1>&6
5971 cat > conftest.$ac_ext <<EOF
5972 #line 5973 "configure"
5973 #include "confdefs.h"
5974 /* System header to define __stub macros and hopefully few prototypes,
5975 which can conflict with char strcasecmp(); below. */
5977 /* Override any gcc2 internal prototype to avoid an error. */
5978 /* We use char because int might match the return type of a gcc2
5979 builtin and then its argument prototype would still apply. */
5984 /* The GNU C library defines this for functions which it implements
5985 to always fail with ENOSYS. Some functions are actually named
5986 something starting with __ and the normal name is an alias. */
5987 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
5995 if { (eval echo configure:5996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5997 eval "ac_cv_func_strcasecmp=yes"
5999 echo "configure: failed program was:" >&5
6000 cat conftest.$ac_ext >&5
6002 eval "ac_cv_func_strcasecmp=no"
6007 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
6008 echo "$ac_t""yes" 1>&6
6009 cat >> confdefs.h <<\EOF
6010 #define HAVE_STRCASECMP 1
6014 echo "$ac_t""no" 1>&6
6015 STRCASECMP='strcasecmp.o'
6019 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
6020 echo "configure:6021: checking for cbrt" >&5
6021 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6024 cat > conftest.$ac_ext <<EOF
6025 #line 6026 "configure"
6026 #include "confdefs.h"
6027 /* System header to define __stub macros and hopefully few prototypes,
6028 which can conflict with char cbrt(); below. */
6030 /* Override any gcc2 internal prototype to avoid an error. */
6031 /* We use char because int might match the return type of a gcc2
6032 builtin and then its argument prototype would still apply. */
6037 /* The GNU C library defines this for functions which it implements
6038 to always fail with ENOSYS. Some functions are actually named
6039 something starting with __ and the normal name is an alias. */
6040 #if defined (__stub_cbrt) || defined (__stub___cbrt)
6048 if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6050 eval "ac_cv_func_cbrt=yes"
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6055 eval "ac_cv_func_cbrt=no"
6060 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
6061 echo "$ac_t""yes" 1>&6
6062 cat >> confdefs.h <<\EOF
6067 echo "$ac_t""no" 1>&6
6068 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
6069 echo "configure:6070: checking for cbrt in -lm" >&5
6070 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
6071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6072 echo $ac_n "(cached) $ac_c" 1>&6
6074 ac_save_LIBS="$LIBS"
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6079 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6090 eval "ac_cv_lib_$ac_lib_var=yes"
6092 echo "configure: failed program was:" >&5
6093 cat conftest.$ac_ext >&5
6095 eval "ac_cv_lib_$ac_lib_var=no"
6098 LIBS="$ac_save_LIBS"
6101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6102 echo "$ac_t""yes" 1>&6
6103 cat >> confdefs.h <<\EOF
6108 echo "$ac_t""no" 1>&6
6114 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
6115 # this hackery with HPUXMATHLIB allows us to cope.
6119 if [ -r /lib/pa1.1/libm.a ] ; then
6120 HPUXMATHLIB="-L /lib/pa1.1 -lm"
6125 echo $ac_n "checking for rint""... $ac_c" 1>&6
6126 echo "configure:6127: checking for rint" >&5
6127 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
6128 echo $ac_n "(cached) $ac_c" 1>&6
6130 cat > conftest.$ac_ext <<EOF
6131 #line 6132 "configure"
6132 #include "confdefs.h"
6133 /* System header to define __stub macros and hopefully few prototypes,
6134 which can conflict with char rint(); below. */
6136 /* Override any gcc2 internal prototype to avoid an error. */
6137 /* We use char because int might match the return type of a gcc2
6138 builtin and then its argument prototype would still apply. */
6143 /* The GNU C library defines this for functions which it implements
6144 to always fail with ENOSYS. Some functions are actually named
6145 something starting with __ and the normal name is an alias. */
6146 #if defined (__stub_rint) || defined (__stub___rint)
6154 if { (eval echo configure:6155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6156 eval "ac_cv_func_rint=yes"
6158 echo "configure: failed program was:" >&5
6159 cat conftest.$ac_ext >&5
6161 eval "ac_cv_func_rint=no"
6166 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
6167 echo "$ac_t""yes" 1>&6
6168 cat >> confdefs.h <<\EOF
6173 echo "$ac_t""no" 1>&6
6174 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
6175 echo "configure:6176: checking for rint in -lm" >&5
6176 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
6177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6178 echo $ac_n "(cached) $ac_c" 1>&6
6180 ac_save_LIBS="$LIBS"
6181 LIBS="-lm $HPUXMATHLIB $LIBS"
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure"
6184 #include "confdefs.h"
6185 /* Override any gcc2 internal prototype to avoid an error. */
6186 /* We use char because int might match the return type of a gcc2
6187 builtin and then its argument prototype would still apply. */
6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196 eval "ac_cv_lib_$ac_lib_var=yes"
6198 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6201 eval "ac_cv_lib_$ac_lib_var=no"
6204 LIBS="$ac_save_LIBS"
6207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6208 echo "$ac_t""yes" 1>&6
6209 cat >> confdefs.h <<\EOF
6214 echo "$ac_t""no" 1>&6
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 #include <readline.h>
6225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6226 egrep "rl_completion_append_character" >/dev/null 2>&1; then
6228 cat >> confdefs.h <<\EOF
6229 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6234 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 #include <readline/readline.h>
6239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6240 egrep "rl_completion_append_character" >/dev/null 2>&1; then
6242 cat >> confdefs.h <<\EOF
6243 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
6254 for ac_func in filename_completion_function
6256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6257 echo "configure:6258: checking for $ac_func" >&5
6258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6261 cat > conftest.$ac_ext <<EOF
6262 #line 6263 "configure"
6263 #include "confdefs.h"
6264 /* System header to define __stub macros and hopefully few prototypes,
6265 which can conflict with char $ac_func(); below. */
6267 /* Override any gcc2 internal prototype to avoid an error. */
6268 /* We use char because int might match the return type of a gcc2
6269 builtin and then its argument prototype would still apply. */
6274 /* The GNU C library defines this for functions which it implements
6275 to always fail with ENOSYS. Some functions are actually named
6276 something starting with __ and the normal name is an alias. */
6277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6285 if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 eval "ac_cv_func_$ac_func=yes"
6289 echo "configure: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6292 eval "ac_cv_func_$ac_func=no"
6297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6298 echo "$ac_t""yes" 1>&6
6299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6300 cat >> confdefs.h <<EOF
6301 #define $ac_tr_func 1
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 #include <readline.h>
6308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6309 egrep "filename_completion_function" >/dev/null 2>&1; then
6311 cat >> confdefs.h <<\EOF
6312 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6317 cat > conftest.$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6320 #include <readline/readline.h>
6322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6323 egrep "filename_completion_function" >/dev/null 2>&1; then
6325 cat >> confdefs.h <<\EOF
6326 #define HAVE_FILENAME_COMPLETION_FUNCTION_DECL 1
6337 echo "$ac_t""no" 1>&6
6345 echo $ac_n "checking for finite""... $ac_c" 1>&6
6346 echo "configure:6347: checking for finite" >&5
6347 cat > conftest.$ac_ext <<EOF
6348 #line 6349 "configure"
6349 #include "confdefs.h"
6352 int dummy=finite(1.0);
6355 if { (eval echo configure:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6357 cat >> confdefs.h <<\EOF
6358 #define HAVE_FINITE 1
6360 echo "$ac_t""yes" 1>&6
6362 echo "configure: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6365 echo "$ac_t""no" 1>&6
6369 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
6370 echo "configure:6371: checking for sigsetjmp" >&5
6371 cat > conftest.$ac_ext <<EOF
6372 #line 6373 "configure"
6373 #include "confdefs.h"
6376 sigjmp_buf x; sigsetjmp(x, 1);
6379 if { (eval echo configure:6380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6381 cat >> confdefs.h <<\EOF
6382 #define HAVE_SIGSETJMP 1
6384 echo "$ac_t""yes" 1>&6
6386 echo "configure: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6389 echo "$ac_t""no" 1>&6
6394 # Check whether --enable-syslog was given
6395 if test x"${enable_syslog+set}" = xset; then
6396 case $enable_syslog in
6398 echo $ac_n "checking for syslog""... $ac_c" 1>&6
6399 echo "configure:6400: checking for syslog" >&5
6400 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
6401 echo $ac_n "(cached) $ac_c" 1>&6
6403 cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 /* System header to define __stub macros and hopefully few prototypes,
6407 which can conflict with char syslog(); below. */
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 /* We use char because int might match the return type of a gcc2
6411 builtin and then its argument prototype would still apply. */
6416 /* The GNU C library defines this for functions which it implements
6417 to always fail with ENOSYS. Some functions are actually named
6418 something starting with __ and the normal name is an alias. */
6419 #if defined (__stub_syslog) || defined (__stub___syslog)
6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6429 eval "ac_cv_func_syslog=yes"
6431 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6434 eval "ac_cv_func_syslog=no"
6439 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
6440 echo "$ac_t""yes" 1>&6
6441 cat >> confdefs.h <<\EOF
6442 #define ENABLE_SYSLOG 1
6446 echo "$ac_t""no" 1>&6
6447 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
6455 enableval=$enable_syslog
6456 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
6458 esac # $enable_syslog
6466 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
6467 echo "configure:6468: checking whether long int is 64 bits" >&5
6468 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
6469 echo $ac_n "(cached) $ac_c" 1>&6
6471 if test "$cross_compiling" = yes; then
6472 pgac_cv_type_long_int_64=no
6473 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6475 cat > conftest.$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 typedef long int int64;
6481 * These are globals to discourage the compiler from folding all the
6482 * arithmetic tests down to compile-time constants.
6487 int does_int64_work()
6491 if (sizeof(int64) != 8)
6492 return 0; /* definitely not the right size */
6494 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6502 exit(! does_int64_work());
6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6507 pgac_cv_type_long_int_64=yes
6509 echo "configure: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6512 pgac_cv_type_long_int_64=no
6519 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
6521 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
6522 if test x"$pgac_cv_type_long_int_64" = xyes ; then
6523 cat >> confdefs.h <<\EOF
6524 #define HAVE_LONG_INT_64
6530 if test x"$HAVE_LONG_INT_64" = x"no" ; then
6531 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
6532 echo "configure:6533: checking whether long long int is 64 bits" >&5
6533 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
6534 echo $ac_n "(cached) $ac_c" 1>&6
6536 if test "$cross_compiling" = yes; then
6537 pgac_cv_type_long_long_int_64=no
6538 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
6540 cat > conftest.$ac_ext <<EOF
6541 #line 6542 "configure"
6542 #include "confdefs.h"
6543 typedef long long int int64;
6546 * These are globals to discourage the compiler from folding all the
6547 * arithmetic tests down to compile-time constants.
6552 int does_int64_work()
6556 if (sizeof(int64) != 8)
6557 return 0; /* definitely not the right size */
6559 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
6567 exit(! does_int64_work());
6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6572 pgac_cv_type_long_long_int_64=yes
6574 echo "configure: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 pgac_cv_type_long_long_int_64=no
6584 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
6586 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
6587 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
6588 cat >> confdefs.h <<\EOF
6589 #define HAVE_LONG_LONG_INT_64
6598 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6599 if [ x$SNPRINTF = x ] ; then
6600 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
6601 echo "configure:6602: checking whether snprintf handles 'long long int' as %lld" >&5
6602 if test "$cross_compiling" = yes; then
6603 echo "$ac_t""assuming not on target machine" 1>&6
6604 # Force usage of our own snprintf, since we cannot test foreign snprintf
6605 SNPRINTF='snprintf.o'
6606 INT64_FORMAT='"%lld"'
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6613 typedef long long int int64;
6614 #define INT64_FORMAT "%lld"
6619 int does_int64_snprintf_work()
6624 if (sizeof(int64) != 8)
6625 return 0; /* doesn't look like the right size */
6628 snprintf(buf, 100, INT64_FORMAT, c);
6629 if (strcmp(buf, "800000140000005") != 0)
6630 return 0; /* either multiply or snprintf is busted */
6634 exit(! does_int64_snprintf_work());
6637 if { (eval echo configure:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6639 echo "$ac_t""yes" 1>&6
6640 INT64_FORMAT='"%lld"'
6643 echo "configure: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6646 echo "$ac_t""no" 1>&6
6647 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
6648 echo "configure:6649: checking whether snprintf handles 'long long int' as %qd" >&5
6649 if test "$cross_compiling" = yes; then
6650 echo "$ac_t""assuming not on target machine" 1>&6
6651 # Force usage of our own snprintf, since we cannot test foreign snprintf
6652 SNPRINTF='snprintf.o'
6653 INT64_FORMAT='"%lld"'
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure"
6658 #include "confdefs.h"
6660 typedef long long int int64;
6661 #define INT64_FORMAT "%qd"
6666 int does_int64_snprintf_work()
6671 if (sizeof(int64) != 8)
6672 return 0; /* doesn't look like the right size */
6675 snprintf(buf, 100, INT64_FORMAT, c);
6676 if (strcmp(buf, "800000140000005") != 0)
6677 return 0; /* either multiply or snprintf is busted */
6681 exit(! does_int64_snprintf_work());
6684 if { (eval echo configure:6685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6686 echo "$ac_t""yes" 1>&6
6687 INT64_FORMAT='"%qd"'
6690 echo "configure: failed program was:" >&5
6691 cat conftest.$ac_ext >&5
6693 echo "$ac_t""no" 1>&6
6694 # Force usage of our own snprintf, since system snprintf is broken
6695 SNPRINTF='snprintf.o'
6696 INT64_FORMAT='"%lld"'
6707 # here if we previously decided we needed to use our own snprintf
6708 INT64_FORMAT='"%lld"'
6711 # Here if we are not using 'long long int' at all
6712 INT64_FORMAT='"%ld"'
6715 cat >> confdefs.h <<EOF
6716 #define INT64_FORMAT $INT64_FORMAT
6722 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
6723 echo "configure:6724: checking alignment of short" >&5
6724 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
6725 echo $ac_n "(cached) $ac_c" 1>&6
6727 if test "$cross_compiling" = yes; then
6728 pgac_cv_alignof_short='sizeof(short)'
6730 cat > conftest.$ac_ext <<EOF
6731 #line 6732 "configure"
6732 #include "confdefs.h"
6734 struct { char filler; short field; } mystruct;
6737 FILE *f=fopen("conftestval", "w");
6739 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6745 pgac_cv_alignof_short=`cat conftestval`
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6750 pgac_cv_alignof_short='sizeof(short)'
6756 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
6757 cat >> confdefs.h <<EOF
6758 #define ALIGNOF_SHORT $pgac_cv_alignof_short
6762 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
6763 echo "configure:6764: checking alignment of int" >&5
6764 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
6765 echo $ac_n "(cached) $ac_c" 1>&6
6767 if test "$cross_compiling" = yes; then
6768 pgac_cv_alignof_int='sizeof(int)'
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6774 struct { char filler; int field; } mystruct;
6777 FILE *f=fopen("conftestval", "w");
6779 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6783 if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6785 pgac_cv_alignof_int=`cat conftestval`
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6790 pgac_cv_alignof_int='sizeof(int)'
6796 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
6797 cat >> confdefs.h <<EOF
6798 #define ALIGNOF_INT $pgac_cv_alignof_int
6802 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
6803 echo "configure:6804: checking alignment of long" >&5
6804 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
6805 echo $ac_n "(cached) $ac_c" 1>&6
6807 if test "$cross_compiling" = yes; then
6808 pgac_cv_alignof_long='sizeof(long)'
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6814 struct { char filler; long field; } mystruct;
6817 FILE *f=fopen("conftestval", "w");
6819 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6823 if { (eval echo configure:6824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6825 pgac_cv_alignof_long=`cat conftestval`
6827 echo "configure: failed program was:" >&5
6828 cat conftest.$ac_ext >&5
6830 pgac_cv_alignof_long='sizeof(long)'
6836 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
6837 cat >> confdefs.h <<EOF
6838 #define ALIGNOF_LONG $pgac_cv_alignof_long
6842 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
6843 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
6844 echo "configure:6845: checking alignment of long long int" >&5
6845 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
6846 echo $ac_n "(cached) $ac_c" 1>&6
6848 if test "$cross_compiling" = yes; then
6849 pgac_cv_alignof_long_long_int='sizeof(long long int)'
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6855 struct { char filler; long long int field; } mystruct;
6858 FILE *f=fopen("conftestval", "w");
6860 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6864 if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6866 pgac_cv_alignof_long_long_int=`cat conftestval`
6868 echo "configure: failed program was:" >&5
6869 cat conftest.$ac_ext >&5
6871 pgac_cv_alignof_long_long_int='sizeof(long long int)'
6877 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
6878 cat >> confdefs.h <<EOF
6879 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
6884 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
6885 echo "configure:6886: checking alignment of double" >&5
6886 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
6887 echo $ac_n "(cached) $ac_c" 1>&6
6889 if test "$cross_compiling" = yes; then
6890 pgac_cv_alignof_double='sizeof(double)'
6892 cat > conftest.$ac_ext <<EOF
6893 #line 6894 "configure"
6894 #include "confdefs.h"
6896 struct { char filler; double field; } mystruct;
6899 FILE *f=fopen("conftestval", "w");
6901 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
6905 if { (eval echo configure:6906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6907 pgac_cv_alignof_double=`cat conftestval`
6909 echo "configure: failed program was:" >&5
6910 cat conftest.$ac_ext >&5
6912 pgac_cv_alignof_double='sizeof(double)'
6918 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
6919 cat >> confdefs.h <<EOF
6920 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
6926 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
6927 MAX_ALIGNOF=$pgac_cv_alignof_long
6928 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
6929 MAX_ALIGNOF=$pgac_cv_alignof_double
6931 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
6932 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
6935 MAX_ALIGNOF="$pgac_cv_alignof_double"
6937 cat >> confdefs.h <<EOF
6938 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
6942 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
6943 echo "configure:6944: checking for POSIX signal interface" >&5
6944 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
6945 echo $ac_n "(cached) $ac_c" 1>&6
6947 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure"
6949 #include "confdefs.h"
6953 struct sigaction act, oact;
6954 sigemptyset(&act.sa_mask);
6955 act.sa_flags = SA_RESTART;
6956 sigaction(0, &act, &oact);
6959 if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6961 pgac_cv_func_posix_signals=yes
6963 echo "configure: failed program was:" >&5
6964 cat conftest.$ac_ext >&5
6966 pgac_cv_func_posix_signals=no
6971 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
6972 if test x"$pgac_cv_func_posix_signals" = xyes ; then
6973 cat >> confdefs.h <<\EOF
6974 #define HAVE_POSIX_SIGNALS
6978 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
6982 # Check for Tcl configuration script tclConfig.sh
6983 if test "$with_tcl" = yes; then
6984 for ac_prog in tclsh tcl
6986 # Extract the first word of "$ac_prog", so it can be a program name with args.
6987 set dummy $ac_prog; ac_word=$2
6988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6989 echo "configure:6990: checking for $ac_word" >&5
6990 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
6991 echo $ac_n "(cached) $ac_c" 1>&6
6995 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6998 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
7001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7003 for ac_dir in $ac_dummy; do
7004 test -z "$ac_dir" && ac_dir=.
7005 if test -f $ac_dir/$ac_word; then
7006 ac_cv_path_TCLSH="$ac_dir/$ac_word"
7014 TCLSH="$ac_cv_path_TCLSH"
7015 if test -n "$TCLSH"; then
7016 echo "$ac_t""$TCLSH" 1>&6
7018 echo "$ac_t""no" 1>&6
7021 test -n "$TCLSH" && break
7024 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
7025 echo "configure:7026: checking for tclConfig.sh" >&5
7026 # Let user override test
7027 if test -z "$TCL_CONFIG_SH"; then
7028 pgac_test_dirs="$with_tclconfig"
7030 set X $pgac_test_dirs; shift
7031 if test $# -eq 0; then
7032 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7033 set X `echo 'puts $auto_path' | $TCLSH`; shift
7037 if test -r "$pgac_dir/tclConfig.sh"; then
7038 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
7044 if test -z "$TCL_CONFIG_SH"; then
7045 echo "$ac_t""no" 1>&6
7046 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
7048 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
7055 # Check for Tk configuration script tkConfig.sh
7056 if test "$with_tk" = yes; then
7057 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
7058 echo "configure:7059: checking for tkConfig.sh" >&5
7059 # Let user override test
7060 if test -z "$TK_CONFIG_SH"; then
7061 pgac_test_dirs="$with_tkconfig $with_tclconfig"
7063 set X $pgac_test_dirs; shift
7064 if test $# -eq 0; then
7065 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
7066 set X `echo 'puts $auto_path' | $TCLSH`; shift
7070 if test -r "$pgac_dir/tkConfig.sh"; then
7071 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
7077 if test -z "$TK_CONFIG_SH"; then
7078 echo "$ac_t""no" 1>&6
7079 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
7081 echo "$ac_t""$TK_CONFIG_SH" 1>&6
7089 # Finally ready to produce output files ...
7092 cat > confcache <<\EOF
7093 # This file is a shell script that caches the results of configure
7094 # tests run on this system so they can be shared between configure
7095 # scripts and configure runs. It is not useful on other systems.
7096 # If it contains results you don't want to keep, you may remove or edit it.
7098 # By default, configure uses ./config.cache as the cache file,
7099 # creating it if it does not exist already. You can give configure
7100 # the --cache-file=FILE option to use a different cache file; that is
7101 # what configure does when it calls configure scripts in
7102 # subdirectories, so they share the cache.
7103 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7104 # config.status only pays attention to the cache file if you give it the
7105 # --recheck option to rerun configure.
7108 # The following way of writing the cache mishandles newlines in values,
7109 # but we know of no workaround that is simple, portable, and efficient.
7110 # So, don't put newlines in cache variables' values.
7111 # Ultrix sh set writes to stderr and can't be redirected directly,
7112 # and sets the high bit in the cache file unless we assign to the vars.
7114 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7116 # `set' does not quote correctly, so add quotes (double-quote substitution
7117 # turns \\\\ into \\, and sed turns \\ into \).
7119 -e "s/'/'\\\\''/g" \
7120 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7123 # `set' quotes correctly as required by POSIX, so do not add quotes.
7124 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7127 if cmp -s $cache_file confcache; then
7130 if test -w $cache_file; then
7131 echo "updating cache $cache_file"
7132 cat confcache > $cache_file
7134 echo "not updating unwritable cache $cache_file"
7139 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7141 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7142 # Let make expand exec_prefix.
7143 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7145 # Any assignment to VPATH causes Sun make to only execute
7146 # the first set of double-colon rules, so remove it if not needed.
7147 # If there is a colon in the path, we need to keep it.
7148 if test "x$srcdir" = x.; then
7149 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7152 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7154 DEFS=-DHAVE_CONFIG_H
7156 # Without the "./", some shells look in PATH for config.status.
7157 : ${CONFIG_STATUS=./config.status}
7159 echo creating $CONFIG_STATUS
7160 rm -f $CONFIG_STATUS
7161 cat > $CONFIG_STATUS <<EOF
7163 # Generated automatically by configure.
7164 # Run this file to recreate the current configuration.
7165 # This directory was configured as follows,
7166 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7168 # $0 $ac_configure_args
7170 # Compiler output produced by configure, useful for debugging
7171 # configure, is in ./config.log if it exists.
7173 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7176 case "\$ac_option" in
7177 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7178 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7179 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7180 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7181 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7183 -help | --help | --hel | --he | --h)
7184 echo "\$ac_cs_usage"; exit 0 ;;
7185 *) echo "\$ac_cs_usage"; exit 1 ;;
7189 ac_given_srcdir=$srcdir
7190 ac_given_INSTALL="$INSTALL"
7192 trap 'rm -fr `echo "
7196 src/backend/port/Makefile
7197 src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7199 cat >> $CONFIG_STATUS <<EOF
7201 # Protect against being on the right side of a sed subst in config.status.
7202 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7203 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7207 s%@CFLAGS@%$CFLAGS%g
7208 s%@CPPFLAGS@%$CPPFLAGS%g
7209 s%@CXXFLAGS@%$CXXFLAGS%g
7210 s%@FFLAGS@%$FFLAGS%g
7212 s%@LDFLAGS@%$LDFLAGS%g
7214 s%@exec_prefix@%$exec_prefix%g
7215 s%@prefix@%$prefix%g
7216 s%@program_transform_name@%$program_transform_name%g
7217 s%@bindir@%$bindir%g
7218 s%@sbindir@%$sbindir%g
7219 s%@libexecdir@%$libexecdir%g
7220 s%@datadir@%$datadir%g
7221 s%@sysconfdir@%$sysconfdir%g
7222 s%@sharedstatedir@%$sharedstatedir%g
7223 s%@localstatedir@%$localstatedir%g
7224 s%@libdir@%$libdir%g
7225 s%@includedir@%$includedir%g
7226 s%@oldincludedir@%$oldincludedir%g
7227 s%@docdir@%$docdir%g
7228 s%@mandir@%$mandir%g
7229 s%@VERSION@%$VERSION%g
7231 s%@host_alias@%$host_alias%g
7232 s%@host_cpu@%$host_cpu%g
7233 s%@host_vendor@%$host_vendor%g
7234 s%@host_os@%$host_os%g
7235 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