2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 8.1devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1996-2005, PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='8.1devel'
262 PACKAGE_STRING='PostgreSQL 8.1devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 infodir='${prefix}/info'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -infodir | --infodir | --infodi | --infod | --info | --inf)
441 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442 infodir=$ac_optarg ;;
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir infodir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
761 ac_env_LDFLAGS_SL_value=$LDFLAGS_SL
762 ac_cv_env_LDFLAGS_SL_set=${LDFLAGS_SL+set}
763 ac_cv_env_LDFLAGS_SL_value=$LDFLAGS_SL
764 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
765 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
767 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
770 # Report the --help message.
772 if test "$ac_init_help" = "long"; then
773 # Omit some internal or obsolete options to make the list less imposing.
774 # This message is too long to be a string in the A/UX 3.1 sh.
776 \`configure' configures PostgreSQL 8.1devel to adapt to many kinds of systems.
778 Usage: $0 [OPTION]... [VAR=VALUE]...
780 To assign environment variables (e.g., CC, CFLAGS...), specify them as
781 VAR=VALUE. See below for descriptions of some of the useful variables.
783 Defaults for the options are specified in brackets.
786 -h, --help display this help and exit
787 --help=short display options specific to this package
788 --help=recursive display the short help of all the included packages
789 -V, --version display version information and exit
790 -q, --quiet, --silent do not print \`checking...' messages
791 --cache-file=FILE cache test results in FILE [disabled]
792 -C, --config-cache alias for \`--cache-file=config.cache'
793 -n, --no-create do not create output files
794 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799 Installation directories:
800 --prefix=PREFIX install architecture-independent files in PREFIX
802 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
805 By default, \`make install' will install all the files in
806 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
807 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
808 for instance \`--prefix=\$HOME'.
810 For better control, use the options below.
812 Fine tuning of the installation directories:
813 --bindir=DIR user executables [EPREFIX/bin]
814 --sbindir=DIR system admin executables [EPREFIX/sbin]
815 --libexecdir=DIR program executables [EPREFIX/libexec]
816 --datadir=DIR read-only architecture-independent data [PREFIX/share]
817 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
818 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
819 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
820 --libdir=DIR object code libraries [EPREFIX/lib]
821 --includedir=DIR C header files [PREFIX/include]
822 --oldincludedir=DIR C header files for non-gcc [/usr/include]
823 --infodir=DIR info documentation [PREFIX/info]
824 --mandir=DIR man documentation [PREFIX/man]
830 --build=BUILD configure for building on BUILD [guessed]
831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
835 if test -n "$ac_init_help"; then
836 case $ac_init_help in
837 short | recursive ) echo "Configuration of PostgreSQL 8.1devel:";;
842 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
843 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
844 --enable-integer-datetimes enable 64-bit integer date/time support
845 --enable-nls[=LANGUAGES] enable Native Language Support
846 --disable-shared do not build shared libraries
847 --disable-rpath do not embed shared library search path in executables
848 --disable-spinlocks do not use spinlocks
849 --enable-debug build with debugging symbols (-g)
850 --enable-depend turn on automatic dependency tracking
851 --enable-cassert enable assertion checks (for debugging)
852 --enable-thread-safety make client libraries thread-safe
853 --enable-thread-safety-force force thread-safety in spite of thread test failure
854 --disable-largefile omit support for large files
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
860 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
861 --without-docdir do not install the documentation
862 --with-includes=DIRS look for additional header files in DIRS
863 --with-libraries=DIRS look for additional libraries in DIRS
864 --with-libs=DIRS alternative spelling of --with-libraries
865 --with-pgport=PORTNUM change default port number 5432
866 --with-tcl build Tcl modules (PL/Tcl)
867 --with-tclconfig=DIR tclConfig.sh is in DIR
868 --with-perl build Perl modules (PL/Perl)
869 --with-python build Python modules (PL/Python)
870 --with-krb4 build with Kerberos 4 support
871 --with-krb5 build with Kerberos 5 support
872 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]
873 --with-pam build with PAM support
874 --with-rendezvous build with Rendezvous support
875 --with-openssl build with OpenSSL support
876 --without-readline do not use Readline
877 --without-zlib do not use Zlib
878 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
880 Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
890 location of DocBook stylesheets
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
895 Report bugs to <pgsql-bugs@postgresql.org>.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
931 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
932 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
933 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
934 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
937 # Check for guested configure; otherwise get Cygnus style configure.
938 if test -f $ac_srcdir/configure.gnu; then
940 $SHELL $ac_srcdir/configure.gnu --help=recursive
941 elif test -f $ac_srcdir/configure; then
943 $SHELL $ac_srcdir/configure --help=recursive
944 elif test -f $ac_srcdir/configure.ac ||
945 test -f $ac_srcdir/configure.in; then
949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
955 test -n "$ac_init_help" && exit 0
956 if $ac_init_version; then
958 PostgreSQL configure 8.1devel
959 generated by GNU Autoconf 2.53
961 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
962 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
966 Copyright (c) 1996-2005, PostgreSQL Global Development Group
972 This file contains any messages produced by compilers while
973 running configure, to aid debugging if configure makes a mistake.
975 It was created by PostgreSQL $as_me 8.1devel, which was
976 generated by GNU Autoconf 2.53. Invocation command line was
987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010 test -z "$as_dir" && as_dir=.
1011 echo "PATH: $as_dir"
1026 # Keep a trace of the command line.
1027 # Strip out --no-create and --no-recursion so they do not pile up.
1028 # Also quote any args containing shell meta-characters.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n ) continue ;;
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1042 case " $ac_configure_args " in
1043 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1044 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1050 # When interrupted or exit'd, cleanup temporary files, and complete
1051 # config.log. We remove comments because anyway the quotes in there
1052 # would cause problems or look ugly.
1053 # WARNING: Be sure not to use single quotes in there, as some shells,
1054 # such as our DU 5.0 friend, will then `close' the trap.
1055 trap 'exit_status=$?
1056 # Save into config.log some information that might help in debugging.
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1065 # The following way of writing the cache mishandles newlines in values,
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081 if test -s confdefs.h; then
1088 sed "/^$/d" confdefs.h
1091 test "$ac_signal" != 0 &&
1092 echo "$as_me: caught signal $ac_signal"
1093 echo "$as_me: exit $exit_status"
1095 rm -f core core.* *.core &&
1096 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1099 for ac_signal in 1 2 13 15; do
1100 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1104 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1105 rm -rf conftest* confdefs.h
1106 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1109 # Predefined preprocessor variables.
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_NAME "$PACKAGE_NAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_STRING "$PACKAGE_STRING"
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1136 # Let the site file select an alternate cache file if it wants to.
1137 # Prefer explicitly selected file to automatically selected ones.
1138 if test -z "$CONFIG_SITE"; then
1139 if test "x$prefix" != xNONE; then
1140 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1142 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1145 for ac_site_file in $CONFIG_SITE; do
1146 if test -r "$ac_site_file"; then
1147 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1148 echo "$as_me: loading site script $ac_site_file" >&6;}
1149 sed 's/^/| /' "$ac_site_file" >&5
1154 if test -r "$cache_file"; then
1155 # Some versions of bash will fail to source /dev/null (special
1156 # files actually), so we avoid doing that.
1157 if test -f "$cache_file"; then
1158 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1159 echo "$as_me: loading cache $cache_file" >&6;}
1161 [\\/]* | ?:[\\/]* ) . $cache_file;;
1162 *) . ./$cache_file;;
1166 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1167 echo "$as_me: creating cache $cache_file" >&6;}
1171 # Check that the precious variables saved in the cache have kept the same
1173 ac_cache_corrupted=false
1174 for ac_var in `(set) 2>&1 |
1175 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1177 eval ac_new_set=\$ac_env_${ac_var}_set
1178 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1179 eval ac_new_val="\$ac_env_${ac_var}_value"
1180 case $ac_old_set,$ac_new_set in
1182 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1183 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1184 ac_cache_corrupted=: ;;
1186 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1187 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1188 ac_cache_corrupted=: ;;
1191 if test "x$ac_old_val" != "x$ac_new_val"; then
1192 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1193 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1194 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1195 echo "$as_me: former value: $ac_old_val" >&2;}
1196 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1197 echo "$as_me: current value: $ac_new_val" >&2;}
1198 ac_cache_corrupted=:
1201 # Pass precious variables to config.status.
1202 if test "$ac_new_set" = set; then
1204 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1206 *) ac_arg=$ac_var=$ac_new_val ;;
1208 case " $ac_configure_args " in
1209 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1210 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1214 if $ac_cache_corrupted; then
1215 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1216 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1217 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1218 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1219 { (exit 1); exit 1; }; }
1223 ac_cpp='$CPP $CPPFLAGS'
1224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1258 for ac_dir in config $srcdir/config; do
1259 if test -f $ac_dir/install-sh; then
1261 ac_install_sh="$ac_aux_dir/install-sh -c"
1263 elif test -f $ac_dir/install.sh; then
1265 ac_install_sh="$ac_aux_dir/install.sh -c"
1267 elif test -f $ac_dir/shtool; then
1269 ac_install_sh="$ac_aux_dir/shtool install -c"
1273 if test -z "$ac_aux_dir"; then
1274 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1275 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1276 { (exit 1); exit 1; }; }
1278 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1279 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1280 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1283 configure_args=$ac_configure_args
1287 cat >>confdefs.h <<_ACEOF
1288 #define PG_VERSION "$PACKAGE_VERSION"
1292 # Make sure we can run config.sub.
1293 $ac_config_sub sun4 >/dev/null 2>&1 ||
1294 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1295 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1296 { (exit 1); exit 1; }; }
1298 echo "$as_me:$LINENO: checking build system type" >&5
1299 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1300 if test "${ac_cv_build+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 ac_cv_build_alias=$build_alias
1304 test -z "$ac_cv_build_alias" &&
1305 ac_cv_build_alias=`$ac_config_guess`
1306 test -z "$ac_cv_build_alias" &&
1307 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1308 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1309 { (exit 1); exit 1; }; }
1310 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1311 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1312 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1313 { (exit 1); exit 1; }; }
1316 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1317 echo "${ECHO_T}$ac_cv_build" >&6
1319 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1320 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1321 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1324 echo "$as_me:$LINENO: checking host system type" >&5
1325 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1326 if test "${ac_cv_host+set}" = set; then
1327 echo $ECHO_N "(cached) $ECHO_C" >&6
1329 ac_cv_host_alias=$host_alias
1330 test -z "$ac_cv_host_alias" &&
1331 ac_cv_host_alias=$ac_cv_build_alias
1332 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1333 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1334 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1335 { (exit 1); exit 1; }; }
1338 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1339 echo "${ECHO_T}$ac_cv_host" >&6
1341 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1342 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1343 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348 echo "$as_me:$LINENO: checking which template to use" >&5
1349 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1354 # Check whether --with-template or --without-template was given.
1355 if test "${with_template+set}" = set; then
1356 withval="$with_template"
1360 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1361 echo "$as_me: error: argument required for --with-template option" >&2;}
1362 { (exit 1); exit 1; }; }
1365 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1366 echo "$as_me: error: argument required for --with-template option" >&2;}
1367 { (exit 1); exit 1; }; }
1372 list) echo; ls "$srcdir/src/template"; exit;;
1373 *) if test -f "$srcdir/src/template/$with_template" ; then
1376 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1377 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1378 { (exit 1); exit 1; }; }
1387 # --with-template not given
1390 aix*) template=aix ;;
1391 beos*) template=beos ;;
1392 bsdi*) template=bsdi ;;
1393 cygwin*) template=cygwin ;;
1394 darwin*) template=darwin ;;
1395 dgux*) template=dgux ;;
1396 freebsd*) template=freebsd ;;
1397 hpux*) template=hpux ;;
1398 irix*) template=irix ;;
1399 linux*|gnu*|k*bsd*-gnu)
1401 mingw*) template=win32 ;;
1402 netbsd*) template=netbsd ;;
1403 nextstep*) template=nextstep ;;
1404 openbsd*) template=openbsd ;;
1405 osf*) template=osf ;;
1406 qnx*) template=qnx4 ;;
1407 sco*) template=sco ;;
1408 solaris*) template=solaris ;;
1409 sunos*) template=sunos4 ;;
1411 case $host_vendor in
1412 univel) template=univel ;;
1414 sysv4*) template=svr4 ;;
1415 sysv5*) template=unixware ;;
1416 ultrix*) template=ultrix4 ;;
1419 if test x"$template" = x"" ; then
1420 { { echo "$as_me:$LINENO: error:
1421 *******************************************************************
1422 PostgreSQL has apparently not been ported to your platform yet.
1423 To try a manual configuration, look into the src/template directory
1424 for a similar platform and use the '--with-template=' option.
1426 Please also contact <pgsql-ports@postgresql.org> to see about
1427 rectifying this. Include the above 'checking host system type...'
1429 *******************************************************************
1431 echo "$as_me: error:
1432 *******************************************************************
1433 PostgreSQL has apparently not been ported to your platform yet.
1434 To try a manual configuration, look into the src/template directory
1435 for a similar platform and use the '--with-template=' option.
1437 Please also contact <pgsql-ports@postgresql.org> to see about
1438 rectifying this. Include the above 'checking host system type...'
1440 *******************************************************************
1442 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $template" >&5
1450 echo "${ECHO_T}$template" >&6
1455 # Initialize default assumption that we do not need separate assembly code
1456 # for TAS (test-and-set). This can be overridden by the template file
1457 # when it's executed.
1464 ## Command line options
1468 # Installation directory for documentation
1473 # Check whether --with-docdir or --without-docdir was given.
1474 if test "${with_docdir+set}" = set; then
1475 withval="$with_docdir"
1479 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1480 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1481 { (exit 1); exit 1; }; }
1492 docdir='${prefix}/doc'
1499 # Add non-standard directories to the include path
1504 # Check whether --with-includes or --without-includes was given.
1505 if test "${with_includes+set}" = set; then
1506 withval="$with_includes"
1510 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1511 echo "$as_me: error: argument required for --with-includes option" >&2;}
1512 { (exit 1); exit 1; }; }
1515 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1516 echo "$as_me: error: argument required for --with-includes option" >&2;}
1517 { (exit 1); exit 1; }; }
1529 # Add non-standard directories to the library search path
1534 # Check whether --with-libraries or --without-libraries was given.
1535 if test "${with_libraries+set}" = set; then
1536 withval="$with_libraries"
1540 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1541 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1542 { (exit 1); exit 1; }; }
1545 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1546 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1547 { (exit 1); exit 1; }; }
1550 LIBRARY_DIRS=$withval
1560 # Check whether --with-libs or --without-libs was given.
1561 if test "${with_libs+set}" = set; then
1562 withval="$with_libs"
1566 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1567 echo "$as_me: error: argument required for --with-libs option" >&2;}
1568 { (exit 1); exit 1; }; }
1571 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1572 echo "$as_me: error: argument required for --with-libs option" >&2;}
1573 { (exit 1); exit 1; }; }
1576 LIBRARY_DIRS=$withval
1585 # 64-bit integer date/time storage (--enable-integer-datetimes)
1587 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1588 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1591 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1592 if test "${enable_integer_datetimes+set}" = set; then
1593 enableval="$enable_integer_datetimes"
1598 cat >>confdefs.h <<\_ACEOF
1599 #define USE_INTEGER_DATETIMES 1
1607 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1608 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1609 { (exit 1); exit 1; }; }
1614 enable_integer_datetimes=no
1618 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1619 echo "${ECHO_T}$enable_integer_datetimes" >&6
1625 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1626 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1629 # Check whether --enable-nls or --disable-nls was given.
1630 if test "${enable_nls+set}" = set; then
1631 enableval="$enable_nls"
1642 WANTED_LANGUAGES=$enableval
1651 if test "$enable_nls" = yes; then
1653 cat >>confdefs.h <<\_ACEOF
1654 #define ENABLE_NLS 1
1659 echo "$as_me:$LINENO: result: $enable_nls" >&5
1660 echo "${ECHO_T}$enable_nls" >&6
1665 # Default port number (--with-pgport), default 5432
1667 echo "$as_me:$LINENO: checking for default port number" >&5
1668 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1672 # Check whether --with-pgport or --without-pgport was given.
1673 if test "${with_pgport+set}" = set; then
1674 withval="$with_pgport"
1678 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1679 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1680 { (exit 1); exit 1; }; }
1683 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1684 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1685 { (exit 1); exit 1; }; }
1688 default_port=$withval
1696 echo "$as_me:$LINENO: result: $default_port" >&5
1697 echo "${ECHO_T}$default_port" >&6
1698 # Need both of these because some places want an integer and some a string
1700 cat >>confdefs.h <<_ACEOF
1701 #define DEF_PGPORT ${default_port}
1705 cat >>confdefs.h <<_ACEOF
1706 #define DEF_PGPORT_STR "${default_port}"
1712 # Option to disable shared libraries
1716 # Check whether --enable-shared or --disable-shared was given.
1717 if test "${enable_shared+set}" = set; then
1718 enableval="$enable_shared"
1728 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1729 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1730 { (exit 1); exit 1; }; }
1742 # '-rpath'-like feature can be disabled
1746 # Check whether --enable-rpath or --disable-rpath was given.
1747 if test "${enable_rpath+set}" = set; then
1748 enableval="$enable_rpath"
1758 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1759 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1760 { (exit 1); exit 1; }; }
1776 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1777 if test "${enable_spinlocks+set}" = set; then
1778 enableval="$enable_spinlocks"
1788 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1789 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1790 { (exit 1); exit 1; }; }
1795 enable_spinlocks=yes
1801 # --enable-debug adds -g to compiler flags
1805 # Check whether --enable-debug or --disable-debug was given.
1806 if test "${enable_debug+set}" = set; then
1807 enableval="$enable_debug"
1817 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1818 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1819 { (exit 1); exit 1; }; }
1834 # For historical reasons you can also use --with-CC to specify the C compiler
1835 # to use, although the standard way to do this is to set the CC environment
1840 # Check whether --with-CC or --without-CC was given.
1841 if test "${with_CC+set}" = set; then
1846 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1847 echo "$as_me: error: argument required for --with-CC option" >&2;}
1848 { (exit 1); exit 1; }; }
1851 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1852 echo "$as_me: error: argument required for --with-CC option" >&2;}
1853 { (exit 1); exit 1; }; }
1864 aix) pgac_cc_list="gcc xlc";;
1865 irix) pgac_cc_list="cc";; # no gcc
1866 *) pgac_cc_list="gcc cc";;
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 if test -n "$ac_tool_prefix"; then
1875 for ac_prog in $pgac_cc_list
1877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_CC+set}" = set; then
1882 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 if test -n "$CC"; then
1885 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891 test -z "$as_dir" && as_dir=.
1892 for ac_exec_ext in '' $ac_executable_extensions; do
1893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 if test -n "$CC"; then
1905 echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1912 test -n "$CC" && break
1915 if test -z "$CC"; then
1917 for ac_prog in $pgac_cc_list
1919 # Extract the first word of "$ac_prog", so it can be a program name with args.
1920 set dummy $ac_prog; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 if test -n "$ac_ct_CC"; then
1927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_ac_ct_CC="$ac_prog"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1954 test -n "$ac_ct_CC" && break
1961 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1962 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1963 { (exit 1); exit 1; }; }
1965 # Provide some information about the compiler.
1966 echo "$as_me:$LINENO:" \
1967 "checking for C compiler version" >&5
1968 ac_compiler=`set X $ac_compile; echo $2`
1969 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1970 (eval $ac_compiler --version </dev/null >&5) 2>&5
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }
1974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1975 (eval $ac_compiler -v </dev/null >&5) 2>&5
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }
1979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1980 (eval $ac_compiler -V </dev/null >&5) 2>&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }
1985 cat >conftest.$ac_ext <<_ACEOF
1986 #line $LINENO "configure"
1987 #include "confdefs.h"
1989 #ifdef F77_DUMMY_MAIN
1993 int F77_DUMMY_MAIN() { return 1; }
2003 ac_clean_files_save=$ac_clean_files
2004 ac_clean_files="$ac_clean_files a.out a.exe"
2005 # Try to create an executable without -o first, disregard a.out.
2006 # It will help us diagnose broken compilers, and finding out an intuition
2008 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2009 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2010 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2011 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2012 (eval $ac_link_default) 2>&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; then
2016 # Find the output, starting from the most likely. This scheme is
2017 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2020 # Be careful to initialize this variable, since it used to be cached.
2021 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2023 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2024 ls a.out conftest 2>/dev/null;
2025 ls a.* conftest.* 2>/dev/null`; do
2027 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2028 a.out ) # We found the default executable, but exeext='' is most
2031 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2032 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2039 echo "$as_me: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2041 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2042 echo "$as_me: error: C compiler cannot create executables" >&2;}
2043 { (exit 77); exit 77; }; }
2046 ac_exeext=$ac_cv_exeext
2047 echo "$as_me:$LINENO: result: $ac_file" >&5
2048 echo "${ECHO_T}$ac_file" >&6
2050 # Check the compiler produces executables we can run. If not, either
2051 # the compiler is broken, or we cross compile.
2052 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2055 # If not cross compiling, check that we can run a simple program.
2056 if test "$cross_compiling" != yes; then
2057 if { ac_try='./$ac_file'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2065 if test "$cross_compiling" = maybe; then
2068 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2069 If you meant to cross compile, use \`--host'." >&5
2070 echo "$as_me: error: cannot run C compiled programs.
2071 If you meant to cross compile, use \`--host'." >&2;}
2072 { (exit 1); exit 1; }; }
2076 echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6
2079 rm -f a.out a.exe conftest$ac_cv_exeext
2080 ac_clean_files=$ac_clean_files_save
2081 # Check the compiler produces executables we can run. If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086 echo "${ECHO_T}$cross_compiling" >&6
2088 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091 (eval $ac_link) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2097 # work properly (i.e., refer to `conftest.exe'), while it won't with
2099 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2101 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2111 { (exit 1); exit 1; }; }
2114 rm -f conftest$ac_cv_exeext
2115 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2116 echo "${ECHO_T}$ac_cv_exeext" >&6
2118 rm -f conftest.$ac_ext
2119 EXEEXT=$ac_cv_exeext
2121 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2122 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2123 if test "${ac_cv_objext+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2128 #include "confdefs.h"
2130 #ifdef F77_DUMMY_MAIN
2134 int F77_DUMMY_MAIN() { return 1; }
2144 rm -f conftest.o conftest.obj
2145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2153 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2158 echo "$as_me: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2161 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2162 { (exit 1); exit 1; }; }
2165 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2167 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2168 echo "${ECHO_T}$ac_cv_objext" >&6
2169 OBJEXT=$ac_cv_objext
2171 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2172 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2173 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 cat >conftest.$ac_ext <<_ACEOF
2177 #line $LINENO "configure"
2178 #include "confdefs.h"
2180 #ifdef F77_DUMMY_MAIN
2184 int F77_DUMMY_MAIN() { return 1; }
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2211 echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2219 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2220 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2221 GCC=`test $ac_compiler_gnu = yes && echo yes`
2222 ac_test_CFLAGS=${CFLAGS+set}
2223 ac_save_CFLAGS=$CFLAGS
2225 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2226 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2227 if test "${ac_cv_prog_cc_g+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 cat >conftest.$ac_ext <<_ACEOF
2231 #line $LINENO "configure"
2232 #include "confdefs.h"
2234 #ifdef F77_DUMMY_MAIN
2238 int F77_DUMMY_MAIN() { return 1; }
2248 rm -f conftest.$ac_objext
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
2254 { ac_try='test -s conftest.$ac_objext'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2262 echo "$as_me: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2266 rm -f conftest.$ac_objext conftest.$ac_ext
2268 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2269 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2270 if test "$ac_test_CFLAGS" = set; then
2271 CFLAGS=$ac_save_CFLAGS
2272 elif test $ac_cv_prog_cc_g = yes; then
2273 if test "$GCC" = yes; then
2279 if test "$GCC" = yes; then
2285 # Some people use a C++ compiler to compile C. Since we use `exit',
2286 # in C++ we need to declare it. In case someone uses the same compiler
2287 # for both compiling C and C++ we need to have the C++ compiler decide
2288 # the declaration of exit, since it's the most demanding environment.
2289 cat >conftest.$ac_ext <<_ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } &&
2300 { ac_try='test -s conftest.$ac_objext'
2301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); }; }; then
2306 for ac_declaration in \
2308 '#include <stdlib.h>' \
2309 'extern "C" void std::exit (int) throw (); using std::exit;' \
2310 'extern "C" void std::exit (int); using std::exit;' \
2311 'extern "C" void exit (int) throw ();' \
2312 'extern "C" void exit (int);' \
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #line $LINENO "configure"
2317 #include "confdefs.h"
2320 #ifdef F77_DUMMY_MAIN
2324 int F77_DUMMY_MAIN() { return 1; }
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2348 echo "$as_me: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2352 rm -f conftest.$ac_objext conftest.$ac_ext
2353 cat >conftest.$ac_ext <<_ACEOF
2354 #line $LINENO "configure"
2355 #include "confdefs.h"
2357 #ifdef F77_DUMMY_MAIN
2361 int F77_DUMMY_MAIN() { return 1; }
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2385 echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2391 if test -n "$ac_declaration"; then
2392 echo '#ifdef __cplusplus' >>confdefs.h
2393 echo $ac_declaration >>confdefs.h
2394 echo '#endif' >>confdefs.h
2398 echo "$as_me: failed program was:" >&5
2399 cat conftest.$ac_ext >&5
2401 rm -f conftest.$ac_objext conftest.$ac_ext
2403 ac_cpp='$CPP $CPPFLAGS'
2404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414 . "$srcdir/src/template/$template" || exit
2416 # CFLAGS are selected so:
2417 # If the user specifies something in the environment, that is used.
2418 # else: If the template file set something, that is used.
2419 # else: If the compiler is GCC, then we use -O2.
2420 # else: If the compiler is something else, then we use -0.
2422 if test "$ac_env_CFLAGS_set" = set; then
2423 CFLAGS=$ac_env_CFLAGS_value
2424 elif test "${CFLAGS+set}" = set; then
2425 : # (keep what template set)
2426 elif test "$GCC" = yes; then
2429 # if the user selected debug mode, don't use -O
2430 if test "$enable_debug" != yes; then
2435 if test "$GCC" = yes; then
2436 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
2438 # Some versions of GCC support some additional useful warning flags.
2439 # Check whether they are supported, and add them to CFLAGS if so.
2440 echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
2441 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6
2442 pgac_save_CFLAGS=$CFLAGS
2443 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
2444 cat >conftest.$ac_ext <<_ACEOF
2445 #line $LINENO "configure"
2446 #include "confdefs.h"
2448 #ifdef F77_DUMMY_MAIN
2452 int F77_DUMMY_MAIN() { return 1; }
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 echo "$as_me:$LINENO: result: yes" >&5
2475 echo "${ECHO_T}yes" >&6
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 CFLAGS="$pgac_save_CFLAGS"
2480 echo "$as_me:$LINENO: result: no" >&5
2481 echo "${ECHO_T}no" >&6
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2485 echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
2486 echo $ECHO_N "checking if $CC supports -Wold-style-definition... $ECHO_C" >&6
2487 pgac_save_CFLAGS=$CFLAGS
2488 CFLAGS="$pgac_save_CFLAGS -Wold-style-definition"
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2491 #include "confdefs.h"
2493 #ifdef F77_DUMMY_MAIN
2497 int F77_DUMMY_MAIN() { return 1; }
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509 (eval $ac_compile) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6
2522 echo "$as_me: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 CFLAGS="$pgac_save_CFLAGS"
2525 echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6
2528 rm -f conftest.$ac_objext conftest.$ac_ext
2530 echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
2531 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6
2532 pgac_save_CFLAGS=$CFLAGS
2533 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
2534 cat >conftest.$ac_ext <<_ACEOF
2535 #line $LINENO "configure"
2536 #include "confdefs.h"
2538 #ifdef F77_DUMMY_MAIN
2542 int F77_DUMMY_MAIN() { return 1; }
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 echo "$as_me:$LINENO: result: yes" >&5
2565 echo "${ECHO_T}yes" >&6
2567 echo "$as_me: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 CFLAGS="$pgac_save_CFLAGS"
2570 echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6
2573 rm -f conftest.$ac_objext conftest.$ac_ext
2576 # Disable strict-aliasing rules; needed for gcc 3.3+
2577 echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
2578 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
2579 pgac_save_CFLAGS=$CFLAGS
2580 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
2581 cat >conftest.$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2583 #include "confdefs.h"
2585 #ifdef F77_DUMMY_MAIN
2589 int F77_DUMMY_MAIN() { return 1; }
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2611 echo "$as_me:$LINENO: result: yes" >&5
2612 echo "${ECHO_T}yes" >&6
2614 echo "$as_me: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2616 CFLAGS="$pgac_save_CFLAGS"
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2624 # supply -g if --enable-debug
2625 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2629 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2630 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2632 # We already have this in Makefile.win32, but configure needs it too
2633 if test "$PORTNAME" = "win32"; then
2634 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2637 # Check if the compiler still works with the template settings
2638 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2639 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2641 cat >conftest.$ac_ext <<_ACEOF
2642 #line $LINENO "configure"
2643 #include "confdefs.h"
2645 #ifdef F77_DUMMY_MAIN
2649 int F77_DUMMY_MAIN() { return 1; }
2659 rm -f conftest.$ac_objext conftest$ac_exeext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661 (eval $ac_link) 2>&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -s conftest$ac_exeext'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; }; then
2671 echo "$as_me:$LINENO: result: yes" >&5
2672 echo "${ECHO_T}yes" >&6
2674 echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 echo "$as_me:$LINENO: result: no" >&5
2677 echo "${ECHO_T}no" >&6
2678 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2679 echo "$as_me: error: cannot proceed" >&2;}
2680 { (exit 1); exit 1; }; }
2682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2684 # Defend against gcc -ffast-math
2685 if test "$GCC" = yes; then
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line $LINENO "configure"
2688 #include "confdefs.h"
2690 #ifdef F77_DUMMY_MAIN
2694 int F77_DUMMY_MAIN() { return 1; }
2699 #ifdef __FAST_MATH__
2706 rm -f conftest.$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -s conftest.$ac_objext'
2713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; }; then
2720 echo "$as_me: failed program was:" >&5
2721 cat conftest.$ac_ext >&5
2722 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2723 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2724 { (exit 1); exit 1; }; }
2726 rm -f conftest.$ac_objext conftest.$ac_ext
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2735 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2736 # On Suns, sometimes $CPP names a directory.
2737 if test -n "$CPP" && test -d "$CPP"; then
2740 if test -z "$CPP"; then
2741 if test "${ac_cv_prog_CPP+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 # Double quotes because CPP needs to be expanded
2745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2748 for ac_c_preproc_warn_flag in '' yes
2750 # Use a header file that comes with gcc, so configuring glibc
2751 # with a fresh cross-compiler works.
2752 # On the NeXT, cc -E runs the code through the compiler's parser,
2753 # not just through cpp. "Syntax error" is here to catch this case.
2754 cat >conftest.$ac_ext <<_ACEOF
2755 #line $LINENO "configure"
2756 #include "confdefs.h"
2760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2763 egrep -v '^ *\+' conftest.er1 >conftest.err
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } >/dev/null; then
2768 if test -s conftest.err; then
2769 ac_cpp_err=$ac_c_preproc_warn_flag
2776 if test -z "$ac_cpp_err"; then
2779 echo "$as_me: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2781 # Broken: fails on valid input.
2784 rm -f conftest.err conftest.$ac_ext
2786 # OK, works on sane cases. Now check whether non-existent headers
2787 # can be detected and how.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2790 #include "confdefs.h"
2791 #include <ac_nonexistent.h>
2793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2796 egrep -v '^ *\+' conftest.er1 >conftest.err
2798 cat conftest.err >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } >/dev/null; then
2801 if test -s conftest.err; then
2802 ac_cpp_err=$ac_c_preproc_warn_flag
2809 if test -z "$ac_cpp_err"; then
2810 # Broken: success on invalid input.
2813 echo "$as_me: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 # Passes both tests.
2819 rm -f conftest.err conftest.$ac_ext
2822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2823 rm -f conftest.err conftest.$ac_ext
2824 if $ac_preproc_ok; then
2836 echo "$as_me:$LINENO: result: $CPP" >&5
2837 echo "${ECHO_T}$CPP" >&6
2839 for ac_c_preproc_warn_flag in '' yes
2841 # Use a header file that comes with gcc, so configuring glibc
2842 # with a fresh cross-compiler works.
2843 # On the NeXT, cc -E runs the code through the compiler's parser,
2844 # not just through cpp. "Syntax error" is here to catch this case.
2845 cat >conftest.$ac_ext <<_ACEOF
2846 #line $LINENO "configure"
2847 #include "confdefs.h"
2851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2854 egrep -v '^ *\+' conftest.er1 >conftest.err
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } >/dev/null; then
2859 if test -s conftest.err; then
2860 ac_cpp_err=$ac_c_preproc_warn_flag
2867 if test -z "$ac_cpp_err"; then
2870 echo "$as_me: failed program was:" >&5
2871 cat conftest.$ac_ext >&5
2872 # Broken: fails on valid input.
2875 rm -f conftest.err conftest.$ac_ext
2877 # OK, works on sane cases. Now check whether non-existent headers
2878 # can be detected and how.
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #line $LINENO "configure"
2881 #include "confdefs.h"
2882 #include <ac_nonexistent.h>
2884 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2887 egrep -v '^ *\+' conftest.er1 >conftest.err
2889 cat conftest.err >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } >/dev/null; then
2892 if test -s conftest.err; then
2893 ac_cpp_err=$ac_c_preproc_warn_flag
2900 if test -z "$ac_cpp_err"; then
2901 # Broken: success on invalid input.
2904 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 # Passes both tests.
2910 rm -f conftest.err conftest.$ac_ext
2913 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2914 rm -f conftest.err conftest.$ac_ext
2915 if $ac_preproc_ok; then
2918 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2920 { (exit 1); exit 1; }; }
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2931 # Create compiler version string
2932 if test x"$GCC" = x"yes" ; then
2933 cc_string="GCC `${CC} --version | sed q`"
2938 cat >>confdefs.h <<_ACEOF
2939 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2945 # Set up TAS assembly code if needed; the template file has now had its
2946 # chance to request this.
2948 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2951 if test "$need_tas" = yes ; then
2960 # Automatic dependency tracking
2964 # Check whether --enable-depend or --disable-depend was given.
2965 if test "${enable_depend+set}" = set; then
2966 enableval="$enable_depend"
2976 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2977 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2978 { (exit 1); exit 1; }; }
2991 # Enable assert checks
2995 # Check whether --enable-cassert or --disable-cassert was given.
2996 if test "${enable_cassert+set}" = set; then
2997 enableval="$enable_cassert"
3002 cat >>confdefs.h <<\_ACEOF
3003 #define USE_ASSERT_CHECKING 1
3011 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
3012 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
3013 { (exit 1); exit 1; }; }
3025 # Include directories
3028 IFS="${IFS}${PATH_SEPARATOR}"
3029 # SRCH_INC comes from the template file
3030 for dir in $with_includes $SRCH_INC; do
3031 if test -d "$dir"; then
3032 INCLUDES="$INCLUDES -I$dir"
3034 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3035 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3043 # Library directories
3046 IFS="${IFS}${PATH_SEPARATOR}"
3047 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
3048 for dir in $LIBRARY_DIRS $SRCH_LIB; do
3049 if test -d "$dir"; then
3050 LIBDIRS="$LIBDIRS -L$dir"
3052 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3053 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3059 # Enable thread-safe client libraries
3061 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
3062 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
3065 # Check whether --enable-thread-safety or --disable-thread-safety was given.
3066 if test "${enable_thread_safety+set}" = set; then
3067 enableval="$enable_thread_safety"
3077 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
3078 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
3079 { (exit 1); exit 1; }; }
3084 enable_thread_safety=no
3090 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
3091 if test "${enable_thread_safety_force+set}" = set; then
3092 enableval="$enable_thread_safety_force"
3102 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
3103 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
3104 { (exit 1); exit 1; }; }
3109 enable_thread_safety_force=no
3113 if test "$enable_thread_safety" = yes -o \
3114 "$enable_thread_safety_force" = yes; then
3115 enable_thread_safety="yes" # for 'force'
3117 cat >>confdefs.h <<\_ACEOF
3118 #define ENABLE_THREAD_SAFETY 1
3122 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
3123 echo "${ECHO_T}$enable_thread_safety" >&6
3127 # Optionally build Tcl modules (PL/Tcl)
3129 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3130 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3134 # Check whether --with-tcl or --without-tcl was given.
3135 if test "${with_tcl+set}" = set; then
3146 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3147 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3148 { (exit 1); exit 1; }; }
3157 echo "$as_me:$LINENO: result: $with_tcl" >&5
3158 echo "${ECHO_T}$with_tcl" >&6
3161 # We see if the path to the Tcl/Tk configuration scripts is specified.
3162 # This will override the use of tclsh to find the paths to search.
3167 # Check whether --with-tclconfig or --without-tclconfig was given.
3168 if test "${with_tclconfig+set}" = set; then
3169 withval="$with_tclconfig"
3173 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3174 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3175 { (exit 1); exit 1; }; }
3178 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3179 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3180 { (exit 1); exit 1; }; }
3191 # Optionally build Perl modules (PL/Perl)
3193 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3194 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3198 # Check whether --with-perl or --without-perl was given.
3199 if test "${with_perl+set}" = set; then
3200 withval="$with_perl"
3210 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3211 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3212 { (exit 1); exit 1; }; }
3221 echo "$as_me:$LINENO: result: $with_perl" >&5
3222 echo "${ECHO_T}$with_perl" >&6
3226 # Optionally build Python modules (PL/Python)
3228 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3229 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3233 # Check whether --with-python or --without-python was given.
3234 if test "${with_python+set}" = set; then
3235 withval="$with_python"
3245 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3246 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3247 { (exit 1); exit 1; }; }
3256 echo "$as_me:$LINENO: result: $with_python" >&5
3257 echo "${ECHO_T}$with_python" >&6
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3268 # Check whether --with-krb4 or --without-krb4 was given.
3269 if test "${with_krb4+set}" = set; then
3270 withval="$with_krb4"
3276 cat >>confdefs.h <<\_ACEOF
3280 krb_srvtab="/etc/srvtab"
3287 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3288 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3289 { (exit 1); exit 1; }; }
3298 echo "$as_me:$LINENO: result: $with_krb4" >&5
3299 echo "${ECHO_T}$with_krb4" >&6
3306 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3307 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3311 # Check whether --with-krb5 or --without-krb5 was given.
3312 if test "${with_krb5+set}" = set; then
3313 withval="$with_krb5"
3319 cat >>confdefs.h <<\_ACEOF
3323 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3330 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3331 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3332 { (exit 1); exit 1; }; }
3341 echo "$as_me:$LINENO: result: $with_krb5" >&5
3342 echo "${ECHO_T}$with_krb5" >&6
3346 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3347 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3348 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3349 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3350 { (exit 1); exit 1; }; }
3357 # Kerberos configuration parameters
3362 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3363 if test "${with_krb_srvnam+set}" = set; then
3364 withval="$with_krb_srvnam"
3368 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3369 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3370 { (exit 1); exit 1; }; }
3373 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3374 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3375 { (exit 1); exit 1; }; }
3383 with_krb_srvnam="postgres"
3387 cat >>confdefs.h <<_ACEOF
3388 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3396 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3397 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3401 # Check whether --with-pam or --without-pam was given.
3402 if test "${with_pam+set}" = set; then
3408 cat >>confdefs.h <<\_ACEOF
3417 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3418 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3419 { (exit 1); exit 1; }; }
3428 echo "$as_me:$LINENO: result: $with_pam" >&5
3429 echo "${ECHO_T}$with_pam" >&6
3436 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3437 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3441 # Check whether --with-rendezvous or --without-rendezvous was given.
3442 if test "${with_rendezvous+set}" = set; then
3443 withval="$with_rendezvous"
3448 cat >>confdefs.h <<\_ACEOF
3449 #define USE_RENDEZVOUS 1
3457 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3458 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3459 { (exit 1); exit 1; }; }
3468 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3469 echo "${ECHO_T}$with_rendezvous" >&6
3476 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3477 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3481 # Check whether --with-openssl or --without-openssl was given.
3482 if test "${with_openssl+set}" = set; then
3483 withval="$with_openssl"
3488 cat >>confdefs.h <<\_ACEOF
3497 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3498 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3499 { (exit 1); exit 1; }; }
3508 echo "$as_me:$LINENO: result: $with_openssl" >&5
3509 echo "${ECHO_T}$with_openssl" >&6
3519 # Check whether --with-readline or --without-readline was given.
3520 if test "${with_readline+set}" = set; then
3521 withval="$with_readline"
3531 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3532 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3533 { (exit 1); exit 1; }; }
3542 # readline on MinGW has problems with backslashes in psql and other bugs.
3543 # This is particularly a problem with non-US code pages.
3544 # Therefore disable its use until we understand the cause. 2004-07-20
3545 if test "$PORTNAME" = "win32"; then
3546 if test "$with_readline" = yes; then
3547 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3548 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3560 # Check whether --with-zlib or --without-zlib was given.
3561 if test "${with_zlib+set}" = set; then
3562 withval="$with_zlib"
3572 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3573 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3574 { (exit 1); exit 1; }; }
3588 # Assume system is ELF if it predefines __ELF__ as 1,
3589 # otherwise believe host_os based default.
3591 freebsd1*|freebsd2*) elf=no;;
3592 freebsd3*|freebsd4*) elf=yes;;
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line $LINENO "configure"
3598 #include "confdefs.h"
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605 egrep "yes" >/dev/null 2>&1; then
3608 if test "X$elf" = "Xyes" ; then
3622 CPPFLAGS="$CPPFLAGS $INCLUDES"
3623 LDFLAGS="$LDFLAGS $LIBDIRS"
3625 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3626 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3627 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3628 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3632 for ac_prog in gawk mawk nawk awk
3634 # Extract the first word of "$ac_prog", so it can be a program name with args.
3635 set dummy $ac_prog; ac_word=$2
3636 echo "$as_me:$LINENO: checking for $ac_word" >&5
3637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3638 if test "${ac_cv_prog_AWK+set}" = set; then
3639 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 if test -n "$AWK"; then
3642 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 ac_cv_prog_AWK="$ac_prog"
3652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 if test -n "$AWK"; then
3662 echo "$as_me:$LINENO: result: $AWK" >&5
3663 echo "${ECHO_T}$AWK" >&6
3665 echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3669 test -n "$AWK" && break
3672 echo "$as_me:$LINENO: checking for flex" >&5
3673 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3674 if test "${pgac_cv_path_flex+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 # Let the user override the test
3678 if test -n "$FLEX"; then
3679 pgac_cv_path_flex=$FLEX
3683 for pgac_dir in $PATH; do
3685 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3688 for pgac_prog in flex lex; do
3689 pgac_candidate="$pgac_dir/$pgac_prog"
3690 if test -f "$pgac_candidate" \
3691 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3693 echo '%%' > conftest.l
3694 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3695 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3696 pgac_broken_flex=$pgac_candidate
3700 pgac_cv_path_flex=$pgac_candidate
3706 rm -f conftest.l lex.yy.c
3707 : ${pgac_cv_path_flex=no}
3711 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3712 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3713 if test x"$pgac_cv_path_flex" = x"no"; then
3714 if test -n "$pgac_broken_flex"; then
3715 { echo "$as_me:$LINENO: WARNING:
3716 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3717 *** should get version 2.5.4 or later." >&5
3718 echo "$as_me: WARNING:
3719 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3720 *** should get version 2.5.4 or later." >&2;}
3723 { echo "$as_me:$LINENO: WARNING:
3724 *** Without Flex you will not be able to build PostgreSQL from CVS or
3725 *** change any of the scanner definition files. You can obtain Flex from
3726 *** a GNU mirror site. (If you are using the official distribution of
3727 *** PostgreSQL then you do not need to worry about this because the Flex
3728 *** output is pre-generated.)" >&5
3729 echo "$as_me: WARNING:
3730 *** Without Flex you will not be able to build PostgreSQL from CVS or
3731 *** change any of the scanner definition files. You can obtain Flex from
3732 *** a GNU mirror site. (If you are using the official distribution of
3733 *** PostgreSQL then you do not need to worry about this because the Flex
3734 *** output is pre-generated.)" >&2;}
3737 if test x"$pgac_cv_path_flex" = x"no"; then
3740 FLEX=$pgac_cv_path_flex
3746 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3747 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3749 if test "$LN_S" = "ln -s"; then
3750 echo "$as_me:$LINENO: result: yes" >&5
3751 echo "${ECHO_T}yes" >&6
3753 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3754 echo "${ECHO_T}no, using $LN_S" >&6
3758 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3759 if test "${with_gnu_ld+set}" = set; then
3760 withval="$with_gnu_ld"
3761 test "$withval" = no || with_gnu_ld=yes
3766 if test "$GCC" = yes; then
3767 # Check if gcc -print-prog-name=ld gives a path.
3768 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3769 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3772 # gcc leaves a trailing carriage return which upsets mingw
3773 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3775 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3778 # Accept absolute paths.
3779 [\\/]* | [A-Za-z]:[\\/]*)
3780 re_direlt='/[^/][^/]*/\.\./'
3781 # Canonicalize the path of ld
3782 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3783 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3784 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3786 test -z "$LD" && LD="$ac_prog"
3789 # If it fails, then pretend we aren't using GCC.
3793 # If it is relative, then search for the first ld in PATH.
3797 elif test "$with_gnu_ld" = yes; then
3798 echo "$as_me:$LINENO: checking for GNU ld" >&5
3799 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3801 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3802 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3804 if test "${ac_cv_path_LD+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -z "$LD"; then
3808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3809 for ac_dir in $PATH; do
3810 test -z "$ac_dir" && ac_dir=.
3811 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3812 ac_cv_path_LD="$ac_dir/$ac_prog"
3813 # Check to see if the program is GNU ld. I'd rather use --version,
3814 # but apparently some GNU ld's only accept -v.
3815 # Break only if it was the GNU/non-GNU ld that we prefer.
3816 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3817 test "$with_gnu_ld" != no && break
3819 test "$with_gnu_ld" != yes && break
3825 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3830 if test -n "$LD"; then
3831 echo "$as_me:$LINENO: result: $LD" >&5
3832 echo "${ECHO_T}$LD" >&6
3834 echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3837 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3838 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3839 { (exit 1); exit 1; }; }
3840 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3841 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3842 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3846 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3847 ac_cv_prog_gnu_ld=yes
3849 ac_cv_prog_gnu_ld=no
3852 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3853 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3854 with_gnu_ld=$ac_cv_prog_gnu_ld
3859 case $host_os in sysv5*)
3860 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3861 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3862 if test "${pgac_cv_prog_ld_R+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3867 cat >conftest.$ac_ext <<_ACEOF
3868 #line $LINENO "configure"
3869 #include "confdefs.h"
3871 #ifdef F77_DUMMY_MAIN
3875 int F77_DUMMY_MAIN() { return 1; }
3885 rm -f conftest.$ac_objext conftest$ac_exeext
3886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3887 (eval $ac_link) 2>&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -s conftest$ac_exeext'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; }; then
3897 pgac_cv_prog_ld_R=yes
3899 echo "$as_me: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3901 pgac_cv_prog_ld_R=no
3903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3904 LDFLAGS=$pgac_save_LDFLAGS
3907 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3908 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3909 ld_R_works=$pgac_cv_prog_ld_R
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3915 echo "$as_me:$LINENO: checking for $ac_word" >&5
3916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917 if test "${ac_cv_prog_RANLIB+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 if test -n "$RANLIB"; then
3921 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 RANLIB=$ac_cv_prog_RANLIB
3940 if test -n "$RANLIB"; then
3941 echo "$as_me:$LINENO: result: $RANLIB" >&5
3942 echo "${ECHO_T}$RANLIB" >&6
3944 echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6
3949 if test -z "$ac_cv_prog_RANLIB"; then
3950 ac_ct_RANLIB=$RANLIB
3951 # Extract the first word of "ranlib", so it can be a program name with args.
3952 set dummy ranlib; ac_word=$2
3953 echo "$as_me:$LINENO: checking for $ac_word" >&5
3954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3955 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3958 if test -n "$ac_ct_RANLIB"; then
3959 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968 ac_cv_prog_ac_ct_RANLIB="ranlib"
3969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3978 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3979 if test -n "$ac_ct_RANLIB"; then
3980 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3981 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3983 echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3987 RANLIB=$ac_ct_RANLIB
3989 RANLIB="$ac_cv_prog_RANLIB"
3992 for ac_prog in lorder
3994 # Extract the first word of "$ac_prog", so it can be a program name with args.
3995 set dummy $ac_prog; ac_word=$2
3996 echo "$as_me:$LINENO: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3998 if test "${ac_cv_prog_LORDER+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 if test -n "$LORDER"; then
4002 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011 ac_cv_prog_LORDER="$ac_prog"
4012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 LORDER=$ac_cv_prog_LORDER
4021 if test -n "$LORDER"; then
4022 echo "$as_me:$LINENO: result: $LORDER" >&5
4023 echo "${ECHO_T}$LORDER" >&6
4025 echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4029 test -n "$LORDER" && break
4032 # Extract the first word of "tar", so it can be a program name with args.
4033 set dummy tar; ac_word=$2
4034 echo "$as_me:$LINENO: checking for $ac_word" >&5
4035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036 if test "${ac_cv_path_TAR+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 if test -n "$TAR"; then
4064 echo "$as_me:$LINENO: result: $TAR" >&5
4065 echo "${ECHO_T}$TAR" >&6
4067 echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6
4072 if test -n "$ac_tool_prefix"; then
4073 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4074 set dummy ${ac_tool_prefix}strip; ac_word=$2
4075 echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_prog_STRIP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -n "$STRIP"; then
4081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 STRIP=$ac_cv_prog_STRIP
4100 if test -n "$STRIP"; then
4101 echo "$as_me:$LINENO: result: $STRIP" >&5
4102 echo "${ECHO_T}$STRIP" >&6
4104 echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4109 if test -z "$ac_cv_prog_STRIP"; then
4111 # Extract the first word of "strip", so it can be a program name with args.
4112 set dummy strip; ac_word=$2
4113 echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 if test -n "$ac_ct_STRIP"; then
4119 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_ac_ct_STRIP="strip"
4129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4139 if test -n "$ac_ct_STRIP"; then
4140 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4141 echo "${ECHO_T}$ac_ct_STRIP" >&6
4143 echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4149 STRIP="$ac_cv_prog_STRIP"
4153 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4154 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4155 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4156 STRIP_STATIC_LIB="$STRIP -x"
4157 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4158 echo "$as_me:$LINENO: result: yes" >&5
4159 echo "${ECHO_T}yes" >&6
4163 echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6
4170 for ac_prog in 'bison -y'
4172 # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy $ac_prog; ac_word=$2
4174 echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176 if test "${ac_cv_prog_YACC+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 if test -n "$YACC"; then
4180 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_YACC="$ac_prog"
4190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 YACC=$ac_cv_prog_YACC
4199 if test -n "$YACC"; then
4200 echo "$as_me:$LINENO: result: $YACC" >&5
4201 echo "${ECHO_T}$YACC" >&6
4203 echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6
4207 test -n "$YACC" && break
4211 if test "$YACC"; then
4212 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4213 { echo "$as_me:$LINENO: WARNING:
4214 *** If you are going to modify the grammar files or build from CVS, the installed
4215 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4216 echo "$as_me: WARNING:
4217 *** If you are going to modify the grammar files or build from CVS, the installed
4218 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4222 if test -z "$YACC"; then
4223 { echo "$as_me:$LINENO: WARNING:
4224 *** Without Bison you will not be able to build PostgreSQL from CVS or
4225 *** change any of the parser definition files. You can obtain Bison from
4226 *** a GNU mirror site. (If you are using the official distribution of
4227 *** PostgreSQL then you do not need to worry about this because the Bison
4228 *** output is pre-generated.) To use a different yacc program (possible,
4229 *** but not recommended), set the environment variable YACC before running
4230 *** 'configure'." >&5
4231 echo "$as_me: WARNING:
4232 *** Without Bison you will not be able to build PostgreSQL from CVS or
4233 *** change any of the parser definition files. You can obtain Bison from
4234 *** a GNU mirror site. (If you are using the official distribution of
4235 *** PostgreSQL then you do not need to worry about this because the Bison
4236 *** output is pre-generated.) To use a different yacc program (possible,
4237 *** but not recommended), set the environment variable YACC before running
4238 *** 'configure'." >&2;}
4242 # Extract the first word of "perl", so it can be a program name with args.
4243 set dummy perl; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_path_PERL+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 PERL=$ac_cv_path_PERL
4273 if test -n "$PERL"; then
4274 echo "$as_me:$LINENO: result: $PERL" >&5
4275 echo "${ECHO_T}$PERL" >&6
4277 echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4281 if test "$with_perl" = yes; then
4283 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4284 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4285 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4286 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4287 echo "${ECHO_T}$perl_archlibexp" >&6
4288 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4289 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4290 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4291 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4292 echo "${ECHO_T}$perl_privlibexp" >&6
4293 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4294 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4295 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4296 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4297 echo "${ECHO_T}$perl_useshrplib" >&6
4299 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4300 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4301 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4302 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4303 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4304 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4305 echo "${ECHO_T}$perl_embed_ldflags" >&6
4308 if test "$with_python" = yes; then
4309 # Extract the first word of "python", so it can be a program name with args.
4310 set dummy python; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_path_PYTHON+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 PYTHON=$ac_cv_path_PYTHON
4340 if test -n "$PYTHON"; then
4341 echo "$as_me:$LINENO: result: $PYTHON" >&5
4342 echo "${ECHO_T}$PYTHON" >&6
4344 echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4348 if test x"$PYTHON" = x""; then
4349 { { echo "$as_me:$LINENO: error: Python not found" >&5
4350 echo "$as_me: error: Python not found" >&2;}
4351 { (exit 1); exit 1; }; }
4355 echo "$as_me:$LINENO: checking for Python distutils module" >&5
4356 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6
4357 if "${PYTHON}" 2>&- -c 'import distutils'
4359 echo "$as_me:$LINENO: result: yes" >&5
4360 echo "${ECHO_T}yes" >&6
4362 echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4364 { { echo "$as_me:$LINENO: error: distutils module not found" >&5
4365 echo "$as_me: error: distutils module not found" >&2;}
4366 { (exit 1); exit 1; }; }
4368 echo "$as_me:$LINENO: checking Python configuration directory" >&5
4369 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6
4370 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4371 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
4372 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
4374 # This should be enough of a message.
4375 echo "$as_me:$LINENO: result: $python_configdir" >&5
4376 echo "${ECHO_T}$python_configdir" >&6
4379 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4380 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4382 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
4383 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
4384 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
4385 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
4387 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
4389 # New way: use the official shared library
4390 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
4391 python_libspec="-L${python_libdir} -l${ldlibrary}"
4393 # Old way: use libpython from python_configdir
4394 python_libdir="${python_configdir}"
4395 python_libspec="-L${python_libdir} -lpython${python_version}"
4398 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
4400 echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
4401 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6
4411 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4414 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4415 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4416 if test "${ac_cv_lib_bsd_main+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 ac_check_lib_save_LIBS=$LIBS
4421 cat >conftest.$ac_ext <<_ACEOF
4422 #line $LINENO "configure"
4423 #include "confdefs.h"
4426 #ifdef F77_DUMMY_MAIN
4430 int F77_DUMMY_MAIN() { return 1; }
4440 rm -f conftest.$ac_objext conftest$ac_exeext
4441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4442 (eval $ac_link) 2>&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); } &&
4446 { ac_try='test -s conftest$ac_exeext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_lib_bsd_main=yes
4454 echo "$as_me: failed program was:" >&5
4455 cat conftest.$ac_ext >&5
4456 ac_cv_lib_bsd_main=no
4458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4459 LIBS=$ac_check_lib_save_LIBS
4461 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4462 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4463 if test $ac_cv_lib_bsd_main = yes; then
4464 cat >>confdefs.h <<_ACEOF
4465 #define HAVE_LIBBSD 1
4474 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4475 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4476 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 ac_check_lib_save_LIBS=$LIBS
4481 cat >conftest.$ac_ext <<_ACEOF
4482 #line $LINENO "configure"
4483 #include "confdefs.h"
4485 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4491 char setproctitle ();
4492 #ifdef F77_DUMMY_MAIN
4496 int F77_DUMMY_MAIN() { return 1; }
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_lib_util_setproctitle=yes
4520 echo "$as_me: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 ac_cv_lib_util_setproctitle=no
4524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525 LIBS=$ac_check_lib_save_LIBS
4527 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4528 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4529 if test $ac_cv_lib_util_setproctitle = yes; then
4530 cat >>confdefs.h <<_ACEOF
4531 #define HAVE_LIBUTIL 1
4539 echo "$as_me:$LINENO: checking for main in -lm" >&5
4540 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4541 if test "${ac_cv_lib_m_main+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 ac_check_lib_save_LIBS=$LIBS
4546 cat >conftest.$ac_ext <<_ACEOF
4547 #line $LINENO "configure"
4548 #include "confdefs.h"
4551 #ifdef F77_DUMMY_MAIN
4555 int F77_DUMMY_MAIN() { return 1; }
4565 rm -f conftest.$ac_objext conftest$ac_exeext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567 (eval $ac_link) 2>&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try='test -s conftest$ac_exeext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_cv_lib_m_main=yes
4579 echo "$as_me: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4584 LIBS=$ac_check_lib_save_LIBS
4586 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4587 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4588 if test $ac_cv_lib_m_main = yes; then
4589 cat >>confdefs.h <<_ACEOF
4598 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4599 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4600 if test "${ac_cv_lib_dl_main+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 ac_check_lib_save_LIBS=$LIBS
4605 cat >conftest.$ac_ext <<_ACEOF
4606 #line $LINENO "configure"
4607 #include "confdefs.h"
4610 #ifdef F77_DUMMY_MAIN
4614 int F77_DUMMY_MAIN() { return 1; }
4624 rm -f conftest.$ac_objext conftest$ac_exeext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4626 (eval $ac_link) 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -s conftest$ac_exeext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_cv_lib_dl_main=yes
4638 echo "$as_me: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 ac_cv_lib_dl_main=no
4642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4643 LIBS=$ac_check_lib_save_LIBS
4645 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4646 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4647 if test $ac_cv_lib_dl_main = yes; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define HAVE_LIBDL 1
4657 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4658 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4659 if test "${ac_cv_lib_nsl_main+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 ac_check_lib_save_LIBS=$LIBS
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4669 #ifdef F77_DUMMY_MAIN
4673 int F77_DUMMY_MAIN() { return 1; }
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -s conftest$ac_exeext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 ac_cv_lib_nsl_main=yes
4697 echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 ac_cv_lib_nsl_main=no
4701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4702 LIBS=$ac_check_lib_save_LIBS
4704 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4705 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4706 if test $ac_cv_lib_nsl_main = yes; then
4707 cat >>confdefs.h <<_ACEOF
4708 #define HAVE_LIBNSL 1
4716 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4717 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4718 if test "${ac_cv_lib_socket_main+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 ac_check_lib_save_LIBS=$LIBS
4722 LIBS="-lsocket $LIBS"
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line $LINENO "configure"
4725 #include "confdefs.h"
4728 #ifdef F77_DUMMY_MAIN
4732 int F77_DUMMY_MAIN() { return 1; }
4742 rm -f conftest.$ac_objext conftest$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -s conftest$ac_exeext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_cv_lib_socket_main=yes
4756 echo "$as_me: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4758 ac_cv_lib_socket_main=no
4760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4761 LIBS=$ac_check_lib_save_LIBS
4763 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4764 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4765 if test $ac_cv_lib_socket_main = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767 #define HAVE_LIBSOCKET 1
4770 LIBS="-lsocket $LIBS"
4775 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4776 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4777 if test "${ac_cv_lib_ipc_main+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 ac_check_lib_save_LIBS=$LIBS
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #line $LINENO "configure"
4784 #include "confdefs.h"
4787 #ifdef F77_DUMMY_MAIN
4791 int F77_DUMMY_MAIN() { return 1; }
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803 (eval $ac_link) 2>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -s conftest$ac_exeext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 ac_cv_lib_ipc_main=yes
4815 echo "$as_me: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 ac_cv_lib_ipc_main=no
4819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 LIBS=$ac_check_lib_save_LIBS
4822 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4823 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4824 if test $ac_cv_lib_ipc_main = yes; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define HAVE_LIBIPC 1
4834 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4835 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4836 if test "${ac_cv_lib_IPC_main+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_check_lib_save_LIBS=$LIBS
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4846 #ifdef F77_DUMMY_MAIN
4850 int F77_DUMMY_MAIN() { return 1; }
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862 (eval $ac_link) 2>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_lib_IPC_main=yes
4874 echo "$as_me: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 ac_cv_lib_IPC_main=no
4878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4879 LIBS=$ac_check_lib_save_LIBS
4881 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4882 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4883 if test $ac_cv_lib_IPC_main = yes; then
4884 cat >>confdefs.h <<_ACEOF
4885 #define HAVE_LIBIPC 1
4893 echo "$as_me:$LINENO: checking for main in -llc" >&5
4894 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4895 if test "${ac_cv_lib_lc_main+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_check_lib_save_LIBS=$LIBS
4900 cat >conftest.$ac_ext <<_ACEOF
4901 #line $LINENO "configure"
4902 #include "confdefs.h"
4905 #ifdef F77_DUMMY_MAIN
4909 int F77_DUMMY_MAIN() { return 1; }
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
4925 { ac_try='test -s conftest$ac_exeext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_lib_lc_main=yes
4933 echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 ac_cv_lib_lc_main=no
4937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4938 LIBS=$ac_check_lib_save_LIBS
4940 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4941 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4942 if test $ac_cv_lib_lc_main = yes; then
4943 cat >>confdefs.h <<_ACEOF
4944 #define HAVE_LIBLC 1
4952 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4953 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4954 if test "${ac_cv_lib_dld_main+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 ac_check_lib_save_LIBS=$LIBS
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 #include "confdefs.h"
4964 #ifdef F77_DUMMY_MAIN
4968 int F77_DUMMY_MAIN() { return 1; }
4978 rm -f conftest.$ac_objext conftest$ac_exeext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4980 (eval $ac_link) 2>&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -s conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_cv_lib_dld_main=yes
4992 echo "$as_me: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 ac_cv_lib_dld_main=no
4996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4997 LIBS=$ac_check_lib_save_LIBS
4999 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5000 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5001 if test $ac_cv_lib_dld_main = yes; then
5002 cat >>confdefs.h <<_ACEOF
5003 #define HAVE_LIBDLD 1
5011 echo "$as_me:$LINENO: checking for main in -lld" >&5
5012 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5013 if test "${ac_cv_lib_ld_main+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 ac_check_lib_save_LIBS=$LIBS
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 #include "confdefs.h"
5023 #ifdef F77_DUMMY_MAIN
5027 int F77_DUMMY_MAIN() { return 1; }
5037 rm -f conftest.$ac_objext conftest$ac_exeext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039 (eval $ac_link) 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 ac_cv_lib_ld_main=yes
5051 echo "$as_me: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 ac_cv_lib_ld_main=no
5055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5056 LIBS=$ac_check_lib_save_LIBS
5058 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5059 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5060 if test $ac_cv_lib_ld_main = yes; then
5061 cat >>confdefs.h <<_ACEOF
5062 #define HAVE_LIBLD 1
5070 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5071 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5072 if test "${ac_cv_lib_compat_main+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 ac_check_lib_save_LIBS=$LIBS
5076 LIBS="-lcompat $LIBS"
5077 cat >conftest.$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5079 #include "confdefs.h"
5082 #ifdef F77_DUMMY_MAIN
5086 int F77_DUMMY_MAIN() { return 1; }
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_lib_compat_main=yes
5110 echo "$as_me: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 ac_cv_lib_compat_main=no
5114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5115 LIBS=$ac_check_lib_save_LIBS
5117 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5118 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5119 if test $ac_cv_lib_compat_main = yes; then
5120 cat >>confdefs.h <<_ACEOF
5121 #define HAVE_LIBCOMPAT 1
5124 LIBS="-lcompat $LIBS"
5129 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5130 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5131 if test "${ac_cv_lib_BSD_main+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 ac_check_lib_save_LIBS=$LIBS
5136 cat >conftest.$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5138 #include "confdefs.h"
5141 #ifdef F77_DUMMY_MAIN
5145 int F77_DUMMY_MAIN() { return 1; }
5155 rm -f conftest.$ac_objext conftest$ac_exeext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5157 (eval $ac_link) 2>&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -s conftest$ac_exeext'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5167 ac_cv_lib_BSD_main=yes
5169 echo "$as_me: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5171 ac_cv_lib_BSD_main=no
5173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5174 LIBS=$ac_check_lib_save_LIBS
5176 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5177 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5178 if test $ac_cv_lib_BSD_main = yes; then
5179 cat >>confdefs.h <<_ACEOF
5180 #define HAVE_LIBBSD 1
5188 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5189 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5190 if test "${ac_cv_lib_gen_main+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 ac_check_lib_save_LIBS=$LIBS
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 #include "confdefs.h"
5200 #ifdef F77_DUMMY_MAIN
5204 int F77_DUMMY_MAIN() { return 1; }
5214 rm -f conftest.$ac_objext conftest$ac_exeext
5215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 ac_cv_lib_gen_main=yes
5228 echo "$as_me: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5230 ac_cv_lib_gen_main=no
5232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233 LIBS=$ac_check_lib_save_LIBS
5235 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5236 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5237 if test $ac_cv_lib_gen_main = yes; then
5238 cat >>confdefs.h <<_ACEOF
5239 #define HAVE_LIBGEN 1
5247 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5248 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5249 if test "${ac_cv_lib_PW_main+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 ac_check_lib_save_LIBS=$LIBS
5254 cat >conftest.$ac_ext <<_ACEOF
5255 #line $LINENO "configure"
5256 #include "confdefs.h"
5259 #ifdef F77_DUMMY_MAIN
5263 int F77_DUMMY_MAIN() { return 1; }
5273 rm -f conftest.$ac_objext conftest$ac_exeext
5274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275 (eval $ac_link) 2>&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -s conftest$ac_exeext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_lib_PW_main=yes
5287 echo "$as_me: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5289 ac_cv_lib_PW_main=no
5291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5292 LIBS=$ac_check_lib_save_LIBS
5294 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5295 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5296 if test $ac_cv_lib_PW_main = yes; then
5297 cat >>confdefs.h <<_ACEOF
5298 #define HAVE_LIBPW 1
5306 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5307 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5308 if test "${ac_cv_lib_resolv_main+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 ac_check_lib_save_LIBS=$LIBS
5312 LIBS="-lresolv $LIBS"
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5315 #include "confdefs.h"
5318 #ifdef F77_DUMMY_MAIN
5322 int F77_DUMMY_MAIN() { return 1; }
5332 rm -f conftest.$ac_objext conftest$ac_exeext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5334 (eval $ac_link) 2>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest$ac_exeext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_cv_lib_resolv_main=yes
5346 echo "$as_me: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5348 ac_cv_lib_resolv_main=no
5350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5351 LIBS=$ac_check_lib_save_LIBS
5353 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5354 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5355 if test $ac_cv_lib_resolv_main = yes; then
5356 cat >>confdefs.h <<_ACEOF
5357 #define HAVE_LIBRESOLV 1
5360 LIBS="-lresolv $LIBS"
5364 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5365 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5366 if test "${ac_cv_search_getopt_long+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 ac_func_search_save_LIBS=$LIBS
5370 ac_cv_search_getopt_long=no
5371 cat >conftest.$ac_ext <<_ACEOF
5372 #line $LINENO "configure"
5373 #include "confdefs.h"
5375 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381 char getopt_long ();
5382 #ifdef F77_DUMMY_MAIN
5386 int F77_DUMMY_MAIN() { return 1; }
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_search_getopt_long="none required"
5410 echo "$as_me: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5414 if test "$ac_cv_search_getopt_long" = no; then
5415 for ac_lib in getopt gnugetopt; do
5416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5417 cat >conftest.$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5419 #include "confdefs.h"
5421 /* Override any gcc2 internal prototype to avoid an error. */
5425 /* We use char because int might match the return type of a gcc2
5426 builtin and then its argument prototype would still apply. */
5427 char getopt_long ();
5428 #ifdef F77_DUMMY_MAIN
5432 int F77_DUMMY_MAIN() { return 1; }
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444 (eval $ac_link) 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -s conftest$ac_exeext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 ac_cv_search_getopt_long="-l$ac_lib"
5457 echo "$as_me: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5463 LIBS=$ac_func_search_save_LIBS
5465 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5466 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5467 if test "$ac_cv_search_getopt_long" != no; then
5468 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5474 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5475 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5476 if test "${ac_cv_lib_unix_main+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 ac_check_lib_save_LIBS=$LIBS
5481 cat >conftest.$ac_ext <<_ACEOF
5482 #line $LINENO "configure"
5483 #include "confdefs.h"
5486 #ifdef F77_DUMMY_MAIN
5490 int F77_DUMMY_MAIN() { return 1; }
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5502 (eval $ac_link) 2>&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -s conftest$ac_exeext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 ac_cv_lib_unix_main=yes
5514 echo "$as_me: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 ac_cv_lib_unix_main=no
5518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5519 LIBS=$ac_check_lib_save_LIBS
5521 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5522 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5523 if test $ac_cv_lib_unix_main = yes; then
5524 cat >>confdefs.h <<_ACEOF
5525 #define HAVE_LIBUNIX 1
5532 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5533 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5534 if test "${ac_cv_search_crypt+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 ac_func_search_save_LIBS=$LIBS
5538 ac_cv_search_crypt=no
5539 cat >conftest.$ac_ext <<_ACEOF
5540 #line $LINENO "configure"
5541 #include "confdefs.h"
5543 /* Override any gcc2 internal prototype to avoid an error. */
5547 /* We use char because int might match the return type of a gcc2
5548 builtin and then its argument prototype would still apply. */
5550 #ifdef F77_DUMMY_MAIN
5554 int F77_DUMMY_MAIN() { return 1; }
5564 rm -f conftest.$ac_objext conftest$ac_exeext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5566 (eval $ac_link) 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -s conftest$ac_exeext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_search_crypt="none required"
5578 echo "$as_me: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5582 if test "$ac_cv_search_crypt" = no; then
5583 for ac_lib in crypt; do
5584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5585 cat >conftest.$ac_ext <<_ACEOF
5586 #line $LINENO "configure"
5587 #include "confdefs.h"
5589 /* Override any gcc2 internal prototype to avoid an error. */
5593 /* We use char because int might match the return type of a gcc2
5594 builtin and then its argument prototype would still apply. */
5596 #ifdef F77_DUMMY_MAIN
5600 int F77_DUMMY_MAIN() { return 1; }
5610 rm -f conftest.$ac_objext conftest$ac_exeext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -s conftest$ac_exeext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_search_crypt="-l$ac_lib"
5625 echo "$as_me: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_func_search_save_LIBS
5633 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5634 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5635 if test "$ac_cv_search_crypt" != no; then
5636 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5641 if test "$PORTNAME" = "beos"
5644 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5645 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5646 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 ac_check_lib_save_LIBS=$LIBS
5651 cat >conftest.$ac_ext <<_ACEOF
5652 #line $LINENO "configure"
5653 #include "confdefs.h"
5655 /* Override any gcc2 internal prototype to avoid an error. */
5659 /* We use char because int might match the return type of a gcc2
5660 builtin and then its argument prototype would still apply. */
5661 char __inet_ntoa ();
5662 #ifdef F77_DUMMY_MAIN
5666 int F77_DUMMY_MAIN() { return 1; }
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -s conftest$ac_exeext'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 ac_cv_lib_bind___inet_ntoa=yes
5690 echo "$as_me: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5692 ac_cv_lib_bind___inet_ntoa=no
5694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5695 LIBS=$ac_check_lib_save_LIBS
5697 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5698 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5699 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5700 cat >>confdefs.h <<_ACEOF
5701 #define HAVE_LIBBIND 1
5710 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5711 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5712 if test "${ac_cv_search_fdatasync+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 ac_func_search_save_LIBS=$LIBS
5716 ac_cv_search_fdatasync=no
5717 cat >conftest.$ac_ext <<_ACEOF
5718 #line $LINENO "configure"
5719 #include "confdefs.h"
5721 /* Override any gcc2 internal prototype to avoid an error. */
5725 /* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5728 #ifdef F77_DUMMY_MAIN
5732 int F77_DUMMY_MAIN() { return 1; }
5742 rm -f conftest.$ac_objext conftest$ac_exeext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5744 (eval $ac_link) 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -s conftest$ac_exeext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5754 ac_cv_search_fdatasync="none required"
5756 echo "$as_me: failed program was:" >&5
5757 cat conftest.$ac_ext >&5
5759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5760 if test "$ac_cv_search_fdatasync" = no; then
5761 for ac_lib in rt posix4; do
5762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5763 cat >conftest.$ac_ext <<_ACEOF
5764 #line $LINENO "configure"
5765 #include "confdefs.h"
5767 /* Override any gcc2 internal prototype to avoid an error. */
5771 /* We use char because int might match the return type of a gcc2
5772 builtin and then its argument prototype would still apply. */
5774 #ifdef F77_DUMMY_MAIN
5778 int F77_DUMMY_MAIN() { return 1; }
5788 rm -f conftest.$ac_objext conftest$ac_exeext
5789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5790 (eval $ac_link) 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } &&
5794 { ac_try='test -s conftest$ac_exeext'
5795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5800 ac_cv_search_fdatasync="-l$ac_lib"
5803 echo "$as_me: failed program was:" >&5
5804 cat conftest.$ac_ext >&5
5806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809 LIBS=$ac_func_search_save_LIBS
5811 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5812 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5813 if test "$ac_cv_search_fdatasync" != no; then
5814 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5820 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5821 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5822 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 ac_check_lib_save_LIBS=$LIBS
5826 LIBS="-lcygipc $LIBS"
5827 cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5829 #include "confdefs.h"
5831 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5838 #ifdef F77_DUMMY_MAIN
5842 int F77_DUMMY_MAIN() { return 1; }
5852 rm -f conftest.$ac_objext conftest$ac_exeext
5853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5854 (eval $ac_link) 2>&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } &&
5858 { ac_try='test -s conftest$ac_exeext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 ac_cv_lib_cygipc_shmget=yes
5866 echo "$as_me: failed program was:" >&5
5867 cat conftest.$ac_ext >&5
5868 ac_cv_lib_cygipc_shmget=no
5870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5871 LIBS=$ac_check_lib_save_LIBS
5873 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5874 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5875 if test $ac_cv_lib_cygipc_shmget = yes; then
5876 cat >>confdefs.h <<_ACEOF
5877 #define HAVE_LIBCYGIPC 1
5880 LIBS="-lcygipc $LIBS"
5885 if test "$PORTNAME" = "win32"
5888 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5889 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5890 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 ac_check_lib_save_LIBS=$LIBS
5894 LIBS="-lwsock32 $LIBS"
5895 cat >conftest.$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5897 #include "confdefs.h"
5900 #ifdef F77_DUMMY_MAIN
5904 int F77_DUMMY_MAIN() { return 1; }
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916 (eval $ac_link) 2>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -s conftest$ac_exeext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_lib_wsock32_main=yes
5928 echo "$as_me: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5930 ac_cv_lib_wsock32_main=no
5932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5933 LIBS=$ac_check_lib_save_LIBS
5935 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5936 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5937 if test $ac_cv_lib_wsock32_main = yes; then
5938 cat >>confdefs.h <<_ACEOF
5939 #define HAVE_LIBWSOCK32 1
5942 LIBS="-lwsock32 $LIBS"
5948 if test "$with_readline" = yes; then
5950 echo "$as_me:$LINENO: checking for readline" >&5
5951 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5953 if test "${pgac_cv_check_readline+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 pgac_cv_check_readline=no
5957 pgac_save_LIBS=$LIBS
5958 for pgac_rllib in -lreadline -ledit ; do
5959 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5960 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
5961 cat >conftest.$ac_ext <<_ACEOF
5962 #line $LINENO "configure"
5963 #include "confdefs.h"
5965 /* Override any gcc2 internal prototype to avoid an error. */
5969 /* We use char because int might match the return type of a gcc2
5970 builtin and then its argument prototype would still apply. */
5972 #ifdef F77_DUMMY_MAIN
5976 int F77_DUMMY_MAIN() { return 1; }
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5988 (eval $ac_link) 2>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -s conftest$ac_exeext'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5999 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
6000 # recognize dependent libraries; assume curses is needed if we didn't
6001 # find any dependency.
6003 netbsd* | openbsd* | irix*)
6004 if test x"$pgac_lib" = x"" ; then
6005 pgac_lib=" -lcurses"
6009 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6013 echo "$as_me: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6019 LIBS=$pgac_save_LIBS
6023 if test "$pgac_cv_check_readline" != no ; then
6025 cat >>confdefs.h <<\_ACEOF
6026 #define HAVE_LIBREADLINE 1
6029 LIBS="$pgac_cv_check_readline $LIBS"
6030 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6031 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6033 echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6
6036 if test x"$pgac_cv_check_readline" = x"no"; then
6037 { { echo "$as_me:$LINENO: error: readline library not found
6038 If you have readline already installed, see config.log for details on the
6039 failure. It is possible the compiler isn't looking in the proper directory.
6040 Use --without-readline to disable readline support." >&5
6041 echo "$as_me: error: readline library not found
6042 If you have readline already installed, see config.log for details on the
6043 failure. It is possible the compiler isn't looking in the proper directory.
6044 Use --without-readline to disable readline support." >&2;}
6045 { (exit 1); exit 1; }; }
6049 if test "$with_zlib" = yes; then
6051 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6052 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6053 if test "${ac_cv_lib_z_inflate+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 ac_check_lib_save_LIBS=$LIBS
6058 cat >conftest.$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6060 #include "confdefs.h"
6062 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6069 #ifdef F77_DUMMY_MAIN
6073 int F77_DUMMY_MAIN() { return 1; }
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_lib_z_inflate=yes
6097 echo "$as_me: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6099 ac_cv_lib_z_inflate=no
6101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6104 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6105 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6106 if test $ac_cv_lib_z_inflate = yes; then
6107 cat >>confdefs.h <<_ACEOF
6114 { { echo "$as_me:$LINENO: error: zlib library not found
6115 If you have zlib already installed, see config.log for details on the
6116 failure. It is possible the compiler isn't looking in the proper directory.
6117 Use --without-zlib to disable zlib support." >&5
6118 echo "$as_me: error: zlib library not found
6119 If you have zlib already installed, see config.log for details on the
6120 failure. It is possible the compiler isn't looking in the proper directory.
6121 Use --without-zlib to disable zlib support." >&2;}
6122 { (exit 1); exit 1; }; }
6127 if test "$enable_spinlocks" = yes; then
6129 cat >>confdefs.h <<\_ACEOF
6130 #define HAVE_SPINLOCKS 1
6134 { echo "$as_me:$LINENO: WARNING:
6135 *** Not using spinlocks will cause poor performance." >&5
6136 echo "$as_me: WARNING:
6137 *** Not using spinlocks will cause poor performance." >&2;}
6140 if test "$with_krb4" = yes ; then
6142 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6143 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6144 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 ac_check_lib_save_LIBS=$LIBS
6149 cat >conftest.$ac_ext <<_ACEOF
6150 #line $LINENO "configure"
6151 #include "confdefs.h"
6153 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6159 char des_encrypt ();
6160 #ifdef F77_DUMMY_MAIN
6164 int F77_DUMMY_MAIN() { return 1; }
6174 rm -f conftest.$ac_objext conftest$ac_exeext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6176 (eval $ac_link) 2>&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -s conftest$ac_exeext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_lib_des_des_encrypt=yes
6188 echo "$as_me: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6190 ac_cv_lib_des_des_encrypt=no
6192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6193 LIBS=$ac_check_lib_save_LIBS
6195 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6196 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6197 if test $ac_cv_lib_des_des_encrypt = yes; then
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_LIBDES 1
6205 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6206 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6207 { (exit 1); exit 1; }; }
6211 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6212 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6213 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 ac_check_lib_save_LIBS=$LIBS
6218 cat >conftest.$ac_ext <<_ACEOF
6219 #line $LINENO "configure"
6220 #include "confdefs.h"
6222 /* Override any gcc2 internal prototype to avoid an error. */
6226 /* We use char because int might match the return type of a gcc2
6227 builtin and then its argument prototype would still apply. */
6228 char krb_sendauth ();
6229 #ifdef F77_DUMMY_MAIN
6233 int F77_DUMMY_MAIN() { return 1; }
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6245 (eval $ac_link) 2>&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try='test -s conftest$ac_exeext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_cv_lib_krb_krb_sendauth=yes
6257 echo "$as_me: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6259 ac_cv_lib_krb_krb_sendauth=no
6261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6262 LIBS=$ac_check_lib_save_LIBS
6264 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6265 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6266 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268 #define HAVE_LIBKRB 1
6274 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6275 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6276 { (exit 1); exit 1; }; }
6280 for ac_func in gethostname
6282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6283 echo "$as_me:$LINENO: checking for $ac_func" >&5
6284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6285 if eval "test \"\${$as_ac_var+set}\" = set"; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 cat >conftest.$ac_ext <<_ACEOF
6289 #line $LINENO "configure"
6290 #include "confdefs.h"
6291 /* System header to define __stub macros and hopefully few prototypes,
6292 which can conflict with char $ac_func (); below. */
6294 /* Override any gcc2 internal prototype to avoid an error. */
6298 /* We use char because int might match the return type of a gcc2
6299 builtin and then its argument prototype would still apply. */
6303 #ifdef F77_DUMMY_MAIN
6307 int F77_DUMMY_MAIN() { return 1; }
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6325 rm -f conftest.$ac_objext conftest$ac_exeext
6326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6327 (eval $ac_link) 2>&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } &&
6331 { ac_try='test -s conftest$ac_exeext'
6332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 eval "$as_ac_var=yes"
6339 echo "$as_me: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6341 eval "$as_ac_var=no"
6343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6347 if test `eval echo '${'$as_ac_var'}'` = yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6353 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6360 if test "$with_krb5" = yes ; then
6361 if test "$PORTNAME" != "win32"; then
6362 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6363 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6364 if test "${ac_cv_search_com_err+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 ac_func_search_save_LIBS=$LIBS
6368 ac_cv_search_com_err=no
6369 cat >conftest.$ac_ext <<_ACEOF
6370 #line $LINENO "configure"
6371 #include "confdefs.h"
6373 /* Override any gcc2 internal prototype to avoid an error. */
6377 /* We use char because int might match the return type of a gcc2
6378 builtin and then its argument prototype would still apply. */
6380 #ifdef F77_DUMMY_MAIN
6384 int F77_DUMMY_MAIN() { return 1; }
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6396 (eval $ac_link) 2>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } &&
6400 { ac_try='test -s conftest$ac_exeext'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6406 ac_cv_search_com_err="none required"
6408 echo "$as_me: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6412 if test "$ac_cv_search_com_err" = no; then
6413 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 #include "confdefs.h"
6419 /* Override any gcc2 internal prototype to avoid an error. */
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6426 #ifdef F77_DUMMY_MAIN
6430 int F77_DUMMY_MAIN() { return 1; }
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try='test -s conftest$ac_exeext'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 ac_cv_search_com_err="-l$ac_lib"
6455 echo "$as_me: failed program was:" >&5
6456 cat conftest.$ac_ext >&5
6458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6461 LIBS=$ac_func_search_save_LIBS
6463 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6464 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6465 if test "$ac_cv_search_com_err" != no; then
6466 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6469 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6470 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6471 { (exit 1); exit 1; }; }
6474 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6475 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6476 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6479 ac_func_search_save_LIBS=$LIBS
6480 ac_cv_search_krb5_encrypt=no
6481 cat >conftest.$ac_ext <<_ACEOF
6482 #line $LINENO "configure"
6483 #include "confdefs.h"
6485 /* Override any gcc2 internal prototype to avoid an error. */
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6491 char krb5_encrypt ();
6492 #ifdef F77_DUMMY_MAIN
6496 int F77_DUMMY_MAIN() { return 1; }
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508 (eval $ac_link) 2>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try='test -s conftest$ac_exeext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_cv_search_krb5_encrypt="none required"
6520 echo "$as_me: failed program was:" >&5
6521 cat conftest.$ac_ext >&5
6523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6524 if test "$ac_cv_search_krb5_encrypt" = no; then
6525 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6527 cat >conftest.$ac_ext <<_ACEOF
6528 #line $LINENO "configure"
6529 #include "confdefs.h"
6531 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6537 char krb5_encrypt ();
6538 #ifdef F77_DUMMY_MAIN
6542 int F77_DUMMY_MAIN() { return 1; }
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554 (eval $ac_link) 2>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } &&
6558 { ac_try='test -s conftest$ac_exeext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 ac_cv_search_krb5_encrypt="-l$ac_lib"
6567 echo "$as_me: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6573 LIBS=$ac_func_search_save_LIBS
6575 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6576 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6577 if test "$ac_cv_search_krb5_encrypt" != no; then
6578 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6581 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6582 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6583 { (exit 1); exit 1; }; }
6586 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6587 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6588 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 ac_func_search_save_LIBS=$LIBS
6592 ac_cv_search_krb5_sendauth=no
6593 cat >conftest.$ac_ext <<_ACEOF
6594 #line $LINENO "configure"
6595 #include "confdefs.h"
6597 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6603 char krb5_sendauth ();
6604 #ifdef F77_DUMMY_MAIN
6608 int F77_DUMMY_MAIN() { return 1; }
6618 rm -f conftest.$ac_objext conftest$ac_exeext
6619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6620 (eval $ac_link) 2>&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try='test -s conftest$ac_exeext'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6630 ac_cv_search_krb5_sendauth="none required"
6632 echo "$as_me: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6636 if test "$ac_cv_search_krb5_sendauth" = no; then
6637 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6639 cat >conftest.$ac_ext <<_ACEOF
6640 #line $LINENO "configure"
6641 #include "confdefs.h"
6643 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */
6649 char krb5_sendauth ();
6650 #ifdef F77_DUMMY_MAIN
6654 int F77_DUMMY_MAIN() { return 1; }
6664 rm -f conftest.$ac_objext conftest$ac_exeext
6665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6666 (eval $ac_link) 2>&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } &&
6670 { ac_try='test -s conftest$ac_exeext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 ac_cv_search_krb5_sendauth="-l$ac_lib"
6679 echo "$as_me: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6685 LIBS=$ac_func_search_save_LIBS
6687 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6688 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6689 if test "$ac_cv_search_krb5_sendauth" != no; then
6690 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6693 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6694 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6695 { (exit 1); exit 1; }; }
6699 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6700 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6701 if test "${ac_cv_search_com_err+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_func_search_save_LIBS=$LIBS
6705 ac_cv_search_com_err=no
6706 cat >conftest.$ac_ext <<_ACEOF
6707 #line $LINENO "configure"
6708 #include "confdefs.h"
6710 /* Override any gcc2 internal prototype to avoid an error. */
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6717 #ifdef F77_DUMMY_MAIN
6721 int F77_DUMMY_MAIN() { return 1; }
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733 (eval $ac_link) 2>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } &&
6737 { ac_try='test -s conftest$ac_exeext'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; }; then
6743 ac_cv_search_com_err="none required"
6745 echo "$as_me: failed program was:" >&5
6746 cat conftest.$ac_ext >&5
6748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6749 if test "$ac_cv_search_com_err" = no; then
6750 for ac_lib in 'comerr32 -lkrb5_32'; do
6751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6752 cat >conftest.$ac_ext <<_ACEOF
6753 #line $LINENO "configure"
6754 #include "confdefs.h"
6756 /* Override any gcc2 internal prototype to avoid an error. */
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6763 #ifdef F77_DUMMY_MAIN
6767 int F77_DUMMY_MAIN() { return 1; }
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6779 (eval $ac_link) 2>&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } &&
6783 { ac_try='test -s conftest$ac_exeext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_search_com_err="-l$ac_lib"
6792 echo "$as_me: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6798 LIBS=$ac_func_search_save_LIBS
6800 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6801 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6802 if test "$ac_cv_search_com_err" != no; then
6803 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6806 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6807 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6808 { (exit 1); exit 1; }; }
6814 if test "$with_openssl" = yes ; then
6815 if test "$PORTNAME" != "win32"; then
6817 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6818 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6819 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 ac_check_lib_save_LIBS=$LIBS
6823 LIBS="-lcrypto $LIBS"
6824 cat >conftest.$ac_ext <<_ACEOF
6825 #line $LINENO "configure"
6826 #include "confdefs.h"
6828 /* Override any gcc2 internal prototype to avoid an error. */
6832 /* We use char because int might match the return type of a gcc2
6833 builtin and then its argument prototype would still apply. */
6834 char CRYPTO_new_ex_data ();
6835 #ifdef F77_DUMMY_MAIN
6839 int F77_DUMMY_MAIN() { return 1; }
6844 CRYPTO_new_ex_data ();
6849 rm -f conftest.$ac_objext conftest$ac_exeext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6851 (eval $ac_link) 2>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } &&
6855 { ac_try='test -s conftest$ac_exeext'
6856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6863 echo "$as_me: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6865 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6868 LIBS=$ac_check_lib_save_LIBS
6870 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6871 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6872 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6873 cat >>confdefs.h <<_ACEOF
6874 #define HAVE_LIBCRYPTO 1
6877 LIBS="-lcrypto $LIBS"
6880 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6881 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6882 { (exit 1); exit 1; }; }
6886 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6887 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6888 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 ac_check_lib_save_LIBS=$LIBS
6893 cat >conftest.$ac_ext <<_ACEOF
6894 #line $LINENO "configure"
6895 #include "confdefs.h"
6897 /* Override any gcc2 internal prototype to avoid an error. */
6901 /* We use char because int might match the return type of a gcc2
6902 builtin and then its argument prototype would still apply. */
6903 char SSL_library_init ();
6904 #ifdef F77_DUMMY_MAIN
6908 int F77_DUMMY_MAIN() { return 1; }
6913 SSL_library_init ();
6918 rm -f conftest.$ac_objext conftest$ac_exeext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6920 (eval $ac_link) 2>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } &&
6924 { ac_try='test -s conftest$ac_exeext'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; }; then
6930 ac_cv_lib_ssl_SSL_library_init=yes
6932 echo "$as_me: failed program was:" >&5
6933 cat conftest.$ac_ext >&5
6934 ac_cv_lib_ssl_SSL_library_init=no
6936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6937 LIBS=$ac_check_lib_save_LIBS
6939 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6940 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6941 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6942 cat >>confdefs.h <<_ACEOF
6943 #define HAVE_LIBSSL 1
6949 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6950 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6951 { (exit 1); exit 1; }; }
6956 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
6957 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6
6958 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 ac_check_lib_save_LIBS=$LIBS
6962 LIBS="-leay32 $LIBS"
6963 cat >conftest.$ac_ext <<_ACEOF
6964 #line $LINENO "configure"
6965 #include "confdefs.h"
6967 /* Override any gcc2 internal prototype to avoid an error. */
6971 /* We use char because int might match the return type of a gcc2
6972 builtin and then its argument prototype would still apply. */
6973 char CRYPTO_new_ex_data ();
6974 #ifdef F77_DUMMY_MAIN
6978 int F77_DUMMY_MAIN() { return 1; }
6983 CRYPTO_new_ex_data ();
6988 rm -f conftest.$ac_objext conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990 (eval $ac_link) 2>&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -s conftest$ac_exeext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
7002 echo "$as_me: failed program was:" >&5
7003 cat conftest.$ac_ext >&5
7004 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
7006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7007 LIBS=$ac_check_lib_save_LIBS
7009 echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
7010 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6
7011 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
7012 cat >>confdefs.h <<_ACEOF
7013 #define HAVE_LIBEAY32 1
7016 LIBS="-leay32 $LIBS"
7019 { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
7020 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
7021 { (exit 1); exit 1; }; }
7025 echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
7026 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6
7027 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 ac_check_lib_save_LIBS=$LIBS
7031 LIBS="-lssleay32 $LIBS"
7032 cat >conftest.$ac_ext <<_ACEOF
7033 #line $LINENO "configure"
7034 #include "confdefs.h"
7036 /* Override any gcc2 internal prototype to avoid an error. */
7040 /* We use char because int might match the return type of a gcc2
7041 builtin and then its argument prototype would still apply. */
7042 char SSL_library_init ();
7043 #ifdef F77_DUMMY_MAIN
7047 int F77_DUMMY_MAIN() { return 1; }
7052 SSL_library_init ();
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try='test -s conftest$ac_exeext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 ac_cv_lib_ssleay32_SSL_library_init=yes
7071 echo "$as_me: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 ac_cv_lib_ssleay32_SSL_library_init=no
7075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7076 LIBS=$ac_check_lib_save_LIBS
7078 echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
7079 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6
7080 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
7081 cat >>confdefs.h <<_ACEOF
7082 #define HAVE_LIBSSLEAY32 1
7085 LIBS="-lssleay32 $LIBS"
7088 { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
7089 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
7090 { (exit 1); exit 1; }; }
7096 if test "$with_pam" = yes ; then
7098 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7099 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7100 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7103 ac_check_lib_save_LIBS=$LIBS
7105 cat >conftest.$ac_ext <<_ACEOF
7106 #line $LINENO "configure"
7107 #include "confdefs.h"
7109 /* Override any gcc2 internal prototype to avoid an error. */
7113 /* We use char because int might match the return type of a gcc2
7114 builtin and then its argument prototype would still apply. */
7116 #ifdef F77_DUMMY_MAIN
7120 int F77_DUMMY_MAIN() { return 1; }
7130 rm -f conftest.$ac_objext conftest$ac_exeext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7132 (eval $ac_link) 2>&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } &&
7136 { ac_try='test -s conftest$ac_exeext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 ac_cv_lib_pam_pam_start=yes
7144 echo "$as_me: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7146 ac_cv_lib_pam_pam_start=no
7148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7149 LIBS=$ac_check_lib_save_LIBS
7151 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7152 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7153 if test $ac_cv_lib_pam_pam_start = yes; then
7154 cat >>confdefs.h <<_ACEOF
7155 #define HAVE_LIBPAM 1
7161 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7162 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7163 { (exit 1); exit 1; }; }
7173 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7174 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7175 if test "${ac_cv_header_stdc+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 cat >conftest.$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7180 #include "confdefs.h"
7187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7190 egrep -v '^ *\+' conftest.er1 >conftest.err
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } >/dev/null; then
7195 if test -s conftest.err; then
7196 ac_cpp_err=$ac_c_preproc_warn_flag
7203 if test -z "$ac_cpp_err"; then
7204 ac_cv_header_stdc=yes
7206 echo "$as_me: failed program was:" >&5
7207 cat conftest.$ac_ext >&5
7208 ac_cv_header_stdc=no
7210 rm -f conftest.err conftest.$ac_ext
7212 if test $ac_cv_header_stdc = yes; then
7213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7216 #include "confdefs.h"
7220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7221 egrep "memchr" >/dev/null 2>&1; then
7224 ac_cv_header_stdc=no
7230 if test $ac_cv_header_stdc = yes; then
7231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7232 cat >conftest.$ac_ext <<_ACEOF
7233 #line $LINENO "configure"
7234 #include "confdefs.h"
7238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7239 egrep "free" >/dev/null 2>&1; then
7242 ac_cv_header_stdc=no
7248 if test $ac_cv_header_stdc = yes; then
7249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7250 if test "$cross_compiling" = yes; then
7253 cat >conftest.$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7255 #include "confdefs.h"
7257 #if ((' ' & 0x0FF) == 0x020)
7258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7261 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7262 || ('j' <= (c) && (c) <= 'r') \
7263 || ('s' <= (c) && (c) <= 'z'))
7264 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7267 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7272 for (i = 0; i < 256; i++)
7273 if (XOR (islower (i), ISLOWER (i))
7274 || toupper (i) != TOUPPER (i))
7279 rm -f conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281 (eval $ac_link) 2>&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7292 echo "$as_me: program exited with status $ac_status" >&5
7293 echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7296 ac_cv_header_stdc=no
7298 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7302 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7303 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7304 if test $ac_cv_header_stdc = yes; then
7306 cat >>confdefs.h <<\_ACEOF
7307 #define STDC_HEADERS 1
7312 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7322 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7323 inttypes.h stdint.h unistd.h
7325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7326 echo "$as_me:$LINENO: checking for $ac_header" >&5
7327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 cat >conftest.$ac_ext <<_ACEOF
7332 #line $LINENO "configure"
7333 #include "confdefs.h"
7334 $ac_includes_default
7336 #include <$ac_header>
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -s conftest.$ac_objext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 eval "$as_ac_Header=yes"
7352 echo "$as_me: failed program was:" >&5
7353 cat conftest.$ac_ext >&5
7354 eval "$as_ac_Header=no"
7356 rm -f conftest.$ac_objext conftest.$ac_ext
7358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7361 cat >>confdefs.h <<_ACEOF
7362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7395 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7399 echo "$as_me:$LINENO: checking for $ac_header" >&5
7400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7407 # Is the header compilable?
7408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7410 cat >conftest.$ac_ext <<_ACEOF
7411 #line $LINENO "configure"
7412 #include "confdefs.h"
7413 $ac_includes_default
7414 #include <$ac_header>
7416 rm -f conftest.$ac_objext
7417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7418 (eval $ac_compile) 2>&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -s conftest.$ac_objext'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; }; then
7428 ac_header_compiler=yes
7430 echo "$as_me: failed program was:" >&5
7431 cat conftest.$ac_ext >&5
7432 ac_header_compiler=no
7434 rm -f conftest.$ac_objext conftest.$ac_ext
7435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7436 echo "${ECHO_T}$ac_header_compiler" >&6
7438 # Is the header present?
7439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7441 cat >conftest.$ac_ext <<_ACEOF
7442 #line $LINENO "configure"
7443 #include "confdefs.h"
7444 #include <$ac_header>
7446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7449 egrep -v '^ *\+' conftest.er1 >conftest.err
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } >/dev/null; then
7454 if test -s conftest.err; then
7455 ac_cpp_err=$ac_c_preproc_warn_flag
7462 if test -z "$ac_cpp_err"; then
7463 ac_header_preproc=yes
7465 echo "$as_me: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7467 ac_header_preproc=no
7469 rm -f conftest.err conftest.$ac_ext
7470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7471 echo "${ECHO_T}$ac_header_preproc" >&6
7473 # So? What about this header?
7474 case $ac_header_compiler:$ac_header_preproc in
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7488 echo "$as_me:$LINENO: checking for $ac_header" >&5
7489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 eval "$as_ac_Header=$ac_header_preproc"
7495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7500 cat >>confdefs.h <<_ACEOF
7501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7509 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7510 # netinet/in.h is included first.
7512 for ac_header in netinet/in.h
7514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7516 echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7524 # Is the header compilable?
7525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7527 cat >conftest.$ac_ext <<_ACEOF
7528 #line $LINENO "configure"
7529 #include "confdefs.h"
7530 $ac_includes_default
7531 #include <$ac_header>
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_header_compiler=yes
7547 echo "$as_me: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 ac_header_compiler=no
7551 rm -f conftest.$ac_objext conftest.$ac_ext
7552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7553 echo "${ECHO_T}$ac_header_compiler" >&6
7555 # Is the header present?
7556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7558 cat >conftest.$ac_ext <<_ACEOF
7559 #line $LINENO "configure"
7560 #include "confdefs.h"
7561 #include <$ac_header>
7563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7566 egrep -v '^ *\+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } >/dev/null; then
7571 if test -s conftest.err; then
7572 ac_cpp_err=$ac_c_preproc_warn_flag
7579 if test -z "$ac_cpp_err"; then
7580 ac_header_preproc=yes
7582 echo "$as_me: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7584 ac_header_preproc=no
7586 rm -f conftest.err conftest.$ac_ext
7587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7588 echo "${ECHO_T}$ac_header_preproc" >&6
7590 # So? What about this header?
7591 case $ac_header_compiler:$ac_header_preproc in
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7605 echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 eval "$as_ac_Header=$ac_header_preproc"
7612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7617 cat >>confdefs.h <<_ACEOF
7618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7626 for ac_header in netinet/tcp.h
7628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7629 echo "$as_me:$LINENO: checking for $ac_header" >&5
7630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 cat >conftest.$ac_ext <<_ACEOF
7635 #line $LINENO "configure"
7636 #include "confdefs.h"
7637 $ac_includes_default
7638 #ifdef HAVE_NETINET_IN_H
7639 #include <netinet/in.h>
7643 #include <$ac_header>
7645 rm -f conftest.$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } &&
7651 { ac_try='test -s conftest.$ac_objext'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; }; then
7657 eval "$as_ac_Header=yes"
7659 echo "$as_me: failed program was:" >&5
7660 cat conftest.$ac_ext >&5
7661 eval "$as_ac_Header=no"
7663 rm -f conftest.$ac_objext conftest.$ac_ext
7665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7668 cat >>confdefs.h <<_ACEOF
7669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7677 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
7679 for ac_header in readline/readline.h
7681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7683 echo "$as_me:$LINENO: checking for $ac_header" >&5
7684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7691 # Is the header compilable?
7692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7694 cat >conftest.$ac_ext <<_ACEOF
7695 #line $LINENO "configure"
7696 #include "confdefs.h"
7697 $ac_includes_default
7698 #include <$ac_header>
7700 rm -f conftest.$ac_objext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7702 (eval $ac_compile) 2>&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } &&
7706 { ac_try='test -s conftest.$ac_objext'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712 ac_header_compiler=yes
7714 echo "$as_me: failed program was:" >&5
7715 cat conftest.$ac_ext >&5
7716 ac_header_compiler=no
7718 rm -f conftest.$ac_objext conftest.$ac_ext
7719 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7720 echo "${ECHO_T}$ac_header_compiler" >&6
7722 # Is the header present?
7723 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7725 cat >conftest.$ac_ext <<_ACEOF
7726 #line $LINENO "configure"
7727 #include "confdefs.h"
7728 #include <$ac_header>
7730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7733 egrep -v '^ *\+' conftest.er1 >conftest.err
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } >/dev/null; then
7738 if test -s conftest.err; then
7739 ac_cpp_err=$ac_c_preproc_warn_flag
7746 if test -z "$ac_cpp_err"; then
7747 ac_header_preproc=yes
7749 echo "$as_me: failed program was:" >&5
7750 cat conftest.$ac_ext >&5
7751 ac_header_preproc=no
7753 rm -f conftest.err conftest.$ac_ext
7754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7755 echo "${ECHO_T}$ac_header_preproc" >&6
7757 # So? What about this header?
7758 case $ac_header_compiler:$ac_header_preproc in
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7772 echo "$as_me:$LINENO: checking for $ac_header" >&5
7773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 eval "$as_ac_Header=$ac_header_preproc"
7779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7784 cat >>confdefs.h <<_ACEOF
7785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7790 for ac_header in readline.h
7792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7794 echo "$as_me:$LINENO: checking for $ac_header" >&5
7795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7802 # Is the header compilable?
7803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7805 cat >conftest.$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7807 #include "confdefs.h"
7808 $ac_includes_default
7809 #include <$ac_header>
7811 rm -f conftest.$ac_objext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try='test -s conftest.$ac_objext'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7823 ac_header_compiler=yes
7825 echo "$as_me: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 ac_header_compiler=no
7829 rm -f conftest.$ac_objext conftest.$ac_ext
7830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7831 echo "${ECHO_T}$ac_header_compiler" >&6
7833 # Is the header present?
7834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7836 cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7838 #include "confdefs.h"
7839 #include <$ac_header>
7841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7844 egrep -v '^ *\+' conftest.er1 >conftest.err
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } >/dev/null; then
7849 if test -s conftest.err; then
7850 ac_cpp_err=$ac_c_preproc_warn_flag
7857 if test -z "$ac_cpp_err"; then
7858 ac_header_preproc=yes
7860 echo "$as_me: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7862 ac_header_preproc=no
7864 rm -f conftest.err conftest.$ac_ext
7865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7866 echo "${ECHO_T}$ac_header_preproc" >&6
7868 # So? What about this header?
7869 case $ac_header_compiler:$ac_header_preproc in
7871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7883 echo "$as_me:$LINENO: checking for $ac_header" >&5
7884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 eval "$as_ac_Header=$ac_header_preproc"
7890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7895 cat >>confdefs.h <<_ACEOF
7896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7900 { { echo "$as_me:$LINENO: error: readline header not found
7901 If you have readline already installed, see config.log for details on the
7902 failure. It is possible the compiler isn't looking in the proper directory.
7903 Use --without-readline to disable readline support." >&5
7904 echo "$as_me: error: readline header not found
7905 If you have readline already installed, see config.log for details on the
7906 failure. It is possible the compiler isn't looking in the proper directory.
7907 Use --without-readline to disable readline support." >&2;}
7908 { (exit 1); exit 1; }; }
7918 for ac_header in readline/history.h
7920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7922 echo "$as_me:$LINENO: checking for $ac_header" >&5
7923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7930 # Is the header compilable?
7931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7933 cat >conftest.$ac_ext <<_ACEOF
7934 #line $LINENO "configure"
7935 #include "confdefs.h"
7936 $ac_includes_default
7937 #include <$ac_header>
7939 rm -f conftest.$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941 (eval $ac_compile) 2>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -s conftest.$ac_objext'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 ac_header_compiler=yes
7953 echo "$as_me: failed program was:" >&5
7954 cat conftest.$ac_ext >&5
7955 ac_header_compiler=no
7957 rm -f conftest.$ac_objext conftest.$ac_ext
7958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7959 echo "${ECHO_T}$ac_header_compiler" >&6
7961 # Is the header present?
7962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7964 cat >conftest.$ac_ext <<_ACEOF
7965 #line $LINENO "configure"
7966 #include "confdefs.h"
7967 #include <$ac_header>
7969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7972 egrep -v '^ *\+' conftest.er1 >conftest.err
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } >/dev/null; then
7977 if test -s conftest.err; then
7978 ac_cpp_err=$ac_c_preproc_warn_flag
7985 if test -z "$ac_cpp_err"; then
7986 ac_header_preproc=yes
7988 echo "$as_me: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7990 ac_header_preproc=no
7992 rm -f conftest.err conftest.$ac_ext
7993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7994 echo "${ECHO_T}$ac_header_preproc" >&6
7996 # So? What about this header?
7997 case $ac_header_compiler:$ac_header_preproc in
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8004 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8005 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8006 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8007 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8011 echo "$as_me:$LINENO: checking for $ac_header" >&5
8012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 eval "$as_ac_Header=$ac_header_preproc"
8018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8023 cat >>confdefs.h <<_ACEOF
8024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8029 for ac_header in history.h
8031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8033 echo "$as_me:$LINENO: checking for $ac_header" >&5
8034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8041 # Is the header compilable?
8042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 #include "confdefs.h"
8047 $ac_includes_default
8048 #include <$ac_header>
8050 rm -f conftest.$ac_objext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_header_compiler=yes
8064 echo "$as_me: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8066 ac_header_compiler=no
8068 rm -f conftest.$ac_objext conftest.$ac_ext
8069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8070 echo "${ECHO_T}$ac_header_compiler" >&6
8072 # Is the header present?
8073 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8074 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8077 #include "confdefs.h"
8078 #include <$ac_header>
8080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8083 egrep -v '^ *\+' conftest.er1 >conftest.err
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } >/dev/null; then
8088 if test -s conftest.err; then
8089 ac_cpp_err=$ac_c_preproc_warn_flag
8096 if test -z "$ac_cpp_err"; then
8097 ac_header_preproc=yes
8099 echo "$as_me: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8101 ac_header_preproc=no
8103 rm -f conftest.err conftest.$ac_ext
8104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8105 echo "${ECHO_T}$ac_header_preproc" >&6
8107 # So? What about this header?
8108 case $ac_header_compiler:$ac_header_preproc in
8110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8122 echo "$as_me:$LINENO: checking for $ac_header" >&5
8123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 eval "$as_ac_Header=$ac_header_preproc"
8129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8134 cat >>confdefs.h <<_ACEOF
8135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8139 { { echo "$as_me:$LINENO: error: history header not found
8140 If you have readline already installed, see config.log for details on the
8141 failure. It is possible the compiler isn't looking in the proper directory.
8142 Use --without-readline to disable readline support." >&5
8143 echo "$as_me: error: history header not found
8144 If you have readline already installed, see config.log for details on the
8145 failure. It is possible the compiler isn't looking in the proper directory.
8146 Use --without-readline to disable readline support." >&2;}
8147 { (exit 1); exit 1; }; }
8158 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
8159 # Some installations of libedit usurp /usr/include/readline/, which seems
8160 # bad practice, since in combined installations readline will have its headers
8161 # there. We might have to resort to AC_EGREP checks to make sure we found
8162 # the proper header...
8164 for ac_header in editline/readline.h
8166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8168 echo "$as_me:$LINENO: checking for $ac_header" >&5
8169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8176 # Is the header compilable?
8177 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8181 #include "confdefs.h"
8182 $ac_includes_default
8183 #include <$ac_header>
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
8191 { ac_try='test -s conftest.$ac_objext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_header_compiler=yes
8199 echo "$as_me: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8201 ac_header_compiler=no
8203 rm -f conftest.$ac_objext conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8205 echo "${ECHO_T}$ac_header_compiler" >&6
8207 # Is the header present?
8208 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8212 #include "confdefs.h"
8213 #include <$ac_header>
8215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8218 egrep -v '^ *\+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } >/dev/null; then
8223 if test -s conftest.err; then
8224 ac_cpp_err=$ac_c_preproc_warn_flag
8231 if test -z "$ac_cpp_err"; then
8232 ac_header_preproc=yes
8234 echo "$as_me: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8236 ac_header_preproc=no
8238 rm -f conftest.err conftest.$ac_ext
8239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8240 echo "${ECHO_T}$ac_header_preproc" >&6
8242 # So? What about this header?
8243 case $ac_header_compiler:$ac_header_preproc in
8245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8257 echo "$as_me:$LINENO: checking for $ac_header" >&5
8258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 eval "$as_ac_Header=$ac_header_preproc"
8264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8269 cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 for ac_header in readline.h
8277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8279 echo "$as_me:$LINENO: checking for $ac_header" >&5
8280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8287 # Is the header compilable?
8288 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8290 cat >conftest.$ac_ext <<_ACEOF
8291 #line $LINENO "configure"
8292 #include "confdefs.h"
8293 $ac_includes_default
8294 #include <$ac_header>
8296 rm -f conftest.$ac_objext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -s conftest.$ac_objext'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_header_compiler=yes
8310 echo "$as_me: failed program was:" >&5
8311 cat conftest.$ac_ext >&5
8312 ac_header_compiler=no
8314 rm -f conftest.$ac_objext conftest.$ac_ext
8315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8316 echo "${ECHO_T}$ac_header_compiler" >&6
8318 # Is the header present?
8319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8321 cat >conftest.$ac_ext <<_ACEOF
8322 #line $LINENO "configure"
8323 #include "confdefs.h"
8324 #include <$ac_header>
8326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8329 egrep -v '^ *\+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } >/dev/null; then
8334 if test -s conftest.err; then
8335 ac_cpp_err=$ac_c_preproc_warn_flag
8342 if test -z "$ac_cpp_err"; then
8343 ac_header_preproc=yes
8345 echo "$as_me: failed program was:" >&5
8346 cat conftest.$ac_ext >&5
8347 ac_header_preproc=no
8349 rm -f conftest.err conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 echo "${ECHO_T}$ac_header_preproc" >&6
8353 # So? What about this header?
8354 case $ac_header_compiler:$ac_header_preproc in
8356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8368 echo "$as_me:$LINENO: checking for $ac_header" >&5
8369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 eval "$as_ac_Header=$ac_header_preproc"
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8380 cat >>confdefs.h <<_ACEOF
8381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8386 for ac_header in readline/readline.h
8388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8390 echo "$as_me:$LINENO: checking for $ac_header" >&5
8391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8398 # Is the header compilable?
8399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 #include "confdefs.h"
8404 $ac_includes_default
8405 #include <$ac_header>
8407 rm -f conftest.$ac_objext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8409 (eval $ac_compile) 2>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest.$ac_objext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_header_compiler=yes
8421 echo "$as_me: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 ac_header_compiler=no
8425 rm -f conftest.$ac_objext conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8427 echo "${ECHO_T}$ac_header_compiler" >&6
8429 # Is the header present?
8430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8433 #line $LINENO "configure"
8434 #include "confdefs.h"
8435 #include <$ac_header>
8437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8440 egrep -v '^ *\+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } >/dev/null; then
8445 if test -s conftest.err; then
8446 ac_cpp_err=$ac_c_preproc_warn_flag
8453 if test -z "$ac_cpp_err"; then
8454 ac_header_preproc=yes
8456 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8458 ac_header_preproc=no
8460 rm -f conftest.err conftest.$ac_ext
8461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8462 echo "${ECHO_T}$ac_header_preproc" >&6
8464 # So? What about this header?
8465 case $ac_header_compiler:$ac_header_preproc in
8467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8479 echo "$as_me:$LINENO: checking for $ac_header" >&5
8480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 eval "$as_ac_Header=$ac_header_preproc"
8486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8491 cat >>confdefs.h <<_ACEOF
8492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8496 { { echo "$as_me:$LINENO: error: readline header not found
8497 If you have libedit already installed, see config.log for details on the
8498 failure. It is possible the compiler isn't looking in the proper directory.
8499 Use --without-readline to disable libedit support." >&5
8500 echo "$as_me: error: readline header not found
8501 If you have libedit already installed, see config.log for details on the
8502 failure. It is possible the compiler isn't looking in the proper directory.
8503 Use --without-readline to disable libedit support." >&2;}
8504 { (exit 1); exit 1; }; }
8518 for ac_header in editline/history.h
8520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8522 echo "$as_me:$LINENO: checking for $ac_header" >&5
8523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8530 # Is the header compilable?
8531 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line $LINENO "configure"
8535 #include "confdefs.h"
8536 $ac_includes_default
8537 #include <$ac_header>
8539 rm -f conftest.$ac_objext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8541 (eval $ac_compile) 2>&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -s conftest.$ac_objext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_header_compiler=yes
8553 echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8555 ac_header_compiler=no
8557 rm -f conftest.$ac_objext conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8559 echo "${ECHO_T}$ac_header_compiler" >&6
8561 # Is the header present?
8562 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8564 cat >conftest.$ac_ext <<_ACEOF
8565 #line $LINENO "configure"
8566 #include "confdefs.h"
8567 #include <$ac_header>
8569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8572 egrep -v '^ *\+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } >/dev/null; then
8577 if test -s conftest.err; then
8578 ac_cpp_err=$ac_c_preproc_warn_flag
8585 if test -z "$ac_cpp_err"; then
8586 ac_header_preproc=yes
8588 echo "$as_me: failed program was:" >&5
8589 cat conftest.$ac_ext >&5
8590 ac_header_preproc=no
8592 rm -f conftest.err conftest.$ac_ext
8593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8594 echo "${ECHO_T}$ac_header_preproc" >&6
8596 # So? What about this header?
8597 case $ac_header_compiler:$ac_header_preproc in
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8611 echo "$as_me:$LINENO: checking for $ac_header" >&5
8612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 eval "$as_ac_Header=$ac_header_preproc"
8618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8623 cat >>confdefs.h <<_ACEOF
8624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8629 for ac_header in history.h
8631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8633 echo "$as_me:$LINENO: checking for $ac_header" >&5
8634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8641 # Is the header compilable?
8642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8644 cat >conftest.$ac_ext <<_ACEOF
8645 #line $LINENO "configure"
8646 #include "confdefs.h"
8647 $ac_includes_default
8648 #include <$ac_header>
8650 rm -f conftest.$ac_objext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_header_compiler=yes
8664 echo "$as_me: failed program was:" >&5
8665 cat conftest.$ac_ext >&5
8666 ac_header_compiler=no
8668 rm -f conftest.$ac_objext conftest.$ac_ext
8669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8670 echo "${ECHO_T}$ac_header_compiler" >&6
8672 # Is the header present?
8673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8675 cat >conftest.$ac_ext <<_ACEOF
8676 #line $LINENO "configure"
8677 #include "confdefs.h"
8678 #include <$ac_header>
8680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8683 egrep -v '^ *\+' conftest.er1 >conftest.err
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } >/dev/null; then
8688 if test -s conftest.err; then
8689 ac_cpp_err=$ac_c_preproc_warn_flag
8696 if test -z "$ac_cpp_err"; then
8697 ac_header_preproc=yes
8699 echo "$as_me: failed program was:" >&5
8700 cat conftest.$ac_ext >&5
8701 ac_header_preproc=no
8703 rm -f conftest.err conftest.$ac_ext
8704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8705 echo "${ECHO_T}$ac_header_preproc" >&6
8707 # So? What about this header?
8708 case $ac_header_compiler:$ac_header_preproc in
8710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8722 echo "$as_me:$LINENO: checking for $ac_header" >&5
8723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8725 echo $ECHO_N "(cached) $ECHO_C" >&6
8727 eval "$as_ac_Header=$ac_header_preproc"
8729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8734 cat >>confdefs.h <<_ACEOF
8735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8740 for ac_header in readline/history.h
8742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744 echo "$as_me:$LINENO: checking for $ac_header" >&5
8745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8752 # Is the header compilable?
8753 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8755 cat >conftest.$ac_ext <<_ACEOF
8756 #line $LINENO "configure"
8757 #include "confdefs.h"
8758 $ac_includes_default
8759 #include <$ac_header>
8761 rm -f conftest.$ac_objext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763 (eval $ac_compile) 2>&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -s conftest.$ac_objext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 ac_header_compiler=yes
8775 echo "$as_me: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8777 ac_header_compiler=no
8779 rm -f conftest.$ac_objext conftest.$ac_ext
8780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8781 echo "${ECHO_T}$ac_header_compiler" >&6
8783 # Is the header present?
8784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8786 cat >conftest.$ac_ext <<_ACEOF
8787 #line $LINENO "configure"
8788 #include "confdefs.h"
8789 #include <$ac_header>
8791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8794 egrep -v '^ *\+' conftest.er1 >conftest.err
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } >/dev/null; then
8799 if test -s conftest.err; then
8800 ac_cpp_err=$ac_c_preproc_warn_flag
8807 if test -z "$ac_cpp_err"; then
8808 ac_header_preproc=yes
8810 echo "$as_me: failed program was:" >&5
8811 cat conftest.$ac_ext >&5
8812 ac_header_preproc=no
8814 rm -f conftest.err conftest.$ac_ext
8815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8816 echo "${ECHO_T}$ac_header_preproc" >&6
8818 # So? What about this header?
8819 case $ac_header_compiler:$ac_header_preproc in
8821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8833 echo "$as_me:$LINENO: checking for $ac_header" >&5
8834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 eval "$as_ac_Header=$ac_header_preproc"
8840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8845 cat >>confdefs.h <<_ACEOF
8846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8850 { { echo "$as_me:$LINENO: error: history header not found
8851 If you have libedit already installed, see config.log for details on the
8852 failure. It is possible the compiler isn't looking in the proper directory.
8853 Use --without-readline to disable libedit support." >&5
8854 echo "$as_me: error: history header not found
8855 If you have libedit already installed, see config.log for details on the
8856 failure. It is possible the compiler isn't looking in the proper directory.
8857 Use --without-readline to disable libedit support." >&2;}
8858 { (exit 1); exit 1; }; }
8873 if test "$with_zlib" = yes; then
8874 if test "${ac_cv_header_zlib_h+set}" = set; then
8875 echo "$as_me:$LINENO: checking for zlib.h" >&5
8876 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8877 if test "${ac_cv_header_zlib_h+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8881 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8883 # Is the header compilable?
8884 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8885 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8886 cat >conftest.$ac_ext <<_ACEOF
8887 #line $LINENO "configure"
8888 #include "confdefs.h"
8889 $ac_includes_default
8892 rm -f conftest.$ac_objext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8894 (eval $ac_compile) 2>&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -s conftest.$ac_objext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 ac_header_compiler=yes
8906 echo "$as_me: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8908 ac_header_compiler=no
8910 rm -f conftest.$ac_objext conftest.$ac_ext
8911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8912 echo "${ECHO_T}$ac_header_compiler" >&6
8914 # Is the header present?
8915 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8916 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8917 cat >conftest.$ac_ext <<_ACEOF
8918 #line $LINENO "configure"
8919 #include "confdefs.h"
8922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8925 egrep -v '^ *\+' conftest.er1 >conftest.err
8927 cat conftest.err >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } >/dev/null; then
8930 if test -s conftest.err; then
8931 ac_cpp_err=$ac_c_preproc_warn_flag
8938 if test -z "$ac_cpp_err"; then
8939 ac_header_preproc=yes
8941 echo "$as_me: failed program was:" >&5
8942 cat conftest.$ac_ext >&5
8943 ac_header_preproc=no
8945 rm -f conftest.err conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8947 echo "${ECHO_T}$ac_header_preproc" >&6
8949 # So? What about this header?
8950 case $ac_header_compiler:$ac_header_preproc in
8952 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8953 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8955 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8957 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8958 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8959 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8960 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8961 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8962 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8964 echo "$as_me:$LINENO: checking for zlib.h" >&5
8965 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8966 if test "${ac_cv_header_zlib_h+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 ac_cv_header_zlib_h=$ac_header_preproc
8971 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8972 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8975 if test $ac_cv_header_zlib_h = yes; then
8978 { { echo "$as_me:$LINENO: error: zlib header not found
8979 If you have zlib already installed, see config.log for details on the
8980 failure. It is possible the compiler isn't looking in the proper directory.
8981 Use --without-zlib to disable zlib support." >&5
8982 echo "$as_me: error: zlib header not found
8983 If you have zlib already installed, see config.log for details on the
8984 failure. It is possible the compiler isn't looking in the proper directory.
8985 Use --without-zlib to disable zlib support." >&2;}
8986 { (exit 1); exit 1; }; }
8992 if test "$with_krb4" = yes ; then
8993 if test "${ac_cv_header_krb_h+set}" = set; then
8994 echo "$as_me:$LINENO: checking for krb.h" >&5
8995 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8996 if test "${ac_cv_header_krb_h+set}" = set; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
9000 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
9002 # Is the header compilable?
9003 echo "$as_me:$LINENO: checking krb.h usability" >&5
9004 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
9005 cat >conftest.$ac_ext <<_ACEOF
9006 #line $LINENO "configure"
9007 #include "confdefs.h"
9008 $ac_includes_default
9011 rm -f conftest.$ac_objext
9012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9013 (eval $ac_compile) 2>&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -s conftest.$ac_objext'
9018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); }; }; then
9023 ac_header_compiler=yes
9025 echo "$as_me: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9027 ac_header_compiler=no
9029 rm -f conftest.$ac_objext conftest.$ac_ext
9030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9031 echo "${ECHO_T}$ac_header_compiler" >&6
9033 # Is the header present?
9034 echo "$as_me:$LINENO: checking krb.h presence" >&5
9035 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
9036 cat >conftest.$ac_ext <<_ACEOF
9037 #line $LINENO "configure"
9038 #include "confdefs.h"
9041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9044 egrep -v '^ *\+' conftest.er1 >conftest.err
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } >/dev/null; then
9049 if test -s conftest.err; then
9050 ac_cpp_err=$ac_c_preproc_warn_flag
9057 if test -z "$ac_cpp_err"; then
9058 ac_header_preproc=yes
9060 echo "$as_me: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9062 ac_header_preproc=no
9064 rm -f conftest.err conftest.$ac_ext
9065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9066 echo "${ECHO_T}$ac_header_preproc" >&6
9068 # So? What about this header?
9069 case $ac_header_compiler:$ac_header_preproc in
9071 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
9072 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9073 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
9074 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
9076 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
9077 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
9079 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
9080 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
9081 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
9083 echo "$as_me:$LINENO: checking for krb.h" >&5
9084 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
9085 if test "${ac_cv_header_krb_h+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 ac_cv_header_krb_h=$ac_header_preproc
9090 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
9091 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
9094 if test $ac_cv_header_krb_h = yes; then
9097 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
9098 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
9099 { (exit 1); exit 1; }; }
9105 if test "$with_krb5" = yes ; then
9106 if test "${ac_cv_header_krb5_h+set}" = set; then
9107 echo "$as_me:$LINENO: checking for krb5.h" >&5
9108 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9109 if test "${ac_cv_header_krb5_h+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9113 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9115 # Is the header compilable?
9116 echo "$as_me:$LINENO: checking krb5.h usability" >&5
9117 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
9118 cat >conftest.$ac_ext <<_ACEOF
9119 #line $LINENO "configure"
9120 #include "confdefs.h"
9121 $ac_includes_default
9124 rm -f conftest.$ac_objext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126 (eval $ac_compile) 2>&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -s conftest.$ac_objext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_header_compiler=yes
9138 echo "$as_me: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9140 ac_header_compiler=no
9142 rm -f conftest.$ac_objext conftest.$ac_ext
9143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9144 echo "${ECHO_T}$ac_header_compiler" >&6
9146 # Is the header present?
9147 echo "$as_me:$LINENO: checking krb5.h presence" >&5
9148 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
9149 cat >conftest.$ac_ext <<_ACEOF
9150 #line $LINENO "configure"
9151 #include "confdefs.h"
9154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9157 egrep -v '^ *\+' conftest.er1 >conftest.err
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } >/dev/null; then
9162 if test -s conftest.err; then
9163 ac_cpp_err=$ac_c_preproc_warn_flag
9170 if test -z "$ac_cpp_err"; then
9171 ac_header_preproc=yes
9173 echo "$as_me: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9175 ac_header_preproc=no
9177 rm -f conftest.err conftest.$ac_ext
9178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9179 echo "${ECHO_T}$ac_header_preproc" >&6
9181 # So? What about this header?
9182 case $ac_header_compiler:$ac_header_preproc in
9184 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
9185 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9187 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
9189 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
9190 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
9192 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
9194 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
9196 echo "$as_me:$LINENO: checking for krb5.h" >&5
9197 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
9198 if test "${ac_cv_header_krb5_h+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 ac_cv_header_krb5_h=$ac_header_preproc
9203 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
9204 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
9207 if test $ac_cv_header_krb5_h = yes; then
9210 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
9211 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
9212 { (exit 1); exit 1; }; }
9218 if test "$with_openssl" = yes ; then
9219 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9220 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9221 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9222 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9226 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9228 # Is the header compilable?
9229 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
9230 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
9231 cat >conftest.$ac_ext <<_ACEOF
9232 #line $LINENO "configure"
9233 #include "confdefs.h"
9234 $ac_includes_default
9235 #include <openssl/ssl.h>
9237 rm -f conftest.$ac_objext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9239 (eval $ac_compile) 2>&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -s conftest.$ac_objext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_header_compiler=yes
9251 echo "$as_me: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253 ac_header_compiler=no
9255 rm -f conftest.$ac_objext conftest.$ac_ext
9256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9257 echo "${ECHO_T}$ac_header_compiler" >&6
9259 # Is the header present?
9260 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
9261 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
9262 cat >conftest.$ac_ext <<_ACEOF
9263 #line $LINENO "configure"
9264 #include "confdefs.h"
9265 #include <openssl/ssl.h>
9267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9270 egrep -v '^ *\+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } >/dev/null; then
9275 if test -s conftest.err; then
9276 ac_cpp_err=$ac_c_preproc_warn_flag
9283 if test -z "$ac_cpp_err"; then
9284 ac_header_preproc=yes
9286 echo "$as_me: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9288 ac_header_preproc=no
9290 rm -f conftest.err conftest.$ac_ext
9291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6
9294 # So? What about this header?
9295 case $ac_header_compiler:$ac_header_preproc in
9297 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9300 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
9302 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
9303 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
9305 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
9307 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
9309 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
9310 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
9311 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 ac_cv_header_openssl_ssl_h=$ac_header_preproc
9316 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
9317 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
9320 if test $ac_cv_header_openssl_ssl_h = yes; then
9323 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
9324 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
9325 { (exit 1); exit 1; }; }
9329 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9330 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9331 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9332 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9336 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9338 # Is the header compilable?
9339 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
9340 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
9341 cat >conftest.$ac_ext <<_ACEOF
9342 #line $LINENO "configure"
9343 #include "confdefs.h"
9344 $ac_includes_default
9345 #include <openssl/err.h>
9347 rm -f conftest.$ac_objext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9349 (eval $ac_compile) 2>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -s conftest.$ac_objext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 ac_header_compiler=yes
9361 echo "$as_me: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9363 ac_header_compiler=no
9365 rm -f conftest.$ac_objext conftest.$ac_ext
9366 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9367 echo "${ECHO_T}$ac_header_compiler" >&6
9369 # Is the header present?
9370 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
9371 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
9372 cat >conftest.$ac_ext <<_ACEOF
9373 #line $LINENO "configure"
9374 #include "confdefs.h"
9375 #include <openssl/err.h>
9377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9380 egrep -v '^ *\+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } >/dev/null; then
9385 if test -s conftest.err; then
9386 ac_cpp_err=$ac_c_preproc_warn_flag
9393 if test -z "$ac_cpp_err"; then
9394 ac_header_preproc=yes
9396 echo "$as_me: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9398 ac_header_preproc=no
9400 rm -f conftest.err conftest.$ac_ext
9401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9402 echo "${ECHO_T}$ac_header_preproc" >&6
9404 # So? What about this header?
9405 case $ac_header_compiler:$ac_header_preproc in
9407 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
9408 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9410 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
9412 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
9413 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
9415 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
9417 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
9419 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
9420 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
9421 if test "${ac_cv_header_openssl_err_h+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 ac_cv_header_openssl_err_h=$ac_header_preproc
9426 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
9427 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
9430 if test $ac_cv_header_openssl_err_h = yes; then
9433 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
9434 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
9435 { (exit 1); exit 1; }; }
9441 if test "$with_pam" = yes ; then
9443 for ac_header in security/pam_appl.h
9445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9447 echo "$as_me:$LINENO: checking for $ac_header" >&5
9448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9455 # Is the header compilable?
9456 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9458 cat >conftest.$ac_ext <<_ACEOF
9459 #line $LINENO "configure"
9460 #include "confdefs.h"
9461 $ac_includes_default
9462 #include <$ac_header>
9464 rm -f conftest.$ac_objext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9466 (eval $ac_compile) 2>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try='test -s conftest.$ac_objext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_header_compiler=yes
9478 echo "$as_me: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9480 ac_header_compiler=no
9482 rm -f conftest.$ac_objext conftest.$ac_ext
9483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9484 echo "${ECHO_T}$ac_header_compiler" >&6
9486 # Is the header present?
9487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9489 cat >conftest.$ac_ext <<_ACEOF
9490 #line $LINENO "configure"
9491 #include "confdefs.h"
9492 #include <$ac_header>
9494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9497 egrep -v '^ *\+' conftest.er1 >conftest.err
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } >/dev/null; then
9502 if test -s conftest.err; then
9503 ac_cpp_err=$ac_c_preproc_warn_flag
9510 if test -z "$ac_cpp_err"; then
9511 ac_header_preproc=yes
9513 echo "$as_me: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9515 ac_header_preproc=no
9517 rm -f conftest.err conftest.$ac_ext
9518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9519 echo "${ECHO_T}$ac_header_preproc" >&6
9521 # So? What about this header?
9522 case $ac_header_compiler:$ac_header_preproc in
9524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9532 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9536 echo "$as_me:$LINENO: checking for $ac_header" >&5
9537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 eval "$as_ac_Header=$ac_header_preproc"
9543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9548 cat >>confdefs.h <<_ACEOF
9549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9554 for ac_header in pam/pam_appl.h
9556 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9558 echo "$as_me:$LINENO: checking for $ac_header" >&5
9559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9566 # Is the header compilable?
9567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 #include "confdefs.h"
9572 $ac_includes_default
9573 #include <$ac_header>
9575 rm -f conftest.$ac_objext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9577 (eval $ac_compile) 2>&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } &&
9581 { ac_try='test -s conftest.$ac_objext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 ac_header_compiler=yes
9589 echo "$as_me: failed program was:" >&5
9590 cat conftest.$ac_ext >&5
9591 ac_header_compiler=no
9593 rm -f conftest.$ac_objext conftest.$ac_ext
9594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9595 echo "${ECHO_T}$ac_header_compiler" >&6
9597 # Is the header present?
9598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9600 cat >conftest.$ac_ext <<_ACEOF
9601 #line $LINENO "configure"
9602 #include "confdefs.h"
9603 #include <$ac_header>
9605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9608 egrep -v '^ *\+' conftest.er1 >conftest.err
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } >/dev/null; then
9613 if test -s conftest.err; then
9614 ac_cpp_err=$ac_c_preproc_warn_flag
9621 if test -z "$ac_cpp_err"; then
9622 ac_header_preproc=yes
9624 echo "$as_me: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9626 ac_header_preproc=no
9628 rm -f conftest.err conftest.$ac_ext
9629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9630 echo "${ECHO_T}$ac_header_preproc" >&6
9632 # So? What about this header?
9633 case $ac_header_compiler:$ac_header_preproc in
9635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9647 echo "$as_me:$LINENO: checking for $ac_header" >&5
9648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 eval "$as_ac_Header=$ac_header_preproc"
9654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9659 cat >>confdefs.h <<_ACEOF
9660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9664 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9665 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9666 { (exit 1); exit 1; }; }
9677 if test "$with_rendezvous" = yes ; then
9678 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9679 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9680 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9681 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9685 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9687 # Is the header compilable?
9688 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9689 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9690 cat >conftest.$ac_ext <<_ACEOF
9691 #line $LINENO "configure"
9692 #include "confdefs.h"
9693 $ac_includes_default
9694 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9696 rm -f conftest.$ac_objext
9697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9698 (eval $ac_compile) 2>&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -s conftest.$ac_objext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708 ac_header_compiler=yes
9710 echo "$as_me: failed program was:" >&5
9711 cat conftest.$ac_ext >&5
9712 ac_header_compiler=no
9714 rm -f conftest.$ac_objext conftest.$ac_ext
9715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9716 echo "${ECHO_T}$ac_header_compiler" >&6
9718 # Is the header present?
9719 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9720 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9721 cat >conftest.$ac_ext <<_ACEOF
9722 #line $LINENO "configure"
9723 #include "confdefs.h"
9724 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9729 egrep -v '^ *\+' conftest.er1 >conftest.err
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } >/dev/null; then
9734 if test -s conftest.err; then
9735 ac_cpp_err=$ac_c_preproc_warn_flag
9742 if test -z "$ac_cpp_err"; then
9743 ac_header_preproc=yes
9745 echo "$as_me: failed program was:" >&5
9746 cat conftest.$ac_ext >&5
9747 ac_header_preproc=no
9749 rm -f conftest.err conftest.$ac_ext
9750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9751 echo "${ECHO_T}$ac_header_preproc" >&6
9753 # So? What about this header?
9754 case $ac_header_compiler:$ac_header_preproc in
9756 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9757 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9758 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9759 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9761 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9762 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9763 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9764 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9766 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9768 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9769 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9770 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9775 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9776 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9779 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9782 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9783 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9784 { (exit 1); exit 1; }; }
9792 ## Types, structures, compiler characteristics
9796 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9797 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9798 if test "${ac_cv_c_const+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 cat >conftest.$ac_ext <<_ACEOF
9802 #line $LINENO "configure"
9803 #include "confdefs.h"
9805 #ifdef F77_DUMMY_MAIN
9809 int F77_DUMMY_MAIN() { return 1; }
9814 /* FIXME: Include the comments suggested by Paul. */
9816 /* Ultrix mips cc rejects this. */
9817 typedef int charset[2];
9819 /* SunOS 4.1.1 cc rejects this. */
9820 char const *const *ccp;
9822 /* NEC SVR4.0.2 mips cc rejects this. */
9823 struct point {int x, y;};
9824 static struct point const zero = {0,0};
9825 /* AIX XL C 1.02.0.0 rejects this.
9826 It does not let you subtract one const X* pointer from another in
9827 an arm of an if-expression whose if-part is not a constant
9829 const char *g = "string";
9830 ccp = &g + (g ? g-g : 0);
9831 /* HPUX 7.0 cc rejects these. */
9834 ccp = (char const *const *) p;
9835 { /* SCO 3.2v4 cc rejects this. */
9837 char const *s = 0 ? (char *) 0 : (char const *) 0;
9841 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9843 const int *foo = &x[0];
9846 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9847 typedef const int *iptr;
9851 { /* AIX XL C 1.02.0.0 rejects this saying
9852 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9853 struct s { int j; const int *ap[3]; };
9854 struct s *b; b->j = 5;
9856 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867 (eval $ac_compile) 2>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9879 echo "$as_me: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9883 rm -f conftest.$ac_objext conftest.$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9886 echo "${ECHO_T}$ac_cv_c_const" >&6
9887 if test $ac_cv_c_const = no; then
9889 cat >>confdefs.h <<\_ACEOF
9895 echo "$as_me:$LINENO: checking for inline" >&5
9896 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9897 if test "${ac_cv_c_inline+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 for ac_kw in inline __inline__ __inline; do
9902 cat >conftest.$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9904 #include "confdefs.h"
9907 static $ac_kw foo_t static_foo () {return 0; }
9908 $ac_kw int foo () {return 0; }
9912 rm -f conftest.$ac_objext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9914 (eval $ac_compile) 2>&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -s conftest.$ac_objext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_cv_c_inline=$ac_kw; break
9926 echo "$as_me: failed program was:" >&5
9927 cat conftest.$ac_ext >&5
9929 rm -f conftest.$ac_objext conftest.$ac_ext
9933 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9934 echo "${ECHO_T}$ac_cv_c_inline" >&6
9935 case $ac_cv_c_inline in
9938 cat >>confdefs.h <<\_ACEOF
9942 *) cat >>confdefs.h <<_ACEOF
9943 #define inline $ac_cv_c_inline
9948 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9949 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9950 if test "${ac_cv_c_stringize+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 cat >conftest.$ac_ext <<_ACEOF
9954 #line $LINENO "configure"
9955 #include "confdefs.h"
9958 char *s = x(teststring);
9960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9961 egrep "#teststring" >/dev/null 2>&1; then
9962 ac_cv_c_stringize=no
9964 ac_cv_c_stringize=yes
9969 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9970 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9971 if test $ac_cv_c_stringize = yes; then
9973 cat >>confdefs.h <<\_ACEOF
9974 #define HAVE_STRINGIZE 1
9979 echo "$as_me:$LINENO: checking for signed types" >&5
9980 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9981 if test "${pgac_cv_c_signed+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 cat >conftest.$ac_ext <<_ACEOF
9985 #line $LINENO "configure"
9986 #include "confdefs.h"
9988 #ifdef F77_DUMMY_MAIN
9992 int F77_DUMMY_MAIN() { return 1; }
9997 signed char c; signed short s; signed int i;
10002 rm -f conftest.$ac_objext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10004 (eval $ac_compile) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -s conftest.$ac_objext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 pgac_cv_c_signed=yes
10016 echo "$as_me: failed program was:" >&5
10017 cat conftest.$ac_ext >&5
10018 pgac_cv_c_signed=no
10020 rm -f conftest.$ac_objext conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
10023 echo "${ECHO_T}$pgac_cv_c_signed" >&6
10024 if test x"$pgac_cv_c_signed" = xno ; then
10026 cat >>confdefs.h <<\_ACEOF
10031 echo "$as_me:$LINENO: checking for working volatile" >&5
10032 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
10033 if test "${ac_cv_c_volatile+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 cat >conftest.$ac_ext <<_ACEOF
10037 #line $LINENO "configure"
10038 #include "confdefs.h"
10040 #ifdef F77_DUMMY_MAIN
10041 # ifdef __cplusplus
10044 int F77_DUMMY_MAIN() { return 1; }
10056 rm -f conftest.$ac_objext
10057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10058 (eval $ac_compile) 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -s conftest.$ac_objext'
10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064 (eval $ac_try) 2>&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); }; }; then
10068 ac_cv_c_volatile=yes
10070 echo "$as_me: failed program was:" >&5
10071 cat conftest.$ac_ext >&5
10072 ac_cv_c_volatile=no
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10076 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
10077 echo "${ECHO_T}$ac_cv_c_volatile" >&6
10078 if test $ac_cv_c_volatile = no; then
10080 cat >>confdefs.h <<\_ACEOF
10086 echo "$as_me:$LINENO: checking for __func__" >&5
10087 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
10088 if test "${pgac_cv_funcname_func_support+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 cat >conftest.$ac_ext <<_ACEOF
10092 #line $LINENO "configure"
10093 #include "confdefs.h"
10095 #ifdef F77_DUMMY_MAIN
10096 # ifdef __cplusplus
10099 int F77_DUMMY_MAIN() { return 1; }
10104 printf("%s\n", __func__);
10109 rm -f conftest.$ac_objext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10111 (eval $ac_compile) 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try='test -s conftest.$ac_objext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 pgac_cv_funcname_func_support=yes
10123 echo "$as_me: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10125 pgac_cv_funcname_func_support=no
10127 rm -f conftest.$ac_objext conftest.$ac_ext
10129 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
10130 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
10131 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10133 cat >>confdefs.h <<\_ACEOF
10134 #define HAVE_FUNCNAME__FUNC 1
10138 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
10139 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
10140 if test "${pgac_cv_funcname_function_support+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 cat >conftest.$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10145 #include "confdefs.h"
10147 #ifdef F77_DUMMY_MAIN
10148 # ifdef __cplusplus
10151 int F77_DUMMY_MAIN() { return 1; }
10156 printf("%s\n", __FUNCTION__);
10161 rm -f conftest.$ac_objext
10162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10163 (eval $ac_compile) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try='test -s conftest.$ac_objext'
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; }; then
10173 pgac_cv_funcname_function_support=yes
10175 echo "$as_me: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10177 pgac_cv_funcname_function_support=no
10179 rm -f conftest.$ac_objext conftest.$ac_ext
10181 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
10182 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
10183 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10185 cat >>confdefs.h <<\_ACEOF
10186 #define HAVE_FUNCNAME__FUNCTION 1
10191 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10192 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10193 if test "${ac_cv_struct_tm+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 cat >conftest.$ac_ext <<_ACEOF
10197 #line $LINENO "configure"
10198 #include "confdefs.h"
10199 #include <sys/types.h>
10202 #ifdef F77_DUMMY_MAIN
10203 # ifdef __cplusplus
10206 int F77_DUMMY_MAIN() { return 1; }
10211 struct tm *tp; tp->tm_sec;
10216 rm -f conftest.$ac_objext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10218 (eval $ac_compile) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } &&
10222 { ac_try='test -s conftest.$ac_objext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10228 ac_cv_struct_tm=time.h
10230 echo "$as_me: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 ac_cv_struct_tm=sys/time.h
10234 rm -f conftest.$ac_objext conftest.$ac_ext
10236 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10237 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10238 if test $ac_cv_struct_tm = sys/time.h; then
10240 cat >>confdefs.h <<\_ACEOF
10241 #define TM_IN_SYS_TIME 1
10246 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10247 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10248 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10252 #line $LINENO "configure"
10253 #include "confdefs.h"
10254 #include <sys/types.h>
10255 #include <$ac_cv_struct_tm>
10258 #ifdef F77_DUMMY_MAIN
10259 # ifdef __cplusplus
10262 int F77_DUMMY_MAIN() { return 1; }
10267 static struct tm ac_aggr;
10268 if (ac_aggr.tm_zone)
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -s conftest.$ac_objext'
10281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10282 (eval $ac_try) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; }; then
10286 ac_cv_member_struct_tm_tm_zone=yes
10288 echo "$as_me: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10290 ac_cv_member_struct_tm_tm_zone=no
10292 rm -f conftest.$ac_objext conftest.$ac_ext
10294 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10295 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10296 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10298 cat >>confdefs.h <<_ACEOF
10299 #define HAVE_STRUCT_TM_TM_ZONE 1
10305 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10307 cat >>confdefs.h <<\_ACEOF
10308 #define HAVE_TM_ZONE 1
10312 echo "$as_me:$LINENO: checking for tzname" >&5
10313 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10314 if test "${ac_cv_var_tzname+set}" = set; then
10315 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 cat >conftest.$ac_ext <<_ACEOF
10318 #line $LINENO "configure"
10319 #include "confdefs.h"
10321 #ifndef tzname /* For SGI. */
10322 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10325 #ifdef F77_DUMMY_MAIN
10326 # ifdef __cplusplus
10329 int F77_DUMMY_MAIN() { return 1; }
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10341 (eval $ac_link) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -s conftest$ac_exeext'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_cv_var_tzname=yes
10353 echo "$as_me: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10355 ac_cv_var_tzname=no
10357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10359 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10360 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10361 if test $ac_cv_var_tzname = yes; then
10363 cat >>confdefs.h <<\_ACEOF
10364 #define HAVE_TZNAME 1
10369 echo "$as_me:$LINENO: checking for union semun" >&5
10370 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
10371 if test "${ac_cv_type_union_semun+set}" = set; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 cat >conftest.$ac_ext <<_ACEOF
10375 #line $LINENO "configure"
10376 #include "confdefs.h"
10377 #include <sys/types.h>
10378 #include <sys/ipc.h>
10379 #include <sys/sem.h>
10381 #ifdef F77_DUMMY_MAIN
10382 # ifdef __cplusplus
10385 int F77_DUMMY_MAIN() { return 1; }
10390 if ((union semun *) 0)
10392 if (sizeof (union semun))
10398 rm -f conftest.$ac_objext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400 (eval $ac_compile) 2>&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } &&
10404 { ac_try='test -s conftest.$ac_objext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 ac_cv_type_union_semun=yes
10412 echo "$as_me: failed program was:" >&5
10413 cat conftest.$ac_ext >&5
10414 ac_cv_type_union_semun=no
10416 rm -f conftest.$ac_objext conftest.$ac_ext
10418 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
10419 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
10420 if test $ac_cv_type_union_semun = yes; then
10422 cat >>confdefs.h <<_ACEOF
10423 #define HAVE_UNION_SEMUN 1
10429 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
10430 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
10431 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 cat >conftest.$ac_ext <<_ACEOF
10435 #line $LINENO "configure"
10436 #include "confdefs.h"
10437 #include <sys/types.h>
10438 #ifdef HAVE_SYS_UN_H
10439 #include <sys/un.h>
10443 #ifdef F77_DUMMY_MAIN
10444 # ifdef __cplusplus
10447 int F77_DUMMY_MAIN() { return 1; }
10452 if ((struct sockaddr_un *) 0)
10454 if (sizeof (struct sockaddr_un))
10460 rm -f conftest.$ac_objext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462 (eval $ac_compile) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try='test -s conftest.$ac_objext'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 ac_cv_type_struct_sockaddr_un=yes
10474 echo "$as_me: failed program was:" >&5
10475 cat conftest.$ac_ext >&5
10476 ac_cv_type_struct_sockaddr_un=no
10478 rm -f conftest.$ac_objext conftest.$ac_ext
10480 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
10481 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
10482 if test $ac_cv_type_struct_sockaddr_un = yes; then
10484 cat >>confdefs.h <<_ACEOF
10485 #define HAVE_STRUCT_SOCKADDR_UN 1
10489 cat >>confdefs.h <<\_ACEOF
10490 #define HAVE_UNIX_SOCKETS 1
10495 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
10496 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
10497 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 cat >conftest.$ac_ext <<_ACEOF
10501 #line $LINENO "configure"
10502 #include "confdefs.h"
10503 #include <sys/types.h>
10504 #ifdef HAVE_SYS_SOCKET_H
10505 #include <sys/socket.h>
10509 #ifdef F77_DUMMY_MAIN
10510 # ifdef __cplusplus
10513 int F77_DUMMY_MAIN() { return 1; }
10518 if ((struct sockaddr_storage *) 0)
10520 if (sizeof (struct sockaddr_storage))
10526 rm -f conftest.$ac_objext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528 (eval $ac_compile) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
10532 { ac_try='test -s conftest.$ac_objext'
10533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534 (eval $ac_try) 2>&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; }; then
10538 ac_cv_type_struct_sockaddr_storage=yes
10540 echo "$as_me: failed program was:" >&5
10541 cat conftest.$ac_ext >&5
10542 ac_cv_type_struct_sockaddr_storage=no
10544 rm -f conftest.$ac_objext conftest.$ac_ext
10546 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10547 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10548 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10550 cat >>confdefs.h <<_ACEOF
10551 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10557 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
10558 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
10559 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 cat >conftest.$ac_ext <<_ACEOF
10563 #line $LINENO "configure"
10564 #include "confdefs.h"
10565 #include <sys/types.h>
10566 #ifdef HAVE_SYS_SOCKET_H
10567 #include <sys/socket.h>
10571 #ifdef F77_DUMMY_MAIN
10572 # ifdef __cplusplus
10575 int F77_DUMMY_MAIN() { return 1; }
10580 static struct sockaddr_storage ac_aggr;
10581 if (ac_aggr.ss_family)
10587 rm -f conftest.$ac_objext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10589 (eval $ac_compile) 2>&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try='test -s conftest.$ac_objext'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }; then
10599 ac_cv_member_struct_sockaddr_storage_ss_family=yes
10601 echo "$as_me: failed program was:" >&5
10602 cat conftest.$ac_ext >&5
10603 ac_cv_member_struct_sockaddr_storage_ss_family=no
10605 rm -f conftest.$ac_objext conftest.$ac_ext
10607 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10608 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10609 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10611 cat >>confdefs.h <<_ACEOF
10612 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10617 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10618 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10619 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10622 cat >conftest.$ac_ext <<_ACEOF
10623 #line $LINENO "configure"
10624 #include "confdefs.h"
10625 #include <sys/types.h>
10626 #ifdef HAVE_SYS_SOCKET_H
10627 #include <sys/socket.h>
10631 #ifdef F77_DUMMY_MAIN
10632 # ifdef __cplusplus
10635 int F77_DUMMY_MAIN() { return 1; }
10640 static struct sockaddr_storage ac_aggr;
10641 if (ac_aggr.__ss_family)
10647 rm -f conftest.$ac_objext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649 (eval $ac_compile) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -s conftest.$ac_objext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 ac_cv_member_struct_sockaddr_storage___ss_family=yes
10661 echo "$as_me: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10663 ac_cv_member_struct_sockaddr_storage___ss_family=no
10665 rm -f conftest.$ac_objext conftest.$ac_ext
10667 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10668 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10669 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10671 cat >>confdefs.h <<_ACEOF
10672 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10677 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10678 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10679 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10683 #line $LINENO "configure"
10684 #include "confdefs.h"
10685 #include <sys/types.h>
10686 #ifdef HAVE_SYS_SOCKET_H
10687 #include <sys/socket.h>
10691 #ifdef F77_DUMMY_MAIN
10692 # ifdef __cplusplus
10695 int F77_DUMMY_MAIN() { return 1; }
10700 static struct sockaddr_storage ac_aggr;
10701 if (ac_aggr.ss_len)
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -s conftest.$ac_objext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10721 echo "$as_me: failed program was:" >&5
10722 cat conftest.$ac_ext >&5
10723 ac_cv_member_struct_sockaddr_storage_ss_len=no
10725 rm -f conftest.$ac_objext conftest.$ac_ext
10727 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10728 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10729 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10731 cat >>confdefs.h <<_ACEOF
10732 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10737 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10738 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10739 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 cat >conftest.$ac_ext <<_ACEOF
10743 #line $LINENO "configure"
10744 #include "confdefs.h"
10745 #include <sys/types.h>
10746 #ifdef HAVE_SYS_SOCKET_H
10747 #include <sys/socket.h>
10751 #ifdef F77_DUMMY_MAIN
10752 # ifdef __cplusplus
10755 int F77_DUMMY_MAIN() { return 1; }
10760 static struct sockaddr_storage ac_aggr;
10761 if (ac_aggr.__ss_len)
10767 rm -f conftest.$ac_objext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769 (eval $ac_compile) 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -s conftest.$ac_objext'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10781 echo "$as_me: failed program was:" >&5
10782 cat conftest.$ac_ext >&5
10783 ac_cv_member_struct_sockaddr_storage___ss_len=no
10785 rm -f conftest.$ac_objext conftest.$ac_ext
10787 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10788 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10789 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10791 cat >>confdefs.h <<_ACEOF
10792 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10797 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10798 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10799 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 cat >conftest.$ac_ext <<_ACEOF
10803 #line $LINENO "configure"
10804 #include "confdefs.h"
10805 #include <sys/types.h>
10806 #ifdef HAVE_SYS_SOCKET_H
10807 #include <sys/socket.h>
10811 #ifdef F77_DUMMY_MAIN
10812 # ifdef __cplusplus
10815 int F77_DUMMY_MAIN() { return 1; }
10820 static struct sockaddr ac_aggr;
10821 if (ac_aggr.sa_len)
10827 rm -f conftest.$ac_objext
10828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10829 (eval $ac_compile) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -s conftest.$ac_objext'
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then
10839 ac_cv_member_struct_sockaddr_sa_len=yes
10841 echo "$as_me: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10843 ac_cv_member_struct_sockaddr_sa_len=no
10845 rm -f conftest.$ac_objext conftest.$ac_ext
10847 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10848 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10849 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10858 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10859 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10860 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 cat >conftest.$ac_ext <<_ACEOF
10864 #line $LINENO "configure"
10865 #include "confdefs.h"
10866 #include <sys/types.h>
10867 #include <sys/socket.h>
10871 #ifdef F77_DUMMY_MAIN
10872 # ifdef __cplusplus
10875 int F77_DUMMY_MAIN() { return 1; }
10880 if ((struct addrinfo *) 0)
10882 if (sizeof (struct addrinfo))
10888 rm -f conftest.$ac_objext
10889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -s conftest.$ac_objext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 ac_cv_type_struct_addrinfo=yes
10902 echo "$as_me: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10904 ac_cv_type_struct_addrinfo=no
10906 rm -f conftest.$ac_objext conftest.$ac_ext
10908 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10909 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10910 if test $ac_cv_type_struct_addrinfo = yes; then
10912 cat >>confdefs.h <<_ACEOF
10913 #define HAVE_STRUCT_ADDRINFO 1
10920 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10921 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10922 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 cat >conftest.$ac_ext <<_ACEOF
10926 #line $LINENO "configure"
10927 #include "confdefs.h"
10928 #include <sys/param.h>
10929 #include <sys/types.h>
10930 #include <sys/socket.h>
10931 #include <sys/ucred.h>
10933 #ifdef F77_DUMMY_MAIN
10934 # ifdef __cplusplus
10937 int F77_DUMMY_MAIN() { return 1; }
10942 if ((struct cmsgcred *) 0)
10944 if (sizeof (struct cmsgcred))
10950 rm -f conftest.$ac_objext
10951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10952 (eval $ac_compile) 2>&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -s conftest.$ac_objext'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 ac_cv_type_struct_cmsgcred=yes
10964 echo "$as_me: failed program was:" >&5
10965 cat conftest.$ac_ext >&5
10966 ac_cv_type_struct_cmsgcred=no
10968 rm -f conftest.$ac_objext conftest.$ac_ext
10970 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10971 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10972 if test $ac_cv_type_struct_cmsgcred = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975 #define HAVE_STRUCT_CMSGCRED 1
10980 echo "$as_me:$LINENO: checking for struct fcred" >&5
10981 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10982 if test "${ac_cv_type_struct_fcred+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10985 cat >conftest.$ac_ext <<_ACEOF
10986 #line $LINENO "configure"
10987 #include "confdefs.h"
10988 #include <sys/param.h>
10989 #include <sys/types.h>
10990 #include <sys/socket.h>
10991 #include <sys/ucred.h>
10993 #ifdef F77_DUMMY_MAIN
10994 # ifdef __cplusplus
10997 int F77_DUMMY_MAIN() { return 1; }
11002 if ((struct fcred *) 0)
11004 if (sizeof (struct fcred))
11010 rm -f conftest.$ac_objext
11011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11012 (eval $ac_compile) 2>&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try='test -s conftest.$ac_objext'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
11022 ac_cv_type_struct_fcred=yes
11024 echo "$as_me: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11026 ac_cv_type_struct_fcred=no
11028 rm -f conftest.$ac_objext conftest.$ac_ext
11030 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
11031 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
11032 if test $ac_cv_type_struct_fcred = yes; then
11034 cat >>confdefs.h <<_ACEOF
11035 #define HAVE_STRUCT_FCRED 1
11040 echo "$as_me:$LINENO: checking for struct sockcred" >&5
11041 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
11042 if test "${ac_cv_type_struct_sockcred+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 cat >conftest.$ac_ext <<_ACEOF
11046 #line $LINENO "configure"
11047 #include "confdefs.h"
11048 #include <sys/param.h>
11049 #include <sys/types.h>
11050 #include <sys/socket.h>
11051 #include <sys/ucred.h>
11053 #ifdef F77_DUMMY_MAIN
11054 # ifdef __cplusplus
11057 int F77_DUMMY_MAIN() { return 1; }
11062 if ((struct sockcred *) 0)
11064 if (sizeof (struct sockcred))
11070 rm -f conftest.$ac_objext
11071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } &&
11076 { ac_try='test -s conftest.$ac_objext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 ac_cv_type_struct_sockcred=yes
11084 echo "$as_me: failed program was:" >&5
11085 cat conftest.$ac_ext >&5
11086 ac_cv_type_struct_sockcred=no
11088 rm -f conftest.$ac_objext conftest.$ac_ext
11090 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
11091 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
11092 if test $ac_cv_type_struct_sockcred = yes; then
11094 cat >>confdefs.h <<_ACEOF
11095 #define HAVE_STRUCT_SOCKCRED 1
11102 echo "$as_me:$LINENO: checking for struct option" >&5
11103 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
11104 if test "${ac_cv_type_struct_option+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11109 #include "confdefs.h"
11110 #ifdef HAVE_GETOPT_H
11111 #include <getopt.h>
11114 #ifdef F77_DUMMY_MAIN
11115 # ifdef __cplusplus
11118 int F77_DUMMY_MAIN() { return 1; }
11123 if ((struct option *) 0)
11125 if (sizeof (struct option))
11131 rm -f conftest.$ac_objext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133 (eval $ac_compile) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_type_struct_option=yes
11145 echo "$as_me: failed program was:" >&5
11146 cat conftest.$ac_ext >&5
11147 ac_cv_type_struct_option=no
11149 rm -f conftest.$ac_objext conftest.$ac_ext
11151 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
11152 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
11153 if test $ac_cv_type_struct_option = yes; then
11155 cat >>confdefs.h <<_ACEOF
11156 #define HAVE_STRUCT_OPTION 1
11163 if test "$with_zlib" = yes; then
11164 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
11165 # did not). While we could work around the lack of z_streamp, it
11166 # seems unwise to encourage people to use such old zlib versions...
11167 echo "$as_me:$LINENO: checking for z_streamp" >&5
11168 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
11169 if test "${ac_cv_type_z_streamp+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.$ac_ext <<_ACEOF
11173 #line $LINENO "configure"
11174 #include "confdefs.h"
11177 #ifdef F77_DUMMY_MAIN
11178 # ifdef __cplusplus
11181 int F77_DUMMY_MAIN() { return 1; }
11186 if ((z_streamp *) 0)
11188 if (sizeof (z_streamp))
11194 rm -f conftest.$ac_objext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11196 (eval $ac_compile) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
11200 { ac_try='test -s conftest.$ac_objext'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 ac_cv_type_z_streamp=yes
11208 echo "$as_me: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 ac_cv_type_z_streamp=no
11212 rm -f conftest.$ac_objext conftest.$ac_ext
11214 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
11215 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
11216 if test $ac_cv_type_z_streamp = yes; then
11219 { { echo "$as_me:$LINENO: error: zlib version is too old
11220 Use --without-zlib to disable zlib support." >&5
11221 echo "$as_me: error: zlib version is too old
11222 Use --without-zlib to disable zlib support." >&2;}
11223 { (exit 1); exit 1; }; }
11228 if test "$with_krb5" = yes; then
11229 # Check for differences between MIT and Heimdal (KTH) releases
11230 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
11231 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
11232 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11236 #line $LINENO "configure"
11237 #include "confdefs.h"
11240 #ifdef F77_DUMMY_MAIN
11241 # ifdef __cplusplus
11244 int F77_DUMMY_MAIN() { return 1; }
11249 static krb5_ticket ac_aggr;
11250 if (ac_aggr.enc_part2)
11256 rm -f conftest.$ac_objext
11257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11258 (eval $ac_compile) 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -s conftest.$ac_objext'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; }; then
11268 ac_cv_member_krb5_ticket_enc_part2=yes
11270 echo "$as_me: failed program was:" >&5
11271 cat conftest.$ac_ext >&5
11272 ac_cv_member_krb5_ticket_enc_part2=no
11274 rm -f conftest.$ac_objext conftest.$ac_ext
11276 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
11277 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
11278 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define HAVE_KRB5_TICKET_ENC_PART2 1
11286 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
11287 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
11288 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 cat >conftest.$ac_ext <<_ACEOF
11292 #line $LINENO "configure"
11293 #include "confdefs.h"
11296 #ifdef F77_DUMMY_MAIN
11297 # ifdef __cplusplus
11300 int F77_DUMMY_MAIN() { return 1; }
11305 static krb5_ticket ac_aggr;
11306 if (ac_aggr.client)
11312 rm -f conftest.$ac_objext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11314 (eval $ac_compile) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
11318 { ac_try='test -s conftest.$ac_objext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_cv_member_krb5_ticket_client=yes
11326 echo "$as_me: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11328 ac_cv_member_krb5_ticket_client=no
11330 rm -f conftest.$ac_objext conftest.$ac_ext
11332 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
11333 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
11334 if test $ac_cv_member_krb5_ticket_client = yes; then
11336 cat >>confdefs.h <<_ACEOF
11337 #define HAVE_KRB5_TICKET_CLIENT 1
11342 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
11343 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
11344 { (exit 1); exit 1; }; }
11349 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
11350 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
11351 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 cat >conftest.$ac_ext <<_ACEOF
11355 #line $LINENO "configure"
11356 #include "confdefs.h"
11359 #ifdef F77_DUMMY_MAIN
11360 # ifdef __cplusplus
11363 int F77_DUMMY_MAIN() { return 1; }
11368 static krb5_error ac_aggr;
11369 if (ac_aggr.text.data)
11375 rm -f conftest.$ac_objext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11377 (eval $ac_compile) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
11381 { ac_try='test -s conftest.$ac_objext'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; }; then
11387 ac_cv_member_krb5_error_text_data=yes
11389 echo "$as_me: failed program was:" >&5
11390 cat conftest.$ac_ext >&5
11391 ac_cv_member_krb5_error_text_data=no
11393 rm -f conftest.$ac_objext conftest.$ac_ext
11395 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
11396 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
11397 if test $ac_cv_member_krb5_error_text_data = yes; then
11399 cat >>confdefs.h <<_ACEOF
11400 #define HAVE_KRB5_ERROR_TEXT_DATA 1
11405 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
11406 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
11407 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11411 #line $LINENO "configure"
11412 #include "confdefs.h"
11415 #ifdef F77_DUMMY_MAIN
11416 # ifdef __cplusplus
11419 int F77_DUMMY_MAIN() { return 1; }
11424 static krb5_error ac_aggr;
11425 if (ac_aggr.e_data)
11431 rm -f conftest.$ac_objext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11433 (eval $ac_compile) 2>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
11437 { ac_try='test -s conftest.$ac_objext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11443 ac_cv_member_krb5_error_e_data=yes
11445 echo "$as_me: failed program was:" >&5
11446 cat conftest.$ac_ext >&5
11447 ac_cv_member_krb5_error_e_data=no
11449 rm -f conftest.$ac_objext conftest.$ac_ext
11451 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
11452 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
11453 if test $ac_cv_member_krb5_error_e_data = yes; then
11455 cat >>confdefs.h <<_ACEOF
11456 #define HAVE_KRB5_ERROR_E_DATA 1
11461 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
11462 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
11463 { (exit 1); exit 1; }; }
11471 ## Functions, global variables
11474 echo "$as_me:$LINENO: checking for int timezone" >&5
11475 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
11476 if test "${pgac_cv_var_int_timezone+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 cat >conftest.$ac_ext <<_ACEOF
11480 #line $LINENO "configure"
11481 #include "confdefs.h"
11484 #ifdef F77_DUMMY_MAIN
11485 # ifdef __cplusplus
11488 int F77_DUMMY_MAIN() { return 1; }
11494 res = timezone / 60;
11496 res = _timezone / 60;
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11504 (eval $ac_link) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -s conftest$ac_exeext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 pgac_cv_var_int_timezone=yes
11516 echo "$as_me: failed program was:" >&5
11517 cat conftest.$ac_ext >&5
11518 pgac_cv_var_int_timezone=no
11520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11522 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
11523 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
11524 if test x"$pgac_cv_var_int_timezone" = xyes ; then
11526 cat >>confdefs.h <<\_ACEOF
11527 #define HAVE_INT_TIMEZONE
11531 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
11532 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
11533 if test "${ac_cv_func_accept_return+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 if test "${ac_cv_func_accept_arg1+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 if test "${ac_cv_func_accept_arg2+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 if test "${ac_cv_func_accept_arg3+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
11546 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
11547 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
11548 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
11549 cat >conftest.$ac_ext <<_ACEOF
11550 #line $LINENO "configure"
11551 #include "confdefs.h"
11552 #ifdef HAVE_SYS_TYPES_H
11553 #include <sys/types.h>
11555 #ifdef HAVE_SYS_SOCKET_H
11556 #include <sys/socket.h>
11558 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
11559 #ifdef F77_DUMMY_MAIN
11560 # ifdef __cplusplus
11563 int F77_DUMMY_MAIN() { return 1; }
11573 rm -f conftest.$ac_objext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } &&
11579 { ac_try='test -s conftest.$ac_objext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 ac_not_found=no; break 4
11587 echo "$as_me: failed program was:" >&5
11588 cat conftest.$ac_ext >&5
11591 rm -f conftest.$ac_objext conftest.$ac_ext
11596 if test "$ac_not_found" = yes; then
11597 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
11598 echo "$as_me: error: could not determine argument types" >&2;}
11599 { (exit 1); exit 1; }; }
11601 if test "$ac_cv_func_accept_arg3" = "void"; then
11602 ac_cv_func_accept_arg3=int
11612 echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
11613 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11615 cat >>confdefs.h <<_ACEOF
11616 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11620 cat >>confdefs.h <<_ACEOF
11621 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11625 cat >>confdefs.h <<_ACEOF
11626 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11630 cat >>confdefs.h <<_ACEOF
11631 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11635 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11636 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11637 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 cat >conftest.$ac_ext <<_ACEOF
11641 #line $LINENO "configure"
11642 #include "confdefs.h"
11643 #include <sys/time.h>
11644 #ifdef F77_DUMMY_MAIN
11645 # ifdef __cplusplus
11648 int F77_DUMMY_MAIN() { return 1; }
11653 struct timeval *tp;
11654 struct timezone *tzp;
11655 gettimeofday(tp,tzp);
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662 (eval $ac_compile) 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } &&
11666 { ac_try='test -s conftest.$ac_objext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 pgac_cv_func_gettimeofday_1arg=no
11674 echo "$as_me: failed program was:" >&5
11675 cat conftest.$ac_ext >&5
11676 pgac_cv_func_gettimeofday_1arg=yes
11678 rm -f conftest.$ac_objext conftest.$ac_ext
11680 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11681 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11682 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11684 cat >>confdefs.h <<\_ACEOF
11685 #define GETTIMEOFDAY_1ARG
11711 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11716 if eval "test \"\${$as_ac_var+set}\" = set"; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 cat >conftest.$ac_ext <<_ACEOF
11720 #line $LINENO "configure"
11721 #include "confdefs.h"
11722 /* System header to define __stub macros and hopefully few prototypes,
11723 which can conflict with char $ac_func (); below. */
11724 #include <assert.h>
11725 /* Override any gcc2 internal prototype to avoid an error. */
11729 /* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11734 #ifdef F77_DUMMY_MAIN
11735 # ifdef __cplusplus
11738 int F77_DUMMY_MAIN() { return 1; }
11743 /* The GNU C library defines this for functions which it implements
11744 to always fail with ENOSYS. Some functions are actually named
11745 something starting with __ and the normal name is an alias. */
11746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11758 (eval $ac_link) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -s conftest$ac_exeext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 eval "$as_ac_var=yes"
11770 echo "$as_me: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11772 eval "$as_ac_var=no"
11774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11778 if test `eval echo '${'$as_ac_var'}'` = yes; then
11779 cat >>confdefs.h <<_ACEOF
11780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11787 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11788 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11789 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 cat >conftest.$ac_ext <<_ACEOF
11793 #line $LINENO "configure"
11794 #include "confdefs.h"
11795 #include <unistd.h>
11797 #ifdef F77_DUMMY_MAIN
11798 # ifdef __cplusplus
11801 int F77_DUMMY_MAIN() { return 1; }
11807 char *p = (char *) fdatasync;
11814 rm -f conftest.$ac_objext
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -s conftest.$ac_objext'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 ac_cv_have_decl_fdatasync=yes
11828 echo "$as_me: failed program was:" >&5
11829 cat conftest.$ac_ext >&5
11830 ac_cv_have_decl_fdatasync=no
11832 rm -f conftest.$ac_objext conftest.$ac_ext
11834 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11835 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11836 if test $ac_cv_have_decl_fdatasync = yes; then
11838 cat >>confdefs.h <<_ACEOF
11839 #define HAVE_DECL_FDATASYNC 1
11844 cat >>confdefs.h <<_ACEOF
11845 #define HAVE_DECL_FDATASYNC 0
11854 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11855 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11856 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 cat >conftest.$ac_ext <<_ACEOF
11860 #line $LINENO "configure"
11861 #include "confdefs.h"
11862 $ac_includes_default
11863 #include <netinet/in.h>
11865 #ifdef F77_DUMMY_MAIN
11866 # ifdef __cplusplus
11869 int F77_DUMMY_MAIN() { return 1; }
11874 if ((struct sockaddr_in6 *) 0)
11876 if (sizeof (struct sockaddr_in6))
11882 rm -f conftest.$ac_objext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11884 (eval $ac_compile) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -s conftest.$ac_objext'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_cv_type_struct_sockaddr_in6=yes
11896 echo "$as_me: failed program was:" >&5
11897 cat conftest.$ac_ext >&5
11898 ac_cv_type_struct_sockaddr_in6=no
11900 rm -f conftest.$ac_objext conftest.$ac_ext
11902 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11903 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11904 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11905 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11906 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11907 if test "${ac_cv_func_inet_ntop+set}" = set; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11911 #line $LINENO "configure"
11912 #include "confdefs.h"
11913 /* System header to define __stub macros and hopefully few prototypes,
11914 which can conflict with char inet_ntop (); below. */
11915 #include <assert.h>
11916 /* Override any gcc2 internal prototype to avoid an error. */
11920 /* We use char because int might match the return type of a gcc2
11921 builtin and then its argument prototype would still apply. */
11925 #ifdef F77_DUMMY_MAIN
11926 # ifdef __cplusplus
11929 int F77_DUMMY_MAIN() { return 1; }
11934 /* The GNU C library defines this for functions which it implements
11935 to always fail with ENOSYS. Some functions are actually named
11936 something starting with __ and the normal name is an alias. */
11937 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11949 (eval $ac_link) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -s conftest$ac_exeext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_func_inet_ntop=yes
11961 echo "$as_me: failed program was:" >&5
11962 cat conftest.$ac_ext >&5
11963 ac_cv_func_inet_ntop=no
11965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11967 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11968 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11969 if test $ac_cv_func_inet_ntop = yes; then
11971 cat >>confdefs.h <<\_ACEOF
11972 #define HAVE_IPV6 1
11982 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11983 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11984 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 #include "confdefs.h"
11990 #include <machine/vmparam.h>
11991 #include <sys/exec.h>
11993 #ifdef F77_DUMMY_MAIN
11994 # ifdef __cplusplus
11997 int F77_DUMMY_MAIN() { return 1; }
12002 PS_STRINGS->ps_nargvstr = 1;
12003 PS_STRINGS->ps_argvstr = "foo";
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 pgac_cv_var_PS_STRINGS=yes
12022 echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 pgac_cv_var_PS_STRINGS=no
12026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12028 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
12029 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
12030 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
12032 cat >>confdefs.h <<\_ACEOF
12033 #define HAVE_PS_STRINGS
12039 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
12040 # is missing. Yes, there are machines that have only one. We may
12041 # also decide to use snprintf.c if snprintf() is present but does not
12042 # have all the features we need --- see below.
12044 pgac_need_repl_snprintf=no
12046 for ac_func in snprintf
12048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12049 echo "$as_me:$LINENO: checking for $ac_func" >&5
12050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12051 if eval "test \"\${$as_ac_var+set}\" = set"; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 cat >conftest.$ac_ext <<_ACEOF
12055 #line $LINENO "configure"
12056 #include "confdefs.h"
12057 /* System header to define __stub macros and hopefully few prototypes,
12058 which can conflict with char $ac_func (); below. */
12059 #include <assert.h>
12060 /* Override any gcc2 internal prototype to avoid an error. */
12064 /* We use char because int might match the return type of a gcc2
12065 builtin and then its argument prototype would still apply. */
12069 #ifdef F77_DUMMY_MAIN
12070 # ifdef __cplusplus
12073 int F77_DUMMY_MAIN() { return 1; }
12078 /* The GNU C library defines this for functions which it implements
12079 to always fail with ENOSYS. Some functions are actually named
12080 something starting with __ and the normal name is an alias. */
12081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093 (eval $ac_link) 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -s conftest$ac_exeext'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 eval "$as_ac_var=yes"
12105 echo "$as_me: failed program was:" >&5
12106 cat conftest.$ac_ext >&5
12107 eval "$as_ac_var=no"
12109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12113 if test `eval echo '${'$as_ac_var'}'` = yes; then
12114 cat >>confdefs.h <<_ACEOF
12115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12119 pgac_need_repl_snprintf=yes
12124 for ac_func in vsnprintf
12126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12127 echo "$as_me:$LINENO: checking for $ac_func" >&5
12128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12129 if eval "test \"\${$as_ac_var+set}\" = set"; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 cat >conftest.$ac_ext <<_ACEOF
12133 #line $LINENO "configure"
12134 #include "confdefs.h"
12135 /* System header to define __stub macros and hopefully few prototypes,
12136 which can conflict with char $ac_func (); below. */
12137 #include <assert.h>
12138 /* Override any gcc2 internal prototype to avoid an error. */
12142 /* We use char because int might match the return type of a gcc2
12143 builtin and then its argument prototype would still apply. */
12147 #ifdef F77_DUMMY_MAIN
12148 # ifdef __cplusplus
12151 int F77_DUMMY_MAIN() { return 1; }
12156 /* The GNU C library defines this for functions which it implements
12157 to always fail with ENOSYS. Some functions are actually named
12158 something starting with __ and the normal name is an alias. */
12159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12169 rm -f conftest.$ac_objext conftest$ac_exeext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12171 (eval $ac_link) 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
12175 { ac_try='test -s conftest$ac_exeext'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12181 eval "$as_ac_var=yes"
12183 echo "$as_me: failed program was:" >&5
12184 cat conftest.$ac_ext >&5
12185 eval "$as_ac_var=no"
12187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12191 if test `eval echo '${'$as_ac_var'}'` = yes; then
12192 cat >>confdefs.h <<_ACEOF
12193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12197 pgac_need_repl_snprintf=yes
12203 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
12204 # include/c.h will provide declarations. Note this is a separate test
12205 # from whether the functions exist in the C library --- there are
12206 # systems that have the functions but don't bother to declare them :-(
12208 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
12209 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
12210 if test "${ac_cv_have_decl_snprintf+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 cat >conftest.$ac_ext <<_ACEOF
12214 #line $LINENO "configure"
12215 #include "confdefs.h"
12216 $ac_includes_default
12217 #ifdef F77_DUMMY_MAIN
12218 # ifdef __cplusplus
12221 int F77_DUMMY_MAIN() { return 1; }
12227 char *p = (char *) snprintf;
12234 rm -f conftest.$ac_objext
12235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236 (eval $ac_compile) 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } &&
12240 { ac_try='test -s conftest.$ac_objext'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 ac_cv_have_decl_snprintf=yes
12248 echo "$as_me: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12250 ac_cv_have_decl_snprintf=no
12252 rm -f conftest.$ac_objext conftest.$ac_ext
12254 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
12255 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
12256 if test $ac_cv_have_decl_snprintf = yes; then
12258 cat >>confdefs.h <<_ACEOF
12259 #define HAVE_DECL_SNPRINTF 1
12264 cat >>confdefs.h <<_ACEOF
12265 #define HAVE_DECL_SNPRINTF 0
12270 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
12271 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
12272 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 cat >conftest.$ac_ext <<_ACEOF
12276 #line $LINENO "configure"
12277 #include "confdefs.h"
12278 $ac_includes_default
12279 #ifdef F77_DUMMY_MAIN
12280 # ifdef __cplusplus
12283 int F77_DUMMY_MAIN() { return 1; }
12289 char *p = (char *) vsnprintf;
12296 rm -f conftest.$ac_objext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12298 (eval $ac_compile) 2>&5
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); } &&
12302 { ac_try='test -s conftest.$ac_objext'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 ac_cv_have_decl_vsnprintf=yes
12310 echo "$as_me: failed program was:" >&5
12311 cat conftest.$ac_ext >&5
12312 ac_cv_have_decl_vsnprintf=no
12314 rm -f conftest.$ac_objext conftest.$ac_ext
12316 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
12317 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
12318 if test $ac_cv_have_decl_vsnprintf = yes; then
12320 cat >>confdefs.h <<_ACEOF
12321 #define HAVE_DECL_VSNPRINTF 1
12326 cat >>confdefs.h <<_ACEOF
12327 #define HAVE_DECL_VSNPRINTF 0
12336 # do this one the hard way in case isinf() is a macro
12337 echo "$as_me:$LINENO: checking for isinf" >&5
12338 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
12339 if test "${ac_cv_func_isinf+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 cat >conftest.$ac_ext <<_ACEOF
12343 #line $LINENO "configure"
12344 #include "confdefs.h"
12347 #ifdef F77_DUMMY_MAIN
12348 # ifdef __cplusplus
12351 int F77_DUMMY_MAIN() { return 1; }
12356 double x = 0.0; int res = isinf(x);
12361 rm -f conftest.$ac_objext conftest$ac_exeext
12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12363 (eval $ac_link) 2>&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -s conftest$ac_exeext'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_cv_func_isinf=yes
12375 echo "$as_me: failed program was:" >&5
12376 cat conftest.$ac_ext >&5
12377 ac_cv_func_isinf=no
12379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12381 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
12382 echo "${ECHO_T}$ac_cv_func_isinf" >&6
12384 if test $ac_cv_func_isinf = yes ; then
12386 cat >>confdefs.h <<\_ACEOF
12387 #define HAVE_ISINF 1
12391 LIBOBJS="$LIBOBJS isinf.$ac_objext"
12392 # Look for a way to implement a substitute for isinf()
12397 for ac_func in fpclass fp_class fp_class_d class
12399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12400 echo "$as_me:$LINENO: checking for $ac_func" >&5
12401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12402 if eval "test \"\${$as_ac_var+set}\" = set"; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 cat >conftest.$ac_ext <<_ACEOF
12406 #line $LINENO "configure"
12407 #include "confdefs.h"
12408 /* System header to define __stub macros and hopefully few prototypes,
12409 which can conflict with char $ac_func (); below. */
12410 #include <assert.h>
12411 /* Override any gcc2 internal prototype to avoid an error. */
12415 /* We use char because int might match the return type of a gcc2
12416 builtin and then its argument prototype would still apply. */
12420 #ifdef F77_DUMMY_MAIN
12421 # ifdef __cplusplus
12424 int F77_DUMMY_MAIN() { return 1; }
12429 /* The GNU C library defines this for functions which it implements
12430 to always fail with ENOSYS. Some functions are actually named
12431 something starting with __ and the normal name is an alias. */
12432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12442 rm -f conftest.$ac_objext conftest$ac_exeext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12444 (eval $ac_link) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -s conftest$ac_exeext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 eval "$as_ac_var=yes"
12456 echo "$as_me: failed program was:" >&5
12457 cat conftest.$ac_ext >&5
12458 eval "$as_ac_var=no"
12460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12463 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12464 if test `eval echo '${'$as_ac_var'}'` = yes; then
12465 cat >>confdefs.h <<_ACEOF
12466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12487 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
12489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12490 echo "$as_me:$LINENO: checking for $ac_func" >&5
12491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12492 if eval "test \"\${$as_ac_var+set}\" = set"; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 cat >conftest.$ac_ext <<_ACEOF
12496 #line $LINENO "configure"
12497 #include "confdefs.h"
12498 /* System header to define __stub macros and hopefully few prototypes,
12499 which can conflict with char $ac_func (); below. */
12500 #include <assert.h>
12501 /* Override any gcc2 internal prototype to avoid an error. */
12505 /* We use char because int might match the return type of a gcc2
12506 builtin and then its argument prototype would still apply. */
12510 #ifdef F77_DUMMY_MAIN
12511 # ifdef __cplusplus
12514 int F77_DUMMY_MAIN() { return 1; }
12519 /* The GNU C library defines this for functions which it implements
12520 to always fail with ENOSYS. Some functions are actually named
12521 something starting with __ and the normal name is an alias. */
12522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12532 rm -f conftest.$ac_objext conftest$ac_exeext
12533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12534 (eval $ac_link) 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -s conftest$ac_exeext'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
12544 eval "$as_ac_var=yes"
12546 echo "$as_me: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12548 eval "$as_ac_var=no"
12550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12554 if test `eval echo '${'$as_ac_var'}'` = yes; then
12555 cat >>confdefs.h <<_ACEOF
12556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12560 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12566 # system's version of getaddrinfo(), if any, may be used only if we found
12567 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12568 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12570 for ac_func in getaddrinfo
12572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12573 echo "$as_me:$LINENO: checking for $ac_func" >&5
12574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12575 if eval "test \"\${$as_ac_var+set}\" = set"; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 cat >conftest.$ac_ext <<_ACEOF
12579 #line $LINENO "configure"
12580 #include "confdefs.h"
12581 /* System header to define __stub macros and hopefully few prototypes,
12582 which can conflict with char $ac_func (); below. */
12583 #include <assert.h>
12584 /* Override any gcc2 internal prototype to avoid an error. */
12588 /* We use char because int might match the return type of a gcc2
12589 builtin and then its argument prototype would still apply. */
12593 #ifdef F77_DUMMY_MAIN
12594 # ifdef __cplusplus
12597 int F77_DUMMY_MAIN() { return 1; }
12602 /* The GNU C library defines this for functions which it implements
12603 to always fail with ENOSYS. Some functions are actually named
12604 something starting with __ and the normal name is an alias. */
12605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12615 rm -f conftest.$ac_objext conftest$ac_exeext
12616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -s conftest$ac_exeext'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 eval "$as_ac_var=yes"
12629 echo "$as_me: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 eval "$as_ac_var=no"
12633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12637 if test `eval echo '${'$as_ac_var'}'` = yes; then
12638 cat >>confdefs.h <<_ACEOF
12639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12643 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12649 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12652 # similarly, use system's getopt_long() only if system provides struct option.
12653 if test x"$ac_cv_type_struct_option" = xyes ; then
12655 for ac_func in getopt_long
12657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12658 echo "$as_me:$LINENO: checking for $ac_func" >&5
12659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12660 if eval "test \"\${$as_ac_var+set}\" = set"; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12663 cat >conftest.$ac_ext <<_ACEOF
12664 #line $LINENO "configure"
12665 #include "confdefs.h"
12666 /* System header to define __stub macros and hopefully few prototypes,
12667 which can conflict with char $ac_func (); below. */
12668 #include <assert.h>
12669 /* Override any gcc2 internal prototype to avoid an error. */
12673 /* We use char because int might match the return type of a gcc2
12674 builtin and then its argument prototype would still apply. */
12678 #ifdef F77_DUMMY_MAIN
12679 # ifdef __cplusplus
12682 int F77_DUMMY_MAIN() { return 1; }
12687 /* The GNU C library defines this for functions which it implements
12688 to always fail with ENOSYS. Some functions are actually named
12689 something starting with __ and the normal name is an alias. */
12690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12700 rm -f conftest.$ac_objext conftest$ac_exeext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12702 (eval $ac_link) 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -s conftest$ac_exeext'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 eval "$as_ac_var=yes"
12714 echo "$as_me: failed program was:" >&5
12715 cat conftest.$ac_ext >&5
12716 eval "$as_ac_var=no"
12718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12722 if test `eval echo '${'$as_ac_var'}'` = yes; then
12723 cat >>confdefs.h <<_ACEOF
12724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12728 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12734 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12737 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12738 # We override the previous test that said fseeko/ftello didn't exist
12739 # OS tests are also done in include/c.h and port/fseeko.c
12740 case $host_os in bsdi*|netbsd*)
12741 ac_cv_func_fseeko=yes
12744 # Solaris has a very slow qsort in certain cases, so we replace it.
12745 if test "$PORTNAME" = "solaris"; then
12746 LIBOBJS="$LIBOBJS qsort.$ac_objext"
12750 if test "$PORTNAME" = "win32"; then
12751 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12752 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12753 LIBOBJS="$LIBOBJS kill.$ac_objext"
12754 LIBOBJS="$LIBOBJS open.$ac_objext"
12755 LIBOBJS="$LIBOBJS rand.$ac_objext"
12757 cat >>confdefs.h <<\_ACEOF
12758 #define HAVE_SYMLINK 1
12763 if test "$with_readline" = yes; then
12764 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12765 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12766 cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12768 #include "confdefs.h"
12770 #ifdef HAVE_READLINE_READLINE_H
12771 # include <readline/readline.h>
12772 #elif defined(HAVE_READLINE_H)
12773 # include <readline.h>
12776 #ifdef F77_DUMMY_MAIN
12777 # ifdef __cplusplus
12780 int F77_DUMMY_MAIN() { return 1; }
12785 rl_completion_append_character = 'x';
12790 rm -f conftest.$ac_objext conftest$ac_exeext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792 (eval $ac_link) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 echo "$as_me:$LINENO: result: yes" >&5
12803 echo "${ECHO_T}yes" >&6
12805 cat >>confdefs.h <<\_ACEOF
12806 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12810 echo "$as_me: failed program was:" >&5
12811 cat conftest.$ac_ext >&5
12812 echo "$as_me:$LINENO: result: no" >&5
12813 echo "${ECHO_T}no" >&6
12815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12818 for ac_func in rl_completion_matches rl_filename_completion_function
12820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12821 echo "$as_me:$LINENO: checking for $ac_func" >&5
12822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12823 if eval "test \"\${$as_ac_var+set}\" = set"; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 cat >conftest.$ac_ext <<_ACEOF
12827 #line $LINENO "configure"
12828 #include "confdefs.h"
12829 /* System header to define __stub macros and hopefully few prototypes,
12830 which can conflict with char $ac_func (); below. */
12831 #include <assert.h>
12832 /* Override any gcc2 internal prototype to avoid an error. */
12836 /* We use char because int might match the return type of a gcc2
12837 builtin and then its argument prototype would still apply. */
12841 #ifdef F77_DUMMY_MAIN
12842 # ifdef __cplusplus
12845 int F77_DUMMY_MAIN() { return 1; }
12850 /* The GNU C library defines this for functions which it implements
12851 to always fail with ENOSYS. Some functions are actually named
12852 something starting with __ and the normal name is an alias. */
12853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12863 rm -f conftest.$ac_objext conftest$ac_exeext
12864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12865 (eval $ac_link) 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } &&
12869 { ac_try='test -s conftest$ac_exeext'
12870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871 (eval $ac_try) 2>&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 eval "$as_ac_var=yes"
12877 echo "$as_me: failed program was:" >&5
12878 cat conftest.$ac_ext >&5
12879 eval "$as_ac_var=no"
12881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12885 if test `eval echo '${'$as_ac_var'}'` = yes; then
12886 cat >>confdefs.h <<_ACEOF
12887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12894 for ac_func in replace_history_entry
12896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12897 echo "$as_me:$LINENO: checking for $ac_func" >&5
12898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12899 if eval "test \"\${$as_ac_var+set}\" = set"; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 cat >conftest.$ac_ext <<_ACEOF
12903 #line $LINENO "configure"
12904 #include "confdefs.h"
12905 /* System header to define __stub macros and hopefully few prototypes,
12906 which can conflict with char $ac_func (); below. */
12907 #include <assert.h>
12908 /* Override any gcc2 internal prototype to avoid an error. */
12912 /* We use char because int might match the return type of a gcc2
12913 builtin and then its argument prototype would still apply. */
12917 #ifdef F77_DUMMY_MAIN
12918 # ifdef __cplusplus
12921 int F77_DUMMY_MAIN() { return 1; }
12926 /* The GNU C library defines this for functions which it implements
12927 to always fail with ENOSYS. Some functions are actually named
12928 something starting with __ and the normal name is an alias. */
12929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } &&
12945 { ac_try='test -s conftest$ac_exeext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 eval "$as_ac_var=yes"
12953 echo "$as_me: failed program was:" >&5
12954 cat conftest.$ac_ext >&5
12955 eval "$as_ac_var=no"
12957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12961 if test `eval echo '${'$as_ac_var'}'` = yes; then
12962 cat >>confdefs.h <<_ACEOF
12963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12972 echo "$as_me:$LINENO: checking for finite" >&5
12973 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12974 cat >conftest.$ac_ext <<_ACEOF
12975 #line $LINENO "configure"
12976 #include "confdefs.h"
12978 #ifdef F77_DUMMY_MAIN
12979 # ifdef __cplusplus
12982 int F77_DUMMY_MAIN() { return 1; }
12987 int dummy=finite(1.0);
12992 rm -f conftest.$ac_objext conftest$ac_exeext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12994 (eval $ac_link) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -s conftest$ac_exeext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13005 cat >>confdefs.h <<\_ACEOF
13006 #define HAVE_FINITE 1
13009 echo "$as_me:$LINENO: result: yes" >&5
13010 echo "${ECHO_T}yes" >&6
13012 echo "$as_me: failed program was:" >&5
13013 cat conftest.$ac_ext >&5
13014 echo "$as_me:$LINENO: result: no" >&5
13015 echo "${ECHO_T}no" >&6
13017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13019 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13020 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
13021 cat >conftest.$ac_ext <<_ACEOF
13022 #line $LINENO "configure"
13023 #include "confdefs.h"
13024 #include <setjmp.h>
13025 #ifdef F77_DUMMY_MAIN
13026 # ifdef __cplusplus
13029 int F77_DUMMY_MAIN() { return 1; }
13034 sigjmp_buf x; sigsetjmp(x, 1);
13039 rm -f conftest.$ac_objext conftest$ac_exeext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13041 (eval $ac_link) 2>&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -s conftest$ac_exeext'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13052 cat >>confdefs.h <<\_ACEOF
13053 #define HAVE_SIGSETJMP 1
13056 echo "$as_me:$LINENO: result: yes" >&5
13057 echo "${ECHO_T}yes" >&6
13059 echo "$as_me: failed program was:" >&5
13060 cat conftest.$ac_ext >&5
13061 echo "$as_me:$LINENO: result: no" >&5
13062 echo "${ECHO_T}no" >&6
13064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13066 echo "$as_me:$LINENO: checking for syslog" >&5
13067 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
13068 if test "${ac_cv_func_syslog+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 cat >conftest.$ac_ext <<_ACEOF
13072 #line $LINENO "configure"
13073 #include "confdefs.h"
13074 /* System header to define __stub macros and hopefully few prototypes,
13075 which can conflict with char syslog (); below. */
13076 #include <assert.h>
13077 /* Override any gcc2 internal prototype to avoid an error. */
13081 /* We use char because int might match the return type of a gcc2
13082 builtin and then its argument prototype would still apply. */
13086 #ifdef F77_DUMMY_MAIN
13087 # ifdef __cplusplus
13090 int F77_DUMMY_MAIN() { return 1; }
13095 /* The GNU C library defines this for functions which it implements
13096 to always fail with ENOSYS. Some functions are actually named
13097 something starting with __ and the normal name is an alias. */
13098 #if defined (__stub_syslog) || defined (__stub___syslog)
13108 rm -f conftest.$ac_objext conftest$ac_exeext
13109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13110 (eval $ac_link) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
13114 { ac_try='test -s conftest$ac_exeext'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }; then
13120 ac_cv_func_syslog=yes
13122 echo "$as_me: failed program was:" >&5
13123 cat conftest.$ac_ext >&5
13124 ac_cv_func_syslog=no
13126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13128 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
13129 echo "${ECHO_T}$ac_cv_func_syslog" >&6
13130 if test $ac_cv_func_syslog = yes; then
13131 if test "${ac_cv_header_syslog_h+set}" = set; then
13132 echo "$as_me:$LINENO: checking for syslog.h" >&5
13133 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
13134 if test "${ac_cv_header_syslog_h+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
13138 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
13140 # Is the header compilable?
13141 echo "$as_me:$LINENO: checking syslog.h usability" >&5
13142 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
13143 cat >conftest.$ac_ext <<_ACEOF
13144 #line $LINENO "configure"
13145 #include "confdefs.h"
13146 $ac_includes_default
13147 #include <syslog.h>
13149 rm -f conftest.$ac_objext
13150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13151 (eval $ac_compile) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -s conftest.$ac_objext'
13156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157 (eval $ac_try) 2>&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_header_compiler=yes
13163 echo "$as_me: failed program was:" >&5
13164 cat conftest.$ac_ext >&5
13165 ac_header_compiler=no
13167 rm -f conftest.$ac_objext conftest.$ac_ext
13168 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13169 echo "${ECHO_T}$ac_header_compiler" >&6
13171 # Is the header present?
13172 echo "$as_me:$LINENO: checking syslog.h presence" >&5
13173 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
13174 cat >conftest.$ac_ext <<_ACEOF
13175 #line $LINENO "configure"
13176 #include "confdefs.h"
13177 #include <syslog.h>
13179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13182 egrep -v '^ *\+' conftest.er1 >conftest.err
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } >/dev/null; then
13187 if test -s conftest.err; then
13188 ac_cpp_err=$ac_c_preproc_warn_flag
13195 if test -z "$ac_cpp_err"; then
13196 ac_header_preproc=yes
13198 echo "$as_me: failed program was:" >&5
13199 cat conftest.$ac_ext >&5
13200 ac_header_preproc=no
13202 rm -f conftest.err conftest.$ac_ext
13203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13204 echo "${ECHO_T}$ac_header_preproc" >&6
13206 # So? What about this header?
13207 case $ac_header_compiler:$ac_header_preproc in
13209 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
13210 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13211 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
13212 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
13214 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
13215 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
13217 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
13219 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
13221 echo "$as_me:$LINENO: checking for syslog.h" >&5
13222 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
13223 if test "${ac_cv_header_syslog_h+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 ac_cv_header_syslog_h=$ac_header_preproc
13228 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
13229 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
13232 if test $ac_cv_header_syslog_h = yes; then
13234 cat >>confdefs.h <<\_ACEOF
13235 #define HAVE_SYSLOG 1
13244 echo "$as_me:$LINENO: checking for optreset" >&5
13245 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
13246 if test "${pgac_cv_var_int_optreset+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 cat >conftest.$ac_ext <<_ACEOF
13250 #line $LINENO "configure"
13251 #include "confdefs.h"
13252 #include <unistd.h>
13253 #ifdef F77_DUMMY_MAIN
13254 # ifdef __cplusplus
13257 int F77_DUMMY_MAIN() { return 1; }
13262 extern int optreset; optreset = 1;
13267 rm -f conftest.$ac_objext conftest$ac_exeext
13268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13269 (eval $ac_link) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -s conftest$ac_exeext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 pgac_cv_var_int_optreset=yes
13281 echo "$as_me: failed program was:" >&5
13282 cat conftest.$ac_ext >&5
13283 pgac_cv_var_int_optreset=no
13285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13287 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
13288 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
13289 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
13291 cat >>confdefs.h <<\_ACEOF
13292 #define HAVE_INT_OPTRESET 1
13299 for ac_func in strtoll strtoq
13301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13302 echo "$as_me:$LINENO: checking for $ac_func" >&5
13303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13304 if eval "test \"\${$as_ac_var+set}\" = set"; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 cat >conftest.$ac_ext <<_ACEOF
13308 #line $LINENO "configure"
13309 #include "confdefs.h"
13310 /* System header to define __stub macros and hopefully few prototypes,
13311 which can conflict with char $ac_func (); below. */
13312 #include <assert.h>
13313 /* Override any gcc2 internal prototype to avoid an error. */
13317 /* We use char because int might match the return type of a gcc2
13318 builtin and then its argument prototype would still apply. */
13322 #ifdef F77_DUMMY_MAIN
13323 # ifdef __cplusplus
13326 int F77_DUMMY_MAIN() { return 1; }
13331 /* The GNU C library defines this for functions which it implements
13332 to always fail with ENOSYS. Some functions are actually named
13333 something starting with __ and the normal name is an alias. */
13334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13344 rm -f conftest.$ac_objext conftest$ac_exeext
13345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13346 (eval $ac_link) 2>&5
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); } &&
13350 { ac_try='test -s conftest$ac_exeext'
13351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13352 (eval $ac_try) 2>&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; }; then
13356 eval "$as_ac_var=yes"
13358 echo "$as_me: failed program was:" >&5
13359 cat conftest.$ac_ext >&5
13360 eval "$as_ac_var=no"
13362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13366 if test `eval echo '${'$as_ac_var'}'` = yes; then
13367 cat >>confdefs.h <<_ACEOF
13368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13376 for ac_func in strtoull strtouq
13378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13379 echo "$as_me:$LINENO: checking for $ac_func" >&5
13380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13381 if eval "test \"\${$as_ac_var+set}\" = set"; then
13382 echo $ECHO_N "(cached) $ECHO_C" >&6
13384 cat >conftest.$ac_ext <<_ACEOF
13385 #line $LINENO "configure"
13386 #include "confdefs.h"
13387 /* System header to define __stub macros and hopefully few prototypes,
13388 which can conflict with char $ac_func (); below. */
13389 #include <assert.h>
13390 /* Override any gcc2 internal prototype to avoid an error. */
13394 /* We use char because int might match the return type of a gcc2
13395 builtin and then its argument prototype would still apply. */
13399 #ifdef F77_DUMMY_MAIN
13400 # ifdef __cplusplus
13403 int F77_DUMMY_MAIN() { return 1; }
13408 /* The GNU C library defines this for functions which it implements
13409 to always fail with ENOSYS. Some functions are actually named
13410 something starting with __ and the normal name is an alias. */
13411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13421 rm -f conftest.$ac_objext conftest$ac_exeext
13422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13423 (eval $ac_link) 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } &&
13427 { ac_try='test -s conftest$ac_exeext'
13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429 (eval $ac_try) 2>&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; }; then
13433 eval "$as_ac_var=yes"
13435 echo "$as_me: failed program was:" >&5
13436 cat conftest.$ac_ext >&5
13437 eval "$as_ac_var=no"
13439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13443 if test `eval echo '${'$as_ac_var'}'` = yes; then
13444 cat >>confdefs.h <<_ACEOF
13445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13452 # Check for one of atexit() or on_exit()
13454 for ac_func in atexit
13456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13457 echo "$as_me:$LINENO: checking for $ac_func" >&5
13458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13459 if eval "test \"\${$as_ac_var+set}\" = set"; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 cat >conftest.$ac_ext <<_ACEOF
13463 #line $LINENO "configure"
13464 #include "confdefs.h"
13465 /* System header to define __stub macros and hopefully few prototypes,
13466 which can conflict with char $ac_func (); below. */
13467 #include <assert.h>
13468 /* Override any gcc2 internal prototype to avoid an error. */
13472 /* We use char because int might match the return type of a gcc2
13473 builtin and then its argument prototype would still apply. */
13477 #ifdef F77_DUMMY_MAIN
13478 # ifdef __cplusplus
13481 int F77_DUMMY_MAIN() { return 1; }
13486 /* The GNU C library defines this for functions which it implements
13487 to always fail with ENOSYS. Some functions are actually named
13488 something starting with __ and the normal name is an alias. */
13489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13499 rm -f conftest.$ac_objext conftest$ac_exeext
13500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13501 (eval $ac_link) 2>&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
13505 { ac_try='test -s conftest$ac_exeext'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 eval "$as_ac_var=yes"
13513 echo "$as_me: failed program was:" >&5
13514 cat conftest.$ac_ext >&5
13515 eval "$as_ac_var=no"
13517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13521 if test `eval echo '${'$as_ac_var'}'` = yes; then
13522 cat >>confdefs.h <<_ACEOF
13523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13528 for ac_func in on_exit
13530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13531 echo "$as_me:$LINENO: checking for $ac_func" >&5
13532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13533 if eval "test \"\${$as_ac_var+set}\" = set"; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 cat >conftest.$ac_ext <<_ACEOF
13537 #line $LINENO "configure"
13538 #include "confdefs.h"
13539 /* System header to define __stub macros and hopefully few prototypes,
13540 which can conflict with char $ac_func (); below. */
13541 #include <assert.h>
13542 /* Override any gcc2 internal prototype to avoid an error. */
13546 /* We use char because int might match the return type of a gcc2
13547 builtin and then its argument prototype would still apply. */
13551 #ifdef F77_DUMMY_MAIN
13552 # ifdef __cplusplus
13555 int F77_DUMMY_MAIN() { return 1; }
13560 /* The GNU C library defines this for functions which it implements
13561 to always fail with ENOSYS. Some functions are actually named
13562 something starting with __ and the normal name is an alias. */
13563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13573 rm -f conftest.$ac_objext conftest$ac_exeext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13575 (eval $ac_link) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -s conftest$ac_exeext'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 eval "$as_ac_var=yes"
13587 echo "$as_me: failed program was:" >&5
13588 cat conftest.$ac_ext >&5
13589 eval "$as_ac_var=no"
13591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13595 if test `eval echo '${'$as_ac_var'}'` = yes; then
13596 cat >>confdefs.h <<_ACEOF
13597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13601 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13602 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13603 { (exit 1); exit 1; }; }
13611 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13612 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13613 if test "${ac_cv_sys_largefile_source+set}" = set; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 ac_cv_sys_largefile_source=no
13618 cat >conftest.$ac_ext <<_ACEOF
13619 #line $LINENO "configure"
13620 #include "confdefs.h"
13622 #ifdef F77_DUMMY_MAIN
13623 # ifdef __cplusplus
13626 int F77_DUMMY_MAIN() { return 1; }
13636 rm -f conftest.$ac_objext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638 (eval $ac_compile) 2>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13650 echo "$as_me: failed program was:" >&5
13651 cat conftest.$ac_ext >&5
13653 rm -f conftest.$ac_objext conftest.$ac_ext
13654 cat >conftest.$ac_ext <<_ACEOF
13655 #line $LINENO "configure"
13656 #include "confdefs.h"
13657 #define _LARGEFILE_SOURCE 1
13659 #ifdef F77_DUMMY_MAIN
13660 # ifdef __cplusplus
13663 int F77_DUMMY_MAIN() { return 1; }
13673 rm -f conftest.$ac_objext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } &&
13679 { ac_try='test -s conftest.$ac_objext'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 ac_cv_sys_largefile_source=1; break
13687 echo "$as_me: failed program was:" >&5
13688 cat conftest.$ac_ext >&5
13690 rm -f conftest.$ac_objext conftest.$ac_ext
13694 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13695 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13696 if test "$ac_cv_sys_largefile_source" != no; then
13698 cat >>confdefs.h <<_ACEOF
13699 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13705 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13706 # in glibc 2.1.3, but that breaks too many other things.
13707 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13708 echo "$as_me:$LINENO: checking for fseeko" >&5
13709 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13710 if test "${ac_cv_func_fseeko+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 cat >conftest.$ac_ext <<_ACEOF
13714 #line $LINENO "configure"
13715 #include "confdefs.h"
13717 #ifdef F77_DUMMY_MAIN
13718 # ifdef __cplusplus
13721 int F77_DUMMY_MAIN() { return 1; }
13726 return fseeko && fseeko (stdin, 0, 0);
13731 rm -f conftest.$ac_objext conftest$ac_exeext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13733 (eval $ac_link) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -s conftest$ac_exeext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_cv_func_fseeko=yes
13745 echo "$as_me: failed program was:" >&5
13746 cat conftest.$ac_ext >&5
13747 ac_cv_func_fseeko=no
13749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13751 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13752 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13753 if test $ac_cv_func_fseeko = yes; then
13755 cat >>confdefs.h <<\_ACEOF
13756 #define HAVE_FSEEKO 1
13765 # For each platform, we need to know about any special compile and link
13766 # libraries, and whether the normal C function names are thread-safe.
13767 # See the comment at the top of src/port/thread.c for more information.
13769 if test "$enable_thread_safety" = yes; then
13775 ac_cpp='$CPP $CPPFLAGS'
13776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13782 # We used to check for pthread.h first, but this fails if pthread.h
13783 # requires special compiler flags (e.g. on True64 or Sequent).
13784 # It gets checked for in the link test anyway.
13786 # First of all, check if the user has set any of the PTHREAD_LIBS,
13787 # etcetera environment variables, and if threads linking works using
13789 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13790 save_CFLAGS="$CFLAGS"
13791 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13793 LIBS="$PTHREAD_LIBS $LIBS"
13794 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13795 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13796 cat >conftest.$ac_ext <<_ACEOF
13797 #line $LINENO "configure"
13798 #include "confdefs.h"
13800 /* Override any gcc2 internal prototype to avoid an error. */
13804 /* We use char because int might match the return type of a gcc2
13805 builtin and then its argument prototype would still apply. */
13806 char pthread_join ();
13807 #ifdef F77_DUMMY_MAIN
13808 # ifdef __cplusplus
13811 int F77_DUMMY_MAIN() { return 1; }
13821 rm -f conftest.$ac_objext conftest$ac_exeext
13822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13823 (eval $ac_link) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } &&
13827 { ac_try='test -s conftest$ac_exeext'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13835 echo "$as_me: failed program was:" >&5
13836 cat conftest.$ac_ext >&5
13838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13839 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13840 echo "${ECHO_T}$acx_pthread_ok" >&6
13841 if test x"$acx_pthread_ok" = xno; then
13846 CFLAGS="$save_CFLAGS"
13849 # We must check for the threads library under a number of different
13850 # names; the ordering is very important because some systems
13851 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13852 # libraries is broken (non-POSIX).
13854 # Create a list of thread flags to try. Items starting with a "-" are
13855 # C compiler flags, and other items are library names, except for "none"
13856 # which indicates that we try without any flags at all, and "pthread-config"
13857 # which is a program returning the flags for the Pth emulation library.
13859 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13861 # The ordering *is* (sometimes) important. Some notes on the
13862 # individual items follow:
13864 # pthreads: AIX (must check this before -lpthread)
13865 # none: in case threads are in libc; should be tried before -Kthread and
13866 # other compiler flags to prevent continual compiler warnings
13867 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13868 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13869 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13870 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13871 # -pthreads: Solaris/gcc
13872 # -mthreads: Mingw32/gcc, Lynx/gcc
13873 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13874 # doesn't hurt to check since this sometimes defines pthreads too;
13875 # also defines -D_REENTRANT)
13876 # pthread: Linux, etcetera
13877 # --thread-safe: KAI C++
13878 # pthread-config: use pthread-config program (for GNU Pth library)
13880 case "${host_cpu}-${host_os}" in
13883 # On Solaris (at least, for some versions), libc contains stubbed
13884 # (non-functional) versions of the pthreads routines, so link-based
13885 # tests will erroneously succeed. (We need to link with -pthread or
13886 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
13887 # a function called by this macro, so we could check for that, but
13888 # who knows whether they'll stub that too in a future libc.) So,
13889 # we'll just look for -pthreads and -lpthread first:
13891 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13895 if test x"$acx_pthread_ok" = xno; then
13896 for flag in $acx_pthread_flags; do
13898 tryPTHREAD_CFLAGS=""
13902 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13903 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13907 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13908 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13909 tryPTHREAD_CFLAGS="$flag"
13913 # skip this if we already have flags defined, for PostgreSQL
13914 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
13915 # Extract the first word of "pthread-config", so it can be a program name with args.
13916 set dummy pthread-config; ac_word=$2
13917 echo "$as_me:$LINENO: checking for $ac_word" >&5
13918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13919 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 if test -n "$acx_pthread_config"; then
13923 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926 for as_dir in $PATH
13929 test -z "$as_dir" && as_dir=.
13930 for ac_exec_ext in '' $ac_executable_extensions; do
13931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13932 ac_cv_prog_acx_pthread_config="yes"
13933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13939 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13942 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13943 if test -n "$acx_pthread_config"; then
13944 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13945 echo "${ECHO_T}$acx_pthread_config" >&6
13947 echo "$as_me:$LINENO: result: no" >&5
13948 echo "${ECHO_T}no" >&6
13951 if test x"$acx_pthread_config" = xno; then continue; fi
13952 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
13953 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13957 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13958 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13959 tryPTHREAD_LIBS="-l$flag"
13964 save_CFLAGS="$CFLAGS"
13965 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
13966 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13968 # Check for various functions. We must include pthread.h,
13969 # since some functions may be macros. (On the Sequent, we
13970 # need a special flag -Kthread to make this header compile.)
13971 # We check for pthread_join because it is in -lpthread on IRIX
13972 # while pthread_create is in libc. We check for pthread_attr_init
13973 # due to DEC craziness with -lpthreads. We check for
13974 # pthread_cleanup_push because it is one of the few pthread
13975 # functions on Solaris that doesn't have a non-functional libc stub.
13976 # We try pthread_create on general principles.
13977 cat >conftest.$ac_ext <<_ACEOF
13978 #line $LINENO "configure"
13979 #include "confdefs.h"
13980 #include <pthread.h>
13981 #ifdef F77_DUMMY_MAIN
13982 # ifdef __cplusplus
13985 int F77_DUMMY_MAIN() { return 1; }
13990 pthread_t th; pthread_join(th, 0);
13991 pthread_attr_init(0); pthread_cleanup_push(0, 0);
13992 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13997 rm -f conftest.$ac_objext conftest$ac_exeext
13998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13999 (eval $ac_link) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -s conftest$ac_exeext'
14004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14005 (eval $ac_try) 2>&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); }; }; then
14011 echo "$as_me: failed program was:" >&5
14012 cat conftest.$ac_ext >&5
14015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14017 if test "x$acx_pthread_ok" = xyes; then
14018 # Don't use options that are ignored by the compiler.
14019 # We find them by checking stderror.
14020 cat >conftest.$ac_ext <<_ACEOF
14022 main (int argc, char **argv)
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
14031 # we continue with more flags because Linux needs -lpthread
14032 # for libpq builds on PostgreSQL. The test above only
14033 # tests for building binaries, not shared libraries.
14034 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
14035 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
14036 else acx_pthread_ok=no
14041 CFLAGS="$save_CFLAGS"
14043 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
14044 echo "${ECHO_T}$acx_pthread_ok" >&6
14048 # Various other checks:
14049 if test "x$acx_pthread_ok" = xyes; then
14051 LIBS="$PTHREAD_LIBS $LIBS"
14052 save_CFLAGS="$CFLAGS"
14053 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14055 # Detect AIX lossage: threads are created detached by default
14056 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
14057 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
14058 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
14059 cat >conftest.$ac_ext <<_ACEOF
14060 #line $LINENO "configure"
14061 #include "confdefs.h"
14062 #include <pthread.h>
14063 #ifdef F77_DUMMY_MAIN
14064 # ifdef __cplusplus
14067 int F77_DUMMY_MAIN() { return 1; }
14072 int attr=PTHREAD_CREATE_JOINABLE;
14077 rm -f conftest.$ac_objext conftest$ac_exeext
14078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14079 (eval $ac_link) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -s conftest$ac_exeext'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 ok=PTHREAD_CREATE_JOINABLE
14091 echo "$as_me: failed program was:" >&5
14092 cat conftest.$ac_ext >&5
14095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14096 if test x"$ok" = xunknown; then
14097 cat >conftest.$ac_ext <<_ACEOF
14098 #line $LINENO "configure"
14099 #include "confdefs.h"
14100 #include <pthread.h>
14101 #ifdef F77_DUMMY_MAIN
14102 # ifdef __cplusplus
14105 int F77_DUMMY_MAIN() { return 1; }
14110 int attr=PTHREAD_CREATE_UNDETACHED;
14115 rm -f conftest.$ac_objext conftest$ac_exeext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14117 (eval $ac_link) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
14121 { ac_try='test -s conftest$ac_exeext'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; }; then
14127 ok=PTHREAD_CREATE_UNDETACHED
14129 echo "$as_me: failed program was:" >&5
14130 cat conftest.$ac_ext >&5
14133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14135 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
14137 cat >>confdefs.h <<\_ACEOF
14138 #define PTHREAD_CREATE_JOINABLE $ok
14142 echo "$as_me:$LINENO: result: ${ok}" >&5
14143 echo "${ECHO_T}${ok}" >&6
14144 if test x"$ok" = xunknown; then
14145 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
14146 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
14149 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
14150 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
14152 # We always add these in PostgreSQL
14153 # case "${host_cpu}-${host_os}" in
14154 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14155 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14157 echo "$as_me:$LINENO: result: ${flag}" >&5
14158 echo "${ECHO_T}${flag}" >&6
14159 if test "x$flag" != xno; then
14160 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14164 CFLAGS="$save_CFLAGS"
14166 # Supporting cc_r would require a special CC in all places that
14167 # use libpq, and that is ugly, so we don't do it. Users can still
14168 # define their compiler as cc_r to do thread builds of everything.
14169 # More AIX lossage: must compile with cc_r
14170 # Extract the first word of "cc_r", so it can be a program name with args.
14171 set dummy cc_r; ac_word=$2
14172 echo "$as_me:$LINENO: checking for $ac_word" >&5
14173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14174 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14177 if test -n "$PTHREAD_CC"; then
14178 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $PATH
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_prog_PTHREAD_CC="cc_r"
14188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
14197 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14198 if test -n "$PTHREAD_CC"; then
14199 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
14200 echo "${ECHO_T}$PTHREAD_CC" >&6
14202 echo "$as_me:$LINENO: result: no" >&5
14203 echo "${ECHO_T}no" >&6
14214 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14215 if test x"$acx_pthread_ok" = xyes; then
14217 cat >>confdefs.h <<\_ACEOF
14218 #define HAVE_PTHREAD 1
14227 ac_cpp='$CPP $CPPFLAGS'
14228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14234 # Some platforms use these, so just defineed them. They can't hurt if they
14235 # are not supported.
14236 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
14239 # At this point, we don't want to muck with the compiler name for threading.
14240 # Let's see who fails, perhaps AIX. 2004-04-23
14241 if test "$PTHREAD_CC" != "$CC"; then
14242 { { echo "$as_me:$LINENO: error:
14243 PostgreSQL does not support platforms that require a special
14244 compiler binary for thread-safety.
14246 echo "$as_me: error:
14247 PostgreSQL does not support platforms that require a special
14248 compiler binary for thread-safety.
14250 { (exit 1); exit 1; }; }
14253 if test "$THREAD_SUPPORT" = no; then
14254 { { echo "$as_me:$LINENO: error:
14255 Cannot enable threads on your platform.
14256 Your platform is known to not support thread-safe programs.
14257 For details, compile and run src/bin/pg_thread_test.
14259 echo "$as_me: error:
14260 Cannot enable threads on your platform.
14261 Your platform is known to not support thread-safe programs.
14262 For details, compile and run src/bin/pg_thread_test.
14264 { (exit 1); exit 1; }; }
14267 # Check for *_r functions
14270 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14271 LIBS="$LIBS $PTHREAD_LIBS"
14273 if test "${ac_cv_header_pthread_h+set}" = set; then
14274 echo "$as_me:$LINENO: checking for pthread.h" >&5
14275 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14276 if test "${ac_cv_header_pthread_h+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
14280 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14282 # Is the header compilable?
14283 echo "$as_me:$LINENO: checking pthread.h usability" >&5
14284 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
14285 cat >conftest.$ac_ext <<_ACEOF
14286 #line $LINENO "configure"
14287 #include "confdefs.h"
14288 $ac_includes_default
14289 #include <pthread.h>
14291 rm -f conftest.$ac_objext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293 (eval $ac_compile) 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
14297 { ac_try='test -s conftest.$ac_objext'
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; }; then
14303 ac_header_compiler=yes
14305 echo "$as_me: failed program was:" >&5
14306 cat conftest.$ac_ext >&5
14307 ac_header_compiler=no
14309 rm -f conftest.$ac_objext conftest.$ac_ext
14310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14311 echo "${ECHO_T}$ac_header_compiler" >&6
14313 # Is the header present?
14314 echo "$as_me:$LINENO: checking pthread.h presence" >&5
14315 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
14316 cat >conftest.$ac_ext <<_ACEOF
14317 #line $LINENO "configure"
14318 #include "confdefs.h"
14319 #include <pthread.h>
14321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14324 egrep -v '^ *\+' conftest.er1 >conftest.err
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } >/dev/null; then
14329 if test -s conftest.err; then
14330 ac_cpp_err=$ac_c_preproc_warn_flag
14337 if test -z "$ac_cpp_err"; then
14338 ac_header_preproc=yes
14340 echo "$as_me: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14342 ac_header_preproc=no
14344 rm -f conftest.err conftest.$ac_ext
14345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14346 echo "${ECHO_T}$ac_header_preproc" >&6
14348 # So? What about this header?
14349 case $ac_header_compiler:$ac_header_preproc in
14351 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
14352 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14353 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
14354 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
14356 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
14357 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
14359 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
14360 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
14361 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
14363 echo "$as_me:$LINENO: checking for pthread.h" >&5
14364 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14365 if test "${ac_cv_header_pthread_h+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 ac_cv_header_pthread_h=$ac_header_preproc
14370 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
14371 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14374 if test $ac_cv_header_pthread_h = yes; then
14377 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
14378 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
14379 { (exit 1); exit 1; }; }
14387 for ac_func in strerror_r getpwuid_r gethostbyname_r
14389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14390 echo "$as_me:$LINENO: checking for $ac_func" >&5
14391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14392 if eval "test \"\${$as_ac_var+set}\" = set"; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 cat >conftest.$ac_ext <<_ACEOF
14396 #line $LINENO "configure"
14397 #include "confdefs.h"
14398 /* System header to define __stub macros and hopefully few prototypes,
14399 which can conflict with char $ac_func (); below. */
14400 #include <assert.h>
14401 /* Override any gcc2 internal prototype to avoid an error. */
14405 /* We use char because int might match the return type of a gcc2
14406 builtin and then its argument prototype would still apply. */
14410 #ifdef F77_DUMMY_MAIN
14411 # ifdef __cplusplus
14414 int F77_DUMMY_MAIN() { return 1; }
14419 /* The GNU C library defines this for functions which it implements
14420 to always fail with ENOSYS. Some functions are actually named
14421 something starting with __ and the normal name is an alias. */
14422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14432 rm -f conftest.$ac_objext conftest$ac_exeext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14434 (eval $ac_link) 2>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -s conftest$ac_exeext'
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; }; then
14444 eval "$as_ac_var=yes"
14446 echo "$as_me: failed program was:" >&5
14447 cat conftest.$ac_ext >&5
14448 eval "$as_ac_var=no"
14450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14454 if test `eval echo '${'$as_ac_var'}'` = yes; then
14455 cat >>confdefs.h <<_ACEOF
14456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14463 # Do test here with the proper thread flags
14464 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
14465 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
14466 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 #include "confdefs.h"
14472 #include <sys/types.h>
14474 #ifdef F77_DUMMY_MAIN
14475 # ifdef __cplusplus
14478 int F77_DUMMY_MAIN() { return 1; }
14484 struct passwd *space;
14487 struct passwd **result;
14488 getpwuid_r(uid, space, buf, bufsize, result);
14493 rm -f conftest.$ac_objext
14494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14495 (eval $ac_compile) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
14499 { ac_try='test -s conftest.$ac_objext'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }; then
14505 pgac_func_getpwuid_r_5arg=yes
14507 echo "$as_me: failed program was:" >&5
14508 cat conftest.$ac_ext >&5
14509 pgac_func_getpwuid_r_5arg=no
14511 rm -f conftest.$ac_objext conftest.$ac_ext
14513 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
14514 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
14515 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
14517 cat >>confdefs.h <<\_ACEOF
14518 #define GETPWUID_R_5ARG
14523 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
14524 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
14525 if test "${pgac_func_strerror_r_int+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 cat >conftest.$ac_ext <<_ACEOF
14529 #line $LINENO "configure"
14530 #include "confdefs.h"
14531 #include <string.h>
14532 #ifdef F77_DUMMY_MAIN
14533 # ifdef __cplusplus
14536 int F77_DUMMY_MAIN() { return 1; }
14542 int strerror_r(int, char *, size_t);
14544 /* Older AIX has 'int' for the third argument so we don't test the args. */
14551 rm -f conftest.$ac_objext
14552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14553 (eval $ac_compile) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
14557 { ac_try='test -s conftest.$ac_objext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 pgac_func_strerror_r_int=yes
14565 echo "$as_me: failed program was:" >&5
14566 cat conftest.$ac_ext >&5
14567 pgac_func_strerror_r_int=no
14569 rm -f conftest.$ac_objext conftest.$ac_ext
14571 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
14572 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
14573 if test x"$pgac_func_strerror_r_int" = xyes ; then
14575 cat >>confdefs.h <<\_ACEOF
14576 #define STRERROR_R_INT
14586 # do not use values from template file
14595 # This test makes sure that run tests work at all. Sometimes a shared
14596 # library is found by the linker, but the runtime linker can't find it.
14597 # This check should come after all modifications of compiler or linker
14598 # variables, and before any other run tests.
14599 echo "$as_me:$LINENO: checking test program" >&5
14600 echo $ECHO_N "checking test program... $ECHO_C" >&6
14601 if test "$cross_compiling" = yes; then
14602 echo "$as_me:$LINENO: result: cross-compiling" >&5
14603 echo "${ECHO_T}cross-compiling" >&6
14605 cat >conftest.$ac_ext <<_ACEOF
14606 #line $LINENO "configure"
14607 #include "confdefs.h"
14608 int main() { return 0; }
14610 rm -f conftest$ac_exeext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14612 (eval $ac_link) 2>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 echo "$as_me:$LINENO: result: ok" >&5
14622 echo "${ECHO_T}ok" >&6
14624 echo "$as_me: program exited with status $ac_status" >&5
14625 echo "$as_me: failed program was:" >&5
14626 cat conftest.$ac_ext >&5
14627 ( exit $ac_status )
14628 echo "$as_me:$LINENO: result: failed" >&5
14629 echo "${ECHO_T}failed" >&6
14630 { { echo "$as_me:$LINENO: error:
14631 *** Could not execute a simple test program. This may be a problem
14632 *** related to locating shared libraries. Check the file 'config.log'
14633 *** for the exact reason." >&5
14634 echo "$as_me: error:
14635 *** Could not execute a simple test program. This may be a problem
14636 *** related to locating shared libraries. Check the file 'config.log'
14637 *** for the exact reason." >&2;}
14638 { (exit 1); exit 1; }; }
14640 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14644 # Force use of our snprintf if system's doesn't do arg control
14645 # This feature is used by NLS
14646 if test "$enable_nls" = yes && test $pgac_need_repl_snprintf = no; then
14647 echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
14648 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6
14649 if test "${pgac_cv_printf_arg_control+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 if test "$cross_compiling" = yes; then
14653 pgac_cv_printf_arg_control=cross
14655 cat >conftest.$ac_ext <<_ACEOF
14656 #line $LINENO "configure"
14657 #include "confdefs.h"
14659 #include <string.h>
14665 /* can it swap arguments? */
14666 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
14667 if (strcmp(buf, "4 3") != 0)
14672 rm -f conftest$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674 (eval $ac_link) 2>&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14679 (eval $ac_try) 2>&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); }; }; then
14683 pgac_cv_printf_arg_control=yes
14685 echo "$as_me: program exited with status $ac_status" >&5
14686 echo "$as_me: failed program was:" >&5
14687 cat conftest.$ac_ext >&5
14688 ( exit $ac_status )
14689 pgac_cv_printf_arg_control=no
14691 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14695 echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
14696 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6
14698 if test $pgac_cv_printf_arg_control != yes ; then
14699 pgac_need_repl_snprintf=yes
14705 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
14706 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
14707 if test "${pgac_cv_type_long_int_64+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 if test "$cross_compiling" = yes; then
14711 # If cross-compiling, check the size reported by the compiler and
14712 # trust that the arithmetic works.
14713 cat >conftest.$ac_ext <<_ACEOF
14714 #line $LINENO "configure"
14715 #include "confdefs.h"
14717 #ifdef F77_DUMMY_MAIN
14718 # ifdef __cplusplus
14721 int F77_DUMMY_MAIN() { return 1; }
14726 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
14733 rm -f conftest.$ac_objext
14734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14735 (eval $ac_compile) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -s conftest.$ac_objext'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
14745 pgac_cv_type_long_int_64=yes
14747 echo "$as_me: failed program was:" >&5
14748 cat conftest.$ac_ext >&5
14749 pgac_cv_type_long_int_64=no
14751 rm -f conftest.$ac_objext conftest.$ac_ext
14753 cat >conftest.$ac_ext <<_ACEOF
14754 #line $LINENO "configure"
14755 #include "confdefs.h"
14756 typedef long int ac_int64;
14759 * These are globals to discourage the compiler from folding all the
14760 * arithmetic tests down to compile-time constants.
14762 ac_int64 a = 20000001;
14763 ac_int64 b = 40000005;
14765 int does_int64_work()
14769 if (sizeof(ac_int64) != 8)
14770 return 0; /* definitely not the right size */
14772 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14780 exit(! does_int64_work());
14783 rm -f conftest$ac_exeext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14785 (eval $ac_link) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 pgac_cv_type_long_int_64=yes
14796 echo "$as_me: program exited with status $ac_status" >&5
14797 echo "$as_me: failed program was:" >&5
14798 cat conftest.$ac_ext >&5
14799 ( exit $ac_status )
14800 pgac_cv_type_long_int_64=no
14802 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14805 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
14806 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
14808 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14809 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_LONG_INT_64
14818 if test x"$HAVE_LONG_INT_64" = x"no" ; then
14819 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
14820 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
14821 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
14822 echo $ECHO_N "(cached) $ECHO_C" >&6
14824 if test "$cross_compiling" = yes; then
14825 # If cross-compiling, check the size reported by the compiler and
14826 # trust that the arithmetic works.
14827 cat >conftest.$ac_ext <<_ACEOF
14828 #line $LINENO "configure"
14829 #include "confdefs.h"
14831 #ifdef F77_DUMMY_MAIN
14832 # ifdef __cplusplus
14835 int F77_DUMMY_MAIN() { return 1; }
14840 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14847 rm -f conftest.$ac_objext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14849 (eval $ac_compile) 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } &&
14853 { ac_try='test -s conftest.$ac_objext'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 pgac_cv_type_long_long_int_64=yes
14861 echo "$as_me: failed program was:" >&5
14862 cat conftest.$ac_ext >&5
14863 pgac_cv_type_long_long_int_64=no
14865 rm -f conftest.$ac_objext conftest.$ac_ext
14867 cat >conftest.$ac_ext <<_ACEOF
14868 #line $LINENO "configure"
14869 #include "confdefs.h"
14870 typedef long long int ac_int64;
14873 * These are globals to discourage the compiler from folding all the
14874 * arithmetic tests down to compile-time constants.
14876 ac_int64 a = 20000001;
14877 ac_int64 b = 40000005;
14879 int does_int64_work()
14883 if (sizeof(ac_int64) != 8)
14884 return 0; /* definitely not the right size */
14886 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14894 exit(! does_int64_work());
14897 rm -f conftest$ac_exeext
14898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14899 (eval $ac_link) 2>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908 pgac_cv_type_long_long_int_64=yes
14910 echo "$as_me: program exited with status $ac_status" >&5
14911 echo "$as_me: failed program was:" >&5
14912 cat conftest.$ac_ext >&5
14913 ( exit $ac_status )
14914 pgac_cv_type_long_long_int_64=no
14916 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14919 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14920 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14922 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14923 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14925 cat >>confdefs.h <<\_ACEOF
14926 #define HAVE_LONG_LONG_INT_64
14935 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14936 cat >conftest.$ac_ext <<_ACEOF
14937 #line $LINENO "configure"
14938 #include "confdefs.h"
14940 #define INT64CONST(x) x##LL
14941 long long int foo = INT64CONST(0x1234567890123456);
14943 #ifdef F77_DUMMY_MAIN
14944 # ifdef __cplusplus
14947 int F77_DUMMY_MAIN() { return 1; }
14957 rm -f conftest.$ac_objext
14958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14959 (eval $ac_compile) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } &&
14963 { ac_try='test -s conftest.$ac_objext'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; }; then
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_LL_CONSTANTS 1
14975 echo "$as_me: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14978 rm -f conftest.$ac_objext conftest.$ac_ext
14982 # If we found "long int" is 64 bits, assume snprintf handles it. If
14983 # we found we need to use "long long int", better check. We cope with
14984 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
14985 # work, fall back to our own snprintf emulation (which we know uses %lld).
14987 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14988 if test $pgac_need_repl_snprintf = no; then
14989 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14990 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14991 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 for pgac_format in '%lld' '%qd' '%I64d'; do
14995 if test "$cross_compiling" = yes; then
14996 pgac_cv_snprintf_long_long_int_format=cross; break
14998 cat >conftest.$ac_ext <<_ACEOF
14999 #line $LINENO "configure"
15000 #include "confdefs.h"
15002 typedef long long int ac_int64;
15003 #define INT64_FORMAT "$pgac_format"
15005 ac_int64 a = 20000001;
15006 ac_int64 b = 40000005;
15008 int does_int64_snprintf_work()
15013 if (sizeof(ac_int64) != 8)
15014 return 0; /* doesn't look like the right size */
15017 snprintf(buf, 100, INT64_FORMAT, c);
15018 if (strcmp(buf, "800000140000005") != 0)
15019 return 0; /* either multiply or snprintf is busted */
15023 exit(! does_int64_snprintf_work());
15026 rm -f conftest$ac_exeext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15028 (eval $ac_link) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
15039 echo "$as_me: program exited with status $ac_status" >&5
15040 echo "$as_me: failed program was:" >&5
15041 cat conftest.$ac_ext >&5
15043 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15048 LONG_LONG_INT_FORMAT=''
15050 case $pgac_cv_snprintf_long_long_int_format in
15051 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
15052 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
15053 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
15054 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
15055 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
15056 *) echo "$as_me:$LINENO: result: none" >&5
15057 echo "${ECHO_T}none" >&6;;
15059 if test "$LONG_LONG_INT_FORMAT" = ""; then
15060 # Force usage of our own snprintf, since system snprintf is broken
15061 pgac_need_repl_snprintf=yes
15062 LONG_LONG_INT_FORMAT='%lld'
15065 # Here if we previously decided we needed to use our own snprintf
15066 LONG_LONG_INT_FORMAT='%lld'
15068 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
15069 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
15070 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
15072 # Here if we are not using 'long long int' at all
15073 INT64_FORMAT='"%ld"'
15074 UINT64_FORMAT='"%lu"'
15078 cat >>confdefs.h <<_ACEOF
15079 #define INT64_FORMAT $INT64_FORMAT
15084 cat >>confdefs.h <<_ACEOF
15085 #define UINT64_FORMAT $UINT64_FORMAT
15089 # Now we have checked all the reasons to replace snprintf
15090 if test $pgac_need_repl_snprintf = yes; then
15092 cat >>confdefs.h <<\_ACEOF
15093 #define USE_SNPRINTF 1
15096 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
15099 # Need a #define for the size of Datum (unsigned long)
15100 echo "$as_me:$LINENO: checking for unsigned long" >&5
15101 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
15102 if test "${ac_cv_type_unsigned_long+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 cat >conftest.$ac_ext <<_ACEOF
15106 #line $LINENO "configure"
15107 #include "confdefs.h"
15108 $ac_includes_default
15109 #ifdef F77_DUMMY_MAIN
15110 # ifdef __cplusplus
15113 int F77_DUMMY_MAIN() { return 1; }
15118 if ((unsigned long *) 0)
15120 if (sizeof (unsigned long))
15126 rm -f conftest.$ac_objext
15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128 (eval $ac_compile) 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_cv_type_unsigned_long=yes
15140 echo "$as_me: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15142 ac_cv_type_unsigned_long=no
15144 rm -f conftest.$ac_objext conftest.$ac_ext
15146 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
15147 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
15149 echo "$as_me:$LINENO: checking size of unsigned long" >&5
15150 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
15151 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 if test "$ac_cv_type_unsigned_long" = yes; then
15155 # The cast to unsigned long works around a bug in the HP C Compiler
15156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15158 # This bug is HP SR number 8606223364.
15159 if test "$cross_compiling" = yes; then
15160 # Depending upon the size, compute the lo and hi bounds.
15161 cat >conftest.$ac_ext <<_ACEOF
15162 #line $LINENO "configure"
15163 #include "confdefs.h"
15164 $ac_includes_default
15165 #ifdef F77_DUMMY_MAIN
15166 # ifdef __cplusplus
15169 int F77_DUMMY_MAIN() { return 1; }
15174 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
15181 rm -f conftest.$ac_objext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15183 (eval $ac_compile) 2>&5
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15195 cat >conftest.$ac_ext <<_ACEOF
15196 #line $LINENO "configure"
15197 #include "confdefs.h"
15198 $ac_includes_default
15199 #ifdef F77_DUMMY_MAIN
15200 # ifdef __cplusplus
15203 int F77_DUMMY_MAIN() { return 1; }
15208 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
15215 rm -f conftest.$ac_objext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217 (eval $ac_compile) 2>&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -s conftest.$ac_objext'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227 ac_hi=$ac_mid; break
15229 echo "$as_me: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15231 ac_lo=`expr $ac_mid + 1`
15232 if test $ac_lo -le $ac_mid; then
15236 ac_mid=`expr 2 '*' $ac_mid + 1`
15238 rm -f conftest.$ac_objext conftest.$ac_ext
15241 echo "$as_me: failed program was:" >&5
15242 cat conftest.$ac_ext >&5
15243 cat >conftest.$ac_ext <<_ACEOF
15244 #line $LINENO "configure"
15245 #include "confdefs.h"
15246 $ac_includes_default
15247 #ifdef F77_DUMMY_MAIN
15248 # ifdef __cplusplus
15251 int F77_DUMMY_MAIN() { return 1; }
15256 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
15263 rm -f conftest.$ac_objext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15265 (eval $ac_compile) 2>&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -s conftest.$ac_objext'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15277 cat >conftest.$ac_ext <<_ACEOF
15278 #line $LINENO "configure"
15279 #include "confdefs.h"
15280 $ac_includes_default
15281 #ifdef F77_DUMMY_MAIN
15282 # ifdef __cplusplus
15285 int F77_DUMMY_MAIN() { return 1; }
15290 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
15297 rm -f conftest.$ac_objext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299 (eval $ac_compile) 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
15303 { ac_try='test -s conftest.$ac_objext'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then
15309 ac_lo=$ac_mid; break
15311 echo "$as_me: failed program was:" >&5
15312 cat conftest.$ac_ext >&5
15313 ac_hi=`expr '(' $ac_mid ')' - 1`
15314 if test $ac_mid -le $ac_hi; then
15318 ac_mid=`expr 2 '*' $ac_mid`
15320 rm -f conftest.$ac_objext conftest.$ac_ext
15323 echo "$as_me: failed program was:" >&5
15324 cat conftest.$ac_ext >&5
15327 rm -f conftest.$ac_objext conftest.$ac_ext
15329 rm -f conftest.$ac_objext conftest.$ac_ext
15330 # Binary search between lo and hi bounds.
15331 while test "x$ac_lo" != "x$ac_hi"; do
15332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15333 cat >conftest.$ac_ext <<_ACEOF
15334 #line $LINENO "configure"
15335 #include "confdefs.h"
15336 $ac_includes_default
15337 #ifdef F77_DUMMY_MAIN
15338 # ifdef __cplusplus
15341 int F77_DUMMY_MAIN() { return 1; }
15346 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
15353 rm -f conftest.$ac_objext
15354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15355 (eval $ac_compile) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15367 echo "$as_me: failed program was:" >&5
15368 cat conftest.$ac_ext >&5
15369 ac_lo=`expr '(' $ac_mid ')' + 1`
15371 rm -f conftest.$ac_objext conftest.$ac_ext
15374 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
15375 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
15376 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
15377 { (exit 1); exit 1; }; } ;;
15380 if test "$cross_compiling" = yes; then
15381 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15382 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15383 { (exit 1); exit 1; }; }
15385 cat >conftest.$ac_ext <<_ACEOF
15386 #line $LINENO "configure"
15387 #include "confdefs.h"
15388 $ac_includes_default
15389 long longval () { return (long) (sizeof (unsigned long)); }
15390 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
15392 #include <stdlib.h>
15393 #ifdef F77_DUMMY_MAIN
15394 # ifdef __cplusplus
15397 int F77_DUMMY_MAIN() { return 1; }
15403 FILE *f = fopen ("conftest.val", "w");
15406 if (((long) (sizeof (unsigned long))) < 0)
15408 long i = longval ();
15409 if (i != ((long) (sizeof (unsigned long))))
15411 fprintf (f, "%ld\n", i);
15415 unsigned long i = ulongval ();
15416 if (i != ((long) (sizeof (unsigned long))))
15418 fprintf (f, "%lu\n", i);
15420 exit (ferror (f) || fclose (f) != 0);
15426 rm -f conftest$ac_exeext
15427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15428 (eval $ac_link) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_sizeof_unsigned_long=`cat conftest.val`
15439 echo "$as_me: program exited with status $ac_status" >&5
15440 echo "$as_me: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15442 ( exit $ac_status )
15443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
15444 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
15445 { (exit 1); exit 1; }; }
15447 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15452 ac_cv_sizeof_unsigned_long=0
15455 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
15456 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
15457 cat >>confdefs.h <<_ACEOF
15458 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
15463 # Determine memory alignment requirements for the basic C data types.
15465 echo "$as_me:$LINENO: checking for short" >&5
15466 echo $ECHO_N "checking for short... $ECHO_C" >&6
15467 if test "${ac_cv_type_short+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15470 cat >conftest.$ac_ext <<_ACEOF
15471 #line $LINENO "configure"
15472 #include "confdefs.h"
15473 $ac_includes_default
15474 #ifdef F77_DUMMY_MAIN
15475 # ifdef __cplusplus
15478 int F77_DUMMY_MAIN() { return 1; }
15485 if (sizeof (short))
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
15497 { ac_try='test -s conftest.$ac_objext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_cv_type_short=yes
15505 echo "$as_me: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15507 ac_cv_type_short=no
15509 rm -f conftest.$ac_objext conftest.$ac_ext
15511 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15512 echo "${ECHO_T}$ac_cv_type_short" >&6
15514 echo "$as_me:$LINENO: checking alignment of short" >&5
15515 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
15516 if test "${pgac_cv_alignof_short+set}" = set; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 if test "$ac_cv_type_short" = yes; then
15520 if test "$cross_compiling" = yes; then
15521 # Depending upon the size, compute the lo and hi bounds.
15522 cat >conftest.$ac_ext <<_ACEOF
15523 #line $LINENO "configure"
15524 #include "confdefs.h"
15525 $ac_includes_default
15526 struct { char filler; short field; } pgac_struct;
15527 #ifdef F77_DUMMY_MAIN
15528 # ifdef __cplusplus
15531 int F77_DUMMY_MAIN() { return 1; }
15536 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15543 rm -f conftest.$ac_objext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545 (eval $ac_compile) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try='test -s conftest.$ac_objext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15557 cat >conftest.$ac_ext <<_ACEOF
15558 #line $LINENO "configure"
15559 #include "confdefs.h"
15560 $ac_includes_default
15561 struct { char filler; short field; } pgac_struct;
15562 #ifdef F77_DUMMY_MAIN
15563 # ifdef __cplusplus
15566 int F77_DUMMY_MAIN() { return 1; }
15571 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15578 rm -f conftest.$ac_objext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580 (eval $ac_compile) 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -s conftest.$ac_objext'
15585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15586 (eval $ac_try) 2>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; }; then
15590 ac_hi=$ac_mid; break
15592 echo "$as_me: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 ac_lo=`expr $ac_mid + 1`
15595 if test $ac_lo -le $ac_mid; then
15599 ac_mid=`expr 2 '*' $ac_mid + 1`
15601 rm -f conftest.$ac_objext conftest.$ac_ext
15604 echo "$as_me: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15606 cat >conftest.$ac_ext <<_ACEOF
15607 #line $LINENO "configure"
15608 #include "confdefs.h"
15609 $ac_includes_default
15610 struct { char filler; short field; } pgac_struct;
15611 #ifdef F77_DUMMY_MAIN
15612 # ifdef __cplusplus
15615 int F77_DUMMY_MAIN() { return 1; }
15620 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15627 rm -f conftest.$ac_objext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } &&
15633 { ac_try='test -s conftest.$ac_objext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15641 cat >conftest.$ac_ext <<_ACEOF
15642 #line $LINENO "configure"
15643 #include "confdefs.h"
15644 $ac_includes_default
15645 struct { char filler; short field; } pgac_struct;
15646 #ifdef F77_DUMMY_MAIN
15647 # ifdef __cplusplus
15650 int F77_DUMMY_MAIN() { return 1; }
15655 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15662 rm -f conftest.$ac_objext
15663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15664 (eval $ac_compile) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } &&
15668 { ac_try='test -s conftest.$ac_objext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_lo=$ac_mid; break
15676 echo "$as_me: failed program was:" >&5
15677 cat conftest.$ac_ext >&5
15678 ac_hi=`expr '(' $ac_mid ')' - 1`
15679 if test $ac_mid -le $ac_hi; then
15683 ac_mid=`expr 2 '*' $ac_mid`
15685 rm -f conftest.$ac_objext conftest.$ac_ext
15688 echo "$as_me: failed program was:" >&5
15689 cat conftest.$ac_ext >&5
15692 rm -f conftest.$ac_objext conftest.$ac_ext
15694 rm -f conftest.$ac_objext conftest.$ac_ext
15695 # Binary search between lo and hi bounds.
15696 while test "x$ac_lo" != "x$ac_hi"; do
15697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15698 cat >conftest.$ac_ext <<_ACEOF
15699 #line $LINENO "configure"
15700 #include "confdefs.h"
15701 $ac_includes_default
15702 struct { char filler; short field; } pgac_struct;
15703 #ifdef F77_DUMMY_MAIN
15704 # ifdef __cplusplus
15707 int F77_DUMMY_MAIN() { return 1; }
15712 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15719 rm -f conftest.$ac_objext
15720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15721 (eval $ac_compile) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -s conftest.$ac_objext'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; }; then
15733 echo "$as_me: failed program was:" >&5
15734 cat conftest.$ac_ext >&5
15735 ac_lo=`expr '(' $ac_mid ')' + 1`
15737 rm -f conftest.$ac_objext conftest.$ac_ext
15740 ?*) pgac_cv_alignof_short=$ac_lo;;
15741 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15742 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15743 { (exit 1); exit 1; }; } ;;
15746 if test "$cross_compiling" = yes; then
15747 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15748 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15749 { (exit 1); exit 1; }; }
15751 cat >conftest.$ac_ext <<_ACEOF
15752 #line $LINENO "configure"
15753 #include "confdefs.h"
15754 $ac_includes_default
15755 struct { char filler; short field; } pgac_struct;
15756 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15757 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15759 #include <stdlib.h>
15760 #ifdef F77_DUMMY_MAIN
15761 # ifdef __cplusplus
15764 int F77_DUMMY_MAIN() { return 1; }
15770 FILE *f = fopen ("conftest.val", "w");
15773 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15775 long i = longval ();
15776 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15778 fprintf (f, "%ld\n", i);
15782 unsigned long i = ulongval ();
15783 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15785 fprintf (f, "%lu\n", i);
15787 exit (ferror (f) || fclose (f) != 0);
15793 rm -f conftest$ac_exeext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15795 (eval $ac_link) 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 pgac_cv_alignof_short=`cat conftest.val`
15806 echo "$as_me: program exited with status $ac_status" >&5
15807 echo "$as_me: failed program was:" >&5
15808 cat conftest.$ac_ext >&5
15809 ( exit $ac_status )
15810 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15811 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15812 { (exit 1); exit 1; }; }
15814 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15819 pgac_cv_alignof_short=0
15822 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
15823 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
15824 cat >>confdefs.h <<_ACEOF
15825 #define ALIGNOF_SHORT $pgac_cv_alignof_short
15829 echo "$as_me:$LINENO: checking for int" >&5
15830 echo $ECHO_N "checking for int... $ECHO_C" >&6
15831 if test "${ac_cv_type_int+set}" = set; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 cat >conftest.$ac_ext <<_ACEOF
15835 #line $LINENO "configure"
15836 #include "confdefs.h"
15837 $ac_includes_default
15838 #ifdef F77_DUMMY_MAIN
15839 # ifdef __cplusplus
15842 int F77_DUMMY_MAIN() { return 1; }
15855 rm -f conftest.$ac_objext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15857 (eval $ac_compile) 2>&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } &&
15861 { ac_try='test -s conftest.$ac_objext'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; }; then
15869 echo "$as_me: failed program was:" >&5
15870 cat conftest.$ac_ext >&5
15873 rm -f conftest.$ac_objext conftest.$ac_ext
15875 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15876 echo "${ECHO_T}$ac_cv_type_int" >&6
15878 echo "$as_me:$LINENO: checking alignment of int" >&5
15879 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
15880 if test "${pgac_cv_alignof_int+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 if test "$ac_cv_type_int" = yes; then
15884 if test "$cross_compiling" = yes; then
15885 # Depending upon the size, compute the lo and hi bounds.
15886 cat >conftest.$ac_ext <<_ACEOF
15887 #line $LINENO "configure"
15888 #include "confdefs.h"
15889 $ac_includes_default
15890 struct { char filler; int field; } pgac_struct;
15891 #ifdef F77_DUMMY_MAIN
15892 # ifdef __cplusplus
15895 int F77_DUMMY_MAIN() { return 1; }
15900 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15907 rm -f conftest.$ac_objext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -s conftest.$ac_objext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15921 cat >conftest.$ac_ext <<_ACEOF
15922 #line $LINENO "configure"
15923 #include "confdefs.h"
15924 $ac_includes_default
15925 struct { char filler; int field; } pgac_struct;
15926 #ifdef F77_DUMMY_MAIN
15927 # ifdef __cplusplus
15930 int F77_DUMMY_MAIN() { return 1; }
15935 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15942 rm -f conftest.$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944 (eval $ac_compile) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
15948 { ac_try='test -s conftest.$ac_objext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_hi=$ac_mid; break
15956 echo "$as_me: failed program was:" >&5
15957 cat conftest.$ac_ext >&5
15958 ac_lo=`expr $ac_mid + 1`
15959 if test $ac_lo -le $ac_mid; then
15963 ac_mid=`expr 2 '*' $ac_mid + 1`
15965 rm -f conftest.$ac_objext conftest.$ac_ext
15968 echo "$as_me: failed program was:" >&5
15969 cat conftest.$ac_ext >&5
15970 cat >conftest.$ac_ext <<_ACEOF
15971 #line $LINENO "configure"
15972 #include "confdefs.h"
15973 $ac_includes_default
15974 struct { char filler; int field; } pgac_struct;
15975 #ifdef F77_DUMMY_MAIN
15976 # ifdef __cplusplus
15979 int F77_DUMMY_MAIN() { return 1; }
15984 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15991 rm -f conftest.$ac_objext
15992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15993 (eval $ac_compile) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } &&
15997 { ac_try='test -s conftest.$ac_objext'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }; then
16005 cat >conftest.$ac_ext <<_ACEOF
16006 #line $LINENO "configure"
16007 #include "confdefs.h"
16008 $ac_includes_default
16009 struct { char filler; int field; } pgac_struct;
16010 #ifdef F77_DUMMY_MAIN
16011 # ifdef __cplusplus
16014 int F77_DUMMY_MAIN() { return 1; }
16019 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16026 rm -f conftest.$ac_objext
16027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16028 (eval $ac_compile) 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
16032 { ac_try='test -s conftest.$ac_objext'
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; }; then
16038 ac_lo=$ac_mid; break
16040 echo "$as_me: failed program was:" >&5
16041 cat conftest.$ac_ext >&5
16042 ac_hi=`expr '(' $ac_mid ')' - 1`
16043 if test $ac_mid -le $ac_hi; then
16047 ac_mid=`expr 2 '*' $ac_mid`
16049 rm -f conftest.$ac_objext conftest.$ac_ext
16052 echo "$as_me: failed program was:" >&5
16053 cat conftest.$ac_ext >&5
16056 rm -f conftest.$ac_objext conftest.$ac_ext
16058 rm -f conftest.$ac_objext conftest.$ac_ext
16059 # Binary search between lo and hi bounds.
16060 while test "x$ac_lo" != "x$ac_hi"; do
16061 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16062 cat >conftest.$ac_ext <<_ACEOF
16063 #line $LINENO "configure"
16064 #include "confdefs.h"
16065 $ac_includes_default
16066 struct { char filler; int field; } pgac_struct;
16067 #ifdef F77_DUMMY_MAIN
16068 # ifdef __cplusplus
16071 int F77_DUMMY_MAIN() { return 1; }
16076 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16083 rm -f conftest.$ac_objext
16084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16085 (eval $ac_compile) 2>&5
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } &&
16089 { ac_try='test -s conftest.$ac_objext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16097 echo "$as_me: failed program was:" >&5
16098 cat conftest.$ac_ext >&5
16099 ac_lo=`expr '(' $ac_mid ')' + 1`
16101 rm -f conftest.$ac_objext conftest.$ac_ext
16104 ?*) pgac_cv_alignof_int=$ac_lo;;
16105 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
16106 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
16107 { (exit 1); exit 1; }; } ;;
16110 if test "$cross_compiling" = yes; then
16111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16112 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16113 { (exit 1); exit 1; }; }
16115 cat >conftest.$ac_ext <<_ACEOF
16116 #line $LINENO "configure"
16117 #include "confdefs.h"
16118 $ac_includes_default
16119 struct { char filler; int field; } pgac_struct;
16120 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16121 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16123 #include <stdlib.h>
16124 #ifdef F77_DUMMY_MAIN
16125 # ifdef __cplusplus
16128 int F77_DUMMY_MAIN() { return 1; }
16134 FILE *f = fopen ("conftest.val", "w");
16137 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16139 long i = longval ();
16140 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16142 fprintf (f, "%ld\n", i);
16146 unsigned long i = ulongval ();
16147 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16149 fprintf (f, "%lu\n", i);
16151 exit (ferror (f) || fclose (f) != 0);
16157 rm -f conftest$ac_exeext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16159 (eval $ac_link) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16164 (eval $ac_try) 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 pgac_cv_alignof_int=`cat conftest.val`
16170 echo "$as_me: program exited with status $ac_status" >&5
16171 echo "$as_me: failed program was:" >&5
16172 cat conftest.$ac_ext >&5
16173 ( exit $ac_status )
16174 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
16175 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
16176 { (exit 1); exit 1; }; }
16178 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16183 pgac_cv_alignof_int=0
16186 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
16187 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
16188 cat >>confdefs.h <<_ACEOF
16189 #define ALIGNOF_INT $pgac_cv_alignof_int
16193 echo "$as_me:$LINENO: checking for long" >&5
16194 echo $ECHO_N "checking for long... $ECHO_C" >&6
16195 if test "${ac_cv_type_long+set}" = set; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
16198 cat >conftest.$ac_ext <<_ACEOF
16199 #line $LINENO "configure"
16200 #include "confdefs.h"
16201 $ac_includes_default
16202 #ifdef F77_DUMMY_MAIN
16203 # ifdef __cplusplus
16206 int F77_DUMMY_MAIN() { return 1; }
16219 rm -f conftest.$ac_objext
16220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16221 (eval $ac_compile) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } &&
16225 { ac_try='test -s conftest.$ac_objext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 ac_cv_type_long=yes
16233 echo "$as_me: failed program was:" >&5
16234 cat conftest.$ac_ext >&5
16237 rm -f conftest.$ac_objext conftest.$ac_ext
16239 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16240 echo "${ECHO_T}$ac_cv_type_long" >&6
16242 echo "$as_me:$LINENO: checking alignment of long" >&5
16243 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
16244 if test "${pgac_cv_alignof_long+set}" = set; then
16245 echo $ECHO_N "(cached) $ECHO_C" >&6
16247 if test "$ac_cv_type_long" = yes; then
16248 if test "$cross_compiling" = yes; then
16249 # Depending upon the size, compute the lo and hi bounds.
16250 cat >conftest.$ac_ext <<_ACEOF
16251 #line $LINENO "configure"
16252 #include "confdefs.h"
16253 $ac_includes_default
16254 struct { char filler; long field; } pgac_struct;
16255 #ifdef F77_DUMMY_MAIN
16256 # ifdef __cplusplus
16259 int F77_DUMMY_MAIN() { return 1; }
16264 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16271 rm -f conftest.$ac_objext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16273 (eval $ac_compile) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } &&
16277 { ac_try='test -s conftest.$ac_objext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16285 cat >conftest.$ac_ext <<_ACEOF
16286 #line $LINENO "configure"
16287 #include "confdefs.h"
16288 $ac_includes_default
16289 struct { char filler; long field; } pgac_struct;
16290 #ifdef F77_DUMMY_MAIN
16291 # ifdef __cplusplus
16294 int F77_DUMMY_MAIN() { return 1; }
16299 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16306 rm -f conftest.$ac_objext
16307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16308 (eval $ac_compile) 2>&5
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -s conftest.$ac_objext'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 ac_hi=$ac_mid; break
16320 echo "$as_me: failed program was:" >&5
16321 cat conftest.$ac_ext >&5
16322 ac_lo=`expr $ac_mid + 1`
16323 if test $ac_lo -le $ac_mid; then
16327 ac_mid=`expr 2 '*' $ac_mid + 1`
16329 rm -f conftest.$ac_objext conftest.$ac_ext
16332 echo "$as_me: failed program was:" >&5
16333 cat conftest.$ac_ext >&5
16334 cat >conftest.$ac_ext <<_ACEOF
16335 #line $LINENO "configure"
16336 #include "confdefs.h"
16337 $ac_includes_default
16338 struct { char filler; long field; } pgac_struct;
16339 #ifdef F77_DUMMY_MAIN
16340 # ifdef __cplusplus
16343 int F77_DUMMY_MAIN() { return 1; }
16348 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16355 rm -f conftest.$ac_objext
16356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16357 (eval $ac_compile) 2>&5
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); } &&
16361 { ac_try='test -s conftest.$ac_objext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16369 cat >conftest.$ac_ext <<_ACEOF
16370 #line $LINENO "configure"
16371 #include "confdefs.h"
16372 $ac_includes_default
16373 struct { char filler; long field; } pgac_struct;
16374 #ifdef F77_DUMMY_MAIN
16375 # ifdef __cplusplus
16378 int F77_DUMMY_MAIN() { return 1; }
16383 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392 (eval $ac_compile) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -s conftest.$ac_objext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_lo=$ac_mid; break
16404 echo "$as_me: failed program was:" >&5
16405 cat conftest.$ac_ext >&5
16406 ac_hi=`expr '(' $ac_mid ')' - 1`
16407 if test $ac_mid -le $ac_hi; then
16411 ac_mid=`expr 2 '*' $ac_mid`
16413 rm -f conftest.$ac_objext conftest.$ac_ext
16416 echo "$as_me: failed program was:" >&5
16417 cat conftest.$ac_ext >&5
16420 rm -f conftest.$ac_objext conftest.$ac_ext
16422 rm -f conftest.$ac_objext conftest.$ac_ext
16423 # Binary search between lo and hi bounds.
16424 while test "x$ac_lo" != "x$ac_hi"; do
16425 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16426 cat >conftest.$ac_ext <<_ACEOF
16427 #line $LINENO "configure"
16428 #include "confdefs.h"
16429 $ac_includes_default
16430 struct { char filler; long field; } pgac_struct;
16431 #ifdef F77_DUMMY_MAIN
16432 # ifdef __cplusplus
16435 int F77_DUMMY_MAIN() { return 1; }
16440 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16447 rm -f conftest.$ac_objext
16448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16449 (eval $ac_compile) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } &&
16453 { ac_try='test -s conftest.$ac_objext'
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16461 echo "$as_me: failed program was:" >&5
16462 cat conftest.$ac_ext >&5
16463 ac_lo=`expr '(' $ac_mid ')' + 1`
16465 rm -f conftest.$ac_objext conftest.$ac_ext
16468 ?*) pgac_cv_alignof_long=$ac_lo;;
16469 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
16470 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
16471 { (exit 1); exit 1; }; } ;;
16474 if test "$cross_compiling" = yes; then
16475 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16476 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16477 { (exit 1); exit 1; }; }
16479 cat >conftest.$ac_ext <<_ACEOF
16480 #line $LINENO "configure"
16481 #include "confdefs.h"
16482 $ac_includes_default
16483 struct { char filler; long field; } pgac_struct;
16484 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16485 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16487 #include <stdlib.h>
16488 #ifdef F77_DUMMY_MAIN
16489 # ifdef __cplusplus
16492 int F77_DUMMY_MAIN() { return 1; }
16498 FILE *f = fopen ("conftest.val", "w");
16501 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16503 long i = longval ();
16504 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16506 fprintf (f, "%ld\n", i);
16510 unsigned long i = ulongval ();
16511 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16513 fprintf (f, "%lu\n", i);
16515 exit (ferror (f) || fclose (f) != 0);
16521 rm -f conftest$ac_exeext
16522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16523 (eval $ac_link) 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 pgac_cv_alignof_long=`cat conftest.val`
16534 echo "$as_me: program exited with status $ac_status" >&5
16535 echo "$as_me: failed program was:" >&5
16536 cat conftest.$ac_ext >&5
16537 ( exit $ac_status )
16538 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
16539 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
16540 { (exit 1); exit 1; }; }
16542 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16547 pgac_cv_alignof_long=0
16550 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
16551 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
16552 cat >>confdefs.h <<_ACEOF
16553 #define ALIGNOF_LONG $pgac_cv_alignof_long
16557 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
16558 echo "$as_me:$LINENO: checking for long long int" >&5
16559 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16560 if test "${ac_cv_type_long_long_int+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16563 cat >conftest.$ac_ext <<_ACEOF
16564 #line $LINENO "configure"
16565 #include "confdefs.h"
16566 $ac_includes_default
16567 #ifdef F77_DUMMY_MAIN
16568 # ifdef __cplusplus
16571 int F77_DUMMY_MAIN() { return 1; }
16576 if ((long long int *) 0)
16578 if (sizeof (long long int))
16584 rm -f conftest.$ac_objext
16585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16586 (eval $ac_compile) 2>&5
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); } &&
16590 { ac_try='test -s conftest.$ac_objext'
16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; }; then
16596 ac_cv_type_long_long_int=yes
16598 echo "$as_me: failed program was:" >&5
16599 cat conftest.$ac_ext >&5
16600 ac_cv_type_long_long_int=no
16602 rm -f conftest.$ac_objext conftest.$ac_ext
16604 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16605 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16607 echo "$as_me:$LINENO: checking alignment of long long int" >&5
16608 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
16609 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16612 if test "$ac_cv_type_long_long_int" = yes; then
16613 if test "$cross_compiling" = yes; then
16614 # Depending upon the size, compute the lo and hi bounds.
16615 cat >conftest.$ac_ext <<_ACEOF
16616 #line $LINENO "configure"
16617 #include "confdefs.h"
16618 $ac_includes_default
16619 struct { char filler; long long int field; } pgac_struct;
16620 #ifdef F77_DUMMY_MAIN
16621 # ifdef __cplusplus
16624 int F77_DUMMY_MAIN() { return 1; }
16629 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16636 rm -f conftest.$ac_objext
16637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16638 (eval $ac_compile) 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16650 cat >conftest.$ac_ext <<_ACEOF
16651 #line $LINENO "configure"
16652 #include "confdefs.h"
16653 $ac_includes_default
16654 struct { char filler; long long int field; } pgac_struct;
16655 #ifdef F77_DUMMY_MAIN
16656 # ifdef __cplusplus
16659 int F77_DUMMY_MAIN() { return 1; }
16664 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16671 rm -f conftest.$ac_objext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16673 (eval $ac_compile) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -s conftest.$ac_objext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_hi=$ac_mid; break
16685 echo "$as_me: failed program was:" >&5
16686 cat conftest.$ac_ext >&5
16687 ac_lo=`expr $ac_mid + 1`
16688 if test $ac_lo -le $ac_mid; then
16692 ac_mid=`expr 2 '*' $ac_mid + 1`
16694 rm -f conftest.$ac_objext conftest.$ac_ext
16697 echo "$as_me: failed program was:" >&5
16698 cat conftest.$ac_ext >&5
16699 cat >conftest.$ac_ext <<_ACEOF
16700 #line $LINENO "configure"
16701 #include "confdefs.h"
16702 $ac_includes_default
16703 struct { char filler; long long int field; } pgac_struct;
16704 #ifdef F77_DUMMY_MAIN
16705 # ifdef __cplusplus
16708 int F77_DUMMY_MAIN() { return 1; }
16713 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16720 rm -f conftest.$ac_objext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722 (eval $ac_compile) 2>&5
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
16726 { ac_try='test -s conftest.$ac_objext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16734 cat >conftest.$ac_ext <<_ACEOF
16735 #line $LINENO "configure"
16736 #include "confdefs.h"
16737 $ac_includes_default
16738 struct { char filler; long long int field; } pgac_struct;
16739 #ifdef F77_DUMMY_MAIN
16740 # ifdef __cplusplus
16743 int F77_DUMMY_MAIN() { return 1; }
16748 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16755 rm -f conftest.$ac_objext
16756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16757 (eval $ac_compile) 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -s conftest.$ac_objext'
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 ac_lo=$ac_mid; break
16769 echo "$as_me: failed program was:" >&5
16770 cat conftest.$ac_ext >&5
16771 ac_hi=`expr '(' $ac_mid ')' - 1`
16772 if test $ac_mid -le $ac_hi; then
16776 ac_mid=`expr 2 '*' $ac_mid`
16778 rm -f conftest.$ac_objext conftest.$ac_ext
16781 echo "$as_me: failed program was:" >&5
16782 cat conftest.$ac_ext >&5
16785 rm -f conftest.$ac_objext conftest.$ac_ext
16787 rm -f conftest.$ac_objext conftest.$ac_ext
16788 # Binary search between lo and hi bounds.
16789 while test "x$ac_lo" != "x$ac_hi"; do
16790 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16791 cat >conftest.$ac_ext <<_ACEOF
16792 #line $LINENO "configure"
16793 #include "confdefs.h"
16794 $ac_includes_default
16795 struct { char filler; long long int field; } pgac_struct;
16796 #ifdef F77_DUMMY_MAIN
16797 # ifdef __cplusplus
16800 int F77_DUMMY_MAIN() { return 1; }
16805 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16812 rm -f conftest.$ac_objext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16814 (eval $ac_compile) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } &&
16818 { ac_try='test -s conftest.$ac_objext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16826 echo "$as_me: failed program was:" >&5
16827 cat conftest.$ac_ext >&5
16828 ac_lo=`expr '(' $ac_mid ')' + 1`
16830 rm -f conftest.$ac_objext conftest.$ac_ext
16833 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
16834 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16835 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16836 { (exit 1); exit 1; }; } ;;
16839 if test "$cross_compiling" = yes; then
16840 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16841 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16842 { (exit 1); exit 1; }; }
16844 cat >conftest.$ac_ext <<_ACEOF
16845 #line $LINENO "configure"
16846 #include "confdefs.h"
16847 $ac_includes_default
16848 struct { char filler; long long int field; } pgac_struct;
16849 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16850 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16852 #include <stdlib.h>
16853 #ifdef F77_DUMMY_MAIN
16854 # ifdef __cplusplus
16857 int F77_DUMMY_MAIN() { return 1; }
16863 FILE *f = fopen ("conftest.val", "w");
16866 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16868 long i = longval ();
16869 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16871 fprintf (f, "%ld\n", i);
16875 unsigned long i = ulongval ();
16876 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16878 fprintf (f, "%lu\n", i);
16880 exit (ferror (f) || fclose (f) != 0);
16886 rm -f conftest$ac_exeext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16888 (eval $ac_link) 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 pgac_cv_alignof_long_long_int=`cat conftest.val`
16899 echo "$as_me: program exited with status $ac_status" >&5
16900 echo "$as_me: failed program was:" >&5
16901 cat conftest.$ac_ext >&5
16902 ( exit $ac_status )
16903 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16904 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16905 { (exit 1); exit 1; }; }
16907 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16912 pgac_cv_alignof_long_long_int=0
16915 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16916 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16917 cat >>confdefs.h <<_ACEOF
16918 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16923 echo "$as_me:$LINENO: checking for double" >&5
16924 echo $ECHO_N "checking for double... $ECHO_C" >&6
16925 if test "${ac_cv_type_double+set}" = set; then
16926 echo $ECHO_N "(cached) $ECHO_C" >&6
16928 cat >conftest.$ac_ext <<_ACEOF
16929 #line $LINENO "configure"
16930 #include "confdefs.h"
16931 $ac_includes_default
16932 #ifdef F77_DUMMY_MAIN
16933 # ifdef __cplusplus
16936 int F77_DUMMY_MAIN() { return 1; }
16943 if (sizeof (double))
16949 rm -f conftest.$ac_objext
16950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16951 (eval $ac_compile) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
16955 { ac_try='test -s conftest.$ac_objext'
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_cv_type_double=yes
16963 echo "$as_me: failed program was:" >&5
16964 cat conftest.$ac_ext >&5
16965 ac_cv_type_double=no
16967 rm -f conftest.$ac_objext conftest.$ac_ext
16969 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16970 echo "${ECHO_T}$ac_cv_type_double" >&6
16972 echo "$as_me:$LINENO: checking alignment of double" >&5
16973 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16974 if test "${pgac_cv_alignof_double+set}" = set; then
16975 echo $ECHO_N "(cached) $ECHO_C" >&6
16977 if test "$ac_cv_type_double" = yes; then
16978 if test "$cross_compiling" = yes; then
16979 # Depending upon the size, compute the lo and hi bounds.
16980 cat >conftest.$ac_ext <<_ACEOF
16981 #line $LINENO "configure"
16982 #include "confdefs.h"
16983 $ac_includes_default
16984 struct { char filler; double field; } pgac_struct;
16985 #ifdef F77_DUMMY_MAIN
16986 # ifdef __cplusplus
16989 int F77_DUMMY_MAIN() { return 1; }
16994 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
17001 rm -f conftest.$ac_objext
17002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17003 (eval $ac_compile) 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } &&
17007 { ac_try='test -s conftest.$ac_objext'
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17015 cat >conftest.$ac_ext <<_ACEOF
17016 #line $LINENO "configure"
17017 #include "confdefs.h"
17018 $ac_includes_default
17019 struct { char filler; double field; } pgac_struct;
17020 #ifdef F77_DUMMY_MAIN
17021 # ifdef __cplusplus
17024 int F77_DUMMY_MAIN() { return 1; }
17029 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
17036 rm -f conftest.$ac_objext
17037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17038 (eval $ac_compile) 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -s conftest.$ac_objext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 ac_hi=$ac_mid; break
17050 echo "$as_me: failed program was:" >&5
17051 cat conftest.$ac_ext >&5
17052 ac_lo=`expr $ac_mid + 1`
17053 if test $ac_lo -le $ac_mid; then
17057 ac_mid=`expr 2 '*' $ac_mid + 1`
17059 rm -f conftest.$ac_objext conftest.$ac_ext
17062 echo "$as_me: failed program was:" >&5
17063 cat conftest.$ac_ext >&5
17064 cat >conftest.$ac_ext <<_ACEOF
17065 #line $LINENO "configure"
17066 #include "confdefs.h"
17067 $ac_includes_default
17068 struct { char filler; double field; } pgac_struct;
17069 #ifdef F77_DUMMY_MAIN
17070 # ifdef __cplusplus
17073 int F77_DUMMY_MAIN() { return 1; }
17078 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
17085 rm -f conftest.$ac_objext
17086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17087 (eval $ac_compile) 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -s conftest.$ac_objext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17099 cat >conftest.$ac_ext <<_ACEOF
17100 #line $LINENO "configure"
17101 #include "confdefs.h"
17102 $ac_includes_default
17103 struct { char filler; double field; } pgac_struct;
17104 #ifdef F77_DUMMY_MAIN
17105 # ifdef __cplusplus
17108 int F77_DUMMY_MAIN() { return 1; }
17113 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
17120 rm -f conftest.$ac_objext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17122 (eval $ac_compile) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } &&
17126 { ac_try='test -s conftest.$ac_objext'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_lo=$ac_mid; break
17134 echo "$as_me: failed program was:" >&5
17135 cat conftest.$ac_ext >&5
17136 ac_hi=`expr '(' $ac_mid ')' - 1`
17137 if test $ac_mid -le $ac_hi; then
17141 ac_mid=`expr 2 '*' $ac_mid`
17143 rm -f conftest.$ac_objext conftest.$ac_ext
17146 echo "$as_me: failed program was:" >&5
17147 cat conftest.$ac_ext >&5
17150 rm -f conftest.$ac_objext conftest.$ac_ext
17152 rm -f conftest.$ac_objext conftest.$ac_ext
17153 # Binary search between lo and hi bounds.
17154 while test "x$ac_lo" != "x$ac_hi"; do
17155 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17156 cat >conftest.$ac_ext <<_ACEOF
17157 #line $LINENO "configure"
17158 #include "confdefs.h"
17159 $ac_includes_default
17160 struct { char filler; double field; } pgac_struct;
17161 #ifdef F77_DUMMY_MAIN
17162 # ifdef __cplusplus
17165 int F77_DUMMY_MAIN() { return 1; }
17170 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
17177 rm -f conftest.$ac_objext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17179 (eval $ac_compile) 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } &&
17183 { ac_try='test -s conftest.$ac_objext'
17184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); }; }; then
17191 echo "$as_me: failed program was:" >&5
17192 cat conftest.$ac_ext >&5
17193 ac_lo=`expr '(' $ac_mid ')' + 1`
17195 rm -f conftest.$ac_objext conftest.$ac_ext
17198 ?*) pgac_cv_alignof_double=$ac_lo;;
17199 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
17200 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
17201 { (exit 1); exit 1; }; } ;;
17204 if test "$cross_compiling" = yes; then
17205 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
17206 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17207 { (exit 1); exit 1; }; }
17209 cat >conftest.$ac_ext <<_ACEOF
17210 #line $LINENO "configure"
17211 #include "confdefs.h"
17212 $ac_includes_default
17213 struct { char filler; double field; } pgac_struct;
17214 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
17215 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
17217 #include <stdlib.h>
17218 #ifdef F77_DUMMY_MAIN
17219 # ifdef __cplusplus
17222 int F77_DUMMY_MAIN() { return 1; }
17228 FILE *f = fopen ("conftest.val", "w");
17231 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
17233 long i = longval ();
17234 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
17236 fprintf (f, "%ld\n", i);
17240 unsigned long i = ulongval ();
17241 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
17243 fprintf (f, "%lu\n", i);
17245 exit (ferror (f) || fclose (f) != 0);
17251 rm -f conftest$ac_exeext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17253 (eval $ac_link) 2>&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; }; then
17262 pgac_cv_alignof_double=`cat conftest.val`
17264 echo "$as_me: program exited with status $ac_status" >&5
17265 echo "$as_me: failed program was:" >&5
17266 cat conftest.$ac_ext >&5
17267 ( exit $ac_status )
17268 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
17269 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
17270 { (exit 1); exit 1; }; }
17272 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17277 pgac_cv_alignof_double=0
17280 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
17281 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
17282 cat >>confdefs.h <<_ACEOF
17283 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
17288 # Compute maximum alignment of any basic type.
17289 # We assume long's alignment is at least as strong as char, short, or int;
17290 # but we must check long long (if it exists) and double.
17292 MAX_ALIGNOF=$pgac_cv_alignof_long
17293 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
17294 MAX_ALIGNOF=$pgac_cv_alignof_double
17296 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
17297 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
17300 cat >>confdefs.h <<_ACEOF
17301 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
17306 # Some platforms predefine the types int8, int16, etc. Only check
17307 # a (hopefully) representative subset.
17308 echo "$as_me:$LINENO: checking for int8" >&5
17309 echo $ECHO_N "checking for int8... $ECHO_C" >&6
17310 if test "${ac_cv_type_int8+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17313 cat >conftest.$ac_ext <<_ACEOF
17314 #line $LINENO "configure"
17315 #include "confdefs.h"
17317 #ifdef HAVE_SUPPORTDEFS_H
17318 #include <SupportDefs.h>
17321 #ifdef F77_DUMMY_MAIN
17322 # ifdef __cplusplus
17325 int F77_DUMMY_MAIN() { return 1; }
17338 rm -f conftest.$ac_objext
17339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17340 (eval $ac_compile) 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -s conftest.$ac_objext'
17345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 (eval $ac_try) 2>&5
17348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); }; }; then
17350 ac_cv_type_int8=yes
17352 echo "$as_me: failed program was:" >&5
17353 cat conftest.$ac_ext >&5
17356 rm -f conftest.$ac_objext conftest.$ac_ext
17358 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
17359 echo "${ECHO_T}$ac_cv_type_int8" >&6
17360 if test $ac_cv_type_int8 = yes; then
17362 cat >>confdefs.h <<_ACEOF
17363 #define HAVE_INT8 1
17368 echo "$as_me:$LINENO: checking for uint8" >&5
17369 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
17370 if test "${ac_cv_type_uint8+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17373 cat >conftest.$ac_ext <<_ACEOF
17374 #line $LINENO "configure"
17375 #include "confdefs.h"
17377 #ifdef HAVE_SUPPORTDEFS_H
17378 #include <SupportDefs.h>
17381 #ifdef F77_DUMMY_MAIN
17382 # ifdef __cplusplus
17385 int F77_DUMMY_MAIN() { return 1; }
17392 if (sizeof (uint8))
17398 rm -f conftest.$ac_objext
17399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17400 (eval $ac_compile) 2>&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
17404 { ac_try='test -s conftest.$ac_objext'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; }; then
17410 ac_cv_type_uint8=yes
17412 echo "$as_me: failed program was:" >&5
17413 cat conftest.$ac_ext >&5
17414 ac_cv_type_uint8=no
17416 rm -f conftest.$ac_objext conftest.$ac_ext
17418 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
17419 echo "${ECHO_T}$ac_cv_type_uint8" >&6
17420 if test $ac_cv_type_uint8 = yes; then
17422 cat >>confdefs.h <<_ACEOF
17423 #define HAVE_UINT8 1
17428 echo "$as_me:$LINENO: checking for int64" >&5
17429 echo $ECHO_N "checking for int64... $ECHO_C" >&6
17430 if test "${ac_cv_type_int64+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 cat >conftest.$ac_ext <<_ACEOF
17434 #line $LINENO "configure"
17435 #include "confdefs.h"
17437 #ifdef HAVE_SUPPORTDEFS_H
17438 #include <SupportDefs.h>
17441 #ifdef F77_DUMMY_MAIN
17442 # ifdef __cplusplus
17445 int F77_DUMMY_MAIN() { return 1; }
17452 if (sizeof (int64))
17458 rm -f conftest.$ac_objext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17460 (eval $ac_compile) 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
17464 { ac_try='test -s conftest.$ac_objext'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_cv_type_int64=yes
17472 echo "$as_me: failed program was:" >&5
17473 cat conftest.$ac_ext >&5
17474 ac_cv_type_int64=no
17476 rm -f conftest.$ac_objext conftest.$ac_ext
17478 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
17479 echo "${ECHO_T}$ac_cv_type_int64" >&6
17480 if test $ac_cv_type_int64 = yes; then
17482 cat >>confdefs.h <<_ACEOF
17483 #define HAVE_INT64 1
17488 echo "$as_me:$LINENO: checking for uint64" >&5
17489 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
17490 if test "${ac_cv_type_uint64+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 cat >conftest.$ac_ext <<_ACEOF
17494 #line $LINENO "configure"
17495 #include "confdefs.h"
17497 #ifdef HAVE_SUPPORTDEFS_H
17498 #include <SupportDefs.h>
17501 #ifdef F77_DUMMY_MAIN
17502 # ifdef __cplusplus
17505 int F77_DUMMY_MAIN() { return 1; }
17512 if (sizeof (uint64))
17518 rm -f conftest.$ac_objext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17520 (eval $ac_compile) 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 ac_cv_type_uint64=yes
17532 echo "$as_me: failed program was:" >&5
17533 cat conftest.$ac_ext >&5
17534 ac_cv_type_uint64=no
17536 rm -f conftest.$ac_objext conftest.$ac_ext
17538 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
17539 echo "${ECHO_T}$ac_cv_type_uint64" >&6
17540 if test $ac_cv_type_uint64 = yes; then
17542 cat >>confdefs.h <<_ACEOF
17543 #define HAVE_UINT64 1
17550 # We also check for sig_atomic_t, which *should* be defined per ANSI
17551 # C, but is missing on some old platforms.
17552 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
17553 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
17554 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17557 cat >conftest.$ac_ext <<_ACEOF
17558 #line $LINENO "configure"
17559 #include "confdefs.h"
17560 #include <signal.h>
17562 #ifdef F77_DUMMY_MAIN
17563 # ifdef __cplusplus
17566 int F77_DUMMY_MAIN() { return 1; }
17571 if ((sig_atomic_t *) 0)
17573 if (sizeof (sig_atomic_t))
17579 rm -f conftest.$ac_objext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17581 (eval $ac_compile) 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } &&
17585 { ac_try='test -s conftest.$ac_objext'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 ac_cv_type_sig_atomic_t=yes
17593 echo "$as_me: failed program was:" >&5
17594 cat conftest.$ac_ext >&5
17595 ac_cv_type_sig_atomic_t=no
17597 rm -f conftest.$ac_objext conftest.$ac_ext
17599 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
17600 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
17601 if test $ac_cv_type_sig_atomic_t = yes; then
17603 cat >>confdefs.h <<_ACEOF
17604 #define HAVE_SIG_ATOMIC_T 1
17612 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
17613 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
17614 if test "${pgac_cv_func_posix_signals+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 cat >conftest.$ac_ext <<_ACEOF
17618 #line $LINENO "configure"
17619 #include "confdefs.h"
17620 #include <signal.h>
17622 #ifdef F77_DUMMY_MAIN
17623 # ifdef __cplusplus
17626 int F77_DUMMY_MAIN() { return 1; }
17631 struct sigaction act, oact;
17632 sigemptyset(&act.sa_mask);
17633 act.sa_flags = SA_RESTART;
17634 sigaction(0, &act, &oact);
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -s conftest$ac_exeext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 pgac_cv_func_posix_signals=yes
17653 echo "$as_me: failed program was:" >&5
17654 cat conftest.$ac_ext >&5
17655 pgac_cv_func_posix_signals=no
17657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17659 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
17660 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
17661 if test x"$pgac_cv_func_posix_signals" = xyes ; then
17663 cat >>confdefs.h <<\_ACEOF
17664 #define HAVE_POSIX_SIGNALS
17668 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
17670 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
17671 { { echo "$as_me:$LINENO: error:
17672 *** Thread-safety requires POSIX signals, which are not supported by your
17673 *** operating system.
17675 echo "$as_me: error:
17676 *** Thread-safety requires POSIX signals, which are not supported by your
17677 *** operating system.
17679 { (exit 1); exit 1; }; }
17682 if test $ac_cv_func_fseeko = yes; then
17683 # Check whether --enable-largefile or --disable-largefile was given.
17684 if test "${enable_largefile+set}" = set; then
17685 enableval="$enable_largefile"
17688 if test "$enable_largefile" != no; then
17690 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17691 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
17692 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17695 ac_cv_sys_largefile_CC=no
17696 if test "$GCC" != yes; then
17699 # IRIX 6.2 and later do not support large files by default,
17700 # so use the C compiler's -n32 option if that helps.
17701 cat >conftest.$ac_ext <<_ACEOF
17702 #line $LINENO "configure"
17703 #include "confdefs.h"
17704 #include <sys/types.h>
17705 /* Check that off_t can represent 2**63 - 1 correctly.
17706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17707 since some C++ compilers masquerading as C compilers
17708 incorrectly reject 9223372036854775807. */
17709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17711 && LARGE_OFF_T % 2147483647 == 1)
17713 #ifdef F77_DUMMY_MAIN
17714 # ifdef __cplusplus
17717 int F77_DUMMY_MAIN() { return 1; }
17727 rm -f conftest.$ac_objext
17728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17729 (eval $ac_compile) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } &&
17733 { ac_try='test -s conftest.$ac_objext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17741 echo "$as_me: failed program was:" >&5
17742 cat conftest.$ac_ext >&5
17744 rm -f conftest.$ac_objext
17746 rm -f conftest.$ac_objext
17747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17748 (eval $ac_compile) 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -s conftest.$ac_objext'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 ac_cv_sys_largefile_CC=' -n32'; break
17760 echo "$as_me: failed program was:" >&5
17761 cat conftest.$ac_ext >&5
17763 rm -f conftest.$ac_objext
17767 rm -f conftest.$ac_ext
17770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17771 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
17772 if test "$ac_cv_sys_largefile_CC" != no; then
17773 CC=$CC$ac_cv_sys_largefile_CC
17776 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17777 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17782 ac_cv_sys_file_offset_bits=no
17783 cat >conftest.$ac_ext <<_ACEOF
17784 #line $LINENO "configure"
17785 #include "confdefs.h"
17786 #include <sys/types.h>
17787 /* Check that off_t can represent 2**63 - 1 correctly.
17788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17789 since some C++ compilers masquerading as C compilers
17790 incorrectly reject 9223372036854775807. */
17791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17793 && LARGE_OFF_T % 2147483647 == 1)
17795 #ifdef F77_DUMMY_MAIN
17796 # ifdef __cplusplus
17799 int F77_DUMMY_MAIN() { return 1; }
17809 rm -f conftest.$ac_objext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17811 (eval $ac_compile) 2>&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -s conftest.$ac_objext'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17823 echo "$as_me: failed program was:" >&5
17824 cat conftest.$ac_ext >&5
17826 rm -f conftest.$ac_objext conftest.$ac_ext
17827 cat >conftest.$ac_ext <<_ACEOF
17828 #line $LINENO "configure"
17829 #include "confdefs.h"
17830 #define _FILE_OFFSET_BITS 64
17831 #include <sys/types.h>
17832 /* Check that off_t can represent 2**63 - 1 correctly.
17833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17834 since some C++ compilers masquerading as C compilers
17835 incorrectly reject 9223372036854775807. */
17836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17838 && LARGE_OFF_T % 2147483647 == 1)
17840 #ifdef F77_DUMMY_MAIN
17841 # ifdef __cplusplus
17844 int F77_DUMMY_MAIN() { return 1; }
17854 rm -f conftest.$ac_objext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17856 (eval $ac_compile) 2>&5
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
17860 { ac_try='test -s conftest.$ac_objext'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; }; then
17866 ac_cv_sys_file_offset_bits=64; break
17868 echo "$as_me: failed program was:" >&5
17869 cat conftest.$ac_ext >&5
17871 rm -f conftest.$ac_objext conftest.$ac_ext
17875 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17876 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17877 if test "$ac_cv_sys_file_offset_bits" != no; then
17879 cat >>confdefs.h <<_ACEOF
17880 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17885 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17886 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17887 if test "${ac_cv_sys_large_files+set}" = set; then
17888 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 ac_cv_sys_large_files=no
17892 cat >conftest.$ac_ext <<_ACEOF
17893 #line $LINENO "configure"
17894 #include "confdefs.h"
17895 #include <sys/types.h>
17896 /* Check that off_t can represent 2**63 - 1 correctly.
17897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17898 since some C++ compilers masquerading as C compilers
17899 incorrectly reject 9223372036854775807. */
17900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17902 && LARGE_OFF_T % 2147483647 == 1)
17904 #ifdef F77_DUMMY_MAIN
17905 # ifdef __cplusplus
17908 int F77_DUMMY_MAIN() { return 1; }
17918 rm -f conftest.$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920 (eval $ac_compile) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -s conftest.$ac_objext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17932 echo "$as_me: failed program was:" >&5
17933 cat conftest.$ac_ext >&5
17935 rm -f conftest.$ac_objext conftest.$ac_ext
17936 cat >conftest.$ac_ext <<_ACEOF
17937 #line $LINENO "configure"
17938 #include "confdefs.h"
17939 #define _LARGE_FILES 1
17940 #include <sys/types.h>
17941 /* Check that off_t can represent 2**63 - 1 correctly.
17942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17943 since some C++ compilers masquerading as C compilers
17944 incorrectly reject 9223372036854775807. */
17945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17947 && LARGE_OFF_T % 2147483647 == 1)
17949 #ifdef F77_DUMMY_MAIN
17950 # ifdef __cplusplus
17953 int F77_DUMMY_MAIN() { return 1; }
17963 rm -f conftest.$ac_objext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17965 (eval $ac_compile) 2>&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
17969 { ac_try='test -s conftest.$ac_objext'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; }; then
17975 ac_cv_sys_large_files=1; break
17977 echo "$as_me: failed program was:" >&5
17978 cat conftest.$ac_ext >&5
17980 rm -f conftest.$ac_objext conftest.$ac_ext
17984 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17985 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17986 if test "$ac_cv_sys_large_files" != no; then
17988 cat >>confdefs.h <<_ACEOF
17989 #define _LARGE_FILES $ac_cv_sys_large_files
17998 # SunOS doesn't handle negative byte comparisons properly with +/- return
17999 echo "$as_me:$LINENO: checking for working memcmp" >&5
18000 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
18001 if test "${ac_cv_func_memcmp_working+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18004 if test "$cross_compiling" = yes; then
18005 ac_cv_func_memcmp_working=no
18007 cat >conftest.$ac_ext <<_ACEOF
18008 #line $LINENO "configure"
18009 #include "confdefs.h"
18011 #ifdef F77_DUMMY_MAIN
18012 # ifdef __cplusplus
18015 int F77_DUMMY_MAIN() { return 1; }
18021 /* Some versions of memcmp are not 8-bit clean. */
18022 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
18023 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
18026 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
18027 or more and with at least one buffer not starting on a 4-byte boundary.
18028 William Lewis provided this test program. */
18033 for (i = 0; i < 4; i++)
18037 strcpy (a, "--------01111111");
18038 strcpy (b, "--------10000000");
18039 if (memcmp (a, b, 16) >= 0)
18049 rm -f conftest$ac_exeext
18050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18051 (eval $ac_link) 2>&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 ac_cv_func_memcmp_working=yes
18062 echo "$as_me: program exited with status $ac_status" >&5
18063 echo "$as_me: failed program was:" >&5
18064 cat conftest.$ac_ext >&5
18065 ( exit $ac_status )
18066 ac_cv_func_memcmp_working=no
18068 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18071 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
18072 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
18073 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18077 # Select semaphore implementation type.
18078 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
18080 cat >>confdefs.h <<\_ACEOF
18081 #define USE_NAMED_POSIX_SEMAPHORES 1
18084 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
18086 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
18088 cat >>confdefs.h <<\_ACEOF
18089 #define USE_UNNAMED_POSIX_SEMAPHORES 1
18092 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
18095 cat >>confdefs.h <<\_ACEOF
18096 #define USE_SYSV_SEMAPHORES 1
18099 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
18104 # Select shared-memory implementation type.
18106 cat >>confdefs.h <<\_ACEOF
18107 #define USE_SYSV_SHARED_MEMORY 1
18110 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
18113 if test "$enable_nls" = yes ; then
18115 echo "$as_me:$LINENO: checking for library containing gettext" >&5
18116 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
18117 if test "${ac_cv_search_gettext+set}" = set; then
18118 echo $ECHO_N "(cached) $ECHO_C" >&6
18120 ac_func_search_save_LIBS=$LIBS
18121 ac_cv_search_gettext=no
18122 cat >conftest.$ac_ext <<_ACEOF
18123 #line $LINENO "configure"
18124 #include "confdefs.h"
18126 /* Override any gcc2 internal prototype to avoid an error. */
18130 /* We use char because int might match the return type of a gcc2
18131 builtin and then its argument prototype would still apply. */
18133 #ifdef F77_DUMMY_MAIN
18134 # ifdef __cplusplus
18137 int F77_DUMMY_MAIN() { return 1; }
18147 rm -f conftest.$ac_objext conftest$ac_exeext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18149 (eval $ac_link) 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -s conftest$ac_exeext'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 ac_cv_search_gettext="none required"
18161 echo "$as_me: failed program was:" >&5
18162 cat conftest.$ac_ext >&5
18164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18165 if test "$ac_cv_search_gettext" = no; then
18166 for ac_lib in intl; do
18167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18168 cat >conftest.$ac_ext <<_ACEOF
18169 #line $LINENO "configure"
18170 #include "confdefs.h"
18172 /* Override any gcc2 internal prototype to avoid an error. */
18176 /* We use char because int might match the return type of a gcc2
18177 builtin and then its argument prototype would still apply. */
18179 #ifdef F77_DUMMY_MAIN
18180 # ifdef __cplusplus
18183 int F77_DUMMY_MAIN() { return 1; }
18193 rm -f conftest.$ac_objext conftest$ac_exeext
18194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18195 (eval $ac_link) 2>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); } &&
18199 { ac_try='test -s conftest$ac_exeext'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_cv_search_gettext="-l$ac_lib"
18208 echo "$as_me: failed program was:" >&5
18209 cat conftest.$ac_ext >&5
18211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18214 LIBS=$ac_func_search_save_LIBS
18216 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
18217 echo "${ECHO_T}$ac_cv_search_gettext" >&6
18218 if test "$ac_cv_search_gettext" != no; then
18219 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
18222 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
18223 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
18224 { (exit 1); exit 1; }; }
18227 if test "${ac_cv_header_libintl_h+set}" = set; then
18228 echo "$as_me:$LINENO: checking for libintl.h" >&5
18229 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
18230 if test "${ac_cv_header_libintl_h+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
18234 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
18236 # Is the header compilable?
18237 echo "$as_me:$LINENO: checking libintl.h usability" >&5
18238 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
18239 cat >conftest.$ac_ext <<_ACEOF
18240 #line $LINENO "configure"
18241 #include "confdefs.h"
18242 $ac_includes_default
18243 #include <libintl.h>
18245 rm -f conftest.$ac_objext
18246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247 (eval $ac_compile) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
18251 { ac_try='test -s conftest.$ac_objext'
18252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18253 (eval $ac_try) 2>&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); }; }; then
18257 ac_header_compiler=yes
18259 echo "$as_me: failed program was:" >&5
18260 cat conftest.$ac_ext >&5
18261 ac_header_compiler=no
18263 rm -f conftest.$ac_objext conftest.$ac_ext
18264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18265 echo "${ECHO_T}$ac_header_compiler" >&6
18267 # Is the header present?
18268 echo "$as_me:$LINENO: checking libintl.h presence" >&5
18269 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
18270 cat >conftest.$ac_ext <<_ACEOF
18271 #line $LINENO "configure"
18272 #include "confdefs.h"
18273 #include <libintl.h>
18275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18278 egrep -v '^ *\+' conftest.er1 >conftest.err
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } >/dev/null; then
18283 if test -s conftest.err; then
18284 ac_cpp_err=$ac_c_preproc_warn_flag
18291 if test -z "$ac_cpp_err"; then
18292 ac_header_preproc=yes
18294 echo "$as_me: failed program was:" >&5
18295 cat conftest.$ac_ext >&5
18296 ac_header_preproc=no
18298 rm -f conftest.err conftest.$ac_ext
18299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18300 echo "${ECHO_T}$ac_header_preproc" >&6
18302 # So? What about this header?
18303 case $ac_header_compiler:$ac_header_preproc in
18305 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18306 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18307 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
18308 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
18310 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
18311 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
18312 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
18313 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
18314 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
18315 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
18317 echo "$as_me:$LINENO: checking for libintl.h" >&5
18318 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
18319 if test "${ac_cv_header_libintl_h+set}" = set; then
18320 echo $ECHO_N "(cached) $ECHO_C" >&6
18322 ac_cv_header_libintl_h=$ac_header_preproc
18324 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
18325 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
18328 if test $ac_cv_header_libintl_h = yes; then
18331 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
18332 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
18333 { (exit 1); exit 1; }; }
18337 for ac_prog in msgfmt
18339 # Extract the first word of "$ac_prog", so it can be a program name with args.
18340 set dummy $ac_prog; ac_word=$2
18341 echo "$as_me:$LINENO: checking for $ac_word" >&5
18342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18343 if test "${ac_cv_prog_MSGFMT+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 if test -n "$MSGFMT"; then
18347 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
18349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18350 for as_dir in $PATH
18353 test -z "$as_dir" && as_dir=.
18354 for ac_exec_ext in '' $ac_executable_extensions; do
18355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18356 ac_cv_prog_MSGFMT="$ac_prog"
18357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18365 MSGFMT=$ac_cv_prog_MSGFMT
18366 if test -n "$MSGFMT"; then
18367 echo "$as_me:$LINENO: result: $MSGFMT" >&5
18368 echo "${ECHO_T}$MSGFMT" >&6
18370 echo "$as_me:$LINENO: result: no" >&5
18371 echo "${ECHO_T}no" >&6
18374 test -n "$MSGFMT" && break
18377 if test -z "$MSGFMT"; then
18378 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
18379 echo "$as_me: error: msgfmt is required for NLS" >&2;}
18380 { (exit 1); exit 1; }; }
18382 for ac_prog in msgmerge
18384 # Extract the first word of "$ac_prog", so it can be a program name with args.
18385 set dummy $ac_prog; ac_word=$2
18386 echo "$as_me:$LINENO: checking for $ac_word" >&5
18387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18388 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 if test -n "$MSGMERGE"; then
18392 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
18394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18395 for as_dir in $PATH
18398 test -z "$as_dir" && as_dir=.
18399 for ac_exec_ext in '' $ac_executable_extensions; do
18400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18401 ac_cv_prog_MSGMERGE="$ac_prog"
18402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18410 MSGMERGE=$ac_cv_prog_MSGMERGE
18411 if test -n "$MSGMERGE"; then
18412 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
18413 echo "${ECHO_T}$MSGMERGE" >&6
18415 echo "$as_me:$LINENO: result: no" >&5
18416 echo "${ECHO_T}no" >&6
18419 test -n "$MSGMERGE" && break
18422 for ac_prog in xgettext
18424 # Extract the first word of "$ac_prog", so it can be a program name with args.
18425 set dummy $ac_prog; ac_word=$2
18426 echo "$as_me:$LINENO: checking for $ac_word" >&5
18427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18428 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18431 if test -n "$XGETTEXT"; then
18432 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
18434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18435 for as_dir in $PATH
18438 test -z "$as_dir" && as_dir=.
18439 for ac_exec_ext in '' $ac_executable_extensions; do
18440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18441 ac_cv_prog_XGETTEXT="$ac_prog"
18442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18450 XGETTEXT=$ac_cv_prog_XGETTEXT
18451 if test -n "$XGETTEXT"; then
18452 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
18453 echo "${ECHO_T}$XGETTEXT" >&6
18455 echo "$as_me:$LINENO: result: no" >&5
18456 echo "${ECHO_T}no" >&6
18459 test -n "$XGETTEXT" && break
18463 # Note: share/locale is always the default, independent of $datadir
18464 localedir='${prefix}/share/locale'
18465 if test x"$prefix" = x"NONE"; then
18466 exp_localedir="$ac_default_prefix/share/locale"
18468 exp_localedir="$prefix/share/locale"
18473 cat >>confdefs.h <<_ACEOF
18474 #define LOCALEDIR "$exp_localedir"
18480 # Check for Tcl configuration script tclConfig.sh
18481 if test "$with_tcl" = yes; then
18482 for ac_prog in tclsh tcl
18484 # Extract the first word of "$ac_prog", so it can be a program name with args.
18485 set dummy $ac_prog; ac_word=$2
18486 echo "$as_me:$LINENO: checking for $ac_word" >&5
18487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18488 if test "${ac_cv_path_TCLSH+set}" = set; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18493 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
18496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497 for as_dir in $PATH
18500 test -z "$as_dir" && as_dir=.
18501 for ac_exec_ext in '' $ac_executable_extensions; do
18502 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18503 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
18504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18513 TCLSH=$ac_cv_path_TCLSH
18515 if test -n "$TCLSH"; then
18516 echo "$as_me:$LINENO: result: $TCLSH" >&5
18517 echo "${ECHO_T}$TCLSH" >&6
18519 echo "$as_me:$LINENO: result: no" >&5
18520 echo "${ECHO_T}no" >&6
18523 test -n "$TCLSH" && break
18526 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
18527 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
18528 # Let user override test
18529 if test -z "$TCL_CONFIG_SH"; then
18530 pgac_test_dirs="$with_tclconfig"
18532 set X $pgac_test_dirs; shift
18533 if test $# -eq 0; then
18534 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
18535 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
18536 { (exit 1); exit 1; }; }
18537 set X `echo 'puts $auto_path' | $TCLSH`; shift
18541 if test -r "$pgac_dir/tclConfig.sh"; then
18542 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
18548 if test -z "$TCL_CONFIG_SH"; then
18549 echo "$as_me:$LINENO: result: no" >&5
18550 echo "${ECHO_T}no" >&6
18551 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
18552 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
18553 { (exit 1); exit 1; }; }
18555 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
18556 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
18562 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
18563 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
18564 eval TCL_LIBS=\"$TCL_LIBS\"
18565 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
18566 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
18568 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18569 ac_save_CPPFLAGS=$CPPFLAGS
18570 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
18571 if test "${ac_cv_header_tcl_h+set}" = set; then
18572 echo "$as_me:$LINENO: checking for tcl.h" >&5
18573 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
18574 if test "${ac_cv_header_tcl_h+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
18578 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
18580 # Is the header compilable?
18581 echo "$as_me:$LINENO: checking tcl.h usability" >&5
18582 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6
18583 cat >conftest.$ac_ext <<_ACEOF
18584 #line $LINENO "configure"
18585 #include "confdefs.h"
18586 $ac_includes_default
18589 rm -f conftest.$ac_objext
18590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18591 (eval $ac_compile) 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -s conftest.$ac_objext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_header_compiler=yes
18603 echo "$as_me: failed program was:" >&5
18604 cat conftest.$ac_ext >&5
18605 ac_header_compiler=no
18607 rm -f conftest.$ac_objext conftest.$ac_ext
18608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18609 echo "${ECHO_T}$ac_header_compiler" >&6
18611 # Is the header present?
18612 echo "$as_me:$LINENO: checking tcl.h presence" >&5
18613 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6
18614 cat >conftest.$ac_ext <<_ACEOF
18615 #line $LINENO "configure"
18616 #include "confdefs.h"
18619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18622 egrep -v '^ *\+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } >/dev/null; then
18627 if test -s conftest.err; then
18628 ac_cpp_err=$ac_c_preproc_warn_flag
18635 if test -z "$ac_cpp_err"; then
18636 ac_header_preproc=yes
18638 echo "$as_me: failed program was:" >&5
18639 cat conftest.$ac_ext >&5
18640 ac_header_preproc=no
18642 rm -f conftest.err conftest.$ac_ext
18643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18644 echo "${ECHO_T}$ac_header_preproc" >&6
18646 # So? What about this header?
18647 case $ac_header_compiler:$ac_header_preproc in
18649 { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18650 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18651 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
18652 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;};;
18654 { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
18655 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
18656 { echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
18657 echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
18658 { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
18659 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;};;
18661 echo "$as_me:$LINENO: checking for tcl.h" >&5
18662 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6
18663 if test "${ac_cv_header_tcl_h+set}" = set; then
18664 echo $ECHO_N "(cached) $ECHO_C" >&6
18666 ac_cv_header_tcl_h=$ac_header_preproc
18668 echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
18669 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6
18672 if test $ac_cv_header_tcl_h = yes; then
18675 { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
18676 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
18677 { (exit 1); exit 1; }; }
18681 CPPFLAGS=$ac_save_CPPFLAGS
18685 # Check for DocBook and tools
18687 for ac_prog in onsgmls nsgmls
18689 # Extract the first word of "$ac_prog", so it can be a program name with args.
18690 set dummy $ac_prog; ac_word=$2
18691 echo "$as_me:$LINENO: checking for $ac_word" >&5
18692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18693 if test "${ac_cv_prog_NSGMLS+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 if test -n "$NSGMLS"; then
18697 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
18699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18700 for as_dir in $PATH
18703 test -z "$as_dir" && as_dir=.
18704 for ac_exec_ext in '' $ac_executable_extensions; do
18705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18706 ac_cv_prog_NSGMLS="$ac_prog"
18707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18715 NSGMLS=$ac_cv_prog_NSGMLS
18716 if test -n "$NSGMLS"; then
18717 echo "$as_me:$LINENO: result: $NSGMLS" >&5
18718 echo "${ECHO_T}$NSGMLS" >&6
18720 echo "$as_me:$LINENO: result: no" >&5
18721 echo "${ECHO_T}no" >&6
18724 test -n "$NSGMLS" && break
18727 for ac_prog in openjade jade
18729 # Extract the first word of "$ac_prog", so it can be a program name with args.
18730 set dummy $ac_prog; ac_word=$2
18731 echo "$as_me:$LINENO: checking for $ac_word" >&5
18732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18733 if test "${ac_cv_prog_JADE+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 if test -n "$JADE"; then
18737 ac_cv_prog_JADE="$JADE" # Let the user override the test.
18739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18740 for as_dir in $PATH
18743 test -z "$as_dir" && as_dir=.
18744 for ac_exec_ext in '' $ac_executable_extensions; do
18745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18746 ac_cv_prog_JADE="$ac_prog"
18747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18755 JADE=$ac_cv_prog_JADE
18756 if test -n "$JADE"; then
18757 echo "$as_me:$LINENO: result: $JADE" >&5
18758 echo "${ECHO_T}$JADE" >&6
18760 echo "$as_me:$LINENO: result: no" >&5
18761 echo "${ECHO_T}no" >&6
18764 test -n "$JADE" && break
18768 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
18769 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
18770 if test "${pgac_cv_check_docbook+set}" = set; then
18771 echo $ECHO_N "(cached) $ECHO_C" >&6
18773 cat >conftest.sgml <<EOF
18774 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
18776 <title>test</title>
18778 <title>random</title>
18780 <title>testsect</title>
18787 pgac_cv_check_docbook=no
18789 if test -n "$NSGMLS"; then
18790 $NSGMLS -s conftest.sgml 1>&5 2>&1
18791 if test $? -eq 0; then
18792 pgac_cv_check_docbook=yes
18795 rm -f conftest.sgml
18797 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
18798 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
18800 have_docbook=$pgac_cv_check_docbook
18803 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
18804 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
18805 if test "${pgac_cv_path_stylesheets+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 if test -n "$DOCBOOKSTYLE"; then
18809 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
18811 for pgac_prefix in /usr /usr/local /opt; do
18812 for pgac_infix in share lib; do
18813 for pgac_postfix in \
18814 sgml/stylesheets/nwalsh-modular \
18815 sgml/stylesheets/docbook \
18816 sgml/docbook-dsssl \
18817 sgml/docbook/dsssl/modular \
18818 sgml/docbook/stylesheet/dsssl/modular \
18819 sgml/docbook/dsssl-stylesheets
18821 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
18822 if test -r "$pgac_candidate/html/docbook.dsl" \
18823 && test -r "$pgac_candidate/print/docbook.dsl"
18825 pgac_cv_path_stylesheets=$pgac_candidate
18834 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
18836 if test -n "$DOCBOOKSTYLE"; then
18837 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
18838 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
18840 echo "$as_me:$LINENO: result: no" >&5
18841 echo "${ECHO_T}no" >&6
18843 if test -n "$DOCBOOKSTYLE"; then
18844 for ac_prog in collateindex.pl
18846 # Extract the first word of "$ac_prog", so it can be a program name with args.
18847 set dummy $ac_prog; ac_word=$2
18848 echo "$as_me:$LINENO: checking for $ac_word" >&5
18849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18850 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18853 case $COLLATEINDEX in
18855 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18859 for as_dir in $DOCBOOKSTYLE/bin $PATH
18862 test -z "$as_dir" && as_dir=.
18863 for ac_exec_ext in '' $ac_executable_extensions; do
18864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18865 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18875 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18877 if test -n "$COLLATEINDEX"; then
18878 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18879 echo "${ECHO_T}$COLLATEINDEX" >&6
18881 echo "$as_me:$LINENO: result: no" >&5
18882 echo "${ECHO_T}no" >&6
18885 test -n "$COLLATEINDEX" && break
18889 for ac_prog in collateindex.pl
18891 # Extract the first word of "$ac_prog", so it can be a program name with args.
18892 set dummy $ac_prog; ac_word=$2
18893 echo "$as_me:$LINENO: checking for $ac_word" >&5
18894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18895 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18898 case $COLLATEINDEX in
18900 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
18903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18904 for as_dir in $PATH
18907 test -z "$as_dir" && as_dir=.
18908 for ac_exec_ext in '' $ac_executable_extensions; do
18909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18910 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
18911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18920 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
18922 if test -n "$COLLATEINDEX"; then
18923 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
18924 echo "${ECHO_T}$COLLATEINDEX" >&6
18926 echo "$as_me:$LINENO: result: no" >&5
18927 echo "${ECHO_T}no" >&6
18930 test -n "$COLLATEINDEX" && break
18934 for ac_prog in sgmlspl
18936 # Extract the first word of "$ac_prog", so it can be a program name with args.
18937 set dummy $ac_prog; ac_word=$2
18938 echo "$as_me:$LINENO: checking for $ac_word" >&5
18939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18940 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 if test -n "$SGMLSPL"; then
18944 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
18946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18947 for as_dir in $PATH
18950 test -z "$as_dir" && as_dir=.
18951 for ac_exec_ext in '' $ac_executable_extensions; do
18952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18953 ac_cv_prog_SGMLSPL="$ac_prog"
18954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18962 SGMLSPL=$ac_cv_prog_SGMLSPL
18963 if test -n "$SGMLSPL"; then
18964 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
18965 echo "${ECHO_T}$SGMLSPL" >&6
18967 echo "$as_me:$LINENO: result: no" >&5
18968 echo "${ECHO_T}no" >&6
18971 test -n "$SGMLSPL" && break
18977 # We have to run the thread test near the end so we have all our symbols
18978 # defined. Cross compiling throws a warning.
18980 if test "$enable_thread_safety_force" = yes; then
18981 { echo "$as_me:$LINENO: WARNING:
18982 *** Skipping thread test program. --enable-thread-safety-force was used.
18983 *** Run the program in src/tools/thread on the your machine and add
18984 proper locking function calls to your applications to guarantee thread
18987 echo "$as_me: WARNING:
18988 *** Skipping thread test program. --enable-thread-safety-force was used.
18989 *** Run the program in src/tools/thread on the your machine and add
18990 proper locking function calls to your applications to guarantee thread
18993 elif test "$enable_thread_safety" = yes; then
18994 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
18995 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
18999 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
19000 LIBS="$LIBS $PTHREAD_LIBS"
19001 if test "$cross_compiling" = yes; then
19002 echo "$as_me:$LINENO: result: maybe" >&5
19003 echo "${ECHO_T}maybe" >&6
19004 { echo "$as_me:$LINENO: WARNING:
19005 *** Skipping thread test program because of cross-compile build.
19006 *** Run the program in src/tools/thread on the target machine.
19008 echo "$as_me: WARNING:
19009 *** Skipping thread test program because of cross-compile build.
19010 *** Run the program in src/tools/thread on the target machine.
19013 cat >conftest.$ac_ext <<_ACEOF
19014 #line $LINENO "configure"
19015 #include "confdefs.h"
19016 #include "$srcdir/src/tools/thread/thread_test.c"
19018 rm -f conftest$ac_exeext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19020 (eval $ac_link) 2>&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; }; then
19029 echo "$as_me:$LINENO: result: yes" >&5
19030 echo "${ECHO_T}yes" >&6
19032 echo "$as_me: program exited with status $ac_status" >&5
19033 echo "$as_me: failed program was:" >&5
19034 cat conftest.$ac_ext >&5
19035 ( exit $ac_status )
19036 echo "$as_me:$LINENO: result: no" >&5
19037 echo "${ECHO_T}no" >&6
19038 { { echo "$as_me:$LINENO: error:
19039 *** Thread test program failed. Your platform is not thread-safe.
19040 *** Check the file 'config.log'for the exact reason.
19042 *** You can use the configure option --enable-thread-safety-force
19043 *** to force threads to be enabled. However, you must then run
19044 *** the program in src/tools/thread and add locking function calls
19045 *** to your applications to guarantee thread safety.
19047 echo "$as_me: error:
19048 *** Thread test program failed. Your platform is not thread-safe.
19049 *** Check the file 'config.log'for the exact reason.
19051 *** You can use the configure option --enable-thread-safety-force
19052 *** to force threads to be enabled. However, you must then run
19053 *** the program in src/tools/thread and add locking function calls
19054 *** to your applications to guarantee thread safety.
19056 { (exit 1); exit 1; }; }
19058 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19064 # prepare build tree if outside source tree
19065 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19066 # Note 2: /bin/pwd might be better than shell's built-in at getting
19067 # a symlink-free name.
19068 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19072 if test "$no_create" != yes; then
19073 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
19074 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
19075 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19076 || { { echo "$as_me:$LINENO: error: failed" >&5
19077 echo "$as_me: error: failed" >&2;}
19078 { (exit 1); exit 1; }; }
19079 echo "$as_me:$LINENO: result: done" >&5
19080 echo "${ECHO_T}done" >&6
19086 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
19089 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
19092 if test "$PORTNAME" = "win32"; then
19093 ac_config_commands="$ac_config_commands check_win32_symlinks"
19097 ac_config_headers="$ac_config_headers src/include/pg_config.h"
19100 cat >confcache <<\_ACEOF
19101 # This file is a shell script that caches the results of configure
19102 # tests run on this system so they can be shared between configure
19103 # scripts and configure runs, see configure's option --config-cache.
19104 # It is not useful on other systems. If it contains results you don't
19105 # want to keep, you may remove or edit it.
19107 # config.status only pays attention to the cache file if you give it
19108 # the --recheck option to rerun configure.
19110 # `ac_cv_env_foo' variables (set or unset) will be overriden when
19111 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19112 # following values.
19116 # The following way of writing the cache mishandles newlines in values,
19117 # but we know of no workaround that is simple, portable, and efficient.
19118 # So, don't put newlines in cache variables' values.
19119 # Ultrix sh set writes to stderr and can't be redirected directly,
19120 # and sets the high bit in the cache file unless we assign to the vars.
19123 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19125 # `set' does not quote correctly, so add quotes (double-quote
19126 # substitution turns \\\\ into \\, and sed turns \\ into \).
19129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19132 # `set' quotes correctly as required by POSIX, so do not add quotes.
19134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19141 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19143 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19145 if cmp -s $cache_file confcache; then :; else
19146 if test -w $cache_file; then
19147 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19148 cat confcache >$cache_file
19150 echo "not updating unwritable cache $cache_file"
19155 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19156 # Let make expand exec_prefix.
19157 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19159 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19160 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19161 # trailing colons and then remove the whole line if VPATH becomes empty
19162 # (actually we leave an empty line to preserve line numbers).
19163 if test "x$srcdir" = x.; then
19164 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19165 s/:*\$(srcdir):*/:/;
19166 s/:*\${srcdir}:*/:/;
19168 s/^\([^=]*=[ ]*\):*/\1/;
19174 DEFS=-DHAVE_CONFIG_H
19177 : ${CONFIG_STATUS=./config.status}
19178 ac_clean_files_save=$ac_clean_files
19179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19180 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19181 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19182 cat >$CONFIG_STATUS <<_ACEOF
19184 # Generated by $as_me.
19185 # Run this file to recreate the current configuration.
19186 # Compiler output produced by configure, useful for debugging
19187 # configure, is in config.log if it exists.
19190 SHELL=\${CONFIG_SHELL-$SHELL}
19193 cat >>$CONFIG_STATUS <<\_ACEOF
19195 ## --------------------- ##
19196 ## M4sh Initialization. ##
19197 ## --------------------- ##
19199 # Be Bourne compatible
19200 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19203 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19208 # Support unset when possible.
19209 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19215 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
19216 { $as_unset LANG || test "${LANG+set}" != set; } ||
19217 { LANG=C; export LANG; }
19218 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
19219 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
19220 { LC_ALL=C; export LC_ALL; }
19221 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
19222 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
19223 { LC_TIME=C; export LC_TIME; }
19224 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
19225 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
19226 { LC_CTYPE=C; export LC_CTYPE; }
19227 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
19228 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
19229 { LANGUAGE=C; export LANGUAGE; }
19230 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
19231 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
19232 { LC_COLLATE=C; export LC_COLLATE; }
19233 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
19234 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
19235 { LC_NUMERIC=C; export LC_NUMERIC; }
19236 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
19237 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
19238 { LC_MESSAGES=C; export LC_MESSAGES; }
19241 # Name of the executable.
19242 as_me=`(basename "$0") 2>/dev/null ||
19243 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19244 X"$0" : 'X\(//\)$' \| \
19245 X"$0" : 'X\(/\)$' \| \
19246 . : '\(.\)' 2>/dev/null ||
19248 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19249 /^X\/\(\/\/\)$/{ s//\1/; q; }
19250 /^X\/\(\/\).*/{ s//\1/; q; }
19253 # PATH needs CR, and LINENO needs CR and PATH.
19254 # Avoid depending upon Character Ranges.
19255 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19256 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19257 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19258 as_cr_digits='0123456789'
19259 as_cr_alnum=$as_cr_Letters$as_cr_digits
19261 # The user is always right.
19262 if test "${PATH_SEPARATOR+set}" != set; then
19263 echo "#! /bin/sh" >conftest.sh
19264 echo "exit 0" >>conftest.sh
19265 chmod +x conftest.sh
19266 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
19275 as_lineno_1=$LINENO
19276 as_lineno_2=$LINENO
19277 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19278 test "x$as_lineno_1" != "x$as_lineno_2" &&
19279 test "x$as_lineno_3" = "x$as_lineno_2" || {
19280 # Find who we are. Look in the path if we contain no path at all
19283 *[\\/]* ) as_myself=$0 ;;
19284 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19285 for as_dir in $PATH
19288 test -z "$as_dir" && as_dir=.
19289 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19294 # We did not find ourselves, most probably we were run as `sh COMMAND'
19295 # in which case we are not to be found in the path.
19296 if test "x$as_myself" = x; then
19299 if test ! -f "$as_myself"; then
19300 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19301 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19302 { (exit 1); exit 1; }; }
19304 case $CONFIG_SHELL in
19306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19307 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19310 test -z "$as_dir" && as_dir=.
19311 for as_base in sh bash ksh sh5; do
19314 if ("$as_dir/$as_base" -c '
19315 as_lineno_1=$LINENO
19316 as_lineno_2=$LINENO
19317 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19318 test "x$as_lineno_1" != "x$as_lineno_2" &&
19319 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19320 CONFIG_SHELL=$as_dir/$as_base
19321 export CONFIG_SHELL
19322 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19330 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19331 # uniformly replaced by the line number. The first 'sed' inserts a
19332 # line-number line before each line; the second 'sed' does the real
19333 # work. The second script uses 'N' to pair each line-number line
19334 # with the numbered line, and appends trailing '-' during
19335 # substitution so that $LINENO is not a special case at line end.
19336 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19337 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19338 sed '=' <$as_myself |
19343 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19346 s,^['$as_cr_digits']*\n,,
19347 ' >$as_me.lineno &&
19348 chmod +x $as_me.lineno ||
19349 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19350 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19351 { (exit 1); exit 1; }; }
19353 # Don't try to exec as it changes $[0], causing all sort of problems
19354 # (the dirname of $[0] is not the place where we might find the
19355 # original and so on. Autoconf is especially sensible to this).
19357 # Exit status is that of the last command.
19362 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19363 *c*,-n*) ECHO_N= ECHO_C='
19365 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19366 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19369 if expr a : '\(a\)' >/dev/null 2>&1; then
19375 rm -f conf$$ conf$$.exe conf$$.file
19377 if ln -s conf$$.file conf$$ 2>/dev/null; then
19378 # We could just check for DJGPP; but this test a) works b) is more generic
19379 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19380 if test -f conf$$.exe; then
19381 # Don't use ln at all; we don't have any links
19386 elif ln conf$$.file conf$$ 2>/dev/null; then
19391 rm -f conf$$ conf$$.exe conf$$.file
19393 as_executable_p="test -f"
19395 # Sed expression to map a string onto a valid CPP name.
19396 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19398 # Sed expression to map a string onto a valid variable name.
19399 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19403 # We need space, tab and new line, in precisely that order.
19409 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
19413 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19414 # report actual input values of CONFIG_FILES etc. instead of their
19415 # values after options handling. Logging --version etc. is OK.
19419 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19420 ## Running $as_me. ##
19425 This file was extended by PostgreSQL $as_me 8.1devel, which was
19426 generated by GNU Autoconf 2.53. Invocation command line was
19428 CONFIG_FILES = $CONFIG_FILES
19429 CONFIG_HEADERS = $CONFIG_HEADERS
19430 CONFIG_LINKS = $CONFIG_LINKS
19431 CONFIG_COMMANDS = $CONFIG_COMMANDS
19435 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19439 # Files that config.status was made for.
19440 if test -n "$ac_config_files"; then
19441 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19444 if test -n "$ac_config_headers"; then
19445 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19448 if test -n "$ac_config_links"; then
19449 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19452 if test -n "$ac_config_commands"; then
19453 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19456 cat >>$CONFIG_STATUS <<\_ACEOF
19459 \`$as_me' instantiates files from templates according to the
19460 current configuration.
19462 Usage: $0 [OPTIONS] [FILE]...
19464 -h, --help print this help, then exit
19465 -V, --version print version number, then exit
19466 -d, --debug don't remove temporary files
19467 --recheck update $as_me by reconfiguring in the same conditions
19468 --file=FILE[:TEMPLATE]
19469 instantiate the configuration file FILE
19470 --header=FILE[:TEMPLATE]
19471 instantiate the configuration header FILE
19473 Configuration files:
19476 Configuration headers:
19479 Configuration links:
19482 Configuration commands:
19485 Report bugs to <bug-autoconf@gnu.org>."
19488 cat >>$CONFIG_STATUS <<_ACEOF
19490 PostgreSQL config.status 8.1devel
19491 configured by $0, generated by GNU Autoconf 2.53,
19492 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19494 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19495 Free Software Foundation, Inc.
19496 This config.status script is free software; the Free Software Foundation
19497 gives unlimited permission to copy, distribute and modify it."
19501 cat >>$CONFIG_STATUS <<\_ACEOF
19502 # If no file are specified by the user, then we need to provide default
19503 # value. By we need to know if files were specified by the user.
19509 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19510 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19512 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19516 *) # This is not an option, so the user has probably given explicit
19518 ac_need_defaults=false;;
19522 # Handling of the options.
19524 cat >>$CONFIG_STATUS <<_ACEOF
19525 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19526 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19527 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19529 cat >>$CONFIG_STATUS <<\_ACEOF
19530 --version | --vers* | -V )
19531 echo "$ac_cs_version"; exit 0 ;;
19533 # Conflict between --help and --header
19534 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19535 Try \`$0 --help' for more information." >&5
19536 echo "$as_me: error: ambiguous option: $1
19537 Try \`$0 --help' for more information." >&2;}
19538 { (exit 1); exit 1; }; };;
19539 --help | --hel | -h )
19540 echo "$ac_cs_usage"; exit 0 ;;
19541 --debug | --d* | -d )
19543 --file | --fil | --fi | --f )
19545 CONFIG_FILES="$CONFIG_FILES $1"
19546 ac_need_defaults=false;;
19547 --header | --heade | --head | --hea )
19549 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19550 ac_need_defaults=false;;
19552 # This is an error.
19553 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19554 Try \`$0 --help' for more information." >&5
19555 echo "$as_me: error: unrecognized option: $1
19556 Try \`$0 --help' for more information." >&2;}
19557 { (exit 1); exit 1; }; } ;;
19559 *) ac_config_targets="$ac_config_targets $1" ;;
19571 cat >>$CONFIG_STATUS <<\_ACEOF
19572 for ac_config_target in $ac_config_targets
19574 case "$ac_config_target" in
19575 # Handling of arguments.
19576 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
19577 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
19578 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
19579 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
19580 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
19581 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
19582 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
19583 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
19584 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
19585 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
19586 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
19587 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19588 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19589 { (exit 1); exit 1; }; };;
19593 # If the user did not use the arguments to specify the items to instantiate,
19594 # then the envvar interface is used. Set only those that are not.
19595 # We use the long form for the default assignment because of an extremely
19596 # bizarre bug on SunOS 4.1.3.
19597 if $ac_need_defaults; then
19598 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19599 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19600 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19601 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19604 # Create a temporary directory, and hook for its removal unless debugging.
19607 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19608 trap '{ (exit 1); exit 1; }' 1 2 13 15
19611 # Create a (secure) tmp directory for tmp files.
19614 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19615 test -n "$tmp" && test -d "$tmp"
19618 tmp=$TMPDIR/cs$$-$RANDOM
19619 (umask 077 && mkdir $tmp)
19622 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19623 { (exit 1); exit 1; }
19628 cat >>$CONFIG_STATUS <<_ACEOF
19631 # CONFIG_FILES section.
19634 # No need to generate the scripts if there are no CONFIG_FILES.
19635 # This happens for instance when ./config.status config.h
19636 if test -n "\$CONFIG_FILES"; then
19637 # Protect against being on the right side of a sed subst in config.status.
19638 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19639 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19640 s,@SHELL@,$SHELL,;t t
19641 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19642 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19643 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19644 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19645 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19646 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19647 s,@exec_prefix@,$exec_prefix,;t t
19648 s,@prefix@,$prefix,;t t
19649 s,@program_transform_name@,$program_transform_name,;t t
19650 s,@bindir@,$bindir,;t t
19651 s,@sbindir@,$sbindir,;t t
19652 s,@libexecdir@,$libexecdir,;t t
19653 s,@datadir@,$datadir,;t t
19654 s,@sysconfdir@,$sysconfdir,;t t
19655 s,@sharedstatedir@,$sharedstatedir,;t t
19656 s,@localstatedir@,$localstatedir,;t t
19657 s,@libdir@,$libdir,;t t
19658 s,@includedir@,$includedir,;t t
19659 s,@oldincludedir@,$oldincludedir,;t t
19660 s,@infodir@,$infodir,;t t
19661 s,@mandir@,$mandir,;t t
19662 s,@build_alias@,$build_alias,;t t
19663 s,@host_alias@,$host_alias,;t t
19664 s,@target_alias@,$target_alias,;t t
19665 s,@DEFS@,$DEFS,;t t
19666 s,@ECHO_C@,$ECHO_C,;t t
19667 s,@ECHO_N@,$ECHO_N,;t t
19668 s,@ECHO_T@,$ECHO_T,;t t
19669 s,@LIBS@,$LIBS,;t t
19670 s,@configure_args@,$configure_args,;t t
19671 s,@build@,$build,;t t
19672 s,@build_cpu@,$build_cpu,;t t
19673 s,@build_vendor@,$build_vendor,;t t
19674 s,@build_os@,$build_os,;t t
19675 s,@host@,$host,;t t
19676 s,@host_cpu@,$host_cpu,;t t
19677 s,@host_vendor@,$host_vendor,;t t
19678 s,@host_os@,$host_os,;t t
19679 s,@PORTNAME@,$PORTNAME,;t t
19680 s,@docdir@,$docdir,;t t
19681 s,@enable_nls@,$enable_nls,;t t
19682 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
19683 s,@default_port@,$default_port,;t t
19684 s,@enable_shared@,$enable_shared,;t t
19685 s,@enable_rpath@,$enable_rpath,;t t
19686 s,@enable_debug@,$enable_debug,;t t
19688 s,@CFLAGS@,$CFLAGS,;t t
19689 s,@LDFLAGS@,$LDFLAGS,;t t
19690 s,@CPPFLAGS@,$CPPFLAGS,;t t
19691 s,@ac_ct_CC@,$ac_ct_CC,;t t
19692 s,@EXEEXT@,$EXEEXT,;t t
19693 s,@OBJEXT@,$OBJEXT,;t t
19697 s,@autodepend@,$autodepend,;t t
19698 s,@INCLUDES@,$INCLUDES,;t t
19699 s,@enable_thread_safety@,$enable_thread_safety,;t t
19700 s,@with_tcl@,$with_tcl,;t t
19701 s,@with_perl@,$with_perl,;t t
19702 s,@with_python@,$with_python,;t t
19703 s,@with_krb4@,$with_krb4,;t t
19704 s,@with_krb5@,$with_krb5,;t t
19705 s,@krb_srvtab@,$krb_srvtab,;t t
19706 s,@with_pam@,$with_pam,;t t
19707 s,@with_rendezvous@,$with_rendezvous,;t t
19708 s,@with_openssl@,$with_openssl,;t t
19709 s,@ELF_SYS@,$ELF_SYS,;t t
19710 s,@LDFLAGS_SL@,$LDFLAGS_SL,;t t
19712 s,@FLEX@,$FLEX,;t t
19713 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
19714 s,@LN_S@,$LN_S,;t t
19716 s,@with_gnu_ld@,$with_gnu_ld,;t t
19717 s,@ld_R_works@,$ld_R_works,;t t
19718 s,@RANLIB@,$RANLIB,;t t
19719 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19720 s,@LORDER@,$LORDER,;t t
19722 s,@STRIP@,$STRIP,;t t
19723 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19724 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
19725 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
19726 s,@YACC@,$YACC,;t t
19727 s,@YFLAGS@,$YFLAGS,;t t
19728 s,@PERL@,$PERL,;t t
19729 s,@perl_archlibexp@,$perl_archlibexp,;t t
19730 s,@perl_privlibexp@,$perl_privlibexp,;t t
19731 s,@perl_useshrplib@,$perl_useshrplib,;t t
19732 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
19733 s,@PYTHON@,$PYTHON,;t t
19734 s,@python_version@,$python_version,;t t
19735 s,@python_configdir@,$python_configdir,;t t
19736 s,@python_includespec@,$python_includespec,;t t
19737 s,@python_libdir@,$python_libdir,;t t
19738 s,@python_libspec@,$python_libspec,;t t
19739 s,@python_additional_libs@,$python_additional_libs,;t t
19740 s,@LIBOBJS@,$LIBOBJS,;t t
19741 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
19742 s,@acx_pthread_config@,$acx_pthread_config,;t t
19743 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
19744 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
19745 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
19746 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
19747 s,@MSGFMT@,$MSGFMT,;t t
19748 s,@MSGMERGE@,$MSGMERGE,;t t
19749 s,@XGETTEXT@,$XGETTEXT,;t t
19750 s,@localedir@,$localedir,;t t
19751 s,@TCLSH@,$TCLSH,;t t
19752 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
19753 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
19754 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
19755 s,@TCL_LIBS@,$TCL_LIBS,;t t
19756 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
19757 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
19758 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
19759 s,@NSGMLS@,$NSGMLS,;t t
19760 s,@JADE@,$JADE,;t t
19761 s,@have_docbook@,$have_docbook,;t t
19762 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
19763 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
19764 s,@SGMLSPL@,$SGMLSPL,;t t
19765 s,@vpath_build@,$vpath_build,;t t
19770 cat >>$CONFIG_STATUS <<\_ACEOF
19771 # Split the substitutions into bite-sized pieces for seds with
19772 # small command number limits, like on Digital OSF/1 and HP-UX.
19773 ac_max_sed_lines=48
19774 ac_sed_frag=1 # Number of current file.
19775 ac_beg=1 # First line for current file.
19776 ac_end=$ac_max_sed_lines # Line after last line for current file.
19779 while $ac_more_lines; do
19780 if test $ac_beg -gt 1; then
19781 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19783 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19785 if test ! -s $tmp/subs.frag; then
19786 ac_more_lines=false
19788 # The purpose of the label and of the branching condition is to
19789 # speed up the sed processing (if there are no `@' at all, there
19790 # is no need to browse any of the substitutions).
19791 # These are the two extra sed commands mentioned above.
19793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19794 if test -z "$ac_sed_cmds"; then
19795 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19797 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19799 ac_sed_frag=`expr $ac_sed_frag + 1`
19801 ac_end=`expr $ac_end + $ac_max_sed_lines`
19804 if test -z "$ac_sed_cmds"; then
19807 fi # test -n "$CONFIG_FILES"
19810 cat >>$CONFIG_STATUS <<\_ACEOF
19811 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19814 - | *:- | *:-:* ) # input from stdin
19816 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19817 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19818 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19819 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19820 * ) ac_file_in=$ac_file.in ;;
19823 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19824 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19826 X"$ac_file" : 'X\(//\)[^/]' \| \
19827 X"$ac_file" : 'X\(//\)$' \| \
19828 X"$ac_file" : 'X\(/\)' \| \
19829 . : '\(.\)' 2>/dev/null ||
19831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19833 /^X\(\/\/\)$/{ s//\1/; q; }
19834 /^X\(\/\).*/{ s//\1/; q; }
19836 { case "$ac_dir" in
19837 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19841 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19842 case $as_mkdir_dir in
19843 # Skip DOS drivespec
19844 ?:) as_incr_dir=$as_mkdir_dir ;;
19846 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19847 test -d "$as_incr_dir" ||
19848 mkdir "$as_incr_dir" ||
19849 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19850 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19851 { (exit 1); exit 1; }; }
19858 if test "$ac_dir" != .; then
19859 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19860 # A "../" for each directory in $ac_dir_suffix.
19861 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19863 ac_dir_suffix= ac_top_builddir=
19867 .) # No --srcdir option. We are building in place.
19869 if test -z "$ac_top_builddir"; then
19872 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19874 [\\/]* | ?:[\\/]* ) # Absolute path.
19875 ac_srcdir=$srcdir$ac_dir_suffix;
19876 ac_top_srcdir=$srcdir ;;
19877 *) # Relative path.
19878 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19879 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19881 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19883 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19884 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19885 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19886 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19890 if test x"$ac_file" != x-; then
19891 { echo "$as_me:$LINENO: creating $ac_file" >&5
19892 echo "$as_me: creating $ac_file" >&6;}
19895 # Let's still pretend it is `configure' which instantiates (i.e., don't
19896 # use $as_me), people would be surprised to read:
19897 # /* config.h. Generated by config.status. */
19898 if test x"$ac_file" = x-; then
19901 configure_input="$ac_file. "
19903 configure_input=$configure_input"Generated from `echo $ac_file_in |
19904 sed 's,.*/,,'` by configure."
19906 # First look for the input files in the build tree, otherwise in the
19908 ac_file_inputs=`IFS=:
19909 for f in $ac_file_in; do
19911 -) echo $tmp/stdin ;;
19913 # Absolute (can't be DOS-style, as IFS=:)
19914 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19915 echo "$as_me: error: cannot find input file: $f" >&2;}
19916 { (exit 1); exit 1; }; }
19919 if test -f "$f"; then
19922 elif test -f "$srcdir/$f"; then
19927 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19928 echo "$as_me: error: cannot find input file: $f" >&2;}
19929 { (exit 1); exit 1; }; }
19932 done` || { (exit 1); exit 1; }
19934 cat >>$CONFIG_STATUS <<_ACEOF
19938 cat >>$CONFIG_STATUS <<\_ACEOF
19940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19941 s,@configure_input@,$configure_input,;t t
19942 s,@srcdir@,$ac_srcdir,;t t
19943 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19944 s,@top_srcdir@,$ac_top_srcdir,;t t
19945 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19946 s,@builddir@,$ac_builddir,;t t
19947 s,@abs_builddir@,$ac_abs_builddir,;t t
19948 s,@top_builddir@,$ac_top_builddir,;t t
19949 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19950 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19952 if test x"$ac_file" != x-; then
19953 mv $tmp/out $ac_file
19961 cat >>$CONFIG_STATUS <<\_ACEOF
19964 # CONFIG_HEADER section.
19967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19970 # ac_d sets the value in "#define NAME VALUE" lines.
19971 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19972 ac_dB='[ ].*$,\1#\2'
19975 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19976 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19977 ac_uB='$,\1#\2define\3'
19981 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19984 - | *:- | *:-:* ) # input from stdin
19986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19990 * ) ac_file_in=$ac_file.in ;;
19993 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19994 echo "$as_me: creating $ac_file" >&6;}
19996 # First look for the input files in the build tree, otherwise in the
19998 ac_file_inputs=`IFS=:
19999 for f in $ac_file_in; do
20001 -) echo $tmp/stdin ;;
20003 # Absolute (can't be DOS-style, as IFS=:)
20004 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20005 echo "$as_me: error: cannot find input file: $f" >&2;}
20006 { (exit 1); exit 1; }; }
20009 if test -f "$f"; then
20012 elif test -f "$srcdir/$f"; then
20017 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20018 echo "$as_me: error: cannot find input file: $f" >&2;}
20019 { (exit 1); exit 1; }; }
20022 done` || { (exit 1); exit 1; }
20023 # Remove the trailing spaces.
20024 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20028 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20029 # `conftest.undefs', that substitutes the proper values into
20030 # config.h.in to produce config.h. The first handles `#define'
20031 # templates, and the second `#undef' templates.
20032 # And first: Protect against being on the right side of a sed subst in
20033 # config.status. Protect against being in an unquoted here document
20034 # in config.status.
20035 rm -f conftest.defines conftest.undefs
20036 # Using a here document instead of a string reduces the quoting nightmare.
20037 # Putting comments in sed scripts is not portable.
20039 # `end' is used to avoid that the second main sed command (meant for
20040 # 0-ary CPP macros) applies to n-ary macro definitions.
20041 # See the Autoconf documentation for `clear'.
20042 cat >confdef2sed.sed <<\_ACEOF
20047 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20049 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20052 # If some macros were called several times there might be several times
20053 # the same #defines, which is useless. Nevertheless, we may not want to
20054 # sort them, since we want the *last* AC-DEFINE to be honored.
20055 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20056 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20057 rm -f confdef2sed.sed
20059 # This sed command replaces #undef with comments. This is necessary, for
20060 # example, in the case of _POSIX_SOURCE, which is predefined and required
20061 # on some systems where configure will not decide to define it.
20062 cat >>conftest.undefs <<\_ACEOF
20063 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20066 # Break up conftest.defines because some shells have a limit on the size
20067 # of here documents, and old seds have small limits too (100 cmds).
20068 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20069 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20070 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20071 echo ' :' >>$CONFIG_STATUS
20072 rm -f conftest.tail
20073 while grep . conftest.defines >/dev/null
20075 # Write a limited-size here document to $tmp/defines.sed.
20076 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20077 # Speed up: don't consider the non `#define' lines.
20078 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20079 # Work around the forget-to-reset-the-flag bug.
20080 echo 't clr' >>$CONFIG_STATUS
20081 echo ': clr' >>$CONFIG_STATUS
20082 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20084 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20086 mv $tmp/out $tmp/in
20088 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20089 rm -f conftest.defines
20090 mv conftest.tail conftest.defines
20092 rm -f conftest.defines
20093 echo ' fi # egrep' >>$CONFIG_STATUS
20094 echo >>$CONFIG_STATUS
20096 # Break up conftest.undefs because some shells have a limit on the size
20097 # of here documents, and old seds have small limits too (100 cmds).
20098 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20099 rm -f conftest.tail
20100 while grep . conftest.undefs >/dev/null
20102 # Write a limited-size here document to $tmp/undefs.sed.
20103 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20104 # Speed up: don't consider the non `#undef'
20105 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20106 # Work around the forget-to-reset-the-flag bug.
20107 echo 't clr' >>$CONFIG_STATUS
20108 echo ': clr' >>$CONFIG_STATUS
20109 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20111 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20113 mv $tmp/out $tmp/in
20115 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20116 rm -f conftest.undefs
20117 mv conftest.tail conftest.undefs
20119 rm -f conftest.undefs
20121 cat >>$CONFIG_STATUS <<\_ACEOF
20122 # Let's still pretend it is `configure' which instantiates (i.e., don't
20123 # use $as_me), people would be surprised to read:
20124 # /* config.h. Generated by config.status. */
20125 if test x"$ac_file" = x-; then
20126 echo "/* Generated by configure. */" >$tmp/config.h
20128 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20130 cat $tmp/in >>$tmp/config.h
20132 if test x"$ac_file" != x-; then
20133 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
20134 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20135 echo "$as_me: $ac_file is unchanged" >&6;}
20137 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20139 X"$ac_file" : 'X\(//\)[^/]' \| \
20140 X"$ac_file" : 'X\(//\)$' \| \
20141 X"$ac_file" : 'X\(/\)' \| \
20142 . : '\(.\)' 2>/dev/null ||
20144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20146 /^X\(\/\/\)$/{ s//\1/; q; }
20147 /^X\(\/\).*/{ s//\1/; q; }
20149 { case "$ac_dir" in
20150 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20154 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20155 case $as_mkdir_dir in
20156 # Skip DOS drivespec
20157 ?:) as_incr_dir=$as_mkdir_dir ;;
20159 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20160 test -d "$as_incr_dir" ||
20161 mkdir "$as_incr_dir" ||
20162 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
20163 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
20164 { (exit 1); exit 1; }; }
20170 mv $tmp/config.h $ac_file
20174 rm -f $tmp/config.h
20176 # Run the commands associated with the file.
20178 src/include/pg_config.h )
20179 # Update timestamp for pg_config.h (see Makefile.global)
20180 echo >src/include/stamp-h
20185 cat >>$CONFIG_STATUS <<\_ACEOF
20188 # CONFIG_LINKS section.
20191 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
20192 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20193 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20195 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
20196 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
20198 if test ! -r $srcdir/$ac_source; then
20199 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
20200 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
20201 { (exit 1); exit 1; }; }
20205 # Make relative symlinks.
20206 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
20207 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20208 X"$ac_dest" : 'X\(//\)[^/]' \| \
20209 X"$ac_dest" : 'X\(//\)$' \| \
20210 X"$ac_dest" : 'X\(/\)' \| \
20211 . : '\(.\)' 2>/dev/null ||
20213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20215 /^X\(\/\/\)$/{ s//\1/; q; }
20216 /^X\(\/\).*/{ s//\1/; q; }
20218 { case "$ac_dest_dir" in
20219 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20222 as_dummy="$ac_dest_dir"
20223 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20224 case $as_mkdir_dir in
20225 # Skip DOS drivespec
20226 ?:) as_incr_dir=$as_mkdir_dir ;;
20228 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20229 test -d "$as_incr_dir" ||
20230 mkdir "$as_incr_dir" ||
20231 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
20232 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
20233 { (exit 1); exit 1; }; }
20240 if test "$ac_dest_dir" != .; then
20241 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
20242 # A "../" for each directory in $ac_dir_suffix.
20243 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20245 ac_dir_suffix= ac_top_builddir=
20249 .) # No --srcdir option. We are building in place.
20251 if test -z "$ac_top_builddir"; then
20254 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20256 [\\/]* | ?:[\\/]* ) # Absolute path.
20257 ac_srcdir=$srcdir$ac_dir_suffix;
20258 ac_top_srcdir=$srcdir ;;
20259 *) # Relative path.
20260 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20261 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20263 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
20265 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
20266 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
20267 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
20268 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
20272 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
20273 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
20276 # Make a symlink if possible; otherwise try a hard link.
20277 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
20278 ln $srcdir/$ac_source $ac_dest ||
20279 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
20280 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
20281 { (exit 1); exit 1; }; }
20284 cat >>$CONFIG_STATUS <<\_ACEOF
20287 # CONFIG_COMMANDS section.
20289 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20290 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20291 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20292 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20293 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20294 X"$ac_dest" : 'X\(//\)[^/]' \| \
20295 X"$ac_dest" : 'X\(//\)$' \| \
20296 X"$ac_dest" : 'X\(/\)' \| \
20297 . : '\(.\)' 2>/dev/null ||
20299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20301 /^X\(\/\/\)$/{ s//\1/; q; }
20302 /^X\(\/\).*/{ s//\1/; q; }
20306 if test "$ac_dir" != .; then
20307 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20308 # A "../" for each directory in $ac_dir_suffix.
20309 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20311 ac_dir_suffix= ac_top_builddir=
20315 .) # No --srcdir option. We are building in place.
20317 if test -z "$ac_top_builddir"; then
20320 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20322 [\\/]* | ?:[\\/]* ) # Absolute path.
20323 ac_srcdir=$srcdir$ac_dir_suffix;
20324 ac_top_srcdir=$srcdir ;;
20325 *) # Relative path.
20326 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20327 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20329 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20331 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20332 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
20333 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20334 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20337 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20338 echo "$as_me: executing $ac_dest commands" >&6;}
20340 check_win32_symlinks )
20341 # Links sometimes fail undetected on Mingw -
20342 # so here we detect it and warn the user
20343 for FILE in $CONFIG_LINKS
20345 # test -e works for symlinks in the MinGW console
20346 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
20347 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
20354 cat >>$CONFIG_STATUS <<\_ACEOF
20356 { (exit 0); exit 0; }
20358 chmod +x $CONFIG_STATUS
20359 ac_clean_files=$ac_clean_files_save
20362 # configure is writing to config.log, and then calls config.status.
20363 # config.status does its own redirection, appending to config.log.
20364 # Unfortunately, on DOS this fails, as config.log is still kept open
20365 # by configure, so config.status won't be able to write to it; its
20366 # output is simply discarded. So we exec the FD to /dev/null,
20367 # effectively closing config.log, so it can be properly (re)opened and
20368 # appended to by config.status. When coming back to configure, we
20369 # need to make the FD available again.
20370 if test "$no_create" != yes; then
20373 $SHELL $CONFIG_STATUS || ac_cs_success=false
20375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20376 # would make configure fail if this is the last instruction.
20377 $ac_cs_success || { (exit 1); exit 1; }