2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
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 2002 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='7.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
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 docdir='${prefix}/doc'
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 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
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 docdir 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_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 if test -n "$ac_init_help"; then
832 case $ac_init_help in
833 short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-recode enable single-byte recode support
842 --enable-nls[=LANGUAGES] enable Native Language Support
843 --disable-shared do not build shared libraries
844 --disable-rpath do not embed shared library search path in executables
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --disable-largefile omit support for large files
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-includes=DIRS look for additional header files in DIRS
855 --with-libraries=DIRS look for additional libraries in DIRS
856 --with-libs=DIRS alternative spelling of --with-libraries
857 --with-pgport=PORTNUM change default port number 5432
858 --with-threads allow libpq to be thread-safe
859 --with-tcl build Tcl and Tk interfaces
860 --without-tk do not build Tk interfaces if Tcl is enabled
861 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862 --with-tkconfig=DIR tkConfig.sh is in DIR
863 --with-perl build Perl modules (PL/Perl)
864 --with-python build Python interface module
865 --with-java build JDBC interface and Java tools
866 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
867 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
868 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
869 --with-pam build with PAM support
870 --with-rendezvous build with Rendezvous support
871 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
872 --without-readline do not use Readline
873 --without-zlib do not use Zlib
874 --with-gnu-ld assume the C compiler uses GNU ld default=no
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 location of DocBook stylesheets
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 Report bugs to <pgsql-bugs@postgresql.org>.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
953 PostgreSQL configure 7.4devel
954 generated by GNU Autoconf 2.53
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
961 Copyright 2002 PostgreSQL Global Development Group
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by PostgreSQL $as_me 7.4devel, which was
971 generated by GNU Autoconf 2.53. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n ) continue ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 case " $ac_configure_args " in
1038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1039 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log. We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1060 # The following way of writing the cache mishandles newlines in values,
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076 if test -s confdefs.h; then
1083 sed "/^$/d" confdefs.h
1086 test "$ac_signal" != 0 &&
1087 echo "$as_me: caught signal $ac_signal"
1088 echo "$as_me: exit $exit_status"
1090 rm -f core core.* *.core &&
1091 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094 for ac_signal in 1 2 13 15; do
1095 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 # Predefined preprocessor variables.
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134 if test "x$prefix" != xNONE; then
1135 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140 for ac_site_file in $CONFIG_SITE; do
1141 if test -r "$ac_site_file"; then
1142 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144 sed 's/^/| /' "$ac_site_file" >&5
1149 if test -r "$cache_file"; then
1150 # Some versions of bash will fail to source /dev/null (special
1151 # files actually), so we avoid doing that.
1152 if test -f "$cache_file"; then
1153 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1156 [\\/]* | ?:[\\/]* ) . $cache_file;;
1157 *) . ./$cache_file;;
1161 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1166 # Check that the precious variables saved in the cache have kept the same
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172 eval ac_new_set=\$ac_env_${ac_var}_set
1173 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174 eval ac_new_val="\$ac_env_${ac_var}_value"
1175 case $ac_old_set,$ac_new_set in
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1186 if test "x$ac_old_val" != "x$ac_new_val"; then
1187 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1190 echo "$as_me: former value: $ac_old_val" >&2;}
1191 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1192 echo "$as_me: current value: $ac_new_val" >&2;}
1193 ac_cache_corrupted=:
1196 # Pass precious variables to config.status.
1197 if test "$ac_new_set" = set; then
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 *) ac_arg=$ac_var=$ac_new_val ;;
1203 case " $ac_configure_args " in
1204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1205 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1209 if $ac_cache_corrupted; then
1210 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214 { (exit 1); exit 1; }; }
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 for ac_dir in config $srcdir/config; do
1257 if test -f $ac_dir/install-sh; then
1259 ac_install_sh="$ac_aux_dir/install-sh -c"
1261 elif test -f $ac_dir/install.sh; then
1263 ac_install_sh="$ac_aux_dir/install.sh -c"
1265 elif test -f $ac_dir/shtool; then
1267 ac_install_sh="$ac_aux_dir/shtool install -c"
1271 if test -z "$ac_aux_dir"; then
1272 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1273 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1274 { (exit 1); exit 1; }; }
1276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1278 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1281 configure_args=$ac_configure_args
1285 cat >>confdefs.h <<_ACEOF
1286 #define PG_VERSION "$PACKAGE_VERSION"
1290 # Make sure we can run config.sub.
1291 $ac_config_sub sun4 >/dev/null 2>&1 ||
1292 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1294 { (exit 1); exit 1; }; }
1296 echo "$as_me:$LINENO: checking build system type" >&5
1297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1298 if test "${ac_cv_build+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 ac_cv_build_alias=$build_alias
1302 test -z "$ac_cv_build_alias" &&
1303 ac_cv_build_alias=`$ac_config_guess`
1304 test -z "$ac_cv_build_alias" &&
1305 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1307 { (exit 1); exit 1; }; }
1308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1309 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1311 { (exit 1); exit 1; }; }
1314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1315 echo "${ECHO_T}$ac_cv_build" >&6
1317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1322 echo "$as_me:$LINENO: checking host system type" >&5
1323 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1324 if test "${ac_cv_host+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 ac_cv_host_alias=$host_alias
1328 test -z "$ac_cv_host_alias" &&
1329 ac_cv_host_alias=$ac_cv_build_alias
1330 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1331 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1333 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1337 echo "${ECHO_T}$ac_cv_host" >&6
1339 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346 echo "$as_me:$LINENO: checking which template to use" >&5
1347 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1352 # Check whether --with-template or --without-template was given.
1353 if test "${with_template+set}" = set; then
1354 withval="$with_template"
1358 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1359 echo "$as_me: error: argument required for --with-template option" >&2;}
1360 { (exit 1); exit 1; }; }
1363 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1364 echo "$as_me: error: argument required for --with-template option" >&2;}
1365 { (exit 1); exit 1; }; }
1370 list) echo; ls "$srcdir/src/template"; exit;;
1371 *) if test -f "$srcdir/src/template/$with_template" ; then
1374 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1375 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1376 { (exit 1); exit 1; }; }
1385 # --with-template not given
1388 aix*) template=aix ;;
1389 beos*) template=beos ;;
1390 bsdi*) template=bsdi ;;
1391 cygwin*) template=cygwin ;;
1392 darwin*) template=darwin ;;
1393 dgux*) template=dgux ;;
1394 freebsd*) template=freebsd ;;
1395 hpux*) template=hpux ;;
1396 irix*) template=irix5 ;;
1397 linux*) template=linux ;;
1398 mingw*) template=win32 ;;
1399 netbsd*) template=netbsd ;;
1400 nextstep*) template=nextstep ;;
1401 openbsd*) template=openbsd ;;
1402 osf*) template=osf ;;
1403 qnx*) template=qnx4 ;;
1404 sco*) template=sco ;;
1405 solaris*) template=solaris ;;
1406 sunos*) template=sunos4 ;;
1408 case $host_vendor in
1409 univel) template=univel ;;
1411 sysv4*) template=svr4 ;;
1412 sysv5*) template=unixware ;;
1413 ultrix*) template=ultrix4 ;;
1416 if test x"$template" = x"" ; then
1417 { { echo "$as_me:$LINENO: error:
1418 *******************************************************************
1419 PostgreSQL has apparently not been ported to your platform yet.
1420 To try a manual configuration, look into the src/template directory
1421 for a similar platform and use the '--with-template=' option.
1423 Please also contact <pgsql-ports@postgresql.org> to see about
1424 rectifying this. Include the above 'checking host system type...'
1426 *******************************************************************
1428 echo "$as_me: error:
1429 *******************************************************************
1430 PostgreSQL has apparently not been ported to your platform yet.
1431 To try a manual configuration, look into the src/template directory
1432 for a similar platform and use the '--with-template=' option.
1434 Please also contact <pgsql-ports@postgresql.org> to see about
1435 rectifying this. Include the above 'checking host system type...'
1437 *******************************************************************
1439 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $template" >&5
1447 echo "${ECHO_T}$template" >&6
1452 # Pick right test-and-set (TAS) code. Most platforms have inline
1453 # assembler code in src/include/storage/s_lock.h, so we just use
1454 # a dummy file here.
1456 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1457 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1458 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1459 *) need_tas=no; tas_file=dummy.s ;;
1461 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1464 if test "$need_tas" = yes ; then
1472 ## Command line options
1477 # Add non-standard directories to the include path
1482 # Check whether --with-includes or --without-includes was given.
1483 if test "${with_includes+set}" = set; then
1484 withval="$with_includes"
1488 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1489 echo "$as_me: error: argument required for --with-includes option" >&2;}
1490 { (exit 1); exit 1; }; }
1493 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1494 echo "$as_me: error: argument required for --with-includes option" >&2;}
1495 { (exit 1); exit 1; }; }
1507 # Add non-standard directories to the library search path
1512 # Check whether --with-libraries or --without-libraries was given.
1513 if test "${with_libraries+set}" = set; then
1514 withval="$with_libraries"
1518 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1519 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1520 { (exit 1); exit 1; }; }
1523 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1524 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1525 { (exit 1); exit 1; }; }
1528 LIBRARY_DIRS=$withval
1538 # Check whether --with-libs or --without-libs was given.
1539 if test "${with_libs+set}" = set; then
1540 withval="$with_libs"
1544 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1545 echo "$as_me: error: argument required for --with-libs option" >&2;}
1546 { (exit 1); exit 1; }; }
1549 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1550 echo "$as_me: error: argument required for --with-libs option" >&2;}
1551 { (exit 1); exit 1; }; }
1554 LIBRARY_DIRS=$withval
1563 # 64-bit integer date/time storage (--enable-integer-datetimes)
1565 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1566 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1569 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1570 if test "${enable_integer_datetimes+set}" = set; then
1571 enableval="$enable_integer_datetimes"
1576 cat >>confdefs.h <<\_ACEOF
1577 #define USE_INTEGER_DATETIMES 1
1585 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1586 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1587 { (exit 1); exit 1; }; }
1592 enable_integer_datetimes=no
1596 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1597 echo "${ECHO_T}$enable_integer_datetimes" >&6
1600 # Character set recode (--enable-recode)
1602 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1603 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1606 # Check whether --enable-recode or --disable-recode was given.
1607 if test "${enable_recode+set}" = set; then
1608 enableval="$enable_recode"
1613 cat >>confdefs.h <<\_ACEOF
1614 #define CYR_RECODE 1
1622 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1623 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1624 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $enable_recode" >&5
1634 echo "${ECHO_T}$enable_recode" >&6
1640 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1641 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1644 # Check whether --enable-nls or --disable-nls was given.
1645 if test "${enable_nls+set}" = set; then
1646 enableval="$enable_nls"
1657 WANTED_LANGUAGES=$enableval
1666 if test "$enable_nls" = yes; then
1668 cat >>confdefs.h <<\_ACEOF
1669 #define ENABLE_NLS 1
1674 echo "$as_me:$LINENO: result: $enable_nls" >&5
1675 echo "${ECHO_T}$enable_nls" >&6
1680 # Default port number (--with-pgport), default 5432
1682 echo "$as_me:$LINENO: checking for default port number" >&5
1683 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1687 # Check whether --with-pgport or --without-pgport was given.
1688 if test "${with_pgport+set}" = set; then
1689 withval="$with_pgport"
1693 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1694 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1695 { (exit 1); exit 1; }; }
1698 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1699 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1700 { (exit 1); exit 1; }; }
1703 default_port=$withval
1711 echo "$as_me:$LINENO: result: $default_port" >&5
1712 echo "${ECHO_T}$default_port" >&6
1713 # Need both of these because some places want an integer and some a string
1715 cat >>confdefs.h <<_ACEOF
1716 #define DEF_PGPORT ${default_port}
1720 cat >>confdefs.h <<_ACEOF
1721 #define DEF_PGPORT_STR "${default_port}"
1727 # Option to disable shared libraries
1731 # Check whether --enable-shared or --disable-shared was given.
1732 if test "${enable_shared+set}" = set; then
1733 enableval="$enable_shared"
1743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1744 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1745 { (exit 1); exit 1; }; }
1757 # '-rpath'-like feature can be disabled
1761 # Check whether --enable-rpath or --disable-rpath was given.
1762 if test "${enable_rpath+set}" = set; then
1763 enableval="$enable_rpath"
1773 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1774 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1775 { (exit 1); exit 1; }; }
1788 # --enable-debug adds -g to compiler flags
1792 # Check whether --enable-debug or --disable-debug was given.
1793 if test "${enable_debug+set}" = set; then
1794 enableval="$enable_debug"
1804 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1805 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1806 { (exit 1); exit 1; }; }
1821 # For historical reasons you can also use --with-CC to specify the C compiler
1822 # to use, although the standard way to do this is to set the CC environment
1827 # Check whether --with-CC or --without-CC was given.
1828 if test "${with_CC+set}" = set; then
1833 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1834 echo "$as_me: error: argument required for --with-CC option" >&2;}
1835 { (exit 1); exit 1; }; }
1838 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1839 echo "$as_me: error: argument required for --with-CC option" >&2;}
1840 { (exit 1); exit 1; }; }
1851 aix) pgac_cc_list="gcc xlc";;
1852 irix) pgac_cc_list="cc";; # no gcc
1853 *) pgac_cc_list="gcc cc";;
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862 for ac_prog in $pgac_cc_list
1864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$CC"; then
1872 ac_cv_prog_CC="$CC" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 if test -n "$CC"; then
1892 echo "$as_me:$LINENO: result: $CC" >&5
1893 echo "${ECHO_T}$CC" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1899 test -n "$CC" && break
1902 if test -z "$CC"; then
1904 for ac_prog in $pgac_cc_list
1906 # Extract the first word of "$ac_prog", so it can be a program name with args.
1907 set dummy $ac_prog; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$ac_ct_CC"; then
1914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_ac_ct_CC="$ac_prog"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1933 if test -n "$ac_ct_CC"; then
1934 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1935 echo "${ECHO_T}$ac_ct_CC" >&6
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1941 test -n "$ac_ct_CC" && break
1948 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1949 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1950 { (exit 1); exit 1; }; }
1952 # Provide some information about the compiler.
1953 echo "$as_me:$LINENO:" \
1954 "checking for C compiler version" >&5
1955 ac_compiler=`set X $ac_compile; echo $2`
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1957 (eval $ac_compiler --version </dev/null >&5) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1962 (eval $ac_compiler -v </dev/null >&5) 2>&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }
1966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1967 (eval $ac_compiler -V </dev/null >&5) 2>&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }
1972 cat >conftest.$ac_ext <<_ACEOF
1973 #line $LINENO "configure"
1974 #include "confdefs.h"
1976 #ifdef F77_DUMMY_MAIN
1980 int F77_DUMMY_MAIN() { return 1; }
1990 ac_clean_files_save=$ac_clean_files
1991 ac_clean_files="$ac_clean_files a.out a.exe"
1992 # Try to create an executable without -o first, disregard a.out.
1993 # It will help us diagnose broken compilers, and finding out an intuition
1995 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1996 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1997 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999 (eval $ac_link_default) 2>&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; then
2003 # Find the output, starting from the most likely. This scheme is
2004 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2007 # Be careful to initialize this variable, since it used to be cached.
2008 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2011 ls a.out conftest 2>/dev/null;
2012 ls a.* conftest.* 2>/dev/null`; do
2014 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2015 a.out ) # We found the default executable, but exeext='' is most
2018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2019 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2029 echo "$as_me: error: C compiler cannot create executables" >&2;}
2030 { (exit 77); exit 77; }; }
2033 ac_exeext=$ac_cv_exeext
2034 echo "$as_me:$LINENO: result: $ac_file" >&5
2035 echo "${ECHO_T}$ac_file" >&6
2037 # Check the compiler produces executables we can run. If not, either
2038 # the compiler is broken, or we cross compile.
2039 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2040 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2042 # If not cross compiling, check that we can run a simple program.
2043 if test "$cross_compiling" != yes; then
2044 if { ac_try='./$ac_file'
2045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
2052 if test "$cross_compiling" = maybe; then
2055 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&5
2057 echo "$as_me: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'." >&2;}
2059 { (exit 1); exit 1; }; }
2063 echo "$as_me:$LINENO: result: yes" >&5
2064 echo "${ECHO_T}yes" >&6
2066 rm -f a.out a.exe conftest$ac_cv_exeext
2067 ac_clean_files=$ac_clean_files_save
2068 # Check the compiler produces executables we can run. If not, either
2069 # the compiler is broken, or we cross compile.
2070 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2071 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2072 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2073 echo "${ECHO_T}$cross_compiling" >&6
2075 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2076 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2078 (eval $ac_link) 2>&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; then
2082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2084 # work properly (i.e., refer to `conftest.exe'), while it won't with
2086 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2088 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2098 { (exit 1); exit 1; }; }
2101 rm -f conftest$ac_cv_exeext
2102 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2103 echo "${ECHO_T}$ac_cv_exeext" >&6
2105 rm -f conftest.$ac_ext
2106 EXEEXT=$ac_cv_exeext
2108 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2109 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2110 if test "${ac_cv_objext+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 cat >conftest.$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 #include "confdefs.h"
2117 #ifdef F77_DUMMY_MAIN
2121 int F77_DUMMY_MAIN() { return 1; }
2131 rm -f conftest.o conftest.obj
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; then
2137 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2145 echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2149 { (exit 1); exit 1; }; }
2152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2154 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2155 echo "${ECHO_T}$ac_cv_objext" >&6
2156 OBJEXT=$ac_cv_objext
2158 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2159 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2160 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #line $LINENO "configure"
2165 #include "confdefs.h"
2167 #ifdef F77_DUMMY_MAIN
2171 int F77_DUMMY_MAIN() { return 1; }
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS=${CFLAGS+set}
2210 ac_save_CFLAGS=$CFLAGS
2212 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2213 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2214 if test "${ac_cv_prog_cc_g+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2221 #ifdef F77_DUMMY_MAIN
2225 int F77_DUMMY_MAIN() { return 1; }
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2253 rm -f conftest.$ac_objext conftest.$ac_ext
2255 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257 if test "$ac_test_CFLAGS" = set; then
2258 CFLAGS=$ac_save_CFLAGS
2259 elif test $ac_cv_prog_cc_g = yes; then
2260 if test "$GCC" = yes; then
2266 if test "$GCC" = yes; then
2272 # Some people use a C++ compiler to compile C. Since we use `exit',
2273 # in C++ we need to declare it. In case someone uses the same compiler
2274 # for both compiling C and C++ we need to have the C++ compiler decide
2275 # the declaration of exit, since it's the most demanding environment.
2276 cat >conftest.$ac_ext <<_ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 for ac_declaration in \
2295 '#include <stdlib.h>' \
2296 'extern "C" void std::exit (int) throw (); using std::exit;' \
2297 'extern "C" void std::exit (int); using std::exit;' \
2298 'extern "C" void exit (int) throw ();' \
2299 'extern "C" void exit (int);' \
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2307 #ifdef F77_DUMMY_MAIN
2311 int F77_DUMMY_MAIN() { return 1; }
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2340 cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 #include "confdefs.h"
2344 #ifdef F77_DUMMY_MAIN
2348 int F77_DUMMY_MAIN() { return 1; }
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 rm -f conftest.$ac_objext conftest.$ac_ext
2378 if test -n "$ac_declaration"; then
2379 echo '#ifdef __cplusplus' >>confdefs.h
2380 echo $ac_declaration >>confdefs.h
2381 echo '#endif' >>confdefs.h
2385 echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 . "$srcdir/src/template/$template" || exit
2398 if test "$ac_env_CFLAGS_set" = set; then
2399 CFLAGS=$ac_env_CFLAGS_value
2401 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2404 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2405 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2407 # Check if the compiler still works with the template settings
2408 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2409 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2411 cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2413 #include "confdefs.h"
2415 #ifdef F77_DUMMY_MAIN
2419 int F77_DUMMY_MAIN() { return 1; }
2429 rm -f conftest.$ac_objext conftest$ac_exeext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431 (eval $ac_link) 2>&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -s conftest$ac_exeext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2444 echo "$as_me: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2449 echo "$as_me: error: cannot proceed" >&2;}
2450 { (exit 1); exit 1; }; }
2452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2454 # Defend against gcc -ffastmath
2455 if test "$GCC" = yes; then
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line $LINENO "configure"
2458 #include "confdefs.h"
2460 #ifdef F77_DUMMY_MAIN
2464 int F77_DUMMY_MAIN() { return 1; }
2469 #ifdef __FAST_MATH__
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2490 echo "$as_me: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2493 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2494 { (exit 1); exit 1; }; }
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2506 # On Suns, sometimes $CPP names a directory.
2507 if test -n "$CPP" && test -d "$CPP"; then
2510 if test -z "$CPP"; then
2511 if test "${ac_cv_prog_CPP+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 # Double quotes because CPP needs to be expanded
2515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2518 for ac_c_preproc_warn_flag in '' yes
2520 # Use a header file that comes with gcc, so configuring glibc
2521 # with a fresh cross-compiler works.
2522 # On the NeXT, cc -E runs the code through the compiler's parser,
2523 # not just through cpp. "Syntax error" is here to catch this case.
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2533 egrep -v '^ *\+' conftest.er1 >conftest.err
2535 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } >/dev/null; then
2538 if test -s conftest.err; then
2539 ac_cpp_err=$ac_c_preproc_warn_flag
2546 if test -z "$ac_cpp_err"; then
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 # Broken: fails on valid input.
2554 rm -f conftest.err conftest.$ac_ext
2556 # OK, works on sane cases. Now check whether non-existent headers
2557 # can be detected and how.
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2561 #include <ac_nonexistent.h>
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566 egrep -v '^ *\+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } >/dev/null; then
2571 if test -s conftest.err; then
2572 ac_cpp_err=$ac_c_preproc_warn_flag
2579 if test -z "$ac_cpp_err"; then
2580 # Broken: success on invalid input.
2583 echo "$as_me: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2585 # Passes both tests.
2589 rm -f conftest.err conftest.$ac_ext
2592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2593 rm -f conftest.err conftest.$ac_ext
2594 if $ac_preproc_ok; then
2606 echo "$as_me:$LINENO: result: $CPP" >&5
2607 echo "${ECHO_T}$CPP" >&6
2609 for ac_c_preproc_warn_flag in '' yes
2611 # Use a header file that comes with gcc, so configuring glibc
2612 # with a fresh cross-compiler works.
2613 # On the NeXT, cc -E runs the code through the compiler's parser,
2614 # not just through cpp. "Syntax error" is here to catch this case.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2624 egrep -v '^ *\+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } >/dev/null; then
2629 if test -s conftest.err; then
2630 ac_cpp_err=$ac_c_preproc_warn_flag
2637 if test -z "$ac_cpp_err"; then
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 # Broken: fails on valid input.
2645 rm -f conftest.err conftest.$ac_ext
2647 # OK, works on sane cases. Now check whether non-existent headers
2648 # can be detected and how.
2649 cat >conftest.$ac_ext <<_ACEOF
2650 #line $LINENO "configure"
2651 #include "confdefs.h"
2652 #include <ac_nonexistent.h>
2654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2657 egrep -v '^ *\+' conftest.er1 >conftest.err
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } >/dev/null; then
2662 if test -s conftest.err; then
2663 ac_cpp_err=$ac_c_preproc_warn_flag
2670 if test -z "$ac_cpp_err"; then
2671 # Broken: success on invalid input.
2674 echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 # Passes both tests.
2680 rm -f conftest.err conftest.$ac_ext
2683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684 rm -f conftest.err conftest.$ac_ext
2685 if $ac_preproc_ok; then
2688 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2689 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2690 { (exit 1); exit 1; }; }
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 # Create compiler version string
2702 if test x"$GCC" = x"yes" ; then
2703 cc_string="GCC `${CC} --version | sed q`"
2708 cat >>confdefs.h <<_ACEOF
2709 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2715 # Automatic dependency tracking
2719 # Check whether --enable-depend or --disable-depend was given.
2720 if test "${enable_depend+set}" = set; then
2721 enableval="$enable_depend"
2731 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2732 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2733 { (exit 1); exit 1; }; }
2746 # Enable assert checks
2750 # Check whether --enable-cassert or --disable-cassert was given.
2751 if test "${enable_cassert+set}" = set; then
2752 enableval="$enable_cassert"
2757 cat >>confdefs.h <<\_ACEOF
2758 #define USE_ASSERT_CHECKING 1
2766 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2767 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2768 { (exit 1); exit 1; }; }
2780 # Include directories
2784 # SRCH_INC comes from the template file
2785 for dir in $with_includes $SRCH_INC; do
2786 if test -d "$dir"; then
2787 INCLUDES="$INCLUDES -I$dir"
2789 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2790 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2798 # Library directories
2802 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2803 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2804 if test -d "$dir"; then
2805 LIBDIRS="$LIBDIRS -L$dir"
2807 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2808 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2814 # Enable libpq to be thread-safe
2816 echo "$as_me:$LINENO: checking allow threaded libpq" >&5
2817 echo $ECHO_N "checking allow threaded libpq... $ECHO_C" >&6
2821 # Check whether --with-threads or --without-threads was given.
2822 if test "${with_threads+set}" = set; then
2823 withval="$with_threads"
2828 cat >>confdefs.h <<\_ACEOF
2829 #define USE_THREADS 1
2837 { { echo "$as_me:$LINENO: error: no argument expected for --with-threads option" >&5
2838 echo "$as_me: error: no argument expected for --with-threads option" >&2;}
2839 { (exit 1); exit 1; }; }
2849 echo "$as_me:$LINENO: result: $with_threads" >&5
2850 echo "${ECHO_T}$with_threads" >&6
2856 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2857 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2861 # Check whether --with-tcl or --without-tcl was given.
2862 if test "${with_tcl+set}" = set; then
2873 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2874 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2875 { (exit 1); exit 1; }; }
2884 echo "$as_me:$LINENO: result: $with_tcl" >&5
2885 echo "${ECHO_T}$with_tcl" >&6
2888 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2889 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2890 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2891 if test "$with_tcl" = yes; then
2895 # Check whether --with-tk or --without-tk was given.
2896 if test "${with_tk+set}" = set; then
2907 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2908 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2909 { (exit 1); exit 1; }; }
2921 echo "$as_me:$LINENO: result: $with_tk" >&5
2922 echo "${ECHO_T}$with_tk" >&6
2926 # We see if the path to the Tcl/Tk configuration scripts is specified.
2927 # This will override the use of tclsh to find the paths to search.
2932 # Check whether --with-tclconfig or --without-tclconfig was given.
2933 if test "${with_tclconfig+set}" = set; then
2934 withval="$with_tclconfig"
2938 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2939 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2940 { (exit 1); exit 1; }; }
2943 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2944 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2945 { (exit 1); exit 1; }; }
2955 # We see if the path to the Tk configuration scripts is specified.
2956 # This will override the use of tclsh to find the paths to search.
2961 # Check whether --with-tkconfig or --without-tkconfig was given.
2962 if test "${with_tkconfig+set}" = set; then
2963 withval="$with_tkconfig"
2967 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2968 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2969 { (exit 1); exit 1; }; }
2972 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2973 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2974 { (exit 1); exit 1; }; }
2985 # Optionally build Perl modules (PL/Perl)
2987 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2988 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2992 # Check whether --with-perl or --without-perl was given.
2993 if test "${with_perl+set}" = set; then
2994 withval="$with_perl"
3004 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3005 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3006 { (exit 1); exit 1; }; }
3015 echo "$as_me:$LINENO: result: $with_perl" >&5
3016 echo "${ECHO_T}$with_perl" >&6
3020 # Optionally build Python interface module
3022 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3023 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3027 # Check whether --with-python or --without-python was given.
3028 if test "${with_python+set}" = set; then
3029 withval="$with_python"
3039 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3040 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3041 { (exit 1); exit 1; }; }
3050 echo "$as_me:$LINENO: result: $with_python" >&5
3051 echo "${ECHO_T}$with_python" >&6
3055 # Optionally build the Java/JDBC tools
3057 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3058 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3062 # Check whether --with-java or --without-java was given.
3063 if test "${with_java+set}" = set; then
3064 withval="$with_java"
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3071 for ac_prog in jakarta-ant ant ant.sh ant.bat
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 echo "$as_me:$LINENO: checking for $ac_word" >&5
3076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077 if test "${ac_cv_path_ANT+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test -n "$ANT"; then
3105 echo "$as_me:$LINENO: result: $ANT" >&5
3106 echo "${ECHO_T}$ANT" >&6
3108 echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6
3112 test -n "$ANT" && break
3116 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3117 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3118 if test "${pgac_cv_prog_ant_works+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 cat > conftest.java << EOF
3123 public class conftest {
3124 int testmethod(int a, int b) {
3130 cat > conftest.xml << EOF
3131 <project name="conftest" default="conftest">
3132 <target name="conftest">
3133 <javac srcdir="." includes="conftest.java">
3139 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3140 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3141 (eval $pgac_cmd) 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }
3146 if test $? = 0 && test -f ./conftest.class ; then
3147 pgac_cv_prog_ant_works=yes
3149 echo "configure: failed java program was:" >&5
3150 cat conftest.java >&5
3151 echo "configure: failed build file was:" >&5
3152 cat conftest.xml >&5
3153 pgac_cv_prog_ant_works=no
3156 rm -f conftest* core core.* *.core
3159 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3160 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3162 if test "$pgac_cv_prog_ant_works" != yes; then
3163 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3164 echo "$as_me: error: ant does not work" >&2;}
3165 { (exit 1); exit 1; }; }
3169 if test -z "$ANT"; then
3170 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3171 If you have Ant already installed, see config.log for details on the failure." >&5
3172 echo "$as_me: error: Ant is required to build Java components
3173 If you have Ant already installed, see config.log for details on the failure." >&2;}
3174 { (exit 1); exit 1; }; }
3176 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3177 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3178 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3179 { (exit 1); exit 1; }; }
3183 echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3187 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3188 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3189 { (exit 1); exit 1; }; }
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3205 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3206 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3210 # Check whether --with-krb4 or --without-krb4 was given.
3211 if test "${with_krb4+set}" = set; then
3212 withval="$with_krb4"
3216 krb4_prefix=/usr/athena
3223 krb4_prefix=$withval
3232 if test "$with_krb4" = yes; then
3234 echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6
3237 cat >>confdefs.h <<\_ACEOF
3242 if test -d "$krb4_prefix/include"; then
3243 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3245 if test -d "$krb4_prefix/lib"; then
3246 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3249 krb_srvtab="/etc/srvtab"
3252 echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3263 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3264 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3268 # Check whether --with-krb5 or --without-krb5 was given.
3269 if test "${with_krb5+set}" = set; then
3270 withval="$with_krb5"
3274 krb5_prefix=/usr/athena
3281 krb5_prefix=$withval
3290 if test "$with_krb5" = yes; then
3292 echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3295 cat >>confdefs.h <<\_ACEOF
3300 if test -d "$krb5_prefix/include"; then
3301 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3303 if test -d "$krb5_prefix/lib"; then
3304 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3307 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3318 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3319 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3320 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3321 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3322 { (exit 1); exit 1; }; }
3329 # Kerberos configuration parameters
3334 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3335 if test "${with_krb_srvnam+set}" = set; then
3336 withval="$with_krb_srvnam"
3340 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342 { (exit 1); exit 1; }; }
3345 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3346 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3347 { (exit 1); exit 1; }; }
3355 with_krb_srvnam="postgres"
3359 cat >>confdefs.h <<_ACEOF
3360 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3368 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3369 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3373 # Check whether --with-pam or --without-pam was given.
3374 if test "${with_pam+set}" = set; then
3380 cat >>confdefs.h <<\_ACEOF
3389 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3390 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3391 { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: result: $with_pam" >&5
3401 echo "${ECHO_T}$with_pam" >&6
3408 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3409 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3413 # Check whether --with-rendezvous or --without-rendezvous was given.
3414 if test "${with_rendezvous+set}" = set; then
3415 withval="$with_rendezvous"
3420 cat >>confdefs.h <<\_ACEOF
3421 #define USE_RENDEZVOUS 1
3429 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3430 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3431 { (exit 1); exit 1; }; }
3440 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3441 echo "${ECHO_T}$with_rendezvous" >&6
3451 # Check whether --with-openssl or --without-openssl was given.
3452 if test "${with_openssl+set}" = set; then
3453 withval="$with_openssl"
3457 openssl_prefix=/usr/local/ssl
3464 openssl_prefix=$withval
3473 if test "$with_openssl" = yes; then
3475 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3476 echo "${ECHO_T}building with OpenSSL support" >&6
3478 cat >>confdefs.h <<\_ACEOF
3483 if test -d "${openssl_prefix}/include" ; then
3484 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3486 if test -d "${openssl_prefix}/lib" ; then
3487 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3502 # Check whether --with-readline or --without-readline was given.
3503 if test "${with_readline+set}" = set; then
3504 withval="$with_readline"
3514 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3515 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3516 { (exit 1); exit 1; }; }
3532 # Check whether --with-zlib or --without-zlib was given.
3533 if test "${with_zlib+set}" = set; then
3534 withval="$with_zlib"
3544 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3545 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3546 { (exit 1); exit 1; }; }
3561 # Assume system is ELF if it predefines __ELF__ as 1,
3562 # otherwise believe host_os based default.
3564 freebsd1*|freebsd2*) elf=no;;
3565 freebsd3*|freebsd4*) elf=yes;;
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 #include "confdefs.h"
3577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3578 egrep "yes" >/dev/null 2>&1; then
3581 if test "X$elf" = "Xyes" ; then
3594 # For each platform, we need to know about any special compile and link
3595 # libraries, and whether the normal C function names are thread-safe.
3597 NEED_REENTRANT_FUNC_NAMES=no
3598 if test "$with_threads" = yes; then
3599 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3601 if test "${ac_cv_header_stdc+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 cat >conftest.$ac_ext <<_ACEOF
3605 #line $LINENO "configure"
3606 #include "confdefs.h"
3613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3616 egrep -v '^ *\+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } >/dev/null; then
3621 if test -s conftest.err; then
3622 ac_cpp_err=$ac_c_preproc_warn_flag
3629 if test -z "$ac_cpp_err"; then
3630 ac_cv_header_stdc=yes
3632 echo "$as_me: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3634 ac_cv_header_stdc=no
3636 rm -f conftest.err conftest.$ac_ext
3638 if test $ac_cv_header_stdc = yes; then
3639 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3640 cat >conftest.$ac_ext <<_ACEOF
3641 #line $LINENO "configure"
3642 #include "confdefs.h"
3646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3647 egrep "memchr" >/dev/null 2>&1; then
3650 ac_cv_header_stdc=no
3656 if test $ac_cv_header_stdc = yes; then
3657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3658 cat >conftest.$ac_ext <<_ACEOF
3659 #line $LINENO "configure"
3660 #include "confdefs.h"
3664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3665 egrep "free" >/dev/null 2>&1; then
3668 ac_cv_header_stdc=no
3674 if test $ac_cv_header_stdc = yes; then
3675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3676 if test "$cross_compiling" = yes; then
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 #include "confdefs.h"
3683 #if ((' ' & 0x0FF) == 0x020)
3684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3687 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3688 || ('j' <= (c) && (c) <= 'r') \
3689 || ('s' <= (c) && (c) <= 'z'))
3690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3698 for (i = 0; i < 256; i++)
3699 if (XOR (islower (i), ISLOWER (i))
3700 || toupper (i) != TOUPPER (i))
3705 rm -f conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707 (eval $ac_link) 2>&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3718 echo "$as_me: program exited with status $ac_status" >&5
3719 echo "$as_me: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3722 ac_cv_header_stdc=no
3724 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3730 if test $ac_cv_header_stdc = yes; then
3732 cat >>confdefs.h <<\_ACEOF
3733 #define STDC_HEADERS 1
3738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3749 inttypes.h stdint.h unistd.h
3751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3752 echo "$as_me:$LINENO: checking for $ac_header" >&5
3753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 cat >conftest.$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3759 #include "confdefs.h"
3760 $ac_includes_default
3762 #include <$ac_header>
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -s conftest.$ac_objext'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 eval "$as_ac_Header=yes"
3778 echo "$as_me: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3780 eval "$as_ac_Header=no"
3782 rm -f conftest.$ac_objext conftest.$ac_ext
3784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3787 cat >>confdefs.h <<_ACEOF
3788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3796 if test "${ac_cv_header_pthread_h+set}" = set; then
3797 echo "$as_me:$LINENO: checking for pthread.h" >&5
3798 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3799 if test "${ac_cv_header_pthread_h+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3803 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3805 # Is the header compilable?
3806 echo "$as_me:$LINENO: checking pthread.h usability" >&5
3807 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
3808 cat >conftest.$ac_ext <<_ACEOF
3809 #line $LINENO "configure"
3810 #include "confdefs.h"
3811 $ac_includes_default
3812 #include <pthread.h>
3814 rm -f conftest.$ac_objext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } &&
3820 { ac_try='test -s conftest.$ac_objext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 ac_header_compiler=yes
3828 echo "$as_me: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3830 ac_header_compiler=no
3832 rm -f conftest.$ac_objext conftest.$ac_ext
3833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3834 echo "${ECHO_T}$ac_header_compiler" >&6
3836 # Is the header present?
3837 echo "$as_me:$LINENO: checking pthread.h presence" >&5
3838 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
3839 cat >conftest.$ac_ext <<_ACEOF
3840 #line $LINENO "configure"
3841 #include "confdefs.h"
3842 #include <pthread.h>
3844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3847 egrep -v '^ *\+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } >/dev/null; then
3852 if test -s conftest.err; then
3853 ac_cpp_err=$ac_c_preproc_warn_flag
3860 if test -z "$ac_cpp_err"; then
3861 ac_header_preproc=yes
3863 echo "$as_me: failed program was:" >&5
3864 cat conftest.$ac_ext >&5
3865 ac_header_preproc=no
3867 rm -f conftest.err conftest.$ac_ext
3868 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3869 echo "${ECHO_T}$ac_header_preproc" >&6
3871 # So? What about this header?
3872 case $ac_header_compiler:$ac_header_preproc in
3874 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
3875 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3876 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3877 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3879 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
3880 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
3881 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
3882 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
3883 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3884 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3886 echo "$as_me:$LINENO: checking for pthread.h" >&5
3887 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3888 if test "${ac_cv_header_pthread_h+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3891 ac_cv_header_pthread_h=$ac_header_preproc
3893 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3894 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3897 if test $ac_cv_header_pthread_h = yes; then
3900 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
3901 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
3902 { (exit 1); exit 1; }; }
3908 # these require no special flags or libraries
3909 NEED_REENTRANT_FUNC_NAMES=no
3911 freebsd2*|freebsd3*|freebsd4*)
3912 THREAD_CFLAGS="-pthread"
3913 NEED_REENTRANT_FUNC_NAMES=yes
3917 NEED_REENTRANT_FUNC_NAMES=yes
3919 linux*) THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
3920 THREAD_LIBS="-lpthread"
3921 NEED_REENTRANT_FUNC_NAMES=yes
3924 # other operating systems might fail because they have pthread.h but need
3925 # special libs we don't know about yet.
3926 { { echo "$as_me:$LINENO: error:
3927 Cannot enable threads on your platform.
3928 Please report your platform threading info to the PostgreSQL mailing lists
3929 so it can be added to the next release. Report any compile or link flags,
3930 or libraries required for threading support.
3932 echo "$as_me: error:
3933 Cannot enable threads on your platform.
3934 Please report your platform threading info to the PostgreSQL mailing lists
3935 so it can be added to the next release. Report any compile or link flags,
3936 or libraries required for threading support.
3938 { (exit 1); exit 1; }; }
3948 CPPFLAGS="$CPPFLAGS $INCLUDES"
3949 LDFLAGS="$LDFLAGS $LIBDIRS"
3951 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3952 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3953 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3954 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3957 for ac_prog in gawk mawk nawk awk
3959 # Extract the first word of "$ac_prog", so it can be a program name with args.
3960 set dummy $ac_prog; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_prog_AWK+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 if test -n "$AWK"; then
3967 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_AWK="$ac_prog"
3977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 if test -n "$AWK"; then
3987 echo "$as_me:$LINENO: result: $AWK" >&5
3988 echo "${ECHO_T}$AWK" >&6
3990 echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3994 test -n "$AWK" && break
3997 echo "$as_me:$LINENO: checking for flex" >&5
3998 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3999 if test "${pgac_cv_path_flex+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 # Let the user override the test
4003 if test -n "$FLEX"; then
4004 pgac_cv_path_flex=$FLEX
4008 for pgac_dir in $PATH; do
4009 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4012 for pgac_prog in flex lex; do
4013 pgac_candidate="$pgac_dir/$pgac_prog"
4014 if test -f "$pgac_candidate" \
4015 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4017 echo '%%' > conftest.l
4018 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4019 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4020 pgac_broken_flex=$pgac_candidate
4024 pgac_cv_path_flex=$pgac_candidate
4032 : ${pgac_cv_path_flex=no}
4036 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4037 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4038 if test x"$pgac_cv_path_flex" = x"no"; then
4039 if test -n "$pgac_broken_flex"; then
4040 { echo "$as_me:$LINENO: WARNING:
4041 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4042 *** should get version 2.5.4 or later." >&5
4043 echo "$as_me: WARNING:
4044 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4045 *** should get version 2.5.4 or later." >&2;}
4048 { echo "$as_me:$LINENO: WARNING:
4049 *** Without Flex you will not be able to build PostgreSQL from CVS or
4050 *** change any of the scanner definition files. You can obtain Flex from
4051 *** a GNU mirror site. (If you are using the official distribution of
4052 *** PostgreSQL then you do not need to worry about this because the Flex
4053 *** output is pre-generated.)" >&5
4054 echo "$as_me: WARNING:
4055 *** Without Flex you will not be able to build PostgreSQL from CVS or
4056 *** change any of the scanner definition files. You can obtain Flex from
4057 *** a GNU mirror site. (If you are using the official distribution of
4058 *** PostgreSQL then you do not need to worry about this because the Flex
4059 *** output is pre-generated.)" >&2;}
4062 if test x"$pgac_cv_path_flex" = x"no"; then
4065 FLEX=$pgac_cv_path_flex
4071 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4072 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4074 if test "$LN_S" = "ln -s"; then
4075 echo "$as_me:$LINENO: result: yes" >&5
4076 echo "${ECHO_T}yes" >&6
4078 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4079 echo "${ECHO_T}no, using $LN_S" >&6
4083 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4084 if test "${with_gnu_ld+set}" = set; then
4085 withval="$with_gnu_ld"
4086 test "$withval" = no || with_gnu_ld=yes
4091 if test "$GCC" = yes; then
4092 # Check if gcc -print-prog-name=ld gives a path.
4093 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4094 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4097 # gcc leaves a trailing carriage return which upsets mingw
4098 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4100 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4103 # Accept absolute paths.
4104 [\\/]* | [A-Za-z]:[\\/]*)
4105 re_direlt='/[^/][^/]*/\.\./'
4106 # Canonicalize the path of ld
4107 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4108 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4109 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4111 test -z "$LD" && LD="$ac_prog"
4114 # If it fails, then pretend we aren't using GCC.
4118 # If it is relative, then search for the first ld in PATH.
4122 elif test "$with_gnu_ld" = yes; then
4123 echo "$as_me:$LINENO: checking for GNU ld" >&5
4124 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4126 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4127 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4129 if test "${ac_cv_path_LD+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 if test -z "$LD"; then
4133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4134 for ac_dir in $PATH; do
4135 test -z "$ac_dir" && ac_dir=.
4136 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4137 ac_cv_path_LD="$ac_dir/$ac_prog"
4138 # Check to see if the program is GNU ld. I'd rather use --version,
4139 # but apparently some GNU ld's only accept -v.
4140 # Break only if it was the GNU/non-GNU ld that we prefer.
4141 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4142 test "$with_gnu_ld" != no && break
4144 test "$with_gnu_ld" != yes && break
4150 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4155 if test -n "$LD"; then
4156 echo "$as_me:$LINENO: result: $LD" >&5
4157 echo "${ECHO_T}$LD" >&6
4159 echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4162 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4163 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4164 { (exit 1); exit 1; }; }
4165 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4166 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4167 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4171 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4172 ac_cv_prog_gnu_ld=yes
4174 ac_cv_prog_gnu_ld=no
4177 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4178 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4179 with_gnu_ld=$ac_cv_prog_gnu_ld
4184 case $host_os in sysv5*)
4185 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4186 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4187 if test "${pgac_cv_prog_ld_R+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4192 cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4194 #include "confdefs.h"
4196 #ifdef F77_DUMMY_MAIN
4200 int F77_DUMMY_MAIN() { return 1; }
4210 rm -f conftest.$ac_objext conftest$ac_exeext
4211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212 (eval $ac_link) 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -s conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 pgac_cv_prog_ld_R=yes
4224 echo "$as_me: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4226 pgac_cv_prog_ld_R=no
4228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4229 LDFLAGS=$pgac_save_LDFLAGS
4232 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4233 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4234 ld_R_works=$pgac_cv_prog_ld_R
4237 if test -n "$ac_tool_prefix"; then
4238 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4239 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4240 echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242 if test "${ac_cv_prog_RANLIB+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if test -n "$RANLIB"; then
4246 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 RANLIB=$ac_cv_prog_RANLIB
4265 if test -n "$RANLIB"; then
4266 echo "$as_me:$LINENO: result: $RANLIB" >&5
4267 echo "${ECHO_T}$RANLIB" >&6
4269 echo "$as_me:$LINENO: result: no" >&5
4270 echo "${ECHO_T}no" >&6
4274 if test -z "$ac_cv_prog_RANLIB"; then
4275 ac_ct_RANLIB=$RANLIB
4276 # Extract the first word of "ranlib", so it can be a program name with args.
4277 set dummy ranlib; ac_word=$2
4278 echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4280 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 if test -n "$ac_ct_RANLIB"; then
4284 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293 ac_cv_prog_ac_ct_RANLIB="ranlib"
4294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4303 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4304 if test -n "$ac_ct_RANLIB"; then
4305 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4306 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4308 echo "$as_me:$LINENO: result: no" >&5
4309 echo "${ECHO_T}no" >&6
4312 RANLIB=$ac_ct_RANLIB
4314 RANLIB="$ac_cv_prog_RANLIB"
4317 for ac_prog in lorder
4319 # Extract the first word of "$ac_prog", so it can be a program name with args.
4320 set dummy $ac_prog; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_prog_LORDER+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test -n "$LORDER"; then
4327 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_LORDER="$ac_prog"
4337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 LORDER=$ac_cv_prog_LORDER
4346 if test -n "$LORDER"; then
4347 echo "$as_me:$LINENO: result: $LORDER" >&5
4348 echo "${ECHO_T}$LORDER" >&6
4350 echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4354 test -n "$LORDER" && break
4357 # Extract the first word of "tar", so it can be a program name with args.
4358 set dummy tar; ac_word=$2
4359 echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4361 if test "${ac_cv_path_TAR+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 if test -n "$TAR"; then
4389 echo "$as_me:$LINENO: result: $TAR" >&5
4390 echo "${ECHO_T}$TAR" >&6
4392 echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}strip; ac_word=$2
4400 echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4402 if test "${ac_cv_prog_STRIP+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 if test -n "$STRIP"; then
4406 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 STRIP=$ac_cv_prog_STRIP
4425 if test -n "$STRIP"; then
4426 echo "$as_me:$LINENO: result: $STRIP" >&5
4427 echo "${ECHO_T}$STRIP" >&6
4429 echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4434 if test -z "$ac_cv_prog_STRIP"; then
4436 # Extract the first word of "strip", so it can be a program name with args.
4437 set dummy strip; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$ac_ct_STRIP"; then
4444 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_ac_ct_STRIP="strip"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4463 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4464 if test -n "$ac_ct_STRIP"; then
4465 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4466 echo "${ECHO_T}$ac_ct_STRIP" >&6
4468 echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6
4474 STRIP="$ac_cv_prog_STRIP"
4478 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4479 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4480 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4481 STRIP_STATIC_LIB="$STRIP -x"
4482 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4483 echo "$as_me:$LINENO: result: yes" >&5
4484 echo "${ECHO_T}yes" >&6
4488 echo "$as_me:$LINENO: result: no" >&5
4489 echo "${ECHO_T}no" >&6
4495 for ac_prog in 'bison -y'
4497 # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_prog_YACC+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 if test -n "$YACC"; then
4505 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_YACC="$ac_prog"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 YACC=$ac_cv_prog_YACC
4524 if test -n "$YACC"; then
4525 echo "$as_me:$LINENO: result: $YACC" >&5
4526 echo "${ECHO_T}$YACC" >&6
4528 echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6
4532 test -n "$YACC" && break
4536 if test "$YACC"; then
4537 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4538 { echo "$as_me:$LINENO: WARNING:
4539 *** The installed version of Bison is too old. PostgreSQL needs
4540 *** Bison version 1.875 or later." >&5
4541 echo "$as_me: WARNING:
4542 *** The installed version of Bison is too old. PostgreSQL needs
4543 *** Bison version 1.875 or later." >&2;}
4547 if test -z "$YACC"; then
4548 { echo "$as_me:$LINENO: WARNING:
4549 *** Without Bison you will not be able to build PostgreSQL from CVS or
4550 *** change any of the parser definition files. You can obtain Bison from
4551 *** a GNU mirror site. (If you are using the official distribution of
4552 *** PostgreSQL then you do not need to worry about this because the Bison
4553 *** output is pre-generated.) To use a different yacc program (possible,
4554 *** but not recommended), set the environment variable YACC before running
4555 *** 'configure'." >&5
4556 echo "$as_me: WARNING:
4557 *** Without Bison you will not be able to build PostgreSQL from CVS or
4558 *** change any of the parser definition files. You can obtain Bison from
4559 *** a GNU mirror site. (If you are using the official distribution of
4560 *** PostgreSQL then you do not need to worry about this because the Bison
4561 *** output is pre-generated.) To use a different yacc program (possible,
4562 *** but not recommended), set the environment variable YACC before running
4563 *** 'configure'." >&2;}
4567 # Extract the first word of "perl", so it can be a program name with args.
4568 set dummy perl; ac_word=$2
4569 echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4571 if test "${ac_cv_path_PERL+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 PERL=$ac_cv_path_PERL
4598 if test -n "$PERL"; then
4599 echo "$as_me:$LINENO: result: $PERL" >&5
4600 echo "${ECHO_T}$PERL" >&6
4602 echo "$as_me:$LINENO: result: no" >&5
4603 echo "${ECHO_T}no" >&6
4606 if test "$with_perl" = yes; then
4608 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4609 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4610 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4611 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4612 echo "${ECHO_T}$perl_archlibexp" >&6
4613 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4614 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4615 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4616 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4617 echo "${ECHO_T}$perl_privlibexp" >&6
4618 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4619 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4620 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4621 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4622 echo "${ECHO_T}$perl_useshrplib" >&6
4624 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4625 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4626 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4627 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4628 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4629 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4630 echo "${ECHO_T}$perl_embed_ldflags" >&6
4633 if test "$with_python" = yes; then
4634 # Extract the first word of "python", so it can be a program name with args.
4635 set dummy python; ac_word=$2
4636 echo "$as_me:$LINENO: checking for $ac_word" >&5
4637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4638 if test "${ac_cv_path_PYTHON+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 PYTHON=$ac_cv_path_PYTHON
4665 if test -n "$PYTHON"; then
4666 echo "$as_me:$LINENO: result: $PYTHON" >&5
4667 echo "${ECHO_T}$PYTHON" >&6
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4673 if test x"$PYTHON" = x""; then
4674 { { echo "$as_me:$LINENO: error: Python not found" >&5
4675 echo "$as_me: error: Python not found" >&2;}
4676 { (exit 1); exit 1; }; }
4680 echo "$as_me:$LINENO: checking Python installation directories" >&5
4681 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4682 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4683 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4684 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4685 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4686 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4687 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4688 python_includespec="-I${python_prefix}/include/python${python_version}"
4689 if test "$python_prefix" != "$python_execprefix"; then
4690 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4693 # This should be enough of a message.
4694 if test "$python_prefix" != "$python_execprefix"; then
4695 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4696 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4698 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4699 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4706 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4707 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4709 if test ! -f "$python_configdir/Makefile"; then
4710 echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6
4712 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4713 echo "$as_me: error: Python Makefile not found" >&2;}
4714 { (exit 1); exit 1; }; }
4717 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4718 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4719 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4720 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4721 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4723 pgac_tab=" " # tab character
4724 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
4726 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4727 echo "${ECHO_T}${python_libspec}" >&6
4737 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4740 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4741 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4742 if test "${ac_cv_lib_bsd_main+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 ac_check_lib_save_LIBS=$LIBS
4747 cat >conftest.$ac_ext <<_ACEOF
4748 #line $LINENO "configure"
4749 #include "confdefs.h"
4752 #ifdef F77_DUMMY_MAIN
4756 int F77_DUMMY_MAIN() { return 1; }
4766 rm -f conftest.$ac_objext conftest$ac_exeext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4768 (eval $ac_link) 2>&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -s conftest$ac_exeext'
4773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4778 ac_cv_lib_bsd_main=yes
4780 echo "$as_me: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4782 ac_cv_lib_bsd_main=no
4784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4785 LIBS=$ac_check_lib_save_LIBS
4787 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4788 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4789 if test $ac_cv_lib_bsd_main = yes; then
4790 cat >>confdefs.h <<_ACEOF
4791 #define HAVE_LIBBSD 1
4800 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4801 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4802 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 ac_check_lib_save_LIBS=$LIBS
4807 cat >conftest.$ac_ext <<_ACEOF
4808 #line $LINENO "configure"
4809 #include "confdefs.h"
4811 /* Override any gcc2 internal prototype to avoid an error. */
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4817 char setproctitle ();
4818 #ifdef F77_DUMMY_MAIN
4822 int F77_DUMMY_MAIN() { return 1; }
4832 rm -f conftest.$ac_objext conftest$ac_exeext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4834 (eval $ac_link) 2>&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -s conftest$ac_exeext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_lib_util_setproctitle=yes
4846 echo "$as_me: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4848 ac_cv_lib_util_setproctitle=no
4850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4851 LIBS=$ac_check_lib_save_LIBS
4853 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4854 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4855 if test $ac_cv_lib_util_setproctitle = yes; then
4856 cat >>confdefs.h <<_ACEOF
4857 #define HAVE_LIBUTIL 1
4865 echo "$as_me:$LINENO: checking for main in -lm" >&5
4866 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4867 if test "${ac_cv_lib_m_main+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 ac_check_lib_save_LIBS=$LIBS
4872 cat >conftest.$ac_ext <<_ACEOF
4873 #line $LINENO "configure"
4874 #include "confdefs.h"
4877 #ifdef F77_DUMMY_MAIN
4881 int F77_DUMMY_MAIN() { return 1; }
4891 rm -f conftest.$ac_objext conftest$ac_exeext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4893 (eval $ac_link) 2>&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -s conftest$ac_exeext'
4898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; }; then
4903 ac_cv_lib_m_main=yes
4905 echo "$as_me: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4910 LIBS=$ac_check_lib_save_LIBS
4912 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4913 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4914 if test $ac_cv_lib_m_main = yes; then
4915 cat >>confdefs.h <<_ACEOF
4924 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4925 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4926 if test "${ac_cv_lib_dl_main+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 ac_check_lib_save_LIBS=$LIBS
4931 cat >conftest.$ac_ext <<_ACEOF
4932 #line $LINENO "configure"
4933 #include "confdefs.h"
4936 #ifdef F77_DUMMY_MAIN
4940 int F77_DUMMY_MAIN() { return 1; }
4950 rm -f conftest.$ac_objext conftest$ac_exeext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4952 (eval $ac_link) 2>&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -s conftest$ac_exeext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_cv_lib_dl_main=yes
4964 echo "$as_me: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4966 ac_cv_lib_dl_main=no
4968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4969 LIBS=$ac_check_lib_save_LIBS
4971 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4972 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4973 if test $ac_cv_lib_dl_main = yes; then
4974 cat >>confdefs.h <<_ACEOF
4975 #define HAVE_LIBDL 1
4983 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4984 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4985 if test "${ac_cv_lib_nsl_main+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 ac_check_lib_save_LIBS=$LIBS
4990 cat >conftest.$ac_ext <<_ACEOF
4991 #line $LINENO "configure"
4992 #include "confdefs.h"
4995 #ifdef F77_DUMMY_MAIN
4999 int F77_DUMMY_MAIN() { return 1; }
5009 rm -f conftest.$ac_objext conftest$ac_exeext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011 (eval $ac_link) 2>&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -s conftest$ac_exeext'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5021 ac_cv_lib_nsl_main=yes
5023 echo "$as_me: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5025 ac_cv_lib_nsl_main=no
5027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5028 LIBS=$ac_check_lib_save_LIBS
5030 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5031 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5032 if test $ac_cv_lib_nsl_main = yes; then
5033 cat >>confdefs.h <<_ACEOF
5034 #define HAVE_LIBNSL 1
5042 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5043 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5044 if test "${ac_cv_lib_socket_main+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 ac_check_lib_save_LIBS=$LIBS
5048 LIBS="-lsocket $LIBS"
5049 cat >conftest.$ac_ext <<_ACEOF
5050 #line $LINENO "configure"
5051 #include "confdefs.h"
5054 #ifdef F77_DUMMY_MAIN
5058 int F77_DUMMY_MAIN() { return 1; }
5068 rm -f conftest.$ac_objext conftest$ac_exeext
5069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5070 (eval $ac_link) 2>&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -s conftest$ac_exeext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5080 ac_cv_lib_socket_main=yes
5082 echo "$as_me: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5084 ac_cv_lib_socket_main=no
5086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5087 LIBS=$ac_check_lib_save_LIBS
5089 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5090 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5091 if test $ac_cv_lib_socket_main = yes; then
5092 cat >>confdefs.h <<_ACEOF
5093 #define HAVE_LIBSOCKET 1
5096 LIBS="-lsocket $LIBS"
5101 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5102 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5103 if test "${ac_cv_lib_ipc_main+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 ac_check_lib_save_LIBS=$LIBS
5108 cat >conftest.$ac_ext <<_ACEOF
5109 #line $LINENO "configure"
5110 #include "confdefs.h"
5113 #ifdef F77_DUMMY_MAIN
5117 int F77_DUMMY_MAIN() { return 1; }
5127 rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129 (eval $ac_link) 2>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -s conftest$ac_exeext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 ac_cv_lib_ipc_main=yes
5141 echo "$as_me: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5143 ac_cv_lib_ipc_main=no
5145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5146 LIBS=$ac_check_lib_save_LIBS
5148 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5149 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5150 if test $ac_cv_lib_ipc_main = yes; then
5151 cat >>confdefs.h <<_ACEOF
5152 #define HAVE_LIBIPC 1
5160 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5161 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5162 if test "${ac_cv_lib_IPC_main+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 ac_check_lib_save_LIBS=$LIBS
5167 cat >conftest.$ac_ext <<_ACEOF
5168 #line $LINENO "configure"
5169 #include "confdefs.h"
5172 #ifdef F77_DUMMY_MAIN
5176 int F77_DUMMY_MAIN() { return 1; }
5186 rm -f conftest.$ac_objext conftest$ac_exeext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188 (eval $ac_link) 2>&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -s conftest$ac_exeext'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5198 ac_cv_lib_IPC_main=yes
5200 echo "$as_me: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5202 ac_cv_lib_IPC_main=no
5204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5205 LIBS=$ac_check_lib_save_LIBS
5207 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5208 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5209 if test $ac_cv_lib_IPC_main = yes; then
5210 cat >>confdefs.h <<_ACEOF
5211 #define HAVE_LIBIPC 1
5219 echo "$as_me:$LINENO: checking for main in -llc" >&5
5220 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5221 if test "${ac_cv_lib_lc_main+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 ac_check_lib_save_LIBS=$LIBS
5226 cat >conftest.$ac_ext <<_ACEOF
5227 #line $LINENO "configure"
5228 #include "confdefs.h"
5231 #ifdef F77_DUMMY_MAIN
5235 int F77_DUMMY_MAIN() { return 1; }
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_lib_lc_main=yes
5259 echo "$as_me: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 ac_cv_lib_lc_main=no
5263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5264 LIBS=$ac_check_lib_save_LIBS
5266 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5267 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5268 if test $ac_cv_lib_lc_main = yes; then
5269 cat >>confdefs.h <<_ACEOF
5270 #define HAVE_LIBLC 1
5278 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5279 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5280 if test "${ac_cv_lib_dld_main+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 ac_check_lib_save_LIBS=$LIBS
5285 cat >conftest.$ac_ext <<_ACEOF
5286 #line $LINENO "configure"
5287 #include "confdefs.h"
5290 #ifdef F77_DUMMY_MAIN
5294 int F77_DUMMY_MAIN() { return 1; }
5304 rm -f conftest.$ac_objext conftest$ac_exeext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5306 (eval $ac_link) 2>&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -s conftest$ac_exeext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 ac_cv_lib_dld_main=yes
5318 echo "$as_me: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5320 ac_cv_lib_dld_main=no
5322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5323 LIBS=$ac_check_lib_save_LIBS
5325 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5326 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5327 if test $ac_cv_lib_dld_main = yes; then
5328 cat >>confdefs.h <<_ACEOF
5329 #define HAVE_LIBDLD 1
5337 echo "$as_me:$LINENO: checking for main in -lld" >&5
5338 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5339 if test "${ac_cv_lib_ld_main+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 ac_check_lib_save_LIBS=$LIBS
5344 cat >conftest.$ac_ext <<_ACEOF
5345 #line $LINENO "configure"
5346 #include "confdefs.h"
5349 #ifdef F77_DUMMY_MAIN
5353 int F77_DUMMY_MAIN() { return 1; }
5363 rm -f conftest.$ac_objext conftest$ac_exeext
5364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5365 (eval $ac_link) 2>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try='test -s conftest$ac_exeext'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; }; then
5375 ac_cv_lib_ld_main=yes
5377 echo "$as_me: failed program was:" >&5
5378 cat conftest.$ac_ext >&5
5379 ac_cv_lib_ld_main=no
5381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5382 LIBS=$ac_check_lib_save_LIBS
5384 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5385 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5386 if test $ac_cv_lib_ld_main = yes; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define HAVE_LIBLD 1
5396 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5397 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5398 if test "${ac_cv_lib_compat_main+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 ac_check_lib_save_LIBS=$LIBS
5402 LIBS="-lcompat $LIBS"
5403 cat >conftest.$ac_ext <<_ACEOF
5404 #line $LINENO "configure"
5405 #include "confdefs.h"
5408 #ifdef F77_DUMMY_MAIN
5412 int F77_DUMMY_MAIN() { return 1; }
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424 (eval $ac_link) 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -s conftest$ac_exeext'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5434 ac_cv_lib_compat_main=yes
5436 echo "$as_me: failed program was:" >&5
5437 cat conftest.$ac_ext >&5
5438 ac_cv_lib_compat_main=no
5440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5441 LIBS=$ac_check_lib_save_LIBS
5443 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5444 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5445 if test $ac_cv_lib_compat_main = yes; then
5446 cat >>confdefs.h <<_ACEOF
5447 #define HAVE_LIBCOMPAT 1
5450 LIBS="-lcompat $LIBS"
5455 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5456 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5457 if test "${ac_cv_lib_BSD_main+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 ac_check_lib_save_LIBS=$LIBS
5462 cat >conftest.$ac_ext <<_ACEOF
5463 #line $LINENO "configure"
5464 #include "confdefs.h"
5467 #ifdef F77_DUMMY_MAIN
5471 int F77_DUMMY_MAIN() { return 1; }
5481 rm -f conftest.$ac_objext conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483 (eval $ac_link) 2>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_lib_BSD_main=yes
5495 echo "$as_me: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5497 ac_cv_lib_BSD_main=no
5499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_check_lib_save_LIBS
5502 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5503 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5504 if test $ac_cv_lib_BSD_main = yes; then
5505 cat >>confdefs.h <<_ACEOF
5506 #define HAVE_LIBBSD 1
5514 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5515 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5516 if test "${ac_cv_lib_gen_main+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 ac_check_lib_save_LIBS=$LIBS
5521 cat >conftest.$ac_ext <<_ACEOF
5522 #line $LINENO "configure"
5523 #include "confdefs.h"
5526 #ifdef F77_DUMMY_MAIN
5530 int F77_DUMMY_MAIN() { return 1; }
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_lib_gen_main=yes
5554 echo "$as_me: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 ac_cv_lib_gen_main=no
5558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5561 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5562 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5563 if test $ac_cv_lib_gen_main = yes; then
5564 cat >>confdefs.h <<_ACEOF
5565 #define HAVE_LIBGEN 1
5573 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5574 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5575 if test "${ac_cv_lib_PW_main+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 ac_check_lib_save_LIBS=$LIBS
5580 cat >conftest.$ac_ext <<_ACEOF
5581 #line $LINENO "configure"
5582 #include "confdefs.h"
5585 #ifdef F77_DUMMY_MAIN
5589 int F77_DUMMY_MAIN() { return 1; }
5599 rm -f conftest.$ac_objext conftest$ac_exeext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_lib_PW_main=yes
5613 echo "$as_me: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 ac_cv_lib_PW_main=no
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5620 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5621 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5622 if test $ac_cv_lib_PW_main = yes; then
5623 cat >>confdefs.h <<_ACEOF
5624 #define HAVE_LIBPW 1
5632 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5633 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5634 if test "${ac_cv_lib_resolv_main+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_check_lib_save_LIBS=$LIBS
5638 LIBS="-lresolv $LIBS"
5639 cat >conftest.$ac_ext <<_ACEOF
5640 #line $LINENO "configure"
5641 #include "confdefs.h"
5644 #ifdef F77_DUMMY_MAIN
5648 int F77_DUMMY_MAIN() { return 1; }
5658 rm -f conftest.$ac_objext conftest$ac_exeext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5660 (eval $ac_link) 2>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } &&
5664 { ac_try='test -s conftest$ac_exeext'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; }; then
5670 ac_cv_lib_resolv_main=yes
5672 echo "$as_me: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5674 ac_cv_lib_resolv_main=no
5676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5677 LIBS=$ac_check_lib_save_LIBS
5679 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5680 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5681 if test $ac_cv_lib_resolv_main = yes; then
5682 cat >>confdefs.h <<_ACEOF
5683 #define HAVE_LIBRESOLV 1
5686 LIBS="-lresolv $LIBS"
5691 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5692 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5693 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 ac_check_lib_save_LIBS=$LIBS
5697 LIBS="-lwsock32 $LIBS"
5698 cat >conftest.$ac_ext <<_ACEOF
5699 #line $LINENO "configure"
5700 #include "confdefs.h"
5703 #ifdef F77_DUMMY_MAIN
5707 int F77_DUMMY_MAIN() { return 1; }
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -s conftest$ac_exeext'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5729 ac_cv_lib_wsock32_main=yes
5731 echo "$as_me: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5733 ac_cv_lib_wsock32_main=no
5735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736 LIBS=$ac_check_lib_save_LIBS
5738 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5739 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5740 if test $ac_cv_lib_wsock32_main = yes; then
5741 cat >>confdefs.h <<_ACEOF
5742 #define HAVE_LIBWSOCK32 1
5745 LIBS="-lwsock32 $LIBS"
5749 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5750 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5751 if test "${ac_cv_search_getopt_long+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 ac_func_search_save_LIBS=$LIBS
5755 ac_cv_search_getopt_long=no
5756 cat >conftest.$ac_ext <<_ACEOF
5757 #line $LINENO "configure"
5758 #include "confdefs.h"
5760 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5766 char getopt_long ();
5767 #ifdef F77_DUMMY_MAIN
5771 int F77_DUMMY_MAIN() { return 1; }
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5783 (eval $ac_link) 2>&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 { ac_try='test -s conftest$ac_exeext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 ac_cv_search_getopt_long="none required"
5795 echo "$as_me: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799 if test "$ac_cv_search_getopt_long" = no; then
5800 for ac_lib in getopt gnugetopt; do
5801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5802 cat >conftest.$ac_ext <<_ACEOF
5803 #line $LINENO "configure"
5804 #include "confdefs.h"
5806 /* Override any gcc2 internal prototype to avoid an error. */
5810 /* We use char because int might match the return type of a gcc2
5811 builtin and then its argument prototype would still apply. */
5812 char getopt_long ();
5813 #ifdef F77_DUMMY_MAIN
5817 int F77_DUMMY_MAIN() { return 1; }
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5829 (eval $ac_link) 2>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try='test -s conftest$ac_exeext'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_search_getopt_long="-l$ac_lib"
5842 echo "$as_me: failed program was:" >&5
5843 cat conftest.$ac_ext >&5
5845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5848 LIBS=$ac_func_search_save_LIBS
5850 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5851 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5852 if test "$ac_cv_search_getopt_long" != no; then
5853 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5859 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5860 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5861 if test "${ac_cv_lib_unix_main+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 ac_check_lib_save_LIBS=$LIBS
5866 cat >conftest.$ac_ext <<_ACEOF
5867 #line $LINENO "configure"
5868 #include "confdefs.h"
5871 #ifdef F77_DUMMY_MAIN
5875 int F77_DUMMY_MAIN() { return 1; }
5885 rm -f conftest.$ac_objext conftest$ac_exeext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5887 (eval $ac_link) 2>&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -s conftest$ac_exeext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_cv_lib_unix_main=yes
5899 echo "$as_me: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5901 ac_cv_lib_unix_main=no
5903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5904 LIBS=$ac_check_lib_save_LIBS
5906 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5907 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5908 if test $ac_cv_lib_unix_main = yes; then
5909 cat >>confdefs.h <<_ACEOF
5910 #define HAVE_LIBUNIX 1
5917 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5918 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5919 if test "${ac_cv_search_crypt+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5922 ac_func_search_save_LIBS=$LIBS
5923 ac_cv_search_crypt=no
5924 cat >conftest.$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
5926 #include "confdefs.h"
5928 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5935 #ifdef F77_DUMMY_MAIN
5939 int F77_DUMMY_MAIN() { return 1; }
5949 rm -f conftest.$ac_objext conftest$ac_exeext
5950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5951 (eval $ac_link) 2>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
5955 { ac_try='test -s conftest$ac_exeext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 ac_cv_search_crypt="none required"
5963 echo "$as_me: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967 if test "$ac_cv_search_crypt" = no; then
5968 for ac_lib in crypt; do
5969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5970 cat >conftest.$ac_ext <<_ACEOF
5971 #line $LINENO "configure"
5972 #include "confdefs.h"
5974 /* Override any gcc2 internal prototype to avoid an error. */
5978 /* We use char because int might match the return type of a gcc2
5979 builtin and then its argument prototype would still apply. */
5981 #ifdef F77_DUMMY_MAIN
5985 int F77_DUMMY_MAIN() { return 1; }
5995 rm -f conftest.$ac_objext conftest$ac_exeext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5997 (eval $ac_link) 2>&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -s conftest$ac_exeext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_search_crypt="-l$ac_lib"
6010 echo "$as_me: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6016 LIBS=$ac_func_search_save_LIBS
6018 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6019 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6020 if test "$ac_cv_search_crypt" != no; then
6021 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6027 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6028 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6029 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 ac_check_lib_save_LIBS=$LIBS
6034 cat >conftest.$ac_ext <<_ACEOF
6035 #line $LINENO "configure"
6036 #include "confdefs.h"
6038 /* Override any gcc2 internal prototype to avoid an error. */
6042 /* We use char because int might match the return type of a gcc2
6043 builtin and then its argument prototype would still apply. */
6044 char __inet_ntoa ();
6045 #ifdef F77_DUMMY_MAIN
6049 int F77_DUMMY_MAIN() { return 1; }
6059 rm -f conftest.$ac_objext conftest$ac_exeext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6061 (eval $ac_link) 2>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -s conftest$ac_exeext'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 ac_cv_lib_bind___inet_ntoa=yes
6073 echo "$as_me: failed program was:" >&5
6074 cat conftest.$ac_ext >&5
6075 ac_cv_lib_bind___inet_ntoa=no
6077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6078 LIBS=$ac_check_lib_save_LIBS
6080 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6081 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6082 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6083 cat >>confdefs.h <<_ACEOF
6084 #define HAVE_LIBBIND 1
6092 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6093 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6094 if test "${ac_cv_search_fdatasync+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 ac_func_search_save_LIBS=$LIBS
6098 ac_cv_search_fdatasync=no
6099 cat >conftest.$ac_ext <<_ACEOF
6100 #line $LINENO "configure"
6101 #include "confdefs.h"
6103 /* Override any gcc2 internal prototype to avoid an error. */
6107 /* We use char because int might match the return type of a gcc2
6108 builtin and then its argument prototype would still apply. */
6110 #ifdef F77_DUMMY_MAIN
6114 int F77_DUMMY_MAIN() { return 1; }
6124 rm -f conftest.$ac_objext conftest$ac_exeext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126 (eval $ac_link) 2>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -s conftest$ac_exeext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_search_fdatasync="none required"
6138 echo "$as_me: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6142 if test "$ac_cv_search_fdatasync" = no; then
6143 for ac_lib in rt posix4; do
6144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6145 cat >conftest.$ac_ext <<_ACEOF
6146 #line $LINENO "configure"
6147 #include "confdefs.h"
6149 /* Override any gcc2 internal prototype to avoid an error. */
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6156 #ifdef F77_DUMMY_MAIN
6160 int F77_DUMMY_MAIN() { return 1; }
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_search_fdatasync="-l$ac_lib"
6185 echo "$as_me: failed program was:" >&5
6186 cat conftest.$ac_ext >&5
6188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6191 LIBS=$ac_func_search_save_LIBS
6193 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6194 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6195 if test "$ac_cv_search_fdatasync" != no; then
6196 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6202 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
6203 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
6204 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 ac_check_lib_save_LIBS=$LIBS
6208 LIBS="-lcygipc $LIBS"
6209 cat >conftest.$ac_ext <<_ACEOF
6210 #line $LINENO "configure"
6211 #include "confdefs.h"
6213 /* Override any gcc2 internal prototype to avoid an error. */
6217 /* We use char because int might match the return type of a gcc2
6218 builtin and then its argument prototype would still apply. */
6220 #ifdef F77_DUMMY_MAIN
6224 int F77_DUMMY_MAIN() { return 1; }
6234 rm -f conftest.$ac_objext conftest$ac_exeext
6235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6236 (eval $ac_link) 2>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try='test -s conftest$ac_exeext'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; }; then
6246 ac_cv_lib_cygipc_shmget=yes
6248 echo "$as_me: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6250 ac_cv_lib_cygipc_shmget=no
6252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6253 LIBS=$ac_check_lib_save_LIBS
6255 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
6256 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
6257 if test $ac_cv_lib_cygipc_shmget = yes; then
6258 cat >>confdefs.h <<_ACEOF
6259 #define HAVE_LIBCYGIPC 1
6262 LIBS="-lcygipc $LIBS"
6267 if test "$with_readline" = yes; then
6269 echo "$as_me:$LINENO: checking for readline" >&5
6270 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6272 if test "${pgac_cv_check_readline+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 pgac_cv_check_readline=no
6276 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6277 for pgac_rllib in -lreadline -ledit ; do
6278 pgac_save_LIBS=$LIBS
6279 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6280 cat >conftest.$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6282 #include "confdefs.h"
6284 /* Override any gcc2 internal prototype to avoid an error. */
6288 /* We use char because int might match the return type of a gcc2
6289 builtin and then its argument prototype would still apply. */
6291 #ifdef F77_DUMMY_MAIN
6295 int F77_DUMMY_MAIN() { return 1; }
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307 (eval $ac_link) 2>&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -s conftest$ac_exeext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6318 # NetBSD and OpenBSD have a broken linker that does not
6319 # recognize dependent libraries
6320 case $host_os in netbsd* | openbsd* )
6323 *) pgac_lib=" -lcurses" ;;
6327 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6331 echo "$as_me: failed program was:" >&5
6332 cat conftest.$ac_ext >&5
6334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6335 LIBS=$pgac_save_LIBS
6338 LIBS=$pgac_save_LIBS
6342 if test "$pgac_cv_check_readline" != no ; then
6344 cat >>confdefs.h <<\_ACEOF
6345 #define HAVE_LIBREADLINE 1
6348 LIBS="$pgac_cv_check_readline $LIBS"
6349 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6350 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6352 echo "$as_me:$LINENO: result: no" >&5
6353 echo "${ECHO_T}no" >&6
6355 if test x"$pgac_cv_check_readline" = x"no"; then
6356 { { echo "$as_me:$LINENO: error: readline library not found
6357 If you have readline already installed, see config.log for details on the
6358 failure. It is possible the compiler isn't looking in the proper directory.
6359 Use --without-readline to disable readline support." >&5
6360 echo "$as_me: error: readline library not found
6361 If you have readline already installed, see config.log for details on the
6362 failure. It is possible the compiler isn't looking in the proper directory.
6363 Use --without-readline to disable readline support." >&2;}
6364 { (exit 1); exit 1; }; }
6368 if test "$with_zlib" = yes; then
6370 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6371 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6372 if test "${ac_cv_lib_z_inflate+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 ac_check_lib_save_LIBS=$LIBS
6377 cat >conftest.$ac_ext <<_ACEOF
6378 #line $LINENO "configure"
6379 #include "confdefs.h"
6381 /* Override any gcc2 internal prototype to avoid an error. */
6385 /* We use char because int might match the return type of a gcc2
6386 builtin and then its argument prototype would still apply. */
6388 #ifdef F77_DUMMY_MAIN
6392 int F77_DUMMY_MAIN() { return 1; }
6402 rm -f conftest.$ac_objext conftest$ac_exeext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6404 (eval $ac_link) 2>&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -s conftest$ac_exeext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_lib_z_inflate=yes
6416 echo "$as_me: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6418 ac_cv_lib_z_inflate=no
6420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6421 LIBS=$ac_check_lib_save_LIBS
6423 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6424 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6425 if test $ac_cv_lib_z_inflate = yes; then
6426 cat >>confdefs.h <<_ACEOF
6433 { { echo "$as_me:$LINENO: error: zlib library not found
6434 If you have zlib already installed, see config.log for details on the
6435 failure. It is possible the compiler isn't looking in the proper directory.
6436 Use --without-zlib to disable zlib support." >&5
6437 echo "$as_me: error: zlib library not found
6438 If you have zlib already installed, see config.log for details on the
6439 failure. It is possible the compiler isn't looking in the proper directory.
6440 Use --without-zlib to disable zlib support." >&2;}
6441 { (exit 1); exit 1; }; }
6446 if test "$with_krb4" = yes ; then
6448 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6449 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6450 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 ac_check_lib_save_LIBS=$LIBS
6455 cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6457 #include "confdefs.h"
6459 /* Override any gcc2 internal prototype to avoid an error. */
6463 /* We use char because int might match the return type of a gcc2
6464 builtin and then its argument prototype would still apply. */
6465 char des_encrypt ();
6466 #ifdef F77_DUMMY_MAIN
6470 int F77_DUMMY_MAIN() { return 1; }
6480 rm -f conftest.$ac_objext conftest$ac_exeext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6482 (eval $ac_link) 2>&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -s conftest$ac_exeext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_cv_lib_des_des_encrypt=yes
6494 echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6496 ac_cv_lib_des_des_encrypt=no
6498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6499 LIBS=$ac_check_lib_save_LIBS
6501 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6502 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6503 if test $ac_cv_lib_des_des_encrypt = yes; then
6504 cat >>confdefs.h <<_ACEOF
6505 #define HAVE_LIBDES 1
6511 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6512 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6513 { (exit 1); exit 1; }; }
6517 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6518 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6519 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 ac_check_lib_save_LIBS=$LIBS
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6528 /* Override any gcc2 internal prototype to avoid an error. */
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6534 char krb_sendauth ();
6535 #ifdef F77_DUMMY_MAIN
6539 int F77_DUMMY_MAIN() { return 1; }
6549 rm -f conftest.$ac_objext conftest$ac_exeext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551 (eval $ac_link) 2>&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } &&
6555 { ac_try='test -s conftest$ac_exeext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_cv_lib_krb_krb_sendauth=yes
6563 echo "$as_me: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6565 ac_cv_lib_krb_krb_sendauth=no
6567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568 LIBS=$ac_check_lib_save_LIBS
6570 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6571 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6572 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6573 cat >>confdefs.h <<_ACEOF
6574 #define HAVE_LIBKRB 1
6580 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6581 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6582 { (exit 1); exit 1; }; }
6586 for ac_func in gethostname
6588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6589 echo "$as_me:$LINENO: checking for $ac_func" >&5
6590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6591 if eval "test \"\${$as_ac_var+set}\" = set"; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 cat >conftest.$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6596 #include "confdefs.h"
6597 /* System header to define __stub macros and hopefully few prototypes,
6598 which can conflict with char $ac_func (); below. */
6600 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6609 #ifdef F77_DUMMY_MAIN
6613 int F77_DUMMY_MAIN() { return 1; }
6618 /* The GNU C library defines this for functions which it implements
6619 to always fail with ENOSYS. Some functions are actually named
6620 something starting with __ and the normal name is an alias. */
6621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6631 rm -f conftest.$ac_objext conftest$ac_exeext
6632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6633 (eval $ac_link) 2>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -s conftest$ac_exeext'
6638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); }; }; then
6643 eval "$as_ac_var=yes"
6645 echo "$as_me: failed program was:" >&5
6646 cat conftest.$ac_ext >&5
6647 eval "$as_ac_var=no"
6649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6653 if test `eval echo '${'$as_ac_var'}'` = yes; then
6654 cat >>confdefs.h <<_ACEOF
6655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6659 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6666 if test "$with_krb5" = yes ; then
6667 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6668 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6669 if test "${ac_cv_search_com_err+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6672 ac_func_search_save_LIBS=$LIBS
6673 ac_cv_search_com_err=no
6674 cat >conftest.$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 #include "confdefs.h"
6678 /* Override any gcc2 internal prototype to avoid an error. */
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6685 #ifdef F77_DUMMY_MAIN
6689 int F77_DUMMY_MAIN() { return 1; }
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701 (eval $ac_link) 2>&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest$ac_exeext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_search_com_err="none required"
6713 echo "$as_me: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6717 if test "$ac_cv_search_com_err" = no; then
6718 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6720 cat >conftest.$ac_ext <<_ACEOF
6721 #line $LINENO "configure"
6722 #include "confdefs.h"
6724 /* Override any gcc2 internal prototype to avoid an error. */
6728 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6731 #ifdef F77_DUMMY_MAIN
6735 int F77_DUMMY_MAIN() { return 1; }
6745 rm -f conftest.$ac_objext conftest$ac_exeext
6746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6747 (eval $ac_link) 2>&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } &&
6751 { ac_try='test -s conftest$ac_exeext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 ac_cv_search_com_err="-l$ac_lib"
6760 echo "$as_me: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6766 LIBS=$ac_func_search_save_LIBS
6768 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6769 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6770 if test "$ac_cv_search_com_err" != no; then
6771 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6774 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6775 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6776 { (exit 1); exit 1; }; }
6779 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6780 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6781 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 ac_func_search_save_LIBS=$LIBS
6785 ac_cv_search_krb5_encrypt=no
6786 cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6788 #include "confdefs.h"
6790 /* Override any gcc2 internal prototype to avoid an error. */
6794 /* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6796 char krb5_encrypt ();
6797 #ifdef F77_DUMMY_MAIN
6801 int F77_DUMMY_MAIN() { return 1; }
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -s conftest$ac_exeext'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; }; then
6823 ac_cv_search_krb5_encrypt="none required"
6825 echo "$as_me: failed program was:" >&5
6826 cat conftest.$ac_ext >&5
6828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6829 if test "$ac_cv_search_krb5_encrypt" = no; then
6830 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6832 cat >conftest.$ac_ext <<_ACEOF
6833 #line $LINENO "configure"
6834 #include "confdefs.h"
6836 /* Override any gcc2 internal prototype to avoid an error. */
6840 /* We use char because int might match the return type of a gcc2
6841 builtin and then its argument prototype would still apply. */
6842 char krb5_encrypt ();
6843 #ifdef F77_DUMMY_MAIN
6847 int F77_DUMMY_MAIN() { return 1; }
6857 rm -f conftest.$ac_objext conftest$ac_exeext
6858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6859 (eval $ac_link) 2>&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -s conftest$ac_exeext'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6869 ac_cv_search_krb5_encrypt="-l$ac_lib"
6872 echo "$as_me: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6878 LIBS=$ac_func_search_save_LIBS
6880 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6881 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6882 if test "$ac_cv_search_krb5_encrypt" != no; then
6883 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6886 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6887 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6888 { (exit 1); exit 1; }; }
6891 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6892 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6893 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 ac_func_search_save_LIBS=$LIBS
6897 ac_cv_search_krb5_sendauth=no
6898 cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 #include "confdefs.h"
6902 /* Override any gcc2 internal prototype to avoid an error. */
6906 /* We use char because int might match the return type of a gcc2
6907 builtin and then its argument prototype would still apply. */
6908 char krb5_sendauth ();
6909 #ifdef F77_DUMMY_MAIN
6913 int F77_DUMMY_MAIN() { return 1; }
6923 rm -f conftest.$ac_objext conftest$ac_exeext
6924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6925 (eval $ac_link) 2>&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -s conftest$ac_exeext'
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; }; then
6935 ac_cv_search_krb5_sendauth="none required"
6937 echo "$as_me: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6941 if test "$ac_cv_search_krb5_sendauth" = no; then
6942 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6944 cat >conftest.$ac_ext <<_ACEOF
6945 #line $LINENO "configure"
6946 #include "confdefs.h"
6948 /* Override any gcc2 internal prototype to avoid an error. */
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6954 char krb5_sendauth ();
6955 #ifdef F77_DUMMY_MAIN
6959 int F77_DUMMY_MAIN() { return 1; }
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } &&
6975 { ac_try='test -s conftest$ac_exeext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
6981 ac_cv_search_krb5_sendauth="-l$ac_lib"
6984 echo "$as_me: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6990 LIBS=$ac_func_search_save_LIBS
6992 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6993 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6994 if test "$ac_cv_search_krb5_sendauth" != no; then
6995 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6998 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6999 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7000 { (exit 1); exit 1; }; }
7005 if test "$with_openssl" = yes ; then
7007 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7008 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7009 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 ac_check_lib_save_LIBS=$LIBS
7013 LIBS="-lcrypto $LIBS"
7014 cat >conftest.$ac_ext <<_ACEOF
7015 #line $LINENO "configure"
7016 #include "confdefs.h"
7018 /* Override any gcc2 internal prototype to avoid an error. */
7022 /* We use char because int might match the return type of a gcc2
7023 builtin and then its argument prototype would still apply. */
7024 char CRYPTO_new_ex_data ();
7025 #ifdef F77_DUMMY_MAIN
7029 int F77_DUMMY_MAIN() { return 1; }
7034 CRYPTO_new_ex_data ();
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7053 echo "$as_me: failed program was:" >&5
7054 cat conftest.$ac_ext >&5
7055 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7058 LIBS=$ac_check_lib_save_LIBS
7060 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7061 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7062 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7063 cat >>confdefs.h <<_ACEOF
7064 #define HAVE_LIBCRYPTO 1
7067 LIBS="-lcrypto $LIBS"
7070 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7071 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7072 { (exit 1); exit 1; }; }
7076 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7077 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7078 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 ac_check_lib_save_LIBS=$LIBS
7083 cat >conftest.$ac_ext <<_ACEOF
7084 #line $LINENO "configure"
7085 #include "confdefs.h"
7087 /* Override any gcc2 internal prototype to avoid an error. */
7091 /* We use char because int might match the return type of a gcc2
7092 builtin and then its argument prototype would still apply. */
7093 char SSL_library_init ();
7094 #ifdef F77_DUMMY_MAIN
7098 int F77_DUMMY_MAIN() { return 1; }
7103 SSL_library_init ();
7108 rm -f conftest.$ac_objext conftest$ac_exeext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7110 (eval $ac_link) 2>&5
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } &&
7114 { ac_try='test -s conftest$ac_exeext'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; }; then
7120 ac_cv_lib_ssl_SSL_library_init=yes
7122 echo "$as_me: failed program was:" >&5
7123 cat conftest.$ac_ext >&5
7124 ac_cv_lib_ssl_SSL_library_init=no
7126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7127 LIBS=$ac_check_lib_save_LIBS
7129 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7130 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7131 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7132 cat >>confdefs.h <<_ACEOF
7133 #define HAVE_LIBSSL 1
7139 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7140 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7141 { (exit 1); exit 1; }; }
7146 if test "$with_pam" = yes ; then
7148 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7149 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7150 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_check_lib_save_LIBS=$LIBS
7155 cat >conftest.$ac_ext <<_ACEOF
7156 #line $LINENO "configure"
7157 #include "confdefs.h"
7159 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7166 #ifdef F77_DUMMY_MAIN
7170 int F77_DUMMY_MAIN() { return 1; }
7180 rm -f conftest.$ac_objext conftest$ac_exeext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182 (eval $ac_link) 2>&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try='test -s conftest$ac_exeext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 ac_cv_lib_pam_pam_start=yes
7194 echo "$as_me: failed program was:" >&5
7195 cat conftest.$ac_ext >&5
7196 ac_cv_lib_pam_pam_start=no
7198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7199 LIBS=$ac_check_lib_save_LIBS
7201 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7202 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7203 if test $ac_cv_lib_pam_pam_start = yes; then
7204 cat >>confdefs.h <<_ACEOF
7205 #define HAVE_LIBPAM 1
7211 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7212 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7213 { (exit 1); exit 1; }; }
7244 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.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/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
7246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7248 echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7256 # Is the header compilable?
7257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7259 cat >conftest.$ac_ext <<_ACEOF
7260 #line $LINENO "configure"
7261 #include "confdefs.h"
7262 $ac_includes_default
7263 #include <$ac_header>
7265 rm -f conftest.$ac_objext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7267 (eval $ac_compile) 2>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -s conftest.$ac_objext'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; }; then
7277 ac_header_compiler=yes
7279 echo "$as_me: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7281 ac_header_compiler=no
7283 rm -f conftest.$ac_objext conftest.$ac_ext
7284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7285 echo "${ECHO_T}$ac_header_compiler" >&6
7287 # Is the header present?
7288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7290 cat >conftest.$ac_ext <<_ACEOF
7291 #line $LINENO "configure"
7292 #include "confdefs.h"
7293 #include <$ac_header>
7295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7298 egrep -v '^ *\+' conftest.er1 >conftest.err
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } >/dev/null; then
7303 if test -s conftest.err; then
7304 ac_cpp_err=$ac_c_preproc_warn_flag
7311 if test -z "$ac_cpp_err"; then
7312 ac_header_preproc=yes
7314 echo "$as_me: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7316 ac_header_preproc=no
7318 rm -f conftest.err conftest.$ac_ext
7319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7320 echo "${ECHO_T}$ac_header_preproc" >&6
7322 # So? What about this header?
7323 case $ac_header_compiler:$ac_header_preproc in
7325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7337 echo "$as_me:$LINENO: checking for $ac_header" >&5
7338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 eval "$as_ac_Header=$ac_header_preproc"
7344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7349 cat >>confdefs.h <<_ACEOF
7350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7358 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7359 # netinet/in.h is included first.
7361 for ac_header in netinet/in.h
7363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7365 echo "$as_me:$LINENO: checking for $ac_header" >&5
7366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7373 # Is the header compilable?
7374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7376 cat >conftest.$ac_ext <<_ACEOF
7377 #line $LINENO "configure"
7378 #include "confdefs.h"
7379 $ac_includes_default
7380 #include <$ac_header>
7382 rm -f conftest.$ac_objext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7384 (eval $ac_compile) 2>&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
7388 { ac_try='test -s conftest.$ac_objext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 ac_header_compiler=yes
7396 echo "$as_me: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7398 ac_header_compiler=no
7400 rm -f conftest.$ac_objext conftest.$ac_ext
7401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7402 echo "${ECHO_T}$ac_header_compiler" >&6
7404 # Is the header present?
7405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7407 cat >conftest.$ac_ext <<_ACEOF
7408 #line $LINENO "configure"
7409 #include "confdefs.h"
7410 #include <$ac_header>
7412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7415 egrep -v '^ *\+' conftest.er1 >conftest.err
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } >/dev/null; then
7420 if test -s conftest.err; then
7421 ac_cpp_err=$ac_c_preproc_warn_flag
7428 if test -z "$ac_cpp_err"; then
7429 ac_header_preproc=yes
7431 echo "$as_me: failed program was:" >&5
7432 cat conftest.$ac_ext >&5
7433 ac_header_preproc=no
7435 rm -f conftest.err conftest.$ac_ext
7436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7437 echo "${ECHO_T}$ac_header_preproc" >&6
7439 # So? What about this header?
7440 case $ac_header_compiler:$ac_header_preproc in
7442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7454 echo "$as_me:$LINENO: checking for $ac_header" >&5
7455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 eval "$as_ac_Header=$ac_header_preproc"
7461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466 cat >>confdefs.h <<_ACEOF
7467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7475 for ac_header in netinet/tcp.h
7477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7478 echo "$as_me:$LINENO: checking for $ac_header" >&5
7479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 cat >conftest.$ac_ext <<_ACEOF
7484 #line $LINENO "configure"
7485 #include "confdefs.h"
7486 $ac_includes_default
7487 #ifdef HAVE_NETINET_IN_H
7488 #include <netinet/in.h>
7492 #include <$ac_header>
7494 rm -f conftest.$ac_objext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7496 (eval $ac_compile) 2>&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
7500 { ac_try='test -s conftest.$ac_objext'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 eval "$as_ac_Header=yes"
7508 echo "$as_me: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7510 eval "$as_ac_Header=no"
7512 rm -f conftest.$ac_objext conftest.$ac_ext
7514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7517 cat >>confdefs.h <<_ACEOF
7518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7526 if test "$with_readline" = yes; then
7528 for ac_header in readline/readline.h
7530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7532 echo "$as_me:$LINENO: checking for $ac_header" >&5
7533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7540 # Is the header compilable?
7541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7543 cat >conftest.$ac_ext <<_ACEOF
7544 #line $LINENO "configure"
7545 #include "confdefs.h"
7546 $ac_includes_default
7547 #include <$ac_header>
7549 rm -f conftest.$ac_objext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7551 (eval $ac_compile) 2>&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -s conftest.$ac_objext'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 ac_header_compiler=yes
7563 echo "$as_me: failed program was:" >&5
7564 cat conftest.$ac_ext >&5
7565 ac_header_compiler=no
7567 rm -f conftest.$ac_objext conftest.$ac_ext
7568 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7569 echo "${ECHO_T}$ac_header_compiler" >&6
7571 # Is the header present?
7572 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7574 cat >conftest.$ac_ext <<_ACEOF
7575 #line $LINENO "configure"
7576 #include "confdefs.h"
7577 #include <$ac_header>
7579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7582 egrep -v '^ *\+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } >/dev/null; then
7587 if test -s conftest.err; then
7588 ac_cpp_err=$ac_c_preproc_warn_flag
7595 if test -z "$ac_cpp_err"; then
7596 ac_header_preproc=yes
7598 echo "$as_me: failed program was:" >&5
7599 cat conftest.$ac_ext >&5
7600 ac_header_preproc=no
7602 rm -f conftest.err conftest.$ac_ext
7603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7604 echo "${ECHO_T}$ac_header_preproc" >&6
7606 # So? What about this header?
7607 case $ac_header_compiler:$ac_header_preproc in
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7621 echo "$as_me:$LINENO: checking for $ac_header" >&5
7622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7626 eval "$as_ac_Header=$ac_header_preproc"
7628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7633 cat >>confdefs.h <<_ACEOF
7634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7639 for ac_header in editline/readline.h
7641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7643 echo "$as_me:$LINENO: checking for $ac_header" >&5
7644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7651 # Is the header compilable?
7652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7654 cat >conftest.$ac_ext <<_ACEOF
7655 #line $LINENO "configure"
7656 #include "confdefs.h"
7657 $ac_includes_default
7658 #include <$ac_header>
7660 rm -f conftest.$ac_objext
7661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7662 (eval $ac_compile) 2>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -s conftest.$ac_objext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 ac_header_compiler=yes
7674 echo "$as_me: failed program was:" >&5
7675 cat conftest.$ac_ext >&5
7676 ac_header_compiler=no
7678 rm -f conftest.$ac_objext conftest.$ac_ext
7679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7680 echo "${ECHO_T}$ac_header_compiler" >&6
7682 # Is the header present?
7683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7686 #line $LINENO "configure"
7687 #include "confdefs.h"
7688 #include <$ac_header>
7690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7693 egrep -v '^ *\+' conftest.er1 >conftest.err
7695 cat conftest.err >&5
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); } >/dev/null; then
7698 if test -s conftest.err; then
7699 ac_cpp_err=$ac_c_preproc_warn_flag
7706 if test -z "$ac_cpp_err"; then
7707 ac_header_preproc=yes
7709 echo "$as_me: failed program was:" >&5
7710 cat conftest.$ac_ext >&5
7711 ac_header_preproc=no
7713 rm -f conftest.err conftest.$ac_ext
7714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7715 echo "${ECHO_T}$ac_header_preproc" >&6
7717 # So? What about this header?
7718 case $ac_header_compiler:$ac_header_preproc in
7720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7728 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7732 echo "$as_me:$LINENO: checking for $ac_header" >&5
7733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 eval "$as_ac_Header=$ac_header_preproc"
7739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7744 cat >>confdefs.h <<_ACEOF
7745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7750 for ac_header in readline.h
7752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7754 echo "$as_me:$LINENO: checking for $ac_header" >&5
7755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7762 # Is the header compilable?
7763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7765 cat >conftest.$ac_ext <<_ACEOF
7766 #line $LINENO "configure"
7767 #include "confdefs.h"
7768 $ac_includes_default
7769 #include <$ac_header>
7771 rm -f conftest.$ac_objext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7773 (eval $ac_compile) 2>&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try='test -s conftest.$ac_objext'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_header_compiler=yes
7785 echo "$as_me: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7787 ac_header_compiler=no
7789 rm -f conftest.$ac_objext conftest.$ac_ext
7790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7791 echo "${ECHO_T}$ac_header_compiler" >&6
7793 # Is the header present?
7794 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7796 cat >conftest.$ac_ext <<_ACEOF
7797 #line $LINENO "configure"
7798 #include "confdefs.h"
7799 #include <$ac_header>
7801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7804 egrep -v '^ *\+' conftest.er1 >conftest.err
7806 cat conftest.err >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } >/dev/null; then
7809 if test -s conftest.err; then
7810 ac_cpp_err=$ac_c_preproc_warn_flag
7817 if test -z "$ac_cpp_err"; then
7818 ac_header_preproc=yes
7820 echo "$as_me: failed program was:" >&5
7821 cat conftest.$ac_ext >&5
7822 ac_header_preproc=no
7824 rm -f conftest.err conftest.$ac_ext
7825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7826 echo "${ECHO_T}$ac_header_preproc" >&6
7828 # So? What about this header?
7829 case $ac_header_compiler:$ac_header_preproc in
7831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7837 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7839 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7843 echo "$as_me:$LINENO: checking for $ac_header" >&5
7844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 eval "$as_ac_Header=$ac_header_preproc"
7850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7855 cat >>confdefs.h <<_ACEOF
7856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7860 { { echo "$as_me:$LINENO: error: readline header not found
7861 If you have readline already installed, see config.log for details on the
7862 failure. It is possible the compiler isn't looking in the proper directory.
7863 Use --without-readline to disable readline support." >&5
7864 echo "$as_me: error: readline header not found
7865 If you have readline already installed, see config.log for details on the
7866 failure. It is possible the compiler isn't looking in the proper directory.
7867 Use --without-readline to disable readline support." >&2;}
7868 { (exit 1); exit 1; }; }
7882 for ac_header in readline/history.h
7884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7886 echo "$as_me:$LINENO: checking for $ac_header" >&5
7887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7894 # Is the header compilable?
7895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7897 cat >conftest.$ac_ext <<_ACEOF
7898 #line $LINENO "configure"
7899 #include "confdefs.h"
7900 $ac_includes_default
7901 #include <$ac_header>
7903 rm -f conftest.$ac_objext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7905 (eval $ac_compile) 2>&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -s conftest.$ac_objext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7915 ac_header_compiler=yes
7917 echo "$as_me: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7919 ac_header_compiler=no
7921 rm -f conftest.$ac_objext conftest.$ac_ext
7922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7923 echo "${ECHO_T}$ac_header_compiler" >&6
7925 # Is the header present?
7926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7930 #include "confdefs.h"
7931 #include <$ac_header>
7933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7936 egrep -v '^ *\+' conftest.er1 >conftest.err
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } >/dev/null; then
7941 if test -s conftest.err; then
7942 ac_cpp_err=$ac_c_preproc_warn_flag
7949 if test -z "$ac_cpp_err"; then
7950 ac_header_preproc=yes
7952 echo "$as_me: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7954 ac_header_preproc=no
7956 rm -f conftest.err conftest.$ac_ext
7957 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7958 echo "${ECHO_T}$ac_header_preproc" >&6
7960 # So? What about this header?
7961 case $ac_header_compiler:$ac_header_preproc in
7963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7975 echo "$as_me:$LINENO: checking for $ac_header" >&5
7976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 eval "$as_ac_Header=$ac_header_preproc"
7982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7987 cat >>confdefs.h <<_ACEOF
7988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7993 for ac_header in editline/history.h
7995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997 echo "$as_me:$LINENO: checking for $ac_header" >&5
7998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8005 # Is the header compilable?
8006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8008 cat >conftest.$ac_ext <<_ACEOF
8009 #line $LINENO "configure"
8010 #include "confdefs.h"
8011 $ac_includes_default
8012 #include <$ac_header>
8014 rm -f conftest.$ac_objext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8016 (eval $ac_compile) 2>&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -s conftest.$ac_objext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_header_compiler=yes
8028 echo "$as_me: failed program was:" >&5
8029 cat conftest.$ac_ext >&5
8030 ac_header_compiler=no
8032 rm -f conftest.$ac_objext conftest.$ac_ext
8033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8034 echo "${ECHO_T}$ac_header_compiler" >&6
8036 # Is the header present?
8037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8039 cat >conftest.$ac_ext <<_ACEOF
8040 #line $LINENO "configure"
8041 #include "confdefs.h"
8042 #include <$ac_header>
8044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8047 egrep -v '^ *\+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } >/dev/null; then
8052 if test -s conftest.err; then
8053 ac_cpp_err=$ac_c_preproc_warn_flag
8060 if test -z "$ac_cpp_err"; then
8061 ac_header_preproc=yes
8063 echo "$as_me: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8065 ac_header_preproc=no
8067 rm -f conftest.err conftest.$ac_ext
8068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8069 echo "${ECHO_T}$ac_header_preproc" >&6
8071 # So? What about this header?
8072 case $ac_header_compiler:$ac_header_preproc in
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8086 echo "$as_me:$LINENO: checking for $ac_header" >&5
8087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 eval "$as_ac_Header=$ac_header_preproc"
8093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8098 cat >>confdefs.h <<_ACEOF
8099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8104 for ac_header in history.h
8106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8108 echo "$as_me:$LINENO: checking for $ac_header" >&5
8109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8114 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8116 # Is the header compilable?
8117 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 #include "confdefs.h"
8122 $ac_includes_default
8123 #include <$ac_header>
8125 rm -f conftest.$ac_objext
8126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8127 (eval $ac_compile) 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -s conftest.$ac_objext'
8132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; }; then
8137 ac_header_compiler=yes
8139 echo "$as_me: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 ac_header_compiler=no
8143 rm -f conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line $LINENO "configure"
8152 #include "confdefs.h"
8153 #include <$ac_header>
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8158 egrep -v '^ *\+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } >/dev/null; then
8163 if test -s conftest.err; then
8164 ac_cpp_err=$ac_c_preproc_warn_flag
8171 if test -z "$ac_cpp_err"; then
8172 ac_header_preproc=yes
8174 echo "$as_me: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8176 ac_header_preproc=no
8178 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8180 echo "${ECHO_T}$ac_header_preproc" >&6
8182 # So? What about this header?
8183 case $ac_header_compiler:$ac_header_preproc in
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8197 echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 eval "$as_ac_Header=$ac_header_preproc"
8204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209 cat >>confdefs.h <<_ACEOF
8210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8214 { { echo "$as_me:$LINENO: error: history header not found
8215 If you have readline already installed, see config.log for details on the
8216 failure. It is possible the compiler isn't looking in the proper directory.
8217 Use --without-readline to disable readline support." >&5
8218 echo "$as_me: error: history header not found
8219 If you have readline already installed, see config.log for details on the
8220 failure. It is possible the compiler isn't looking in the proper directory.
8221 Use --without-readline to disable readline support." >&2;}
8222 { (exit 1); exit 1; }; }
8237 if test "$with_zlib" = yes; then
8238 if test "${ac_cv_header_zlib_h+set}" = set; then
8239 echo "$as_me:$LINENO: checking for zlib.h" >&5
8240 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8241 if test "${ac_cv_header_zlib_h+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8245 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8247 # Is the header compilable?
8248 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8249 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8250 cat >conftest.$ac_ext <<_ACEOF
8251 #line $LINENO "configure"
8252 #include "confdefs.h"
8253 $ac_includes_default
8256 rm -f conftest.$ac_objext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8258 (eval $ac_compile) 2>&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_header_compiler=yes
8270 echo "$as_me: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8272 ac_header_compiler=no
8274 rm -f conftest.$ac_objext conftest.$ac_ext
8275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8276 echo "${ECHO_T}$ac_header_compiler" >&6
8278 # Is the header present?
8279 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8280 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8281 cat >conftest.$ac_ext <<_ACEOF
8282 #line $LINENO "configure"
8283 #include "confdefs.h"
8286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8289 egrep -v '^ *\+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } >/dev/null; then
8294 if test -s conftest.err; then
8295 ac_cpp_err=$ac_c_preproc_warn_flag
8302 if test -z "$ac_cpp_err"; then
8303 ac_header_preproc=yes
8305 echo "$as_me: failed program was:" >&5
8306 cat conftest.$ac_ext >&5
8307 ac_header_preproc=no
8309 rm -f conftest.err conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8311 echo "${ECHO_T}$ac_header_preproc" >&6
8313 # So? What about this header?
8314 case $ac_header_compiler:$ac_header_preproc in
8316 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8317 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8318 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8319 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8321 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8322 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8323 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8324 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8325 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8326 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8328 echo "$as_me:$LINENO: checking for zlib.h" >&5
8329 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8330 if test "${ac_cv_header_zlib_h+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 ac_cv_header_zlib_h=$ac_header_preproc
8335 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8336 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8339 if test $ac_cv_header_zlib_h = yes; then
8342 { { echo "$as_me:$LINENO: error: zlib header not found
8343 If you have zlib already installed, see config.log for details on the
8344 failure. It is possible the compiler isn't looking in the proper directory.
8345 Use --without-zlib to disable zlib support." >&5
8346 echo "$as_me: error: zlib header not found
8347 If you have zlib already installed, see config.log for details on the
8348 failure. It is possible the compiler isn't looking in the proper directory.
8349 Use --without-zlib to disable zlib support." >&2;}
8350 { (exit 1); exit 1; }; }
8356 if test "$with_krb4" = yes ; then
8357 if test "${ac_cv_header_krb_h+set}" = set; then
8358 echo "$as_me:$LINENO: checking for krb.h" >&5
8359 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8360 if test "${ac_cv_header_krb_h+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8364 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8366 # Is the header compilable?
8367 echo "$as_me:$LINENO: checking krb.h usability" >&5
8368 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8369 cat >conftest.$ac_ext <<_ACEOF
8370 #line $LINENO "configure"
8371 #include "confdefs.h"
8372 $ac_includes_default
8375 rm -f conftest.$ac_objext
8376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8377 (eval $ac_compile) 2>&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -s conftest.$ac_objext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_header_compiler=yes
8389 echo "$as_me: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8391 ac_header_compiler=no
8393 rm -f conftest.$ac_objext conftest.$ac_ext
8394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8395 echo "${ECHO_T}$ac_header_compiler" >&6
8397 # Is the header present?
8398 echo "$as_me:$LINENO: checking krb.h presence" >&5
8399 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8400 cat >conftest.$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8402 #include "confdefs.h"
8405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8408 egrep -v '^ *\+' conftest.er1 >conftest.err
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } >/dev/null; then
8413 if test -s conftest.err; then
8414 ac_cpp_err=$ac_c_preproc_warn_flag
8421 if test -z "$ac_cpp_err"; then
8422 ac_header_preproc=yes
8424 echo "$as_me: failed program was:" >&5
8425 cat conftest.$ac_ext >&5
8426 ac_header_preproc=no
8428 rm -f conftest.err conftest.$ac_ext
8429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8430 echo "${ECHO_T}$ac_header_preproc" >&6
8432 # So? What about this header?
8433 case $ac_header_compiler:$ac_header_preproc in
8435 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8436 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8437 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8438 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8440 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8441 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8442 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8443 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8444 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8445 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8447 echo "$as_me:$LINENO: checking for krb.h" >&5
8448 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8449 if test "${ac_cv_header_krb_h+set}" = set; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 ac_cv_header_krb_h=$ac_header_preproc
8454 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8455 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8458 if test $ac_cv_header_krb_h = yes; then
8461 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8462 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8463 { (exit 1); exit 1; }; }
8469 if test "$with_krb5" = yes ; then
8470 if test "${ac_cv_header_krb5_h+set}" = set; then
8471 echo "$as_me:$LINENO: checking for krb5.h" >&5
8472 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8473 if test "${ac_cv_header_krb5_h+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8477 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8479 # Is the header compilable?
8480 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8481 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8482 cat >conftest.$ac_ext <<_ACEOF
8483 #line $LINENO "configure"
8484 #include "confdefs.h"
8485 $ac_includes_default
8488 rm -f conftest.$ac_objext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_header_compiler=yes
8502 echo "$as_me: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8504 ac_header_compiler=no
8506 rm -f conftest.$ac_objext conftest.$ac_ext
8507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8508 echo "${ECHO_T}$ac_header_compiler" >&6
8510 # Is the header present?
8511 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8512 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8513 cat >conftest.$ac_ext <<_ACEOF
8514 #line $LINENO "configure"
8515 #include "confdefs.h"
8518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8521 egrep -v '^ *\+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } >/dev/null; then
8526 if test -s conftest.err; then
8527 ac_cpp_err=$ac_c_preproc_warn_flag
8534 if test -z "$ac_cpp_err"; then
8535 ac_header_preproc=yes
8537 echo "$as_me: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8539 ac_header_preproc=no
8541 rm -f conftest.err conftest.$ac_ext
8542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8543 echo "${ECHO_T}$ac_header_preproc" >&6
8545 # So? What about this header?
8546 case $ac_header_compiler:$ac_header_preproc in
8548 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8549 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8550 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8551 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8553 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8554 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8556 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8558 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8560 echo "$as_me:$LINENO: checking for krb5.h" >&5
8561 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8562 if test "${ac_cv_header_krb5_h+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 ac_cv_header_krb5_h=$ac_header_preproc
8567 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8568 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8571 if test $ac_cv_header_krb5_h = yes; then
8574 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8575 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8576 { (exit 1); exit 1; }; }
8580 if test "${ac_cv_header_com_err_h+set}" = set; then
8581 echo "$as_me:$LINENO: checking for com_err.h" >&5
8582 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8583 if test "${ac_cv_header_com_err_h+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8587 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8589 # Is the header compilable?
8590 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8591 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8592 cat >conftest.$ac_ext <<_ACEOF
8593 #line $LINENO "configure"
8594 #include "confdefs.h"
8595 $ac_includes_default
8596 #include <com_err.h>
8598 rm -f conftest.$ac_objext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -s conftest.$ac_objext'
8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8610 ac_header_compiler=yes
8612 echo "$as_me: failed program was:" >&5
8613 cat conftest.$ac_ext >&5
8614 ac_header_compiler=no
8616 rm -f conftest.$ac_objext conftest.$ac_ext
8617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 echo "${ECHO_T}$ac_header_compiler" >&6
8620 # Is the header present?
8621 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8622 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8623 cat >conftest.$ac_ext <<_ACEOF
8624 #line $LINENO "configure"
8625 #include "confdefs.h"
8626 #include <com_err.h>
8628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8631 egrep -v '^ *\+' conftest.er1 >conftest.err
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } >/dev/null; then
8636 if test -s conftest.err; then
8637 ac_cpp_err=$ac_c_preproc_warn_flag
8644 if test -z "$ac_cpp_err"; then
8645 ac_header_preproc=yes
8647 echo "$as_me: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8649 ac_header_preproc=no
8651 rm -f conftest.err conftest.$ac_ext
8652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8653 echo "${ECHO_T}$ac_header_preproc" >&6
8655 # So? What about this header?
8656 case $ac_header_compiler:$ac_header_preproc in
8658 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8659 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8660 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8661 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8663 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8664 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8666 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8667 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8668 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8670 echo "$as_me:$LINENO: checking for com_err.h" >&5
8671 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8672 if test "${ac_cv_header_com_err_h+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 ac_cv_header_com_err_h=$ac_header_preproc
8677 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8678 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8681 if test $ac_cv_header_com_err_h = yes; then
8684 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8685 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8686 { (exit 1); exit 1; }; }
8692 if test "$with_openssl" = yes ; then
8693 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8694 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8695 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8696 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8700 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8702 # Is the header compilable?
8703 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8704 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8705 cat >conftest.$ac_ext <<_ACEOF
8706 #line $LINENO "configure"
8707 #include "confdefs.h"
8708 $ac_includes_default
8709 #include <openssl/ssl.h>
8711 rm -f conftest.$ac_objext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713 (eval $ac_compile) 2>&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -s conftest.$ac_objext'
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 ac_header_compiler=yes
8725 echo "$as_me: failed program was:" >&5
8726 cat conftest.$ac_ext >&5
8727 ac_header_compiler=no
8729 rm -f conftest.$ac_objext conftest.$ac_ext
8730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8731 echo "${ECHO_T}$ac_header_compiler" >&6
8733 # Is the header present?
8734 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8735 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8736 cat >conftest.$ac_ext <<_ACEOF
8737 #line $LINENO "configure"
8738 #include "confdefs.h"
8739 #include <openssl/ssl.h>
8741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8744 egrep -v '^ *\+' conftest.er1 >conftest.err
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } >/dev/null; then
8749 if test -s conftest.err; then
8750 ac_cpp_err=$ac_c_preproc_warn_flag
8757 if test -z "$ac_cpp_err"; then
8758 ac_header_preproc=yes
8760 echo "$as_me: failed program was:" >&5
8761 cat conftest.$ac_ext >&5
8762 ac_header_preproc=no
8764 rm -f conftest.err conftest.$ac_ext
8765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8766 echo "${ECHO_T}$ac_header_preproc" >&6
8768 # So? What about this header?
8769 case $ac_header_compiler:$ac_header_preproc in
8771 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8772 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8774 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8776 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8777 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8779 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8780 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8781 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8783 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8784 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8785 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8790 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8791 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8794 if test $ac_cv_header_openssl_ssl_h = yes; then
8797 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8798 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8799 { (exit 1); exit 1; }; }
8803 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8804 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8805 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8806 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8810 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8812 # Is the header compilable?
8813 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8814 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8815 cat >conftest.$ac_ext <<_ACEOF
8816 #line $LINENO "configure"
8817 #include "confdefs.h"
8818 $ac_includes_default
8819 #include <openssl/err.h>
8821 rm -f conftest.$ac_objext
8822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8823 (eval $ac_compile) 2>&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try='test -s conftest.$ac_objext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_header_compiler=yes
8835 echo "$as_me: failed program was:" >&5
8836 cat conftest.$ac_ext >&5
8837 ac_header_compiler=no
8839 rm -f conftest.$ac_objext conftest.$ac_ext
8840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8841 echo "${ECHO_T}$ac_header_compiler" >&6
8843 # Is the header present?
8844 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8845 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8846 cat >conftest.$ac_ext <<_ACEOF
8847 #line $LINENO "configure"
8848 #include "confdefs.h"
8849 #include <openssl/err.h>
8851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8854 egrep -v '^ *\+' conftest.er1 >conftest.err
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } >/dev/null; then
8859 if test -s conftest.err; then
8860 ac_cpp_err=$ac_c_preproc_warn_flag
8867 if test -z "$ac_cpp_err"; then
8868 ac_header_preproc=yes
8870 echo "$as_me: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8872 ac_header_preproc=no
8874 rm -f conftest.err conftest.$ac_ext
8875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8876 echo "${ECHO_T}$ac_header_preproc" >&6
8878 # So? What about this header?
8879 case $ac_header_compiler:$ac_header_preproc in
8881 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8882 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8884 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8886 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8887 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8888 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8889 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8890 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8891 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8893 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8894 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8895 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 ac_cv_header_openssl_err_h=$ac_header_preproc
8900 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8901 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8904 if test $ac_cv_header_openssl_err_h = yes; then
8907 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8908 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8909 { (exit 1); exit 1; }; }
8915 if test "$with_pam" = yes ; then
8917 for ac_header in security/pam_appl.h
8919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8921 echo "$as_me:$LINENO: checking for $ac_header" >&5
8922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8929 # Is the header compilable?
8930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8932 cat >conftest.$ac_ext <<_ACEOF
8933 #line $LINENO "configure"
8934 #include "confdefs.h"
8935 $ac_includes_default
8936 #include <$ac_header>
8938 rm -f conftest.$ac_objext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940 (eval $ac_compile) 2>&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -s conftest.$ac_objext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_header_compiler=yes
8952 echo "$as_me: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8954 ac_header_compiler=no
8956 rm -f conftest.$ac_objext conftest.$ac_ext
8957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8958 echo "${ECHO_T}$ac_header_compiler" >&6
8960 # Is the header present?
8961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8963 cat >conftest.$ac_ext <<_ACEOF
8964 #line $LINENO "configure"
8965 #include "confdefs.h"
8966 #include <$ac_header>
8968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8971 egrep -v '^ *\+' conftest.er1 >conftest.err
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } >/dev/null; then
8976 if test -s conftest.err; then
8977 ac_cpp_err=$ac_c_preproc_warn_flag
8984 if test -z "$ac_cpp_err"; then
8985 ac_header_preproc=yes
8987 echo "$as_me: failed program was:" >&5
8988 cat conftest.$ac_ext >&5
8989 ac_header_preproc=no
8991 rm -f conftest.err conftest.$ac_ext
8992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8993 echo "${ECHO_T}$ac_header_preproc" >&6
8995 # So? What about this header?
8996 case $ac_header_compiler:$ac_header_preproc in
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9010 echo "$as_me:$LINENO: checking for $ac_header" >&5
9011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 eval "$as_ac_Header=$ac_header_preproc"
9017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9022 cat >>confdefs.h <<_ACEOF
9023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9028 for ac_header in pam/pam_appl.h
9030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9032 echo "$as_me:$LINENO: checking for $ac_header" >&5
9033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9040 # Is the header compilable?
9041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9043 cat >conftest.$ac_ext <<_ACEOF
9044 #line $LINENO "configure"
9045 #include "confdefs.h"
9046 $ac_includes_default
9047 #include <$ac_header>
9049 rm -f conftest.$ac_objext
9050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9051 (eval $ac_compile) 2>&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -s conftest.$ac_objext'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_header_compiler=yes
9063 echo "$as_me: failed program was:" >&5
9064 cat conftest.$ac_ext >&5
9065 ac_header_compiler=no
9067 rm -f conftest.$ac_objext conftest.$ac_ext
9068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9069 echo "${ECHO_T}$ac_header_compiler" >&6
9071 # Is the header present?
9072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line $LINENO "configure"
9076 #include "confdefs.h"
9077 #include <$ac_header>
9079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9082 egrep -v '^ *\+' conftest.er1 >conftest.err
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } >/dev/null; then
9087 if test -s conftest.err; then
9088 ac_cpp_err=$ac_c_preproc_warn_flag
9095 if test -z "$ac_cpp_err"; then
9096 ac_header_preproc=yes
9098 echo "$as_me: failed program was:" >&5
9099 cat conftest.$ac_ext >&5
9100 ac_header_preproc=no
9102 rm -f conftest.err conftest.$ac_ext
9103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9104 echo "${ECHO_T}$ac_header_preproc" >&6
9106 # So? What about this header?
9107 case $ac_header_compiler:$ac_header_preproc in
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9121 echo "$as_me:$LINENO: checking for $ac_header" >&5
9122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 eval "$as_ac_Header=$ac_header_preproc"
9128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9133 cat >>confdefs.h <<_ACEOF
9134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9138 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9139 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9140 { (exit 1); exit 1; }; }
9151 if test "$with_rendezvous" = yes ; then
9152 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9153 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9154 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9155 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9159 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9161 # Is the header compilable?
9162 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9163 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 #include "confdefs.h"
9167 $ac_includes_default
9168 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9170 rm -f conftest.$ac_objext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9172 (eval $ac_compile) 2>&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try='test -s conftest.$ac_objext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 ac_header_compiler=yes
9184 echo "$as_me: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9186 ac_header_compiler=no
9188 rm -f conftest.$ac_objext conftest.$ac_ext
9189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9190 echo "${ECHO_T}$ac_header_compiler" >&6
9192 # Is the header present?
9193 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9194 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9195 cat >conftest.$ac_ext <<_ACEOF
9196 #line $LINENO "configure"
9197 #include "confdefs.h"
9198 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9203 egrep -v '^ *\+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } >/dev/null; then
9208 if test -s conftest.err; then
9209 ac_cpp_err=$ac_c_preproc_warn_flag
9216 if test -z "$ac_cpp_err"; then
9217 ac_header_preproc=yes
9219 echo "$as_me: failed program was:" >&5
9220 cat conftest.$ac_ext >&5
9221 ac_header_preproc=no
9223 rm -f conftest.err conftest.$ac_ext
9224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9225 echo "${ECHO_T}$ac_header_preproc" >&6
9227 # So? What about this header?
9228 case $ac_header_compiler:$ac_header_preproc in
9230 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9231 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9232 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9233 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9235 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9236 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9237 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9238 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9240 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9242 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9243 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9244 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9249 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9250 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9253 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9256 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9257 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9258 { (exit 1); exit 1; }; }
9266 ## Types, structures, compiler characteristics
9270 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9271 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9272 if test "${ac_cv_c_const+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 cat >conftest.$ac_ext <<_ACEOF
9276 #line $LINENO "configure"
9277 #include "confdefs.h"
9279 #ifdef F77_DUMMY_MAIN
9283 int F77_DUMMY_MAIN() { return 1; }
9288 /* FIXME: Include the comments suggested by Paul. */
9290 /* Ultrix mips cc rejects this. */
9291 typedef int charset[2];
9293 /* SunOS 4.1.1 cc rejects this. */
9294 char const *const *ccp;
9296 /* NEC SVR4.0.2 mips cc rejects this. */
9297 struct point {int x, y;};
9298 static struct point const zero = {0,0};
9299 /* AIX XL C 1.02.0.0 rejects this.
9300 It does not let you subtract one const X* pointer from another in
9301 an arm of an if-expression whose if-part is not a constant
9303 const char *g = "string";
9304 ccp = &g + (g ? g-g : 0);
9305 /* HPUX 7.0 cc rejects these. */
9308 ccp = (char const *const *) p;
9309 { /* SCO 3.2v4 cc rejects this. */
9311 char const *s = 0 ? (char *) 0 : (char const *) 0;
9315 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9317 const int *foo = &x[0];
9320 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9321 typedef const int *iptr;
9325 { /* AIX XL C 1.02.0.0 rejects this saying
9326 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9327 struct s { int j; const int *ap[3]; };
9328 struct s *b; b->j = 5;
9330 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -s conftest.$ac_objext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9353 echo "$as_me: failed program was:" >&5
9354 cat conftest.$ac_ext >&5
9357 rm -f conftest.$ac_objext conftest.$ac_ext
9359 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9360 echo "${ECHO_T}$ac_cv_c_const" >&6
9361 if test $ac_cv_c_const = no; then
9363 cat >>confdefs.h <<\_ACEOF
9369 echo "$as_me:$LINENO: checking for inline" >&5
9370 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9371 if test "${ac_cv_c_inline+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 for ac_kw in inline __inline__ __inline; do
9376 cat >conftest.$ac_ext <<_ACEOF
9377 #line $LINENO "configure"
9378 #include "confdefs.h"
9380 static $ac_kw int static_foo () {return 0; }
9381 $ac_kw int foo () {return 0; }
9385 rm -f conftest.$ac_objext
9386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387 (eval $ac_compile) 2>&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -s conftest.$ac_objext'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 ac_cv_c_inline=$ac_kw; break
9399 echo "$as_me: failed program was:" >&5
9400 cat conftest.$ac_ext >&5
9402 rm -f conftest.$ac_objext conftest.$ac_ext
9406 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9407 echo "${ECHO_T}$ac_cv_c_inline" >&6
9408 case $ac_cv_c_inline in
9411 cat >>confdefs.h <<\_ACEOF
9415 *) cat >>confdefs.h <<_ACEOF
9416 #define inline $ac_cv_c_inline
9421 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9422 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9423 if test "${ac_cv_c_stringize+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9428 #include "confdefs.h"
9431 char *s = x(teststring);
9433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9434 egrep "#teststring" >/dev/null 2>&1; then
9435 ac_cv_c_stringize=no
9437 ac_cv_c_stringize=yes
9442 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9443 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9444 if test $ac_cv_c_stringize = yes; then
9446 cat >>confdefs.h <<\_ACEOF
9447 #define HAVE_STRINGIZE 1
9452 echo "$as_me:$LINENO: checking for signed types" >&5
9453 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9454 if test "${pgac_cv_c_signed+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 cat >conftest.$ac_ext <<_ACEOF
9458 #line $LINENO "configure"
9459 #include "confdefs.h"
9461 #ifdef F77_DUMMY_MAIN
9465 int F77_DUMMY_MAIN() { return 1; }
9470 signed char c; signed short s; signed int i;
9475 rm -f conftest.$ac_objext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9477 (eval $ac_compile) 2>&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
9481 { ac_try='test -s conftest.$ac_objext'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 pgac_cv_c_signed=yes
9489 echo "$as_me: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9493 rm -f conftest.$ac_objext conftest.$ac_ext
9495 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9496 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9497 if test x"$pgac_cv_c_signed" = xno ; then
9499 cat >>confdefs.h <<\_ACEOF
9504 echo "$as_me:$LINENO: checking for working volatile" >&5
9505 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9506 if test "${ac_cv_c_volatile+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 cat >conftest.$ac_ext <<_ACEOF
9510 #line $LINENO "configure"
9511 #include "confdefs.h"
9513 #ifdef F77_DUMMY_MAIN
9517 int F77_DUMMY_MAIN() { return 1; }
9529 rm -f conftest.$ac_objext
9530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9531 (eval $ac_compile) 2>&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -s conftest.$ac_objext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_c_volatile=yes
9543 echo "$as_me: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9547 rm -f conftest.$ac_objext conftest.$ac_ext
9549 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9550 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9551 if test $ac_cv_c_volatile = no; then
9553 cat >>confdefs.h <<\_ACEOF
9559 echo "$as_me:$LINENO: checking for __func__" >&5
9560 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9561 if test "${pgac_cv_funcname_func_support+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 cat >conftest.$ac_ext <<_ACEOF
9565 #line $LINENO "configure"
9566 #include "confdefs.h"
9568 #ifdef F77_DUMMY_MAIN
9572 int F77_DUMMY_MAIN() { return 1; }
9577 printf("%s\n", __func__);
9582 rm -f conftest.$ac_objext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584 (eval $ac_compile) 2>&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); } &&
9588 { ac_try='test -s conftest.$ac_objext'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; }; then
9594 pgac_cv_funcname_func_support=yes
9596 echo "$as_me: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 pgac_cv_funcname_func_support=no
9600 rm -f conftest.$ac_objext conftest.$ac_ext
9602 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9603 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9604 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9606 cat >>confdefs.h <<\_ACEOF
9607 #define HAVE_FUNCNAME__FUNC 1
9611 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9612 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9613 if test "${pgac_cv_funcname_function_support+set}" = set; then
9614 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 cat >conftest.$ac_ext <<_ACEOF
9617 #line $LINENO "configure"
9618 #include "confdefs.h"
9620 #ifdef F77_DUMMY_MAIN
9624 int F77_DUMMY_MAIN() { return 1; }
9629 printf("%s\n", __FUNCTION__);
9634 rm -f conftest.$ac_objext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9636 (eval $ac_compile) 2>&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -s conftest.$ac_objext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 pgac_cv_funcname_function_support=yes
9648 echo "$as_me: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9650 pgac_cv_funcname_function_support=no
9652 rm -f conftest.$ac_objext conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9655 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9656 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9658 cat >>confdefs.h <<\_ACEOF
9659 #define HAVE_FUNCNAME__FUNCTION 1
9664 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9665 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9666 if test "${ac_cv_struct_tm+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 cat >conftest.$ac_ext <<_ACEOF
9670 #line $LINENO "configure"
9671 #include "confdefs.h"
9672 #include <sys/types.h>
9675 #ifdef F77_DUMMY_MAIN
9679 int F77_DUMMY_MAIN() { return 1; }
9684 struct tm *tp; tp->tm_sec;
9689 rm -f conftest.$ac_objext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
9695 { ac_try='test -s conftest.$ac_objext'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 ac_cv_struct_tm=time.h
9703 echo "$as_me: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9705 ac_cv_struct_tm=sys/time.h
9707 rm -f conftest.$ac_objext conftest.$ac_ext
9709 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9710 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9711 if test $ac_cv_struct_tm = sys/time.h; then
9713 cat >>confdefs.h <<\_ACEOF
9714 #define TM_IN_SYS_TIME 1
9719 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9720 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9721 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 cat >conftest.$ac_ext <<_ACEOF
9725 #line $LINENO "configure"
9726 #include "confdefs.h"
9727 #include <sys/types.h>
9728 #include <$ac_cv_struct_tm>
9731 #ifdef F77_DUMMY_MAIN
9735 int F77_DUMMY_MAIN() { return 1; }
9740 static struct tm ac_aggr;
9741 if (ac_aggr.tm_zone)
9747 rm -f conftest.$ac_objext
9748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9749 (eval $ac_compile) 2>&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } &&
9753 { ac_try='test -s conftest.$ac_objext'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9759 ac_cv_member_struct_tm_tm_zone=yes
9761 echo "$as_me: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9763 ac_cv_member_struct_tm_tm_zone=no
9765 rm -f conftest.$ac_objext conftest.$ac_ext
9767 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9768 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9769 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9771 cat >>confdefs.h <<_ACEOF
9772 #define HAVE_STRUCT_TM_TM_ZONE 1
9778 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9780 cat >>confdefs.h <<\_ACEOF
9781 #define HAVE_TM_ZONE 1
9785 echo "$as_me:$LINENO: checking for tzname" >&5
9786 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9787 if test "${ac_cv_var_tzname+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 cat >conftest.$ac_ext <<_ACEOF
9791 #line $LINENO "configure"
9792 #include "confdefs.h"
9794 #ifndef tzname /* For SGI. */
9795 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9798 #ifdef F77_DUMMY_MAIN
9802 int F77_DUMMY_MAIN() { return 1; }
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814 (eval $ac_link) 2>&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824 ac_cv_var_tzname=yes
9826 echo "$as_me: failed program was:" >&5
9827 cat conftest.$ac_ext >&5
9830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9832 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9833 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9834 if test $ac_cv_var_tzname = yes; then
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_TZNAME 1
9842 echo "$as_me:$LINENO: checking for union semun" >&5
9843 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9844 if test "${ac_cv_type_union_semun+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 cat >conftest.$ac_ext <<_ACEOF
9848 #line $LINENO "configure"
9849 #include "confdefs.h"
9850 #include <sys/types.h>
9851 #include <sys/ipc.h>
9852 #include <sys/sem.h>
9854 #ifdef F77_DUMMY_MAIN
9858 int F77_DUMMY_MAIN() { return 1; }
9863 if ((union semun *) 0)
9865 if (sizeof (union semun))
9871 rm -f conftest.$ac_objext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9873 (eval $ac_compile) 2>&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -s conftest.$ac_objext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_type_union_semun=yes
9885 echo "$as_me: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 ac_cv_type_union_semun=no
9889 rm -f conftest.$ac_objext conftest.$ac_ext
9891 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9892 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9893 if test $ac_cv_type_union_semun = yes; then
9895 cat >>confdefs.h <<_ACEOF
9896 #define HAVE_UNION_SEMUN 1
9902 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9903 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9904 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 cat >conftest.$ac_ext <<_ACEOF
9908 #line $LINENO "configure"
9909 #include "confdefs.h"
9910 #include <sys/types.h>
9911 #ifdef HAVE_SYS_UN_H
9916 #ifdef F77_DUMMY_MAIN
9920 int F77_DUMMY_MAIN() { return 1; }
9925 if ((struct sockaddr_un *) 0)
9927 if (sizeof (struct sockaddr_un))
9933 rm -f conftest.$ac_objext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9935 (eval $ac_compile) 2>&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -s conftest.$ac_objext'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; }; then
9945 ac_cv_type_struct_sockaddr_un=yes
9947 echo "$as_me: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9949 ac_cv_type_struct_sockaddr_un=no
9951 rm -f conftest.$ac_objext conftest.$ac_ext
9953 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9954 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9955 if test $ac_cv_type_struct_sockaddr_un = yes; then
9957 cat >>confdefs.h <<_ACEOF
9958 #define HAVE_STRUCT_SOCKADDR_UN 1
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_UNIX_SOCKETS 1
9968 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9969 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9970 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9975 #include "confdefs.h"
9976 #include <sys/types.h>
9977 #ifdef HAVE_SYS_SOCKET_H
9978 #include <sys/socket.h>
9982 #ifdef F77_DUMMY_MAIN
9986 int F77_DUMMY_MAIN() { return 1; }
9991 if ((struct sockaddr_storage *) 0)
9993 if (sizeof (struct sockaddr_storage))
9999 rm -f conftest.$ac_objext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10001 (eval $ac_compile) 2>&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } &&
10005 { ac_try='test -s conftest.$ac_objext'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011 ac_cv_type_struct_sockaddr_storage=yes
10013 echo "$as_me: failed program was:" >&5
10014 cat conftest.$ac_ext >&5
10015 ac_cv_type_struct_sockaddr_storage=no
10017 rm -f conftest.$ac_objext conftest.$ac_ext
10019 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10020 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10021 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10023 cat >>confdefs.h <<_ACEOF
10024 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10030 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10031 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10032 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 cat >conftest.$ac_ext <<_ACEOF
10036 #line $LINENO "configure"
10037 #include "confdefs.h"
10038 #include <sys/types.h>
10039 #include <sys/socket.h>
10043 #ifdef F77_DUMMY_MAIN
10044 # ifdef __cplusplus
10047 int F77_DUMMY_MAIN() { return 1; }
10052 if ((struct addrinfo *) 0)
10054 if (sizeof (struct addrinfo))
10060 rm -f conftest.$ac_objext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10062 (eval $ac_compile) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -s conftest.$ac_objext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_type_struct_addrinfo=yes
10074 echo "$as_me: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10076 ac_cv_type_struct_addrinfo=no
10078 rm -f conftest.$ac_objext conftest.$ac_ext
10080 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10081 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10082 if test $ac_cv_type_struct_addrinfo = yes; then
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE_STRUCT_ADDRINFO 1
10092 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10093 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10094 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 #include "confdefs.h"
10100 #include <sys/param.h>
10101 #include <sys/types.h>
10102 #include <sys/socket.h>
10103 #include <sys/ucred.h>
10105 #ifdef F77_DUMMY_MAIN
10106 # ifdef __cplusplus
10109 int F77_DUMMY_MAIN() { return 1; }
10114 if ((struct cmsgcred *) 0)
10116 if (sizeof (struct cmsgcred))
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -s conftest.$ac_objext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_type_struct_cmsgcred=yes
10136 echo "$as_me: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 ac_cv_type_struct_cmsgcred=no
10140 rm -f conftest.$ac_objext conftest.$ac_ext
10142 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10143 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10144 if test $ac_cv_type_struct_cmsgcred = yes; then
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE_STRUCT_CMSGCRED 1
10152 echo "$as_me:$LINENO: checking for struct fcred" >&5
10153 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10154 if test "${ac_cv_type_struct_fcred+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 cat >conftest.$ac_ext <<_ACEOF
10158 #line $LINENO "configure"
10159 #include "confdefs.h"
10160 #include <sys/param.h>
10161 #include <sys/types.h>
10162 #include <sys/socket.h>
10163 #include <sys/ucred.h>
10165 #ifdef F77_DUMMY_MAIN
10166 # ifdef __cplusplus
10169 int F77_DUMMY_MAIN() { return 1; }
10174 if ((struct fcred *) 0)
10176 if (sizeof (struct fcred))
10182 rm -f conftest.$ac_objext
10183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10184 (eval $ac_compile) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -s conftest.$ac_objext'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_type_struct_fcred=yes
10196 echo "$as_me: failed program was:" >&5
10197 cat conftest.$ac_ext >&5
10198 ac_cv_type_struct_fcred=no
10200 rm -f conftest.$ac_objext conftest.$ac_ext
10202 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10203 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10204 if test $ac_cv_type_struct_fcred = yes; then
10206 cat >>confdefs.h <<_ACEOF
10207 #define HAVE_STRUCT_FCRED 1
10212 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10213 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10214 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 cat >conftest.$ac_ext <<_ACEOF
10218 #line $LINENO "configure"
10219 #include "confdefs.h"
10220 #include <sys/param.h>
10221 #include <sys/types.h>
10222 #include <sys/socket.h>
10223 #include <sys/ucred.h>
10225 #ifdef F77_DUMMY_MAIN
10226 # ifdef __cplusplus
10229 int F77_DUMMY_MAIN() { return 1; }
10234 if ((struct sockcred *) 0)
10236 if (sizeof (struct sockcred))
10242 rm -f conftest.$ac_objext
10243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10244 (eval $ac_compile) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } &&
10248 { ac_try='test -s conftest.$ac_objext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_cv_type_struct_sockcred=yes
10256 echo "$as_me: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10258 ac_cv_type_struct_sockcred=no
10260 rm -f conftest.$ac_objext conftest.$ac_ext
10262 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10263 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10264 if test $ac_cv_type_struct_sockcred = yes; then
10266 cat >>confdefs.h <<_ACEOF
10267 #define HAVE_STRUCT_SOCKCRED 1
10274 if test "$with_zlib" = yes; then
10275 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10276 # did not). While we could work around the lack of z_streamp, it
10277 # seems unwise to encourage people to use such old zlib versions...
10278 echo "$as_me:$LINENO: checking for z_streamp" >&5
10279 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10280 if test "${ac_cv_type_z_streamp+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 cat >conftest.$ac_ext <<_ACEOF
10284 #line $LINENO "configure"
10285 #include "confdefs.h"
10288 #ifdef F77_DUMMY_MAIN
10289 # ifdef __cplusplus
10292 int F77_DUMMY_MAIN() { return 1; }
10297 if ((z_streamp *) 0)
10299 if (sizeof (z_streamp))
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307 (eval $ac_compile) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_cv_type_z_streamp=yes
10319 echo "$as_me: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 ac_cv_type_z_streamp=no
10323 rm -f conftest.$ac_objext conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10326 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10327 if test $ac_cv_type_z_streamp = yes; then
10330 { { echo "$as_me:$LINENO: error: zlib version is too old
10331 Use --without-zlib to disable zlib support." >&5
10332 echo "$as_me: error: zlib version is too old
10333 Use --without-zlib to disable zlib support." >&2;}
10334 { (exit 1); exit 1; }; }
10339 if test "$with_krb5" = yes; then
10340 # Check for differences between MIT and Heimdal (KTH) releases
10341 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10342 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10343 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 cat >conftest.$ac_ext <<_ACEOF
10347 #line $LINENO "configure"
10348 #include "confdefs.h"
10351 #ifdef F77_DUMMY_MAIN
10352 # ifdef __cplusplus
10355 int F77_DUMMY_MAIN() { return 1; }
10360 static krb5_ticket ac_aggr;
10361 if (ac_aggr.enc_part2)
10367 rm -f conftest.$ac_objext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10369 (eval $ac_compile) 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -s conftest.$ac_objext'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 ac_cv_member_krb5_ticket_enc_part2=yes
10381 echo "$as_me: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 ac_cv_member_krb5_ticket_enc_part2=no
10385 rm -f conftest.$ac_objext conftest.$ac_ext
10387 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10388 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10389 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10391 cat >>confdefs.h <<_ACEOF
10392 #define HAVE_KRB5_TICKET_ENC_PART2 1
10397 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10398 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10399 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 cat >conftest.$ac_ext <<_ACEOF
10403 #line $LINENO "configure"
10404 #include "confdefs.h"
10407 #ifdef F77_DUMMY_MAIN
10408 # ifdef __cplusplus
10411 int F77_DUMMY_MAIN() { return 1; }
10416 static krb5_ticket ac_aggr;
10417 if (ac_aggr.client)
10423 rm -f conftest.$ac_objext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -s conftest.$ac_objext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_cv_member_krb5_ticket_client=yes
10437 echo "$as_me: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10439 ac_cv_member_krb5_ticket_client=no
10441 rm -f conftest.$ac_objext conftest.$ac_ext
10443 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10444 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10445 if test $ac_cv_member_krb5_ticket_client = yes; then
10447 cat >>confdefs.h <<_ACEOF
10448 #define HAVE_KRB5_TICKET_CLIENT 1
10453 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10454 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10455 { (exit 1); exit 1; }; }
10460 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10461 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10462 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 cat >conftest.$ac_ext <<_ACEOF
10466 #line $LINENO "configure"
10467 #include "confdefs.h"
10470 #ifdef F77_DUMMY_MAIN
10471 # ifdef __cplusplus
10474 int F77_DUMMY_MAIN() { return 1; }
10479 static krb5_error ac_aggr;
10480 if (ac_aggr.text.data)
10486 rm -f conftest.$ac_objext
10487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488 (eval $ac_compile) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
10492 { ac_try='test -s conftest.$ac_objext'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }; then
10498 ac_cv_member_krb5_error_text_data=yes
10500 echo "$as_me: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10502 ac_cv_member_krb5_error_text_data=no
10504 rm -f conftest.$ac_objext conftest.$ac_ext
10506 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10507 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10508 if test $ac_cv_member_krb5_error_text_data = yes; then
10510 cat >>confdefs.h <<_ACEOF
10511 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10516 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10517 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10518 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 cat >conftest.$ac_ext <<_ACEOF
10522 #line $LINENO "configure"
10523 #include "confdefs.h"
10526 #ifdef F77_DUMMY_MAIN
10527 # ifdef __cplusplus
10530 int F77_DUMMY_MAIN() { return 1; }
10535 static krb5_error ac_aggr;
10536 if (ac_aggr.e_data)
10542 rm -f conftest.$ac_objext
10543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10544 (eval $ac_compile) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -s conftest.$ac_objext'
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; }; then
10554 ac_cv_member_krb5_error_e_data=yes
10556 echo "$as_me: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10558 ac_cv_member_krb5_error_e_data=no
10560 rm -f conftest.$ac_objext conftest.$ac_ext
10562 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10563 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10564 if test $ac_cv_member_krb5_error_e_data = yes; then
10566 cat >>confdefs.h <<_ACEOF
10567 #define HAVE_KRB5_ERROR_E_DATA 1
10572 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10573 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10574 { (exit 1); exit 1; }; }
10583 ## Functions, global variables
10586 echo "$as_me:$LINENO: checking for int timezone" >&5
10587 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10588 if test "${pgac_cv_var_int_timezone+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 cat >conftest.$ac_ext <<_ACEOF
10592 #line $LINENO "configure"
10593 #include "confdefs.h"
10596 #ifdef F77_DUMMY_MAIN
10597 # ifdef __cplusplus
10600 int F77_DUMMY_MAIN() { return 1; }
10605 res = timezone / 60;
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -s conftest$ac_exeext'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 pgac_cv_var_int_timezone=yes
10624 echo "$as_me: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10626 pgac_cv_var_int_timezone=no
10628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10630 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10631 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10632 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10634 cat >>confdefs.h <<\_ACEOF
10635 #define HAVE_INT_TIMEZONE
10639 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10640 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10641 if test "${ac_cv_func_accept_arg1+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 if test "${ac_cv_func_accept_arg2+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 if test "${ac_cv_func_accept_arg3+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10651 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10652 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10653 cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10655 #include "confdefs.h"
10656 #ifdef HAVE_SYS_TYPES_H
10657 #include <sys/types.h>
10659 #ifdef HAVE_SYS_SOCKET_H
10660 #include <sys/socket.h>
10662 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10663 #ifdef F77_DUMMY_MAIN
10664 # ifdef __cplusplus
10667 int F77_DUMMY_MAIN() { return 1; }
10677 rm -f conftest.$ac_objext
10678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10679 (eval $ac_compile) 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -s conftest.$ac_objext'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 ac_not_found=no; break 3
10691 echo "$as_me: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10695 rm -f conftest.$ac_objext conftest.$ac_ext
10699 if test "$ac_not_found" = yes; then
10700 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10701 echo "$as_me: error: could not determine argument types" >&2;}
10702 { (exit 1); exit 1; }; }
10704 if test "$ac_cv_func_accept_arg3" = "void"; then
10705 ac_cv_func_accept_arg3=int
10713 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10714 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10716 cat >>confdefs.h <<_ACEOF
10717 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10721 cat >>confdefs.h <<_ACEOF
10722 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10726 cat >>confdefs.h <<_ACEOF
10727 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10731 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10732 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10733 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 cat >conftest.$ac_ext <<_ACEOF
10737 #line $LINENO "configure"
10738 #include "confdefs.h"
10739 #include <sys/time.h>
10740 #ifdef F77_DUMMY_MAIN
10741 # ifdef __cplusplus
10744 int F77_DUMMY_MAIN() { return 1; }
10749 struct timeval *tp;
10750 struct timezone *tzp;
10751 gettimeofday(tp,tzp);
10756 rm -f conftest.$ac_objext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10758 (eval $ac_compile) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -s conftest.$ac_objext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 pgac_cv_func_gettimeofday_1arg=no
10770 echo "$as_me: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 pgac_cv_func_gettimeofday_1arg=yes
10774 rm -f conftest.$ac_objext conftest.$ac_ext
10776 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10777 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10778 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10780 cat >>confdefs.h <<\_ACEOF
10781 #define GETTIMEOFDAY_1ARG
10788 # SunOS doesn't handle negative byte comparisons properly with +/- return
10789 echo "$as_me:$LINENO: checking for working memcmp" >&5
10790 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10791 if test "${ac_cv_func_memcmp_working+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 if test "$cross_compiling" = yes; then
10795 ac_cv_func_memcmp_working=no
10797 cat >conftest.$ac_ext <<_ACEOF
10798 #line $LINENO "configure"
10799 #include "confdefs.h"
10801 #ifdef F77_DUMMY_MAIN
10802 # ifdef __cplusplus
10805 int F77_DUMMY_MAIN() { return 1; }
10811 /* Some versions of memcmp are not 8-bit clean. */
10812 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10813 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10816 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10817 or more and with at least one buffer not starting on a 4-byte boundary.
10818 William Lewis provided this test program. */
10823 for (i = 0; i < 4; i++)
10827 strcpy (a, "--------01111111");
10828 strcpy (b, "--------10000000");
10829 if (memcmp (a, b, 16) >= 0)
10839 rm -f conftest$ac_exeext
10840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10841 (eval $ac_link) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_cv_func_memcmp_working=yes
10852 echo "$as_me: program exited with status $ac_status" >&5
10853 echo "$as_me: failed program was:" >&5
10854 cat conftest.$ac_ext >&5
10855 ( exit $ac_status )
10856 ac_cv_func_memcmp_working=no
10858 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10861 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10862 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10863 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10882 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10885 echo "$as_me:$LINENO: checking for $ac_func" >&5
10886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10887 if eval "test \"\${$as_ac_var+set}\" = set"; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 cat >conftest.$ac_ext <<_ACEOF
10891 #line $LINENO "configure"
10892 #include "confdefs.h"
10893 /* System header to define __stub macros and hopefully few prototypes,
10894 which can conflict with char $ac_func (); below. */
10895 #include <assert.h>
10896 /* Override any gcc2 internal prototype to avoid an error. */
10900 /* We use char because int might match the return type of a gcc2
10901 builtin and then its argument prototype would still apply. */
10905 #ifdef F77_DUMMY_MAIN
10906 # ifdef __cplusplus
10909 int F77_DUMMY_MAIN() { return 1; }
10914 /* The GNU C library defines this for functions which it implements
10915 to always fail with ENOSYS. Some functions are actually named
10916 something starting with __ and the normal name is an alias. */
10917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929 (eval $ac_link) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } &&
10933 { ac_try='test -s conftest$ac_exeext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 eval "$as_ac_var=yes"
10941 echo "$as_me: failed program was:" >&5
10942 cat conftest.$ac_ext >&5
10943 eval "$as_ac_var=no"
10945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10949 if test `eval echo '${'$as_ac_var'}'` = yes; then
10950 cat >>confdefs.h <<_ACEOF
10951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10958 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10959 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10960 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10965 #include "confdefs.h"
10966 #include <unistd.h>
10968 #ifdef F77_DUMMY_MAIN
10969 # ifdef __cplusplus
10972 int F77_DUMMY_MAIN() { return 1; }
10978 char *p = (char *) fdatasync;
10985 rm -f conftest.$ac_objext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987 (eval $ac_compile) 2>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try='test -s conftest.$ac_objext'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_cv_have_decl_fdatasync=yes
10999 echo "$as_me: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11001 ac_cv_have_decl_fdatasync=no
11003 rm -f conftest.$ac_objext conftest.$ac_ext
11005 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11006 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11007 if test $ac_cv_have_decl_fdatasync = yes; then
11009 cat >>confdefs.h <<_ACEOF
11010 #define HAVE_DECL_FDATASYNC 1
11015 cat >>confdefs.h <<_ACEOF
11016 #define HAVE_DECL_FDATASYNC 0
11024 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11025 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11026 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 cat >conftest.$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11031 #include "confdefs.h"
11032 $ac_includes_default
11033 #include <netinet/in.h>
11035 #ifdef F77_DUMMY_MAIN
11036 # ifdef __cplusplus
11039 int F77_DUMMY_MAIN() { return 1; }
11044 if ((struct sockaddr_in6 *) 0)
11046 if (sizeof (struct sockaddr_in6))
11052 rm -f conftest.$ac_objext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11054 (eval $ac_compile) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -s conftest.$ac_objext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 ac_cv_type_struct_sockaddr_in6=yes
11066 echo "$as_me: failed program was:" >&5
11067 cat conftest.$ac_ext >&5
11068 ac_cv_type_struct_sockaddr_in6=no
11070 rm -f conftest.$ac_objext conftest.$ac_ext
11072 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11073 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11074 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11075 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11076 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11077 if test "${ac_cv_func_inet_ntop+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 cat >conftest.$ac_ext <<_ACEOF
11081 #line $LINENO "configure"
11082 #include "confdefs.h"
11083 /* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char inet_ntop (); below. */
11085 #include <assert.h>
11086 /* Override any gcc2 internal prototype to avoid an error. */
11090 /* We use char because int might match the return type of a gcc2
11091 builtin and then its argument prototype would still apply. */
11095 #ifdef F77_DUMMY_MAIN
11096 # ifdef __cplusplus
11099 int F77_DUMMY_MAIN() { return 1; }
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119 (eval $ac_link) 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -s conftest$ac_exeext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_cv_func_inet_ntop=yes
11131 echo "$as_me: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11133 ac_cv_func_inet_ntop=no
11135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11137 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11138 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11139 if test $ac_cv_func_inet_ntop = yes; then
11141 cat >>confdefs.h <<\_ACEOF
11142 #define HAVE_IPV6 1
11150 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11151 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11152 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 cat >conftest.$ac_ext <<_ACEOF
11156 #line $LINENO "configure"
11157 #include "confdefs.h"
11158 #include <machine/vmparam.h>
11159 #include <sys/exec.h>
11161 #ifdef F77_DUMMY_MAIN
11162 # ifdef __cplusplus
11165 int F77_DUMMY_MAIN() { return 1; }
11170 PS_STRINGS->ps_nargvstr = 1;
11171 PS_STRINGS->ps_argvstr = "foo";
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11178 (eval $ac_link) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } &&
11182 { ac_try='test -s conftest$ac_exeext'
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; }; then
11188 pgac_cv_var_PS_STRINGS=yes
11190 echo "$as_me: failed program was:" >&5
11191 cat conftest.$ac_ext >&5
11192 pgac_cv_var_PS_STRINGS=no
11194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11196 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11197 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11198 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11200 cat >>confdefs.h <<\_ACEOF
11201 #define HAVE_PS_STRINGS
11207 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11208 # is missing. Yes, there are machines that have only one. We may
11209 # also decide to use snprintf.c if snprintf() is present but does not
11210 # have working "long long int" support -- see below.
11212 pgac_need_repl_snprintf=no
11214 for ac_func in snprintf
11216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11217 echo "$as_me:$LINENO: checking for $ac_func" >&5
11218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11219 if eval "test \"\${$as_ac_var+set}\" = set"; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 cat >conftest.$ac_ext <<_ACEOF
11223 #line $LINENO "configure"
11224 #include "confdefs.h"
11225 /* System header to define __stub macros and hopefully few prototypes,
11226 which can conflict with char $ac_func (); below. */
11227 #include <assert.h>
11228 /* Override any gcc2 internal prototype to avoid an error. */
11232 /* We use char because int might match the return type of a gcc2
11233 builtin and then its argument prototype would still apply. */
11237 #ifdef F77_DUMMY_MAIN
11238 # ifdef __cplusplus
11241 int F77_DUMMY_MAIN() { return 1; }
11246 /* The GNU C library defines this for functions which it implements
11247 to always fail with ENOSYS. Some functions are actually named
11248 something starting with __ and the normal name is an alias. */
11249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11259 rm -f conftest.$ac_objext conftest$ac_exeext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11261 (eval $ac_link) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -s conftest$ac_exeext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 eval "$as_ac_var=yes"
11273 echo "$as_me: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11275 eval "$as_ac_var=no"
11277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11281 if test `eval echo '${'$as_ac_var'}'` = yes; then
11282 cat >>confdefs.h <<_ACEOF
11283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11287 pgac_need_repl_snprintf=yes
11292 for ac_func in vsnprintf
11294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11295 echo "$as_me:$LINENO: checking for $ac_func" >&5
11296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11297 if eval "test \"\${$as_ac_var+set}\" = set"; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 cat >conftest.$ac_ext <<_ACEOF
11301 #line $LINENO "configure"
11302 #include "confdefs.h"
11303 /* System header to define __stub macros and hopefully few prototypes,
11304 which can conflict with char $ac_func (); below. */
11305 #include <assert.h>
11306 /* Override any gcc2 internal prototype to avoid an error. */
11310 /* We use char because int might match the return type of a gcc2
11311 builtin and then its argument prototype would still apply. */
11315 #ifdef F77_DUMMY_MAIN
11316 # ifdef __cplusplus
11319 int F77_DUMMY_MAIN() { return 1; }
11324 /* The GNU C library defines this for functions which it implements
11325 to always fail with ENOSYS. Some functions are actually named
11326 something starting with __ and the normal name is an alias. */
11327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11339 (eval $ac_link) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -s conftest$ac_exeext'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 eval "$as_ac_var=yes"
11351 echo "$as_me: failed program was:" >&5
11352 cat conftest.$ac_ext >&5
11353 eval "$as_ac_var=no"
11355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11359 if test `eval echo '${'$as_ac_var'}'` = yes; then
11360 cat >>confdefs.h <<_ACEOF
11361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11365 pgac_need_repl_snprintf=yes
11371 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11372 # include/c.h will provide declarations. Note this is a separate test
11373 # from whether the functions exist in the C library --- there are
11374 # systems that have the functions but don't bother to declare them :-(
11376 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11377 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11378 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 cat >conftest.$ac_ext <<_ACEOF
11382 #line $LINENO "configure"
11383 #include "confdefs.h"
11384 $ac_includes_default
11385 #ifdef F77_DUMMY_MAIN
11386 # ifdef __cplusplus
11389 int F77_DUMMY_MAIN() { return 1; }
11395 char *p = (char *) snprintf;
11402 rm -f conftest.$ac_objext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11404 (eval $ac_compile) 2>&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -s conftest.$ac_objext'
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
11414 ac_cv_have_decl_snprintf=yes
11416 echo "$as_me: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 ac_cv_have_decl_snprintf=no
11420 rm -f conftest.$ac_objext conftest.$ac_ext
11422 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11423 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11424 if test $ac_cv_have_decl_snprintf = yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_DECL_SNPRINTF 1
11432 cat >>confdefs.h <<_ACEOF
11433 #define HAVE_DECL_SNPRINTF 0
11438 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11439 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11440 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 cat >conftest.$ac_ext <<_ACEOF
11444 #line $LINENO "configure"
11445 #include "confdefs.h"
11446 $ac_includes_default
11447 #ifdef F77_DUMMY_MAIN
11448 # ifdef __cplusplus
11451 int F77_DUMMY_MAIN() { return 1; }
11457 char *p = (char *) vsnprintf;
11464 rm -f conftest.$ac_objext
11465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11466 (eval $ac_compile) 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 ac_cv_have_decl_vsnprintf=yes
11478 echo "$as_me: failed program was:" >&5
11479 cat conftest.$ac_ext >&5
11480 ac_cv_have_decl_vsnprintf=no
11482 rm -f conftest.$ac_objext conftest.$ac_ext
11484 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11485 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11486 if test $ac_cv_have_decl_vsnprintf = yes; then
11488 cat >>confdefs.h <<_ACEOF
11489 #define HAVE_DECL_VSNPRINTF 1
11494 cat >>confdefs.h <<_ACEOF
11495 #define HAVE_DECL_VSNPRINTF 0
11504 # do this one the hard way in case isinf() is a macro
11505 echo "$as_me:$LINENO: checking for isinf" >&5
11506 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11507 if test "${ac_cv_func_isinf+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 cat >conftest.$ac_ext <<_ACEOF
11511 #line $LINENO "configure"
11512 #include "confdefs.h"
11515 #ifdef F77_DUMMY_MAIN
11516 # ifdef __cplusplus
11519 int F77_DUMMY_MAIN() { return 1; }
11524 double x = 0.0; int res = isinf(x);
11529 rm -f conftest.$ac_objext conftest$ac_exeext
11530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11531 (eval $ac_link) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } &&
11535 { ac_try='test -s conftest$ac_exeext'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 ac_cv_func_isinf=yes
11543 echo "$as_me: failed program was:" >&5
11544 cat conftest.$ac_ext >&5
11545 ac_cv_func_isinf=no
11547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11549 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11550 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11552 if test $ac_cv_func_isinf = yes ; then
11554 cat >>confdefs.h <<\_ACEOF
11555 #define HAVE_ISINF 1
11559 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11560 # Look for a way to implement a substitute for isinf()
11565 for ac_func in fpclass fp_class fp_class_d class
11567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11568 echo "$as_me:$LINENO: checking for $ac_func" >&5
11569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11570 if eval "test \"\${$as_ac_var+set}\" = set"; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 cat >conftest.$ac_ext <<_ACEOF
11574 #line $LINENO "configure"
11575 #include "confdefs.h"
11576 /* System header to define __stub macros and hopefully few prototypes,
11577 which can conflict with char $ac_func (); below. */
11578 #include <assert.h>
11579 /* Override any gcc2 internal prototype to avoid an error. */
11583 /* We use char because int might match the return type of a gcc2
11584 builtin and then its argument prototype would still apply. */
11588 #ifdef F77_DUMMY_MAIN
11589 # ifdef __cplusplus
11592 int F77_DUMMY_MAIN() { return 1; }
11597 /* The GNU C library defines this for functions which it implements
11598 to always fail with ENOSYS. Some functions are actually named
11599 something starting with __ and the normal name is an alias. */
11600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612 (eval $ac_link) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest$ac_exeext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 eval "$as_ac_var=yes"
11624 echo "$as_me: failed program was:" >&5
11625 cat conftest.$ac_ext >&5
11626 eval "$as_ac_var=no"
11628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11632 if test `eval echo '${'$as_ac_var'}'` = yes; then
11633 cat >>confdefs.h <<_ACEOF
11634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11656 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11659 echo "$as_me:$LINENO: checking for $ac_func" >&5
11660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11661 if eval "test \"\${$as_ac_var+set}\" = set"; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 cat >conftest.$ac_ext <<_ACEOF
11665 #line $LINENO "configure"
11666 #include "confdefs.h"
11667 /* System header to define __stub macros and hopefully few prototypes,
11668 which can conflict with char $ac_func (); below. */
11669 #include <assert.h>
11670 /* Override any gcc2 internal prototype to avoid an error. */
11674 /* We use char because int might match the return type of a gcc2
11675 builtin and then its argument prototype would still apply. */
11679 #ifdef F77_DUMMY_MAIN
11680 # ifdef __cplusplus
11683 int F77_DUMMY_MAIN() { return 1; }
11688 /* The GNU C library defines this for functions which it implements
11689 to always fail with ENOSYS. Some functions are actually named
11690 something starting with __ and the normal name is an alias. */
11691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -s conftest$ac_exeext'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 eval "$as_ac_var=yes"
11715 echo "$as_me: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11717 eval "$as_ac_var=no"
11719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11723 if test `eval echo '${'$as_ac_var'}'` = yes; then
11724 cat >>confdefs.h <<_ACEOF
11725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11729 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11735 # system's version of getaddrinfo(), if any, may be used only if we found
11736 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11737 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11739 for ac_func in getaddrinfo
11741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11742 echo "$as_me:$LINENO: checking for $ac_func" >&5
11743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11744 if eval "test \"\${$as_ac_var+set}\" = set"; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 cat >conftest.$ac_ext <<_ACEOF
11748 #line $LINENO "configure"
11749 #include "confdefs.h"
11750 /* System header to define __stub macros and hopefully few prototypes,
11751 which can conflict with char $ac_func (); below. */
11752 #include <assert.h>
11753 /* Override any gcc2 internal prototype to avoid an error. */
11757 /* We use char because int might match the return type of a gcc2
11758 builtin and then its argument prototype would still apply. */
11762 #ifdef F77_DUMMY_MAIN
11763 # ifdef __cplusplus
11766 int F77_DUMMY_MAIN() { return 1; }
11771 /* The GNU C library defines this for functions which it implements
11772 to always fail with ENOSYS. Some functions are actually named
11773 something starting with __ and the normal name is an alias. */
11774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786 (eval $ac_link) 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } &&
11790 { ac_try='test -s conftest$ac_exeext'
11791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792 (eval $ac_try) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 eval "$as_ac_var=yes"
11798 echo "$as_me: failed program was:" >&5
11799 cat conftest.$ac_ext >&5
11800 eval "$as_ac_var=no"
11802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11806 if test `eval echo '${'$as_ac_var'}'` = yes; then
11807 cat >>confdefs.h <<_ACEOF
11808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11812 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11818 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11821 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11822 # We override the previous test that said fseeko/ftello didn't exist
11823 # OS tests are also done in include/c.h and port/fseeko.c
11824 case $host_os in bsdi*|netbsd*)
11825 ac_cv_func_fseeko=yes
11828 # Solaris has a very slow qsort in certain cases, so we replace it.
11829 case $host_os in solaris*)
11830 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11833 # Win32 can't to rename or unlink on an open file
11834 case $host_os in mingw*)
11835 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11836 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11837 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11840 if test "$with_readline" = yes; then
11841 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11842 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11845 #include "confdefs.h"
11847 #ifdef HAVE_READLINE_READLINE_H
11848 # include <readline/readline.h>
11849 #elif defined(HAVE_READLINE_H)
11850 # include <readline.h>
11853 #ifdef F77_DUMMY_MAIN
11854 # ifdef __cplusplus
11857 int F77_DUMMY_MAIN() { return 1; }
11862 rl_completion_append_character = 'x';
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11869 (eval $ac_link) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -s conftest$ac_exeext'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 echo "$as_me:$LINENO: result: yes" >&5
11880 echo "${ECHO_T}yes" >&6
11882 cat >>confdefs.h <<\_ACEOF
11883 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11887 echo "$as_me: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 echo "$as_me:$LINENO: result: no" >&5
11890 echo "${ECHO_T}no" >&6
11892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11895 for ac_func in rl_completion_matches rl_filename_completion_function
11897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11898 echo "$as_me:$LINENO: checking for $ac_func" >&5
11899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11900 if eval "test \"\${$as_ac_var+set}\" = set"; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 cat >conftest.$ac_ext <<_ACEOF
11904 #line $LINENO "configure"
11905 #include "confdefs.h"
11906 /* System header to define __stub macros and hopefully few prototypes,
11907 which can conflict with char $ac_func (); below. */
11908 #include <assert.h>
11909 /* Override any gcc2 internal prototype to avoid an error. */
11913 /* We use char because int might match the return type of a gcc2
11914 builtin and then its argument prototype would still apply. */
11918 #ifdef F77_DUMMY_MAIN
11919 # ifdef __cplusplus
11922 int F77_DUMMY_MAIN() { return 1; }
11927 /* The GNU C library defines this for functions which it implements
11928 to always fail with ENOSYS. Some functions are actually named
11929 something starting with __ and the normal name is an alias. */
11930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11940 rm -f conftest.$ac_objext conftest$ac_exeext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942 (eval $ac_link) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 eval "$as_ac_var=yes"
11954 echo "$as_me: failed program was:" >&5
11955 cat conftest.$ac_ext >&5
11956 eval "$as_ac_var=no"
11958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11962 if test `eval echo '${'$as_ac_var'}'` = yes; then
11963 cat >>confdefs.h <<_ACEOF
11964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11971 for ac_func in replace_history_entry
11973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11974 echo "$as_me:$LINENO: checking for $ac_func" >&5
11975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11976 if eval "test \"\${$as_ac_var+set}\" = set"; then
11977 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 cat >conftest.$ac_ext <<_ACEOF
11980 #line $LINENO "configure"
11981 #include "confdefs.h"
11982 /* System header to define __stub macros and hopefully few prototypes,
11983 which can conflict with char $ac_func (); below. */
11984 #include <assert.h>
11985 /* Override any gcc2 internal prototype to avoid an error. */
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11994 #ifdef F77_DUMMY_MAIN
11995 # ifdef __cplusplus
11998 int F77_DUMMY_MAIN() { return 1; }
12003 /* The GNU C library defines this for functions which it implements
12004 to always fail with ENOSYS. Some functions are actually named
12005 something starting with __ and the normal name is an alias. */
12006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12016 rm -f conftest.$ac_objext conftest$ac_exeext
12017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12018 (eval $ac_link) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -s conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 eval "$as_ac_var=yes"
12030 echo "$as_me: failed program was:" >&5
12031 cat conftest.$ac_ext >&5
12032 eval "$as_ac_var=no"
12034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12038 if test `eval echo '${'$as_ac_var'}'` = yes; then
12039 cat >>confdefs.h <<_ACEOF
12040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 echo "$as_me:$LINENO: checking for finite" >&5
12050 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12051 cat >conftest.$ac_ext <<_ACEOF
12052 #line $LINENO "configure"
12053 #include "confdefs.h"
12055 #ifdef F77_DUMMY_MAIN
12056 # ifdef __cplusplus
12059 int F77_DUMMY_MAIN() { return 1; }
12064 int dummy=finite(1.0);
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12071 (eval $ac_link) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -s conftest$ac_exeext'
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; }; then
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_FINITE 1
12086 echo "$as_me:$LINENO: result: yes" >&5
12087 echo "${ECHO_T}yes" >&6
12089 echo "$as_me: failed program was:" >&5
12090 cat conftest.$ac_ext >&5
12091 echo "$as_me:$LINENO: result: no" >&5
12092 echo "${ECHO_T}no" >&6
12094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12096 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12097 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12098 cat >conftest.$ac_ext <<_ACEOF
12099 #line $LINENO "configure"
12100 #include "confdefs.h"
12101 #include <setjmp.h>
12102 #ifdef F77_DUMMY_MAIN
12103 # ifdef __cplusplus
12106 int F77_DUMMY_MAIN() { return 1; }
12111 sigjmp_buf x; sigsetjmp(x, 1);
12116 rm -f conftest.$ac_objext conftest$ac_exeext
12117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12118 (eval $ac_link) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_SIGSETJMP 1
12133 echo "$as_me:$LINENO: result: yes" >&5
12134 echo "${ECHO_T}yes" >&6
12136 echo "$as_me: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12138 echo "$as_me:$LINENO: result: no" >&5
12139 echo "${ECHO_T}no" >&6
12141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12143 echo "$as_me:$LINENO: checking for syslog" >&5
12144 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12145 if test "${ac_cv_func_syslog+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 cat >conftest.$ac_ext <<_ACEOF
12149 #line $LINENO "configure"
12150 #include "confdefs.h"
12151 /* System header to define __stub macros and hopefully few prototypes,
12152 which can conflict with char syslog (); below. */
12153 #include <assert.h>
12154 /* Override any gcc2 internal prototype to avoid an error. */
12158 /* We use char because int might match the return type of a gcc2
12159 builtin and then its argument prototype would still apply. */
12163 #ifdef F77_DUMMY_MAIN
12164 # ifdef __cplusplus
12167 int F77_DUMMY_MAIN() { return 1; }
12172 /* The GNU C library defines this for functions which it implements
12173 to always fail with ENOSYS. Some functions are actually named
12174 something starting with __ and the normal name is an alias. */
12175 #if defined (__stub_syslog) || defined (__stub___syslog)
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12187 (eval $ac_link) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } &&
12191 { ac_try='test -s conftest$ac_exeext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 ac_cv_func_syslog=yes
12199 echo "$as_me: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 ac_cv_func_syslog=no
12203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12205 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12206 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12207 if test $ac_cv_func_syslog = yes; then
12208 if test "${ac_cv_header_syslog_h+set}" = set; then
12209 echo "$as_me:$LINENO: checking for syslog.h" >&5
12210 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12211 if test "${ac_cv_header_syslog_h+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12215 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12217 # Is the header compilable?
12218 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12219 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12220 cat >conftest.$ac_ext <<_ACEOF
12221 #line $LINENO "configure"
12222 #include "confdefs.h"
12223 $ac_includes_default
12224 #include <syslog.h>
12226 rm -f conftest.$ac_objext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228 (eval $ac_compile) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -s conftest.$ac_objext'
12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_header_compiler=yes
12240 echo "$as_me: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12242 ac_header_compiler=no
12244 rm -f conftest.$ac_objext conftest.$ac_ext
12245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12246 echo "${ECHO_T}$ac_header_compiler" >&6
12248 # Is the header present?
12249 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12250 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12252 #line $LINENO "configure"
12253 #include "confdefs.h"
12254 #include <syslog.h>
12256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12259 egrep -v '^ *\+' conftest.er1 >conftest.err
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } >/dev/null; then
12264 if test -s conftest.err; then
12265 ac_cpp_err=$ac_c_preproc_warn_flag
12272 if test -z "$ac_cpp_err"; then
12273 ac_header_preproc=yes
12275 echo "$as_me: failed program was:" >&5
12276 cat conftest.$ac_ext >&5
12277 ac_header_preproc=no
12279 rm -f conftest.err conftest.$ac_ext
12280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12281 echo "${ECHO_T}$ac_header_preproc" >&6
12283 # So? What about this header?
12284 case $ac_header_compiler:$ac_header_preproc in
12286 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12287 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12289 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12291 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12292 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12294 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12296 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12298 echo "$as_me:$LINENO: checking for syslog.h" >&5
12299 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12300 if test "${ac_cv_header_syslog_h+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 ac_cv_header_syslog_h=$ac_header_preproc
12305 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12306 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12309 if test $ac_cv_header_syslog_h = yes; then
12311 cat >>confdefs.h <<\_ACEOF
12312 #define HAVE_SYSLOG 1
12321 echo "$as_me:$LINENO: checking for optreset" >&5
12322 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12323 if test "${pgac_cv_var_int_optreset+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 cat >conftest.$ac_ext <<_ACEOF
12327 #line $LINENO "configure"
12328 #include "confdefs.h"
12329 #include <unistd.h>
12330 #ifdef F77_DUMMY_MAIN
12331 # ifdef __cplusplus
12334 int F77_DUMMY_MAIN() { return 1; }
12339 extern int optreset; optreset = 1;
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12346 (eval $ac_link) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 pgac_cv_var_int_optreset=yes
12358 echo "$as_me: failed program was:" >&5
12359 cat conftest.$ac_ext >&5
12360 pgac_cv_var_int_optreset=no
12362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12364 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12365 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12366 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_INT_OPTRESET 1
12376 for ac_func in strtoll strtoq
12378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12379 echo "$as_me:$LINENO: checking for $ac_func" >&5
12380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_var+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 cat >conftest.$ac_ext <<_ACEOF
12385 #line $LINENO "configure"
12386 #include "confdefs.h"
12387 /* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func (); below. */
12389 #include <assert.h>
12390 /* Override any gcc2 internal prototype to avoid an error. */
12394 /* We use char because int might match the return type of a gcc2
12395 builtin and then its argument prototype would still apply. */
12399 #ifdef F77_DUMMY_MAIN
12400 # ifdef __cplusplus
12403 int F77_DUMMY_MAIN() { return 1; }
12408 /* The GNU C library defines this for functions which it implements
12409 to always fail with ENOSYS. Some functions are actually named
12410 something starting with __ and the normal name is an alias. */
12411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12421 rm -f conftest.$ac_objext conftest$ac_exeext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12423 (eval $ac_link) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -s conftest$ac_exeext'
12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429 (eval $ac_try) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; }; then
12433 eval "$as_ac_var=yes"
12435 echo "$as_me: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12437 eval "$as_ac_var=no"
12439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12443 if test `eval echo '${'$as_ac_var'}'` = yes; then
12444 cat >>confdefs.h <<_ACEOF
12445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12453 for ac_func in strtoull strtouq
12455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12456 echo "$as_me:$LINENO: checking for $ac_func" >&5
12457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12458 if eval "test \"\${$as_ac_var+set}\" = set"; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 cat >conftest.$ac_ext <<_ACEOF
12462 #line $LINENO "configure"
12463 #include "confdefs.h"
12464 /* System header to define __stub macros and hopefully few prototypes,
12465 which can conflict with char $ac_func (); below. */
12466 #include <assert.h>
12467 /* Override any gcc2 internal prototype to avoid an error. */
12471 /* We use char because int might match the return type of a gcc2
12472 builtin and then its argument prototype would still apply. */
12476 #ifdef F77_DUMMY_MAIN
12477 # ifdef __cplusplus
12480 int F77_DUMMY_MAIN() { return 1; }
12485 /* The GNU C library defines this for functions which it implements
12486 to always fail with ENOSYS. Some functions are actually named
12487 something starting with __ and the normal name is an alias. */
12488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12498 rm -f conftest.$ac_objext conftest$ac_exeext
12499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12500 (eval $ac_link) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
12504 { ac_try='test -s conftest$ac_exeext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 eval "$as_ac_var=yes"
12512 echo "$as_me: failed program was:" >&5
12513 cat conftest.$ac_ext >&5
12514 eval "$as_ac_var=no"
12516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12520 if test `eval echo '${'$as_ac_var'}'` = yes; then
12521 cat >>confdefs.h <<_ACEOF
12522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12529 # Check for one of atexit() or on_exit()
12531 for ac_func in atexit
12533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12534 echo "$as_me:$LINENO: checking for $ac_func" >&5
12535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12536 if eval "test \"\${$as_ac_var+set}\" = set"; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12539 cat >conftest.$ac_ext <<_ACEOF
12540 #line $LINENO "configure"
12541 #include "confdefs.h"
12542 /* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char $ac_func (); below. */
12544 #include <assert.h>
12545 /* Override any gcc2 internal prototype to avoid an error. */
12549 /* We use char because int might match the return type of a gcc2
12550 builtin and then its argument prototype would still apply. */
12554 #ifdef F77_DUMMY_MAIN
12555 # ifdef __cplusplus
12558 int F77_DUMMY_MAIN() { return 1; }
12563 /* The GNU C library defines this for functions which it implements
12564 to always fail with ENOSYS. Some functions are actually named
12565 something starting with __ and the normal name is an alias. */
12566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12578 (eval $ac_link) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -s conftest$ac_exeext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 eval "$as_ac_var=yes"
12590 echo "$as_me: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 eval "$as_ac_var=no"
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12598 if test `eval echo '${'$as_ac_var'}'` = yes; then
12599 cat >>confdefs.h <<_ACEOF
12600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12605 for ac_func in on_exit
12607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12608 echo "$as_me:$LINENO: checking for $ac_func" >&5
12609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12610 if eval "test \"\${$as_ac_var+set}\" = set"; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 cat >conftest.$ac_ext <<_ACEOF
12614 #line $LINENO "configure"
12615 #include "confdefs.h"
12616 /* System header to define __stub macros and hopefully few prototypes,
12617 which can conflict with char $ac_func (); below. */
12618 #include <assert.h>
12619 /* Override any gcc2 internal prototype to avoid an error. */
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12628 #ifdef F77_DUMMY_MAIN
12629 # ifdef __cplusplus
12632 int F77_DUMMY_MAIN() { return 1; }
12637 /* The GNU C library defines this for functions which it implements
12638 to always fail with ENOSYS. Some functions are actually named
12639 something starting with __ and the normal name is an alias. */
12640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12650 rm -f conftest.$ac_objext conftest$ac_exeext
12651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12652 (eval $ac_link) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -s conftest$ac_exeext'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; }; then
12662 eval "$as_ac_var=yes"
12664 echo "$as_me: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 eval "$as_ac_var=no"
12668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12672 if test `eval echo '${'$as_ac_var'}'` = yes; then
12673 cat >>confdefs.h <<_ACEOF
12674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12678 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12679 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12680 { (exit 1); exit 1; }; }
12688 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12689 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12690 if test "${ac_cv_sys_largefile_source+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12694 ac_cv_sys_largefile_source=no
12695 cat >conftest.$ac_ext <<_ACEOF
12696 #line $LINENO "configure"
12697 #include "confdefs.h"
12699 #ifdef F77_DUMMY_MAIN
12700 # ifdef __cplusplus
12703 int F77_DUMMY_MAIN() { return 1; }
12713 rm -f conftest.$ac_objext
12714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12715 (eval $ac_compile) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -s conftest.$ac_objext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12727 echo "$as_me: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12730 rm -f conftest.$ac_objext conftest.$ac_ext
12731 cat >conftest.$ac_ext <<_ACEOF
12732 #line $LINENO "configure"
12733 #include "confdefs.h"
12734 #define _LARGEFILE_SOURCE 1
12736 #ifdef F77_DUMMY_MAIN
12737 # ifdef __cplusplus
12740 int F77_DUMMY_MAIN() { return 1; }
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -s conftest.$ac_objext'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ac_cv_sys_largefile_source=1; break
12764 echo "$as_me: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12767 rm -f conftest.$ac_objext conftest.$ac_ext
12771 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12772 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12773 if test "$ac_cv_sys_largefile_source" != no; then
12775 cat >>confdefs.h <<_ACEOF
12776 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12782 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12783 # in glibc 2.1.3, but that breaks too many other things.
12784 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12785 echo "$as_me:$LINENO: checking for fseeko" >&5
12786 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12787 if test "${ac_cv_func_fseeko+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 cat >conftest.$ac_ext <<_ACEOF
12791 #line $LINENO "configure"
12792 #include "confdefs.h"
12794 #ifdef F77_DUMMY_MAIN
12795 # ifdef __cplusplus
12798 int F77_DUMMY_MAIN() { return 1; }
12803 return fseeko && fseeko (stdin, 0, 0);
12808 rm -f conftest.$ac_objext conftest$ac_exeext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12810 (eval $ac_link) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -s conftest$ac_exeext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 ac_cv_func_fseeko=yes
12822 echo "$as_me: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12824 ac_cv_func_fseeko=no
12826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12828 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12829 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12830 if test $ac_cv_func_fseeko = yes; then
12832 cat >>confdefs.h <<\_ACEOF
12833 #define HAVE_FSEEKO 1
12840 # Check for re-entrant versions of certain functions
12842 # Include special flags if threads are enabled _and_ if required for
12843 # threading on this platform. Some platforms have *_r functions but
12844 # their natively named funcs are threadsafe, and should be used instead.
12846 # One trick here is that if the don't call AC_CHECK_FUNCS, the
12847 # functions are marked "not found", which is perfect.
12849 if test "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
12852 CFLAGS="$CFLAGS $TREAD_CFLAGS"
12853 LIBS="$LIBS $THREAD_LIBS"
12857 for ac_func in strerror_r getpwuid_r gethostbyname_r
12859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12860 echo "$as_me:$LINENO: checking for $ac_func" >&5
12861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12862 if eval "test \"\${$as_ac_var+set}\" = set"; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 cat >conftest.$ac_ext <<_ACEOF
12866 #line $LINENO "configure"
12867 #include "confdefs.h"
12868 /* System header to define __stub macros and hopefully few prototypes,
12869 which can conflict with char $ac_func (); below. */
12870 #include <assert.h>
12871 /* Override any gcc2 internal prototype to avoid an error. */
12875 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */
12880 #ifdef F77_DUMMY_MAIN
12881 # ifdef __cplusplus
12884 int F77_DUMMY_MAIN() { return 1; }
12889 /* The GNU C library defines this for functions which it implements
12890 to always fail with ENOSYS. Some functions are actually named
12891 something starting with __ and the normal name is an alias. */
12892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12902 rm -f conftest.$ac_objext conftest$ac_exeext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12904 (eval $ac_link) 2>&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -s conftest$ac_exeext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 eval "$as_ac_var=yes"
12916 echo "$as_me: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12918 eval "$as_ac_var=no"
12920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12924 if test `eval echo '${'$as_ac_var'}'` = yes; then
12925 cat >>confdefs.h <<_ACEOF
12926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12937 # This test makes sure that run tests work at all. Sometimes a shared
12938 # library is found by the linker, but the runtime linker can't find it.
12939 # This check should come after all modifications of compiler or linker
12940 # variables, and before any other run tests.
12941 echo "$as_me:$LINENO: checking test program" >&5
12942 echo $ECHO_N "checking test program... $ECHO_C" >&6
12943 if test "$cross_compiling" = yes; then
12944 echo "$as_me:$LINENO: result: cross-compiling" >&5
12945 echo "${ECHO_T}cross-compiling" >&6
12947 cat >conftest.$ac_ext <<_ACEOF
12948 #line $LINENO "configure"
12949 #include "confdefs.h"
12950 int main() { return 0; }
12952 rm -f conftest$ac_exeext
12953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12954 (eval $ac_link) 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 echo "$as_me:$LINENO: result: ok" >&5
12964 echo "${ECHO_T}ok" >&6
12966 echo "$as_me: program exited with status $ac_status" >&5
12967 echo "$as_me: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12969 ( exit $ac_status )
12970 echo "$as_me:$LINENO: result: failed" >&5
12971 echo "${ECHO_T}failed" >&6
12972 { { echo "$as_me:$LINENO: error:
12973 *** Could not execute a simple test program. This may be a problem
12974 *** related to locating shared libraries. Check the file 'config.log'
12975 *** for the exact reason." >&5
12976 echo "$as_me: error:
12977 *** Could not execute a simple test program. This may be a problem
12978 *** related to locating shared libraries. Check the file 'config.log'
12979 *** for the exact reason." >&2;}
12980 { (exit 1); exit 1; }; }
12982 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12987 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12988 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12989 if test "${pgac_cv_type_long_int_64+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 if test "$cross_compiling" = yes; then
12993 # If cross-compiling, check the size reported by the compiler and
12994 # trust that the arithmetic works.
12995 cat >conftest.$ac_ext <<_ACEOF
12996 #line $LINENO "configure"
12997 #include "confdefs.h"
12999 #ifdef F77_DUMMY_MAIN
13000 # ifdef __cplusplus
13003 int F77_DUMMY_MAIN() { return 1; }
13008 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13015 rm -f conftest.$ac_objext
13016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13017 (eval $ac_compile) 2>&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
13021 { ac_try='test -s conftest.$ac_objext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 pgac_cv_type_long_int_64=yes
13029 echo "$as_me: failed program was:" >&5
13030 cat conftest.$ac_ext >&5
13031 pgac_cv_type_long_int_64=no
13033 rm -f conftest.$ac_objext conftest.$ac_ext
13035 cat >conftest.$ac_ext <<_ACEOF
13036 #line $LINENO "configure"
13037 #include "confdefs.h"
13038 typedef long int int64;
13041 * These are globals to discourage the compiler from folding all the
13042 * arithmetic tests down to compile-time constants.
13044 int64 a = 20000001;
13045 int64 b = 40000005;
13047 int does_int64_work()
13051 if (sizeof(int64) != 8)
13052 return 0; /* definitely not the right size */
13054 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13062 exit(! does_int64_work());
13065 rm -f conftest$ac_exeext
13066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13067 (eval $ac_link) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; }; then
13076 pgac_cv_type_long_int_64=yes
13078 echo "$as_me: program exited with status $ac_status" >&5
13079 echo "$as_me: failed program was:" >&5
13080 cat conftest.$ac_ext >&5
13081 ( exit $ac_status )
13082 pgac_cv_type_long_int_64=no
13084 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13087 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13088 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13090 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13091 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_LONG_INT_64
13100 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13101 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13102 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13103 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 if test "$cross_compiling" = yes; then
13107 # If cross-compiling, check the size reported by the compiler and
13108 # trust that the arithmetic works.
13109 cat >conftest.$ac_ext <<_ACEOF
13110 #line $LINENO "configure"
13111 #include "confdefs.h"
13113 #ifdef F77_DUMMY_MAIN
13114 # ifdef __cplusplus
13117 int F77_DUMMY_MAIN() { return 1; }
13122 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13129 rm -f conftest.$ac_objext
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13131 (eval $ac_compile) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -s conftest.$ac_objext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13141 pgac_cv_type_long_long_int_64=yes
13143 echo "$as_me: failed program was:" >&5
13144 cat conftest.$ac_ext >&5
13145 pgac_cv_type_long_long_int_64=no
13147 rm -f conftest.$ac_objext conftest.$ac_ext
13149 cat >conftest.$ac_ext <<_ACEOF
13150 #line $LINENO "configure"
13151 #include "confdefs.h"
13152 typedef long long int int64;
13155 * These are globals to discourage the compiler from folding all the
13156 * arithmetic tests down to compile-time constants.
13158 int64 a = 20000001;
13159 int64 b = 40000005;
13161 int does_int64_work()
13165 if (sizeof(int64) != 8)
13166 return 0; /* definitely not the right size */
13168 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13176 exit(! does_int64_work());
13179 rm -f conftest$ac_exeext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13181 (eval $ac_link) 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 pgac_cv_type_long_long_int_64=yes
13192 echo "$as_me: program exited with status $ac_status" >&5
13193 echo "$as_me: failed program was:" >&5
13194 cat conftest.$ac_ext >&5
13195 ( exit $ac_status )
13196 pgac_cv_type_long_long_int_64=no
13198 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13201 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13202 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13204 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13205 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13207 cat >>confdefs.h <<\_ACEOF
13208 #define HAVE_LONG_LONG_INT_64
13217 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13218 cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13220 #include "confdefs.h"
13222 #define INT64CONST(x) x##LL
13223 long long int foo = INT64CONST(0x1234567890123456);
13225 #ifdef F77_DUMMY_MAIN
13226 # ifdef __cplusplus
13229 int F77_DUMMY_MAIN() { return 1; }
13239 rm -f conftest.$ac_objext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13241 (eval $ac_compile) 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -s conftest.$ac_objext'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13252 cat >>confdefs.h <<\_ACEOF
13253 #define HAVE_LL_CONSTANTS 1
13257 echo "$as_me: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13260 rm -f conftest.$ac_objext conftest.$ac_ext
13264 # If we found "long int" is 64 bits, assume snprintf handles it. If
13265 # we found we need to use "long long int", better check. We cope with
13266 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13267 # neither works, fall back to our own snprintf emulation (which we
13270 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13271 if test $pgac_need_repl_snprintf = no; then
13272 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13273 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13274 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 for pgac_format in '%lld' '%qd' '%I64d'; do
13278 if test "$cross_compiling" = yes; then
13279 pgac_cv_snprintf_long_long_int_format=cross; break
13281 cat >conftest.$ac_ext <<_ACEOF
13282 #line $LINENO "configure"
13283 #include "confdefs.h"
13285 typedef long long int int64;
13286 #define INT64_FORMAT "$pgac_format"
13288 int64 a = 20000001;
13289 int64 b = 40000005;
13291 int does_int64_snprintf_work()
13296 if (sizeof(int64) != 8)
13297 return 0; /* doesn't look like the right size */
13300 snprintf(buf, 100, INT64_FORMAT, c);
13301 if (strcmp(buf, "800000140000005") != 0)
13302 return 0; /* either multiply or snprintf is busted */
13306 exit(! does_int64_snprintf_work());
13309 rm -f conftest$ac_exeext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311 (eval $ac_link) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13322 echo "$as_me: program exited with status $ac_status" >&5
13323 echo "$as_me: failed program was:" >&5
13324 cat conftest.$ac_ext >&5
13326 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13331 LONG_LONG_INT_FORMAT=''
13333 case $pgac_cv_snprintf_long_long_int_format in
13334 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13335 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13336 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13337 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13338 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13339 *) echo "$as_me:$LINENO: result: none" >&5
13340 echo "${ECHO_T}none" >&6;;
13342 if test "$LONG_LONG_INT_FORMAT" = ""; then
13343 # Force usage of our own snprintf, since system snprintf is broken
13344 pgac_need_repl_snprintf=yes
13345 LONG_LONG_INT_FORMAT='%lld'
13348 # Here if we previously decided we needed to use our own snprintf
13349 LONG_LONG_INT_FORMAT='%lld'
13351 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13353 # Here if we are not using 'long long int' at all
13354 INT64_FORMAT='"%ld"'
13358 cat >>confdefs.h <<_ACEOF
13359 #define INT64_FORMAT $INT64_FORMAT
13363 if test $pgac_need_repl_snprintf = yes; then
13364 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13367 # Need a #define for the size of Datum (unsigned long)
13368 echo "$as_me:$LINENO: checking for unsigned long" >&5
13369 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13370 if test "${ac_cv_type_unsigned_long+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 cat >conftest.$ac_ext <<_ACEOF
13374 #line $LINENO "configure"
13375 #include "confdefs.h"
13376 $ac_includes_default
13377 #ifdef F77_DUMMY_MAIN
13378 # ifdef __cplusplus
13381 int F77_DUMMY_MAIN() { return 1; }
13386 if ((unsigned long *) 0)
13388 if (sizeof (unsigned long))
13394 rm -f conftest.$ac_objext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13396 (eval $ac_compile) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
13400 { ac_try='test -s conftest.$ac_objext'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
13406 ac_cv_type_unsigned_long=yes
13408 echo "$as_me: failed program was:" >&5
13409 cat conftest.$ac_ext >&5
13410 ac_cv_type_unsigned_long=no
13412 rm -f conftest.$ac_objext conftest.$ac_ext
13414 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13415 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13417 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13418 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13419 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 if test "$ac_cv_type_unsigned_long" = yes; then
13423 # The cast to unsigned long works around a bug in the HP C Compiler
13424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13426 # This bug is HP SR number 8606223364.
13427 if test "$cross_compiling" = yes; then
13428 # Depending upon the size, compute the lo and hi bounds.
13429 cat >conftest.$ac_ext <<_ACEOF
13430 #line $LINENO "configure"
13431 #include "confdefs.h"
13432 $ac_includes_default
13433 #ifdef F77_DUMMY_MAIN
13434 # ifdef __cplusplus
13437 int F77_DUMMY_MAIN() { return 1; }
13442 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13449 rm -f conftest.$ac_objext
13450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13451 (eval $ac_compile) 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -s conftest.$ac_objext'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13463 cat >conftest.$ac_ext <<_ACEOF
13464 #line $LINENO "configure"
13465 #include "confdefs.h"
13466 $ac_includes_default
13467 #ifdef F77_DUMMY_MAIN
13468 # ifdef __cplusplus
13471 int F77_DUMMY_MAIN() { return 1; }
13476 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485 (eval $ac_compile) 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -s conftest.$ac_objext'
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
13495 ac_hi=$ac_mid; break
13497 echo "$as_me: failed program was:" >&5
13498 cat conftest.$ac_ext >&5
13499 ac_lo=`expr $ac_mid + 1`
13500 if test $ac_lo -le $ac_mid; then
13504 ac_mid=`expr 2 '*' $ac_mid + 1`
13506 rm -f conftest.$ac_objext conftest.$ac_ext
13509 echo "$as_me: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13511 cat >conftest.$ac_ext <<_ACEOF
13512 #line $LINENO "configure"
13513 #include "confdefs.h"
13514 $ac_includes_default
13515 #ifdef F77_DUMMY_MAIN
13516 # ifdef __cplusplus
13519 int F77_DUMMY_MAIN() { return 1; }
13524 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13531 rm -f conftest.$ac_objext
13532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13533 (eval $ac_compile) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
13537 { ac_try='test -s conftest.$ac_objext'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; }; then
13545 cat >conftest.$ac_ext <<_ACEOF
13546 #line $LINENO "configure"
13547 #include "confdefs.h"
13548 $ac_includes_default
13549 #ifdef F77_DUMMY_MAIN
13550 # ifdef __cplusplus
13553 int F77_DUMMY_MAIN() { return 1; }
13558 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13565 rm -f conftest.$ac_objext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567 (eval $ac_compile) 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -s conftest.$ac_objext'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13573 (eval $ac_try) 2>&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
13577 ac_lo=$ac_mid; break
13579 echo "$as_me: failed program was:" >&5
13580 cat conftest.$ac_ext >&5
13581 ac_hi=`expr '(' $ac_mid ')' - 1`
13582 if test $ac_mid -le $ac_hi; then
13586 ac_mid=`expr 2 '*' $ac_mid`
13588 rm -f conftest.$ac_objext conftest.$ac_ext
13591 echo "$as_me: failed program was:" >&5
13592 cat conftest.$ac_ext >&5
13595 rm -f conftest.$ac_objext conftest.$ac_ext
13597 rm -f conftest.$ac_objext conftest.$ac_ext
13598 # Binary search between lo and hi bounds.
13599 while test "x$ac_lo" != "x$ac_hi"; do
13600 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13601 cat >conftest.$ac_ext <<_ACEOF
13602 #line $LINENO "configure"
13603 #include "confdefs.h"
13604 $ac_includes_default
13605 #ifdef F77_DUMMY_MAIN
13606 # ifdef __cplusplus
13609 int F77_DUMMY_MAIN() { return 1; }
13614 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13621 rm -f conftest.$ac_objext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623 (eval $ac_compile) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -s conftest.$ac_objext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13635 echo "$as_me: failed program was:" >&5
13636 cat conftest.$ac_ext >&5
13637 ac_lo=`expr '(' $ac_mid ')' + 1`
13639 rm -f conftest.$ac_objext conftest.$ac_ext
13642 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13643 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13644 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13645 { (exit 1); exit 1; }; } ;;
13648 if test "$cross_compiling" = yes; then
13649 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13650 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13651 { (exit 1); exit 1; }; }
13653 cat >conftest.$ac_ext <<_ACEOF
13654 #line $LINENO "configure"
13655 #include "confdefs.h"
13656 $ac_includes_default
13657 long longval () { return (long) (sizeof (unsigned long)); }
13658 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13660 #include <stdlib.h>
13661 #ifdef F77_DUMMY_MAIN
13662 # ifdef __cplusplus
13665 int F77_DUMMY_MAIN() { return 1; }
13671 FILE *f = fopen ("conftest.val", "w");
13674 if (((long) (sizeof (unsigned long))) < 0)
13676 long i = longval ();
13677 if (i != ((long) (sizeof (unsigned long))))
13679 fprintf (f, "%ld\n", i);
13683 unsigned long i = ulongval ();
13684 if (i != ((long) (sizeof (unsigned long))))
13686 fprintf (f, "%lu\n", i);
13688 exit (ferror (f) || fclose (f) != 0);
13694 rm -f conftest$ac_exeext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13696 (eval $ac_link) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; }; then
13705 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13707 echo "$as_me: program exited with status $ac_status" >&5
13708 echo "$as_me: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 ( exit $ac_status )
13711 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13712 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13713 { (exit 1); exit 1; }; }
13715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13720 ac_cv_sizeof_unsigned_long=0
13723 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13724 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13725 cat >>confdefs.h <<_ACEOF
13726 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13731 # Determine memory alignment requirements for the basic C data types.
13733 echo "$as_me:$LINENO: checking for short" >&5
13734 echo $ECHO_N "checking for short... $ECHO_C" >&6
13735 if test "${ac_cv_type_short+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 cat >conftest.$ac_ext <<_ACEOF
13739 #line $LINENO "configure"
13740 #include "confdefs.h"
13741 $ac_includes_default
13742 #ifdef F77_DUMMY_MAIN
13743 # ifdef __cplusplus
13746 int F77_DUMMY_MAIN() { return 1; }
13753 if (sizeof (short))
13759 rm -f conftest.$ac_objext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13761 (eval $ac_compile) 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
13765 { ac_try='test -s conftest.$ac_objext'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; }; then
13771 ac_cv_type_short=yes
13773 echo "$as_me: failed program was:" >&5
13774 cat conftest.$ac_ext >&5
13775 ac_cv_type_short=no
13777 rm -f conftest.$ac_objext conftest.$ac_ext
13779 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13780 echo "${ECHO_T}$ac_cv_type_short" >&6
13782 echo "$as_me:$LINENO: checking alignment of short" >&5
13783 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13784 if test "${pgac_cv_alignof_short+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 if test "$ac_cv_type_short" = yes; then
13788 if test "$cross_compiling" = yes; then
13789 # Depending upon the size, compute the lo and hi bounds.
13790 cat >conftest.$ac_ext <<_ACEOF
13791 #line $LINENO "configure"
13792 #include "confdefs.h"
13793 $ac_includes_default
13794 struct { char filler; short field; } pgac_struct;
13795 #ifdef F77_DUMMY_MAIN
13796 # ifdef __cplusplus
13799 int F77_DUMMY_MAIN() { return 1; }
13804 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13811 rm -f conftest.$ac_objext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13813 (eval $ac_compile) 2>&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13825 cat >conftest.$ac_ext <<_ACEOF
13826 #line $LINENO "configure"
13827 #include "confdefs.h"
13828 $ac_includes_default
13829 struct { char filler; short field; } pgac_struct;
13830 #ifdef F77_DUMMY_MAIN
13831 # ifdef __cplusplus
13834 int F77_DUMMY_MAIN() { return 1; }
13839 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13846 rm -f conftest.$ac_objext
13847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13848 (eval $ac_compile) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -s conftest.$ac_objext'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858 ac_hi=$ac_mid; break
13860 echo "$as_me: failed program was:" >&5
13861 cat conftest.$ac_ext >&5
13862 ac_lo=`expr $ac_mid + 1`
13863 if test $ac_lo -le $ac_mid; then
13867 ac_mid=`expr 2 '*' $ac_mid + 1`
13869 rm -f conftest.$ac_objext conftest.$ac_ext
13872 echo "$as_me: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13874 cat >conftest.$ac_ext <<_ACEOF
13875 #line $LINENO "configure"
13876 #include "confdefs.h"
13877 $ac_includes_default
13878 struct { char filler; short field; } pgac_struct;
13879 #ifdef F77_DUMMY_MAIN
13880 # ifdef __cplusplus
13883 int F77_DUMMY_MAIN() { return 1; }
13888 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13895 rm -f conftest.$ac_objext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13897 (eval $ac_compile) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -s conftest.$ac_objext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13909 cat >conftest.$ac_ext <<_ACEOF
13910 #line $LINENO "configure"
13911 #include "confdefs.h"
13912 $ac_includes_default
13913 struct { char filler; short field; } pgac_struct;
13914 #ifdef F77_DUMMY_MAIN
13915 # ifdef __cplusplus
13918 int F77_DUMMY_MAIN() { return 1; }
13923 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13930 rm -f conftest.$ac_objext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932 (eval $ac_compile) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
13936 { ac_try='test -s conftest.$ac_objext'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13942 ac_lo=$ac_mid; break
13944 echo "$as_me: failed program was:" >&5
13945 cat conftest.$ac_ext >&5
13946 ac_hi=`expr '(' $ac_mid ')' - 1`
13947 if test $ac_mid -le $ac_hi; then
13951 ac_mid=`expr 2 '*' $ac_mid`
13953 rm -f conftest.$ac_objext conftest.$ac_ext
13956 echo "$as_me: failed program was:" >&5
13957 cat conftest.$ac_ext >&5
13960 rm -f conftest.$ac_objext conftest.$ac_ext
13962 rm -f conftest.$ac_objext conftest.$ac_ext
13963 # Binary search between lo and hi bounds.
13964 while test "x$ac_lo" != "x$ac_hi"; do
13965 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13966 cat >conftest.$ac_ext <<_ACEOF
13967 #line $LINENO "configure"
13968 #include "confdefs.h"
13969 $ac_includes_default
13970 struct { char filler; short field; } pgac_struct;
13971 #ifdef F77_DUMMY_MAIN
13972 # ifdef __cplusplus
13975 int F77_DUMMY_MAIN() { return 1; }
13980 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13987 rm -f conftest.$ac_objext
13988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13989 (eval $ac_compile) 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -s conftest.$ac_objext'
13994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
14001 echo "$as_me: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14003 ac_lo=`expr '(' $ac_mid ')' + 1`
14005 rm -f conftest.$ac_objext conftest.$ac_ext
14008 ?*) pgac_cv_alignof_short=$ac_lo;;
14009 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14010 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14011 { (exit 1); exit 1; }; } ;;
14014 if test "$cross_compiling" = yes; then
14015 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14016 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14017 { (exit 1); exit 1; }; }
14019 cat >conftest.$ac_ext <<_ACEOF
14020 #line $LINENO "configure"
14021 #include "confdefs.h"
14022 $ac_includes_default
14023 struct { char filler; short field; } pgac_struct;
14024 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14025 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14027 #include <stdlib.h>
14028 #ifdef F77_DUMMY_MAIN
14029 # ifdef __cplusplus
14032 int F77_DUMMY_MAIN() { return 1; }
14038 FILE *f = fopen ("conftest.val", "w");
14041 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14043 long i = longval ();
14044 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14046 fprintf (f, "%ld\n", i);
14050 unsigned long i = ulongval ();
14051 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14053 fprintf (f, "%lu\n", i);
14055 exit (ferror (f) || fclose (f) != 0);
14061 rm -f conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063 (eval $ac_link) 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 pgac_cv_alignof_short=`cat conftest.val`
14074 echo "$as_me: program exited with status $ac_status" >&5
14075 echo "$as_me: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14077 ( exit $ac_status )
14078 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14079 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14080 { (exit 1); exit 1; }; }
14082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14087 pgac_cv_alignof_short=0
14090 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14091 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14092 cat >>confdefs.h <<_ACEOF
14093 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14097 echo "$as_me:$LINENO: checking for int" >&5
14098 echo $ECHO_N "checking for int... $ECHO_C" >&6
14099 if test "${ac_cv_type_int+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 cat >conftest.$ac_ext <<_ACEOF
14103 #line $LINENO "configure"
14104 #include "confdefs.h"
14105 $ac_includes_default
14106 #ifdef F77_DUMMY_MAIN
14107 # ifdef __cplusplus
14110 int F77_DUMMY_MAIN() { return 1; }
14123 rm -f conftest.$ac_objext
14124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14125 (eval $ac_compile) 2>&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
14129 { ac_try='test -s conftest.$ac_objext'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; }; then
14137 echo "$as_me: failed program was:" >&5
14138 cat conftest.$ac_ext >&5
14141 rm -f conftest.$ac_objext conftest.$ac_ext
14143 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14144 echo "${ECHO_T}$ac_cv_type_int" >&6
14146 echo "$as_me:$LINENO: checking alignment of int" >&5
14147 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14148 if test "${pgac_cv_alignof_int+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 if test "$ac_cv_type_int" = yes; then
14152 if test "$cross_compiling" = yes; then
14153 # Depending upon the size, compute the lo and hi bounds.
14154 cat >conftest.$ac_ext <<_ACEOF
14155 #line $LINENO "configure"
14156 #include "confdefs.h"
14157 $ac_includes_default
14158 struct { char filler; int field; } pgac_struct;
14159 #ifdef F77_DUMMY_MAIN
14160 # ifdef __cplusplus
14163 int F77_DUMMY_MAIN() { return 1; }
14168 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14175 rm -f conftest.$ac_objext
14176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14177 (eval $ac_compile) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try='test -s conftest.$ac_objext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14189 cat >conftest.$ac_ext <<_ACEOF
14190 #line $LINENO "configure"
14191 #include "confdefs.h"
14192 $ac_includes_default
14193 struct { char filler; int field; } pgac_struct;
14194 #ifdef F77_DUMMY_MAIN
14195 # ifdef __cplusplus
14198 int F77_DUMMY_MAIN() { return 1; }
14203 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14210 rm -f conftest.$ac_objext
14211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14212 (eval $ac_compile) 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -s conftest.$ac_objext'
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_hi=$ac_mid; break
14224 echo "$as_me: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14226 ac_lo=`expr $ac_mid + 1`
14227 if test $ac_lo -le $ac_mid; then
14231 ac_mid=`expr 2 '*' $ac_mid + 1`
14233 rm -f conftest.$ac_objext conftest.$ac_ext
14236 echo "$as_me: failed program was:" >&5
14237 cat conftest.$ac_ext >&5
14238 cat >conftest.$ac_ext <<_ACEOF
14239 #line $LINENO "configure"
14240 #include "confdefs.h"
14241 $ac_includes_default
14242 struct { char filler; int field; } pgac_struct;
14243 #ifdef F77_DUMMY_MAIN
14244 # ifdef __cplusplus
14247 int F77_DUMMY_MAIN() { return 1; }
14252 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14259 rm -f conftest.$ac_objext
14260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14261 (eval $ac_compile) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try='test -s conftest.$ac_objext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14273 cat >conftest.$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14275 #include "confdefs.h"
14276 $ac_includes_default
14277 struct { char filler; int field; } pgac_struct;
14278 #ifdef F77_DUMMY_MAIN
14279 # ifdef __cplusplus
14282 int F77_DUMMY_MAIN() { return 1; }
14287 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14294 rm -f conftest.$ac_objext
14295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14296 (eval $ac_compile) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -s conftest.$ac_objext'
14301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302 (eval $ac_try) 2>&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); }; }; then
14306 ac_lo=$ac_mid; break
14308 echo "$as_me: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14310 ac_hi=`expr '(' $ac_mid ')' - 1`
14311 if test $ac_mid -le $ac_hi; then
14315 ac_mid=`expr 2 '*' $ac_mid`
14317 rm -f conftest.$ac_objext conftest.$ac_ext
14320 echo "$as_me: failed program was:" >&5
14321 cat conftest.$ac_ext >&5
14324 rm -f conftest.$ac_objext conftest.$ac_ext
14326 rm -f conftest.$ac_objext conftest.$ac_ext
14327 # Binary search between lo and hi bounds.
14328 while test "x$ac_lo" != "x$ac_hi"; do
14329 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14330 cat >conftest.$ac_ext <<_ACEOF
14331 #line $LINENO "configure"
14332 #include "confdefs.h"
14333 $ac_includes_default
14334 struct { char filler; int field; } pgac_struct;
14335 #ifdef F77_DUMMY_MAIN
14336 # ifdef __cplusplus
14339 int F77_DUMMY_MAIN() { return 1; }
14344 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14351 rm -f conftest.$ac_objext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353 (eval $ac_compile) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } &&
14357 { ac_try='test -s conftest.$ac_objext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14365 echo "$as_me: failed program was:" >&5
14366 cat conftest.$ac_ext >&5
14367 ac_lo=`expr '(' $ac_mid ')' + 1`
14369 rm -f conftest.$ac_objext conftest.$ac_ext
14372 ?*) pgac_cv_alignof_int=$ac_lo;;
14373 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14374 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14375 { (exit 1); exit 1; }; } ;;
14378 if test "$cross_compiling" = yes; then
14379 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14380 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14381 { (exit 1); exit 1; }; }
14383 cat >conftest.$ac_ext <<_ACEOF
14384 #line $LINENO "configure"
14385 #include "confdefs.h"
14386 $ac_includes_default
14387 struct { char filler; int field; } pgac_struct;
14388 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14389 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14391 #include <stdlib.h>
14392 #ifdef F77_DUMMY_MAIN
14393 # ifdef __cplusplus
14396 int F77_DUMMY_MAIN() { return 1; }
14402 FILE *f = fopen ("conftest.val", "w");
14405 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14407 long i = longval ();
14408 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14410 fprintf (f, "%ld\n", i);
14414 unsigned long i = ulongval ();
14415 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14417 fprintf (f, "%lu\n", i);
14419 exit (ferror (f) || fclose (f) != 0);
14425 rm -f conftest$ac_exeext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14427 (eval $ac_link) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14436 pgac_cv_alignof_int=`cat conftest.val`
14438 echo "$as_me: program exited with status $ac_status" >&5
14439 echo "$as_me: failed program was:" >&5
14440 cat conftest.$ac_ext >&5
14441 ( exit $ac_status )
14442 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14443 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14444 { (exit 1); exit 1; }; }
14446 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14451 pgac_cv_alignof_int=0
14454 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14455 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14456 cat >>confdefs.h <<_ACEOF
14457 #define ALIGNOF_INT $pgac_cv_alignof_int
14461 echo "$as_me:$LINENO: checking for long" >&5
14462 echo $ECHO_N "checking for long... $ECHO_C" >&6
14463 if test "${ac_cv_type_long+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 cat >conftest.$ac_ext <<_ACEOF
14467 #line $LINENO "configure"
14468 #include "confdefs.h"
14469 $ac_includes_default
14470 #ifdef F77_DUMMY_MAIN
14471 # ifdef __cplusplus
14474 int F77_DUMMY_MAIN() { return 1; }
14487 rm -f conftest.$ac_objext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14489 (eval $ac_compile) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -s conftest.$ac_objext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_type_long=yes
14501 echo "$as_me: failed program was:" >&5
14502 cat conftest.$ac_ext >&5
14505 rm -f conftest.$ac_objext conftest.$ac_ext
14507 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14508 echo "${ECHO_T}$ac_cv_type_long" >&6
14510 echo "$as_me:$LINENO: checking alignment of long" >&5
14511 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14512 if test "${pgac_cv_alignof_long+set}" = set; then
14513 echo $ECHO_N "(cached) $ECHO_C" >&6
14515 if test "$ac_cv_type_long" = yes; then
14516 if test "$cross_compiling" = yes; then
14517 # Depending upon the size, compute the lo and hi bounds.
14518 cat >conftest.$ac_ext <<_ACEOF
14519 #line $LINENO "configure"
14520 #include "confdefs.h"
14521 $ac_includes_default
14522 struct { char filler; long field; } pgac_struct;
14523 #ifdef F77_DUMMY_MAIN
14524 # ifdef __cplusplus
14527 int F77_DUMMY_MAIN() { return 1; }
14532 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14539 rm -f conftest.$ac_objext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14541 (eval $ac_compile) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } &&
14545 { ac_try='test -s conftest.$ac_objext'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14553 cat >conftest.$ac_ext <<_ACEOF
14554 #line $LINENO "configure"
14555 #include "confdefs.h"
14556 $ac_includes_default
14557 struct { char filler; long field; } pgac_struct;
14558 #ifdef F77_DUMMY_MAIN
14559 # ifdef __cplusplus
14562 int F77_DUMMY_MAIN() { return 1; }
14567 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14574 rm -f conftest.$ac_objext
14575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14576 (eval $ac_compile) 2>&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
14580 { ac_try='test -s conftest.$ac_objext'
14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 ac_hi=$ac_mid; break
14588 echo "$as_me: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14590 ac_lo=`expr $ac_mid + 1`
14591 if test $ac_lo -le $ac_mid; then
14595 ac_mid=`expr 2 '*' $ac_mid + 1`
14597 rm -f conftest.$ac_objext conftest.$ac_ext
14600 echo "$as_me: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14602 cat >conftest.$ac_ext <<_ACEOF
14603 #line $LINENO "configure"
14604 #include "confdefs.h"
14605 $ac_includes_default
14606 struct { char filler; long field; } pgac_struct;
14607 #ifdef F77_DUMMY_MAIN
14608 # ifdef __cplusplus
14611 int F77_DUMMY_MAIN() { return 1; }
14616 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14623 rm -f conftest.$ac_objext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14625 (eval $ac_compile) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -s conftest.$ac_objext'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14637 cat >conftest.$ac_ext <<_ACEOF
14638 #line $LINENO "configure"
14639 #include "confdefs.h"
14640 $ac_includes_default
14641 struct { char filler; long field; } pgac_struct;
14642 #ifdef F77_DUMMY_MAIN
14643 # ifdef __cplusplus
14646 int F77_DUMMY_MAIN() { return 1; }
14651 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14658 rm -f conftest.$ac_objext
14659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14660 (eval $ac_compile) 2>&5
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); } &&
14664 { ac_try='test -s conftest.$ac_objext'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; }; then
14670 ac_lo=$ac_mid; break
14672 echo "$as_me: failed program was:" >&5
14673 cat conftest.$ac_ext >&5
14674 ac_hi=`expr '(' $ac_mid ')' - 1`
14675 if test $ac_mid -le $ac_hi; then
14679 ac_mid=`expr 2 '*' $ac_mid`
14681 rm -f conftest.$ac_objext conftest.$ac_ext
14684 echo "$as_me: failed program was:" >&5
14685 cat conftest.$ac_ext >&5
14688 rm -f conftest.$ac_objext conftest.$ac_ext
14690 rm -f conftest.$ac_objext conftest.$ac_ext
14691 # Binary search between lo and hi bounds.
14692 while test "x$ac_lo" != "x$ac_hi"; do
14693 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14694 cat >conftest.$ac_ext <<_ACEOF
14695 #line $LINENO "configure"
14696 #include "confdefs.h"
14697 $ac_includes_default
14698 struct { char filler; long field; } pgac_struct;
14699 #ifdef F77_DUMMY_MAIN
14700 # ifdef __cplusplus
14703 int F77_DUMMY_MAIN() { return 1; }
14708 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717 (eval $ac_compile) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14729 echo "$as_me: failed program was:" >&5
14730 cat conftest.$ac_ext >&5
14731 ac_lo=`expr '(' $ac_mid ')' + 1`
14733 rm -f conftest.$ac_objext conftest.$ac_ext
14736 ?*) pgac_cv_alignof_long=$ac_lo;;
14737 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14738 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14739 { (exit 1); exit 1; }; } ;;
14742 if test "$cross_compiling" = yes; then
14743 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14744 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14745 { (exit 1); exit 1; }; }
14747 cat >conftest.$ac_ext <<_ACEOF
14748 #line $LINENO "configure"
14749 #include "confdefs.h"
14750 $ac_includes_default
14751 struct { char filler; long field; } pgac_struct;
14752 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14753 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14755 #include <stdlib.h>
14756 #ifdef F77_DUMMY_MAIN
14757 # ifdef __cplusplus
14760 int F77_DUMMY_MAIN() { return 1; }
14766 FILE *f = fopen ("conftest.val", "w");
14769 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14771 long i = longval ();
14772 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14774 fprintf (f, "%ld\n", i);
14778 unsigned long i = ulongval ();
14779 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14781 fprintf (f, "%lu\n", i);
14783 exit (ferror (f) || fclose (f) != 0);
14789 rm -f conftest$ac_exeext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14791 (eval $ac_link) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }; then
14800 pgac_cv_alignof_long=`cat conftest.val`
14802 echo "$as_me: program exited with status $ac_status" >&5
14803 echo "$as_me: failed program was:" >&5
14804 cat conftest.$ac_ext >&5
14805 ( exit $ac_status )
14806 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14807 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14808 { (exit 1); exit 1; }; }
14810 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14815 pgac_cv_alignof_long=0
14818 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14819 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14820 cat >>confdefs.h <<_ACEOF
14821 #define ALIGNOF_LONG $pgac_cv_alignof_long
14825 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14826 echo "$as_me:$LINENO: checking for long long int" >&5
14827 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14828 if test "${ac_cv_type_long_long_int+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 cat >conftest.$ac_ext <<_ACEOF
14832 #line $LINENO "configure"
14833 #include "confdefs.h"
14834 $ac_includes_default
14835 #ifdef F77_DUMMY_MAIN
14836 # ifdef __cplusplus
14839 int F77_DUMMY_MAIN() { return 1; }
14844 if ((long long int *) 0)
14846 if (sizeof (long long int))
14852 rm -f conftest.$ac_objext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -s conftest.$ac_objext'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_cv_type_long_long_int=yes
14866 echo "$as_me: failed program was:" >&5
14867 cat conftest.$ac_ext >&5
14868 ac_cv_type_long_long_int=no
14870 rm -f conftest.$ac_objext conftest.$ac_ext
14872 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14873 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14875 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14876 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14877 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 if test "$ac_cv_type_long_long_int" = yes; then
14881 if test "$cross_compiling" = yes; then
14882 # Depending upon the size, compute the lo and hi bounds.
14883 cat >conftest.$ac_ext <<_ACEOF
14884 #line $LINENO "configure"
14885 #include "confdefs.h"
14886 $ac_includes_default
14887 struct { char filler; long long int field; } pgac_struct;
14888 #ifdef F77_DUMMY_MAIN
14889 # ifdef __cplusplus
14892 int F77_DUMMY_MAIN() { return 1; }
14897 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14904 rm -f conftest.$ac_objext
14905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14906 (eval $ac_compile) 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -s conftest.$ac_objext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14918 cat >conftest.$ac_ext <<_ACEOF
14919 #line $LINENO "configure"
14920 #include "confdefs.h"
14921 $ac_includes_default
14922 struct { char filler; long long int field; } pgac_struct;
14923 #ifdef F77_DUMMY_MAIN
14924 # ifdef __cplusplus
14927 int F77_DUMMY_MAIN() { return 1; }
14932 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941 (eval $ac_compile) 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } &&
14945 { ac_try='test -s conftest.$ac_objext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14951 ac_hi=$ac_mid; break
14953 echo "$as_me: failed program was:" >&5
14954 cat conftest.$ac_ext >&5
14955 ac_lo=`expr $ac_mid + 1`
14956 if test $ac_lo -le $ac_mid; then
14960 ac_mid=`expr 2 '*' $ac_mid + 1`
14962 rm -f conftest.$ac_objext conftest.$ac_ext
14965 echo "$as_me: failed program was:" >&5
14966 cat conftest.$ac_ext >&5
14967 cat >conftest.$ac_ext <<_ACEOF
14968 #line $LINENO "configure"
14969 #include "confdefs.h"
14970 $ac_includes_default
14971 struct { char filler; long long int field; } pgac_struct;
14972 #ifdef F77_DUMMY_MAIN
14973 # ifdef __cplusplus
14976 int F77_DUMMY_MAIN() { return 1; }
14981 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14988 rm -f conftest.$ac_objext
14989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14990 (eval $ac_compile) 2>&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -s conftest.$ac_objext'
14995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14996 (eval $ac_try) 2>&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); }; }; then
15002 cat >conftest.$ac_ext <<_ACEOF
15003 #line $LINENO "configure"
15004 #include "confdefs.h"
15005 $ac_includes_default
15006 struct { char filler; long long int field; } pgac_struct;
15007 #ifdef F77_DUMMY_MAIN
15008 # ifdef __cplusplus
15011 int F77_DUMMY_MAIN() { return 1; }
15016 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15023 rm -f conftest.$ac_objext
15024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15025 (eval $ac_compile) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -s conftest.$ac_objext'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15035 ac_lo=$ac_mid; break
15037 echo "$as_me: failed program was:" >&5
15038 cat conftest.$ac_ext >&5
15039 ac_hi=`expr '(' $ac_mid ')' - 1`
15040 if test $ac_mid -le $ac_hi; then
15044 ac_mid=`expr 2 '*' $ac_mid`
15046 rm -f conftest.$ac_objext conftest.$ac_ext
15049 echo "$as_me: failed program was:" >&5
15050 cat conftest.$ac_ext >&5
15053 rm -f conftest.$ac_objext conftest.$ac_ext
15055 rm -f conftest.$ac_objext conftest.$ac_ext
15056 # Binary search between lo and hi bounds.
15057 while test "x$ac_lo" != "x$ac_hi"; do
15058 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15059 cat >conftest.$ac_ext <<_ACEOF
15060 #line $LINENO "configure"
15061 #include "confdefs.h"
15062 $ac_includes_default
15063 struct { char filler; long long int field; } pgac_struct;
15064 #ifdef F77_DUMMY_MAIN
15065 # ifdef __cplusplus
15068 int F77_DUMMY_MAIN() { return 1; }
15073 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } &&
15086 { ac_try='test -s conftest.$ac_objext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15094 echo "$as_me: failed program was:" >&5
15095 cat conftest.$ac_ext >&5
15096 ac_lo=`expr '(' $ac_mid ')' + 1`
15098 rm -f conftest.$ac_objext conftest.$ac_ext
15101 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15102 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15103 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15104 { (exit 1); exit 1; }; } ;;
15107 if test "$cross_compiling" = yes; then
15108 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15109 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15110 { (exit 1); exit 1; }; }
15112 cat >conftest.$ac_ext <<_ACEOF
15113 #line $LINENO "configure"
15114 #include "confdefs.h"
15115 $ac_includes_default
15116 struct { char filler; long long int field; } pgac_struct;
15117 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15118 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15120 #include <stdlib.h>
15121 #ifdef F77_DUMMY_MAIN
15122 # ifdef __cplusplus
15125 int F77_DUMMY_MAIN() { return 1; }
15131 FILE *f = fopen ("conftest.val", "w");
15134 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15136 long i = longval ();
15137 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15139 fprintf (f, "%ld\n", i);
15143 unsigned long i = ulongval ();
15144 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15146 fprintf (f, "%lu\n", i);
15148 exit (ferror (f) || fclose (f) != 0);
15154 rm -f conftest$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156 (eval $ac_link) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15161 (eval $ac_try) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 pgac_cv_alignof_long_long_int=`cat conftest.val`
15167 echo "$as_me: program exited with status $ac_status" >&5
15168 echo "$as_me: failed program was:" >&5
15169 cat conftest.$ac_ext >&5
15170 ( exit $ac_status )
15171 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15172 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15173 { (exit 1); exit 1; }; }
15175 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15180 pgac_cv_alignof_long_long_int=0
15183 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15184 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15185 cat >>confdefs.h <<_ACEOF
15186 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15191 echo "$as_me:$LINENO: checking for double" >&5
15192 echo $ECHO_N "checking for double... $ECHO_C" >&6
15193 if test "${ac_cv_type_double+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 cat >conftest.$ac_ext <<_ACEOF
15197 #line $LINENO "configure"
15198 #include "confdefs.h"
15199 $ac_includes_default
15200 #ifdef F77_DUMMY_MAIN
15201 # ifdef __cplusplus
15204 int F77_DUMMY_MAIN() { return 1; }
15211 if (sizeof (double))
15217 rm -f conftest.$ac_objext
15218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15219 (eval $ac_compile) 2>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } &&
15223 { ac_try='test -s conftest.$ac_objext'
15224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225 (eval $ac_try) 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; }; then
15229 ac_cv_type_double=yes
15231 echo "$as_me: failed program was:" >&5
15232 cat conftest.$ac_ext >&5
15233 ac_cv_type_double=no
15235 rm -f conftest.$ac_objext conftest.$ac_ext
15237 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15238 echo "${ECHO_T}$ac_cv_type_double" >&6
15240 echo "$as_me:$LINENO: checking alignment of double" >&5
15241 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15242 if test "${pgac_cv_alignof_double+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 if test "$ac_cv_type_double" = yes; then
15246 if test "$cross_compiling" = yes; then
15247 # Depending upon the size, compute the lo and hi bounds.
15248 cat >conftest.$ac_ext <<_ACEOF
15249 #line $LINENO "configure"
15250 #include "confdefs.h"
15251 $ac_includes_default
15252 struct { char filler; double field; } pgac_struct;
15253 #ifdef F77_DUMMY_MAIN
15254 # ifdef __cplusplus
15257 int F77_DUMMY_MAIN() { return 1; }
15262 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15269 rm -f conftest.$ac_objext
15270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15271 (eval $ac_compile) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15283 cat >conftest.$ac_ext <<_ACEOF
15284 #line $LINENO "configure"
15285 #include "confdefs.h"
15286 $ac_includes_default
15287 struct { char filler; double field; } pgac_struct;
15288 #ifdef F77_DUMMY_MAIN
15289 # ifdef __cplusplus
15292 int F77_DUMMY_MAIN() { return 1; }
15297 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15304 rm -f conftest.$ac_objext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15306 (eval $ac_compile) 2>&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -s conftest.$ac_objext'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 ac_hi=$ac_mid; break
15318 echo "$as_me: failed program was:" >&5
15319 cat conftest.$ac_ext >&5
15320 ac_lo=`expr $ac_mid + 1`
15321 if test $ac_lo -le $ac_mid; then
15325 ac_mid=`expr 2 '*' $ac_mid + 1`
15327 rm -f conftest.$ac_objext conftest.$ac_ext
15330 echo "$as_me: failed program was:" >&5
15331 cat conftest.$ac_ext >&5
15332 cat >conftest.$ac_ext <<_ACEOF
15333 #line $LINENO "configure"
15334 #include "confdefs.h"
15335 $ac_includes_default
15336 struct { char filler; double field; } pgac_struct;
15337 #ifdef F77_DUMMY_MAIN
15338 # ifdef __cplusplus
15341 int F77_DUMMY_MAIN() { return 1; }
15346 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
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 cat >conftest.$ac_ext <<_ACEOF
15368 #line $LINENO "configure"
15369 #include "confdefs.h"
15370 $ac_includes_default
15371 struct { char filler; double field; } pgac_struct;
15372 #ifdef F77_DUMMY_MAIN
15373 # ifdef __cplusplus
15376 int F77_DUMMY_MAIN() { return 1; }
15381 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15388 rm -f conftest.$ac_objext
15389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15390 (eval $ac_compile) 2>&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -s conftest.$ac_objext'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_lo=$ac_mid; break
15402 echo "$as_me: failed program was:" >&5
15403 cat conftest.$ac_ext >&5
15404 ac_hi=`expr '(' $ac_mid ')' - 1`
15405 if test $ac_mid -le $ac_hi; then
15409 ac_mid=`expr 2 '*' $ac_mid`
15411 rm -f conftest.$ac_objext conftest.$ac_ext
15414 echo "$as_me: failed program was:" >&5
15415 cat conftest.$ac_ext >&5
15418 rm -f conftest.$ac_objext conftest.$ac_ext
15420 rm -f conftest.$ac_objext conftest.$ac_ext
15421 # Binary search between lo and hi bounds.
15422 while test "x$ac_lo" != "x$ac_hi"; do
15423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15424 cat >conftest.$ac_ext <<_ACEOF
15425 #line $LINENO "configure"
15426 #include "confdefs.h"
15427 $ac_includes_default
15428 struct { char filler; double field; } pgac_struct;
15429 #ifdef F77_DUMMY_MAIN
15430 # ifdef __cplusplus
15433 int F77_DUMMY_MAIN() { return 1; }
15438 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15445 rm -f conftest.$ac_objext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15447 (eval $ac_compile) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
15451 { ac_try='test -s conftest.$ac_objext'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; }; then
15459 echo "$as_me: failed program was:" >&5
15460 cat conftest.$ac_ext >&5
15461 ac_lo=`expr '(' $ac_mid ')' + 1`
15463 rm -f conftest.$ac_objext conftest.$ac_ext
15466 ?*) pgac_cv_alignof_double=$ac_lo;;
15467 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15468 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15469 { (exit 1); exit 1; }; } ;;
15472 if test "$cross_compiling" = yes; then
15473 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15474 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15475 { (exit 1); exit 1; }; }
15477 cat >conftest.$ac_ext <<_ACEOF
15478 #line $LINENO "configure"
15479 #include "confdefs.h"
15480 $ac_includes_default
15481 struct { char filler; double field; } pgac_struct;
15482 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15483 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15485 #include <stdlib.h>
15486 #ifdef F77_DUMMY_MAIN
15487 # ifdef __cplusplus
15490 int F77_DUMMY_MAIN() { return 1; }
15496 FILE *f = fopen ("conftest.val", "w");
15499 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15501 long i = longval ();
15502 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15504 fprintf (f, "%ld\n", i);
15508 unsigned long i = ulongval ();
15509 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15511 fprintf (f, "%lu\n", i);
15513 exit (ferror (f) || fclose (f) != 0);
15519 rm -f conftest$ac_exeext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521 (eval $ac_link) 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15530 pgac_cv_alignof_double=`cat conftest.val`
15532 echo "$as_me: program exited with status $ac_status" >&5
15533 echo "$as_me: failed program was:" >&5
15534 cat conftest.$ac_ext >&5
15535 ( exit $ac_status )
15536 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15537 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15538 { (exit 1); exit 1; }; }
15540 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15545 pgac_cv_alignof_double=0
15548 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15549 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15550 cat >>confdefs.h <<_ACEOF
15551 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15556 # Compute maximum alignment of any basic type.
15557 # We assume long's alignment is at least as strong as char, short, or int;
15558 # but we must check long long (if it exists) and double.
15560 MAX_ALIGNOF=$pgac_cv_alignof_long
15561 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15562 MAX_ALIGNOF=$pgac_cv_alignof_double
15564 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15565 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15568 cat >>confdefs.h <<_ACEOF
15569 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15574 # Some platforms predefine the types int8, int16, etc. Only check
15575 # a (hopefully) representative subset.
15576 echo "$as_me:$LINENO: checking for int8" >&5
15577 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15578 if test "${ac_cv_type_int8+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15581 cat >conftest.$ac_ext <<_ACEOF
15582 #line $LINENO "configure"
15583 #include "confdefs.h"
15585 #ifdef HAVE_SUPPORTDEFS_H
15586 #include <SupportDefs.h>
15589 #ifdef F77_DUMMY_MAIN
15590 # ifdef __cplusplus
15593 int F77_DUMMY_MAIN() { return 1; }
15606 rm -f conftest.$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try='test -s conftest.$ac_objext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_cv_type_int8=yes
15620 echo "$as_me: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15624 rm -f conftest.$ac_objext conftest.$ac_ext
15626 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15627 echo "${ECHO_T}$ac_cv_type_int8" >&6
15628 if test $ac_cv_type_int8 = yes; then
15630 cat >>confdefs.h <<_ACEOF
15631 #define HAVE_INT8 1
15636 echo "$as_me:$LINENO: checking for uint8" >&5
15637 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15638 if test "${ac_cv_type_uint8+set}" = set; then
15639 echo $ECHO_N "(cached) $ECHO_C" >&6
15641 cat >conftest.$ac_ext <<_ACEOF
15642 #line $LINENO "configure"
15643 #include "confdefs.h"
15645 #ifdef HAVE_SUPPORTDEFS_H
15646 #include <SupportDefs.h>
15649 #ifdef F77_DUMMY_MAIN
15650 # ifdef __cplusplus
15653 int F77_DUMMY_MAIN() { return 1; }
15660 if (sizeof (uint8))
15666 rm -f conftest.$ac_objext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668 (eval $ac_compile) 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } &&
15672 { ac_try='test -s conftest.$ac_objext'
15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674 (eval $ac_try) 2>&5
15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677 (exit $ac_status); }; }; then
15678 ac_cv_type_uint8=yes
15680 echo "$as_me: failed program was:" >&5
15681 cat conftest.$ac_ext >&5
15682 ac_cv_type_uint8=no
15684 rm -f conftest.$ac_objext conftest.$ac_ext
15686 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15687 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15688 if test $ac_cv_type_uint8 = yes; then
15690 cat >>confdefs.h <<_ACEOF
15691 #define HAVE_UINT8 1
15696 echo "$as_me:$LINENO: checking for int64" >&5
15697 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15698 if test "${ac_cv_type_int64+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 cat >conftest.$ac_ext <<_ACEOF
15702 #line $LINENO "configure"
15703 #include "confdefs.h"
15705 #ifdef HAVE_SUPPORTDEFS_H
15706 #include <SupportDefs.h>
15709 #ifdef F77_DUMMY_MAIN
15710 # ifdef __cplusplus
15713 int F77_DUMMY_MAIN() { return 1; }
15720 if (sizeof (int64))
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -s conftest.$ac_objext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_cv_type_int64=yes
15740 echo "$as_me: failed program was:" >&5
15741 cat conftest.$ac_ext >&5
15742 ac_cv_type_int64=no
15744 rm -f conftest.$ac_objext conftest.$ac_ext
15746 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15747 echo "${ECHO_T}$ac_cv_type_int64" >&6
15748 if test $ac_cv_type_int64 = yes; then
15750 cat >>confdefs.h <<_ACEOF
15751 #define HAVE_INT64 1
15756 echo "$as_me:$LINENO: checking for uint64" >&5
15757 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15758 if test "${ac_cv_type_uint64+set}" = set; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 cat >conftest.$ac_ext <<_ACEOF
15762 #line $LINENO "configure"
15763 #include "confdefs.h"
15765 #ifdef HAVE_SUPPORTDEFS_H
15766 #include <SupportDefs.h>
15769 #ifdef F77_DUMMY_MAIN
15770 # ifdef __cplusplus
15773 int F77_DUMMY_MAIN() { return 1; }
15780 if (sizeof (uint64))
15786 rm -f conftest.$ac_objext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15788 (eval $ac_compile) 2>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); } &&
15792 { ac_try='test -s conftest.$ac_objext'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_cv_type_uint64=yes
15800 echo "$as_me: failed program was:" >&5
15801 cat conftest.$ac_ext >&5
15802 ac_cv_type_uint64=no
15804 rm -f conftest.$ac_objext conftest.$ac_ext
15806 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15807 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15808 if test $ac_cv_type_uint64 = yes; then
15810 cat >>confdefs.h <<_ACEOF
15811 #define HAVE_UINT64 1
15818 # We also check for sig_atomic_t, which *should* be defined per ANSI
15819 # C, but is missing on some old platforms.
15820 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15821 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15822 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15823 echo $ECHO_N "(cached) $ECHO_C" >&6
15825 cat >conftest.$ac_ext <<_ACEOF
15826 #line $LINENO "configure"
15827 #include "confdefs.h"
15828 #include <signal.h>
15830 #ifdef F77_DUMMY_MAIN
15831 # ifdef __cplusplus
15834 int F77_DUMMY_MAIN() { return 1; }
15839 if ((sig_atomic_t *) 0)
15841 if (sizeof (sig_atomic_t))
15847 rm -f conftest.$ac_objext
15848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -s conftest.$ac_objext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_cv_type_sig_atomic_t=yes
15861 echo "$as_me: failed program was:" >&5
15862 cat conftest.$ac_ext >&5
15863 ac_cv_type_sig_atomic_t=no
15865 rm -f conftest.$ac_objext conftest.$ac_ext
15867 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15868 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15869 if test $ac_cv_type_sig_atomic_t = yes; then
15871 cat >>confdefs.h <<_ACEOF
15872 #define HAVE_SIG_ATOMIC_T 1
15880 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15881 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15882 if test "${pgac_cv_func_posix_signals+set}" = set; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15885 cat >conftest.$ac_ext <<_ACEOF
15886 #line $LINENO "configure"
15887 #include "confdefs.h"
15888 #include <signal.h>
15890 #ifdef F77_DUMMY_MAIN
15891 # ifdef __cplusplus
15894 int F77_DUMMY_MAIN() { return 1; }
15899 struct sigaction act, oact;
15900 sigemptyset(&act.sa_mask);
15901 act.sa_flags = SA_RESTART;
15902 sigaction(0, &act, &oact);
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909 (eval $ac_link) 2>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -s conftest$ac_exeext'
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
15919 pgac_cv_func_posix_signals=yes
15921 echo "$as_me: failed program was:" >&5
15922 cat conftest.$ac_ext >&5
15923 pgac_cv_func_posix_signals=no
15925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15927 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15928 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15929 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15931 cat >>confdefs.h <<\_ACEOF
15932 #define HAVE_POSIX_SIGNALS
15936 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15938 if test $ac_cv_func_fseeko = yes; then
15939 # Check whether --enable-largefile or --disable-largefile was given.
15940 if test "${enable_largefile+set}" = set; then
15941 enableval="$enable_largefile"
15944 if test "$enable_largefile" != no; then
15946 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15947 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15948 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 ac_cv_sys_largefile_CC=no
15952 if test "$GCC" != yes; then
15955 # IRIX 6.2 and later do not support large files by default,
15956 # so use the C compiler's -n32 option if that helps.
15957 cat >conftest.$ac_ext <<_ACEOF
15958 #line $LINENO "configure"
15959 #include "confdefs.h"
15960 #include <sys/types.h>
15961 /* Check that off_t can represent 2**63 - 1 correctly.
15962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15963 since some C++ compilers masquerading as C compilers
15964 incorrectly reject 9223372036854775807. */
15965 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15967 && LARGE_OFF_T % 2147483647 == 1)
15969 #ifdef F77_DUMMY_MAIN
15970 # ifdef __cplusplus
15973 int F77_DUMMY_MAIN() { return 1; }
15983 rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -s conftest.$ac_objext'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15997 echo "$as_me: failed program was:" >&5
15998 cat conftest.$ac_ext >&5
16000 rm -f conftest.$ac_objext
16002 rm -f conftest.$ac_objext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16004 (eval $ac_compile) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
16008 { ac_try='test -s conftest.$ac_objext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_cv_sys_largefile_CC=' -n32'; break
16016 echo "$as_me: failed program was:" >&5
16017 cat conftest.$ac_ext >&5
16019 rm -f conftest.$ac_objext
16023 rm -f conftest.$ac_ext
16026 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16027 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16028 if test "$ac_cv_sys_largefile_CC" != no; then
16029 CC=$CC$ac_cv_sys_largefile_CC
16032 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16033 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16034 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 ac_cv_sys_file_offset_bits=no
16039 cat >conftest.$ac_ext <<_ACEOF
16040 #line $LINENO "configure"
16041 #include "confdefs.h"
16042 #include <sys/types.h>
16043 /* Check that off_t can represent 2**63 - 1 correctly.
16044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16045 since some C++ compilers masquerading as C compilers
16046 incorrectly reject 9223372036854775807. */
16047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16049 && LARGE_OFF_T % 2147483647 == 1)
16051 #ifdef F77_DUMMY_MAIN
16052 # ifdef __cplusplus
16055 int F77_DUMMY_MAIN() { return 1; }
16065 rm -f conftest.$ac_objext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16067 (eval $ac_compile) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } &&
16071 { ac_try='test -s conftest.$ac_objext'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16079 echo "$as_me: failed program was:" >&5
16080 cat conftest.$ac_ext >&5
16082 rm -f conftest.$ac_objext conftest.$ac_ext
16083 cat >conftest.$ac_ext <<_ACEOF
16084 #line $LINENO "configure"
16085 #include "confdefs.h"
16086 #define _FILE_OFFSET_BITS 64
16087 #include <sys/types.h>
16088 /* Check that off_t can represent 2**63 - 1 correctly.
16089 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16090 since some C++ compilers masquerading as C compilers
16091 incorrectly reject 9223372036854775807. */
16092 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16093 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16094 && LARGE_OFF_T % 2147483647 == 1)
16096 #ifdef F77_DUMMY_MAIN
16097 # ifdef __cplusplus
16100 int F77_DUMMY_MAIN() { return 1; }
16110 rm -f conftest.$ac_objext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16112 (eval $ac_compile) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } &&
16116 { ac_try='test -s conftest.$ac_objext'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; }; then
16122 ac_cv_sys_file_offset_bits=64; break
16124 echo "$as_me: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16127 rm -f conftest.$ac_objext conftest.$ac_ext
16131 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16132 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16133 if test "$ac_cv_sys_file_offset_bits" != no; then
16135 cat >>confdefs.h <<_ACEOF
16136 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16141 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16142 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16143 if test "${ac_cv_sys_large_files+set}" = set; then
16144 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 ac_cv_sys_large_files=no
16148 cat >conftest.$ac_ext <<_ACEOF
16149 #line $LINENO "configure"
16150 #include "confdefs.h"
16151 #include <sys/types.h>
16152 /* Check that off_t can represent 2**63 - 1 correctly.
16153 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16154 since some C++ compilers masquerading as C compilers
16155 incorrectly reject 9223372036854775807. */
16156 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16157 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16158 && LARGE_OFF_T % 2147483647 == 1)
16160 #ifdef F77_DUMMY_MAIN
16161 # ifdef __cplusplus
16164 int F77_DUMMY_MAIN() { return 1; }
16174 rm -f conftest.$ac_objext
16175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16176 (eval $ac_compile) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -s conftest.$ac_objext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16188 echo "$as_me: failed program was:" >&5
16189 cat conftest.$ac_ext >&5
16191 rm -f conftest.$ac_objext conftest.$ac_ext
16192 cat >conftest.$ac_ext <<_ACEOF
16193 #line $LINENO "configure"
16194 #include "confdefs.h"
16195 #define _LARGE_FILES 1
16196 #include <sys/types.h>
16197 /* Check that off_t can represent 2**63 - 1 correctly.
16198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16199 since some C++ compilers masquerading as C compilers
16200 incorrectly reject 9223372036854775807. */
16201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16203 && LARGE_OFF_T % 2147483647 == 1)
16205 #ifdef F77_DUMMY_MAIN
16206 # ifdef __cplusplus
16209 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_sys_large_files=1; break
16233 echo "$as_me: failed program was:" >&5
16234 cat conftest.$ac_ext >&5
16236 rm -f conftest.$ac_objext conftest.$ac_ext
16240 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16241 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16242 if test "$ac_cv_sys_large_files" != no; then
16244 cat >>confdefs.h <<_ACEOF
16245 #define _LARGE_FILES $ac_cv_sys_large_files
16255 # Select semaphore implementation type.
16256 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16258 cat >>confdefs.h <<\_ACEOF
16259 #define USE_NAMED_POSIX_SEMAPHORES 1
16262 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16264 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16266 cat >>confdefs.h <<\_ACEOF
16267 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16270 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16273 cat >>confdefs.h <<\_ACEOF
16274 #define USE_SYSV_SEMAPHORES 1
16277 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16282 # Select shared-memory implementation type.
16284 cat >>confdefs.h <<\_ACEOF
16285 #define USE_SYSV_SHARED_MEMORY 1
16288 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16291 if test "$enable_nls" = yes ; then
16293 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16294 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16295 if test "${ac_cv_search_gettext+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 ac_func_search_save_LIBS=$LIBS
16299 ac_cv_search_gettext=no
16300 cat >conftest.$ac_ext <<_ACEOF
16301 #line $LINENO "configure"
16302 #include "confdefs.h"
16304 /* Override any gcc2 internal prototype to avoid an error. */
16308 /* We use char because int might match the return type of a gcc2
16309 builtin and then its argument prototype would still apply. */
16311 #ifdef F77_DUMMY_MAIN
16312 # ifdef __cplusplus
16315 int F77_DUMMY_MAIN() { return 1; }
16325 rm -f conftest.$ac_objext conftest$ac_exeext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16327 (eval $ac_link) 2>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try='test -s conftest$ac_exeext'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ac_cv_search_gettext="none required"
16339 echo "$as_me: failed program was:" >&5
16340 cat conftest.$ac_ext >&5
16342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16343 if test "$ac_cv_search_gettext" = no; then
16344 for ac_lib in intl; do
16345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16346 cat >conftest.$ac_ext <<_ACEOF
16347 #line $LINENO "configure"
16348 #include "confdefs.h"
16350 /* Override any gcc2 internal prototype to avoid an error. */
16354 /* We use char because int might match the return type of a gcc2
16355 builtin and then its argument prototype would still apply. */
16357 #ifdef F77_DUMMY_MAIN
16358 # ifdef __cplusplus
16361 int F77_DUMMY_MAIN() { return 1; }
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16373 (eval $ac_link) 2>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try='test -s conftest$ac_exeext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 ac_cv_search_gettext="-l$ac_lib"
16386 echo "$as_me: failed program was:" >&5
16387 cat conftest.$ac_ext >&5
16389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16392 LIBS=$ac_func_search_save_LIBS
16394 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16395 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16396 if test "$ac_cv_search_gettext" != no; then
16397 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16400 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16401 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16402 { (exit 1); exit 1; }; }
16405 if test "${ac_cv_header_libintl_h+set}" = set; then
16406 echo "$as_me:$LINENO: checking for libintl.h" >&5
16407 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16408 if test "${ac_cv_header_libintl_h+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16411 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16412 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16414 # Is the header compilable?
16415 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16416 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16417 cat >conftest.$ac_ext <<_ACEOF
16418 #line $LINENO "configure"
16419 #include "confdefs.h"
16420 $ac_includes_default
16421 #include <libintl.h>
16423 rm -f conftest.$ac_objext
16424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16425 (eval $ac_compile) 2>&5
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
16429 { ac_try='test -s conftest.$ac_objext'
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16435 ac_header_compiler=yes
16437 echo "$as_me: failed program was:" >&5
16438 cat conftest.$ac_ext >&5
16439 ac_header_compiler=no
16441 rm -f conftest.$ac_objext conftest.$ac_ext
16442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16443 echo "${ECHO_T}$ac_header_compiler" >&6
16445 # Is the header present?
16446 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16447 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16448 cat >conftest.$ac_ext <<_ACEOF
16449 #line $LINENO "configure"
16450 #include "confdefs.h"
16451 #include <libintl.h>
16453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16456 egrep -v '^ *\+' conftest.er1 >conftest.err
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } >/dev/null; then
16461 if test -s conftest.err; then
16462 ac_cpp_err=$ac_c_preproc_warn_flag
16469 if test -z "$ac_cpp_err"; then
16470 ac_header_preproc=yes
16472 echo "$as_me: failed program was:" >&5
16473 cat conftest.$ac_ext >&5
16474 ac_header_preproc=no
16476 rm -f conftest.err conftest.$ac_ext
16477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16478 echo "${ECHO_T}$ac_header_preproc" >&6
16480 # So? What about this header?
16481 case $ac_header_compiler:$ac_header_preproc in
16483 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16484 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16485 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16486 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16488 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16489 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16491 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16493 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16495 echo "$as_me:$LINENO: checking for libintl.h" >&5
16496 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16497 if test "${ac_cv_header_libintl_h+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16500 ac_cv_header_libintl_h=$ac_header_preproc
16502 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16503 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16506 if test $ac_cv_header_libintl_h = yes; then
16509 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16510 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16511 { (exit 1); exit 1; }; }
16515 for ac_prog in msgfmt
16517 # Extract the first word of "$ac_prog", so it can be a program name with args.
16518 set dummy $ac_prog; ac_word=$2
16519 echo "$as_me:$LINENO: checking for $ac_word" >&5
16520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16521 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 if test -n "$MSGFMT"; then
16525 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528 for as_dir in $PATH
16531 test -z "$as_dir" && as_dir=.
16532 for ac_exec_ext in '' $ac_executable_extensions; do
16533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16534 ac_cv_prog_MSGFMT="$ac_prog"
16535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16543 MSGFMT=$ac_cv_prog_MSGFMT
16544 if test -n "$MSGFMT"; then
16545 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16546 echo "${ECHO_T}$MSGFMT" >&6
16548 echo "$as_me:$LINENO: result: no" >&5
16549 echo "${ECHO_T}no" >&6
16552 test -n "$MSGFMT" && break
16555 if test -z "$MSGFMT"; then
16556 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16557 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16558 { (exit 1); exit 1; }; }
16560 for ac_prog in msgmerge
16562 # Extract the first word of "$ac_prog", so it can be a program name with args.
16563 set dummy $ac_prog; ac_word=$2
16564 echo "$as_me:$LINENO: checking for $ac_word" >&5
16565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16566 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 if test -n "$MSGMERGE"; then
16570 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16573 for as_dir in $PATH
16576 test -z "$as_dir" && as_dir=.
16577 for ac_exec_ext in '' $ac_executable_extensions; do
16578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16579 ac_cv_prog_MSGMERGE="$ac_prog"
16580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16588 MSGMERGE=$ac_cv_prog_MSGMERGE
16589 if test -n "$MSGMERGE"; then
16590 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16591 echo "${ECHO_T}$MSGMERGE" >&6
16593 echo "$as_me:$LINENO: result: no" >&5
16594 echo "${ECHO_T}no" >&6
16597 test -n "$MSGMERGE" && break
16600 for ac_prog in xgettext
16602 # Extract the first word of "$ac_prog", so it can be a program name with args.
16603 set dummy $ac_prog; ac_word=$2
16604 echo "$as_me:$LINENO: checking for $ac_word" >&5
16605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16606 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16607 echo $ECHO_N "(cached) $ECHO_C" >&6
16609 if test -n "$XGETTEXT"; then
16610 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16613 for as_dir in $PATH
16616 test -z "$as_dir" && as_dir=.
16617 for ac_exec_ext in '' $ac_executable_extensions; do
16618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16619 ac_cv_prog_XGETTEXT="$ac_prog"
16620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16628 XGETTEXT=$ac_cv_prog_XGETTEXT
16629 if test -n "$XGETTEXT"; then
16630 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16631 echo "${ECHO_T}$XGETTEXT" >&6
16633 echo "$as_me:$LINENO: result: no" >&5
16634 echo "${ECHO_T}no" >&6
16637 test -n "$XGETTEXT" && break
16641 # Note: share/locale is always the default, independent of $datadir
16642 localedir='${prefix}/share/locale'
16643 if test x"$prefix" = x"NONE"; then
16644 exp_localedir="$ac_default_prefix/share/locale"
16646 exp_localedir="$prefix/share/locale"
16651 cat >>confdefs.h <<_ACEOF
16652 #define LOCALEDIR "$exp_localedir"
16658 # Check for Tcl configuration script tclConfig.sh
16659 if test "$with_tcl" = yes; then
16660 for ac_prog in tclsh tcl
16662 # Extract the first word of "$ac_prog", so it can be a program name with args.
16663 set dummy $ac_prog; ac_word=$2
16664 echo "$as_me:$LINENO: checking for $ac_word" >&5
16665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16666 if test "${ac_cv_path_TCLSH+set}" = set; then
16667 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16675 for as_dir in $PATH
16678 test -z "$as_dir" && as_dir=.
16679 for ac_exec_ext in '' $ac_executable_extensions; do
16680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16681 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16691 TCLSH=$ac_cv_path_TCLSH
16693 if test -n "$TCLSH"; then
16694 echo "$as_me:$LINENO: result: $TCLSH" >&5
16695 echo "${ECHO_T}$TCLSH" >&6
16697 echo "$as_me:$LINENO: result: no" >&5
16698 echo "${ECHO_T}no" >&6
16701 test -n "$TCLSH" && break
16704 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16705 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16706 # Let user override test
16707 if test -z "$TCL_CONFIG_SH"; then
16708 pgac_test_dirs="$with_tclconfig"
16710 set X $pgac_test_dirs; shift
16711 if test $# -eq 0; then
16712 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16713 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16714 { (exit 1); exit 1; }; }
16715 set X `echo 'puts $auto_path' | $TCLSH`; shift
16719 if test -r "$pgac_dir/tclConfig.sh"; then
16720 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16726 if test -z "$TCL_CONFIG_SH"; then
16727 echo "$as_me:$LINENO: result: no" >&5
16728 echo "${ECHO_T}no" >&6
16729 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16730 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16731 { (exit 1); exit 1; }; }
16733 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16734 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16740 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16741 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16742 eval TCL_LIBS=\"$TCL_LIBS\"
16743 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16744 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16748 # Check for Tk configuration script tkConfig.sh
16749 if test "$with_tk" = yes; then
16750 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16751 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16752 # Let user override test
16753 if test -z "$TK_CONFIG_SH"; then
16754 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16756 set X $pgac_test_dirs; shift
16757 if test $# -eq 0; then
16758 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16759 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16760 { (exit 1); exit 1; }; }
16761 set X `echo 'puts $auto_path' | $TCLSH`; shift
16765 if test -r "$pgac_dir/tkConfig.sh"; then
16766 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16772 if test -z "$TK_CONFIG_SH"; then
16773 echo "$as_me:$LINENO: result: no" >&5
16774 echo "${ECHO_T}no" >&6
16775 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16776 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16777 { (exit 1); exit 1; }; }
16779 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16780 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16786 eval TK_LIBS=\"$TK_LIBS\"
16787 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16788 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16794 # Check for DocBook and tools
16796 for ac_prog in onsgmls nsgmls
16798 # Extract the first word of "$ac_prog", so it can be a program name with args.
16799 set dummy $ac_prog; ac_word=$2
16800 echo "$as_me:$LINENO: checking for $ac_word" >&5
16801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16802 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16803 echo $ECHO_N "(cached) $ECHO_C" >&6
16805 if test -n "$NSGMLS"; then
16806 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809 for as_dir in $PATH
16812 test -z "$as_dir" && as_dir=.
16813 for ac_exec_ext in '' $ac_executable_extensions; do
16814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16815 ac_cv_prog_NSGMLS="$ac_prog"
16816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16824 NSGMLS=$ac_cv_prog_NSGMLS
16825 if test -n "$NSGMLS"; then
16826 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16827 echo "${ECHO_T}$NSGMLS" >&6
16829 echo "$as_me:$LINENO: result: no" >&5
16830 echo "${ECHO_T}no" >&6
16833 test -n "$NSGMLS" && break
16836 for ac_prog in openjade jade
16838 # Extract the first word of "$ac_prog", so it can be a program name with args.
16839 set dummy $ac_prog; ac_word=$2
16840 echo "$as_me:$LINENO: checking for $ac_word" >&5
16841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16842 if test "${ac_cv_prog_JADE+set}" = set; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16845 if test -n "$JADE"; then
16846 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16849 for as_dir in $PATH
16852 test -z "$as_dir" && as_dir=.
16853 for ac_exec_ext in '' $ac_executable_extensions; do
16854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16855 ac_cv_prog_JADE="$ac_prog"
16856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16864 JADE=$ac_cv_prog_JADE
16865 if test -n "$JADE"; then
16866 echo "$as_me:$LINENO: result: $JADE" >&5
16867 echo "${ECHO_T}$JADE" >&6
16869 echo "$as_me:$LINENO: result: no" >&5
16870 echo "${ECHO_T}no" >&6
16873 test -n "$JADE" && break
16877 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16878 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16879 if test "${pgac_cv_check_docbook+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 cat >conftest.sgml <<EOF
16883 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16885 <title>test</title>
16887 <title>random</title>
16889 <title>testsect</title>
16896 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16897 if test $? -eq 0; then
16898 pgac_cv_check_docbook=yes
16900 pgac_cv_check_docbook=no
16902 rm -f conftest.sgml
16904 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16905 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16907 have_docbook=$pgac_cv_check_docbook
16910 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16911 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16912 if test "${pgac_cv_path_stylesheets+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 if test -n "$DOCBOOKSTYLE"; then
16916 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16918 for pgac_prefix in /usr /usr/local /opt; do
16919 for pgac_infix in share lib; do
16920 for pgac_postfix in \
16921 sgml/stylesheets/nwalsh-modular \
16922 sgml/stylesheets/docbook \
16923 sgml/docbook/dsssl/modular \
16924 sgml/docbook/stylesheet/dsssl/modular \
16925 sgml/docbook/dsssl-stylesheets
16927 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16928 if test -r "$pgac_candidate/html/docbook.dsl" \
16929 && test -r "$pgac_candidate/print/docbook.dsl"
16931 pgac_cv_path_stylesheets=$pgac_candidate
16940 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16942 if test -n "$DOCBOOKSTYLE"; then
16943 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16944 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16946 echo "$as_me:$LINENO: result: no" >&5
16947 echo "${ECHO_T}no" >&6
16949 if test -n "$DOCBOOKSTYLE"; then
16950 for ac_prog in collateindex.pl
16952 # Extract the first word of "$ac_prog", so it can be a program name with args.
16953 set dummy $ac_prog; ac_word=$2
16954 echo "$as_me:$LINENO: checking for $ac_word" >&5
16955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16956 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 case $COLLATEINDEX in
16961 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16965 for as_dir in $DOCBOOKSTYLE/bin $PATH
16968 test -z "$as_dir" && as_dir=.
16969 for ac_exec_ext in '' $ac_executable_extensions; do
16970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16971 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16981 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16983 if test -n "$COLLATEINDEX"; then
16984 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16985 echo "${ECHO_T}$COLLATEINDEX" >&6
16987 echo "$as_me:$LINENO: result: no" >&5
16988 echo "${ECHO_T}no" >&6
16991 test -n "$COLLATEINDEX" && break
16995 for ac_prog in collateindex.pl
16997 # Extract the first word of "$ac_prog", so it can be a program name with args.
16998 set dummy $ac_prog; ac_word=$2
16999 echo "$as_me:$LINENO: checking for $ac_word" >&5
17000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17001 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17004 case $COLLATEINDEX in
17006 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17010 for as_dir in $PATH
17013 test -z "$as_dir" && as_dir=.
17014 for ac_exec_ext in '' $ac_executable_extensions; do
17015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17016 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17026 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17028 if test -n "$COLLATEINDEX"; then
17029 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17030 echo "${ECHO_T}$COLLATEINDEX" >&6
17032 echo "$as_me:$LINENO: result: no" >&5
17033 echo "${ECHO_T}no" >&6
17036 test -n "$COLLATEINDEX" && break
17040 for ac_prog in sgmlspl
17042 # Extract the first word of "$ac_prog", so it can be a program name with args.
17043 set dummy $ac_prog; ac_word=$2
17044 echo "$as_me:$LINENO: checking for $ac_word" >&5
17045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17046 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17049 if test -n "$SGMLSPL"; then
17050 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17053 for as_dir in $PATH
17056 test -z "$as_dir" && as_dir=.
17057 for ac_exec_ext in '' $ac_executable_extensions; do
17058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17059 ac_cv_prog_SGMLSPL="$ac_prog"
17060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17068 SGMLSPL=$ac_cv_prog_SGMLSPL
17069 if test -n "$SGMLSPL"; then
17070 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17071 echo "${ECHO_T}$SGMLSPL" >&6
17073 echo "$as_me:$LINENO: result: no" >&5
17074 echo "${ECHO_T}no" >&6
17077 test -n "$SGMLSPL" && break
17082 # prepare build tree if outside source tree
17083 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17084 # Note 2: /bin/pwd might be better than shell's built-in at getting
17085 # a symlink-free name.
17086 if test "$no_create" != yes; then
17087 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17092 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17093 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17094 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17095 || { { echo "$as_me:$LINENO: error: failed" >&5
17096 echo "$as_me: error: failed" >&2;}
17097 { (exit 1); exit 1; }; }
17098 echo "$as_me:$LINENO: result: done" >&5
17099 echo "${ECHO_T}done" >&6
17104 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17107 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}"
17110 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17113 cat >confcache <<\_ACEOF
17114 # This file is a shell script that caches the results of configure
17115 # tests run on this system so they can be shared between configure
17116 # scripts and configure runs, see configure's option --config-cache.
17117 # It is not useful on other systems. If it contains results you don't
17118 # want to keep, you may remove or edit it.
17120 # config.status only pays attention to the cache file if you give it
17121 # the --recheck option to rerun configure.
17123 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17125 # following values.
17129 # The following way of writing the cache mishandles newlines in values,
17130 # but we know of no workaround that is simple, portable, and efficient.
17131 # So, don't put newlines in cache variables' values.
17132 # Ultrix sh set writes to stderr and can't be redirected directly,
17133 # and sets the high bit in the cache file unless we assign to the vars.
17136 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17138 # `set' does not quote correctly, so add quotes (double-quote
17139 # substitution turns \\\\ into \\, and sed turns \\ into \).
17142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17145 # `set' quotes correctly as required by POSIX, so do not add quotes.
17147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17156 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17158 if cmp -s $cache_file confcache; then :; else
17159 if test -w $cache_file; then
17160 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17161 cat confcache >$cache_file
17163 echo "not updating unwritable cache $cache_file"
17168 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17169 # Let make expand exec_prefix.
17170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17174 # trailing colons and then remove the whole line if VPATH becomes empty
17175 # (actually we leave an empty line to preserve line numbers).
17176 if test "x$srcdir" = x.; then
17177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17178 s/:*\$(srcdir):*/:/;
17179 s/:*\${srcdir}:*/:/;
17181 s/^\([^=]*=[ ]*\):*/\1/;
17187 DEFS=-DHAVE_CONFIG_H
17190 : ${CONFIG_STATUS=./config.status}
17191 ac_clean_files_save=$ac_clean_files
17192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17193 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17194 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17195 cat >$CONFIG_STATUS <<_ACEOF
17197 # Generated by $as_me.
17198 # Run this file to recreate the current configuration.
17199 # Compiler output produced by configure, useful for debugging
17200 # configure, is in config.log if it exists.
17203 SHELL=\${CONFIG_SHELL-$SHELL}
17206 cat >>$CONFIG_STATUS <<\_ACEOF
17208 ## --------------------- ##
17209 ## M4sh Initialization. ##
17210 ## --------------------- ##
17212 # Be Bourne compatible
17213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17216 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17221 # Support unset when possible.
17222 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17228 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17229 { $as_unset LANG || test "${LANG+set}" != set; } ||
17230 { LANG=C; export LANG; }
17231 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17232 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17233 { LC_ALL=C; export LC_ALL; }
17234 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17235 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17236 { LC_TIME=C; export LC_TIME; }
17237 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17238 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17239 { LC_CTYPE=C; export LC_CTYPE; }
17240 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17241 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17242 { LANGUAGE=C; export LANGUAGE; }
17243 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17244 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17245 { LC_COLLATE=C; export LC_COLLATE; }
17246 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17247 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17248 { LC_NUMERIC=C; export LC_NUMERIC; }
17249 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17250 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17251 { LC_MESSAGES=C; export LC_MESSAGES; }
17254 # Name of the executable.
17255 as_me=`(basename "$0") 2>/dev/null ||
17256 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17257 X"$0" : 'X\(//\)$' \| \
17258 X"$0" : 'X\(/\)$' \| \
17259 . : '\(.\)' 2>/dev/null ||
17261 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17262 /^X\/\(\/\/\)$/{ s//\1/; q; }
17263 /^X\/\(\/\).*/{ s//\1/; q; }
17266 # PATH needs CR, and LINENO needs CR and PATH.
17267 # Avoid depending upon Character Ranges.
17268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17271 as_cr_digits='0123456789'
17272 as_cr_alnum=$as_cr_Letters$as_cr_digits
17274 # The user is always right.
17275 if test "${PATH_SEPARATOR+set}" != set; then
17276 echo "#! /bin/sh" >conftest.sh
17277 echo "exit 0" >>conftest.sh
17278 chmod +x conftest.sh
17279 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17288 as_lineno_1=$LINENO
17289 as_lineno_2=$LINENO
17290 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17291 test "x$as_lineno_1" != "x$as_lineno_2" &&
17292 test "x$as_lineno_3" = "x$as_lineno_2" || {
17293 # Find who we are. Look in the path if we contain no path at all
17296 *[\\/]* ) as_myself=$0 ;;
17297 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17298 for as_dir in $PATH
17301 test -z "$as_dir" && as_dir=.
17302 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17307 # We did not find ourselves, most probably we were run as `sh COMMAND'
17308 # in which case we are not to be found in the path.
17309 if test "x$as_myself" = x; then
17312 if test ! -f "$as_myself"; then
17313 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17314 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17315 { (exit 1); exit 1; }; }
17317 case $CONFIG_SHELL in
17319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17320 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17323 test -z "$as_dir" && as_dir=.
17324 for as_base in sh bash ksh sh5; do
17327 if ("$as_dir/$as_base" -c '
17328 as_lineno_1=$LINENO
17329 as_lineno_2=$LINENO
17330 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17331 test "x$as_lineno_1" != "x$as_lineno_2" &&
17332 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17333 CONFIG_SHELL=$as_dir/$as_base
17334 export CONFIG_SHELL
17335 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17343 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17344 # uniformly replaced by the line number. The first 'sed' inserts a
17345 # line-number line before each line; the second 'sed' does the real
17346 # work. The second script uses 'N' to pair each line-number line
17347 # with the numbered line, and appends trailing '-' during
17348 # substitution so that $LINENO is not a special case at line end.
17349 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17350 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17351 sed '=' <$as_myself |
17356 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17359 s,^['$as_cr_digits']*\n,,
17360 ' >$as_me.lineno &&
17361 chmod +x $as_me.lineno ||
17362 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17363 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17364 { (exit 1); exit 1; }; }
17366 # Don't try to exec as it changes $[0], causing all sort of problems
17367 # (the dirname of $[0] is not the place where we might find the
17368 # original and so on. Autoconf is especially sensible to this).
17370 # Exit status is that of the last command.
17375 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17376 *c*,-n*) ECHO_N= ECHO_C='
17378 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17379 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17382 if expr a : '\(a\)' >/dev/null 2>&1; then
17388 rm -f conf$$ conf$$.exe conf$$.file
17390 if ln -s conf$$.file conf$$ 2>/dev/null; then
17391 # We could just check for DJGPP; but this test a) works b) is more generic
17392 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17393 if test -f conf$$.exe; then
17394 # Don't use ln at all; we don't have any links
17399 elif ln conf$$.file conf$$ 2>/dev/null; then
17404 rm -f conf$$ conf$$.exe conf$$.file
17406 as_executable_p="test -f"
17408 # Sed expression to map a string onto a valid CPP name.
17409 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17411 # Sed expression to map a string onto a valid variable name.
17412 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17416 # We need space, tab and new line, in precisely that order.
17422 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17426 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17427 # report actual input values of CONFIG_FILES etc. instead of their
17428 # values after options handling. Logging --version etc. is OK.
17432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17433 ## Running $as_me. ##
17438 This file was extended by PostgreSQL $as_me 7.4devel, which was
17439 generated by GNU Autoconf 2.53. Invocation command line was
17441 CONFIG_FILES = $CONFIG_FILES
17442 CONFIG_HEADERS = $CONFIG_HEADERS
17443 CONFIG_LINKS = $CONFIG_LINKS
17444 CONFIG_COMMANDS = $CONFIG_COMMANDS
17448 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17452 # Files that config.status was made for.
17453 if test -n "$ac_config_files"; then
17454 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17457 if test -n "$ac_config_headers"; then
17458 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17461 if test -n "$ac_config_links"; then
17462 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17465 if test -n "$ac_config_commands"; then
17466 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17469 cat >>$CONFIG_STATUS <<\_ACEOF
17472 \`$as_me' instantiates files from templates according to the
17473 current configuration.
17475 Usage: $0 [OPTIONS] [FILE]...
17477 -h, --help print this help, then exit
17478 -V, --version print version number, then exit
17479 -d, --debug don't remove temporary files
17480 --recheck update $as_me by reconfiguring in the same conditions
17481 --file=FILE[:TEMPLATE]
17482 instantiate the configuration file FILE
17483 --header=FILE[:TEMPLATE]
17484 instantiate the configuration header FILE
17486 Configuration files:
17489 Configuration headers:
17492 Configuration links:
17495 Report bugs to <bug-autoconf@gnu.org>."
17498 cat >>$CONFIG_STATUS <<_ACEOF
17500 PostgreSQL config.status 7.4devel
17501 configured by $0, generated by GNU Autoconf 2.53,
17502 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17504 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17505 Free Software Foundation, Inc.
17506 This config.status script is free software; the Free Software Foundation
17507 gives unlimited permission to copy, distribute and modify it."
17511 cat >>$CONFIG_STATUS <<\_ACEOF
17512 # If no file are specified by the user, then we need to provide default
17513 # value. By we need to know if files were specified by the user.
17519 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17520 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17522 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17526 *) # This is not an option, so the user has probably given explicit
17528 ac_need_defaults=false;;
17532 # Handling of the options.
17534 cat >>$CONFIG_STATUS <<_ACEOF
17535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17536 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17537 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17539 cat >>$CONFIG_STATUS <<\_ACEOF
17540 --version | --vers* | -V )
17541 echo "$ac_cs_version"; exit 0 ;;
17543 # Conflict between --help and --header
17544 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17545 Try \`$0 --help' for more information." >&5
17546 echo "$as_me: error: ambiguous option: $1
17547 Try \`$0 --help' for more information." >&2;}
17548 { (exit 1); exit 1; }; };;
17549 --help | --hel | -h )
17550 echo "$ac_cs_usage"; exit 0 ;;
17551 --debug | --d* | -d )
17553 --file | --fil | --fi | --f )
17555 CONFIG_FILES="$CONFIG_FILES $1"
17556 ac_need_defaults=false;;
17557 --header | --heade | --head | --hea )
17559 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17560 ac_need_defaults=false;;
17562 # This is an error.
17563 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17564 Try \`$0 --help' for more information." >&5
17565 echo "$as_me: error: unrecognized option: $1
17566 Try \`$0 --help' for more information." >&2;}
17567 { (exit 1); exit 1; }; } ;;
17569 *) ac_config_targets="$ac_config_targets $1" ;;
17581 cat >>$CONFIG_STATUS <<\_ACEOF
17582 for ac_config_target in $ac_config_targets
17584 case "$ac_config_target" in
17585 # Handling of arguments.
17586 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17587 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17588 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17589 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17590 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17591 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17592 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17593 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17594 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17595 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17596 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17597 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17598 { (exit 1); exit 1; }; };;
17602 # If the user did not use the arguments to specify the items to instantiate,
17603 # then the envvar interface is used. Set only those that are not.
17604 # We use the long form for the default assignment because of an extremely
17605 # bizarre bug on SunOS 4.1.3.
17606 if $ac_need_defaults; then
17607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17608 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17609 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17612 # Create a temporary directory, and hook for its removal unless debugging.
17615 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17616 trap '{ (exit 1); exit 1; }' 1 2 13 15
17619 # Create a (secure) tmp directory for tmp files.
17622 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17623 test -n "$tmp" && test -d "$tmp"
17626 tmp=$TMPDIR/cs$$-$RANDOM
17627 (umask 077 && mkdir $tmp)
17630 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17631 { (exit 1); exit 1; }
17636 cat >>$CONFIG_STATUS <<_ACEOF
17639 # CONFIG_FILES section.
17642 # No need to generate the scripts if there are no CONFIG_FILES.
17643 # This happens for instance when ./config.status config.h
17644 if test -n "\$CONFIG_FILES"; then
17645 # Protect against being on the right side of a sed subst in config.status.
17646 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17647 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17648 s,@SHELL@,$SHELL,;t t
17649 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17650 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17651 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17652 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17653 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17654 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17655 s,@exec_prefix@,$exec_prefix,;t t
17656 s,@prefix@,$prefix,;t t
17657 s,@program_transform_name@,$program_transform_name,;t t
17658 s,@bindir@,$bindir,;t t
17659 s,@sbindir@,$sbindir,;t t
17660 s,@libexecdir@,$libexecdir,;t t
17661 s,@datadir@,$datadir,;t t
17662 s,@sysconfdir@,$sysconfdir,;t t
17663 s,@sharedstatedir@,$sharedstatedir,;t t
17664 s,@localstatedir@,$localstatedir,;t t
17665 s,@libdir@,$libdir,;t t
17666 s,@includedir@,$includedir,;t t
17667 s,@oldincludedir@,$oldincludedir,;t t
17668 s,@infodir@,$infodir,;t t
17669 s,@mandir@,$mandir,;t t
17670 s,@build_alias@,$build_alias,;t t
17671 s,@host_alias@,$host_alias,;t t
17672 s,@target_alias@,$target_alias,;t t
17673 s,@DEFS@,$DEFS,;t t
17674 s,@ECHO_C@,$ECHO_C,;t t
17675 s,@ECHO_N@,$ECHO_N,;t t
17676 s,@ECHO_T@,$ECHO_T,;t t
17677 s,@LIBS@,$LIBS,;t t
17678 s,@docdir@,$docdir,;t t
17679 s,@configure_args@,$configure_args,;t t
17680 s,@build@,$build,;t t
17681 s,@build_cpu@,$build_cpu,;t t
17682 s,@build_vendor@,$build_vendor,;t t
17683 s,@build_os@,$build_os,;t t
17684 s,@host@,$host,;t t
17685 s,@host_cpu@,$host_cpu,;t t
17686 s,@host_vendor@,$host_vendor,;t t
17687 s,@host_os@,$host_os,;t t
17688 s,@PORTNAME@,$PORTNAME,;t t
17690 s,@enable_nls@,$enable_nls,;t t
17691 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17692 s,@default_port@,$default_port,;t t
17693 s,@enable_shared@,$enable_shared,;t t
17694 s,@enable_rpath@,$enable_rpath,;t t
17695 s,@enable_debug@,$enable_debug,;t t
17697 s,@CFLAGS@,$CFLAGS,;t t
17698 s,@LDFLAGS@,$LDFLAGS,;t t
17699 s,@CPPFLAGS@,$CPPFLAGS,;t t
17700 s,@ac_ct_CC@,$ac_ct_CC,;t t
17701 s,@EXEEXT@,$EXEEXT,;t t
17702 s,@OBJEXT@,$OBJEXT,;t t
17705 s,@autodepend@,$autodepend,;t t
17706 s,@INCLUDES@,$INCLUDES,;t t
17707 s,@with_threads@,$with_threads,;t t
17708 s,@with_tcl@,$with_tcl,;t t
17709 s,@with_tk@,$with_tk,;t t
17710 s,@with_perl@,$with_perl,;t t
17711 s,@with_python@,$with_python,;t t
17713 s,@with_java@,$with_java,;t t
17714 s,@with_krb4@,$with_krb4,;t t
17715 s,@with_krb5@,$with_krb5,;t t
17716 s,@krb_srvtab@,$krb_srvtab,;t t
17717 s,@with_pam@,$with_pam,;t t
17718 s,@with_rendezvous@,$with_rendezvous,;t t
17719 s,@with_openssl@,$with_openssl,;t t
17720 s,@ELF_SYS@,$ELF_SYS,;t t
17721 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
17722 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
17724 s,@FLEX@,$FLEX,;t t
17725 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17726 s,@LN_S@,$LN_S,;t t
17728 s,@with_gnu_ld@,$with_gnu_ld,;t t
17729 s,@ld_R_works@,$ld_R_works,;t t
17730 s,@RANLIB@,$RANLIB,;t t
17731 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17732 s,@LORDER@,$LORDER,;t t
17734 s,@STRIP@,$STRIP,;t t
17735 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17736 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17737 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17738 s,@YACC@,$YACC,;t t
17739 s,@YFLAGS@,$YFLAGS,;t t
17740 s,@PERL@,$PERL,;t t
17741 s,@perl_archlibexp@,$perl_archlibexp,;t t
17742 s,@perl_privlibexp@,$perl_privlibexp,;t t
17743 s,@perl_useshrplib@,$perl_useshrplib,;t t
17744 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17745 s,@PYTHON@,$PYTHON,;t t
17746 s,@python_version@,$python_version,;t t
17747 s,@python_prefix@,$python_prefix,;t t
17748 s,@python_execprefix@,$python_execprefix,;t t
17749 s,@python_configdir@,$python_configdir,;t t
17750 s,@python_moduledir@,$python_moduledir,;t t
17751 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17752 s,@python_includespec@,$python_includespec,;t t
17753 s,@python_libspec@,$python_libspec,;t t
17754 s,@LIBOBJS@,$LIBOBJS,;t t
17755 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17756 s,@MSGFMT@,$MSGFMT,;t t
17757 s,@MSGMERGE@,$MSGMERGE,;t t
17758 s,@XGETTEXT@,$XGETTEXT,;t t
17759 s,@localedir@,$localedir,;t t
17760 s,@TCLSH@,$TCLSH,;t t
17761 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17762 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17763 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17764 s,@TCL_LIBS@,$TCL_LIBS,;t t
17765 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17766 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17767 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17768 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17769 s,@TK_LIBS@,$TK_LIBS,;t t
17770 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17771 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17772 s,@NSGMLS@,$NSGMLS,;t t
17773 s,@JADE@,$JADE,;t t
17774 s,@have_docbook@,$have_docbook,;t t
17775 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17776 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17777 s,@SGMLSPL@,$SGMLSPL,;t t
17778 s,@vpath_build@,$vpath_build,;t t
17783 cat >>$CONFIG_STATUS <<\_ACEOF
17784 # Split the substitutions into bite-sized pieces for seds with
17785 # small command number limits, like on Digital OSF/1 and HP-UX.
17786 ac_max_sed_lines=48
17787 ac_sed_frag=1 # Number of current file.
17788 ac_beg=1 # First line for current file.
17789 ac_end=$ac_max_sed_lines # Line after last line for current file.
17792 while $ac_more_lines; do
17793 if test $ac_beg -gt 1; then
17794 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17796 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17798 if test ! -s $tmp/subs.frag; then
17799 ac_more_lines=false
17801 # The purpose of the label and of the branching condition is to
17802 # speed up the sed processing (if there are no `@' at all, there
17803 # is no need to browse any of the substitutions).
17804 # These are the two extra sed commands mentioned above.
17806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17807 if test -z "$ac_sed_cmds"; then
17808 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17810 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17812 ac_sed_frag=`expr $ac_sed_frag + 1`
17814 ac_end=`expr $ac_end + $ac_max_sed_lines`
17817 if test -z "$ac_sed_cmds"; then
17820 fi # test -n "$CONFIG_FILES"
17823 cat >>$CONFIG_STATUS <<\_ACEOF
17824 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17825 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17827 - | *:- | *:-:* ) # input from stdin
17829 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17830 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17831 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17832 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17833 * ) ac_file_in=$ac_file.in ;;
17836 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17837 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17838 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17839 X"$ac_file" : 'X\(//\)[^/]' \| \
17840 X"$ac_file" : 'X\(//\)$' \| \
17841 X"$ac_file" : 'X\(/\)' \| \
17842 . : '\(.\)' 2>/dev/null ||
17844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17846 /^X\(\/\/\)$/{ s//\1/; q; }
17847 /^X\(\/\).*/{ s//\1/; q; }
17849 { case "$ac_dir" in
17850 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17854 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17855 case $as_mkdir_dir in
17856 # Skip DOS drivespec
17857 ?:) as_incr_dir=$as_mkdir_dir ;;
17859 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17860 test -d "$as_incr_dir" ||
17861 mkdir "$as_incr_dir" ||
17862 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17863 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17864 { (exit 1); exit 1; }; }
17871 if test "$ac_dir" != .; then
17872 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17873 # A "../" for each directory in $ac_dir_suffix.
17874 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17876 ac_dir_suffix= ac_top_builddir=
17880 .) # No --srcdir option. We are building in place.
17882 if test -z "$ac_top_builddir"; then
17885 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17887 [\\/]* | ?:[\\/]* ) # Absolute path.
17888 ac_srcdir=$srcdir$ac_dir_suffix;
17889 ac_top_srcdir=$srcdir ;;
17890 *) # Relative path.
17891 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17892 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17894 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17896 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17897 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17898 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17899 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17903 if test x"$ac_file" != x-; then
17904 { echo "$as_me:$LINENO: creating $ac_file" >&5
17905 echo "$as_me: creating $ac_file" >&6;}
17908 # Let's still pretend it is `configure' which instantiates (i.e., don't
17909 # use $as_me), people would be surprised to read:
17910 # /* config.h. Generated by config.status. */
17911 if test x"$ac_file" = x-; then
17914 configure_input="$ac_file. "
17916 configure_input=$configure_input"Generated from `echo $ac_file_in |
17917 sed 's,.*/,,'` by configure."
17919 # First look for the input files in the build tree, otherwise in the
17921 ac_file_inputs=`IFS=:
17922 for f in $ac_file_in; do
17924 -) echo $tmp/stdin ;;
17926 # Absolute (can't be DOS-style, as IFS=:)
17927 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17928 echo "$as_me: error: cannot find input file: $f" >&2;}
17929 { (exit 1); exit 1; }; }
17932 if test -f "$f"; then
17935 elif test -f "$srcdir/$f"; then
17940 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17941 echo "$as_me: error: cannot find input file: $f" >&2;}
17942 { (exit 1); exit 1; }; }
17945 done` || { (exit 1); exit 1; }
17947 cat >>$CONFIG_STATUS <<_ACEOF
17951 cat >>$CONFIG_STATUS <<\_ACEOF
17953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17954 s,@configure_input@,$configure_input,;t t
17955 s,@srcdir@,$ac_srcdir,;t t
17956 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17957 s,@top_srcdir@,$ac_top_srcdir,;t t
17958 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17959 s,@builddir@,$ac_builddir,;t t
17960 s,@abs_builddir@,$ac_abs_builddir,;t t
17961 s,@top_builddir@,$ac_top_builddir,;t t
17962 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17963 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17965 if test x"$ac_file" != x-; then
17966 mv $tmp/out $ac_file
17974 cat >>$CONFIG_STATUS <<\_ACEOF
17977 # CONFIG_HEADER section.
17980 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17981 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17983 # ac_d sets the value in "#define NAME VALUE" lines.
17984 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17985 ac_dB='[ ].*$,\1#\2'
17988 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17989 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17990 ac_uB='$,\1#\2define\3'
17994 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17997 - | *:- | *:-:* ) # input from stdin
17999 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18000 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18001 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18002 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18003 * ) ac_file_in=$ac_file.in ;;
18006 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18007 echo "$as_me: creating $ac_file" >&6;}
18009 # First look for the input files in the build tree, otherwise in the
18011 ac_file_inputs=`IFS=:
18012 for f in $ac_file_in; do
18014 -) echo $tmp/stdin ;;
18016 # Absolute (can't be DOS-style, as IFS=:)
18017 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18018 echo "$as_me: error: cannot find input file: $f" >&2;}
18019 { (exit 1); exit 1; }; }
18022 if test -f "$f"; then
18025 elif test -f "$srcdir/$f"; then
18030 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18031 echo "$as_me: error: cannot find input file: $f" >&2;}
18032 { (exit 1); exit 1; }; }
18035 done` || { (exit 1); exit 1; }
18036 # Remove the trailing spaces.
18037 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18041 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18042 # `conftest.undefs', that substitutes the proper values into
18043 # config.h.in to produce config.h. The first handles `#define'
18044 # templates, and the second `#undef' templates.
18045 # And first: Protect against being on the right side of a sed subst in
18046 # config.status. Protect against being in an unquoted here document
18047 # in config.status.
18048 rm -f conftest.defines conftest.undefs
18049 # Using a here document instead of a string reduces the quoting nightmare.
18050 # Putting comments in sed scripts is not portable.
18052 # `end' is used to avoid that the second main sed command (meant for
18053 # 0-ary CPP macros) applies to n-ary macro definitions.
18054 # See the Autoconf documentation for `clear'.
18055 cat >confdef2sed.sed <<\_ACEOF
18060 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18062 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18065 # If some macros were called several times there might be several times
18066 # the same #defines, which is useless. Nevertheless, we may not want to
18067 # sort them, since we want the *last* AC-DEFINE to be honored.
18068 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18069 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18070 rm -f confdef2sed.sed
18072 # This sed command replaces #undef with comments. This is necessary, for
18073 # example, in the case of _POSIX_SOURCE, which is predefined and required
18074 # on some systems where configure will not decide to define it.
18075 cat >>conftest.undefs <<\_ACEOF
18076 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18079 # Break up conftest.defines because some shells have a limit on the size
18080 # of here documents, and old seds have small limits too (100 cmds).
18081 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18082 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18083 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18084 echo ' :' >>$CONFIG_STATUS
18085 rm -f conftest.tail
18086 while grep . conftest.defines >/dev/null
18088 # Write a limited-size here document to $tmp/defines.sed.
18089 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18090 # Speed up: don't consider the non `#define' lines.
18091 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18092 # Work around the forget-to-reset-the-flag bug.
18093 echo 't clr' >>$CONFIG_STATUS
18094 echo ': clr' >>$CONFIG_STATUS
18095 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18097 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18099 mv $tmp/out $tmp/in
18101 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18102 rm -f conftest.defines
18103 mv conftest.tail conftest.defines
18105 rm -f conftest.defines
18106 echo ' fi # egrep' >>$CONFIG_STATUS
18107 echo >>$CONFIG_STATUS
18109 # Break up conftest.undefs because some shells have a limit on the size
18110 # of here documents, and old seds have small limits too (100 cmds).
18111 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18112 rm -f conftest.tail
18113 while grep . conftest.undefs >/dev/null
18115 # Write a limited-size here document to $tmp/undefs.sed.
18116 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18117 # Speed up: don't consider the non `#undef'
18118 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18119 # Work around the forget-to-reset-the-flag bug.
18120 echo 't clr' >>$CONFIG_STATUS
18121 echo ': clr' >>$CONFIG_STATUS
18122 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18124 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18126 mv $tmp/out $tmp/in
18128 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18129 rm -f conftest.undefs
18130 mv conftest.tail conftest.undefs
18132 rm -f conftest.undefs
18134 cat >>$CONFIG_STATUS <<\_ACEOF
18135 # Let's still pretend it is `configure' which instantiates (i.e., don't
18136 # use $as_me), people would be surprised to read:
18137 # /* config.h. Generated by config.status. */
18138 if test x"$ac_file" = x-; then
18139 echo "/* Generated by configure. */" >$tmp/config.h
18141 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18143 cat $tmp/in >>$tmp/config.h
18145 if test x"$ac_file" != x-; then
18146 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18147 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18148 echo "$as_me: $ac_file is unchanged" >&6;}
18150 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18152 X"$ac_file" : 'X\(//\)[^/]' \| \
18153 X"$ac_file" : 'X\(//\)$' \| \
18154 X"$ac_file" : 'X\(/\)' \| \
18155 . : '\(.\)' 2>/dev/null ||
18157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18159 /^X\(\/\/\)$/{ s//\1/; q; }
18160 /^X\(\/\).*/{ s//\1/; q; }
18162 { case "$ac_dir" in
18163 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18167 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18168 case $as_mkdir_dir in
18169 # Skip DOS drivespec
18170 ?:) as_incr_dir=$as_mkdir_dir ;;
18172 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18173 test -d "$as_incr_dir" ||
18174 mkdir "$as_incr_dir" ||
18175 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18176 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18177 { (exit 1); exit 1; }; }
18183 mv $tmp/config.h $ac_file
18187 rm -f $tmp/config.h
18189 # Run the commands associated with the file.
18191 src/include/pg_config.h )
18192 # Update timestamp for pg_config.h (see Makefile.global)
18193 echo >src/include/stamp-h
18198 cat >>$CONFIG_STATUS <<\_ACEOF
18201 # CONFIG_LINKS section.
18204 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18205 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18206 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18208 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18209 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18211 if test ! -r $srcdir/$ac_source; then
18212 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18213 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18214 { (exit 1); exit 1; }; }
18218 # Make relative symlinks.
18219 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18220 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18221 X"$ac_dest" : 'X\(//\)[^/]' \| \
18222 X"$ac_dest" : 'X\(//\)$' \| \
18223 X"$ac_dest" : 'X\(/\)' \| \
18224 . : '\(.\)' 2>/dev/null ||
18226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18227 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18228 /^X\(\/\/\)$/{ s//\1/; q; }
18229 /^X\(\/\).*/{ s//\1/; q; }
18231 { case "$ac_dest_dir" in
18232 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18235 as_dummy="$ac_dest_dir"
18236 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18237 case $as_mkdir_dir in
18238 # Skip DOS drivespec
18239 ?:) as_incr_dir=$as_mkdir_dir ;;
18241 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18242 test -d "$as_incr_dir" ||
18243 mkdir "$as_incr_dir" ||
18244 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18245 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18246 { (exit 1); exit 1; }; }
18253 if test "$ac_dest_dir" != .; then
18254 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18255 # A "../" for each directory in $ac_dir_suffix.
18256 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18258 ac_dir_suffix= ac_top_builddir=
18262 .) # No --srcdir option. We are building in place.
18264 if test -z "$ac_top_builddir"; then
18267 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18269 [\\/]* | ?:[\\/]* ) # Absolute path.
18270 ac_srcdir=$srcdir$ac_dir_suffix;
18271 ac_top_srcdir=$srcdir ;;
18272 *) # Relative path.
18273 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18274 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18276 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18278 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18279 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18280 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18281 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18285 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18286 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18289 # Make a symlink if possible; otherwise try a hard link.
18290 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18291 ln $srcdir/$ac_source $ac_dest ||
18292 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18293 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18294 { (exit 1); exit 1; }; }
18298 cat >>$CONFIG_STATUS <<\_ACEOF
18300 { (exit 0); exit 0; }
18302 chmod +x $CONFIG_STATUS
18303 ac_clean_files=$ac_clean_files_save
18306 # configure is writing to config.log, and then calls config.status.
18307 # config.status does its own redirection, appending to config.log.
18308 # Unfortunately, on DOS this fails, as config.log is still kept open
18309 # by configure, so config.status won't be able to write to it; its
18310 # output is simply discarded. So we exec the FD to /dev/null,
18311 # effectively closing config.log, so it can be properly (re)opened and
18312 # appended to by config.status. When coming back to configure, we
18313 # need to make the FD available again.
18314 if test "$no_create" != yes; then
18317 $SHELL $CONFIG_STATUS || ac_cs_success=false
18319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18320 # would make configure fail if this is the last instruction.
18321 $ac_cs_success || { (exit 1); exit 1; }