3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/pgsql
16 --with-includes=DIRS look for additional header files in DIRS"
18 --with-libraries=DIRS look for additional libraries in DIRS"
20 --with-libs=DIRS alternative spelling of --with-libraries"
22 --enable-locale enable locale support"
24 --enable-recode enable character set recode support"
26 --enable-multibyte enable multibyte character support"
28 --enable-nls[=LANGUAGES] enable Native Language Support"
30 --with-pgport=PORTNUM change default port number [5432]"
32 --with-maxbackends=N set default maximum number of connections [32]"
34 --disable-shared do not build shared libraries"
36 --disable-rpath do not embed shared library search path in executables"
38 --enable-debug build with debugging symbols (-g)"
40 --enable-depend turn on automatic dependency tracking"
42 --enable-cassert enable assertion checks (for debugging)"
44 --with-tcl build Tcl and Tk interfaces"
46 --without-tk do not build Tk interfaces if Tcl is enabled"
48 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR"
50 --with-tkconfig=DIR tkConfig.sh is in DIR"
52 --with-perl build Perl interface and PL/Perl"
54 --with-python build Python interface module"
56 --with-java build JDBC interface and Java tools"
58 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]"
60 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]"
62 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]"
64 --with-pam build with PAM support"
66 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]"
68 --enable-odbc build the ODBC driver package"
70 --with-unixodbc build ODBC driver for unixODBC"
72 --with-iodbc build ODBC driver for iODBC"
74 --with-odbcinst=DIR default directory for odbcinst.ini [sysconfdir]"
76 --with-CXX build C++ modules (libpq++)"
78 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
80 --enable-syslog enable logging to syslog"
82 # Initialize some variables set by options.
83 # The variables have the same names as the options, with
84 # dashes changed to underlines.
86 cache_file=./config.cache
95 program_transform_name=s,x,x,
103 bindir='${exec_prefix}/bin'
104 sbindir='${exec_prefix}/sbin'
105 libexecdir='${exec_prefix}/libexec'
106 datadir='${prefix}/share'
107 sysconfdir='${prefix}/etc'
108 sharedstatedir='${prefix}/com'
109 localstatedir='${prefix}/var'
110 libdir='${exec_prefix}/lib'
111 includedir='${prefix}/include'
112 oldincludedir='/usr/include'
113 docdir='${prefix}/doc'
114 mandir='${prefix}/man'
116 # Initialize some other variables.
119 SHELL=${CONFIG_SHELL-/bin/sh}
120 # Maximum number of lines to put in a shell here document.
127 # If the previous option needs an argument, assign it.
128 if test -n "$ac_prev"; then
129 eval "$ac_prev=\$ac_option"
135 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
139 # Accept the important Cygnus configure options, so we can diagnose typos.
143 -bindir | --bindir | --bindi | --bind | --bin | --bi)
145 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
146 bindir="$ac_optarg" ;;
148 -build | --build | --buil | --bui | --bu)
150 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
151 build="$ac_optarg" ;;
153 -cache-file | --cache-file | --cache-fil | --cache-fi \
154 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
155 ac_prev=cache_file ;;
156 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
157 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
158 cache_file="$ac_optarg" ;;
160 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
162 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
164 datadir="$ac_optarg" ;;
166 -disable-* | --disable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}=no" ;;
175 -enable-* | --enable-*)
176 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
186 eval "enable_${ac_feature}='$ac_optarg'" ;;
188 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
189 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
190 | --exec | --exe | --ex)
191 ac_prev=exec_prefix ;;
192 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
193 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
194 | --exec=* | --exe=* | --ex=*)
195 exec_prefix="$ac_optarg" ;;
197 -gas | --gas | --ga | --g)
198 # Obsolete; use --with-gas.
201 -help | --help | --hel | --he)
202 # Omit some internal or obsolete options to make the list less imposing.
203 # This message is too long to be a string in the A/UX 3.1 sh.
205 Usage: configure [options] [host]
206 Options: [defaults in brackets after descriptions]
208 --cache-file=FILE cache test results in FILE
209 --help print this message
210 --no-create do not create output files
211 --quiet, --silent do not print \`checking...' messages
212 --version print the version of autoconf that created configure
213 Directory and file names:
214 --prefix=PREFIX install architecture-independent files in PREFIX
216 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
218 --bindir=DIR user executables in DIR [EPREFIX/bin]
219 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
220 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
221 --datadir=DIR read-only architecture-independent data in DIR
223 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
224 --sharedstatedir=DIR modifiable architecture-independent data in DIR
226 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
227 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
228 --includedir=DIR C header files in DIR [PREFIX/include]
229 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
230 --docdir=DIR doc documentation in DIR [PREFIX/doc]
231 --mandir=DIR man documentation in DIR [PREFIX/man]
232 --srcdir=DIR find the sources in DIR [configure dir or ..]
233 --program-prefix=PREFIX prepend PREFIX to installed program names
234 --program-suffix=SUFFIX append SUFFIX to installed program names
235 --program-transform-name=PROGRAM
236 run sed PROGRAM on installed program names
240 --build=BUILD configure for building on BUILD [BUILD=HOST]
241 --host=HOST configure for HOST [guessed]
242 --target=TARGET configure for TARGET [TARGET=HOST]
243 Features and packages:
244 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
245 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
246 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
247 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
248 --x-includes=DIR X include files are in DIR
249 --x-libraries=DIR X library files are in DIR
251 if test -n "$ac_help"; then
252 echo "--enable and --with options recognized:$ac_help"
256 -host | --host | --hos | --ho)
258 -host=* | --host=* | --hos=* | --ho=*)
261 -includedir | --includedir | --includedi | --included | --include \
262 | --includ | --inclu | --incl | --inc)
263 ac_prev=includedir ;;
264 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
265 | --includ=* | --inclu=* | --incl=* | --inc=*)
266 includedir="$ac_optarg" ;;
268 -docdir | --docdir | --infodi | --infod | --doc | --inf)
270 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
271 docdir="$ac_optarg" ;;
273 -libdir | --libdir | --libdi | --libd)
275 -libdir=* | --libdir=* | --libdi=* | --libd=*)
276 libdir="$ac_optarg" ;;
278 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
279 | --libexe | --libex | --libe)
280 ac_prev=libexecdir ;;
281 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
282 | --libexe=* | --libex=* | --libe=*)
283 libexecdir="$ac_optarg" ;;
285 -localstatedir | --localstatedir | --localstatedi | --localstated \
286 | --localstate | --localstat | --localsta | --localst \
287 | --locals | --local | --loca | --loc | --lo)
288 ac_prev=localstatedir ;;
289 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
290 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
291 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
292 localstatedir="$ac_optarg" ;;
294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
297 mandir="$ac_optarg" ;;
300 # Obsolete; use --without-fp.
303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
313 | --oldin | --oldi | --old | --ol | --o)
314 ac_prev=oldincludedir ;;
315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
318 oldincludedir="$ac_optarg" ;;
320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
323 prefix="$ac_optarg" ;;
325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
326 | --program-pre | --program-pr | --program-p)
327 ac_prev=program_prefix ;;
328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
330 program_prefix="$ac_optarg" ;;
332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
333 | --program-suf | --program-su | --program-s)
334 ac_prev=program_suffix ;;
335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
337 program_suffix="$ac_optarg" ;;
339 -program-transform-name | --program-transform-name \
340 | --program-transform-nam | --program-transform-na \
341 | --program-transform-n | --program-transform- \
342 | --program-transform | --program-transfor \
343 | --program-transfo | --program-transf \
344 | --program-trans | --program-tran \
345 | --progr-tra | --program-tr | --program-t)
346 ac_prev=program_transform_name ;;
347 -program-transform-name=* | --program-transform-name=* \
348 | --program-transform-nam=* | --program-transform-na=* \
349 | --program-transform-n=* | --program-transform-=* \
350 | --program-transform=* | --program-transfor=* \
351 | --program-transfo=* | --program-transf=* \
352 | --program-trans=* | --program-tran=* \
353 | --progr-tra=* | --program-tr=* | --program-t=*)
354 program_transform_name="$ac_optarg" ;;
356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
357 | -silent | --silent | --silen | --sile | --sil)
360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 sbindir="$ac_optarg" ;;
366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
368 | --sharedst | --shareds | --shared | --share | --shar \
370 ac_prev=sharedstatedir ;;
371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 sharedstatedir="$ac_optarg" ;;
377 -site | --site | --sit)
379 -site=* | --site=* | --sit=*)
382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
385 srcdir="$ac_optarg" ;;
387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
388 | --syscon | --sysco | --sysc | --sys | --sy)
389 ac_prev=sysconfdir ;;
390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
392 sysconfdir="$ac_optarg" ;;
394 -target | --target | --targe | --targ | --tar | --ta | --t)
396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
397 target="$ac_optarg" ;;
399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 -version | --version | --versio | --versi | --vers)
403 echo "configure generated by autoconf version 2.13"
407 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}='$ac_optarg'" ;;
419 -without-* | --without-*)
420 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
423 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425 ac_package=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}=no" ;;
429 # Obsolete; use --with-x.
432 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
433 | --x-incl | --x-inc | --x-in | --x-i)
434 ac_prev=x_includes ;;
435 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
436 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
437 x_includes="$ac_optarg" ;;
439 -x-libraries | --x-libraries | --x-librarie | --x-librari \
440 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
441 ac_prev=x_libraries ;;
442 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
443 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
444 x_libraries="$ac_optarg" ;;
446 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
450 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
451 echo "configure: warning: $ac_option: invalid host type" 1>&2
453 if test "x$nonopt" != xNONE; then
454 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462 if test -n "$ac_prev"; then
463 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
466 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468 # File descriptor usage:
471 # 2 errors and warnings
472 # 3 some systems may open it to /dev/tty
473 # 4 used on the Kubota Titan
474 # 6 checking for... messages and results
475 # 5 compiler messages saved in config.log
476 if test "$silent" = yes; then
484 This file contains any messages produced by compilers while
485 running configure, to aid debugging if configure makes a mistake.
488 # Strip out --no-create and --no-recursion so they do not pile up.
489 # Also quote any args containing shell metacharacters.
494 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
495 | --no-cr | --no-c) ;;
496 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
497 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
499 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
500 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
505 # Only set these to C if already set. These must not be set unconditionally
506 # because not all systems understand e.g. LANG=C (notably SCO).
507 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
508 # Non-C LC_CTYPE values break the ctype check.
509 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
510 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
511 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
512 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
514 # confdefs.h avoids OS command line length limits that DEFS can exceed.
515 rm -rf conftest* confdefs.h
516 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
519 # A filename unique to this package, relative to the directory that
520 # configure is in, which we can look for to find out if srcdir is correct.
521 ac_unique_file=src/backend/access/common/heaptuple.c
523 # Find the source files, if location was not specified.
524 if test -z "$srcdir"; then
525 ac_srcdir_defaulted=yes
526 # Try the directory containing this script, then its parent.
528 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
529 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531 if test ! -r $srcdir/$ac_unique_file; then
535 ac_srcdir_defaulted=no
537 if test ! -r $srcdir/$ac_unique_file; then
538 if test "$ac_srcdir_defaulted" = yes; then
539 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
544 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546 # Prefer explicitly selected file to automatically selected ones.
547 if test -z "$CONFIG_SITE"; then
548 if test "x$prefix" != xNONE; then
549 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
551 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
554 for ac_site_file in $CONFIG_SITE; do
555 if test -r "$ac_site_file"; then
556 echo "loading site script $ac_site_file"
561 if test -r "$cache_file"; then
562 echo "loading cache $cache_file"
565 echo "creating cache $cache_file"
570 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
571 ac_cpp='$CPP $CPPFLAGS'
572 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
573 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
574 cross_compiling=$ac_cv_prog_cc_cross
578 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
579 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
580 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
587 ac_n= ac_c='\c' ac_t=
599 for ac_dir in config $srcdir/config; do
600 if test -f $ac_dir/install-sh; then
602 ac_install_sh="$ac_aux_dir/install-sh -c"
604 elif test -f $ac_dir/install.sh; then
606 ac_install_sh="$ac_aux_dir/install.sh -c"
610 if test -z "$ac_aux_dir"; then
611 { echo "configure: error: can not find install-sh or install.sh in config $srcdir/config" 1>&2; exit 1; }
613 ac_config_guess=$ac_aux_dir/config.guess
614 ac_config_sub=$ac_aux_dir/config.sub
615 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
620 cat >> confdefs.h <<EOF
621 #define PG_VERSION "$VERSION"
628 # Make sure we can run config.sub.
629 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
630 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
633 echo $ac_n "checking host system type""... $ac_c" 1>&6
634 echo "configure:635: checking host system type" >&5
637 case "$host_alias" in
641 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
642 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644 *) host_alias=$nonopt ;;
648 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
649 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$host" 1>&6
659 echo $ac_n "checking which template to use""... $ac_c" 1>&6
660 echo "configure:661: checking which template to use" >&5
662 # Check whether --with-template was given
663 if test x"${with_template+set}" = xset; then
664 case $with_template in
666 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
669 { echo "configure: error: argument required for --with-template option" 1>&2; exit 1; }
672 withval=$with_template
675 list) echo; ls "$srcdir/src/template"; exit;;
676 *) if test -f "$srcdir/src/template/$with_template" ; then
679 { echo "configure: error: '$withval' is not a valid template name. Use 'list' for a list." 1>&2; exit 1; }
684 esac # $with_template
687 # --with-template not given
690 aix*) template=aix ;;
691 beos*) template=beos ;;
692 bsdi*) template=bsdi ;;
693 cygwin*) template=win ;;
694 darwin*) template=darwin ;;
695 dgux*) template=dgux ;;
696 freebsd*) template=freebsd ;;
697 hpux*) template=hpux ;;
698 irix*) template=irix5 ;;
699 linux*) template=linux ;;
700 netbsd*) template=netbsd ;;
701 nextstep*) template=nextstep ;;
702 openbsd*) template=openbsd ;;
703 osf*) template=osf ;;
704 qnx*) template=qnx4 ;;
705 sco*) template=sco ;;
706 solaris*) template=solaris ;;
707 sunos*) template=sunos4 ;;
710 univel) template=univel ;;
712 sysv4*) template=svr4 ;;
713 sysv5*) template=unixware ;;
714 ultrix*) template=ultrix4 ;;
717 if test x"$template" = x"" ; then
718 { echo "configure: error:
719 *******************************************************************
720 PostgreSQL has apparently not been ported to your platform yet.
721 To try a manual configuration, look into the src/template directory
722 for a similar platform and use the '--with-template=' option.
724 Please also contact <pgsql-ports@postgresql.org> to see about
725 rectifying this. Include the above 'checking host system type...'
727 *******************************************************************
734 echo "$ac_t""$template" 1>&6
744 # Pick right test-and-set (TAS) code. Most platforms have inline
745 # assembler code in src/include/storage/s_lock.h, so we just use
748 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
749 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
750 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
751 *) need_tas=no; tas_file=dummy.s ;;
755 if test "$need_tas" = yes ; then
763 ## Command line options
768 # Add non-standard directories to the include path
770 # Check whether --with-includes was given
771 if test x"${with_includes+set}" = xset; then
772 case $with_includes in
774 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
777 { echo "configure: error: argument required for --with-includes option" 1>&2; exit 1; }
779 esac # $with_includes
784 # Add non-standard directories to the library search path
786 # Check whether --with-libraries was given
787 if test x"${with_libraries+set}" = xset; then
788 case $with_libraries in
790 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
793 { echo "configure: error: argument required for --with-libraries option" 1>&2; exit 1; }
796 withval=$with_libraries
797 LIBRARY_DIRS=$withval
799 esac # $with_libraries
802 # Check whether --with-libs was given
803 if test x"${with_libs+set}" = xset; then
806 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
809 { echo "configure: error: argument required for --with-libs option" 1>&2; exit 1; }
813 LIBRARY_DIRS=$withval
820 # Locale (--enable-locale)
822 echo $ac_n "checking whether to build with locale support""... $ac_c" 1>&6
823 echo "configure:824: checking whether to build with locale support" >&5
824 # Check whether --enable-locale was given
825 if test x"${enable_locale+set}" = xset; then
826 case $enable_locale in
828 cat >> confdefs.h <<\EOF
837 enableval=$enable_locale
838 { echo "configure: error: no argument expected for --enable-locale option" 1>&2; exit 1; }
840 esac # $enable_locale
845 echo "$ac_t""$enable_locale" 1>&6
849 # Character set recode (--enable-recode)
851 echo $ac_n "checking whether to build with recode support""... $ac_c" 1>&6
852 echo "configure:853: checking whether to build with recode support" >&5
853 # Check whether --enable-recode was given
854 if test x"${enable_recode+set}" = xset; then
855 case $enable_recode in
857 cat >> confdefs.h <<\EOF
866 enableval=$enable_recode
867 { echo "configure: error: no argument expected for --enable-recode option" 1>&2; exit 1; }
869 esac # $enable_recode
874 echo "$ac_t""$enable_recode" 1>&6
881 echo $ac_n "checking whether to build with multibyte character support""... $ac_c" 1>&6
882 echo "configure:883: checking whether to build with multibyte character support" >&5
884 # Check whether --enable-multibyte was given
885 if test x"${enable_multibyte+set}" = xset; then
886 case $enable_multibyte in
894 enableval=$enable_multibyte
898 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|LATIN6|LATIN7|LATIN8|LATIN9|LATIN10|KOI8|WIN|ALT|ISO_8859_5|ISO_8859_6|ISO_8859_7|ISO_8859_8)
899 MULTIBYTE=$enableval;;
901 { echo "configure: error: argument to --enable-multibyte must be one of:
902 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW,
903 UNICODE, MULE_INTERNAL,
904 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
905 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
907 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
908 Or do not specify an argument to the option to use the default." 1>&2; exit 1; };;
912 esac # $enable_multibyte
917 if test "$enable_multibyte" = yes; then
919 cat >> confdefs.h <<\EOF
923 echo "$ac_t""yes, default $MULTIBYTE" 1>&6
926 echo "$ac_t""no" 1>&6
935 echo $ac_n "checking whether NLS is wanted""... $ac_c" 1>&6
936 echo "configure:937: checking whether NLS is wanted" >&5
937 # Check whether --enable-nls was given
938 if test x"${enable_nls+set}" = xset; then
947 enableval=$enable_nls
949 WANTED_LANGUAGES=$enableval
956 if test "$enable_nls" = yes; then
957 cat >> confdefs.h <<\EOF
963 echo "$ac_t""$enable_nls" 1>&6
968 # Default port number (--with-pgport), default 5432
970 echo $ac_n "checking for default port number""... $ac_c" 1>&6
971 echo "configure:972: checking for default port number" >&5
972 # Check whether --with-pgport was given
973 if test x"${with_pgport+set}" = xset; then
976 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
979 { echo "configure: error: argument required for --with-pgport option" 1>&2; exit 1; }
983 default_port=$withval
989 echo "$ac_t""$default_port" 1>&6
990 # Need both of these because some places want an integer and some a string
991 cat >> confdefs.h <<EOF
992 #define DEF_PGPORT ${default_port}
995 cat >> confdefs.h <<EOF
996 #define DEF_PGPORT_STR "${default_port}"
1002 # Maximum number of allowed connections (--with-maxbackends), default 32
1004 echo $ac_n "checking for default soft limit on number of connections""... $ac_c" 1>&6
1005 echo "configure:1006: checking for default soft limit on number of connections" >&5
1006 # Check whether --with-maxbackends was given
1007 if test x"${with_maxbackends+set}" = xset; then
1008 case $with_maxbackends in
1010 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1013 { echo "configure: error: argument required for --with-maxbackends option" 1>&2; exit 1; }
1015 esac # $with_maxbackends
1019 echo "$ac_t""$with_maxbackends" 1>&6
1020 cat >> confdefs.h <<EOF
1021 #define DEF_MAXBACKENDS $with_maxbackends
1027 # Option to disable shared libraries
1029 # Check whether --enable-shared was given
1030 if test x"${enable_shared+set}" = xset; then
1031 case $enable_shared in
1039 enableval=$enable_shared
1040 { echo "configure: error: no argument expected for --enable-shared option" 1>&2; exit 1; }
1042 esac # $enable_shared
1050 # '-rpath'-like feature can be disabled
1052 # Check whether --enable-rpath was given
1053 if test x"${enable_rpath+set}" = xset; then
1054 case $enable_rpath in
1062 enableval=$enable_rpath
1063 { echo "configure: error: no argument expected for --enable-rpath option" 1>&2; exit 1; }
1065 esac # $enable_rpath
1074 # --enable-debug adds -g to compiler flags
1076 # Check whether --enable-debug was given
1077 if test x"${enable_debug+set}" = xset; then
1078 case $enable_debug in
1086 enableval=$enable_debug
1087 { echo "configure: error: no argument expected for --enable-debug option" 1>&2; exit 1; }
1089 esac # $enable_debug
1100 # For historical reasons you can also use --with-CC to specify the C compiler
1101 # to use, although the standard way to do this is to set the CC environment
1103 # Check whether --with-CC was given
1104 if test x"${with_CC+set}" = xset; then
1107 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1110 { echo "configure: error: argument required for --with-CC option" 1>&2; exit 1; }
1119 # On AIX, default compiler to xlc.
1120 if test "$template" = aix && test -z "$CC" ; then CC=xlc; fi
1122 # Save CFLAGS from the environment
1123 has_environ_CFLAGS="${CFLAGS+yes}"
1126 # Extract the first word of "gcc", so it can be a program name with args.
1127 set dummy gcc; ac_word=$2
1128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1129 echo "configure:1130: checking for $ac_word" >&5
1130 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 if test -n "$CC"; then
1134 ac_cv_prog_CC="$CC" # Let the user override the test.
1136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1138 for ac_dir in $ac_dummy; do
1139 test -z "$ac_dir" && ac_dir=.
1140 if test -f $ac_dir/$ac_word; then
1149 if test -n "$CC"; then
1150 echo "$ac_t""$CC" 1>&6
1152 echo "$ac_t""no" 1>&6
1155 if test -z "$CC"; then
1156 # Extract the first word of "cc", so it can be a program name with args.
1157 set dummy cc; ac_word=$2
1158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159 echo "configure:1160: checking for $ac_word" >&5
1160 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 if test -n "$CC"; then
1164 ac_cv_prog_CC="$CC" # Let the user override the test.
1166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1169 for ac_dir in $ac_dummy; do
1170 test -z "$ac_dir" && ac_dir=.
1171 if test -f $ac_dir/$ac_word; then
1172 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1173 ac_prog_rejected=yes
1181 if test $ac_prog_rejected = yes; then
1182 # We found a bogon in the path, so make sure we never use it.
1183 set dummy $ac_cv_prog_CC
1185 if test $# -gt 0; then
1186 # We chose a different compiler from the bogus one.
1187 # However, it has the same basename, so the bogon will be chosen
1188 # first if we set CC to just the basename; use the full file name.
1190 set dummy "$ac_dir/$ac_word" "$@"
1198 if test -n "$CC"; then
1199 echo "$ac_t""$CC" 1>&6
1201 echo "$ac_t""no" 1>&6
1204 if test -z "$CC"; then
1205 case "`uname -s`" in
1207 # Extract the first word of "cl", so it can be a program name with args.
1208 set dummy cl; ac_word=$2
1209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1210 echo "configure:1211: checking for $ac_word" >&5
1211 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1214 if test -n "$CC"; then
1215 ac_cv_prog_CC="$CC" # Let the user override the test.
1217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1219 for ac_dir in $ac_dummy; do
1220 test -z "$ac_dir" && ac_dir=.
1221 if test -f $ac_dir/$ac_word; then
1230 if test -n "$CC"; then
1231 echo "$ac_t""$CC" 1>&6
1233 echo "$ac_t""no" 1>&6
1238 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1241 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1242 echo "configure:1243: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1245 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1246 ac_cpp='$CPP $CPPFLAGS'
1247 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1248 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1249 cross_compiling=$ac_cv_prog_cc_cross
1251 cat > conftest.$ac_ext << EOF
1253 #line 1254 "configure"
1254 #include "confdefs.h"
1258 if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1259 ac_cv_prog_cc_works=yes
1260 # If we can't run a trivial program, we are probably using a cross compiler.
1261 if (./conftest; exit) 2>/dev/null; then
1262 ac_cv_prog_cc_cross=no
1264 ac_cv_prog_cc_cross=yes
1267 echo "configure: failed program was:" >&5
1268 cat conftest.$ac_ext >&5
1269 ac_cv_prog_cc_works=no
1273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1274 ac_cpp='$CPP $CPPFLAGS'
1275 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1276 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1277 cross_compiling=$ac_cv_prog_cc_cross
1279 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1280 if test $ac_cv_prog_cc_works = no; then
1281 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1283 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1284 echo "configure:1285: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1285 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1286 cross_compiling=$ac_cv_prog_cc_cross
1288 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1289 echo "configure:1290: checking whether we are using GNU C" >&5
1290 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 cat > conftest.c <<EOF
1298 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1305 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1307 if test $ac_cv_prog_gcc = yes; then
1313 ac_test_CFLAGS="${CFLAGS+set}"
1314 ac_save_CFLAGS="$CFLAGS"
1316 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1317 echo "configure:1318: checking whether ${CC-cc} accepts -g" >&5
1318 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 echo 'void f(){}' > conftest.c
1322 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1331 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1332 if test "$ac_test_CFLAGS" = set; then
1333 CFLAGS="$ac_save_CFLAGS"
1334 elif test $ac_cv_prog_cc_g = yes; then
1335 if test "$GCC" = yes; then
1341 if test "$GCC" = yes; then
1349 . "$srcdir/src/template/$template" || exit
1351 if test "$has_environ_CFLAGS" = yes; then
1354 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
1357 echo "using CFLAGS=$CFLAGS"
1358 # Check if the compiler still works with the template settings
1359 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1360 echo "configure:1361: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1367 cross_compiling=$ac_cv_prog_cc_cross
1369 cat > conftest.$ac_ext << EOF
1371 #line 1372 "configure"
1372 #include "confdefs.h"
1376 if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1377 ac_cv_prog_cc_works=yes
1378 # If we can't run a trivial program, we are probably using a cross compiler.
1379 if (./conftest; exit) 2>/dev/null; then
1380 ac_cv_prog_cc_cross=no
1382 ac_cv_prog_cc_cross=yes
1385 echo "configure: failed program was:" >&5
1386 cat conftest.$ac_ext >&5
1387 ac_cv_prog_cc_works=no
1391 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1394 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1395 cross_compiling=$ac_cv_prog_cc_cross
1397 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1398 if test $ac_cv_prog_cc_works = no; then
1399 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1401 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1403 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1404 cross_compiling=$ac_cv_prog_cc_cross
1406 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1407 echo "configure:1408: checking for Cygwin environment" >&5
1408 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1411 cat > conftest.$ac_ext <<EOF
1412 #line 1413 "configure"
1413 #include "confdefs.h"
1418 #define __CYGWIN__ __CYGWIN32__
1423 if { (eval echo configure:1424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1427 echo "configure: failed program was:" >&5
1428 cat conftest.$ac_ext >&5
1436 echo "$ac_t""$ac_cv_cygwin" 1>&6
1438 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1439 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1440 echo "configure:1441: checking for mingw32 environment" >&5
1441 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 cat > conftest.$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1452 if { (eval echo configure:1453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1465 echo "$ac_t""$ac_cv_mingw32" 1>&6
1467 test "$ac_cv_mingw32" = yes && MINGW32=yes
1470 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1471 echo "configure:1472: checking for executable suffix" >&5
1472 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1479 echo 'int main () { return 0; }' > conftest.$ac_ext
1481 if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1482 for file in conftest.*; do
1484 *.c | *.o | *.obj) ;;
1485 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1489 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1492 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1497 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1498 echo "$ac_t""${ac_cv_exeext}" 1>&6
1501 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1502 echo "configure:1503: checking how to run the C preprocessor" >&5
1503 # On Suns, sometimes $CPP names a directory.
1504 if test -n "$CPP" && test -d "$CPP"; then
1507 if test -z "$CPP"; then
1508 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 # This must be in double quotes, not single quotes, because CPP may get
1512 # substituted into the Makefile and "${CC-cc}" will confuse make.
1514 # On the NeXT, cc -E runs the code through the compiler's parser,
1515 # not just through cpp.
1516 cat > conftest.$ac_ext <<EOF
1517 #line 1518 "configure"
1518 #include "confdefs.h"
1522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1523 { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1525 if test -z "$ac_err"; then
1529 echo "configure: failed program was:" >&5
1530 cat conftest.$ac_ext >&5
1532 CPP="${CC-cc} -E -traditional-cpp"
1533 cat > conftest.$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1540 { (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1542 if test -z "$ac_err"; then
1546 echo "configure: failed program was:" >&5
1547 cat conftest.$ac_ext >&5
1549 CPP="${CC-cc} -nologo -E"
1550 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1557 { (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1559 if test -z "$ac_err"; then
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1573 ac_cv_prog_CPP="$CPP"
1575 CPP="$ac_cv_prog_CPP"
1577 ac_cv_prog_CPP="$CPP"
1579 echo "$ac_t""$CPP" 1>&6
1581 if test $ac_cv_prog_gcc = yes; then
1582 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1583 echo "configure:1584: checking whether ${CC-cc} needs -traditional" >&5
1584 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 ac_pattern="Autoconf.*'x'"
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1595 egrep "$ac_pattern" >/dev/null 2>&1; then
1597 ac_cv_prog_gcc_traditional=yes
1600 ac_cv_prog_gcc_traditional=no
1605 if test $ac_cv_prog_gcc_traditional = no; then
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1613 egrep "$ac_pattern" >/dev/null 2>&1; then
1615 ac_cv_prog_gcc_traditional=yes
1622 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1623 if test $ac_cv_prog_gcc_traditional = yes; then
1624 CC="$CC -traditional"
1630 # Create compiler version string
1631 if test x"$GCC" = x"yes" ; then
1632 cc_string="GCC `${CC} --version`"
1636 cat >> confdefs.h <<EOF
1637 #define PG_VERSION_STR "PostgreSQL $VERSION on $host, compiled by $cc_string"
1643 # Automatic dependency tracking
1645 # Check whether --enable-depend was given
1646 if test x"${enable_depend+set}" = xset; then
1647 case $enable_depend in
1655 enableval=$enable_depend
1656 { echo "configure: error: no argument expected for --enable-depend option" 1>&2; exit 1; }
1658 esac # $enable_depend
1667 # Enable assert checks
1669 # Check whether --enable-cassert was given
1670 if test x"${enable_cassert+set}" = xset; then
1671 case $enable_cassert in
1673 cat >> confdefs.h <<\EOF
1674 #define USE_ASSERT_CHECKING 1
1682 enableval=$enable_cassert
1683 { echo "configure: error: no argument expected for --enable-cassert option" 1>&2; exit 1; }
1685 esac # $enable_cassert
1693 # Include directories
1697 # SRCH_INC comes from the template file
1698 for dir in $with_includes $SRCH_INC; do
1699 if test -d "$dir"; then
1700 INCLUDES="$INCLUDES -I$dir"
1702 echo "configure: warning: *** Include directory $dir does not exist." 1>&2
1710 # Library directories
1714 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
1715 for dir in $LIBRARY_DIRS $SRCH_LIB; do
1716 if test -d "$dir"; then
1717 LIBDIRS="$LIBDIRS -L$dir"
1719 echo "configure: warning: *** Library directory $dir does not exist." 1>&2
1728 echo $ac_n "checking whether to build with Tcl""... $ac_c" 1>&6
1729 echo "configure:1730: checking whether to build with Tcl" >&5
1730 # Check whether --with-tcl was given
1731 if test x"${with_tcl+set}" = xset; then
1741 { echo "configure: error: no argument expected for --with-tcl option" 1>&2; exit 1; }
1748 echo "$ac_t""$with_tcl" 1>&6
1751 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
1752 echo $ac_n "checking whether to build with Tk""... $ac_c" 1>&6
1753 echo "configure:1754: checking whether to build with Tk" >&5
1754 if test "$with_tcl" = yes; then
1755 # Check whether --with-tk was given
1756 if test x"${with_tk+set}" = xset; then
1766 { echo "configure: error: no argument expected for --with-tk option" 1>&2; exit 1; }
1776 echo "$ac_t""$with_tk" 1>&6
1780 # We see if the path to the TCL/TK configuration scripts is specified.
1781 # This will override the use of tclsh to find the paths to search.
1783 # Check whether --with-tclconfig was given
1784 if test x"${with_tclconfig+set}" = xset; then
1785 case $with_tclconfig in
1787 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1790 { echo "configure: error: argument required for --with-tclconfig option" 1>&2; exit 1; }
1792 esac # $with_tclconfig
1795 # We see if the path to the TK configuration scripts is specified.
1796 # This will override the use of tclsh to find the paths to search.
1798 # Check whether --with-tkconfig was given
1799 if test x"${with_tkconfig+set}" = xset; then
1800 case $with_tkconfig in
1802 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1805 { echo "configure: error: argument required for --with-tkconfig option" 1>&2; exit 1; }
1807 esac # $with_tkconfig
1811 # Optionally build Perl modules (Pg.pm and PL/Perl)
1813 echo $ac_n "checking whether to build Perl modules""... $ac_c" 1>&6
1814 echo "configure:1815: checking whether to build Perl modules" >&5
1815 # Check whether --with-perl was given
1816 if test x"${with_perl+set}" = xset; then
1826 { echo "configure: error: no argument expected for --with-perl option" 1>&2; exit 1; }
1833 echo "$ac_t""$with_perl" 1>&6
1837 # Optionally build Python interface module
1839 echo $ac_n "checking whether to build Python modules""... $ac_c" 1>&6
1840 echo "configure:1841: checking whether to build Python modules" >&5
1841 # Check whether --with-python was given
1842 if test x"${with_python+set}" = xset; then
1843 case $with_python in
1851 withval=$with_python
1852 { echo "configure: error: no argument expected for --with-python option" 1>&2; exit 1; }
1859 echo "$ac_t""$with_python" 1>&6
1863 # Optionally build the Java/JDBC tools
1865 echo $ac_n "checking whether to build Java/JDBC tools""... $ac_c" 1>&6
1866 echo "configure:1867: checking whether to build Java/JDBC tools" >&5
1867 # Check whether --with-java was given
1868 if test x"${with_java+set}" = xset; then
1871 echo "$ac_t""yes" 1>&6
1873 for ac_prog in jakarta-ant ant ant.sh ant.bat
1875 # Extract the first word of "$ac_prog", so it can be a program name with args.
1876 set dummy $ac_prog; ac_word=$2
1877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1878 echo "configure:1879: checking for $ac_word" >&5
1879 if eval "test \"`echo '$''{'ac_cv_path_ANT'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1884 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
1887 ac_cv_path_ANT="$ANT" # Let the user override the test with a dos path.
1890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1892 for ac_dir in $ac_dummy; do
1893 test -z "$ac_dir" && ac_dir=.
1894 if test -f $ac_dir/$ac_word; then
1895 ac_cv_path_ANT="$ac_dir/$ac_word"
1903 ANT="$ac_cv_path_ANT"
1904 if test -n "$ANT"; then
1905 echo "$ac_t""$ANT" 1>&6
1907 echo "$ac_t""no" 1>&6
1910 test -n "$ANT" && break
1914 echo $ac_n "checking whether $ANT works""... $ac_c" 1>&6
1915 echo "configure:1916: checking whether $ANT works" >&5
1916 if eval "test \"`echo '$''{'pgac_cv_prog_ant_works'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1920 cat > conftest.java << EOF
1921 public class conftest {
1922 int testmethod(int a, int b) {
1928 cat > conftest.xml << EOF
1929 <project name="conftest" default="conftest">
1930 <target name="conftest">
1931 <javac srcdir="." includes="conftest.java">
1937 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
1938 { (eval echo configure:1939: \"$pgac_cmd\") 1>&5; (eval $pgac_cmd) 2>&5; }
1940 if test $? = 0 && test -f ./conftest.class ; then
1941 pgac_cv_prog_ant_works=yes
1943 echo "configure: failed java program was:" >&5
1944 cat conftest.java >&5
1945 echo "configure: failed build file was:" >&5
1946 cat conftest.xml >&5
1947 pgac_cv_prog_ant_works=no
1950 rm -f conftest* core core.* *.core
1954 echo "$ac_t""$pgac_cv_prog_ant_works" 1>&6
1956 if test "$pgac_cv_prog_ant_works" != yes; then
1957 { echo "configure: error: ant does not work" 1>&2; exit 1; }
1961 if test -z "$ANT"; then
1962 { echo "configure: error: Ant is required to build Java components" 1>&2; exit 1; }
1966 echo "$ac_t""no" 1>&6
1970 { echo "configure: error: no argument expected for --with-java option" 1>&2; exit 1; }
1975 echo "$ac_t""no" 1>&6
1983 # Check whether --with-krb4 was given
1984 if test x"${with_krb4+set}" = xset; then
1987 krb4_prefix=/usr/athena
1995 krb4_prefix=$withval
2002 if test "$with_krb4" = yes; then
2004 echo "$ac_t""building with Kerberos 4 support" 1>&6
2005 cat >> confdefs.h <<\EOF
2010 if test -d "$krb4_prefix/include"; then
2011 INCLUDES="$INCLUDES -I$krb4_prefix/include"
2013 if test -d "$krb4_prefix/lib"; then
2014 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
2017 krb_srvtab="/etc/srvtab"
2028 # Check whether --with-krb5 was given
2029 if test x"${with_krb5+set}" = xset; then
2032 krb5_prefix=/usr/athena
2040 krb5_prefix=$withval
2047 if test "$with_krb5" = yes; then
2049 echo "$ac_t""building with Kerberos 5 support" 1>&6
2050 cat >> confdefs.h <<\EOF
2055 if test -d "$krb5_prefix/include"; then
2056 INCLUDES="$INCLUDES -I$krb5_prefix/include"
2058 if test -d "$krb5_prefix/lib"; then
2059 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
2062 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
2070 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
2071 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
2072 { echo "configure: error: Kerberos 4 and Kerberos 5 support cannot be combined" 1>&2; exit 1; }
2079 # Kerberos configuration parameters
2081 # Check whether --with-krb-srvnam was given
2082 if test x"${with_krb_srvnam+set}" = xset; then
2083 case $with_krb_srvnam in
2085 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2088 { echo "configure: error: argument required for --with-krb-srvnam option" 1>&2; exit 1; }
2090 esac # $with_krb_srvnam
2092 with_krb_srvnam="postgres"
2094 cat >> confdefs.h <<EOF
2095 #define PG_KRB_SRVNAM "$with_krb_srvnam"
2103 echo $ac_n "checking whether to build with PAM support""... $ac_c" 1>&6
2104 echo "configure:2105: checking whether to build with PAM support" >&5
2105 # Check whether --with-pam was given
2106 if test x"${with_pam+set}" = xset; then
2109 cat >> confdefs.h <<\EOF
2119 { echo "configure: error: no argument expected for --with-pam option" 1>&2; exit 1; }
2126 echo "$ac_t""$with_pam" 1>&6
2133 # Check whether --with-openssl was given
2134 if test x"${with_openssl+set}" = xset; then
2135 case $with_openssl in
2137 openssl_prefix=/usr/local/ssl
2143 withval=$with_openssl
2145 openssl_prefix=$withval
2147 esac # $with_openssl
2152 if test "$with_openssl" = yes; then
2154 echo "$ac_t""building with OpenSSL support" 1>&6
2155 cat >> confdefs.h <<\EOF
2160 if test -d "${openssl_prefix}/include" ; then
2161 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
2163 if test -d "${openssl_prefix}/lib" ; then
2164 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
2175 # Optionally enable the building of the ODBC driver
2179 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
2180 enable_odbc=$with_odbc
2183 echo $ac_n "checking whether to build the ODBC driver""... $ac_c" 1>&6
2184 echo "configure:2185: checking whether to build the ODBC driver" >&5
2185 # Check whether --enable-odbc was given
2186 if test x"${enable_odbc+set}" = xset; then
2187 case $enable_odbc in
2195 enableval=$enable_odbc
2196 { echo "configure: error: no argument expected for --enable-odbc option" 1>&2; exit 1; }
2203 # Check whether --with-unixodbc was given
2204 if test x"${with_unixodbc+set}" = xset; then
2205 case $with_unixodbc in
2213 withval=$with_unixodbc
2214 { echo "configure: error: no argument expected for --with-unixodbc option" 1>&2; exit 1; }
2216 esac # $with_unixodbc
2221 # Check whether --with-iodbc was given
2222 if test x"${with_iodbc+set}" = xset; then
2232 { echo "configure: error: no argument expected for --with-iodbc option" 1>&2; exit 1; }
2239 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
2240 { echo "configure: error: ODBC driver cannot be built for both unixODBC and iODBC" 1>&2; exit 1; }
2242 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
2245 case $enable_odbc:$with_unixodbc:$with_iodbc in
2246 yes:no:no) echo "$ac_t""yes (stand-alone)" 1>&6;;
2247 yes:yes:no) echo "$ac_t""yes (unixODBC)" 1>&6; cat >> confdefs.h <<\EOF
2248 #define WITH_UNIXODBC 1
2251 yes:no:yes) echo "$ac_t""yes (iODBC)" 1>&6; cat >> confdefs.h <<\EOF
2252 #define WITH_IODBC 1
2255 no:*) echo "$ac_t""no" 1>&6;;
2262 # Allow for overriding the default location of the odbcinst.ini
2263 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
2264 # Check whether --with-odbcinst was given
2265 if test x"${with_odbcinst+set}" = xset; then
2266 case $with_odbcinst in
2268 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2271 { echo "configure: error: argument required for --with-odbcinst option" 1>&2; exit 1; }
2274 withval=$with_odbcinst
2275 odbcinst_ini_dir=$withval
2277 esac # $with_odbcinst
2279 odbcinst_ini_dir="\${sysconfdir}"
2285 # Assume system is ELF if it predefines __ELF__ as 1,
2286 # otherwise believe host_os based default.
2288 freebsd1*|freebsd2*) elf=no;;
2289 freebsd3*|freebsd4*) elf=yes;;
2292 cat > conftest.$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2301 egrep "yes" >/dev/null 2>&1; then
2306 if test "X$elf" = "Xyes" ; then
2319 # Optionally build C++ code (i.e., libpq++)
2321 echo $ac_n "checking whether to build C++ modules""... $ac_c" 1>&6
2322 echo "configure:2323: checking whether to build C++ modules" >&5
2323 # Check whether --with-CXX was given
2324 if test x"${with_CXX+set}" = xset; then
2342 if test "$with_CXX" = yes; then
2344 echo "$ac_t""yes" 1>&6
2346 # If the user has specified CXXFLAGS in the environment, leave it
2347 # alone, else use a default.
2349 has_environ_CXXFLAGS="${CXXFLAGS+yes}"
2350 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
2352 # Extract the first word of "$ac_prog", so it can be a program name with args.
2353 set dummy $ac_prog; ac_word=$2
2354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2355 echo "configure:2356: checking for $ac_word" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 if test -n "$CXX"; then
2360 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2364 for ac_dir in $ac_dummy; do
2365 test -z "$ac_dir" && ac_dir=.
2366 if test -f $ac_dir/$ac_word; then
2367 ac_cv_prog_CXX="$ac_prog"
2374 CXX="$ac_cv_prog_CXX"
2375 if test -n "$CXX"; then
2376 echo "$ac_t""$CXX" 1>&6
2378 echo "$ac_t""no" 1>&6
2381 test -n "$CXX" && break
2383 test -n "$CXX" || CXX="gcc"
2386 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2387 echo "configure:2388: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2390 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2391 ac_cpp='$CXXCPP $CPPFLAGS'
2392 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2393 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2394 cross_compiling=$ac_cv_prog_cxx_cross
2396 cat > conftest.$ac_ext << EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2401 int main(){return(0);}
2403 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2404 ac_cv_prog_cxx_works=yes
2405 # If we can't run a trivial program, we are probably using a cross compiler.
2406 if (./conftest; exit) 2>/dev/null; then
2407 ac_cv_prog_cxx_cross=no
2409 ac_cv_prog_cxx_cross=yes
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 ac_cv_prog_cxx_works=no
2418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2422 cross_compiling=$ac_cv_prog_cc_cross
2424 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2425 if test $ac_cv_prog_cxx_works = no; then
2426 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2428 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2429 echo "configure:2430: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2430 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2431 cross_compiling=$ac_cv_prog_cxx_cross
2433 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2434 echo "configure:2435: checking whether we are using GNU C++" >&5
2435 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2436 echo $ac_n "(cached) $ac_c" 1>&6
2438 cat > conftest.C <<EOF
2443 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2450 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2452 if test $ac_cv_prog_gxx = yes; then
2458 ac_test_CXXFLAGS="${CXXFLAGS+set}"
2459 ac_save_CXXFLAGS="$CXXFLAGS"
2461 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2462 echo "configure:2463: checking whether ${CXX-g++} accepts -g" >&5
2463 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 echo 'void f(){}' > conftest.cc
2467 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2468 ac_cv_prog_cxx_g=yes
2476 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2477 if test "$ac_test_CXXFLAGS" = set; then
2478 CXXFLAGS="$ac_save_CXXFLAGS"
2479 elif test $ac_cv_prog_cxx_g = yes; then
2480 if test "$GXX" = yes; then
2486 if test "$GXX" = yes; then
2493 if test "$has_environ_CXXFLAGS" != yes; then
2494 if test "$GXX" = yes; then
2498 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
2499 unixware) CXXFLAGS='-O' ;;
2504 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
2505 CXXFLAGS="$CXXFLAGS -g"
2507 echo "using CXXFLAGS=$CXXFLAGS"
2509 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2510 echo "configure:2511: checking how to run the C++ preprocessor" >&5
2511 if test -z "$CXXCPP"; then
2512 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2516 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2517 ac_cpp='$CXXCPP $CPPFLAGS'
2518 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2519 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2520 cross_compiling=$ac_cv_prog_cxx_cross
2521 CXXCPP="${CXX-g++} -E"
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2528 { (eval echo configure:2529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2530 if test -z "$ac_err"; then
2534 echo "configure: failed program was:" >&5
2535 cat conftest.$ac_ext >&5
2540 ac_cv_prog_CXXCPP="$CXXCPP"
2542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2543 ac_cpp='$CPP $CPPFLAGS'
2544 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2545 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2546 cross_compiling=$ac_cv_prog_cc_cross
2549 CXXCPP="$ac_cv_prog_CXXCPP"
2550 echo "$ac_t""$CXXCPP" 1>&6
2555 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2556 ac_cpp='$CXXCPP $CPPFLAGS'
2557 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2558 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2559 cross_compiling=$ac_cv_prog_cxx_cross
2561 ac_safe=`echo "string" | sed 'y%./+-%__p_%'`
2562 echo $ac_n "checking for string""... $ac_c" 1>&6
2563 echo "configure:2564: checking for string" >&5
2564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2573 { (eval echo configure:2574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2575 if test -z "$ac_err"; then
2577 eval "ac_cv_header_$ac_safe=yes"
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2583 eval "ac_cv_header_$ac_safe=no"
2587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2588 echo "$ac_t""yes" 1>&6
2589 cat >> confdefs.h <<\EOF
2590 #define HAVE_CXX_STRING_HEADER 1
2594 echo "$ac_t""no" 1>&6
2598 if test x"$ac_cv_header_string" != xyes ; then
2599 echo $ac_n "checking for class string in <string.h>""... $ac_c" 1>&6
2600 echo "configure:2601: checking for class string in <string.h>" >&5
2601 if eval "test \"`echo '$''{'pgac_cv_class_string_in_string_h'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2615 if { (eval echo configure:2616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2617 pgac_cv_class_string_in_string_h=yes
2619 echo "configure: failed program was:" >&5
2620 cat conftest.$ac_ext >&5
2622 pgac_cv_class_string_in_string_h=no
2627 echo "$ac_t""$pgac_cv_class_string_in_string_h" 1>&6
2629 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
2630 { echo "configure: error: neither <string> nor <string.h> seem to define the C++ class \`string\'" 1>&2; exit 1; }
2634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2638 cross_compiling=$ac_cv_prog_cc_cross
2641 echo $ac_n "checking for namespace std in C++""... $ac_c" 1>&6
2642 echo "configure:2643: checking for namespace std in C++" >&5
2643 if eval "test \"`echo '$''{'pgac_cv_cxx_namespace_std'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6
2649 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2650 ac_cpp='$CXXCPP $CPPFLAGS'
2651 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2652 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2653 cross_compiling=$ac_cv_prog_cxx_cross
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2660 #ifdef HAVE_CXX_STRING_HEADER
2663 using namespace std;
2669 if { (eval echo configure:2670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2671 pgac_cv_cxx_namespace_std=yes
2673 echo "configure: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2676 pgac_cv_cxx_namespace_std=no
2680 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2683 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2684 cross_compiling=$ac_cv_prog_cc_cross
2688 echo "$ac_t""$pgac_cv_cxx_namespace_std" 1>&6
2690 if test $pgac_cv_cxx_namespace_std = yes ; then
2691 cat >> confdefs.h <<\EOF
2692 #define HAVE_NAMESPACE_STD 1
2698 echo "$ac_t""no" 1>&6
2703 CPPFLAGS="$CPPFLAGS $INCLUDES"
2704 LDFLAGS="$LDFLAGS $LIBDIRS"
2706 echo "using CPPFLAGS=$CPPFLAGS"
2707 echo "using LDFLAGS=$LDFLAGS"
2710 for ac_prog in mawk gawk nawk awk
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 set dummy $ac_prog; ac_word=$2
2714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2715 echo "configure:2716: checking for $ac_word" >&5
2716 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2719 if test -n "$AWK"; then
2720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2724 for ac_dir in $ac_dummy; do
2725 test -z "$ac_dir" && ac_dir=.
2726 if test -f $ac_dir/$ac_word; then
2727 ac_cv_prog_AWK="$ac_prog"
2734 AWK="$ac_cv_prog_AWK"
2735 if test -n "$AWK"; then
2736 echo "$ac_t""$AWK" 1>&6
2738 echo "$ac_t""no" 1>&6
2741 test -n "$AWK" && break
2744 echo $ac_n "checking for flex""... $ac_c" 1>&6
2745 echo "configure:2746: checking for flex" >&5
2746 if eval "test \"`echo '$''{'pgac_cv_path_flex'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2749 # Let the user override the test
2750 if test -n "$FLEX"; then
2751 pgac_cv_path_flex=$FLEX
2755 for pgac_dir in $PATH; do
2756 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
2759 for pgac_prog in flex lex; do
2760 pgac_candidate="$pgac_dir/$pgac_prog"
2761 if test -f "$pgac_candidate" \
2762 && $pgac_candidate --version </dev/null >/dev/null 2>&1
2764 echo '%%' > conftest.l
2765 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
2766 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
2767 pgac_broken_flex=$pgac_candidate
2771 pgac_cv_path_flex=$pgac_candidate
2779 : ${pgac_cv_path_flex=no}
2784 echo "$ac_t""$pgac_cv_path_flex" 1>&6
2785 if test x"$pgac_cv_path_flex" = x"no"; then
2786 if test -n "$pgac_broken_flex"; then
2787 echo "configure: warning:
2788 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
2789 *** should get version 2.5.4 or later." 1>&2
2792 echo "configure: warning:
2793 *** Without Flex you will not be able to build PostgreSQL from CVS or
2794 *** change any of the scanner definition files. You can obtain Flex from
2795 *** a GNU mirror site. (If you are using the official distribution of
2796 *** PostgreSQL then you do not need to worry about this because the Flex
2797 *** output is pre-generated.)" 1>&2
2800 if test x"$pgac_cv_path_flex" = x"no"; then
2803 FLEX=$pgac_cv_path_flex
2809 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2810 echo "configure:2811: checking whether ln -s works" >&5
2811 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2815 if ln -s X conftestdata 2>/dev/null
2818 ac_cv_prog_LN_S="ln -s"
2823 LN_S="$ac_cv_prog_LN_S"
2824 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2825 echo "$ac_t""yes" 1>&6
2827 echo "$ac_t""no" 1>&6
2830 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2831 if test "${with_gnu_ld+set}" = set; then
2832 withval="$with_gnu_ld"
2833 test "$withval" = no || with_gnu_ld=yes
2839 if test "$ac_cv_prog_gcc" = yes; then
2840 # Check if gcc -print-prog-name=ld gives a path.
2841 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2842 echo "configure:2843: checking for ld used by GCC" >&5
2845 # gcc leaves a trailing carriage return which upsets mingw
2846 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2848 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2851 # Accept absolute paths.
2852 [\\/]* | [A-Za-z]:[\\/]*)
2853 re_direlt='/[^/][^/]*/\.\./'
2854 # Canonicalize the path of ld
2855 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2856 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2857 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2859 test -z "$LD" && LD="$ac_prog"
2862 # If it fails, then pretend we aren't using GCC.
2866 # If it is relative, then search for the first ld in PATH.
2870 elif test "$with_gnu_ld" = yes; then
2871 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2872 echo "configure:2873: checking for GNU ld" >&5
2874 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2875 echo "configure:2876: checking for non-GNU ld" >&5
2877 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2878 echo $ac_n "(cached) $ac_c" 1>&6
2880 if test -z "$LD"; then
2881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2882 for ac_dir in $PATH; do
2883 test -z "$ac_dir" && ac_dir=.
2884 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2885 ac_cv_path_LD="$ac_dir/$ac_prog"
2886 # Check to see if the program is GNU ld. I'd rather use --version,
2887 # but apparently some GNU ld's only accept -v.
2888 # Break only if it was the GNU/non-GNU ld that we prefer.
2889 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2890 test "$with_gnu_ld" != no && break
2892 test "$with_gnu_ld" != yes && break
2898 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2903 if test -n "$LD"; then
2904 echo "$ac_t""$LD" 1>&6
2906 echo "$ac_t""no" 1>&6
2908 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2909 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2910 echo "configure:2911: checking if the linker ($LD) is GNU ld" >&5
2911 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2912 echo $ac_n "(cached) $ac_c" 1>&6
2914 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2915 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2916 ac_cv_prog_gnu_ld=yes
2918 ac_cv_prog_gnu_ld=no
2922 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2923 with_gnu_ld=$ac_cv_prog_gnu_ld
2928 case $host_os in sysv5*)
2929 echo $ac_n "checking whether ld -R works""... $ac_c" 1>&6
2930 echo "configure:2931: checking whether ld -R works" >&5
2931 if eval "test \"`echo '$''{'pgac_cv_prog_ld_R'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2935 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
2936 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2944 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2946 pgac_cv_prog_ld_R=yes
2948 echo "configure: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
2951 pgac_cv_prog_ld_R=no
2954 LDFLAGS=$pgac_save_LDFLAGS
2958 echo "$ac_t""$pgac_cv_prog_ld_R" 1>&6
2959 ld_R_works=$pgac_cv_prog_ld_R
2962 # Extract the first word of "ranlib", so it can be a program name with args.
2963 set dummy ranlib; ac_word=$2
2964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2965 echo "configure:2966: checking for $ac_word" >&5
2966 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 if test -n "$RANLIB"; then
2970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2974 for ac_dir in $ac_dummy; do
2975 test -z "$ac_dir" && ac_dir=.
2976 if test -f $ac_dir/$ac_word; then
2977 ac_cv_prog_RANLIB="ranlib"
2982 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2985 RANLIB="$ac_cv_prog_RANLIB"
2986 if test -n "$RANLIB"; then
2987 echo "$ac_t""$RANLIB" 1>&6
2989 echo "$ac_t""no" 1>&6
2992 for ac_prog in lorder
2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2995 set dummy $ac_prog; ac_word=$2
2996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2997 echo "configure:2998: checking for $ac_word" >&5
2998 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 if test -n "$LORDER"; then
3002 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3006 for ac_dir in $ac_dummy; do
3007 test -z "$ac_dir" && ac_dir=.
3008 if test -f $ac_dir/$ac_word; then
3009 ac_cv_prog_LORDER="$ac_prog"
3016 LORDER="$ac_cv_prog_LORDER"
3017 if test -n "$LORDER"; then
3018 echo "$ac_t""$LORDER" 1>&6
3020 echo "$ac_t""no" 1>&6
3023 test -n "$LORDER" && break
3026 # Extract the first word of "tar", so it can be a program name with args.
3027 set dummy tar; ac_word=$2
3028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3029 echo "configure:3030: checking for $ac_word" >&5
3030 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3035 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3038 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
3041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3043 for ac_dir in $ac_dummy; do
3044 test -z "$ac_dir" && ac_dir=.
3045 if test -f $ac_dir/$ac_word; then
3046 ac_cv_path_TAR="$ac_dir/$ac_word"
3054 TAR="$ac_cv_path_TAR"
3055 if test -n "$TAR"; then
3056 echo "$ac_t""$TAR" 1>&6
3058 echo "$ac_t""no" 1>&6
3062 for ac_prog in 'bison -y'
3064 # Extract the first word of "$ac_prog", so it can be a program name with args.
3065 set dummy $ac_prog; ac_word=$2
3066 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3067 echo "configure:3068: checking for $ac_word" >&5
3068 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3069 echo $ac_n "(cached) $ac_c" 1>&6
3071 if test -n "$YACC"; then
3072 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3076 for ac_dir in $ac_dummy; do
3077 test -z "$ac_dir" && ac_dir=.
3078 if test -f $ac_dir/$ac_word; then
3079 ac_cv_prog_YACC="$ac_prog"
3086 YACC="$ac_cv_prog_YACC"
3087 if test -n "$YACC"; then
3088 echo "$ac_t""$YACC" 1>&6
3090 echo "$ac_t""no" 1>&6
3093 test -n "$YACC" && break
3096 if test -z "$YACC"; then
3097 echo "configure: warning:
3098 *** Without Bison you will not be able to build PostgreSQL from CVS or
3099 *** change any of the parser definition files. You can obtain Bison from
3100 *** a GNU mirror site. (If you are using the official distribution of
3101 *** PostgreSQL then you do not need to worry about this because the Bison
3102 *** output is pre-generated.) To use a different yacc program (possible,
3103 *** but not recommended), set the environment variable YACC before running
3104 *** 'configure'." 1>&2
3108 if test "$with_tk" = yes; then
3109 # Extract the first word of "wish", so it can be a program name with args.
3110 set dummy wish; ac_word=$2
3111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3112 echo "configure:3113: checking for $ac_word" >&5
3113 if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3118 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
3121 ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path.
3124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3126 for ac_dir in $ac_dummy; do
3127 test -z "$ac_dir" && ac_dir=.
3128 if test -f $ac_dir/$ac_word; then
3129 ac_cv_path_WISH="$ac_dir/$ac_word"
3137 WISH="$ac_cv_path_WISH"
3138 if test -n "$WISH"; then
3139 echo "$ac_t""$WISH" 1>&6
3141 echo "$ac_t""no" 1>&6
3144 test -z "$WISH" && { echo "configure: error: 'wish' is required for Tk support" 1>&2; exit 1; }
3147 # Extract the first word of "perl", so it can be a program name with args.
3148 set dummy perl; ac_word=$2
3149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_word" >&5
3151 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3156 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3159 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3164 for ac_dir in $ac_dummy; do
3165 test -z "$ac_dir" && ac_dir=.
3166 if test -f $ac_dir/$ac_word; then
3167 ac_cv_path_PERL="$ac_dir/$ac_word"
3175 PERL="$ac_cv_path_PERL"
3176 if test -n "$PERL"; then
3177 echo "$ac_t""$PERL" 1>&6
3179 echo "$ac_t""no" 1>&6
3182 if test "$with_perl" = yes; then
3185 echo $ac_n "checking Perl installation directories""... $ac_c" 1>&6
3186 echo "configure:3187: checking Perl installation directories" >&5
3188 # These are the ones we currently need. Others can be added easily.
3189 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
3190 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
3191 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
3194 echo "$ac_t""done" 1>&6
3198 if test "$with_python" = yes; then
3199 # Extract the first word of "python", so it can be a program name with args.
3200 set dummy python; ac_word=$2
3201 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3202 echo "configure:3203: checking for $ac_word" >&5
3203 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
3208 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3211 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
3214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3216 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 if test -f $ac_dir/$ac_word; then
3219 ac_cv_path_PYTHON="$ac_dir/$ac_word"
3227 PYTHON="$ac_cv_path_PYTHON"
3228 if test -n "$PYTHON"; then
3229 echo "$ac_t""$PYTHON" 1>&6
3231 echo "$ac_t""no" 1>&6
3234 if test x"$PYTHON" = x""; then
3235 { echo "configure: error: Python not found" 1>&2; exit 1; }
3239 echo $ac_n "checking Python installation directories""... $ac_c" 1>&6
3240 echo "configure:3241: checking Python installation directories" >&5
3241 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
3242 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
3243 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
3244 python_configdir="${python_execprefix}/lib/python${python_version}/config"
3245 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
3246 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
3247 python_includespec="-I${python_prefix}/include/python${python_version}"
3248 if test "$python_prefix" != "$python_execprefix"; then
3249 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
3252 # This should be enough of a message.
3253 if test "$python_prefix" != "$python_execprefix"; then
3254 echo "$ac_t""$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" 1>&6
3256 echo "$ac_t""$python_prefix/lib/python${python_version}" 1>&6
3263 echo $ac_n "checking how to link an embedded Python application""... $ac_c" 1>&6
3264 echo "configure:3265: checking how to link an embedded Python application" >&5
3266 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3267 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
3268 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
3269 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3270 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
3272 pgac_tab=" " # tab character
3273 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
3275 echo "$ac_t""${python_libspec}" 1>&6
3286 echo $ac_n "checking for readline""... $ac_c" 1>&6
3287 echo "configure:3288: checking for readline" >&5
3289 if eval "test \"`echo '$''{'pgac_cv_check_readline'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 pgac_cv_check_readline=no
3293 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3294 for pgac_rllib in -lreadline -ledit ; do
3295 pgac_save_LIBS=$LIBS
3296 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3309 if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312 # NetBSD and OpenBSD have a broken linker that does not
3313 # recognize dependent libraries
3314 case $host_os in netbsd* | openbsd* )
3317 *) pgac_lib=" -lcurses" ;;
3321 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
3325 echo "configure: failed program was:" >&5
3326 cat conftest.$ac_ext >&5
3329 LIBS=$pgac_save_LIBS
3332 LIBS=$pgac_save_LIBS
3336 if test "$pgac_cv_check_readline" != no ; then
3337 cat >> confdefs.h <<\EOF
3338 #define HAVE_LIBREADLINE 1
3341 LIBS="$pgac_cv_check_readline $LIBS"
3342 echo "$ac_t""yes ($pgac_cv_check_readline)" 1>&6
3344 echo "$ac_t""no" 1>&6
3347 echo $ac_n "checking for library containing using_history""... $ac_c" 1>&6
3348 echo "configure:3349: checking for library containing using_history" >&5
3349 if eval "test \"`echo '$''{'ac_cv_search_using_history'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3352 ac_func_search_save_LIBS="$LIBS"
3353 ac_cv_search_using_history="no"
3354 cat > conftest.$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 /* Override any gcc2 internal prototype to avoid an error. */
3358 /* We use char because int might match the return type of a gcc2
3359 builtin and then its argument prototype would still apply. */
3360 char using_history();
3366 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3368 ac_cv_search_using_history="none required"
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3374 test "$ac_cv_search_using_history" = "no" && for i in history; do
3375 LIBS="-l$i $ac_func_search_save_LIBS"
3376 cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3379 /* Override any gcc2 internal prototype to avoid an error. */
3380 /* We use char because int might match the return type of a gcc2
3381 builtin and then its argument prototype would still apply. */
3382 char using_history();
3388 if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3390 ac_cv_search_using_history="-l$i"
3393 echo "configure: failed program was:" >&5
3394 cat conftest.$ac_ext >&5
3398 LIBS="$ac_func_search_save_LIBS"
3401 echo "$ac_t""$ac_cv_search_using_history" 1>&6
3402 if test "$ac_cv_search_using_history" != "no"; then
3403 test "$ac_cv_search_using_history" = "none required" || LIBS="$ac_cv_search_using_history $LIBS"
3404 cat >> confdefs.h <<\EOF
3405 #define HAVE_HISTORY_FUNCTIONS 1
3412 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
3414 echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
3415 echo "configure:3416: checking for main in -lbsd" >&5
3416 ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
3417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 ac_save_LIBS="$LIBS"
3422 cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3430 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3432 eval "ac_cv_lib_$ac_lib_var=yes"
3434 echo "configure: failed program was:" >&5
3435 cat conftest.$ac_ext >&5
3437 eval "ac_cv_lib_$ac_lib_var=no"
3440 LIBS="$ac_save_LIBS"
3443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3444 echo "$ac_t""yes" 1>&6
3445 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3446 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3447 cat >> confdefs.h <<EOF
3448 #define $ac_tr_lib 1
3454 echo "$ac_t""no" 1>&6
3458 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
3459 echo "configure:3460: checking for setproctitle in -lutil" >&5
3460 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
3461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 ac_save_LIBS="$LIBS"
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 /* Override any gcc2 internal prototype to avoid an error. */
3470 /* We use char because int might match the return type of a gcc2
3471 builtin and then its argument prototype would still apply. */
3472 char setproctitle();
3478 if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3480 eval "ac_cv_lib_$ac_lib_var=yes"
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3485 eval "ac_cv_lib_$ac_lib_var=no"
3488 LIBS="$ac_save_LIBS"
3491 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3492 echo "$ac_t""yes" 1>&6
3493 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3494 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3495 cat >> confdefs.h <<EOF
3496 #define $ac_tr_lib 1
3502 echo "$ac_t""no" 1>&6
3505 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3506 echo "configure:3507: checking for main in -lm" >&5
3507 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3511 ac_save_LIBS="$LIBS"
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3521 if { (eval echo configure:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3523 eval "ac_cv_lib_$ac_lib_var=yes"
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3528 eval "ac_cv_lib_$ac_lib_var=no"
3531 LIBS="$ac_save_LIBS"
3534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3535 echo "$ac_t""yes" 1>&6
3536 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3537 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3538 cat >> confdefs.h <<EOF
3539 #define $ac_tr_lib 1
3545 echo "$ac_t""no" 1>&6
3548 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3549 echo "configure:3550: checking for main in -ldl" >&5
3550 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3552 echo $ac_n "(cached) $ac_c" 1>&6
3554 ac_save_LIBS="$LIBS"
3556 cat > conftest.$ac_ext <<EOF
3557 #line 3558 "configure"
3558 #include "confdefs.h"
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3566 eval "ac_cv_lib_$ac_lib_var=yes"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 eval "ac_cv_lib_$ac_lib_var=no"
3574 LIBS="$ac_save_LIBS"
3577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3578 echo "$ac_t""yes" 1>&6
3579 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3580 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3581 cat >> confdefs.h <<EOF
3582 #define $ac_tr_lib 1
3588 echo "$ac_t""no" 1>&6
3591 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3592 echo "configure:3593: checking for main in -lsocket" >&5
3593 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 ac_save_LIBS="$LIBS"
3598 LIBS="-lsocket $LIBS"
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3607 if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3609 eval "ac_cv_lib_$ac_lib_var=yes"
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3614 eval "ac_cv_lib_$ac_lib_var=no"
3617 LIBS="$ac_save_LIBS"
3620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3623 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3624 cat >> confdefs.h <<EOF
3625 #define $ac_tr_lib 1
3628 LIBS="-lsocket $LIBS"
3631 echo "$ac_t""no" 1>&6
3634 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3635 echo "configure:3636: checking for main in -lnsl" >&5
3636 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 ac_save_LIBS="$LIBS"
3642 cat > conftest.$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3650 if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3652 eval "ac_cv_lib_$ac_lib_var=yes"
3654 echo "configure: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 eval "ac_cv_lib_$ac_lib_var=no"
3660 LIBS="$ac_save_LIBS"
3663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3664 echo "$ac_t""yes" 1>&6
3665 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3666 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3667 cat >> confdefs.h <<EOF
3668 #define $ac_tr_lib 1
3674 echo "$ac_t""no" 1>&6
3677 echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
3678 echo "configure:3679: checking for main in -lipc" >&5
3679 ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
3680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3683 ac_save_LIBS="$LIBS"
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3695 eval "ac_cv_lib_$ac_lib_var=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3700 eval "ac_cv_lib_$ac_lib_var=no"
3703 LIBS="$ac_save_LIBS"
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3709 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3710 cat >> confdefs.h <<EOF
3711 #define $ac_tr_lib 1
3717 echo "$ac_t""no" 1>&6
3720 echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
3721 echo "configure:3722: checking for main in -lIPC" >&5
3722 ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
3723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3726 ac_save_LIBS="$LIBS"
3728 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3736 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3738 eval "ac_cv_lib_$ac_lib_var=yes"
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3743 eval "ac_cv_lib_$ac_lib_var=no"
3746 LIBS="$ac_save_LIBS"
3749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3750 echo "$ac_t""yes" 1>&6
3751 ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3752 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3753 cat >> confdefs.h <<EOF
3754 #define $ac_tr_lib 1
3760 echo "$ac_t""no" 1>&6
3763 echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
3764 echo "configure:3765: checking for main in -llc" >&5
3765 ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
3766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3769 ac_save_LIBS="$LIBS"
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781 eval "ac_cv_lib_$ac_lib_var=yes"
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 eval "ac_cv_lib_$ac_lib_var=no"
3789 LIBS="$ac_save_LIBS"
3792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3794 ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3795 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3796 cat >> confdefs.h <<EOF
3797 #define $ac_tr_lib 1
3803 echo "$ac_t""no" 1>&6
3806 echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
3807 echo "configure:3808: checking for main in -ldld" >&5
3808 ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
3809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 ac_save_LIBS="$LIBS"
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3822 if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3824 eval "ac_cv_lib_$ac_lib_var=yes"
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3829 eval "ac_cv_lib_$ac_lib_var=no"
3832 LIBS="$ac_save_LIBS"
3835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3836 echo "$ac_t""yes" 1>&6
3837 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3838 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3839 cat >> confdefs.h <<EOF
3840 #define $ac_tr_lib 1
3846 echo "$ac_t""no" 1>&6
3849 echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
3850 echo "configure:3851: checking for main in -lld" >&5
3851 ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
3852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3855 ac_save_LIBS="$LIBS"
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3865 if { (eval echo configure:3866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3867 eval "ac_cv_lib_$ac_lib_var=yes"
3869 echo "configure: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3872 eval "ac_cv_lib_$ac_lib_var=no"
3875 LIBS="$ac_save_LIBS"
3878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3879 echo "$ac_t""yes" 1>&6
3880 ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3881 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3882 cat >> confdefs.h <<EOF
3883 #define $ac_tr_lib 1
3889 echo "$ac_t""no" 1>&6
3892 echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3893 echo "configure:3894: checking for main in -lcompat" >&5
3894 ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 ac_save_LIBS="$LIBS"
3899 LIBS="-lcompat $LIBS"
3900 cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3908 if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3910 eval "ac_cv_lib_$ac_lib_var=yes"
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3915 eval "ac_cv_lib_$ac_lib_var=no"
3918 LIBS="$ac_save_LIBS"
3921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3923 ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3924 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3925 cat >> confdefs.h <<EOF
3926 #define $ac_tr_lib 1
3929 LIBS="-lcompat $LIBS"
3932 echo "$ac_t""no" 1>&6
3935 echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
3936 echo "configure:3937: checking for main in -lBSD" >&5
3937 ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
3938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 ac_save_LIBS="$LIBS"
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3951 if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3953 eval "ac_cv_lib_$ac_lib_var=yes"
3955 echo "configure: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3958 eval "ac_cv_lib_$ac_lib_var=no"
3961 LIBS="$ac_save_LIBS"
3964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3967 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3968 cat >> confdefs.h <<EOF
3969 #define $ac_tr_lib 1
3975 echo "$ac_t""no" 1>&6
3978 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
3979 echo "configure:3980: checking for main in -lgen" >&5
3980 ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
3981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 ac_save_LIBS="$LIBS"
3986 cat > conftest.$ac_ext <<EOF
3987 #line 3988 "configure"
3988 #include "confdefs.h"
3994 if { (eval echo configure:3995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3996 eval "ac_cv_lib_$ac_lib_var=yes"
3998 echo "configure: failed program was:" >&5
3999 cat conftest.$ac_ext >&5
4001 eval "ac_cv_lib_$ac_lib_var=no"
4004 LIBS="$ac_save_LIBS"
4007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4008 echo "$ac_t""yes" 1>&6
4009 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4011 cat >> confdefs.h <<EOF
4012 #define $ac_tr_lib 1
4018 echo "$ac_t""no" 1>&6
4021 echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
4022 echo "configure:4023: checking for main in -lPW" >&5
4023 ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
4024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4027 ac_save_LIBS="$LIBS"
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4037 if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4039 eval "ac_cv_lib_$ac_lib_var=yes"
4041 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5
4044 eval "ac_cv_lib_$ac_lib_var=no"
4047 LIBS="$ac_save_LIBS"
4050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4051 echo "$ac_t""yes" 1>&6
4052 ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4053 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4054 cat >> confdefs.h <<EOF
4055 #define $ac_tr_lib 1
4061 echo "$ac_t""no" 1>&6
4064 echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
4065 echo "configure:4066: checking for main in -lresolv" >&5
4066 ac_lib_var=`echo resolv'_'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="-lresolv $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 resolv | 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="-lresolv $LIBS"
4104 echo "$ac_t""no" 1>&6
4108 echo $ac_n "checking for main in -lunix""... $ac_c" 1>&6
4109 echo "configure:4110: checking for main in -lunix" >&5
4110 ac_lib_var=`echo unix'_'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"
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 [unix] | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4141 cat >> confdefs.h <<EOF
4142 #define $ac_tr_lib 1
4148 echo "$ac_t""no" 1>&6
4152 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4153 echo "configure:4154: checking for library containing crypt" >&5
4154 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 ac_func_search_save_LIBS="$LIBS"
4158 ac_cv_search_crypt="no"
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4162 /* Override any gcc2 internal prototype to avoid an error. */
4163 /* We use char because int might match the return type of a gcc2
4164 builtin and then its argument prototype would still apply. */
4171 if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4173 ac_cv_search_crypt="none required"
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4179 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4180 LIBS="-l$i $ac_func_search_save_LIBS"
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 /* Override any gcc2 internal prototype to avoid an error. */
4185 /* We use char because int might match the return type of a gcc2
4186 builtin and then its argument prototype would still apply. */
4193 if { (eval echo configure:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4195 ac_cv_search_crypt="-l$i"
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4203 LIBS="$ac_func_search_save_LIBS"
4206 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4207 if test "$ac_cv_search_crypt" != "no"; then
4208 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4214 echo $ac_n "checking for __inet_ntoa in -lbind""... $ac_c" 1>&6
4215 echo "configure:4216: checking for __inet_ntoa in -lbind" >&5
4216 ac_lib_var=`echo bind'_'__inet_ntoa | sed 'y%./+-%__p_%'`
4217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 ac_save_LIBS="$LIBS"
4222 cat > conftest.$ac_ext <<EOF
4223 #line 4224 "configure"
4224 #include "confdefs.h"
4225 /* Override any gcc2 internal prototype to avoid an error. */
4226 /* We use char because int might match the return type of a gcc2
4227 builtin and then its argument prototype would still apply. */
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4236 eval "ac_cv_lib_$ac_lib_var=yes"
4238 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5
4241 eval "ac_cv_lib_$ac_lib_var=no"
4244 LIBS="$ac_save_LIBS"
4247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4248 echo "$ac_t""yes" 1>&6
4249 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4250 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4251 cat >> confdefs.h <<EOF
4252 #define $ac_tr_lib 1
4258 echo "$ac_t""no" 1>&6
4261 # Only consider libz to be present if we find <zlib.h> as well;
4262 # furthermore, check that <zlib.h> defines z_streamp (versions before
4263 # about 1.0.4 did not). While we could work around the lack of z_streamp,
4264 # it seems unwise to encourage people to use such old zlib versions...
4265 cat > conftest.$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271 egrep "z_streamp" >/dev/null 2>&1; then
4274 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
4275 echo "configure:4276: checking for inflate in -lz" >&5
4276 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
4277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 ac_save_LIBS="$LIBS"
4282 cat > conftest.$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 /* Override any gcc2 internal prototype to avoid an error. */
4286 /* We use char because int might match the return type of a gcc2
4287 builtin and then its argument prototype would still apply. */
4294 if { (eval echo configure:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4296 eval "ac_cv_lib_$ac_lib_var=yes"
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4301 eval "ac_cv_lib_$ac_lib_var=no"
4304 LIBS="$ac_save_LIBS"
4307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4308 echo "$ac_t""yes" 1>&6
4309 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4311 cat >> confdefs.h <<EOF
4312 #define $ac_tr_lib 1
4318 echo "$ac_t""no" 1>&6
4327 echo $ac_n "checking for library containing fdatasync""... $ac_c" 1>&6
4328 echo "configure:4329: checking for library containing fdatasync" >&5
4329 if eval "test \"`echo '$''{'ac_cv_search_fdatasync'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 ac_func_search_save_LIBS="$LIBS"
4333 ac_cv_search_fdatasync="no"
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 /* Override any gcc2 internal prototype to avoid an error. */
4338 /* We use char because int might match the return type of a gcc2
4339 builtin and then its argument prototype would still apply. */
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4348 ac_cv_search_fdatasync="none required"
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4354 test "$ac_cv_search_fdatasync" = "no" && for i in rt posix4; do
4355 LIBS="-l$i $ac_func_search_save_LIBS"
4356 cat > conftest.$ac_ext <<EOF
4357 #line 4358 "configure"
4358 #include "confdefs.h"
4359 /* Override any gcc2 internal prototype to avoid an error. */
4360 /* We use char because int might match the return type of a gcc2
4361 builtin and then its argument prototype would still apply. */
4368 if { (eval echo configure:4369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4370 ac_cv_search_fdatasync="-l$i"
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4378 LIBS="$ac_func_search_save_LIBS"
4381 echo "$ac_t""$ac_cv_search_fdatasync" 1>&6
4382 if test "$ac_cv_search_fdatasync" != "no"; then
4383 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
4389 if test "$with_krb4" = yes ; then
4390 echo $ac_n "checking for des_encrypt in -ldes""... $ac_c" 1>&6
4391 echo "configure:4392: checking for des_encrypt in -ldes" >&5
4392 ac_lib_var=`echo des'_'des_encrypt | sed 'y%./+-%__p_%'`
4393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4396 ac_save_LIBS="$LIBS"
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 /* Override any gcc2 internal prototype to avoid an error. */
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4410 if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4412 eval "ac_cv_lib_$ac_lib_var=yes"
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 eval "ac_cv_lib_$ac_lib_var=no"
4420 LIBS="$ac_save_LIBS"
4423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4424 echo "$ac_t""yes" 1>&6
4425 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4426 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4427 cat >> confdefs.h <<EOF
4428 #define $ac_tr_lib 1
4434 echo "$ac_t""no" 1>&6
4435 { echo "configure: error: library 'des' is required for Kerberos 4" 1>&2; exit 1; }
4438 echo $ac_n "checking for krb_sendauth in -lkrb""... $ac_c" 1>&6
4439 echo "configure:4440: checking for krb_sendauth in -lkrb" >&5
4440 ac_lib_var=`echo krb'_'krb_sendauth | sed 'y%./+-%__p_%'`
4441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4444 ac_save_LIBS="$LIBS"
4446 cat > conftest.$ac_ext <<EOF
4447 #line 4448 "configure"
4448 #include "confdefs.h"
4449 /* Override any gcc2 internal prototype to avoid an error. */
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char krb_sendauth();
4458 if { (eval echo configure:4459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4460 eval "ac_cv_lib_$ac_lib_var=yes"
4462 echo "configure: failed program was:" >&5
4463 cat conftest.$ac_ext >&5
4465 eval "ac_cv_lib_$ac_lib_var=no"
4468 LIBS="$ac_save_LIBS"
4471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4474 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4475 cat >> confdefs.h <<EOF
4476 #define $ac_tr_lib 1
4482 echo "$ac_t""no" 1>&6
4483 { echo "configure: error: library 'krb' is required for Kerberos 4" 1>&2; exit 1; }
4488 if test "$with_krb5" = yes ; then
4489 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
4490 echo "configure:4491: checking for com_err in -lcom_err" >&5
4491 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
4492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 ac_save_LIBS="$LIBS"
4496 LIBS="-lcom_err $LIBS"
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4500 /* Override any gcc2 internal prototype to avoid an error. */
4501 /* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 eval "ac_cv_lib_$ac_lib_var=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_lib_$ac_lib_var=no"
4519 LIBS="$ac_save_LIBS"
4522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4524 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4525 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4526 cat >> confdefs.h <<EOF
4527 #define $ac_tr_lib 1
4530 LIBS="-lcom_err $LIBS"
4533 echo "$ac_t""no" 1>&6
4534 { echo "configure: error: library 'com_err' is required for Kerberos 5" 1>&2; exit 1; }
4537 echo $ac_n "checking for krb5_encrypt in -lcrypto""... $ac_c" 1>&6
4538 echo "configure:4539: checking for krb5_encrypt in -lcrypto" >&5
4539 ac_lib_var=`echo crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4541 echo $ac_n "(cached) $ac_c" 1>&6
4543 ac_save_LIBS="$LIBS"
4544 LIBS="-lcrypto $LIBS"
4545 cat > conftest.$ac_ext <<EOF
4546 #line 4547 "configure"
4547 #include "confdefs.h"
4548 /* Override any gcc2 internal prototype to avoid an error. */
4549 /* We use char because int might match the return type of a gcc2
4550 builtin and then its argument prototype would still apply. */
4551 char krb5_encrypt();
4557 if { (eval echo configure:4558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4559 eval "ac_cv_lib_$ac_lib_var=yes"
4561 echo "configure: failed program was:" >&5
4562 cat conftest.$ac_ext >&5
4564 eval "ac_cv_lib_$ac_lib_var=no"
4567 LIBS="$ac_save_LIBS"
4570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4571 echo "$ac_t""yes" 1>&6
4572 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4573 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4574 cat >> confdefs.h <<EOF
4575 #define $ac_tr_lib 1
4578 LIBS="-lcrypto $LIBS"
4581 echo "$ac_t""no" 1>&6
4582 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4583 echo "configure:4584: checking for krb5_encrypt in -lk5crypto" >&5
4584 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4588 ac_save_LIBS="$LIBS"
4589 LIBS="-lk5crypto $LIBS"
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 /* Override any gcc2 internal prototype to avoid an error. */
4594 /* We use char because int might match the return type of a gcc2
4595 builtin and then its argument prototype would still apply. */
4596 char krb5_encrypt();
4602 if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4604 eval "ac_cv_lib_$ac_lib_var=yes"
4606 echo "configure: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4609 eval "ac_cv_lib_$ac_lib_var=no"
4612 LIBS="$ac_save_LIBS"
4615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4616 echo "$ac_t""yes" 1>&6
4617 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4618 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4619 cat >> confdefs.h <<EOF
4620 #define $ac_tr_lib 1
4623 LIBS="-lk5crypto $LIBS"
4626 echo "$ac_t""no" 1>&6
4627 { echo "configure: error: library 'crypto' or 'k5crypto' is required for Kerberos 5" 1>&2; exit 1; }
4632 echo $ac_n "checking for krb5_sendauth in -lkrb5""... $ac_c" 1>&6
4633 echo "configure:4634: checking for krb5_sendauth in -lkrb5" >&5
4634 ac_lib_var=`echo krb5'_'krb5_sendauth | sed 'y%./+-%__p_%'`
4635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4636 echo $ac_n "(cached) $ac_c" 1>&6
4638 ac_save_LIBS="$LIBS"
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4643 /* Override any gcc2 internal prototype to avoid an error. */
4644 /* We use char because int might match the return type of a gcc2
4645 builtin and then its argument prototype would still apply. */
4646 char krb5_sendauth();
4652 if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4654 eval "ac_cv_lib_$ac_lib_var=yes"
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4659 eval "ac_cv_lib_$ac_lib_var=no"
4662 LIBS="$ac_save_LIBS"
4665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
4667 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4668 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4669 cat >> confdefs.h <<EOF
4670 #define $ac_tr_lib 1
4676 echo "$ac_t""no" 1>&6
4677 { echo "configure: error: library 'krb5' is required for Kerberos 5" 1>&2; exit 1; }
4682 if test "$with_openssl" = yes ; then
4683 echo $ac_n "checking for CRYPTO_new_ex_data in -lcrypto""... $ac_c" 1>&6
4684 echo "configure:4685: checking for CRYPTO_new_ex_data in -lcrypto" >&5
4685 ac_lib_var=`echo crypto'_'CRYPTO_new_ex_data | sed 'y%./+-%__p_%'`
4686 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4689 ac_save_LIBS="$LIBS"
4690 LIBS="-lcrypto $LIBS"
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4694 /* Override any gcc2 internal prototype to avoid an error. */
4695 /* We use char because int might match the return type of a gcc2
4696 builtin and then its argument prototype would still apply. */
4697 char CRYPTO_new_ex_data();
4700 CRYPTO_new_ex_data()
4703 if { (eval echo configure:4704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4705 eval "ac_cv_lib_$ac_lib_var=yes"
4707 echo "configure: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4710 eval "ac_cv_lib_$ac_lib_var=no"
4713 LIBS="$ac_save_LIBS"
4716 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4717 echo "$ac_t""yes" 1>&6
4718 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4719 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4720 cat >> confdefs.h <<EOF
4721 #define $ac_tr_lib 1
4724 LIBS="-lcrypto $LIBS"
4727 echo "$ac_t""no" 1>&6
4728 { echo "configure: error: library 'crypto' is required for OpenSSL" 1>&2; exit 1; }
4731 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
4732 echo "configure:4733: checking for SSL_library_init in -lssl" >&5
4733 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-%__p_%'`
4734 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 ac_save_LIBS="$LIBS"
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 /* Override any gcc2 internal prototype to avoid an error. */
4743 /* We use char because int might match the return type of a gcc2
4744 builtin and then its argument prototype would still apply. */
4745 char SSL_library_init();
4751 if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4753 eval "ac_cv_lib_$ac_lib_var=yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.$ac_ext >&5
4758 eval "ac_cv_lib_$ac_lib_var=no"
4761 LIBS="$ac_save_LIBS"
4764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4766 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4767 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4768 cat >> confdefs.h <<EOF
4769 #define $ac_tr_lib 1
4775 echo "$ac_t""no" 1>&6
4776 { echo "configure: error: library 'ssl' is required for OpenSSL" 1>&2; exit 1; }
4781 if test "$with_pam" = yes ; then
4782 echo $ac_n "checking for pam_start in -lpam""... $ac_c" 1>&6
4783 echo "configure:4784: checking for pam_start in -lpam" >&5
4784 ac_lib_var=`echo pam'_'pam_start | sed 'y%./+-%__p_%'`
4785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 ac_save_LIBS="$LIBS"
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4793 /* Override any gcc2 internal prototype to avoid an error. */
4794 /* We use char because int might match the return type of a gcc2
4795 builtin and then its argument prototype would still apply. */
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4804 eval "ac_cv_lib_$ac_lib_var=yes"
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4809 eval "ac_cv_lib_$ac_lib_var=no"
4812 LIBS="$ac_save_LIBS"
4815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
4817 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4818 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4819 cat >> confdefs.h <<EOF
4820 #define $ac_tr_lib 1
4826 echo "$ac_t""no" 1>&6
4827 { echo "configure: error: library 'pam' is required for PAM" 1>&2; exit 1; }
4832 if test "$enable_nls" = yes ; then
4835 echo $ac_n "checking for library containing gettext""... $ac_c" 1>&6
4836 echo "configure:4837: checking for library containing gettext" >&5
4837 if eval "test \"`echo '$''{'ac_cv_search_gettext'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 ac_func_search_save_LIBS="$LIBS"
4841 ac_cv_search_gettext="no"
4842 cat > conftest.$ac_ext <<EOF
4843 #line 4844 "configure"
4844 #include "confdefs.h"
4845 /* Override any gcc2 internal prototype to avoid an error. */
4846 /* We use char because int might match the return type of a gcc2
4847 builtin and then its argument prototype would still apply. */
4854 if { (eval echo configure:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4856 ac_cv_search_gettext="none required"
4858 echo "configure: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4862 test "$ac_cv_search_gettext" = "no" && for i in intl; do
4863 LIBS="-l$i $ac_func_search_save_LIBS"
4864 cat > conftest.$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4867 /* Override any gcc2 internal prototype to avoid an error. */
4868 /* We use char because int might match the return type of a gcc2
4869 builtin and then its argument prototype would still apply. */
4876 if { (eval echo configure:4877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4878 ac_cv_search_gettext="-l$i"
4881 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5
4886 LIBS="$ac_func_search_save_LIBS"
4889 echo "$ac_t""$ac_cv_search_gettext" 1>&6
4890 if test "$ac_cv_search_gettext" != "no"; then
4891 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
4894 { echo "configure: error: a gettext implementation is required for NLS" 1>&2; exit 1; }
4896 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4897 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4898 echo "configure:4899: checking for libintl.h" >&5
4899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4902 cat > conftest.$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4905 #include <libintl.h>
4907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4908 { (eval echo configure:4909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4910 if test -z "$ac_err"; then
4912 eval "ac_cv_header_$ac_safe=yes"
4915 echo "configure: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4918 eval "ac_cv_header_$ac_safe=no"
4922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4923 echo "$ac_t""yes" 1>&6
4926 echo "$ac_t""no" 1>&6
4927 { echo "configure: error: header file <libintl.h> is required for NLS" 1>&2; exit 1; }
4930 for ac_prog in msgfmt
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4935 echo "configure:4936: checking for $ac_word" >&5
4936 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4939 if test -n "$MSGFMT"; then
4940 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4944 for ac_dir in $ac_dummy; do
4945 test -z "$ac_dir" && ac_dir=.
4946 if test -f $ac_dir/$ac_word; then
4947 ac_cv_prog_MSGFMT="$ac_prog"
4954 MSGFMT="$ac_cv_prog_MSGFMT"
4955 if test -n "$MSGFMT"; then
4956 echo "$ac_t""$MSGFMT" 1>&6
4958 echo "$ac_t""no" 1>&6
4961 test -n "$MSGFMT" && break
4964 if test -z "$MSGFMT"; then
4965 { echo "configure: error: msgfmt is required for NLS" 1>&2; exit 1; }
4967 for ac_prog in msgmerge
4969 # Extract the first word of "$ac_prog", so it can be a program name with args.
4970 set dummy $ac_prog; ac_word=$2
4971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4972 echo "configure:4973: checking for $ac_word" >&5
4973 if eval "test \"`echo '$''{'ac_cv_prog_MSGMERGE'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 if test -n "$MSGMERGE"; then
4977 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
4979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4981 for ac_dir in $ac_dummy; do
4982 test -z "$ac_dir" && ac_dir=.
4983 if test -f $ac_dir/$ac_word; then
4984 ac_cv_prog_MSGMERGE="$ac_prog"
4991 MSGMERGE="$ac_cv_prog_MSGMERGE"
4992 if test -n "$MSGMERGE"; then
4993 echo "$ac_t""$MSGMERGE" 1>&6
4995 echo "$ac_t""no" 1>&6
4998 test -n "$MSGMERGE" && break
5001 for ac_prog in xgettext
5003 # Extract the first word of "$ac_prog", so it can be a program name with args.
5004 set dummy $ac_prog; ac_word=$2
5005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5006 echo "configure:5007: checking for $ac_word" >&5
5007 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 if test -n "$XGETTEXT"; then
5011 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
5013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5015 for ac_dir in $ac_dummy; do
5016 test -z "$ac_dir" && ac_dir=.
5017 if test -f $ac_dir/$ac_word; then
5018 ac_cv_prog_XGETTEXT="$ac_prog"
5025 XGETTEXT="$ac_cv_prog_XGETTEXT"
5026 if test -n "$XGETTEXT"; then
5027 echo "$ac_t""$XGETTEXT" 1>&6
5029 echo "$ac_t""no" 1>&6
5032 test -n "$XGETTEXT" && break
5036 # Note: share/locale is always the default, independent of $datadir
5037 localedir='${prefix}/share/locale'
5038 if test x"$prefix" = x"NONE"; then
5039 exp_localedir="$ac_default_prefix/share/locale"
5041 exp_localedir="$prefix/share/locale"
5045 cat >> confdefs.h <<EOF
5046 #define LOCALEDIR "$exp_localedir"
5055 for ac_hdr in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/types.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
5057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5059 echo "configure:5060: checking for $ac_hdr" >&5
5060 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5061 echo $ac_n "(cached) $ac_c" 1>&6
5063 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5069 { (eval echo configure:5070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5071 if test -z "$ac_err"; then
5073 eval "ac_cv_header_$ac_safe=yes"
5076 echo "configure: failed program was:" >&5
5077 cat conftest.$ac_ext >&5
5079 eval "ac_cv_header_$ac_safe=no"
5083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5084 echo "$ac_t""yes" 1>&6
5085 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5086 cat >> confdefs.h <<EOF
5087 #define $ac_tr_hdr 1
5091 echo "$ac_t""no" 1>&6
5096 for ac_hdr in netinet/in.h
5098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5100 echo "configure:5101: checking for $ac_hdr" >&5
5101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5102 echo $ac_n "(cached) $ac_c" 1>&6
5104 cat > conftest.$ac_ext <<EOF
5105 #line 5106 "configure"
5106 #include "confdefs.h"
5109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5110 { (eval echo configure:5111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5112 if test -z "$ac_err"; then
5114 eval "ac_cv_header_$ac_safe=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.$ac_ext >&5
5120 eval "ac_cv_header_$ac_safe=no"
5124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5127 cat >> confdefs.h <<EOF
5128 #define $ac_tr_hdr 1
5132 echo "$ac_t""no" 1>&6
5136 echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6
5137 echo "configure:5138: checking for netinet/tcp.h" >&5
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5142 #ifdef HAVE_NETINET_IN_H
5143 #include <netinet/in.h>
5145 #include <netinet/tcp.h>
5148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5149 { (eval echo configure:5150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5151 if test -z "$ac_err"; then
5153 cat >> confdefs.h <<\EOF
5154 #define HAVE_NETINET_TCP_H 1
5156 echo "$ac_t""yes" 1>&6
5159 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5162 echo "$ac_t""no" 1>&6
5166 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6
5167 echo "configure:5168: checking whether string.h and strings.h may both be included" >&5
5168 if eval "test \"`echo '$''{'pgac_cv_header_strings_both'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5171 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5175 #include <strings.h>
5178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5179 { (eval echo configure:5180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5181 if test -z "$ac_err"; then
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5187 #include <strings.h>
5190 int n = strcasecmp("a", "b");
5193 if { (eval echo configure:5194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5195 pgac_cv_header_strings_both=yes
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5200 pgac_cv_header_strings_both=no
5205 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5208 pgac_cv_header_strings_both=no
5213 echo "$ac_t""$pgac_cv_header_strings_both" 1>&6
5214 if test x"$pgac_cv_header_strings_both" = x"yes"; then
5215 cat >> confdefs.h <<\EOF
5216 #define STRING_H_WITH_STRINGS_H 1
5221 for ac_hdr in readline/readline.h readline.h
5223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5225 echo "configure:5226: checking for $ac_hdr" >&5
5226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5235 { (eval echo configure:5236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5237 if test -z "$ac_err"; then
5239 eval "ac_cv_header_$ac_safe=yes"
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5245 eval "ac_cv_header_$ac_safe=no"
5249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5250 echo "$ac_t""yes" 1>&6
5251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5252 cat >> confdefs.h <<EOF
5253 #define $ac_tr_hdr 1
5257 echo "$ac_t""no" 1>&6
5261 for ac_hdr in readline/history.h history.h
5263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5265 echo "configure:5266: checking for $ac_hdr" >&5
5266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5267 echo $ac_n "(cached) $ac_c" 1>&6
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure"
5271 #include "confdefs.h"
5274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5275 { (eval echo configure:5276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5277 if test -z "$ac_err"; then
5279 eval "ac_cv_header_$ac_safe=yes"
5282 echo "configure: failed program was:" >&5
5283 cat conftest.$ac_ext >&5
5285 eval "ac_cv_header_$ac_safe=no"
5289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5290 echo "$ac_t""yes" 1>&6
5291 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5292 cat >> confdefs.h <<EOF
5293 #define $ac_tr_hdr 1
5297 echo "$ac_t""no" 1>&6
5302 if test "$with_krb4" = yes ; then
5303 ac_safe=`echo "krb.h" | sed 'y%./+-%__p_%'`
5304 echo $ac_n "checking for krb.h""... $ac_c" 1>&6
5305 echo "configure:5306: checking for krb.h" >&5
5306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5315 { (eval echo configure:5316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5317 if test -z "$ac_err"; then
5319 eval "ac_cv_header_$ac_safe=yes"
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5325 eval "ac_cv_header_$ac_safe=no"
5329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5330 echo "$ac_t""yes" 1>&6
5333 echo "$ac_t""no" 1>&6
5334 { echo "configure: error: header file <krb.h> is required for Kerberos 4" 1>&2; exit 1; }
5339 if test "$with_krb5" = yes ; then
5340 ac_safe=`echo "krb5.h" | sed 'y%./+-%__p_%'`
5341 echo $ac_n "checking for krb5.h""... $ac_c" 1>&6
5342 echo "configure:5343: checking for krb5.h" >&5
5343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5346 cat > conftest.$ac_ext <<EOF
5347 #line 5348 "configure"
5348 #include "confdefs.h"
5351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5352 { (eval echo configure:5353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5354 if test -z "$ac_err"; then
5356 eval "ac_cv_header_$ac_safe=yes"
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5362 eval "ac_cv_header_$ac_safe=no"
5366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5367 echo "$ac_t""yes" 1>&6
5370 echo "$ac_t""no" 1>&6
5371 { echo "configure: error: header file <krb5.h> is required for Kerberos 5" 1>&2; exit 1; }
5374 ac_safe=`echo "com_err.h" | sed 'y%./+-%__p_%'`
5375 echo $ac_n "checking for com_err.h""... $ac_c" 1>&6
5376 echo "configure:5377: checking for com_err.h" >&5
5377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5380 cat > conftest.$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5383 #include <com_err.h>
5385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5386 { (eval echo configure:5387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5388 if test -z "$ac_err"; then
5390 eval "ac_cv_header_$ac_safe=yes"
5393 echo "configure: failed program was:" >&5
5394 cat conftest.$ac_ext >&5
5396 eval "ac_cv_header_$ac_safe=no"
5400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5401 echo "$ac_t""yes" 1>&6
5404 echo "$ac_t""no" 1>&6
5405 { echo "configure: error: header file <com_err.h> is required for Kerberos 5" 1>&2; exit 1; }
5410 if test "$with_openssl" = yes ; then
5411 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__p_%'`
5412 echo $ac_n "checking for openssl/ssl.h""... $ac_c" 1>&6
5413 echo "configure:5414: checking for openssl/ssl.h" >&5
5414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5420 #include <openssl/ssl.h>
5422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5423 { (eval echo configure:5424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5425 if test -z "$ac_err"; then
5427 eval "ac_cv_header_$ac_safe=yes"
5430 echo "configure: failed program was:" >&5
5431 cat conftest.$ac_ext >&5
5433 eval "ac_cv_header_$ac_safe=no"
5437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5438 echo "$ac_t""yes" 1>&6
5441 echo "$ac_t""no" 1>&6
5442 { echo "configure: error: header file <openssl/ssl.h> is required for OpenSSL" 1>&2; exit 1; }
5445 ac_safe=`echo "openssl/err.h" | sed 'y%./+-%__p_%'`
5446 echo $ac_n "checking for openssl/err.h""... $ac_c" 1>&6
5447 echo "configure:5448: checking for openssl/err.h" >&5
5448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5449 echo $ac_n "(cached) $ac_c" 1>&6
5451 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5454 #include <openssl/err.h>
5456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5457 { (eval echo configure:5458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5459 if test -z "$ac_err"; then
5461 eval "ac_cv_header_$ac_safe=yes"
5464 echo "configure: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5467 eval "ac_cv_header_$ac_safe=no"
5471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5472 echo "$ac_t""yes" 1>&6
5475 echo "$ac_t""no" 1>&6
5476 { echo "configure: error: header file <openssl/err.h> is required for OpenSSL" 1>&2; exit 1; }
5481 if test "$with_pam" = yes ; then
5482 ac_safe=`echo "security/pam_appl.h" | sed 'y%./+-%__p_%'`
5483 echo $ac_n "checking for security/pam_appl.h""... $ac_c" 1>&6
5484 echo "configure:5485: checking for security/pam_appl.h" >&5
5485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5486 echo $ac_n "(cached) $ac_c" 1>&6
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 #include <security/pam_appl.h>
5493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5494 { (eval echo configure:5495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5496 if test -z "$ac_err"; then
5498 eval "ac_cv_header_$ac_safe=yes"
5501 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5504 eval "ac_cv_header_$ac_safe=no"
5508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5509 echo "$ac_t""yes" 1>&6
5512 echo "$ac_t""no" 1>&6
5513 { echo "configure: error: header file <security/pam_appl.h> is required for PAM" 1>&2; exit 1; }
5520 ## Types, structures, compiler characteristics
5522 echo $ac_n "checking for working const""... $ac_c" 1>&6
5523 echo "configure:5524: checking for working const" >&5
5524 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5533 /* Ultrix mips cc rejects this. */
5534 typedef int charset[2]; const charset x;
5535 /* SunOS 4.1.1 cc rejects this. */
5536 char const *const *ccp;
5538 /* NEC SVR4.0.2 mips cc rejects this. */
5539 struct point {int x, y;};
5540 static struct point const zero = {0,0};
5541 /* AIX XL C 1.02.0.0 rejects this.
5542 It does not let you subtract one const X* pointer from another in an arm
5543 of an if-expression whose if-part is not a constant expression */
5544 const char *g = "string";
5545 ccp = &g + (g ? g-g : 0);
5546 /* HPUX 7.0 cc rejects these. */
5549 ccp = (char const *const *) p;
5550 { /* SCO 3.2v4 cc rejects this. */
5552 char const *s = 0 ? (char *) 0 : (char const *) 0;
5556 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5558 const int *foo = &x[0];
5561 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5562 typedef const int *iptr;
5566 { /* AIX XL C 1.02.0.0 rejects this saying
5567 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5568 struct s { int j; const int *ap[3]; };
5569 struct s *b; b->j = 5;
5571 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5577 if { (eval echo configure:5578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5589 echo "$ac_t""$ac_cv_c_const" 1>&6
5590 if test $ac_cv_c_const = no; then
5591 cat >> confdefs.h <<\EOF
5597 echo $ac_n "checking for inline""... $ac_c" 1>&6
5598 echo "configure:5599: checking for inline" >&5
5599 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5600 echo $ac_n "(cached) $ac_c" 1>&6
5603 for ac_kw in inline __inline__ __inline; do
5604 cat > conftest.$ac_ext <<EOF
5605 #line 5606 "configure"
5606 #include "confdefs.h"
5612 if { (eval echo configure:5613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5614 ac_cv_c_inline=$ac_kw; break
5616 echo "configure: failed program was:" >&5
5617 cat conftest.$ac_ext >&5
5624 echo "$ac_t""$ac_cv_c_inline" 1>&6
5625 case "$ac_cv_c_inline" in
5627 no) cat >> confdefs.h <<\EOF
5631 *) cat >> confdefs.h <<EOF
5632 #define inline $ac_cv_c_inline
5639 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
5640 echo "configure:5641: checking for preprocessor stringizing operator" >&5
5641 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5650 char *s = x(teststring);
5653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5654 egrep "#teststring" >/dev/null 2>&1; then
5656 ac_cv_c_stringize=no
5659 ac_cv_c_stringize=yes
5665 if test "${ac_cv_c_stringize}" = yes
5667 cat >> confdefs.h <<\EOF
5668 #define HAVE_STRINGIZE 1
5672 echo "$ac_t""${ac_cv_c_stringize}" 1>&6
5674 echo $ac_n "checking for signed types""... $ac_c" 1>&6
5675 echo "configure:5676: checking for signed types" >&5
5676 if eval "test \"`echo '$''{'pgac_cv_c_signed'+set}'`\" = set"; then
5677 echo $ac_n "(cached) $ac_c" 1>&6
5679 cat > conftest.$ac_ext <<EOF
5680 #line 5681 "configure"
5681 #include "confdefs.h"
5684 signed char c; signed short s; signed int i;
5687 if { (eval echo configure:5688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5689 pgac_cv_c_signed=yes
5691 echo "configure: failed program was:" >&5
5692 cat conftest.$ac_ext >&5
5699 echo "$ac_t""$pgac_cv_c_signed" 1>&6
5700 if test x"$pgac_cv_c_signed" = xno ; then
5701 cat >> confdefs.h <<\EOF
5706 echo $ac_n "checking for volatile""... $ac_c" 1>&6
5707 echo "configure:5708: checking for volatile" >&5
5708 if eval "test \"`echo '$''{'pgac_cv_c_volatile'+set}'`\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5711 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure"
5713 #include "confdefs.h"
5716 extern volatile int i;
5719 if { (eval echo configure:5720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5721 pgac_cv_c_volatile=yes
5723 echo "configure: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5726 pgac_cv_c_volatile=no
5731 echo "$ac_t""$pgac_cv_c_volatile" 1>&6
5732 if test x"$pgac_cv_c_volatile" = xno ; then
5733 cat >> confdefs.h <<\EOF
5738 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5739 echo "configure:5740: checking whether struct tm is in sys/time.h or time.h" >&5
5740 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5746 #include <sys/types.h>
5749 struct tm *tp; tp->tm_sec;
5752 if { (eval echo configure:5753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5754 ac_cv_struct_tm=time.h
5756 echo "configure: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 ac_cv_struct_tm=sys/time.h
5764 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5765 if test $ac_cv_struct_tm = sys/time.h; then
5766 cat >> confdefs.h <<\EOF
5767 #define TM_IN_SYS_TIME 1
5772 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5773 echo "configure:5774: checking for tm_zone in struct tm" >&5
5774 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 cat > conftest.$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5780 #include <sys/types.h>
5781 #include <$ac_cv_struct_tm>
5783 struct tm tm; tm.tm_zone;
5786 if { (eval echo configure:5787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5788 ac_cv_struct_tm_zone=yes
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 ac_cv_struct_tm_zone=no
5798 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5799 if test "$ac_cv_struct_tm_zone" = yes; then
5800 cat >> confdefs.h <<\EOF
5801 #define HAVE_TM_ZONE 1
5805 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5806 echo "configure:5807: checking for tzname" >&5
5807 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5814 #ifndef tzname /* For SGI. */
5815 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5821 if { (eval echo configure:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5823 ac_cv_var_tzname=yes
5825 echo "configure: failed program was:" >&5
5826 cat conftest.$ac_ext >&5
5833 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5834 if test $ac_cv_var_tzname = yes; then
5835 cat >> confdefs.h <<\EOF
5836 #define HAVE_TZNAME 1
5842 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5843 echo "configure:5844: checking for union semun" >&5
5844 if eval "test \"`echo '$''{'pgac_cv_union_semun'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5847 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 #include <sys/types.h>
5851 #include <sys/ipc.h>
5852 #include <sys/sem.h>
5857 if { (eval echo configure:5858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5859 pgac_cv_union_semun=yes
5861 echo "configure: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5864 pgac_cv_union_semun=no
5869 echo "$ac_t""$pgac_cv_union_semun" 1>&6
5870 if test x"$pgac_cv_union_semun" = xyes ; then
5871 cat >> confdefs.h <<\EOF
5872 #define HAVE_UNION_SEMUN 1
5876 echo $ac_n "checking for struct cmsgcred""... $ac_c" 1>&6
5877 echo "configure:5878: checking for struct cmsgcred" >&5
5878 if eval "test \"`echo '$''{'pgac_cv_struct_cmsgcred'+set}'`\" = set"; then
5879 echo $ac_n "(cached) $ac_c" 1>&6
5881 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure"
5883 #include "confdefs.h"
5884 #include <sys/param.h>
5885 #include <sys/socket.h>
5886 #include <sys/ucred.h>
5888 struct cmsgcred sockcred;
5891 if { (eval echo configure:5892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5893 pgac_cv_struct_cmsgcred=yes
5895 echo "configure: failed program was:" >&5
5896 cat conftest.$ac_ext >&5
5898 pgac_cv_struct_cmsgcred=no
5903 echo "$ac_t""$pgac_cv_struct_cmsgcred" 1>&6
5904 if test x"$pgac_cv_struct_cmsgcred" = xyes ; then
5905 cat >> confdefs.h <<\EOF
5906 #define HAVE_STRUCT_CMSGCRED 1
5910 echo $ac_n "checking for struct fcred""... $ac_c" 1>&6
5911 echo "configure:5912: checking for struct fcred" >&5
5912 if eval "test \"`echo '$''{'pgac_cv_struct_fcred'+set}'`\" = set"; then
5913 echo $ac_n "(cached) $ac_c" 1>&6
5915 cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 #include <sys/param.h>
5919 #include <sys/socket.h>
5920 #include <sys/ucred.h>
5922 struct fcred sockcred;
5925 if { (eval echo configure:5926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5927 pgac_cv_struct_fcred=yes
5929 echo "configure: failed program was:" >&5
5930 cat conftest.$ac_ext >&5
5932 pgac_cv_struct_fcred=no
5937 echo "$ac_t""$pgac_cv_struct_fcred" 1>&6
5938 if test x"$pgac_cv_struct_fcred" = xyes ; then
5939 cat >> confdefs.h <<\EOF
5940 #define HAVE_STRUCT_FCRED 1
5944 echo $ac_n "checking for struct sockcred""... $ac_c" 1>&6
5945 echo "configure:5946: checking for struct sockcred" >&5
5946 if eval "test \"`echo '$''{'pgac_cv_struct_sockcred'+set}'`\" = set"; then
5947 echo $ac_n "(cached) $ac_c" 1>&6
5949 cat > conftest.$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 #include <sys/param.h>
5953 #include <sys/socket.h>
5954 #include <sys/ucred.h>
5956 struct sockcred sockcred;
5959 if { (eval echo configure:5960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5961 pgac_cv_struct_sockcred=yes
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5966 pgac_cv_struct_sockcred=no
5971 echo "$ac_t""$pgac_cv_struct_sockcred" 1>&6
5972 if test x"$pgac_cv_struct_sockcred" = xyes ; then
5973 cat >> confdefs.h <<\EOF
5974 #define HAVE_STRUCT_SOCKCRED 1
5978 echo $ac_n "checking for struct sockaddr_un""... $ac_c" 1>&6
5979 echo "configure:5980: checking for struct sockaddr_un" >&5
5980 if eval "test \"`echo '$''{'pgac_cv_struct_sockaddr_un'+set}'`\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5986 #include <sys/types.h>
5987 #ifdef HAVE_SYS_UN_H
5991 struct sockaddr_un un;
5994 if { (eval echo configure:5995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5996 pgac_cv_struct_sockaddr_un=yes
5998 echo "configure: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6001 pgac_cv_struct_sockaddr_un=no
6006 echo "$ac_t""$pgac_cv_struct_sockaddr_un" 1>&6
6007 if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
6008 cat >> confdefs.h <<\EOF
6009 #define HAVE_STRUCT_SOCKADDR_UN 1
6015 ## Functions, global variables
6017 echo $ac_n "checking for int timezone""... $ac_c" 1>&6
6018 echo "configure:6019: checking for int timezone" >&5
6019 if eval "test \"`echo '$''{'pgac_cv_var_int_timezone'+set}'`\" = set"; then
6020 echo $ac_n "(cached) $ac_c" 1>&6
6022 cat > conftest.$ac_ext <<EOF
6023 #line 6024 "configure"
6024 #include "confdefs.h"
6028 res = timezone / 60;
6031 if { (eval echo configure:6032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6033 pgac_cv_var_int_timezone=yes
6035 echo "configure: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6038 pgac_cv_var_int_timezone=no
6043 echo "$ac_t""$pgac_cv_var_int_timezone" 1>&6
6044 if test x"$pgac_cv_var_int_timezone" = xyes ; then
6045 cat >> confdefs.h <<\EOF
6046 #define HAVE_INT_TIMEZONE
6050 echo $ac_n "checking types of arguments for accept()""... $ac_c" 1>&6
6051 echo "configure:6052: checking types of arguments for accept()" >&5
6052 if eval "test \"`echo '$''{'ac_cv_func_accept_arg1'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6055 if eval "test \"`echo '$''{'ac_cv_func_accept_arg2'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6058 if eval "test \"`echo '$''{'ac_cv_func_accept_arg3'+set}'`\" = set"; then
6059 echo $ac_n "(cached) $ac_c" 1>&6
6061 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
6062 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
6063 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
6064 cat > conftest.$ac_ext <<EOF
6065 #line 6066 "configure"
6066 #include "confdefs.h"
6067 #ifdef HAVE_SYS_TYPES_H
6068 #include <sys/types.h>
6070 #ifdef HAVE_SYS_SOCKET_H
6071 #include <sys/socket.h>
6073 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
6078 if { (eval echo configure:6079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6080 ac_not_found=no; break 3
6082 echo "configure: failed program was:" >&5
6083 cat conftest.$ac_ext >&5
6091 if test "$ac_not_found" = yes; then
6092 { echo "configure: error: could not determine argument types" 1>&2; exit 1; }
6094 if test "$ac_cv_func_accept_arg3" = "void"; then
6095 ac_cv_func_accept_arg3=int
6103 echo "$ac_t""$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" 1>&6
6104 cat >> confdefs.h <<EOF
6105 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
6108 cat >> confdefs.h <<EOF
6109 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
6112 cat >> confdefs.h <<EOF
6113 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
6117 echo $ac_n "checking whether gettimeofday takes only one argument""... $ac_c" 1>&6
6118 echo "configure:6119: checking whether gettimeofday takes only one argument" >&5
6119 if eval "test \"`echo '$''{'pgac_cv_func_gettimeofday_1arg'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6125 #include <sys/time.h>
6128 struct timezone *tzp;
6129 gettimeofday(tp,tzp);
6132 if { (eval echo configure:6133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6134 pgac_cv_func_gettimeofday_1arg=no
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6139 pgac_cv_func_gettimeofday_1arg=yes
6144 echo "$ac_t""$pgac_cv_func_gettimeofday_1arg" 1>&6
6145 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
6146 cat >> confdefs.h <<\EOF
6147 #define GETTIMEOFDAY_1ARG
6152 for ac_func in fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
6154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6155 echo "configure:6156: checking for $ac_func" >&5
6156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6157 echo $ac_n "(cached) $ac_c" 1>&6
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6162 /* System header to define __stub macros and hopefully few prototypes,
6163 which can conflict with char $ac_func(); below. */
6165 /* Override any gcc2 internal prototype to avoid an error. */
6166 /* We use char because int might match the return type of a gcc2
6167 builtin and then its argument prototype would still apply. */
6172 /* The GNU C library defines this for functions which it implements
6173 to always fail with ENOSYS. Some functions are actually named
6174 something starting with __ and the normal name is an alias. */
6175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6183 if { (eval echo configure:6184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6185 eval "ac_cv_func_$ac_func=yes"
6187 echo "configure: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6190 eval "ac_cv_func_$ac_func=no"
6195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6196 echo "$ac_t""yes" 1>&6
6197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6198 cat >> confdefs.h <<EOF
6199 #define $ac_tr_func 1
6203 echo "$ac_t""no" 1>&6
6208 cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6214 egrep "fdatasync" >/dev/null 2>&1; then
6216 cat >> confdefs.h <<\EOF
6217 #define HAVE_FDATASYNC_DECL 1
6224 echo $ac_n "checking for PS_STRINGS""... $ac_c" 1>&6
6225 echo "configure:6226: checking for PS_STRINGS" >&5
6226 if eval "test \"`echo '$''{'pgac_cv_var_PS_STRINGS'+set}'`\" = set"; then
6227 echo $ac_n "(cached) $ac_c" 1>&6
6229 cat > conftest.$ac_ext <<EOF
6230 #line 6231 "configure"
6231 #include "confdefs.h"
6232 #include <machine/vmparam.h>
6233 #include <sys/exec.h>
6236 PS_STRINGS->ps_nargvstr = 1;
6237 PS_STRINGS->ps_argvstr = "foo";
6240 if { (eval echo configure:6241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6242 pgac_cv_var_PS_STRINGS=yes
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6247 pgac_cv_var_PS_STRINGS=no
6252 echo "$ac_t""$pgac_cv_var_PS_STRINGS" 1>&6
6253 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
6254 cat >> confdefs.h <<\EOF
6255 #define HAVE_PS_STRINGS
6261 echo $ac_n "checking for snprintf""... $ac_c" 1>&6
6262 echo "configure:6263: checking for snprintf" >&5
6263 if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
6264 echo $ac_n "(cached) $ac_c" 1>&6
6266 cat > conftest.$ac_ext <<EOF
6267 #line 6268 "configure"
6268 #include "confdefs.h"
6269 /* System header to define __stub macros and hopefully few prototypes,
6270 which can conflict with char snprintf(); below. */
6272 /* Override any gcc2 internal prototype to avoid an error. */
6273 /* We use char because int might match the return type of a gcc2
6274 builtin and then its argument prototype would still apply. */
6279 /* The GNU C library defines this for functions which it implements
6280 to always fail with ENOSYS. Some functions are actually named
6281 something starting with __ and the normal name is an alias. */
6282 #if defined (__stub_snprintf) || defined (__stub___snprintf)
6290 if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6292 eval "ac_cv_func_snprintf=yes"
6294 echo "configure: failed program was:" >&5
6295 cat conftest.$ac_ext >&5
6297 eval "ac_cv_func_snprintf=no"
6302 if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
6303 echo "$ac_t""yes" 1>&6
6304 cat >> confdefs.h <<\EOF
6305 #define HAVE_SNPRINTF 1
6309 echo "$ac_t""no" 1>&6
6310 SNPRINTF='snprintf.o'
6313 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
6314 echo "configure:6315: checking for vsnprintf" >&5
6315 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
6316 echo $ac_n "(cached) $ac_c" 1>&6
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6321 /* System header to define __stub macros and hopefully few prototypes,
6322 which can conflict with char vsnprintf(); below. */
6324 /* Override any gcc2 internal prototype to avoid an error. */
6325 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6331 /* The GNU C library defines this for functions which it implements
6332 to always fail with ENOSYS. Some functions are actually named
6333 something starting with __ and the normal name is an alias. */
6334 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
6342 if { (eval echo configure:6343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6344 eval "ac_cv_func_vsnprintf=yes"
6346 echo "configure: failed program was:" >&5
6347 cat conftest.$ac_ext >&5
6349 eval "ac_cv_func_vsnprintf=no"
6354 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
6355 echo "$ac_t""yes" 1>&6
6356 cat >> confdefs.h <<\EOF
6357 #define HAVE_VSNPRINTF 1
6361 echo "$ac_t""no" 1>&6
6362 SNPRINTF='snprintf.o'
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6368 "configure"
6368 #include "confdefs.h"
6371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6372 egrep "snprintf" >/dev/null 2>&1; then
6374 cat >> confdefs.h <<\EOF
6375 #define HAVE_SNPRINTF_DECL 1
6381 cat > conftest.$ac_ext <<EOF
6382 #line 6383 "configure"
6383 #include "confdefs.h"
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 egrep "vsnprintf" >/dev/null 2>&1; then
6389 cat >> confdefs.h <<\EOF
6390 #define HAVE_VSNPRINTF_DECL 1
6397 # do this one the hard way in case isinf() is a macro
6398 echo $ac_n "checking for isinf""... $ac_c" 1>&6
6399 echo "configure:6400: checking for isinf" >&5
6400 if eval "test \"`echo '$''{'ac_cv_func_isinf'+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"
6409 double x = 0.0; int res = isinf(x);
6412 if { (eval echo configure:6413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414 ac_cv_func_isinf=yes
6416 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6424 echo "$ac_t""$ac_cv_func_isinf" 1>&6
6426 if test $ac_cv_func_isinf = yes ; then
6427 cat >> confdefs.h <<\EOF
6428 #define HAVE_ISINF 1
6434 # Look for a way to implement a substitute for isinf()
6435 for ac_func in fpclass fp_class fp_class_d class
6437 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6438 echo "configure:6439: checking for $ac_func" >&5
6439 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6440 echo $ac_n "(cached) $ac_c" 1>&6
6442 cat > conftest.$ac_ext <<EOF
6443 #line 6444 "configure"
6444 #include "confdefs.h"
6445 /* System header to define __stub macros and hopefully few prototypes,
6446 which can conflict with char $ac_func(); below. */
6448 /* Override any gcc2 internal prototype to avoid an error. */
6449 /* We use char because int might match the return type of a gcc2
6450 builtin and then its argument prototype would still apply. */
6455 /* The GNU C library defines this for functions which it implements
6456 to always fail with ENOSYS. Some functions are actually named
6457 something starting with __ and the normal name is an alias. */
6458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6466 if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6468 eval "ac_cv_func_$ac_func=yes"
6470 echo "configure: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 eval "ac_cv_func_$ac_func=no"
6478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6479 echo "$ac_t""yes" 1>&6
6480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6481 cat >> confdefs.h <<EOF
6482 #define $ac_tr_func 1
6486 echo "$ac_t""no" 1>&6
6493 echo $ac_n "checking for getrusage""... $ac_c" 1>&6
6494 echo "configure:6495: checking for getrusage" >&5
6495 if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6498 cat > conftest.$ac_ext <<EOF
6499 #line 6500 "configure"
6500 #include "confdefs.h"
6501 /* System header to define __stub macros and hopefully few prototypes,
6502 which can conflict with char getrusage(); below. */
6504 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6511 /* The GNU C library defines this for functions which it implements
6512 to always fail with ENOSYS. Some functions are actually named
6513 something starting with __ and the normal name is an alias. */
6514 #if defined (__stub_getrusage) || defined (__stub___getrusage)
6522 if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6524 eval "ac_cv_func_getrusage=yes"
6526 echo "configure: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6529 eval "ac_cv_func_getrusage=no"
6534 if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
6535 echo "$ac_t""yes" 1>&6
6536 cat >> confdefs.h <<\EOF
6537 #define HAVE_GETRUSAGE 1
6541 echo "$ac_t""no" 1>&6
6542 GETRUSAGE='getrusage.o'
6546 echo $ac_n "checking for srandom""... $ac_c" 1>&6
6547 echo "configure:6548: checking for srandom" >&5
6548 if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 /* System header to define __stub macros and hopefully few prototypes,
6555 which can conflict with char srandom(); below. */
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 /* We use char because int might match the return type of a gcc2
6559 builtin and then its argument prototype would still apply. */
6564 /* The GNU C library defines this for functions which it implements
6565 to always fail with ENOSYS. Some functions are actually named
6566 something starting with __ and the normal name is an alias. */
6567 #if defined (__stub_srandom) || defined (__stub___srandom)
6575 if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6577 eval "ac_cv_func_srandom=yes"
6579 echo "configure: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6582 eval "ac_cv_func_srandom=no"
6587 if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
6588 echo "$ac_t""yes" 1>&6
6589 cat >> confdefs.h <<\EOF
6590 #define HAVE_SRANDOM 1
6594 echo "$ac_t""no" 1>&6
6599 echo $ac_n "checking for gethostname""... $ac_c" 1>&6
6600 echo "configure:6601: checking for gethostname" >&5
6601 if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
6602 echo $ac_n "(cached) $ac_c" 1>&6
6604 cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure"
6606 #include "confdefs.h"
6607 /* System header to define __stub macros and hopefully few prototypes,
6608 which can conflict with char gethostname(); below. */
6610 /* Override any gcc2 internal prototype to avoid an error. */
6611 /* We use char because int might match the return type of a gcc2
6612 builtin and then its argument prototype would still apply. */
6617 /* The GNU C library defines this for functions which it implements
6618 to always fail with ENOSYS. Some functions are actually named
6619 something starting with __ and the normal name is an alias. */
6620 #if defined (__stub_gethostname) || defined (__stub___gethostname)
6628 if { (eval echo configure:6629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6630 eval "ac_cv_func_gethostname=yes"
6632 echo "configure: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6635 eval "ac_cv_func_gethostname=no"
6640 if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
6641 echo "$ac_t""yes" 1>&6
6642 cat >> confdefs.h <<\EOF
6643 #define HAVE_GETHOSTNAME 1
6647 echo "$ac_t""no" 1>&6
6648 GETHOSTNAME='gethostname.o'
6652 echo $ac_n "checking for random""... $ac_c" 1>&6
6653 echo "configure:6654: checking for random" >&5
6654 if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
6655 echo $ac_n "(cached) $ac_c" 1>&6
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6660 /* System header to define __stub macros and hopefully few prototypes,
6661 which can conflict with char random(); below. */
6663 /* Override any gcc2 internal prototype to avoid an error. */
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6670 /* The GNU C library defines this for functions which it implements
6671 to always fail with ENOSYS. Some functions are actually named
6672 something starting with __ and the normal name is an alias. */
6673 #if defined (__stub_random) || defined (__stub___random)
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 eval "ac_cv_func_random=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_func_random=no"
6693 if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
6694 echo "$ac_t""yes" 1>&6
6695 cat >> confdefs.h <<\EOF
6696 #define HAVE_RANDOM 1
6700 echo "$ac_t""no" 1>&6
6701 MISSING_RANDOM='random.o'
6705 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
6706 echo "configure:6707: checking for inet_aton" >&5
6707 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
6708 echo $ac_n "(cached) $ac_c" 1>&6
6710 cat > conftest.$ac_ext <<EOF
6711 #line 6712 "configure"
6712 #include "confdefs.h"
6713 /* System header to define __stub macros and hopefully few prototypes,
6714 which can conflict with char inet_aton(); below. */
6716 /* Override any gcc2 internal prototype to avoid an error. */
6717 /* We use char because int might match the return type of a gcc2
6718 builtin and then its argument prototype would still apply. */
6723 /* The GNU C library defines this for functions which it implements
6724 to always fail with ENOSYS. Some functions are actually named
6725 something starting with __ and the normal name is an alias. */
6726 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
6734 if { (eval echo configure:6735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6736 eval "ac_cv_func_inet_aton=yes"
6738 echo "configure: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6741 eval "ac_cv_func_inet_aton=no"
6746 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
6747 echo "$ac_t""yes" 1>&6
6748 cat >> confdefs.h <<\EOF
6749 #define HAVE_INET_ATON 1
6753 echo "$ac_t""no" 1>&6
6754 INET_ATON='inet_aton.o'
6758 echo $ac_n "checking for strerror""... $ac_c" 1>&6
6759 echo "configure:6760: checking for strerror" >&5
6760 if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
6761 echo $ac_n "(cached) $ac_c" 1>&6
6763 cat > conftest.$ac_ext <<EOF
6764 #line 6765 "configure"
6765 #include "confdefs.h"
6766 /* System header to define __stub macros and hopefully few prototypes,
6767 which can conflict with char strerror(); below. */
6769 /* Override any gcc2 internal prototype to avoid an error. */
6770 /* We use char because int might match the return type of a gcc2
6771 builtin and then its argument prototype would still apply. */
6776 /* The GNU C library defines this for functions which it implements
6777 to always fail with ENOSYS. Some functions are actually named
6778 something starting with __ and the normal name is an alias. */
6779 #if defined (__stub_strerror) || defined (__stub___strerror)
6787 if { (eval echo configure:6788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6789 eval "ac_cv_func_strerror=yes"
6791 echo "configure: failed program was:" >&5
6792 cat conftest.$ac_ext >&5
6794 eval "ac_cv_func_strerror=no"
6799 if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
6800 echo "$ac_t""yes" 1>&6
6801 cat >> confdefs.h <<\EOF
6802 #define HAVE_STRERROR 1
6806 echo "$ac_t""no" 1>&6
6807 STRERROR='strerror.o'
6811 echo $ac_n "checking for strdup""... $ac_c" 1>&6
6812 echo "configure:6813: checking for strdup" >&5
6813 if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6819 /* System header to define __stub macros and hopefully few prototypes,
6820 which can conflict with char strdup(); below. */
6822 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6829 /* The GNU C library defines this for functions which it implements
6830 to always fail with ENOSYS. Some functions are actually named
6831 something starting with __ and the normal name is an alias. */
6832 #if defined (__stub_strdup) || defined (__stub___strdup)
6840 if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6842 eval "ac_cv_func_strdup=yes"
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6847 eval "ac_cv_func_strdup=no"
6852 if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
6853 echo "$ac_t""yes" 1>&6
6854 cat >> confdefs.h <<\EOF
6855 #define HAVE_STRDUP 1
6859 echo "$ac_t""no" 1>&6
6860 STRDUP='../../utils/strdup.o'
6864 echo $ac_n "checking for strtol""... $ac_c" 1>&6
6865 echo "configure:6866: checking for strtol" >&5
6866 if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
6867 echo $ac_n "(cached) $ac_c" 1>&6
6869 cat > conftest.$ac_ext <<EOF
6870 #line 6871 "configure"
6871 #include "confdefs.h"
6872 /* System header to define __stub macros and hopefully few prototypes,
6873 which can conflict with char strtol(); below. */
6875 /* Override any gcc2 internal prototype to avoid an error. */
6876 /* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6882 /* The GNU C library defines this for functions which it implements
6883 to always fail with ENOSYS. Some functions are actually named
6884 something starting with __ and the normal name is an alias. */
6885 #if defined (__stub_strtol) || defined (__stub___strtol)
6893 if { (eval echo configure:6894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6895 eval "ac_cv_func_strtol=yes"
6897 echo "configure: failed program was:" >&5
6898 cat conftest.$ac_ext >&5
6900 eval "ac_cv_func_strtol=no"
6905 if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
6906 echo "$ac_t""yes" 1>&6
6907 cat >> confdefs.h <<\EOF
6908 #define HAVE_STRTOL 1
6912 echo "$ac_t""no" 1>&6
6917 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
6918 echo "configure:6919: checking for strtoul" >&5
6919 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
6920 echo $ac_n "(cached) $ac_c" 1>&6
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6925 /* System header to define __stub macros and hopefully few prototypes,
6926 which can conflict with char strtoul(); below. */
6928 /* Override any gcc2 internal prototype to avoid an error. */
6929 /* We use char because int might match the return type of a gcc2
6930 builtin and then its argument prototype would still apply. */
6935 /* The GNU C library defines this for functions which it implements
6936 to always fail with ENOSYS. Some functions are actually named
6937 something starting with __ and the normal name is an alias. */
6938 #if defined (__stub_strtoul) || defined (__stub___strtoul)
6946 if { (eval echo configure:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6948 eval "ac_cv_func_strtoul=yes"
6950 echo "configure: failed program was:" >&5
6951 cat conftest.$ac_ext >&5
6953 eval "ac_cv_func_strtoul=no"
6958 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
6959 echo "$ac_t""yes" 1>&6
6960 cat >> confdefs.h <<\EOF
6961 #define HAVE_STRTOUL 1
6965 echo "$ac_t""no" 1>&6
6970 echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
6971 echo "configure:6972: checking for strcasecmp" >&5
6972 if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
6973 echo $ac_n "(cached) $ac_c" 1>&6
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6978 /* System header to define __stub macros and hopefully few prototypes,
6979 which can conflict with char strcasecmp(); below. */
6981 /* Override any gcc2 internal prototype to avoid an error. */
6982 /* We use char because int might match the return type of a gcc2
6983 builtin and then its argument prototype would still apply. */
6988 /* The GNU C library defines this for functions which it implements
6989 to always fail with ENOSYS. Some functions are actually named
6990 something starting with __ and the normal name is an alias. */
6991 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
6999 if { (eval echo configure:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7001 eval "ac_cv_func_strcasecmp=yes"
7003 echo "configure: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7006 eval "ac_cv_func_strcasecmp=no"
7011 if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
7012 echo "$ac_t""yes" 1>&6
7013 cat >> confdefs.h <<\EOF
7014 #define HAVE_STRCASECMP 1
7018 echo "$ac_t""no" 1>&6
7019 STRCASECMP='strcasecmp.o'
7023 echo $ac_n "checking for cbrt""... $ac_c" 1>&6
7024 echo "configure:7025: checking for cbrt" >&5
7025 if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7028 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7031 /* System header to define __stub macros and hopefully few prototypes,
7032 which can conflict with char cbrt(); below. */
7034 /* Override any gcc2 internal prototype to avoid an error. */
7035 /* We use char because int might match the return type of a gcc2
7036 builtin and then its argument prototype would still apply. */
7041 /* The GNU C library defines this for functions which it implements
7042 to always fail with ENOSYS. Some functions are actually named
7043 something starting with __ and the normal name is an alias. */
7044 #if defined (__stub_cbrt) || defined (__stub___cbrt)
7052 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7054 eval "ac_cv_func_cbrt=yes"
7056 echo "configure: failed program was:" >&5
7057 cat conftest.$ac_ext >&5
7059 eval "ac_cv_func_cbrt=no"
7064 if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
7065 echo "$ac_t""yes" 1>&6
7066 cat >> confdefs.h <<\EOF
7071 echo "$ac_t""no" 1>&6
7072 echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
7073 echo "configure:7074: checking for cbrt in -lm" >&5
7074 ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
7075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7078 ac_save_LIBS="$LIBS"
7080 cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7083 /* Override any gcc2 internal prototype to avoid an error. */
7084 /* We use char because int might match the return type of a gcc2
7085 builtin and then its argument prototype would still apply. */
7092 if { (eval echo configure:7093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7094 eval "ac_cv_lib_$ac_lib_var=yes"
7096 echo "configure: failed program was:" >&5
7097 cat conftest.$ac_ext >&5
7099 eval "ac_cv_lib_$ac_lib_var=no"
7102 LIBS="$ac_save_LIBS"
7105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7106 echo "$ac_t""yes" 1>&6
7107 cat >> confdefs.h <<\EOF
7112 echo "$ac_t""no" 1>&6
7118 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
7119 # this hackery with HPUXMATHLIB allows us to cope.
7123 if [ -r /lib/pa1.1/libm.a ] ; then
7124 HPUXMATHLIB="-L /lib/pa1.1 -lm"
7129 echo $ac_n "checking for rint""... $ac_c" 1>&6
7130 echo "configure:7131: checking for rint" >&5
7131 if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
7132 echo $ac_n "(cached) $ac_c" 1>&6
7134 cat > conftest.$ac_ext <<EOF
7135 #line 7136 "configure"
7136 #include "confdefs.h"
7137 /* System header to define __stub macros and hopefully few prototypes,
7138 which can conflict with char rint(); below. */
7140 /* Override any gcc2 internal prototype to avoid an error. */
7141 /* We use char because int might match the return type of a gcc2
7142 builtin and then its argument prototype would still apply. */
7147 /* The GNU C library defines this for functions which it implements
7148 to always fail with ENOSYS. Some functions are actually named
7149 something starting with __ and the normal name is an alias. */
7150 #if defined (__stub_rint) || defined (__stub___rint)
7158 if { (eval echo configure:7159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7160 eval "ac_cv_func_rint=yes"
7162 echo "configure: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7165 eval "ac_cv_func_rint=no"
7170 if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7172 cat >> confdefs.h <<\EOF
7177 echo "$ac_t""no" 1>&6
7178 echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
7179 echo "configure:7180: checking for rint in -lm" >&5
7180 ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
7181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7184 ac_save_LIBS="$LIBS"
7185 LIBS="-lm $HPUXMATHLIB $LIBS"
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 /* Override any gcc2 internal prototype to avoid an error. */
7190 /* We use char because int might match the return type of a gcc2
7191 builtin and then its argument prototype would still apply. */
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7200 eval "ac_cv_lib_$ac_lib_var=yes"
7202 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7205 eval "ac_cv_lib_$ac_lib_var=no"
7208 LIBS="$ac_save_LIBS"
7211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7212 echo "$ac_t""yes" 1>&6
7213 cat >> confdefs.h <<\EOF
7218 echo "$ac_t""no" 1>&6
7225 # Readline versions < 2.1 don't have rl_completion_append_character
7226 echo $ac_n "checking for rl_completion_append_character""... $ac_c" 1>&6
7227 echo "configure:7228: checking for rl_completion_append_character" >&5
7228 cat > conftest.$ac_ext <<EOF
7229 #line 7230 "configure"
7230 #include "confdefs.h"
7232 #ifdef HAVE_READLINE_READLINE_H
7233 # include <readline/readline.h>
7234 #elif defined(HAVE_READLINE_H)
7235 # include <readline.h>
7239 rl_completion_append_character = 'x';
7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7244 echo "$ac_t""yes" 1>&6
7245 cat >> confdefs.h <<\EOF
7246 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
7250 echo "configure: failed program was:" >&5
7251 cat conftest.$ac_ext >&5
7253 echo "$ac_t""no" 1>&6
7257 for ac_func in rl_completion_matches rl_filename_completion_function
7259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7260 echo "configure:7261: checking for $ac_func" >&5
7261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7262 echo $ac_n "(cached) $ac_c" 1>&6
7264 cat > conftest.$ac_ext <<EOF
7265 #line 7266 "configure"
7266 #include "confdefs.h"
7267 /* System header to define __stub macros and hopefully few prototypes,
7268 which can conflict with char $ac_func(); below. */
7270 /* Override any gcc2 internal prototype to avoid an error. */
7271 /* We use char because int might match the return type of a gcc2
7272 builtin and then its argument prototype would still apply. */
7277 /* The GNU C library defines this for functions which it implements
7278 to always fail with ENOSYS. Some functions are actually named
7279 something starting with __ and the normal name is an alias. */
7280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7288 if { (eval echo configure:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7290 eval "ac_cv_func_$ac_func=yes"
7292 echo "configure: failed program was:" >&5
7293 cat conftest.$ac_ext >&5
7295 eval "ac_cv_func_$ac_func=no"
7300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7301 echo "$ac_t""yes" 1>&6
7302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7303 cat >> confdefs.h <<EOF
7304 #define $ac_tr_func 1
7308 echo "$ac_t""no" 1>&6
7314 echo $ac_n "checking for finite""... $ac_c" 1>&6
7315 echo "configure:7316: checking for finite" >&5
7316 cat > conftest.$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7321 int dummy=finite(1.0);
7324 if { (eval echo configure:7325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7326 cat >> confdefs.h <<\EOF
7327 #define HAVE_FINITE 1
7329 echo "$ac_t""yes" 1>&6
7331 echo "configure: failed program was:" >&5
7332 cat conftest.$ac_ext >&5
7334 echo "$ac_t""no" 1>&6
7338 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7339 echo "configure:7340: checking for sigsetjmp" >&5
7340 cat > conftest.$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7345 sigjmp_buf x; sigsetjmp(x, 1);
7348 if { (eval echo configure:7349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7350 cat >> confdefs.h <<\EOF
7351 #define HAVE_SIGSETJMP 1
7353 echo "$ac_t""yes" 1>&6
7355 echo "configure: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7358 echo "$ac_t""no" 1>&6
7363 # Check whether --enable-syslog was given
7364 if test x"${enable_syslog+set}" = xset; then
7365 case $enable_syslog in
7367 echo $ac_n "checking for syslog""... $ac_c" 1>&6
7368 echo "configure:7369: checking for syslog" >&5
7369 if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
7370 echo $ac_n "(cached) $ac_c" 1>&6
7372 cat > conftest.$ac_ext <<EOF
7373 #line 7374 "configure"
7374 #include "confdefs.h"
7375 /* System header to define __stub macros and hopefully few prototypes,
7376 which can conflict with char syslog(); below. */
7378 /* Override any gcc2 internal prototype to avoid an error. */
7379 /* We use char because int might match the return type of a gcc2
7380 builtin and then its argument prototype would still apply. */
7385 /* The GNU C library defines this for functions which it implements
7386 to always fail with ENOSYS. Some functions are actually named
7387 something starting with __ and the normal name is an alias. */
7388 #if defined (__stub_syslog) || defined (__stub___syslog)
7396 if { (eval echo configure:7397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7398 eval "ac_cv_func_syslog=yes"
7400 echo "configure: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7403 eval "ac_cv_func_syslog=no"
7408 if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
7409 echo "$ac_t""yes" 1>&6
7410 cat >> confdefs.h <<\EOF
7411 #define ENABLE_SYSLOG 1
7415 echo "$ac_t""no" 1>&6
7416 { echo "configure: error: no syslog interface found" 1>&2; exit 1; }
7424 enableval=$enable_syslog
7425 { echo "configure: error: no argument expected for --enable-syslog option" 1>&2; exit 1; }
7427 esac # $enable_syslog
7434 echo $ac_n "checking for optreset""... $ac_c" 1>&6
7435 echo "configure:7436: checking for optreset" >&5
7436 if eval "test \"`echo '$''{'pgac_cv_var_int_optreset'+set}'`\" = set"; then
7437 echo $ac_n "(cached) $ac_c" 1>&6
7439 cat > conftest.$ac_ext <<EOF
7440 #line 7441 "configure"
7441 #include "confdefs.h"
7444 extern int optreset; optreset = 1;
7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7449 pgac_cv_var_int_optreset=yes
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7454 pgac_cv_var_int_optreset=no
7459 echo "$ac_t""$pgac_cv_var_int_optreset" 1>&6
7460 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
7461 cat >> confdefs.h <<\EOF
7462 #define HAVE_INT_OPTRESET 1
7468 # This test makes sure that run tests work at all. Sometimes a shared
7469 # library is found by the linker, but the runtime linker can't find it.
7470 # This check should come after all modifications of compiler or linker
7471 # variables, and before any other run tests.
7472 echo $ac_n "checking test program""... $ac_c" 1>&6
7473 echo "configure:7474: checking test program" >&5
7474 if test "$cross_compiling" = yes; then
7475 echo "$ac_t""cross-compiling" 1>&6
7477 cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure"
7479 #include "confdefs.h"
7480 int main() { return 0; }
7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7484 echo "$ac_t""ok" 1>&6
7486 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5
7489 echo "$ac_t""failed" 1>&6
7490 { echo "configure: error:
7491 *** Could not execute a simple test program. This may be a problem
7492 *** related to locating shared libraries. Check the file 'config.log'
7493 *** for the exact reason." 1>&2; exit 1; }
7501 echo $ac_n "checking whether long int is 64 bits""... $ac_c" 1>&6
7502 echo "configure:7503: checking whether long int is 64 bits" >&5
7503 if eval "test \"`echo '$''{'pgac_cv_type_long_int_64'+set}'`\" = set"; then
7504 echo $ac_n "(cached) $ac_c" 1>&6
7506 if test "$cross_compiling" = yes; then
7507 pgac_cv_type_long_int_64=no
7508 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7510 cat > conftest.$ac_ext <<EOF
7511 #line 7512 "configure"
7512 #include "confdefs.h"
7513 typedef long int int64;
7516 * These are globals to discourage the compiler from folding all the
7517 * arithmetic tests down to compile-time constants.
7522 int does_int64_work()
7526 if (sizeof(int64) != 8)
7527 return 0; /* definitely not the right size */
7529 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7537 exit(! does_int64_work());
7540 if { (eval echo configure:7541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7542 pgac_cv_type_long_int_64=yes
7544 echo "configure: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7547 pgac_cv_type_long_int_64=no
7554 echo "$ac_t""$pgac_cv_type_long_int_64" 1>&6
7556 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
7557 if test x"$pgac_cv_type_long_int_64" = xyes ; then
7558 cat >> confdefs.h <<\EOF
7559 #define HAVE_LONG_INT_64
7565 if test x"$HAVE_LONG_INT_64" = x"no" ; then
7566 echo $ac_n "checking whether long long int is 64 bits""... $ac_c" 1>&6
7567 echo "configure:7568: checking whether long long int is 64 bits" >&5
7568 if eval "test \"`echo '$''{'pgac_cv_type_long_long_int_64'+set}'`\" = set"; then
7569 echo $ac_n "(cached) $ac_c" 1>&6
7571 if test "$cross_compiling" = yes; then
7572 pgac_cv_type_long_long_int_64=no
7573 echo "configure: warning: 64 bit arithmetic disabled when cross-compiling" 1>&2
7575 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure"
7577 #include "confdefs.h"
7578 typedef long long int int64;
7581 * These are globals to discourage the compiler from folding all the
7582 * arithmetic tests down to compile-time constants.
7587 int does_int64_work()
7591 if (sizeof(int64) != 8)
7592 return 0; /* definitely not the right size */
7594 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
7602 exit(! does_int64_work());
7605 if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7607 pgac_cv_type_long_long_int_64=yes
7609 echo "configure: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7612 pgac_cv_type_long_long_int_64=no
7619 echo "$ac_t""$pgac_cv_type_long_long_int_64" 1>&6
7621 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
7622 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
7623 cat >> confdefs.h <<\EOF
7624 #define HAVE_LONG_LONG_INT_64
7633 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7634 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7638 #define INT64CONST(x) x##LL
7639 long long int foo = INT64CONST(0x1234567890123456);
7645 if { (eval echo configure:7646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7647 cat >> confdefs.h <<\EOF
7648 #define HAVE_LL_CONSTANTS 1
7652 echo "configure: failed program was:" >&5
7653 cat conftest.$ac_ext >&5
7660 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
7661 if [ x$SNPRINTF = x ] ; then
7662 echo $ac_n "checking whether snprintf handles 'long long int' as %lld""... $ac_c" 1>&6
7663 echo "configure:7664: checking whether snprintf handles 'long long int' as %lld" >&5
7664 if test "$cross_compiling" = yes; then
7665 echo "$ac_t""assuming not on target machine" 1>&6
7666 # Force usage of our own snprintf, since we cannot test foreign snprintf
7667 SNPRINTF='snprintf.o'
7668 INT64_FORMAT='"%lld"'
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7675 typedef long long int int64;
7676 #define INT64_FORMAT "%lld"
7681 int does_int64_snprintf_work()
7686 if (sizeof(int64) != 8)
7687 return 0; /* doesn't look like the right size */
7690 snprintf(buf, 100, INT64_FORMAT, c);
7691 if (strcmp(buf, "800000140000005") != 0)
7692 return 0; /* either multiply or snprintf is busted */
7696 exit(! does_int64_snprintf_work());
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7701 echo "$ac_t""yes" 1>&6
7702 INT64_FORMAT='"%lld"'
7705 echo "configure: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7708 echo "$ac_t""no" 1>&6
7709 echo $ac_n "checking whether snprintf handles 'long long int' as %qd""... $ac_c" 1>&6
7710 echo "configure:7711: checking whether snprintf handles 'long long int' as %qd" >&5
7711 if test "$cross_compiling" = yes; then
7712 echo "$ac_t""assuming not on target machine" 1>&6
7713 # Force usage of our own snprintf, since we cannot test foreign snprintf
7714 SNPRINTF='snprintf.o'
7715 INT64_FORMAT='"%lld"'
7718 cat > conftest.$ac_ext <<EOF
7719 #line 7720 "configure"
7720 #include "confdefs.h"
7722 typedef long long int int64;
7723 #define INT64_FORMAT "%qd"
7728 int does_int64_snprintf_work()
7733 if (sizeof(int64) != 8)
7734 return 0; /* doesn't look like the right size */
7737 snprintf(buf, 100, INT64_FORMAT, c);
7738 if (strcmp(buf, "800000140000005") != 0)
7739 return 0; /* either multiply or snprintf is busted */
7743 exit(! does_int64_snprintf_work());
7746 if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7748 echo "$ac_t""yes" 1>&6
7749 INT64_FORMAT='"%qd"'
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7755 echo "$ac_t""no" 1>&6
7756 # Force usage of our own snprintf, since system snprintf is broken
7757 SNPRINTF='snprintf.o'
7758 INT64_FORMAT='"%lld"'
7769 # here if we previously decided we needed to use our own snprintf
7770 INT64_FORMAT='"%lld"'
7773 # Here if we are not using 'long long int' at all
7774 INT64_FORMAT='"%ld"'
7777 cat >> confdefs.h <<EOF
7778 #define INT64_FORMAT $INT64_FORMAT
7783 for ac_func in strtoll strtoq
7785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7786 echo "configure:7787: checking for $ac_func" >&5
7787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7790 cat > conftest.$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 /* System header to define __stub macros and hopefully few prototypes,
7794 which can conflict with char $ac_func(); below. */
7796 /* Override any gcc2 internal prototype to avoid an error. */
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7803 /* The GNU C library defines this for functions which it implements
7804 to always fail with ENOSYS. Some functions are actually named
7805 something starting with __ and the normal name is an alias. */
7806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7814 if { (eval echo configure:7815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7816 eval "ac_cv_func_$ac_func=yes"
7818 echo "configure: failed program was:" >&5
7819 cat conftest.$ac_ext >&5
7821 eval "ac_cv_func_$ac_func=no"
7826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7827 echo "$ac_t""yes" 1>&6
7828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7829 cat >> confdefs.h <<EOF
7830 #define $ac_tr_func 1
7834 echo "$ac_t""no" 1>&6
7838 for ac_func in strtoull strtouq
7840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7841 echo "configure:7842: checking for $ac_func" >&5
7842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7843 echo $ac_n "(cached) $ac_c" 1>&6
7845 cat > conftest.$ac_ext <<EOF
7846 #line 7847 "configure"
7847 #include "confdefs.h"
7848 /* System header to define __stub macros and hopefully few prototypes,
7849 which can conflict with char $ac_func(); below. */
7851 /* Override any gcc2 internal prototype to avoid an error. */
7852 /* We use char because int might match the return type of a gcc2
7853 builtin and then its argument prototype would still apply. */
7858 /* The GNU C library defines this for functions which it implements
7859 to always fail with ENOSYS. Some functions are actually named
7860 something starting with __ and the normal name is an alias. */
7861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7869 if { (eval echo configure:7870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7871 eval "ac_cv_func_$ac_func=yes"
7873 echo "configure: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7876 eval "ac_cv_func_$ac_func=no"
7881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7882 echo "$ac_t""yes" 1>&6
7883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7884 cat >> confdefs.h <<EOF
7885 #define $ac_tr_func 1
7889 echo "$ac_t""no" 1>&6
7894 echo $ac_n "checking for atexit""... $ac_c" 1>&6
7895 echo "configure:7896: checking for atexit" >&5
7896 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7899 cat > conftest.$ac_ext <<EOF
7900 #line 7901 "configure"
7901 #include "confdefs.h"
7902 /* System header to define __stub macros and hopefully few prototypes,
7903 which can conflict with char atexit(); below. */
7905 /* Override any gcc2 internal prototype to avoid an error. */
7906 /* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */
7912 /* The GNU C library defines this for functions which it implements
7913 to always fail with ENOSYS. Some functions are actually named
7914 something starting with __ and the normal name is an alias. */
7915 #if defined (__stub_atexit) || defined (__stub___atexit)
7923 if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7925 eval "ac_cv_func_atexit=yes"
7927 echo "configure: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7930 eval "ac_cv_func_atexit=no"
7935 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
7936 echo "$ac_t""yes" 1>&6
7937 cat >> confdefs.h <<\EOF
7938 #define HAVE_ATEXIT 1
7942 echo "$ac_t""no" 1>&6
7943 for ac_func in on_exit
7945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7946 echo "configure:7947: checking for $ac_func" >&5
7947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7948 echo $ac_n "(cached) $ac_c" 1>&6
7950 cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953 /* System header to define __stub macros and hopefully few prototypes,
7954 which can conflict with char $ac_func(); below. */
7956 /* Override any gcc2 internal prototype to avoid an error. */
7957 /* We use char because int might match the return type of a gcc2
7958 builtin and then its argument prototype would still apply. */
7963 /* The GNU C library defines this for functions which it implements
7964 to always fail with ENOSYS. Some functions are actually named
7965 something starting with __ and the normal name is an alias. */
7966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7974 if { (eval echo configure:7975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7976 eval "ac_cv_func_$ac_func=yes"
7978 echo "configure: failed program was:" >&5
7979 cat conftest.$ac_ext >&5
7981 eval "ac_cv_func_$ac_func=no"
7986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7987 echo "$ac_t""yes" 1>&6
7988 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7989 cat >> confdefs.h <<EOF
7990 #define $ac_tr_func 1
7992 cat >> confdefs.h <<\EOF
7993 #define HAVE_ON_EXIT 1
7997 echo "$ac_t""no" 1>&6
7998 { echo "configure: error: neither atexit() nor on_exit() found" 1>&2; exit 1; }
8006 echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
8007 echo "configure:8008: checking size of unsigned long" >&5
8008 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8011 if test "$cross_compiling" = yes; then
8012 ac_cv_sizeof_unsigned_long=4
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8020 FILE *f=fopen("conftestval", "w");
8022 fprintf(f, "%d\n", sizeof(unsigned long));
8026 if { (eval echo configure:8027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8028 ac_cv_sizeof_unsigned_long=`cat conftestval`
8030 echo "configure: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8033 ac_cv_sizeof_unsigned_long=0
8039 echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
8040 cat >> confdefs.h <<EOF
8041 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8045 cat >> confdefs.h <<EOF
8046 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
8051 echo $ac_n "checking alignment of short""... $ac_c" 1>&6
8052 echo "configure:8053: checking alignment of short" >&5
8053 if eval "test \"`echo '$''{'pgac_cv_alignof_short'+set}'`\" = set"; then
8054 echo $ac_n "(cached) $ac_c" 1>&6
8056 if test "$cross_compiling" = yes; then
8057 pgac_cv_alignof_short='sizeof(short)'
8059 cat > conftest.$ac_ext <<EOF
8060 #line 8061 "configure"
8061 #include "confdefs.h"
8063 struct { char filler; short field; } mystruct;
8066 FILE *f=fopen("conftestval", "w");
8068 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8072 if { (eval echo configure:8073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8074 pgac_cv_alignof_short=`cat conftestval`
8076 echo "configure: failed program was:" >&5
8077 cat conftest.$ac_ext >&5
8079 pgac_cv_alignof_short='sizeof(short)'
8085 echo "$ac_t""$pgac_cv_alignof_short" 1>&6
8086 cat >> confdefs.h <<EOF
8087 #define ALIGNOF_SHORT $pgac_cv_alignof_short
8091 echo $ac_n "checking alignment of int""... $ac_c" 1>&6
8092 echo "configure:8093: checking alignment of int" >&5
8093 if eval "test \"`echo '$''{'pgac_cv_alignof_int'+set}'`\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8096 if test "$cross_compiling" = yes; then
8097 pgac_cv_alignof_int='sizeof(int)'
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8103 struct { char filler; int field; } mystruct;
8106 FILE *f=fopen("conftestval", "w");
8108 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8112 if { (eval echo configure:8113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8114 pgac_cv_alignof_int=`cat conftestval`
8116 echo "configure: failed program was:" >&5
8117 cat conftest.$ac_ext >&5
8119 pgac_cv_alignof_int='sizeof(int)'
8125 echo "$ac_t""$pgac_cv_alignof_int" 1>&6
8126 cat >> confdefs.h <<EOF
8127 #define ALIGNOF_INT $pgac_cv_alignof_int
8131 echo $ac_n "checking alignment of long""... $ac_c" 1>&6
8132 echo "configure:8133: checking alignment of long" >&5
8133 if eval "test \"`echo '$''{'pgac_cv_alignof_long'+set}'`\" = set"; then
8134 echo $ac_n "(cached) $ac_c" 1>&6
8136 if test "$cross_compiling" = yes; then
8137 pgac_cv_alignof_long='sizeof(long)'
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8143 struct { char filler; long field; } mystruct;
8146 FILE *f=fopen("conftestval", "w");
8148 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8152 if { (eval echo configure:8153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8154 pgac_cv_alignof_long=`cat conftestval`
8156 echo "configure: failed program was:" >&5
8157 cat conftest.$ac_ext >&5
8159 pgac_cv_alignof_long='sizeof(long)'
8165 echo "$ac_t""$pgac_cv_alignof_long" 1>&6
8166 cat >> confdefs.h <<EOF
8167 #define ALIGNOF_LONG $pgac_cv_alignof_long
8171 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
8172 echo $ac_n "checking alignment of long long int""... $ac_c" 1>&6
8173 echo "configure:8174: checking alignment of long long int" >&5
8174 if eval "test \"`echo '$''{'pgac_cv_alignof_long_long_int'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8177 if test "$cross_compiling" = yes; then
8178 pgac_cv_alignof_long_long_int='sizeof(long long int)'
8180 cat > conftest.$ac_ext <<EOF
8181 #line 8182 "configure"
8182 #include "confdefs.h"
8184 struct { char filler; long long int field; } mystruct;
8187 FILE *f=fopen("conftestval", "w");
8189 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8193 if { (eval echo configure:8194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8195 pgac_cv_alignof_long_long_int=`cat conftestval`
8197 echo "configure: failed program was:" >&5
8198 cat conftest.$ac_ext >&5
8200 pgac_cv_alignof_long_long_int='sizeof(long long int)'
8206 echo "$ac_t""$pgac_cv_alignof_long_long_int" 1>&6
8207 cat >> confdefs.h <<EOF
8208 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
8213 echo $ac_n "checking alignment of double""... $ac_c" 1>&6
8214 echo "configure:8215: checking alignment of double" >&5
8215 if eval "test \"`echo '$''{'pgac_cv_alignof_double'+set}'`\" = set"; then
8216 echo $ac_n "(cached) $ac_c" 1>&6
8218 if test "$cross_compiling" = yes; then
8219 pgac_cv_alignof_double='sizeof(double)'
8221 cat > conftest.$ac_ext <<EOF
8222 #line 8223 "configure"
8223 #include "confdefs.h"
8225 struct { char filler; double field; } mystruct;
8228 FILE *f=fopen("conftestval", "w");
8230 fprintf(f, "%d\n", ((char*) & mystruct.field) - ((char*) & mystruct));
8234 if { (eval echo configure:8235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8236 pgac_cv_alignof_double=`cat conftestval`
8238 echo "configure: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8241 pgac_cv_alignof_double='sizeof(double)'
8247 echo "$ac_t""$pgac_cv_alignof_double" 1>&6
8248 cat >> confdefs.h <<EOF
8249 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
8255 if test $pgac_cv_alignof_double != 'sizeof(double)' ; then
8256 MAX_ALIGNOF=$pgac_cv_alignof_long
8257 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
8258 MAX_ALIGNOF=$pgac_cv_alignof_double
8260 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
8261 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
8264 MAX_ALIGNOF="$pgac_cv_alignof_double"
8266 cat >> confdefs.h <<EOF
8267 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
8272 # Some platforms predefine the types int8, int16, etc. Only check
8273 # a (hopefully) representative subset. We also check for sig_atomic_t,
8274 # which *should* be defined per ANSI C, but is missing on some old platforms.
8276 pgac_type_includes="\
8279 #ifdef HAVE_SUPPORTDEFS_H
8280 #include <SupportDefs.h>
8283 echo $ac_n "checking for int8""... $ac_c" 1>&6
8284 echo "configure:8285: checking for int8" >&5
8285 if eval "test \"`echo '$''{'pgac_cv_have_int8'+set}'`\" = set"; then
8286 echo $ac_n "(cached) $ac_c" 1>&6
8288 cat > conftest.$ac_ext <<EOF
8289 #line 8290 "configure"
8290 #include "confdefs.h"
8299 if { (eval echo configure:8300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8301 pgac_cv_have_int8=yes
8303 echo "configure: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8306 pgac_cv_have_int8=no
8311 echo "$ac_t""$pgac_cv_have_int8" 1>&6
8312 if test "$pgac_cv_have_int8" = yes; then
8313 cat >> confdefs.h <<\EOF
8319 echo $ac_n "checking for uint8""... $ac_c" 1>&6
8320 echo "configure:8321: checking for uint8" >&5
8321 if eval "test \"`echo '$''{'pgac_cv_have_uint8'+set}'`\" = set"; then
8322 echo $ac_n "(cached) $ac_c" 1>&6
8324 cat > conftest.$ac_ext <<EOF
8325 #line 8326 "configure"
8326 #include "confdefs.h"
8335 if { (eval echo configure:8336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8337 pgac_cv_have_uint8=yes
8339 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5
8342 pgac_cv_have_uint8=no
8347 echo "$ac_t""$pgac_cv_have_uint8" 1>&6
8348 if test "$pgac_cv_have_uint8" = yes; then
8349 cat >> confdefs.h <<\EOF
8350 #define HAVE_UINT8 1
8355 echo $ac_n "checking for int64""... $ac_c" 1>&6
8356 echo "configure:8357: checking for int64" >&5
8357 if eval "test \"`echo '$''{'pgac_cv_have_int64'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8371 if { (eval echo configure:8372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8373 pgac_cv_have_int64=yes
8375 echo "configure: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8378 pgac_cv_have_int64=no
8383 echo "$ac_t""$pgac_cv_have_int64" 1>&6
8384 if test "$pgac_cv_have_int64" = yes; then
8385 cat >> confdefs.h <<\EOF
8386 #define HAVE_INT64 1
8391 echo $ac_n "checking for uint64""... $ac_c" 1>&6
8392 echo "configure:8393: checking for uint64" >&5
8393 if eval "test \"`echo '$''{'pgac_cv_have_uint64'+set}'`\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8396 cat > conftest.$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8403 if (sizeof (uint64))
8407 if { (eval echo configure:8408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8409 pgac_cv_have_uint64=yes
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8414 pgac_cv_have_uint64=no
8419 echo "$ac_t""$pgac_cv_have_uint64" 1>&6
8420 if test "$pgac_cv_have_uint64" = yes; then
8421 cat >> confdefs.h <<\EOF
8422 #define HAVE_UINT64 1
8427 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
8428 echo "configure:8429: checking for sig_atomic_t" >&5
8429 if eval "test \"`echo '$''{'pgac_cv_have_sig_atomic_t'+set}'`\" = set"; then
8430 echo $ac_n "(cached) $ac_c" 1>&6
8432 cat > conftest.$ac_ext <<EOF
8433 #line 8434 "configure"
8434 #include "confdefs.h"
8437 if ((sig_atomic_t *) 0)
8439 if (sizeof (sig_atomic_t))
8443 if { (eval echo configure:8444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8445 pgac_cv_have_sig_atomic_t=yes
8447 echo "configure: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8450 pgac_cv_have_sig_atomic_t=no
8455 echo "$ac_t""$pgac_cv_have_sig_atomic_t" 1>&6
8456 if test "$pgac_cv_have_sig_atomic_t" = yes; then
8457 cat >> confdefs.h <<\EOF
8458 #define HAVE_SIG_ATOMIC_T 1
8465 echo $ac_n "checking for POSIX signal interface""... $ac_c" 1>&6
8466 echo "configure:8467: checking for POSIX signal interface" >&5
8467 if eval "test \"`echo '$''{'pgac_cv_func_posix_signals'+set}'`\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8476 struct sigaction act, oact;
8477 sigemptyset(&act.sa_mask);
8478 act.sa_flags = SA_RESTART;
8479 sigaction(0, &act, &oact);
8482 if { (eval echo configure:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8484 pgac_cv_func_posix_signals=yes
8486 echo "configure: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8489 pgac_cv_func_posix_signals=no
8494 echo "$ac_t""$pgac_cv_func_posix_signals" 1>&6
8495 if test x"$pgac_cv_func_posix_signals" = xyes ; then
8496 cat >> confdefs.h <<\EOF
8497 #define HAVE_POSIX_SIGNALS
8501 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
8505 # Check for Tcl configuration script tclConfig.sh
8506 if test "$with_tcl" = yes; then
8507 for ac_prog in tclsh tcl
8509 # Extract the first word of "$ac_prog", so it can be a program name with args.
8510 set dummy $ac_prog; ac_word=$2
8511 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8512 echo "configure:8513: checking for $ac_word" >&5
8513 if eval "test \"`echo '$''{'ac_cv_path_TCLSH'+set}'`\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8518 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8521 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a dos path.
8524 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8526 for ac_dir in $ac_dummy; do
8527 test -z "$ac_dir" && ac_dir=.
8528 if test -f $ac_dir/$ac_word; then
8529 ac_cv_path_TCLSH="$ac_dir/$ac_word"
8537 TCLSH="$ac_cv_path_TCLSH"
8538 if test -n "$TCLSH"; then
8539 echo "$ac_t""$TCLSH" 1>&6
8541 echo "$ac_t""no" 1>&6
8544 test -n "$TCLSH" && break
8547 echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6
8548 echo "configure:8549: checking for tclConfig.sh" >&5
8549 # Let user override test
8550 if test -z "$TCL_CONFIG_SH"; then
8551 pgac_test_dirs="$with_tclconfig"
8553 set X $pgac_test_dirs; shift
8554 if test $# -eq 0; then
8555 test -z "$TCLSH" && { echo "configure: error: unable to locate tclConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8556 set X `echo 'puts $auto_path' | $TCLSH`; shift
8560 if test -r "$pgac_dir/tclConfig.sh"; then
8561 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
8567 if test -z "$TCL_CONFIG_SH"; then
8568 echo "$ac_t""no" 1>&6
8569 { echo "configure: error: file \`tclConfig.sh' is required for Tcl" 1>&2; exit 1; }
8571 echo "$ac_t""$TCL_CONFIG_SH" 1>&6
8578 # Check for Tk configuration script tkConfig.sh
8579 if test "$with_tk" = yes; then
8580 echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6
8581 echo "configure:8582: checking for tkConfig.sh" >&5
8582 # Let user override test
8583 if test -z "$TK_CONFIG_SH"; then
8584 pgac_test_dirs="$with_tkconfig $with_tclconfig"
8586 set X $pgac_test_dirs; shift
8587 if test $# -eq 0; then
8588 test -z "$TCLSH" && { echo "configure: error: unable to locate tkConfig.sh because no Tcl shell was found" 1>&2; exit 1; }
8589 set X `echo 'puts $auto_path' | $TCLSH`; shift
8593 if test -r "$pgac_dir/tkConfig.sh"; then
8594 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
8600 if test -z "$TK_CONFIG_SH"; then
8601 echo "$ac_t""no" 1>&6
8602 { echo "configure: error: file \`tkConfig.sh' is required for Tk" 1>&2; exit 1; }
8604 echo "$ac_t""$TK_CONFIG_SH" 1>&6
8613 # Check for DocBook and tools
8615 for ac_prog in onsgmls nsgmls
8617 # Extract the first word of "$ac_prog", so it can be a program name with args.
8618 set dummy $ac_prog; ac_word=$2
8619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8620 echo "configure:8621: checking for $ac_word" >&5
8621 if eval "test \"`echo '$''{'ac_cv_prog_NSGMLS'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8624 if test -n "$NSGMLS"; then
8625 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
8627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8629 for ac_dir in $ac_dummy; do
8630 test -z "$ac_dir" && ac_dir=.
8631 if test -f $ac_dir/$ac_word; then
8632 ac_cv_prog_NSGMLS="$ac_prog"
8639 NSGMLS="$ac_cv_prog_NSGMLS"
8640 if test -n "$NSGMLS"; then
8641 echo "$ac_t""$NSGMLS" 1>&6
8643 echo "$ac_t""no" 1>&6
8646 test -n "$NSGMLS" && break
8649 # If you don't have nsgmls you won't get very far, so save the cycles.
8650 if test -n "$NSGMLS"; then
8651 for ac_prog in openjade jade
8653 # Extract the first word of "$ac_prog", so it can be a program name with args.
8654 set dummy $ac_prog; ac_word=$2
8655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8656 echo "configure:8657: checking for $ac_word" >&5
8657 if eval "test \"`echo '$''{'ac_cv_prog_JADE'+set}'`\" = set"; then
8658 echo $ac_n "(cached) $ac_c" 1>&6
8660 if test -n "$JADE"; then
8661 ac_cv_prog_JADE="$JADE" # Let the user override the test.
8663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8665 for ac_dir in $ac_dummy; do
8666 test -z "$ac_dir" && ac_dir=.
8667 if test -f $ac_dir/$ac_word; then
8668 ac_cv_prog_JADE="$ac_prog"
8675 JADE="$ac_cv_prog_JADE"
8676 if test -n "$JADE"; then
8677 echo "$ac_t""$JADE" 1>&6
8679 echo "$ac_t""no" 1>&6
8682 test -n "$JADE" && break
8686 echo $ac_n "checking for DocBook V3.1""... $ac_c" 1>&6
8687 echo "configure:8688: checking for DocBook V3.1" >&5
8688 if eval "test \"`echo '$''{'pgac_cv_check_docbook'+set}'`\" = set"; then
8689 echo $ac_n "(cached) $ac_c" 1>&6
8691 cat >conftest.sgml <<EOF
8692 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
8696 <title>random</title>
8698 <title>testsect</title>
8705 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
8706 if test $? -eq 0; then
8707 pgac_cv_check_docbook=yes
8709 pgac_cv_check_docbook=no
8714 echo "$ac_t""$pgac_cv_check_docbook" 1>&6
8716 have_docbook=$pgac_cv_check_docbook
8719 echo $ac_n "checking for DocBook stylesheets""... $ac_c" 1>&6
8720 echo "configure:8721: checking for DocBook stylesheets" >&5
8721 if eval "test \"`echo '$''{'pgac_cv_path_stylesheets'+set}'`\" = set"; then
8722 echo $ac_n "(cached) $ac_c" 1>&6
8724 if test -n "$DOCBOOKSTYLE"; then
8725 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
8727 for pgac_prefix in /usr /usr/local /opt; do
8728 for pgac_infix in share lib; do
8729 for pgac_postfix in \
8730 sgml/stylesheets/nwalsh-modular \
8731 sgml/stylesheets/docbook \
8732 sgml/docbook/dsssl/modular
8734 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
8735 if test -r "$pgac_candidate/html/docbook.dsl" \
8736 && test -r "$pgac_candidate/print/docbook.dsl"
8738 pgac_cv_path_stylesheets=$pgac_candidate
8747 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
8749 if test -n "$DOCBOOKSTYLE"; then
8750 echo "$ac_t""$DOCBOOKSTYLE" 1>&6
8752 echo "$ac_t""no" 1>&6
8754 for ac_prog in sgmlspl
8756 # Extract the first word of "$ac_prog", so it can be a program name with args.
8757 set dummy $ac_prog; ac_word=$2
8758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8759 echo "configure:8760: checking for $ac_word" >&5
8760 if eval "test \"`echo '$''{'ac_cv_prog_SGMLSPL'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8763 if test -n "$SGMLSPL"; then
8764 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
8766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8768 for ac_dir in $ac_dummy; do
8769 test -z "$ac_dir" && ac_dir=.
8770 if test -f $ac_dir/$ac_word; then
8771 ac_cv_prog_SGMLSPL="$ac_prog"
8778 SGMLSPL="$ac_cv_prog_SGMLSPL"
8779 if test -n "$SGMLSPL"; then
8780 echo "$ac_t""$SGMLSPL" 1>&6
8782 echo "$ac_t""no" 1>&6
8785 test -n "$SGMLSPL" && break
8793 # prepare build tree if outside source tree
8794 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
8795 # Note 2: /bin/pwd might be better than shell's built-in at getting
8796 # a symlink-free name.
8797 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
8800 abs_top_srcdir=`cd $srcdir && pwd`
8801 echo $ac_n "preparing build tree... $ac_c" 1>&6
8802 /bin/sh "$srcdir/config/prep_buildtree" "$abs_top_srcdir" "." \
8803 || { echo "configure: error: failed" 1>&2; exit 1; }
8804 echo "$ac_t""done" 1>&6
8808 cat > confcache <<\EOF
8809 # This file is a shell script that caches the results of configure
8810 # tests run on this system so they can be shared between configure
8811 # scripts and configure runs. It is not useful on other systems.
8812 # If it contains results you don't want to keep, you may remove or edit it.
8814 # By default, configure uses ./config.cache as the cache file,
8815 # creating it if it does not exist already. You can give configure
8816 # the --cache-file=FILE option to use a different cache file; that is
8817 # what configure does when it calls configure scripts in
8818 # subdirectories, so they share the cache.
8819 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8820 # config.status only pays attention to the cache file if you give it the
8821 # --recheck option to rerun configure.
8824 # The following way of writing the cache mishandles newlines in values,
8825 # but we know of no workaround that is simple, portable, and efficient.
8826 # So, don't put newlines in cache variables' values.
8827 # Ultrix sh set writes to stderr and can't be redirected directly,
8828 # and sets the high bit in the cache file unless we assign to the vars.
8830 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8832 # `set' does not quote correctly, so add quotes (double-quote substitution
8833 # turns \\\\ into \\, and sed turns \\ into \).
8835 -e "s/'/'\\\\''/g" \
8836 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8839 # `set' quotes correctly as required by POSIX, so do not add quotes.
8840 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8843 if cmp -s $cache_file confcache; then
8846 if test -w $cache_file; then
8847 echo "updating cache $cache_file"
8848 cat confcache > $cache_file
8850 echo "not updating unwritable cache $cache_file"
8855 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8858 # Let make expand exec_prefix.
8859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8861 # Any assignment to VPATH causes Sun make to only execute
8862 # the first set of double-colon rules, so remove it if not needed.
8863 # If there is a colon in the path, we need to keep it.
8864 if test "x$srcdir" = x.; then
8865 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8868 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8870 DEFS=-DHAVE_CONFIG_H
8872 # Without the "./", some shells look in PATH for config.status.
8873 : ${CONFIG_STATUS=./config.status}
8875 echo creating $CONFIG_STATUS
8876 rm -f $CONFIG_STATUS
8877 cat > $CONFIG_STATUS <<EOF
8879 # Generated automatically by configure.
8880 # Run this file to recreate the current configuration.
8881 # This directory was configured as follows,
8882 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8884 # $0 $ac_configure_args
8886 # Compiler output produced by configure, useful for debugging
8887 # configure, is in ./config.log if it exists.
8889 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8892 case "\$ac_option" in
8893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8894 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8895 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8896 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8897 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8899 -help | --help | --hel | --he | --h)
8900 echo "\$ac_cs_usage"; exit 0 ;;
8901 *) echo "\$ac_cs_usage"; exit 1 ;;
8905 ac_given_srcdir=$srcdir
8907 trap 'rm -fr `echo "
8911 src/backend/port/Makefile
8912 src/include/pg_config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8914 cat >> $CONFIG_STATUS <<EOF
8916 # Protect against being on the right side of a sed subst in config.status.
8917 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8918 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8922 s%@CFLAGS@%$CFLAGS%g
8923 s%@CPPFLAGS@%$CPPFLAGS%g
8924 s%@CXXFLAGS@%$CXXFLAGS%g
8925 s%@FFLAGS@%$FFLAGS%g
8927 s%@LDFLAGS@%$LDFLAGS%g
8929 s%@exec_prefix@%$exec_prefix%g
8930 s%@prefix@%$prefix%g
8931 s%@program_transform_name@%$program_transform_name%g
8932 s%@bindir@%$bindir%g
8933 s%@sbindir@%$sbindir%g
8934 s%@libexecdir@%$libexecdir%g
8935 s%@datadir@%$datadir%g
8936 s%@sysconfdir@%$sysconfdir%g
8937 s%@sharedstatedir@%$sharedstatedir%g
8938 s%@localstatedir@%$localstatedir%g
8939 s%@libdir@%$libdir%g
8940 s%@includedir@%$includedir%g
8941 s%@oldincludedir@%$oldincludedir%g
8942 s%@docdir@%$docdir%g
8943 s%@mandir@%$mandir%g
8944 s%@VERSION@%$VERSION%g
8946 s%@host_alias@%$host_alias%g
8947 s%@host_cpu@%$host_cpu%g
8948 s%@host_vendor@%$host_vendor%g
8949 s%@host_os@%$host_os%g
8950 s%@PORTNAME@%$PORTNAME%g
8952 s%@MULTIBYTE@%$MULTIBYTE%g
8953 s%@enable_nls@%$enable_nls%g
8954 s%@WANTED_LANGUAGES@%$WANTED_LANGUAGES%g
8955 s%@default_port@%$default_port%g
8956 s%@enable_shared@%$enable_shared%g
8957 s%@enable_rpath@%$enable_rpath%g
8959 s%@EXEEXT@%$EXEEXT%g
8962 s%@autodepend@%$autodepend%g
8963 s%@INCLUDES@%$INCLUDES%g
8964 s%@with_tcl@%$with_tcl%g
8965 s%@with_tk@%$with_tk%g
8966 s%@with_perl@%$with_perl%g
8967 s%@with_python@%$with_python%g
8969 s%@with_java@%$with_java%g
8970 s%@with_krb4@%$with_krb4%g
8971 s%@with_krb5@%$with_krb5%g
8972 s%@krb_srvtab@%$krb_srvtab%g
8973 s%@with_pam@%$with_pam%g
8974 s%@with_openssl@%$with_openssl%g
8975 s%@enable_odbc@%$enable_odbc%g
8976 s%@with_unixodbc@%$with_unixodbc%g
8977 s%@with_iodbc@%$with_iodbc%g
8978 s%@odbcinst_ini_dir@%$odbcinst_ini_dir%g
8979 s%@ELF_SYS@%$ELF_SYS%g
8981 s%@CXXCPP@%$CXXCPP%g
8983 s%@with_CXX@%$with_CXX%g
8986 s%@FLEXFLAGS@%$FLEXFLAGS%g
8989 s%@with_gnu_ld@%$with_gnu_ld%g
8990 s%@ld_R_works@%$ld_R_works%g
8991 s%@RANLIB@%$RANLIB%g
8992 s%@LORDER@%$LORDER%g
8995 s%@YFLAGS@%$YFLAGS%g
8998 s%@perl_installsitearch@%$perl_installsitearch%g
8999 s%@perl_installsitelib@%$perl_installsitelib%g
9000 s%@perl_installman3dir@%$perl_installman3dir%g
9001 s%@PYTHON@%$PYTHON%g
9002 s%@python_version@%$python_version%g
9003 s%@python_prefix@%$python_prefix%g
9004 s%@python_execprefix@%$python_execprefix%g
9005 s%@python_configdir@%$python_configdir%g
9006 s%@python_moduledir@%$python_moduledir%g
9007 s%@python_moduleexecdir@%$python_moduleexecdir%g
9008 s%@python_includespec@%$python_includespec%g
9009 s%@python_libspec@%$python_libspec%g
9010 s%@MSGFMT@%$MSGFMT%g
9011 s%@MSGMERGE@%$MSGMERGE%g
9012 s%@XGETTEXT@%$XGETTEXT%g
9013 s%@localedir@%$localedir%g
9014 s%@SNPRINTF@%$SNPRINTF%g
9016 s%@GETRUSAGE@%$GETRUSAGE%g
9017 s%@SRANDOM@%$SRANDOM%g
9018 s%@GETHOSTNAME@%$GETHOSTNAME%g
9019 s%@MISSING_RANDOM@%$MISSING_RANDOM%g
9020 s%@INET_ATON@%$INET_ATON%g
9021 s%@STRERROR@%$STRERROR%g
9022 s%@STRDUP@%$STRDUP%g
9023 s%@STRTOL@%$STRTOL%g
9024 s%@STRTOUL@%$STRTOUL%g
9025 s%@STRCASECMP@%$STRCASECMP%g
9026 s%@HPUXMATHLIB@%$HPUXMATHLIB%g
9027 s%@HAVE_POSIX_SIGNALS@%$HAVE_POSIX_SIGNALS%g
9029 s%@TCL_CONFIG_SH@%$TCL_CONFIG_SH%g
9030 s%@TK_CONFIG_SH@%$TK_CONFIG_SH%g
9031 s%@NSGMLS@%$NSGMLS%g
9033 s%@have_docbook@%$have_docbook%g
9034 s%@DOCBOOKSTYLE@%$DOCBOOKSTYLE%g
9035 s%@SGMLSPL@%$SGMLSPL%g
9036 s%@abs_top_srcdir@%$abs_top_srcdir%g
9041 cat >> $CONFIG_STATUS <<\EOF
9043 # Split the substitutions into bite-sized pieces for seds with
9044 # small command number limits, like on Digital OSF/1 and HP-UX.
9045 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9046 ac_file=1 # Number of current file.
9047 ac_beg=1 # First line for current file.
9048 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9051 while $ac_more_lines; do
9052 if test $ac_beg -gt 1; then
9053 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9055 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9057 if test ! -s conftest.s$ac_file; then
9059 rm -f conftest.s$ac_file
9061 if test -z "$ac_sed_cmds"; then
9062 ac_sed_cmds="sed -f conftest.s$ac_file"
9064 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9066 ac_file=`expr $ac_file + 1`
9068 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9071 if test -z "$ac_sed_cmds"; then
9076 cat >> $CONFIG_STATUS <<EOF
9078 CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
9081 src/backend/port/Makefile
9084 cat >> $CONFIG_STATUS <<\EOF
9085 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9088 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9089 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9090 *) ac_file_in="${ac_file}.in" ;;
9093 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9095 # Remove last slash and all that follows it. Not all systems have dirname.
9096 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9097 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9098 # The file is in a subdirectory.
9099 test ! -d "$ac_dir" && mkdir "$ac_dir"
9100 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9101 # A "../" for each directory in $ac_dir_suffix.
9102 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9104 ac_dir_suffix= ac_dots=
9107 case "$ac_given_srcdir" in
9109 if test -z "$ac_dots"; then top_srcdir=.
9110 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9111 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9113 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9114 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9118 echo creating "$ac_file"
9120 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9122 *Makefile*) ac_comsub="1i\\
9123 # $configure_input" ;;
9127 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9129 s%@configure_input@%$configure_input%g
9130 s%@srcdir@%$srcdir%g
9131 s%@top_srcdir@%$top_srcdir%g
9132 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9136 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9137 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9139 # ac_d sets the value in "#define NAME VALUE" lines.
9140 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9141 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9144 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9145 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9146 ac_uB='\([ ]\)%\1#\2define\3'
9149 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9150 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9151 ac_eB='$%\1#\2define\3'
9155 if test "${CONFIG_HEADERS+set}" != set; then
9157 cat >> $CONFIG_STATUS <<EOF
9158 CONFIG_HEADERS="src/include/pg_config.h"
9160 cat >> $CONFIG_STATUS <<\EOF
9162 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9163 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9165 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9166 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9167 *) ac_file_in="${ac_file}.in" ;;
9170 echo creating $ac_file
9172 rm -f conftest.frag conftest.in conftest.out
9173 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9174 cat $ac_file_inputs > conftest.in
9178 # Transform confdefs.h into a sed script conftest.vals that substitutes
9179 # the proper values into config.h.in to produce config.h. And first:
9180 # Protect against being on the right side of a sed subst in config.status.
9181 # Protect against being in an unquoted here document in config.status.
9183 cat > conftest.hdr <<\EOF
9186 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9190 sed -n -f conftest.hdr confdefs.h > conftest.vals
9193 # This sed command replaces #undef with comments. This is necessary, for
9194 # example, in the case of _POSIX_SOURCE, which is predefined and required
9195 # on some systems where configure will not decide to define it.
9196 cat >> conftest.vals <<\EOF
9197 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9200 # Break up conftest.vals because some shells have a limit on
9201 # the size of here documents, and old seds have small limits too.
9206 ac_lines=`grep -c . conftest.vals`
9207 # grep -c gives empty output for an empty file on some AIX systems.
9208 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9209 # Write a limited-size here document to conftest.frag.
9210 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9211 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9213 sed -f conftest.frag conftest.in > conftest.out
9215 mv conftest.out conftest.in
9217 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9219 mv conftest.tail conftest.vals
9223 cat >> $CONFIG_STATUS <<\EOF
9224 rm -f conftest.frag conftest.h
9225 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9226 cat conftest.in >> conftest.h
9228 if cmp -s $ac_file conftest.h 2>/dev/null; then
9229 echo "$ac_file is unchanged"
9232 # Remove last slash and all that follows it. Not all systems have dirname.
9233 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9234 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9235 # The file is in a subdirectory.
9236 test ! -d "$ac_dir" && mkdir "$ac_dir"
9239 mv conftest.h $ac_file
9245 cat >> $CONFIG_STATUS <<EOF
9246 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}"
9247 ac_dests="src/backend/port/dynloader.c src/include/dynloader.h src/include/pg_config_os.h src/Makefile.port src/backend/port/tas.s"
9250 cat >> $CONFIG_STATUS <<\EOF
9251 srcdir=$ac_given_srcdir
9252 while test -n "$ac_sources"; do
9253 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9254 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9256 echo "linking $srcdir/$ac_source to $ac_dest"
9258 if test ! -r $srcdir/$ac_source; then
9259 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9263 # Make relative symlinks.
9264 # Remove last slash and all that follows it. Not all systems have dirname.
9265 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
9266 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9267 # The dest file is in a subdirectory.
9268 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9269 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
9270 # A "../" for each directory in $ac_dest_dir_suffix.
9271 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
9273 ac_dest_dir_suffix= ac_dots=
9277 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9278 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9281 # Make a symlink if possible; otherwise try a hard link.
9282 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9283 ln $srcdir/$ac_source $ac_dest; then :
9285 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9289 cat >> $CONFIG_STATUS <<EOF
9292 cat >> $CONFIG_STATUS <<\EOF
9294 # Update timestamp for pg_config.h (see Makefile.global)
9295 test x"$CONFIG_HEADERS" != x"" && echo >src/include/stamp-h
9299 chmod +x $CONFIG_STATUS
9300 rm -fr confdefs* $ac_clean_files
9301 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1