2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4beta1.
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 2003 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.4beta1'
262 PACKAGE_STRING='PostgreSQL 7.4beta1'
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.4beta1 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.4beta1:";;
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-nls[=LANGUAGES] enable Native Language Support
842 --disable-shared do not build shared libraries
843 --disable-rpath do not embed shared library search path in executables
844 --enable-debug build with debugging symbols (-g)
845 --enable-depend turn on automatic dependency tracking
846 --enable-cassert enable assertion checks (for debugging)
847 --enable-thread-safety allow libpq and ecpg to be thread-safe
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-tcl build Tcl and Tk interfaces
859 --without-tk do not build Tk interfaces if Tcl is enabled
860 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
861 --with-tkconfig=DIR tkConfig.sh is in DIR
862 --with-perl build Perl modules (PL/Perl)
863 --with-python build Python interface module
864 --with-java build JDBC interface and Java tools
865 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
866 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
867 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
868 --with-pam build with PAM support
869 --with-rendezvous build with Rendezvous support
870 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
871 --without-readline do not use Readline
872 --without-zlib do not use Zlib
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 location of DocBook stylesheets
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <pgsql-bugs@postgresql.org>.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 ac_dir_suffix= ac_top_builddir=
909 .) # No --srcdir option. We are building in place.
911 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
952 PostgreSQL configure 7.4beta1
953 generated by GNU Autoconf 2.53
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
960 Copyright 2003 PostgreSQL Global Development Group
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by PostgreSQL $as_me 7.4beta1, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 if test -s confdefs.h; then
1082 sed "/^$/d" confdefs.h
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1255 for ac_dir in config $srcdir/config; do
1256 if test -f $ac_dir/install-sh; then
1258 ac_install_sh="$ac_aux_dir/install-sh -c"
1260 elif test -f $ac_dir/install.sh; then
1262 ac_install_sh="$ac_aux_dir/install.sh -c"
1264 elif test -f $ac_dir/shtool; then
1266 ac_install_sh="$ac_aux_dir/shtool install -c"
1270 if test -z "$ac_aux_dir"; then
1271 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273 { (exit 1); exit 1; }; }
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1280 configure_args=$ac_configure_args
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293 { (exit 1); exit 1; }; }
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302 ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306 { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310 { (exit 1); exit 1; }; }
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328 ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353 withval="$with_template"
1357 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359 { (exit 1); exit 1; }; }
1362 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364 { (exit 1); exit 1; }; }
1369 list) echo; ls "$srcdir/src/template"; exit;;
1370 *) if test -f "$srcdir/src/template/$with_template" ; then
1373 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375 { (exit 1); exit 1; }; }
1384 # --with-template not given
1387 aix*) template=aix ;;
1388 beos*) template=beos ;;
1389 bsdi*) template=bsdi ;;
1390 cygwin*) template=cygwin ;;
1391 darwin*) template=darwin ;;
1392 dgux*) template=dgux ;;
1393 freebsd*) template=freebsd ;;
1394 hpux*) template=hpux ;;
1395 irix*) template=irix5 ;;
1396 linux*) template=linux ;;
1397 mingw*) template=win32 ;;
1398 netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400 openbsd*) template=openbsd ;;
1401 osf*) template=osf ;;
1402 qnx*) template=qnx4 ;;
1403 sco*) template=sco ;;
1404 solaris*) template=solaris ;;
1405 sunos*) template=sunos4 ;;
1407 case $host_vendor in
1408 univel) template=univel ;;
1410 sysv4*) template=svr4 ;;
1411 sysv5*) template=unixware ;;
1412 ultrix*) template=ultrix4 ;;
1415 if test x"$template" = x"" ; then
1416 { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this. Include the above 'checking host system type...'
1425 *******************************************************************
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this. Include the above 'checking host system type...'
1436 *******************************************************************
1438 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1451 # Pick right test-and-set (TAS) code. Most platforms have inline
1452 # assembler code in src/include/storage/s_lock.h, so we just use
1453 # a dummy file here.
1455 hppa*-*-hpux*) need_tas=yes; tas_file=hpux_hppa.s ;;
1456 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1458 *) need_tas=no; tas_file=dummy.s ;;
1460 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1463 if test "$need_tas" = yes ; then
1471 ## Command line options
1476 # Add non-standard directories to the include path
1481 # Check whether --with-includes or --without-includes was given.
1482 if test "${with_includes+set}" = set; then
1483 withval="$with_includes"
1487 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1488 echo "$as_me: error: argument required for --with-includes option" >&2;}
1489 { (exit 1); exit 1; }; }
1492 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1493 echo "$as_me: error: argument required for --with-includes option" >&2;}
1494 { (exit 1); exit 1; }; }
1506 # Add non-standard directories to the library search path
1511 # Check whether --with-libraries or --without-libraries was given.
1512 if test "${with_libraries+set}" = set; then
1513 withval="$with_libraries"
1517 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1518 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1519 { (exit 1); exit 1; }; }
1522 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1523 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1524 { (exit 1); exit 1; }; }
1527 LIBRARY_DIRS=$withval
1537 # Check whether --with-libs or --without-libs was given.
1538 if test "${with_libs+set}" = set; then
1539 withval="$with_libs"
1543 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1544 echo "$as_me: error: argument required for --with-libs option" >&2;}
1545 { (exit 1); exit 1; }; }
1548 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1549 echo "$as_me: error: argument required for --with-libs option" >&2;}
1550 { (exit 1); exit 1; }; }
1553 LIBRARY_DIRS=$withval
1562 # 64-bit integer date/time storage (--enable-integer-datetimes)
1564 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1565 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1568 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1569 if test "${enable_integer_datetimes+set}" = set; then
1570 enableval="$enable_integer_datetimes"
1575 cat >>confdefs.h <<\_ACEOF
1576 #define USE_INTEGER_DATETIMES 1
1584 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1585 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1586 { (exit 1); exit 1; }; }
1591 enable_integer_datetimes=no
1595 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1596 echo "${ECHO_T}$enable_integer_datetimes" >&6
1602 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1603 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1606 # Check whether --enable-nls or --disable-nls was given.
1607 if test "${enable_nls+set}" = set; then
1608 enableval="$enable_nls"
1619 WANTED_LANGUAGES=$enableval
1628 if test "$enable_nls" = yes; then
1630 cat >>confdefs.h <<\_ACEOF
1631 #define ENABLE_NLS 1
1636 echo "$as_me:$LINENO: result: $enable_nls" >&5
1637 echo "${ECHO_T}$enable_nls" >&6
1642 # Default port number (--with-pgport), default 5432
1644 echo "$as_me:$LINENO: checking for default port number" >&5
1645 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1649 # Check whether --with-pgport or --without-pgport was given.
1650 if test "${with_pgport+set}" = set; then
1651 withval="$with_pgport"
1655 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1656 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1657 { (exit 1); exit 1; }; }
1660 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1661 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1662 { (exit 1); exit 1; }; }
1665 default_port=$withval
1673 echo "$as_me:$LINENO: result: $default_port" >&5
1674 echo "${ECHO_T}$default_port" >&6
1675 # Need both of these because some places want an integer and some a string
1677 cat >>confdefs.h <<_ACEOF
1678 #define DEF_PGPORT ${default_port}
1682 cat >>confdefs.h <<_ACEOF
1683 #define DEF_PGPORT_STR "${default_port}"
1689 # Option to disable shared libraries
1693 # Check whether --enable-shared or --disable-shared was given.
1694 if test "${enable_shared+set}" = set; then
1695 enableval="$enable_shared"
1705 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1706 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1707 { (exit 1); exit 1; }; }
1719 # '-rpath'-like feature can be disabled
1723 # Check whether --enable-rpath or --disable-rpath was given.
1724 if test "${enable_rpath+set}" = set; then
1725 enableval="$enable_rpath"
1735 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1736 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1737 { (exit 1); exit 1; }; }
1750 # --enable-debug adds -g to compiler flags
1754 # Check whether --enable-debug or --disable-debug was given.
1755 if test "${enable_debug+set}" = set; then
1756 enableval="$enable_debug"
1766 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1767 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1768 { (exit 1); exit 1; }; }
1783 # For historical reasons you can also use --with-CC to specify the C compiler
1784 # to use, although the standard way to do this is to set the CC environment
1789 # Check whether --with-CC or --without-CC was given.
1790 if test "${with_CC+set}" = set; then
1795 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1796 echo "$as_me: error: argument required for --with-CC option" >&2;}
1797 { (exit 1); exit 1; }; }
1800 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1801 echo "$as_me: error: argument required for --with-CC option" >&2;}
1802 { (exit 1); exit 1; }; }
1813 aix) pgac_cc_list="gcc xlc";;
1814 irix) pgac_cc_list="cc";; # no gcc
1815 *) pgac_cc_list="gcc cc";;
1819 ac_cpp='$CPP $CPPFLAGS'
1820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 if test -n "$ac_tool_prefix"; then
1824 for ac_prog in $pgac_cc_list
1826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 test -n "$CC" && break
1864 if test -z "$CC"; then
1866 for ac_prog in $pgac_cc_list
1868 # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$ac_ct_CC"; then
1876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_ac_ct_CC="$ac_prog"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1903 test -n "$ac_ct_CC" && break
1910 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1912 { (exit 1); exit 1; }; }
1914 # Provide some information about the compiler.
1915 echo "$as_me:$LINENO:" \
1916 "checking for C compiler version" >&5
1917 ac_compiler=`set X $ac_compile; echo $2`
1918 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1919 (eval $ac_compiler --version </dev/null >&5) 2>&5
1921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922 (exit $ac_status); }
1923 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1924 (eval $ac_compiler -v </dev/null >&5) 2>&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); }
1928 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1929 (eval $ac_compiler -V </dev/null >&5) 2>&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }
1934 cat >conftest.$ac_ext <<_ACEOF
1935 #line $LINENO "configure"
1936 #include "confdefs.h"
1938 #ifdef F77_DUMMY_MAIN
1942 int F77_DUMMY_MAIN() { return 1; }
1952 ac_clean_files_save=$ac_clean_files
1953 ac_clean_files="$ac_clean_files a.out a.exe"
1954 # Try to create an executable without -o first, disregard a.out.
1955 # It will help us diagnose broken compilers, and finding out an intuition
1957 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1958 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1959 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1960 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1961 (eval $ac_link_default) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); }; then
1965 # Find the output, starting from the most likely. This scheme is
1966 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1969 # Be careful to initialize this variable, since it used to be cached.
1970 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1972 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1973 ls a.out conftest 2>/dev/null;
1974 ls a.* conftest.* 2>/dev/null`; do
1976 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1977 a.out ) # We found the default executable, but exeext='' is most
1980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1981 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1991 echo "$as_me: error: C compiler cannot create executables" >&2;}
1992 { (exit 77); exit 77; }; }
1995 ac_exeext=$ac_cv_exeext
1996 echo "$as_me:$LINENO: result: $ac_file" >&5
1997 echo "${ECHO_T}$ac_file" >&6
1999 # Check the compiler produces executables we can run. If not, either
2000 # the compiler is broken, or we cross compile.
2001 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2002 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2003 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2004 # If not cross compiling, check that we can run a simple program.
2005 if test "$cross_compiling" != yes; then
2006 if { ac_try='./$ac_file'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2014 if test "$cross_compiling" = maybe; then
2017 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2018 If you meant to cross compile, use \`--host'." >&5
2019 echo "$as_me: error: cannot run C compiled programs.
2020 If you meant to cross compile, use \`--host'." >&2;}
2021 { (exit 1); exit 1; }; }
2025 echo "$as_me:$LINENO: result: yes" >&5
2026 echo "${ECHO_T}yes" >&6
2028 rm -f a.out a.exe conftest$ac_cv_exeext
2029 ac_clean_files=$ac_clean_files_save
2030 # Check the compiler produces executables we can run. If not, either
2031 # the compiler is broken, or we cross compile.
2032 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2033 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2034 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2035 echo "${ECHO_T}$cross_compiling" >&6
2037 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2038 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2040 (eval $ac_link) 2>&5
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; then
2044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2045 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2046 # work properly (i.e., refer to `conftest.exe'), while it won't with
2048 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2050 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2051 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2058 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2059 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2060 { (exit 1); exit 1; }; }
2063 rm -f conftest$ac_cv_exeext
2064 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065 echo "${ECHO_T}$ac_cv_exeext" >&6
2067 rm -f conftest.$ac_ext
2068 EXEEXT=$ac_cv_exeext
2070 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072 if test "${ac_cv_objext+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line $LINENO "configure"
2077 #include "confdefs.h"
2079 #ifdef F77_DUMMY_MAIN
2083 int F77_DUMMY_MAIN() { return 1; }
2093 rm -f conftest.o conftest.obj
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095 (eval $ac_compile) 2>&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; then
2099 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2102 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2110 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2111 { (exit 1); exit 1; }; }
2114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2116 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117 echo "${ECHO_T}$ac_cv_objext" >&6
2118 OBJEXT=$ac_cv_objext
2120 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2129 #ifdef F77_DUMMY_MAIN
2133 int F77_DUMMY_MAIN() { return 1; }
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -s conftest.$ac_objext'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2160 echo "$as_me: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2164 rm -f conftest.$ac_objext conftest.$ac_ext
2165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2168 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2169 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2170 GCC=`test $ac_compiler_gnu = yes && echo yes`
2171 ac_test_CFLAGS=${CFLAGS+set}
2172 ac_save_CFLAGS=$CFLAGS
2174 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2175 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_g+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 cat >conftest.$ac_ext <<_ACEOF
2180 #line $LINENO "configure"
2181 #include "confdefs.h"
2183 #ifdef F77_DUMMY_MAIN
2187 int F77_DUMMY_MAIN() { return 1; }
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2211 echo "$as_me: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2215 rm -f conftest.$ac_objext conftest.$ac_ext
2217 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2218 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2219 if test "$ac_test_CFLAGS" = set; then
2220 CFLAGS=$ac_save_CFLAGS
2221 elif test $ac_cv_prog_cc_g = yes; then
2222 if test "$GCC" = yes; then
2228 if test "$GCC" = yes; then
2234 # Some people use a C++ compiler to compile C. Since we use `exit',
2235 # in C++ we need to declare it. In case someone uses the same compiler
2236 # for both compiling C and C++ we need to have the C++ compiler decide
2237 # the declaration of exit, since it's the most demanding environment.
2238 cat >conftest.$ac_ext <<_ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -s conftest.$ac_objext'
2250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254 (exit $ac_status); }; }; then
2255 for ac_declaration in \
2257 '#include <stdlib.h>' \
2258 'extern "C" void std::exit (int) throw (); using std::exit;' \
2259 'extern "C" void std::exit (int); using std::exit;' \
2260 'extern "C" void exit (int) throw ();' \
2261 'extern "C" void exit (int);' \
2264 cat >conftest.$ac_ext <<_ACEOF
2265 #line $LINENO "configure"
2266 #include "confdefs.h"
2269 #ifdef F77_DUMMY_MAIN
2273 int F77_DUMMY_MAIN() { return 1; }
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2297 echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2301 rm -f conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2306 #ifdef F77_DUMMY_MAIN
2310 int F77_DUMMY_MAIN() { return 1; }
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2334 echo "$as_me: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2337 rm -f conftest.$ac_objext conftest.$ac_ext
2340 if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2347 echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358 . "$srcdir/src/template/$template" || exit
2360 if test "$ac_env_CFLAGS_set" = set; then
2361 CFLAGS=$ac_env_CFLAGS_value
2363 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2366 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2367 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2369 # Check if the compiler still works with the template settings
2370 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2371 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2373 cat >conftest.$ac_ext <<_ACEOF
2374 #line $LINENO "configure"
2375 #include "confdefs.h"
2377 #ifdef F77_DUMMY_MAIN
2381 int F77_DUMMY_MAIN() { return 1; }
2391 rm -f conftest.$ac_objext conftest$ac_exeext
2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393 (eval $ac_link) 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
2397 { ac_try='test -s conftest$ac_exeext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2403 echo "$as_me:$LINENO: result: yes" >&5
2404 echo "${ECHO_T}yes" >&6
2406 echo "$as_me: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2408 echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2410 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2411 echo "$as_me: error: cannot proceed" >&2;}
2412 { (exit 1); exit 1; }; }
2414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2416 # Defend against gcc -ffastmath
2417 if test "$GCC" = yes; then
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #line $LINENO "configure"
2420 #include "confdefs.h"
2422 #ifdef F77_DUMMY_MAIN
2426 int F77_DUMMY_MAIN() { return 1; }
2431 #ifdef __FAST_MATH__
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440 (eval $ac_compile) 2>&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2452 echo "$as_me: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2455 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2456 { (exit 1); exit 1; }; }
2458 rm -f conftest.$ac_objext conftest.$ac_ext
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2467 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2468 # On Suns, sometimes $CPP names a directory.
2469 if test -n "$CPP" && test -d "$CPP"; then
2472 if test -z "$CPP"; then
2473 if test "${ac_cv_prog_CPP+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 # Double quotes because CPP needs to be expanded
2477 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2480 for ac_c_preproc_warn_flag in '' yes
2482 # Use a header file that comes with gcc, so configuring glibc
2483 # with a fresh cross-compiler works.
2484 # On the NeXT, cc -E runs the code through the compiler's parser,
2485 # not just through cpp. "Syntax error" is here to catch this case.
2486 cat >conftest.$ac_ext <<_ACEOF
2487 #line $LINENO "configure"
2488 #include "confdefs.h"
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495 egrep -v '^ *\+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2508 if test -z "$ac_cpp_err"; then
2511 echo "$as_me: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 # Broken: fails on valid input.
2516 rm -f conftest.err conftest.$ac_ext
2518 # OK, works on sane cases. Now check whether non-existent headers
2519 # can be detected and how.
2520 cat >conftest.$ac_ext <<_ACEOF
2521 #line $LINENO "configure"
2522 #include "confdefs.h"
2523 #include <ac_nonexistent.h>
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 egrep -v '^ *\+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2541 if test -z "$ac_cpp_err"; then
2542 # Broken: success on invalid input.
2545 echo "$as_me: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 # Passes both tests.
2551 rm -f conftest.err conftest.$ac_ext
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2568 echo "$as_me:$LINENO: result: $CPP" >&5
2569 echo "${ECHO_T}$CPP" >&6
2571 for ac_c_preproc_warn_flag in '' yes
2573 # Use a header file that comes with gcc, so configuring glibc
2574 # with a fresh cross-compiler works.
2575 # On the NeXT, cc -E runs the code through the compiler's parser,
2576 # not just through cpp. "Syntax error" is here to catch this case.
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 #include "confdefs.h"
2583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2586 egrep -v '^ *\+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } >/dev/null; then
2591 if test -s conftest.err; then
2592 ac_cpp_err=$ac_c_preproc_warn_flag
2599 if test -z "$ac_cpp_err"; then
2602 echo "$as_me: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2604 # Broken: fails on valid input.
2607 rm -f conftest.err conftest.$ac_ext
2609 # OK, works on sane cases. Now check whether non-existent headers
2610 # can be detected and how.
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 #include "confdefs.h"
2614 #include <ac_nonexistent.h>
2616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2619 egrep -v '^ *\+' conftest.er1 >conftest.err
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } >/dev/null; then
2624 if test -s conftest.err; then
2625 ac_cpp_err=$ac_c_preproc_warn_flag
2632 if test -z "$ac_cpp_err"; then
2633 # Broken: success on invalid input.
2636 echo "$as_me: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 # Passes both tests.
2642 rm -f conftest.err conftest.$ac_ext
2645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2646 rm -f conftest.err conftest.$ac_ext
2647 if $ac_preproc_ok; then
2650 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2651 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2652 { (exit 1); exit 1; }; }
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 # Create compiler version string
2664 if test x"$GCC" = x"yes" ; then
2665 cc_string="GCC `${CC} --version | sed q`"
2670 cat >>confdefs.h <<_ACEOF
2671 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2677 # Automatic dependency tracking
2681 # Check whether --enable-depend or --disable-depend was given.
2682 if test "${enable_depend+set}" = set; then
2683 enableval="$enable_depend"
2693 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2694 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2695 { (exit 1); exit 1; }; }
2708 # Enable assert checks
2712 # Check whether --enable-cassert or --disable-cassert was given.
2713 if test "${enable_cassert+set}" = set; then
2714 enableval="$enable_cassert"
2719 cat >>confdefs.h <<\_ACEOF
2720 #define USE_ASSERT_CHECKING 1
2728 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2729 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2730 { (exit 1); exit 1; }; }
2742 # Include directories
2746 # SRCH_INC comes from the template file
2747 for dir in $with_includes $SRCH_INC; do
2748 if test -d "$dir"; then
2749 INCLUDES="$INCLUDES -I$dir"
2751 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2752 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2760 # Library directories
2764 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2765 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2766 if test -d "$dir"; then
2767 LIBDIRS="$LIBDIRS -L$dir"
2769 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2770 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2776 # Enable libpq to be thread-safety
2778 echo "$as_me:$LINENO: checking allow thread-safe libpq and ecpg" >&5
2779 echo $ECHO_N "checking allow thread-safe libpq and ecpg... $ECHO_C" >&6
2782 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2783 if test "${enable_thread_safety+set}" = set; then
2784 enableval="$enable_thread_safety"
2789 cat >>confdefs.h <<\_ACEOF
2790 #define USE_THREADS 1
2798 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2799 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2800 { (exit 1); exit 1; }; }
2805 enable_thread_safety=no
2809 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2810 echo "${ECHO_T}$enable_thread_safety" >&6
2816 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2817 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2821 # Check whether --with-tcl or --without-tcl was given.
2822 if test "${with_tcl+set}" = set; then
2833 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2834 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2835 { (exit 1); exit 1; }; }
2844 echo "$as_me:$LINENO: result: $with_tcl" >&5
2845 echo "${ECHO_T}$with_tcl" >&6
2848 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2849 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2850 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2851 if test "$with_tcl" = yes; then
2855 # Check whether --with-tk or --without-tk was given.
2856 if test "${with_tk+set}" = set; then
2867 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2868 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2869 { (exit 1); exit 1; }; }
2881 echo "$as_me:$LINENO: result: $with_tk" >&5
2882 echo "${ECHO_T}$with_tk" >&6
2886 # We see if the path to the Tcl/Tk configuration scripts is specified.
2887 # This will override the use of tclsh to find the paths to search.
2892 # Check whether --with-tclconfig or --without-tclconfig was given.
2893 if test "${with_tclconfig+set}" = set; then
2894 withval="$with_tclconfig"
2898 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2899 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2900 { (exit 1); exit 1; }; }
2903 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2904 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2905 { (exit 1); exit 1; }; }
2915 # We see if the path to the Tk configuration scripts is specified.
2916 # This will override the use of tclsh to find the paths to search.
2921 # Check whether --with-tkconfig or --without-tkconfig was given.
2922 if test "${with_tkconfig+set}" = set; then
2923 withval="$with_tkconfig"
2927 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2928 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2929 { (exit 1); exit 1; }; }
2932 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2933 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2934 { (exit 1); exit 1; }; }
2945 # Optionally build Perl modules (PL/Perl)
2947 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2948 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2952 # Check whether --with-perl or --without-perl was given.
2953 if test "${with_perl+set}" = set; then
2954 withval="$with_perl"
2964 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2965 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2966 { (exit 1); exit 1; }; }
2975 echo "$as_me:$LINENO: result: $with_perl" >&5
2976 echo "${ECHO_T}$with_perl" >&6
2980 # Optionally build Python interface module
2982 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2983 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2987 # Check whether --with-python or --without-python was given.
2988 if test "${with_python+set}" = set; then
2989 withval="$with_python"
2999 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3000 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3001 { (exit 1); exit 1; }; }
3010 echo "$as_me:$LINENO: result: $with_python" >&5
3011 echo "${ECHO_T}$with_python" >&6
3015 # Optionally build the Java/JDBC tools
3017 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3018 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3022 # Check whether --with-java or --without-java was given.
3023 if test "${with_java+set}" = set; then
3024 withval="$with_java"
3028 echo "$as_me:$LINENO: result: yes" >&5
3029 echo "${ECHO_T}yes" >&6
3031 for ac_prog in jakarta-ant ant ant.sh ant.bat
3033 # Extract the first word of "$ac_prog", so it can be a program name with args.
3034 set dummy $ac_prog; ac_word=$2
3035 echo "$as_me:$LINENO: checking for $ac_word" >&5
3036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3037 if test "${ac_cv_path_ANT+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 if test -n "$ANT"; then
3065 echo "$as_me:$LINENO: result: $ANT" >&5
3066 echo "${ECHO_T}$ANT" >&6
3068 echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6
3072 test -n "$ANT" && break
3076 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3077 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3078 if test "${pgac_cv_prog_ant_works+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 cat > conftest.java << EOF
3083 public class conftest {
3084 int testmethod(int a, int b) {
3090 cat > conftest.xml << EOF
3091 <project name="conftest" default="conftest">
3092 <target name="conftest">
3093 <javac srcdir="." includes="conftest.java">
3099 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3100 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3101 (eval $pgac_cmd) 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }
3106 if test $? = 0 && test -f ./conftest.class ; then
3107 pgac_cv_prog_ant_works=yes
3109 echo "configure: failed java program was:" >&5
3110 cat conftest.java >&5
3111 echo "configure: failed build file was:" >&5
3112 cat conftest.xml >&5
3113 pgac_cv_prog_ant_works=no
3116 rm -f conftest* core core.* *.core
3119 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3120 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3122 if test "$pgac_cv_prog_ant_works" != yes; then
3123 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3124 echo "$as_me: error: ant does not work" >&2;}
3125 { (exit 1); exit 1; }; }
3129 if test -z "$ANT"; then
3130 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3131 If you have Ant already installed, see config.log for details on the failure." >&5
3132 echo "$as_me: error: Ant is required to build Java components
3133 If you have Ant already installed, see config.log for details on the failure." >&2;}
3134 { (exit 1); exit 1; }; }
3136 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3137 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3138 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3139 { (exit 1); exit 1; }; }
3143 echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6
3147 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3148 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3149 { (exit 1); exit 1; }; }
3155 echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6
3165 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3166 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3170 # Check whether --with-krb4 or --without-krb4 was given.
3171 if test "${with_krb4+set}" = set; then
3172 withval="$with_krb4"
3176 krb4_prefix=/usr/athena
3183 krb4_prefix=$withval
3192 if test "$with_krb4" = yes; then
3194 echo "$as_me:$LINENO: result: yes" >&5
3195 echo "${ECHO_T}yes" >&6
3197 cat >>confdefs.h <<\_ACEOF
3202 if test -d "$krb4_prefix/include"; then
3203 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3205 if test -d "$krb4_prefix/lib"; then
3206 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3209 krb_srvtab="/etc/srvtab"
3212 echo "$as_me:$LINENO: result: no" >&5
3213 echo "${ECHO_T}no" >&6
3223 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3224 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3228 # Check whether --with-krb5 or --without-krb5 was given.
3229 if test "${with_krb5+set}" = set; then
3230 withval="$with_krb5"
3234 krb5_prefix=/usr/athena
3241 krb5_prefix=$withval
3250 if test "$with_krb5" = yes; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253 echo "${ECHO_T}yes" >&6
3255 cat >>confdefs.h <<\_ACEOF
3260 if test -d "$krb5_prefix/include"; then
3261 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3263 if test -d "$krb5_prefix/lib"; then
3264 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3267 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3270 echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3278 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3279 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3280 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3281 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3282 { (exit 1); exit 1; }; }
3289 # Kerberos configuration parameters
3294 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3295 if test "${with_krb_srvnam+set}" = set; then
3296 withval="$with_krb_srvnam"
3300 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3301 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3302 { (exit 1); exit 1; }; }
3305 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3306 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3307 { (exit 1); exit 1; }; }
3315 with_krb_srvnam="postgres"
3319 cat >>confdefs.h <<_ACEOF
3320 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3328 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3329 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3333 # Check whether --with-pam or --without-pam was given.
3334 if test "${with_pam+set}" = set; then
3340 cat >>confdefs.h <<\_ACEOF
3349 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3350 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3351 { (exit 1); exit 1; }; }
3360 echo "$as_me:$LINENO: result: $with_pam" >&5
3361 echo "${ECHO_T}$with_pam" >&6
3368 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3369 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3373 # Check whether --with-rendezvous or --without-rendezvous was given.
3374 if test "${with_rendezvous+set}" = set; then
3375 withval="$with_rendezvous"
3380 cat >>confdefs.h <<\_ACEOF
3381 #define USE_RENDEZVOUS 1
3389 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3390 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3391 { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3401 echo "${ECHO_T}$with_rendezvous" >&6
3411 # Check whether --with-openssl or --without-openssl was given.
3412 if test "${with_openssl+set}" = set; then
3413 withval="$with_openssl"
3417 openssl_prefix=/usr/local/ssl
3424 openssl_prefix=$withval
3433 if test "$with_openssl" = yes; then
3435 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3436 echo "${ECHO_T}building with OpenSSL support" >&6
3438 cat >>confdefs.h <<\_ACEOF
3443 if test -d "${openssl_prefix}/include" ; then
3444 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3446 if test -d "${openssl_prefix}/lib" ; then
3447 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3462 # Check whether --with-readline or --without-readline was given.
3463 if test "${with_readline+set}" = set; then
3464 withval="$with_readline"
3474 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3475 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3476 { (exit 1); exit 1; }; }
3492 # Check whether --with-zlib or --without-zlib was given.
3493 if test "${with_zlib+set}" = set; then
3494 withval="$with_zlib"
3504 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3505 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3506 { (exit 1); exit 1; }; }
3521 # Assume system is ELF if it predefines __ELF__ as 1,
3522 # otherwise believe host_os based default.
3524 freebsd1*|freebsd2*) elf=no;;
3525 freebsd3*|freebsd4*) elf=yes;;
3529 cat >conftest.$ac_ext <<_ACEOF
3530 #line $LINENO "configure"
3531 #include "confdefs.h"
3537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3538 egrep "yes" >/dev/null 2>&1; then
3541 if test "X$elf" = "Xyes" ; then
3555 CPPFLAGS="$CPPFLAGS $INCLUDES"
3556 LDFLAGS="$LDFLAGS $LIBDIRS"
3558 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3559 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3560 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3561 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3564 for ac_prog in gawk mawk nawk awk
3566 # Extract the first word of "$ac_prog", so it can be a program name with args.
3567 set dummy $ac_prog; ac_word=$2
3568 echo "$as_me:$LINENO: checking for $ac_word" >&5
3569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3570 if test "${ac_cv_prog_AWK+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 if test -n "$AWK"; then
3574 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583 ac_cv_prog_AWK="$ac_prog"
3584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 if test -n "$AWK"; then
3594 echo "$as_me:$LINENO: result: $AWK" >&5
3595 echo "${ECHO_T}$AWK" >&6
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3601 test -n "$AWK" && break
3604 echo "$as_me:$LINENO: checking for flex" >&5
3605 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3606 if test "${pgac_cv_path_flex+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 # Let the user override the test
3610 if test -n "$FLEX"; then
3611 pgac_cv_path_flex=$FLEX
3615 for pgac_dir in $PATH; do
3616 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3619 for pgac_prog in flex lex; do
3620 pgac_candidate="$pgac_dir/$pgac_prog"
3621 if test -f "$pgac_candidate" \
3622 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3624 echo '%%' > conftest.l
3625 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3626 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3627 pgac_broken_flex=$pgac_candidate
3631 pgac_cv_path_flex=$pgac_candidate
3639 : ${pgac_cv_path_flex=no}
3643 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3644 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3645 if test x"$pgac_cv_path_flex" = x"no"; then
3646 if test -n "$pgac_broken_flex"; then
3647 { echo "$as_me:$LINENO: WARNING:
3648 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3649 *** should get version 2.5.4 or later." >&5
3650 echo "$as_me: WARNING:
3651 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3652 *** should get version 2.5.4 or later." >&2;}
3655 { echo "$as_me:$LINENO: WARNING:
3656 *** Without Flex you will not be able to build PostgreSQL from CVS or
3657 *** change any of the scanner definition files. You can obtain Flex from
3658 *** a GNU mirror site. (If you are using the official distribution of
3659 *** PostgreSQL then you do not need to worry about this because the Flex
3660 *** output is pre-generated.)" >&5
3661 echo "$as_me: WARNING:
3662 *** Without Flex you will not be able to build PostgreSQL from CVS or
3663 *** change any of the scanner definition files. You can obtain Flex from
3664 *** a GNU mirror site. (If you are using the official distribution of
3665 *** PostgreSQL then you do not need to worry about this because the Flex
3666 *** output is pre-generated.)" >&2;}
3669 if test x"$pgac_cv_path_flex" = x"no"; then
3672 FLEX=$pgac_cv_path_flex
3678 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3679 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3681 if test "$LN_S" = "ln -s"; then
3682 echo "$as_me:$LINENO: result: yes" >&5
3683 echo "${ECHO_T}yes" >&6
3685 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3686 echo "${ECHO_T}no, using $LN_S" >&6
3690 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3691 if test "${with_gnu_ld+set}" = set; then
3692 withval="$with_gnu_ld"
3693 test "$withval" = no || with_gnu_ld=yes
3698 if test "$GCC" = yes; then
3699 # Check if gcc -print-prog-name=ld gives a path.
3700 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3701 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3704 # gcc leaves a trailing carriage return which upsets mingw
3705 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3707 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3710 # Accept absolute paths.
3711 [\\/]* | [A-Za-z]:[\\/]*)
3712 re_direlt='/[^/][^/]*/\.\./'
3713 # Canonicalize the path of ld
3714 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3715 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3716 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3718 test -z "$LD" && LD="$ac_prog"
3721 # If it fails, then pretend we aren't using GCC.
3725 # If it is relative, then search for the first ld in PATH.
3729 elif test "$with_gnu_ld" = yes; then
3730 echo "$as_me:$LINENO: checking for GNU ld" >&5
3731 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3733 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3734 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3736 if test "${ac_cv_path_LD+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 if test -z "$LD"; then
3740 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3741 for ac_dir in $PATH; do
3742 test -z "$ac_dir" && ac_dir=.
3743 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3744 ac_cv_path_LD="$ac_dir/$ac_prog"
3745 # Check to see if the program is GNU ld. I'd rather use --version,
3746 # but apparently some GNU ld's only accept -v.
3747 # Break only if it was the GNU/non-GNU ld that we prefer.
3748 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3749 test "$with_gnu_ld" != no && break
3751 test "$with_gnu_ld" != yes && break
3757 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3762 if test -n "$LD"; then
3763 echo "$as_me:$LINENO: result: $LD" >&5
3764 echo "${ECHO_T}$LD" >&6
3766 echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6
3769 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3770 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3771 { (exit 1); exit 1; }; }
3772 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3773 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3774 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3777 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3778 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3779 ac_cv_prog_gnu_ld=yes
3781 ac_cv_prog_gnu_ld=no
3784 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3785 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3786 with_gnu_ld=$ac_cv_prog_gnu_ld
3791 case $host_os in sysv5*)
3792 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3793 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3794 if test "${pgac_cv_prog_ld_R+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3799 cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3801 #include "confdefs.h"
3803 #ifdef F77_DUMMY_MAIN
3807 int F77_DUMMY_MAIN() { return 1; }
3817 rm -f conftest.$ac_objext conftest$ac_exeext
3818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3819 (eval $ac_link) 2>&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -s conftest$ac_exeext'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3829 pgac_cv_prog_ld_R=yes
3831 echo "$as_me: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 pgac_cv_prog_ld_R=no
3835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3836 LDFLAGS=$pgac_save_LDFLAGS
3839 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3840 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3841 ld_R_works=$pgac_cv_prog_ld_R
3844 if test -n "$ac_tool_prefix"; then
3845 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3846 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_RANLIB+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 if test -n "$RANLIB"; then
3853 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 RANLIB=$ac_cv_prog_RANLIB
3872 if test -n "$RANLIB"; then
3873 echo "$as_me:$LINENO: result: $RANLIB" >&5
3874 echo "${ECHO_T}$RANLIB" >&6
3876 echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6
3881 if test -z "$ac_cv_prog_RANLIB"; then
3882 ac_ct_RANLIB=$RANLIB
3883 # Extract the first word of "ranlib", so it can be a program name with args.
3884 set dummy ranlib; ac_word=$2
3885 echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 if test -n "$ac_ct_RANLIB"; then
3891 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_ac_ct_RANLIB="ranlib"
3901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3910 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3911 if test -n "$ac_ct_RANLIB"; then
3912 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3913 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3915 echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6
3919 RANLIB=$ac_ct_RANLIB
3921 RANLIB="$ac_cv_prog_RANLIB"
3924 for ac_prog in lorder
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_LORDER+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 if test -n "$LORDER"; then
3934 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_LORDER="$ac_prog"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 LORDER=$ac_cv_prog_LORDER
3953 if test -n "$LORDER"; then
3954 echo "$as_me:$LINENO: result: $LORDER" >&5
3955 echo "${ECHO_T}$LORDER" >&6
3957 echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3961 test -n "$LORDER" && break
3964 # Extract the first word of "tar", so it can be a program name with args.
3965 set dummy tar; ac_word=$2
3966 echo "$as_me:$LINENO: checking for $ac_word" >&5
3967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968 if test "${ac_cv_path_TAR+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 if test -n "$TAR"; then
3996 echo "$as_me:$LINENO: result: $TAR" >&5
3997 echo "${ECHO_T}$TAR" >&6
3999 echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4004 if test -n "$ac_tool_prefix"; then
4005 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4006 set dummy ${ac_tool_prefix}strip; ac_word=$2
4007 echo "$as_me:$LINENO: checking for $ac_word" >&5
4008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4009 if test "${ac_cv_prog_STRIP+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if test -n "$STRIP"; then
4013 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 STRIP=$ac_cv_prog_STRIP
4032 if test -n "$STRIP"; then
4033 echo "$as_me:$LINENO: result: $STRIP" >&5
4034 echo "${ECHO_T}$STRIP" >&6
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4041 if test -z "$ac_cv_prog_STRIP"; then
4043 # Extract the first word of "strip", so it can be a program name with args.
4044 set dummy strip; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 if test -n "$ac_ct_STRIP"; then
4051 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_ac_ct_STRIP="strip"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4070 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4071 if test -n "$ac_ct_STRIP"; then
4072 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4073 echo "${ECHO_T}$ac_ct_STRIP" >&6
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4081 STRIP="$ac_cv_prog_STRIP"
4085 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4086 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4087 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4088 STRIP_STATIC_LIB="$STRIP -x"
4089 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4090 echo "$as_me:$LINENO: result: yes" >&5
4091 echo "${ECHO_T}yes" >&6
4095 echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4102 for ac_prog in 'bison -y'
4104 # Extract the first word of "$ac_prog", so it can be a program name with args.
4105 set dummy $ac_prog; ac_word=$2
4106 echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108 if test "${ac_cv_prog_YACC+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 if test -n "$YACC"; then
4112 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_YACC="$ac_prog"
4122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 YACC=$ac_cv_prog_YACC
4131 if test -n "$YACC"; then
4132 echo "$as_me:$LINENO: result: $YACC" >&5
4133 echo "${ECHO_T}$YACC" >&6
4135 echo "$as_me:$LINENO: result: no" >&5
4136 echo "${ECHO_T}no" >&6
4139 test -n "$YACC" && break
4143 if test "$YACC"; then
4144 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4145 { echo "$as_me:$LINENO: WARNING:
4146 *** The installed version of Bison is too old. PostgreSQL needs
4147 *** Bison version 1.875 or later." >&5
4148 echo "$as_me: WARNING:
4149 *** The installed version of Bison is too old. PostgreSQL needs
4150 *** Bison version 1.875 or later." >&2;}
4154 if test -z "$YACC"; then
4155 { echo "$as_me:$LINENO: WARNING:
4156 *** Without Bison you will not be able to build PostgreSQL from CVS or
4157 *** change any of the parser definition files. You can obtain Bison from
4158 *** a GNU mirror site. (If you are using the official distribution of
4159 *** PostgreSQL then you do not need to worry about this because the Bison
4160 *** output is pre-generated.) To use a different yacc program (possible,
4161 *** but not recommended), set the environment variable YACC before running
4162 *** 'configure'." >&5
4163 echo "$as_me: WARNING:
4164 *** Without Bison you will not be able to build PostgreSQL from CVS or
4165 *** change any of the parser definition files. You can obtain Bison from
4166 *** a GNU mirror site. (If you are using the official distribution of
4167 *** PostgreSQL then you do not need to worry about this because the Bison
4168 *** output is pre-generated.) To use a different yacc program (possible,
4169 *** but not recommended), set the environment variable YACC before running
4170 *** 'configure'." >&2;}
4174 # Extract the first word of "perl", so it can be a program name with args.
4175 set dummy perl; ac_word=$2
4176 echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178 if test "${ac_cv_path_PERL+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 PERL=$ac_cv_path_PERL
4205 if test -n "$PERL"; then
4206 echo "$as_me:$LINENO: result: $PERL" >&5
4207 echo "${ECHO_T}$PERL" >&6
4209 echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6
4213 if test "$with_perl" = yes; then
4215 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4216 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4217 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4218 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4219 echo "${ECHO_T}$perl_archlibexp" >&6
4220 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4221 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4222 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4223 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4224 echo "${ECHO_T}$perl_privlibexp" >&6
4225 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4226 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4227 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4228 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4229 echo "${ECHO_T}$perl_useshrplib" >&6
4231 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4232 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4233 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4234 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4235 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4236 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4237 echo "${ECHO_T}$perl_embed_ldflags" >&6
4240 if test "$with_python" = yes; then
4241 # Extract the first word of "python", so it can be a program name with args.
4242 set dummy python; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_path_PYTHON+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 PYTHON=$ac_cv_path_PYTHON
4272 if test -n "$PYTHON"; then
4273 echo "$as_me:$LINENO: result: $PYTHON" >&5
4274 echo "${ECHO_T}$PYTHON" >&6
4276 echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4280 if test x"$PYTHON" = x""; then
4281 { { echo "$as_me:$LINENO: error: Python not found" >&5
4282 echo "$as_me: error: Python not found" >&2;}
4283 { (exit 1); exit 1; }; }
4287 echo "$as_me:$LINENO: checking Python installation directories" >&5
4288 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4289 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4290 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4291 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4292 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4293 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4294 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4295 python_includespec="-I${python_prefix}/include/python${python_version}"
4296 if test "$python_prefix" != "$python_execprefix"; then
4297 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4300 # This should be enough of a message.
4301 if test "$python_prefix" != "$python_execprefix"; then
4302 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4303 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4305 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4306 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4313 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4314 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4316 if test ! -f "$python_configdir/Makefile"; then
4317 echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6
4319 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4320 echo "$as_me: error: Python Makefile not found" >&2;}
4321 { (exit 1); exit 1; }; }
4324 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4325 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4326 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4327 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4328 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4330 pgac_tab=" " # tab character
4331 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"`
4333 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4334 echo "${ECHO_T}${python_libspec}" >&6
4344 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4347 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4348 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4349 if test "${ac_cv_lib_bsd_main+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 ac_check_lib_save_LIBS=$LIBS
4354 cat >conftest.$ac_ext <<_ACEOF
4355 #line $LINENO "configure"
4356 #include "confdefs.h"
4359 #ifdef F77_DUMMY_MAIN
4363 int F77_DUMMY_MAIN() { return 1; }
4373 rm -f conftest.$ac_objext conftest$ac_exeext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4375 (eval $ac_link) 2>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); } &&
4379 { ac_try='test -s conftest$ac_exeext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 ac_cv_lib_bsd_main=yes
4387 echo "$as_me: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4389 ac_cv_lib_bsd_main=no
4391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4392 LIBS=$ac_check_lib_save_LIBS
4394 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4395 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4396 if test $ac_cv_lib_bsd_main = yes; then
4397 cat >>confdefs.h <<_ACEOF
4398 #define HAVE_LIBBSD 1
4407 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4408 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4409 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 ac_check_lib_save_LIBS=$LIBS
4414 cat >conftest.$ac_ext <<_ACEOF
4415 #line $LINENO "configure"
4416 #include "confdefs.h"
4418 /* Override any gcc2 internal prototype to avoid an error. */
4422 /* We use char because int might match the return type of a gcc2
4423 builtin and then its argument prototype would still apply. */
4424 char setproctitle ();
4425 #ifdef F77_DUMMY_MAIN
4429 int F77_DUMMY_MAIN() { return 1; }
4439 rm -f conftest.$ac_objext conftest$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } &&
4445 { ac_try='test -s conftest$ac_exeext'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then
4451 ac_cv_lib_util_setproctitle=yes
4453 echo "$as_me: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4455 ac_cv_lib_util_setproctitle=no
4457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4458 LIBS=$ac_check_lib_save_LIBS
4460 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4461 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4462 if test $ac_cv_lib_util_setproctitle = yes; then
4463 cat >>confdefs.h <<_ACEOF
4464 #define HAVE_LIBUTIL 1
4472 echo "$as_me:$LINENO: checking for main in -lm" >&5
4473 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4474 if test "${ac_cv_lib_m_main+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4477 ac_check_lib_save_LIBS=$LIBS
4479 cat >conftest.$ac_ext <<_ACEOF
4480 #line $LINENO "configure"
4481 #include "confdefs.h"
4484 #ifdef F77_DUMMY_MAIN
4488 int F77_DUMMY_MAIN() { return 1; }
4498 rm -f conftest.$ac_objext conftest$ac_exeext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500 (eval $ac_link) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } &&
4504 { ac_try='test -s conftest$ac_exeext'
4505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; }; then
4510 ac_cv_lib_m_main=yes
4512 echo "$as_me: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4517 LIBS=$ac_check_lib_save_LIBS
4519 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4520 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4521 if test $ac_cv_lib_m_main = yes; then
4522 cat >>confdefs.h <<_ACEOF
4531 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4532 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4533 if test "${ac_cv_lib_dl_main+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 ac_check_lib_save_LIBS=$LIBS
4538 cat >conftest.$ac_ext <<_ACEOF
4539 #line $LINENO "configure"
4540 #include "confdefs.h"
4543 #ifdef F77_DUMMY_MAIN
4547 int F77_DUMMY_MAIN() { return 1; }
4557 rm -f conftest.$ac_objext conftest$ac_exeext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4559 (eval $ac_link) 2>&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } &&
4563 { ac_try='test -s conftest$ac_exeext'
4564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; }; then
4569 ac_cv_lib_dl_main=yes
4571 echo "$as_me: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4573 ac_cv_lib_dl_main=no
4575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4576 LIBS=$ac_check_lib_save_LIBS
4578 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4579 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4580 if test $ac_cv_lib_dl_main = yes; then
4581 cat >>confdefs.h <<_ACEOF
4582 #define HAVE_LIBDL 1
4590 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4591 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4592 if test "${ac_cv_lib_nsl_main+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 ac_check_lib_save_LIBS=$LIBS
4597 cat >conftest.$ac_ext <<_ACEOF
4598 #line $LINENO "configure"
4599 #include "confdefs.h"
4602 #ifdef F77_DUMMY_MAIN
4606 int F77_DUMMY_MAIN() { return 1; }
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } &&
4622 { ac_try='test -s conftest$ac_exeext'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; }; then
4628 ac_cv_lib_nsl_main=yes
4630 echo "$as_me: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4632 ac_cv_lib_nsl_main=no
4634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4635 LIBS=$ac_check_lib_save_LIBS
4637 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4638 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4639 if test $ac_cv_lib_nsl_main = yes; then
4640 cat >>confdefs.h <<_ACEOF
4641 #define HAVE_LIBNSL 1
4649 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4650 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4651 if test "${ac_cv_lib_socket_main+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 ac_check_lib_save_LIBS=$LIBS
4655 LIBS="-lsocket $LIBS"
4656 cat >conftest.$ac_ext <<_ACEOF
4657 #line $LINENO "configure"
4658 #include "confdefs.h"
4661 #ifdef F77_DUMMY_MAIN
4665 int F77_DUMMY_MAIN() { return 1; }
4675 rm -f conftest.$ac_objext conftest$ac_exeext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4677 (eval $ac_link) 2>&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } &&
4681 { ac_try='test -s conftest$ac_exeext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 ac_cv_lib_socket_main=yes
4689 echo "$as_me: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 ac_cv_lib_socket_main=no
4693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4694 LIBS=$ac_check_lib_save_LIBS
4696 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4697 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4698 if test $ac_cv_lib_socket_main = yes; then
4699 cat >>confdefs.h <<_ACEOF
4700 #define HAVE_LIBSOCKET 1
4703 LIBS="-lsocket $LIBS"
4708 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4709 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4710 if test "${ac_cv_lib_ipc_main+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 ac_check_lib_save_LIBS=$LIBS
4715 cat >conftest.$ac_ext <<_ACEOF
4716 #line $LINENO "configure"
4717 #include "confdefs.h"
4720 #ifdef F77_DUMMY_MAIN
4724 int F77_DUMMY_MAIN() { return 1; }
4734 rm -f conftest.$ac_objext conftest$ac_exeext
4735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736 (eval $ac_link) 2>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } &&
4740 { ac_try='test -s conftest$ac_exeext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 ac_cv_lib_ipc_main=yes
4748 echo "$as_me: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4750 ac_cv_lib_ipc_main=no
4752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4753 LIBS=$ac_check_lib_save_LIBS
4755 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4756 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4757 if test $ac_cv_lib_ipc_main = yes; then
4758 cat >>confdefs.h <<_ACEOF
4759 #define HAVE_LIBIPC 1
4767 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4768 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4769 if test "${ac_cv_lib_IPC_main+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 ac_check_lib_save_LIBS=$LIBS
4774 cat >conftest.$ac_ext <<_ACEOF
4775 #line $LINENO "configure"
4776 #include "confdefs.h"
4779 #ifdef F77_DUMMY_MAIN
4783 int F77_DUMMY_MAIN() { return 1; }
4793 rm -f conftest.$ac_objext conftest$ac_exeext
4794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4795 (eval $ac_link) 2>&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -s conftest$ac_exeext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 ac_cv_lib_IPC_main=yes
4807 echo "$as_me: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4809 ac_cv_lib_IPC_main=no
4811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4812 LIBS=$ac_check_lib_save_LIBS
4814 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4815 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4816 if test $ac_cv_lib_IPC_main = yes; then
4817 cat >>confdefs.h <<_ACEOF
4818 #define HAVE_LIBIPC 1
4826 echo "$as_me:$LINENO: checking for main in -llc" >&5
4827 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4828 if test "${ac_cv_lib_lc_main+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4831 ac_check_lib_save_LIBS=$LIBS
4833 cat >conftest.$ac_ext <<_ACEOF
4834 #line $LINENO "configure"
4835 #include "confdefs.h"
4838 #ifdef F77_DUMMY_MAIN
4842 int F77_DUMMY_MAIN() { return 1; }
4852 rm -f conftest.$ac_objext conftest$ac_exeext
4853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4854 (eval $ac_link) 2>&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -s conftest$ac_exeext'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4864 ac_cv_lib_lc_main=yes
4866 echo "$as_me: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4868 ac_cv_lib_lc_main=no
4870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4871 LIBS=$ac_check_lib_save_LIBS
4873 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4874 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4875 if test $ac_cv_lib_lc_main = yes; then
4876 cat >>confdefs.h <<_ACEOF
4877 #define HAVE_LIBLC 1
4885 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4886 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4887 if test "${ac_cv_lib_dld_main+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 ac_check_lib_save_LIBS=$LIBS
4892 cat >conftest.$ac_ext <<_ACEOF
4893 #line $LINENO "configure"
4894 #include "confdefs.h"
4897 #ifdef F77_DUMMY_MAIN
4901 int F77_DUMMY_MAIN() { return 1; }
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913 (eval $ac_link) 2>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -s conftest$ac_exeext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_lib_dld_main=yes
4925 echo "$as_me: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4927 ac_cv_lib_dld_main=no
4929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4930 LIBS=$ac_check_lib_save_LIBS
4932 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4933 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4934 if test $ac_cv_lib_dld_main = yes; then
4935 cat >>confdefs.h <<_ACEOF
4936 #define HAVE_LIBDLD 1
4944 echo "$as_me:$LINENO: checking for main in -lld" >&5
4945 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4946 if test "${ac_cv_lib_ld_main+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 ac_check_lib_save_LIBS=$LIBS
4951 cat >conftest.$ac_ext <<_ACEOF
4952 #line $LINENO "configure"
4953 #include "confdefs.h"
4956 #ifdef F77_DUMMY_MAIN
4960 int F77_DUMMY_MAIN() { return 1; }
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972 (eval $ac_link) 2>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -s conftest$ac_exeext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_cv_lib_ld_main=yes
4984 echo "$as_me: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4986 ac_cv_lib_ld_main=no
4988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4989 LIBS=$ac_check_lib_save_LIBS
4991 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4992 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4993 if test $ac_cv_lib_ld_main = yes; then
4994 cat >>confdefs.h <<_ACEOF
4995 #define HAVE_LIBLD 1
5003 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5004 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5005 if test "${ac_cv_lib_compat_main+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 ac_check_lib_save_LIBS=$LIBS
5009 LIBS="-lcompat $LIBS"
5010 cat >conftest.$ac_ext <<_ACEOF
5011 #line $LINENO "configure"
5012 #include "confdefs.h"
5015 #ifdef F77_DUMMY_MAIN
5019 int F77_DUMMY_MAIN() { return 1; }
5029 rm -f conftest.$ac_objext conftest$ac_exeext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031 (eval $ac_link) 2>&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try='test -s conftest$ac_exeext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 ac_cv_lib_compat_main=yes
5043 echo "$as_me: failed program was:" >&5
5044 cat conftest.$ac_ext >&5
5045 ac_cv_lib_compat_main=no
5047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5048 LIBS=$ac_check_lib_save_LIBS
5050 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5051 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5052 if test $ac_cv_lib_compat_main = yes; then
5053 cat >>confdefs.h <<_ACEOF
5054 #define HAVE_LIBCOMPAT 1
5057 LIBS="-lcompat $LIBS"
5062 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5063 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5064 if test "${ac_cv_lib_BSD_main+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 ac_check_lib_save_LIBS=$LIBS
5069 cat >conftest.$ac_ext <<_ACEOF
5070 #line $LINENO "configure"
5071 #include "confdefs.h"
5074 #ifdef F77_DUMMY_MAIN
5078 int F77_DUMMY_MAIN() { return 1; }
5088 rm -f conftest.$ac_objext conftest$ac_exeext
5089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090 (eval $ac_link) 2>&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try='test -s conftest$ac_exeext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_cv_lib_BSD_main=yes
5102 echo "$as_me: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5104 ac_cv_lib_BSD_main=no
5106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5107 LIBS=$ac_check_lib_save_LIBS
5109 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5110 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5111 if test $ac_cv_lib_BSD_main = yes; then
5112 cat >>confdefs.h <<_ACEOF
5113 #define HAVE_LIBBSD 1
5121 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5122 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5123 if test "${ac_cv_lib_gen_main+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 ac_check_lib_save_LIBS=$LIBS
5128 cat >conftest.$ac_ext <<_ACEOF
5129 #line $LINENO "configure"
5130 #include "confdefs.h"
5133 #ifdef F77_DUMMY_MAIN
5137 int F77_DUMMY_MAIN() { return 1; }
5147 rm -f conftest.$ac_objext conftest$ac_exeext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5149 (eval $ac_link) 2>&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } &&
5153 { ac_try='test -s conftest$ac_exeext'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; }; then
5159 ac_cv_lib_gen_main=yes
5161 echo "$as_me: failed program was:" >&5
5162 cat conftest.$ac_ext >&5
5163 ac_cv_lib_gen_main=no
5165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5166 LIBS=$ac_check_lib_save_LIBS
5168 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5169 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5170 if test $ac_cv_lib_gen_main = yes; then
5171 cat >>confdefs.h <<_ACEOF
5172 #define HAVE_LIBGEN 1
5180 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5181 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5182 if test "${ac_cv_lib_PW_main+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 ac_check_lib_save_LIBS=$LIBS
5187 cat >conftest.$ac_ext <<_ACEOF
5188 #line $LINENO "configure"
5189 #include "confdefs.h"
5192 #ifdef F77_DUMMY_MAIN
5196 int F77_DUMMY_MAIN() { return 1; }
5206 rm -f conftest.$ac_objext conftest$ac_exeext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5208 (eval $ac_link) 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -s conftest$ac_exeext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_cv_lib_PW_main=yes
5220 echo "$as_me: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5222 ac_cv_lib_PW_main=no
5224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5225 LIBS=$ac_check_lib_save_LIBS
5227 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5228 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5229 if test $ac_cv_lib_PW_main = yes; then
5230 cat >>confdefs.h <<_ACEOF
5231 #define HAVE_LIBPW 1
5239 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5240 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5241 if test "${ac_cv_lib_resolv_main+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 ac_check_lib_save_LIBS=$LIBS
5245 LIBS="-lresolv $LIBS"
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 #include "confdefs.h"
5251 #ifdef F77_DUMMY_MAIN
5255 int F77_DUMMY_MAIN() { return 1; }
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5267 (eval $ac_link) 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -s conftest$ac_exeext'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_lib_resolv_main=yes
5279 echo "$as_me: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5281 ac_cv_lib_resolv_main=no
5283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5284 LIBS=$ac_check_lib_save_LIBS
5286 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5287 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5288 if test $ac_cv_lib_resolv_main = yes; then
5289 cat >>confdefs.h <<_ACEOF
5290 #define HAVE_LIBRESOLV 1
5293 LIBS="-lresolv $LIBS"
5298 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5299 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5300 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 ac_check_lib_save_LIBS=$LIBS
5304 LIBS="-lwsock32 $LIBS"
5305 cat >conftest.$ac_ext <<_ACEOF
5306 #line $LINENO "configure"
5307 #include "confdefs.h"
5310 #ifdef F77_DUMMY_MAIN
5314 int F77_DUMMY_MAIN() { return 1; }
5324 rm -f conftest.$ac_objext conftest$ac_exeext
5325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326 (eval $ac_link) 2>&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } &&
5330 { ac_try='test -s conftest$ac_exeext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5336 ac_cv_lib_wsock32_main=yes
5338 echo "$as_me: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5340 ac_cv_lib_wsock32_main=no
5342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5343 LIBS=$ac_check_lib_save_LIBS
5345 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5346 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5347 if test $ac_cv_lib_wsock32_main = yes; then
5348 cat >>confdefs.h <<_ACEOF
5349 #define HAVE_LIBWSOCK32 1
5352 LIBS="-lwsock32 $LIBS"
5356 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5357 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5358 if test "${ac_cv_search_getopt_long+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5361 ac_func_search_save_LIBS=$LIBS
5362 ac_cv_search_getopt_long=no
5363 cat >conftest.$ac_ext <<_ACEOF
5364 #line $LINENO "configure"
5365 #include "confdefs.h"
5367 /* Override any gcc2 internal prototype to avoid an error. */
5371 /* We use char because int might match the return type of a gcc2
5372 builtin and then its argument prototype would still apply. */
5373 char getopt_long ();
5374 #ifdef F77_DUMMY_MAIN
5378 int F77_DUMMY_MAIN() { return 1; }
5388 rm -f conftest.$ac_objext conftest$ac_exeext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5390 (eval $ac_link) 2>&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } &&
5394 { ac_try='test -s conftest$ac_exeext'
5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 ac_cv_search_getopt_long="none required"
5402 echo "$as_me: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5406 if test "$ac_cv_search_getopt_long" = no; then
5407 for ac_lib in getopt gnugetopt; do
5408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5409 cat >conftest.$ac_ext <<_ACEOF
5410 #line $LINENO "configure"
5411 #include "confdefs.h"
5413 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5419 char getopt_long ();
5420 #ifdef F77_DUMMY_MAIN
5424 int F77_DUMMY_MAIN() { return 1; }
5434 rm -f conftest.$ac_objext conftest$ac_exeext
5435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5436 (eval $ac_link) 2>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } &&
5440 { ac_try='test -s conftest$ac_exeext'
5441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); }; }; then
5446 ac_cv_search_getopt_long="-l$ac_lib"
5449 echo "$as_me: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5455 LIBS=$ac_func_search_save_LIBS
5457 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5458 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5459 if test "$ac_cv_search_getopt_long" != no; then
5460 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5466 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5467 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5468 if test "${ac_cv_lib_unix_main+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 ac_check_lib_save_LIBS=$LIBS
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5475 #include "confdefs.h"
5478 #ifdef F77_DUMMY_MAIN
5482 int F77_DUMMY_MAIN() { return 1; }
5492 rm -f conftest.$ac_objext conftest$ac_exeext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5494 (eval $ac_link) 2>&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } &&
5498 { ac_try='test -s conftest$ac_exeext'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5504 ac_cv_lib_unix_main=yes
5506 echo "$as_me: failed program was:" >&5
5507 cat conftest.$ac_ext >&5
5508 ac_cv_lib_unix_main=no
5510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5511 LIBS=$ac_check_lib_save_LIBS
5513 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5514 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5515 if test $ac_cv_lib_unix_main = yes; then
5516 cat >>confdefs.h <<_ACEOF
5517 #define HAVE_LIBUNIX 1
5524 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5525 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5526 if test "${ac_cv_search_crypt+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 ac_func_search_save_LIBS=$LIBS
5530 ac_cv_search_crypt=no
5531 cat >conftest.$ac_ext <<_ACEOF
5532 #line $LINENO "configure"
5533 #include "confdefs.h"
5535 /* Override any gcc2 internal prototype to avoid an error. */
5539 /* We use char because int might match the return type of a gcc2
5540 builtin and then its argument prototype would still apply. */
5542 #ifdef F77_DUMMY_MAIN
5546 int F77_DUMMY_MAIN() { return 1; }
5556 rm -f conftest.$ac_objext conftest$ac_exeext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5558 (eval $ac_link) 2>&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } &&
5562 { ac_try='test -s conftest$ac_exeext'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5568 ac_cv_search_crypt="none required"
5570 echo "$as_me: failed program was:" >&5
5571 cat conftest.$ac_ext >&5
5573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5574 if test "$ac_cv_search_crypt" = no; then
5575 for ac_lib in crypt; do
5576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5577 cat >conftest.$ac_ext <<_ACEOF
5578 #line $LINENO "configure"
5579 #include "confdefs.h"
5581 /* Override any gcc2 internal prototype to avoid an error. */
5585 /* We use char because int might match the return type of a gcc2
5586 builtin and then its argument prototype would still apply. */
5588 #ifdef F77_DUMMY_MAIN
5592 int F77_DUMMY_MAIN() { return 1; }
5602 rm -f conftest.$ac_objext conftest$ac_exeext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604 (eval $ac_link) 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 { ac_try='test -s conftest$ac_exeext'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_cv_search_crypt="-l$ac_lib"
5617 echo "$as_me: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5623 LIBS=$ac_func_search_save_LIBS
5625 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5626 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5627 if test "$ac_cv_search_crypt" != no; then
5628 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5633 if test "$PORTNAME" = "beos"
5636 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5637 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5638 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 ac_check_lib_save_LIBS=$LIBS
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 #include "confdefs.h"
5647 /* Override any gcc2 internal prototype to avoid an error. */
5651 /* We use char because int might match the return type of a gcc2
5652 builtin and then its argument prototype would still apply. */
5653 char __inet_ntoa ();
5654 #ifdef F77_DUMMY_MAIN
5658 int F77_DUMMY_MAIN() { return 1; }
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670 (eval $ac_link) 2>&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -s conftest$ac_exeext'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; }; then
5680 ac_cv_lib_bind___inet_ntoa=yes
5682 echo "$as_me: failed program was:" >&5
5683 cat conftest.$ac_ext >&5
5684 ac_cv_lib_bind___inet_ntoa=no
5686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5687 LIBS=$ac_check_lib_save_LIBS
5689 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5690 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5691 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5692 cat >>confdefs.h <<_ACEOF
5693 #define HAVE_LIBBIND 1
5702 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5703 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5704 if test "${ac_cv_search_fdatasync+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 ac_func_search_save_LIBS=$LIBS
5708 ac_cv_search_fdatasync=no
5709 cat >conftest.$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5711 #include "confdefs.h"
5713 /* Override any gcc2 internal prototype to avoid an error. */
5717 /* We use char because int might match the return type of a gcc2
5718 builtin and then its argument prototype would still apply. */
5720 #ifdef F77_DUMMY_MAIN
5724 int F77_DUMMY_MAIN() { return 1; }
5734 rm -f conftest.$ac_objext conftest$ac_exeext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5736 (eval $ac_link) 2>&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -s conftest$ac_exeext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_cv_search_fdatasync="none required"
5748 echo "$as_me: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752 if test "$ac_cv_search_fdatasync" = no; then
5753 for ac_lib in rt posix4; do
5754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 #include "confdefs.h"
5759 /* Override any gcc2 internal prototype to avoid an error. */
5763 /* We use char because int might match the return type of a gcc2
5764 builtin and then its argument prototype would still apply. */
5766 #ifdef F77_DUMMY_MAIN
5770 int F77_DUMMY_MAIN() { return 1; }
5780 rm -f conftest.$ac_objext conftest$ac_exeext
5781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782 (eval $ac_link) 2>&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -s conftest$ac_exeext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 ac_cv_search_fdatasync="-l$ac_lib"
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
5801 LIBS=$ac_func_search_save_LIBS
5803 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5804 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5805 if test "$ac_cv_search_fdatasync" != no; then
5806 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5812 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5813 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5814 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 ac_check_lib_save_LIBS=$LIBS
5818 LIBS="-lcygipc $LIBS"
5819 cat >conftest.$ac_ext <<_ACEOF
5820 #line $LINENO "configure"
5821 #include "confdefs.h"
5823 /* Override any gcc2 internal prototype to avoid an error. */
5827 /* We use char because int might match the return type of a gcc2
5828 builtin and then its argument prototype would still apply. */
5830 #ifdef F77_DUMMY_MAIN
5834 int F77_DUMMY_MAIN() { return 1; }
5844 rm -f conftest.$ac_objext conftest$ac_exeext
5845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5846 (eval $ac_link) 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -s conftest$ac_exeext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_cv_lib_cygipc_shmget=yes
5858 echo "$as_me: failed program was:" >&5
5859 cat conftest.$ac_ext >&5
5860 ac_cv_lib_cygipc_shmget=no
5862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5863 LIBS=$ac_check_lib_save_LIBS
5865 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5866 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5867 if test $ac_cv_lib_cygipc_shmget = yes; then
5868 cat >>confdefs.h <<_ACEOF
5869 #define HAVE_LIBCYGIPC 1
5872 LIBS="-lcygipc $LIBS"
5877 if test "$with_readline" = yes; then
5879 echo "$as_me:$LINENO: checking for readline" >&5
5880 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5882 if test "${pgac_cv_check_readline+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 pgac_cv_check_readline=no
5886 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5887 for pgac_rllib in -lreadline -ledit ; do
5888 pgac_save_LIBS=$LIBS
5889 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5890 cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5892 #include "confdefs.h"
5894 /* Override any gcc2 internal prototype to avoid an error. */
5898 /* We use char because int might match the return type of a gcc2
5899 builtin and then its argument prototype would still apply. */
5901 #ifdef F77_DUMMY_MAIN
5905 int F77_DUMMY_MAIN() { return 1; }
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917 (eval $ac_link) 2>&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } &&
5921 { ac_try='test -s conftest$ac_exeext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5928 # NetBSD and OpenBSD have a broken linker that does not
5929 # recognize dependent libraries
5930 case $host_os in netbsd* | openbsd* )
5933 *) pgac_lib=" -lcurses" ;;
5937 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5941 echo "$as_me: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5945 LIBS=$pgac_save_LIBS
5948 LIBS=$pgac_save_LIBS
5952 if test "$pgac_cv_check_readline" != no ; then
5954 cat >>confdefs.h <<\_ACEOF
5955 #define HAVE_LIBREADLINE 1
5958 LIBS="$pgac_cv_check_readline $LIBS"
5959 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5960 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5962 echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6
5965 if test x"$pgac_cv_check_readline" = x"no"; then
5966 { { echo "$as_me:$LINENO: error: readline library not found
5967 If you have readline already installed, see config.log for details on the
5968 failure. It is possible the compiler isn't looking in the proper directory.
5969 Use --without-readline to disable readline support." >&5
5970 echo "$as_me: error: readline library not found
5971 If you have readline already installed, see config.log for details on the
5972 failure. It is possible the compiler isn't looking in the proper directory.
5973 Use --without-readline to disable readline support." >&2;}
5974 { (exit 1); exit 1; }; }
5978 if test "$with_zlib" = yes; then
5980 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5981 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5982 if test "${ac_cv_lib_z_inflate+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 ac_check_lib_save_LIBS=$LIBS
5987 cat >conftest.$ac_ext <<_ACEOF
5988 #line $LINENO "configure"
5989 #include "confdefs.h"
5991 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
5998 #ifdef F77_DUMMY_MAIN
6002 int F77_DUMMY_MAIN() { return 1; }
6012 rm -f conftest.$ac_objext conftest$ac_exeext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014 (eval $ac_link) 2>&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -s conftest$ac_exeext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_lib_z_inflate=yes
6026 echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 ac_cv_lib_z_inflate=no
6030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6031 LIBS=$ac_check_lib_save_LIBS
6033 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6034 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6035 if test $ac_cv_lib_z_inflate = yes; then
6036 cat >>confdefs.h <<_ACEOF
6043 { { echo "$as_me:$LINENO: error: zlib library not found
6044 If you have zlib already installed, see config.log for details on the
6045 failure. It is possible the compiler isn't looking in the proper directory.
6046 Use --without-zlib to disable zlib support." >&5
6047 echo "$as_me: error: zlib library not found
6048 If you have zlib already installed, see config.log for details on the
6049 failure. It is possible the compiler isn't looking in the proper directory.
6050 Use --without-zlib to disable zlib support." >&2;}
6051 { (exit 1); exit 1; }; }
6056 if test "$with_krb4" = yes ; then
6058 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6059 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6060 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 ac_check_lib_save_LIBS=$LIBS
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6067 #include "confdefs.h"
6069 /* Override any gcc2 internal prototype to avoid an error. */
6073 /* We use char because int might match the return type of a gcc2
6074 builtin and then its argument prototype would still apply. */
6075 char des_encrypt ();
6076 #ifdef F77_DUMMY_MAIN
6080 int F77_DUMMY_MAIN() { return 1; }
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092 (eval $ac_link) 2>&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try='test -s conftest$ac_exeext'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 ac_cv_lib_des_des_encrypt=yes
6104 echo "$as_me: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6106 ac_cv_lib_des_des_encrypt=no
6108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6109 LIBS=$ac_check_lib_save_LIBS
6111 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6112 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6113 if test $ac_cv_lib_des_des_encrypt = yes; then
6114 cat >>confdefs.h <<_ACEOF
6115 #define HAVE_LIBDES 1
6121 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6122 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6123 { (exit 1); exit 1; }; }
6127 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6128 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6129 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 ac_check_lib_save_LIBS=$LIBS
6134 cat >conftest.$ac_ext <<_ACEOF
6135 #line $LINENO "configure"
6136 #include "confdefs.h"
6138 /* Override any gcc2 internal prototype to avoid an error. */
6142 /* We use char because int might match the return type of a gcc2
6143 builtin and then its argument prototype would still apply. */
6144 char krb_sendauth ();
6145 #ifdef F77_DUMMY_MAIN
6149 int F77_DUMMY_MAIN() { return 1; }
6159 rm -f conftest.$ac_objext conftest$ac_exeext
6160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6161 (eval $ac_link) 2>&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -s conftest$ac_exeext'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_cv_lib_krb_krb_sendauth=yes
6173 echo "$as_me: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6175 ac_cv_lib_krb_krb_sendauth=no
6177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6178 LIBS=$ac_check_lib_save_LIBS
6180 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6181 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6182 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6183 cat >>confdefs.h <<_ACEOF
6184 #define HAVE_LIBKRB 1
6190 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6191 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6192 { (exit 1); exit 1; }; }
6196 for ac_func in gethostname
6198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6199 echo "$as_me:$LINENO: checking for $ac_func" >&5
6200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6201 if eval "test \"\${$as_ac_var+set}\" = set"; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 cat >conftest.$ac_ext <<_ACEOF
6205 #line $LINENO "configure"
6206 #include "confdefs.h"
6207 /* System header to define __stub macros and hopefully few prototypes,
6208 which can conflict with char $ac_func (); below. */
6210 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */
6219 #ifdef F77_DUMMY_MAIN
6223 int F77_DUMMY_MAIN() { return 1; }
6228 /* The GNU C library defines this for functions which it implements
6229 to always fail with ENOSYS. Some functions are actually named
6230 something starting with __ and the normal name is an alias. */
6231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243 (eval $ac_link) 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
6247 { ac_try='test -s conftest$ac_exeext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 eval "$as_ac_var=yes"
6255 echo "$as_me: failed program was:" >&5
6256 cat conftest.$ac_ext >&5
6257 eval "$as_ac_var=no"
6259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6263 if test `eval echo '${'$as_ac_var'}'` = yes; then
6264 cat >>confdefs.h <<_ACEOF
6265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6269 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6276 if test "$with_krb5" = yes ; then
6277 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6278 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6279 if test "${ac_cv_search_com_err+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 ac_func_search_save_LIBS=$LIBS
6283 ac_cv_search_com_err=no
6284 cat >conftest.$ac_ext <<_ACEOF
6285 #line $LINENO "configure"
6286 #include "confdefs.h"
6288 /* Override any gcc2 internal prototype to avoid an error. */
6292 /* We use char because int might match the return type of a gcc2
6293 builtin and then its argument prototype would still apply. */
6295 #ifdef F77_DUMMY_MAIN
6299 int F77_DUMMY_MAIN() { return 1; }
6309 rm -f conftest.$ac_objext conftest$ac_exeext
6310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6311 (eval $ac_link) 2>&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
6315 { ac_try='test -s conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_search_com_err="none required"
6323 echo "$as_me: failed program was:" >&5
6324 cat conftest.$ac_ext >&5
6326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6327 if test "$ac_cv_search_com_err" = no; then
6328 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6330 cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 #include "confdefs.h"
6334 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6341 #ifdef F77_DUMMY_MAIN
6345 int F77_DUMMY_MAIN() { return 1; }
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6357 (eval $ac_link) 2>&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } &&
6361 { ac_try='test -s conftest$ac_exeext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_cv_search_com_err="-l$ac_lib"
6370 echo "$as_me: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6376 LIBS=$ac_func_search_save_LIBS
6378 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6379 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6380 if test "$ac_cv_search_com_err" != no; then
6381 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6384 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6385 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6386 { (exit 1); exit 1; }; }
6389 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6390 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6391 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 ac_func_search_save_LIBS=$LIBS
6395 ac_cv_search_krb5_encrypt=no
6396 cat >conftest.$ac_ext <<_ACEOF
6397 #line $LINENO "configure"
6398 #include "confdefs.h"
6400 /* Override any gcc2 internal prototype to avoid an error. */
6404 /* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6406 char krb5_encrypt ();
6407 #ifdef F77_DUMMY_MAIN
6411 int F77_DUMMY_MAIN() { return 1; }
6421 rm -f conftest.$ac_objext conftest$ac_exeext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); } &&
6427 { ac_try='test -s conftest$ac_exeext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_cv_search_krb5_encrypt="none required"
6435 echo "$as_me: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6439 if test "$ac_cv_search_krb5_encrypt" = no; then
6440 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6442 cat >conftest.$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 #include "confdefs.h"
6446 /* Override any gcc2 internal prototype to avoid an error. */
6450 /* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6452 char krb5_encrypt ();
6453 #ifdef F77_DUMMY_MAIN
6457 int F77_DUMMY_MAIN() { return 1; }
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469 (eval $ac_link) 2>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -s conftest$ac_exeext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6479 ac_cv_search_krb5_encrypt="-l$ac_lib"
6482 echo "$as_me: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6488 LIBS=$ac_func_search_save_LIBS
6490 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6491 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6492 if test "$ac_cv_search_krb5_encrypt" != no; then
6493 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6496 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6497 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6498 { (exit 1); exit 1; }; }
6501 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6502 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6503 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 ac_func_search_save_LIBS=$LIBS
6507 ac_cv_search_krb5_sendauth=no
6508 cat >conftest.$ac_ext <<_ACEOF
6509 #line $LINENO "configure"
6510 #include "confdefs.h"
6512 /* Override any gcc2 internal prototype to avoid an error. */
6516 /* We use char because int might match the return type of a gcc2
6517 builtin and then its argument prototype would still apply. */
6518 char krb5_sendauth ();
6519 #ifdef F77_DUMMY_MAIN
6523 int F77_DUMMY_MAIN() { return 1; }
6533 rm -f conftest.$ac_objext conftest$ac_exeext
6534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6535 (eval $ac_link) 2>&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); } &&
6539 { ac_try='test -s conftest$ac_exeext'
6540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; }; then
6545 ac_cv_search_krb5_sendauth="none required"
6547 echo "$as_me: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6551 if test "$ac_cv_search_krb5_sendauth" = no; then
6552 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6554 cat >conftest.$ac_ext <<_ACEOF
6555 #line $LINENO "configure"
6556 #include "confdefs.h"
6558 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6564 char krb5_sendauth ();
6565 #ifdef F77_DUMMY_MAIN
6569 int F77_DUMMY_MAIN() { return 1; }
6579 rm -f conftest.$ac_objext conftest$ac_exeext
6580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6581 (eval $ac_link) 2>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -s conftest$ac_exeext'
6586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_cv_search_krb5_sendauth="-l$ac_lib"
6594 echo "$as_me: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6600 LIBS=$ac_func_search_save_LIBS
6602 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6603 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6604 if test "$ac_cv_search_krb5_sendauth" != no; then
6605 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6608 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6609 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6610 { (exit 1); exit 1; }; }
6615 if test "$with_openssl" = yes ; then
6617 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6618 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6619 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_check_lib_save_LIBS=$LIBS
6623 LIBS="-lcrypto $LIBS"
6624 cat >conftest.$ac_ext <<_ACEOF
6625 #line $LINENO "configure"
6626 #include "confdefs.h"
6628 /* Override any gcc2 internal prototype to avoid an error. */
6632 /* We use char because int might match the return type of a gcc2
6633 builtin and then its argument prototype would still apply. */
6634 char CRYPTO_new_ex_data ();
6635 #ifdef F77_DUMMY_MAIN
6639 int F77_DUMMY_MAIN() { return 1; }
6644 CRYPTO_new_ex_data ();
6649 rm -f conftest.$ac_objext conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651 (eval $ac_link) 2>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -s conftest$ac_exeext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6663 echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6665 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6668 LIBS=$ac_check_lib_save_LIBS
6670 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6671 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6672 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6673 cat >>confdefs.h <<_ACEOF
6674 #define HAVE_LIBCRYPTO 1
6677 LIBS="-lcrypto $LIBS"
6680 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6681 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6682 { (exit 1); exit 1; }; }
6686 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6687 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6688 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 ac_check_lib_save_LIBS=$LIBS
6693 cat >conftest.$ac_ext <<_ACEOF
6694 #line $LINENO "configure"
6695 #include "confdefs.h"
6697 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6703 char SSL_library_init ();
6704 #ifdef F77_DUMMY_MAIN
6708 int F77_DUMMY_MAIN() { return 1; }
6713 SSL_library_init ();
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try='test -s conftest$ac_exeext'
6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 ac_cv_lib_ssl_SSL_library_init=yes
6732 echo "$as_me: failed program was:" >&5
6733 cat conftest.$ac_ext >&5
6734 ac_cv_lib_ssl_SSL_library_init=no
6736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6737 LIBS=$ac_check_lib_save_LIBS
6739 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6740 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6741 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6742 cat >>confdefs.h <<_ACEOF
6743 #define HAVE_LIBSSL 1
6749 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6750 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6751 { (exit 1); exit 1; }; }
6756 if test "$with_pam" = yes ; then
6758 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6759 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6760 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 ac_check_lib_save_LIBS=$LIBS
6765 cat >conftest.$ac_ext <<_ACEOF
6766 #line $LINENO "configure"
6767 #include "confdefs.h"
6769 /* Override any gcc2 internal prototype to avoid an error. */
6773 /* We use char because int might match the return type of a gcc2
6774 builtin and then its argument prototype would still apply. */
6776 #ifdef F77_DUMMY_MAIN
6780 int F77_DUMMY_MAIN() { return 1; }
6790 rm -f conftest.$ac_objext conftest$ac_exeext
6791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6792 (eval $ac_link) 2>&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try='test -s conftest$ac_exeext'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; }; then
6802 ac_cv_lib_pam_pam_start=yes
6804 echo "$as_me: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6806 ac_cv_lib_pam_pam_start=no
6808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6809 LIBS=$ac_check_lib_save_LIBS
6811 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6812 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6813 if test $ac_cv_lib_pam_pam_start = yes; then
6814 cat >>confdefs.h <<_ACEOF
6815 #define HAVE_LIBPAM 1
6821 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6822 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6823 { (exit 1); exit 1; }; }
6833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6835 if test "${ac_cv_header_stdc+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 cat >conftest.$ac_ext <<_ACEOF
6839 #line $LINENO "configure"
6840 #include "confdefs.h"
6847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6850 egrep -v '^ *\+' conftest.er1 >conftest.err
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } >/dev/null; then
6855 if test -s conftest.err; then
6856 ac_cpp_err=$ac_c_preproc_warn_flag
6863 if test -z "$ac_cpp_err"; then
6864 ac_cv_header_stdc=yes
6866 echo "$as_me: failed program was:" >&5
6867 cat conftest.$ac_ext >&5
6868 ac_cv_header_stdc=no
6870 rm -f conftest.err conftest.$ac_ext
6872 if test $ac_cv_header_stdc = yes; then
6873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6874 cat >conftest.$ac_ext <<_ACEOF
6875 #line $LINENO "configure"
6876 #include "confdefs.h"
6880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6881 egrep "memchr" >/dev/null 2>&1; then
6884 ac_cv_header_stdc=no
6890 if test $ac_cv_header_stdc = yes; then
6891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6892 cat >conftest.$ac_ext <<_ACEOF
6893 #line $LINENO "configure"
6894 #include "confdefs.h"
6898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6899 egrep "free" >/dev/null 2>&1; then
6902 ac_cv_header_stdc=no
6908 if test $ac_cv_header_stdc = yes; then
6909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6910 if test "$cross_compiling" = yes; then
6913 cat >conftest.$ac_ext <<_ACEOF
6914 #line $LINENO "configure"
6915 #include "confdefs.h"
6917 #if ((' ' & 0x0FF) == 0x020)
6918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6921 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6922 || ('j' <= (c) && (c) <= 'r') \
6923 || ('s' <= (c) && (c) <= 'z'))
6924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6932 for (i = 0; i < 256; i++)
6933 if (XOR (islower (i), ISLOWER (i))
6934 || toupper (i) != TOUPPER (i))
6939 rm -f conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6952 echo "$as_me: program exited with status $ac_status" >&5
6953 echo "$as_me: failed program was:" >&5
6954 cat conftest.$ac_ext >&5
6956 ac_cv_header_stdc=no
6958 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6962 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6963 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6964 if test $ac_cv_header_stdc = yes; then
6966 cat >>confdefs.h <<\_ACEOF
6967 #define STDC_HEADERS 1
6972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6982 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6983 inttypes.h stdint.h unistd.h
6985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_header" >&5
6987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 cat >conftest.$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6993 #include "confdefs.h"
6994 $ac_includes_default
6996 #include <$ac_header>
6998 rm -f conftest.$ac_objext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7000 (eval $ac_compile) 2>&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -s conftest.$ac_objext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 eval "$as_ac_Header=yes"
7012 echo "$as_me: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7014 eval "$as_ac_Header=no"
7016 rm -f conftest.$ac_objext conftest.$ac_ext
7018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7021 cat >>confdefs.h <<_ACEOF
7022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7051 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
7053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7055 echo "$as_me:$LINENO: checking for $ac_header" >&5
7056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7063 # Is the header compilable?
7064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7066 cat >conftest.$ac_ext <<_ACEOF
7067 #line $LINENO "configure"
7068 #include "confdefs.h"
7069 $ac_includes_default
7070 #include <$ac_header>
7072 rm -f conftest.$ac_objext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7074 (eval $ac_compile) 2>&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try='test -s conftest.$ac_objext'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7084 ac_header_compiler=yes
7086 echo "$as_me: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7088 ac_header_compiler=no
7090 rm -f conftest.$ac_objext conftest.$ac_ext
7091 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7092 echo "${ECHO_T}$ac_header_compiler" >&6
7094 # Is the header present?
7095 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7097 cat >conftest.$ac_ext <<_ACEOF
7098 #line $LINENO "configure"
7099 #include "confdefs.h"
7100 #include <$ac_header>
7102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7105 egrep -v '^ *\+' conftest.er1 >conftest.err
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } >/dev/null; then
7110 if test -s conftest.err; then
7111 ac_cpp_err=$ac_c_preproc_warn_flag
7118 if test -z "$ac_cpp_err"; then
7119 ac_header_preproc=yes
7121 echo "$as_me: failed program was:" >&5
7122 cat conftest.$ac_ext >&5
7123 ac_header_preproc=no
7125 rm -f conftest.err conftest.$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7127 echo "${ECHO_T}$ac_header_preproc" >&6
7129 # So? What about this header?
7130 case $ac_header_compiler:$ac_header_preproc in
7132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7144 echo "$as_me:$LINENO: checking for $ac_header" >&5
7145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 eval "$as_ac_Header=$ac_header_preproc"
7151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7156 cat >>confdefs.h <<_ACEOF
7157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7166 # netinet/in.h is included first.
7168 for ac_header in netinet/in.h
7170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7172 echo "$as_me:$LINENO: checking for $ac_header" >&5
7173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7180 # Is the header compilable?
7181 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7183 cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 #include "confdefs.h"
7186 $ac_includes_default
7187 #include <$ac_header>
7189 rm -f conftest.$ac_objext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191 (eval $ac_compile) 2>&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -s conftest.$ac_objext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 ac_header_compiler=yes
7203 echo "$as_me: failed program was:" >&5
7204 cat conftest.$ac_ext >&5
7205 ac_header_compiler=no
7207 rm -f conftest.$ac_objext conftest.$ac_ext
7208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7209 echo "${ECHO_T}$ac_header_compiler" >&6
7211 # Is the header present?
7212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7214 cat >conftest.$ac_ext <<_ACEOF
7215 #line $LINENO "configure"
7216 #include "confdefs.h"
7217 #include <$ac_header>
7219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7222 egrep -v '^ *\+' conftest.er1 >conftest.err
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } >/dev/null; then
7227 if test -s conftest.err; then
7228 ac_cpp_err=$ac_c_preproc_warn_flag
7235 if test -z "$ac_cpp_err"; then
7236 ac_header_preproc=yes
7238 echo "$as_me: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7240 ac_header_preproc=no
7242 rm -f conftest.err conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7244 echo "${ECHO_T}$ac_header_preproc" >&6
7246 # So? What about this header?
7247 case $ac_header_compiler:$ac_header_preproc in
7249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7261 echo "$as_me:$LINENO: checking for $ac_header" >&5
7262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 eval "$as_ac_Header=$ac_header_preproc"
7268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7273 cat >>confdefs.h <<_ACEOF
7274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282 for ac_header in netinet/tcp.h
7284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285 echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 cat >conftest.$ac_ext <<_ACEOF
7291 #line $LINENO "configure"
7292 #include "confdefs.h"
7293 $ac_includes_default
7294 #ifdef HAVE_NETINET_IN_H
7295 #include <netinet/in.h>
7299 #include <$ac_header>
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303 (eval $ac_compile) 2>&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -s conftest.$ac_objext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 eval "$as_ac_Header=yes"
7315 echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 eval "$as_ac_Header=no"
7319 rm -f conftest.$ac_objext conftest.$ac_ext
7321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7324 cat >>confdefs.h <<_ACEOF
7325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7333 if test "$with_readline" = yes; then
7335 for ac_header in readline/readline.h
7337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7339 echo "$as_me:$LINENO: checking for $ac_header" >&5
7340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7347 # Is the header compilable?
7348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7350 cat >conftest.$ac_ext <<_ACEOF
7351 #line $LINENO "configure"
7352 #include "confdefs.h"
7353 $ac_includes_default
7354 #include <$ac_header>
7356 rm -f conftest.$ac_objext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358 (eval $ac_compile) 2>&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
7362 { ac_try='test -s conftest.$ac_objext'
7363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 ac_header_compiler=yes
7370 echo "$as_me: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7372 ac_header_compiler=no
7374 rm -f conftest.$ac_objext conftest.$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7376 echo "${ECHO_T}$ac_header_compiler" >&6
7378 # Is the header present?
7379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 #include "confdefs.h"
7384 #include <$ac_header>
7386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7389 egrep -v '^ *\+' conftest.er1 >conftest.err
7391 cat conftest.err >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } >/dev/null; then
7394 if test -s conftest.err; then
7395 ac_cpp_err=$ac_c_preproc_warn_flag
7402 if test -z "$ac_cpp_err"; then
7403 ac_header_preproc=yes
7405 echo "$as_me: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7407 ac_header_preproc=no
7409 rm -f conftest.err conftest.$ac_ext
7410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7411 echo "${ECHO_T}$ac_header_preproc" >&6
7413 # So? What about this header?
7414 case $ac_header_compiler:$ac_header_preproc in
7416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7428 echo "$as_me:$LINENO: checking for $ac_header" >&5
7429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 eval "$as_ac_Header=$ac_header_preproc"
7435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7440 cat >>confdefs.h <<_ACEOF
7441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7446 for ac_header in editline/readline.h
7448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7450 echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7458 # Is the header compilable?
7459 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7461 cat >conftest.$ac_ext <<_ACEOF
7462 #line $LINENO "configure"
7463 #include "confdefs.h"
7464 $ac_includes_default
7465 #include <$ac_header>
7467 rm -f conftest.$ac_objext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469 (eval $ac_compile) 2>&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_header_compiler=yes
7481 echo "$as_me: failed program was:" >&5
7482 cat conftest.$ac_ext >&5
7483 ac_header_compiler=no
7485 rm -f conftest.$ac_objext conftest.$ac_ext
7486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7487 echo "${ECHO_T}$ac_header_compiler" >&6
7489 # Is the header present?
7490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7492 cat >conftest.$ac_ext <<_ACEOF
7493 #line $LINENO "configure"
7494 #include "confdefs.h"
7495 #include <$ac_header>
7497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7500 egrep -v '^ *\+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } >/dev/null; then
7505 if test -s conftest.err; then
7506 ac_cpp_err=$ac_c_preproc_warn_flag
7513 if test -z "$ac_cpp_err"; then
7514 ac_header_preproc=yes
7516 echo "$as_me: failed program was:" >&5
7517 cat conftest.$ac_ext >&5
7518 ac_header_preproc=no
7520 rm -f conftest.err conftest.$ac_ext
7521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7522 echo "${ECHO_T}$ac_header_preproc" >&6
7524 # So? What about this header?
7525 case $ac_header_compiler:$ac_header_preproc in
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7539 echo "$as_me:$LINENO: checking for $ac_header" >&5
7540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 eval "$as_ac_Header=$ac_header_preproc"
7546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7551 cat >>confdefs.h <<_ACEOF
7552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7557 for ac_header in readline.h
7559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7561 echo "$as_me:$LINENO: checking for $ac_header" >&5
7562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7569 # Is the header compilable?
7570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7572 cat >conftest.$ac_ext <<_ACEOF
7573 #line $LINENO "configure"
7574 #include "confdefs.h"
7575 $ac_includes_default
7576 #include <$ac_header>
7578 rm -f conftest.$ac_objext
7579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7580 (eval $ac_compile) 2>&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
7584 { ac_try='test -s conftest.$ac_objext'
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7590 ac_header_compiler=yes
7592 echo "$as_me: failed program was:" >&5
7593 cat conftest.$ac_ext >&5
7594 ac_header_compiler=no
7596 rm -f conftest.$ac_objext conftest.$ac_ext
7597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7598 echo "${ECHO_T}$ac_header_compiler" >&6
7600 # Is the header present?
7601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7603 cat >conftest.$ac_ext <<_ACEOF
7604 #line $LINENO "configure"
7605 #include "confdefs.h"
7606 #include <$ac_header>
7608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7611 egrep -v '^ *\+' conftest.er1 >conftest.err
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } >/dev/null; then
7616 if test -s conftest.err; then
7617 ac_cpp_err=$ac_c_preproc_warn_flag
7624 if test -z "$ac_cpp_err"; then
7625 ac_header_preproc=yes
7627 echo "$as_me: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 ac_header_preproc=no
7631 rm -f conftest.err conftest.$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7633 echo "${ECHO_T}$ac_header_preproc" >&6
7635 # So? What about this header?
7636 case $ac_header_compiler:$ac_header_preproc in
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7644 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7646 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7650 echo "$as_me:$LINENO: checking for $ac_header" >&5
7651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 eval "$as_ac_Header=$ac_header_preproc"
7657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7662 cat >>confdefs.h <<_ACEOF
7663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7667 { { echo "$as_me:$LINENO: error: readline header not found
7668 If you have readline already installed, see config.log for details on the
7669 failure. It is possible the compiler isn't looking in the proper directory.
7670 Use --without-readline to disable readline support." >&5
7671 echo "$as_me: error: readline header not found
7672 If you have readline already installed, see config.log for details on the
7673 failure. It is possible the compiler isn't looking in the proper directory.
7674 Use --without-readline to disable readline support." >&2;}
7675 { (exit 1); exit 1; }; }
7689 for ac_header in readline/history.h
7691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7693 echo "$as_me:$LINENO: checking for $ac_header" >&5
7694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7701 # Is the header compilable?
7702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7704 cat >conftest.$ac_ext <<_ACEOF
7705 #line $LINENO "configure"
7706 #include "confdefs.h"
7707 $ac_includes_default
7708 #include <$ac_header>
7710 rm -f conftest.$ac_objext
7711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7712 (eval $ac_compile) 2>&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } &&
7716 { ac_try='test -s conftest.$ac_objext'
7717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); }; }; then
7722 ac_header_compiler=yes
7724 echo "$as_me: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7726 ac_header_compiler=no
7728 rm -f conftest.$ac_objext conftest.$ac_ext
7729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7730 echo "${ECHO_T}$ac_header_compiler" >&6
7732 # Is the header present?
7733 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7735 cat >conftest.$ac_ext <<_ACEOF
7736 #line $LINENO "configure"
7737 #include "confdefs.h"
7738 #include <$ac_header>
7740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7743 egrep -v '^ *\+' conftest.er1 >conftest.err
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } >/dev/null; then
7748 if test -s conftest.err; then
7749 ac_cpp_err=$ac_c_preproc_warn_flag
7756 if test -z "$ac_cpp_err"; then
7757 ac_header_preproc=yes
7759 echo "$as_me: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7761 ac_header_preproc=no
7763 rm -f conftest.err conftest.$ac_ext
7764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7765 echo "${ECHO_T}$ac_header_preproc" >&6
7767 # So? What about this header?
7768 case $ac_header_compiler:$ac_header_preproc in
7770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7778 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7782 echo "$as_me:$LINENO: checking for $ac_header" >&5
7783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 eval "$as_ac_Header=$ac_header_preproc"
7789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7794 cat >>confdefs.h <<_ACEOF
7795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 for ac_header in editline/history.h
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7812 # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line $LINENO "configure"
7817 #include "confdefs.h"
7818 $ac_includes_default
7819 #include <$ac_header>
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823 (eval $ac_compile) 2>&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_header_compiler=yes
7835 echo "$as_me: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 ac_header_compiler=no
7839 rm -f conftest.$ac_objext conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7841 echo "${ECHO_T}$ac_header_compiler" >&6
7843 # Is the header present?
7844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7846 cat >conftest.$ac_ext <<_ACEOF
7847 #line $LINENO "configure"
7848 #include "confdefs.h"
7849 #include <$ac_header>
7851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7854 egrep -v '^ *\+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } >/dev/null; then
7859 if test -s conftest.err; then
7860 ac_cpp_err=$ac_c_preproc_warn_flag
7867 if test -z "$ac_cpp_err"; then
7868 ac_header_preproc=yes
7870 echo "$as_me: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7872 ac_header_preproc=no
7874 rm -f conftest.err conftest.$ac_ext
7875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7876 echo "${ECHO_T}$ac_header_preproc" >&6
7878 # So? What about this header?
7879 case $ac_header_compiler:$ac_header_preproc in
7881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7893 echo "$as_me:$LINENO: checking for $ac_header" >&5
7894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 eval "$as_ac_Header=$ac_header_preproc"
7900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7905 cat >>confdefs.h <<_ACEOF
7906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7911 for ac_header in history.h
7913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7915 echo "$as_me:$LINENO: checking for $ac_header" >&5
7916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7923 # Is the header compilable?
7924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7926 cat >conftest.$ac_ext <<_ACEOF
7927 #line $LINENO "configure"
7928 #include "confdefs.h"
7929 $ac_includes_default
7930 #include <$ac_header>
7932 rm -f conftest.$ac_objext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934 (eval $ac_compile) 2>&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -s conftest.$ac_objext'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 ac_header_compiler=yes
7946 echo "$as_me: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7948 ac_header_compiler=no
7950 rm -f conftest.$ac_objext conftest.$ac_ext
7951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7952 echo "${ECHO_T}$ac_header_compiler" >&6
7954 # Is the header present?
7955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7957 cat >conftest.$ac_ext <<_ACEOF
7958 #line $LINENO "configure"
7959 #include "confdefs.h"
7960 #include <$ac_header>
7962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7965 egrep -v '^ *\+' conftest.er1 >conftest.err
7967 cat conftest.err >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } >/dev/null; then
7970 if test -s conftest.err; then
7971 ac_cpp_err=$ac_c_preproc_warn_flag
7978 if test -z "$ac_cpp_err"; then
7979 ac_header_preproc=yes
7981 echo "$as_me: failed program was:" >&5
7982 cat conftest.$ac_ext >&5
7983 ac_header_preproc=no
7985 rm -f conftest.err conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7987 echo "${ECHO_T}$ac_header_preproc" >&6
7989 # So? What about this header?
7990 case $ac_header_compiler:$ac_header_preproc in
7992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8004 echo "$as_me:$LINENO: checking for $ac_header" >&5
8005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 eval "$as_ac_Header=$ac_header_preproc"
8011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8016 cat >>confdefs.h <<_ACEOF
8017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8021 { { echo "$as_me:$LINENO: error: history header not found
8022 If you have readline already installed, see config.log for details on the
8023 failure. It is possible the compiler isn't looking in the proper directory.
8024 Use --without-readline to disable readline support." >&5
8025 echo "$as_me: error: history header not found
8026 If you have readline already installed, see config.log for details on the
8027 failure. It is possible the compiler isn't looking in the proper directory.
8028 Use --without-readline to disable readline support." >&2;}
8029 { (exit 1); exit 1; }; }
8044 if test "$with_zlib" = yes; then
8045 if test "${ac_cv_header_zlib_h+set}" = set; then
8046 echo "$as_me:$LINENO: checking for zlib.h" >&5
8047 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8048 if test "${ac_cv_header_zlib_h+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8051 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8052 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8054 # Is the header compilable?
8055 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8056 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8057 cat >conftest.$ac_ext <<_ACEOF
8058 #line $LINENO "configure"
8059 #include "confdefs.h"
8060 $ac_includes_default
8063 rm -f conftest.$ac_objext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8065 (eval $ac_compile) 2>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -s conftest.$ac_objext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8075 ac_header_compiler=yes
8077 echo "$as_me: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8079 ac_header_compiler=no
8081 rm -f conftest.$ac_objext conftest.$ac_ext
8082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8083 echo "${ECHO_T}$ac_header_compiler" >&6
8085 # Is the header present?
8086 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8087 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8088 cat >conftest.$ac_ext <<_ACEOF
8089 #line $LINENO "configure"
8090 #include "confdefs.h"
8093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8096 egrep -v '^ *\+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } >/dev/null; then
8101 if test -s conftest.err; then
8102 ac_cpp_err=$ac_c_preproc_warn_flag
8109 if test -z "$ac_cpp_err"; then
8110 ac_header_preproc=yes
8112 echo "$as_me: failed program was:" >&5
8113 cat conftest.$ac_ext >&5
8114 ac_header_preproc=no
8116 rm -f conftest.err conftest.$ac_ext
8117 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8118 echo "${ECHO_T}$ac_header_preproc" >&6
8120 # So? What about this header?
8121 case $ac_header_compiler:$ac_header_preproc in
8123 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8124 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8126 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8128 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8129 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8131 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8133 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8135 echo "$as_me:$LINENO: checking for zlib.h" >&5
8136 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8137 if test "${ac_cv_header_zlib_h+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 ac_cv_header_zlib_h=$ac_header_preproc
8142 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8143 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8146 if test $ac_cv_header_zlib_h = yes; then
8149 { { echo "$as_me:$LINENO: error: zlib header not found
8150 If you have zlib already installed, see config.log for details on the
8151 failure. It is possible the compiler isn't looking in the proper directory.
8152 Use --without-zlib to disable zlib support." >&5
8153 echo "$as_me: error: zlib header not found
8154 If you have zlib already installed, see config.log for details on the
8155 failure. It is possible the compiler isn't looking in the proper directory.
8156 Use --without-zlib to disable zlib support." >&2;}
8157 { (exit 1); exit 1; }; }
8163 if test "$with_krb4" = yes ; then
8164 if test "${ac_cv_header_krb_h+set}" = set; then
8165 echo "$as_me:$LINENO: checking for krb.h" >&5
8166 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8167 if test "${ac_cv_header_krb_h+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8171 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8173 # Is the header compilable?
8174 echo "$as_me:$LINENO: checking krb.h usability" >&5
8175 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8176 cat >conftest.$ac_ext <<_ACEOF
8177 #line $LINENO "configure"
8178 #include "confdefs.h"
8179 $ac_includes_default
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8184 (eval $ac_compile) 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 ac_header_compiler=yes
8196 echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8198 ac_header_compiler=no
8200 rm -f conftest.$ac_objext conftest.$ac_ext
8201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8202 echo "${ECHO_T}$ac_header_compiler" >&6
8204 # Is the header present?
8205 echo "$as_me:$LINENO: checking krb.h presence" >&5
8206 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8207 cat >conftest.$ac_ext <<_ACEOF
8208 #line $LINENO "configure"
8209 #include "confdefs.h"
8212 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8215 egrep -v '^ *\+' conftest.er1 >conftest.err
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } >/dev/null; then
8220 if test -s conftest.err; then
8221 ac_cpp_err=$ac_c_preproc_warn_flag
8228 if test -z "$ac_cpp_err"; then
8229 ac_header_preproc=yes
8231 echo "$as_me: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8233 ac_header_preproc=no
8235 rm -f conftest.err conftest.$ac_ext
8236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8237 echo "${ECHO_T}$ac_header_preproc" >&6
8239 # So? What about this header?
8240 case $ac_header_compiler:$ac_header_preproc in
8242 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8243 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8244 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8245 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8247 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8248 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8249 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8250 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8251 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8252 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8254 echo "$as_me:$LINENO: checking for krb.h" >&5
8255 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8256 if test "${ac_cv_header_krb_h+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 ac_cv_header_krb_h=$ac_header_preproc
8261 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8262 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8265 if test $ac_cv_header_krb_h = yes; then
8268 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8269 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8270 { (exit 1); exit 1; }; }
8276 if test "$with_krb5" = yes ; then
8277 if test "${ac_cv_header_krb5_h+set}" = set; then
8278 echo "$as_me:$LINENO: checking for krb5.h" >&5
8279 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8280 if test "${ac_cv_header_krb5_h+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8284 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8286 # Is the header compilable?
8287 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8288 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8289 cat >conftest.$ac_ext <<_ACEOF
8290 #line $LINENO "configure"
8291 #include "confdefs.h"
8292 $ac_includes_default
8295 rm -f conftest.$ac_objext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8297 (eval $ac_compile) 2>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -s conftest.$ac_objext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_header_compiler=yes
8309 echo "$as_me: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8311 ac_header_compiler=no
8313 rm -f conftest.$ac_objext conftest.$ac_ext
8314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8315 echo "${ECHO_T}$ac_header_compiler" >&6
8317 # Is the header present?
8318 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8319 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8321 #line $LINENO "configure"
8322 #include "confdefs.h"
8325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8328 egrep -v '^ *\+' conftest.er1 >conftest.err
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } >/dev/null; then
8333 if test -s conftest.err; then
8334 ac_cpp_err=$ac_c_preproc_warn_flag
8341 if test -z "$ac_cpp_err"; then
8342 ac_header_preproc=yes
8344 echo "$as_me: failed program was:" >&5
8345 cat conftest.$ac_ext >&5
8346 ac_header_preproc=no
8348 rm -f conftest.err conftest.$ac_ext
8349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8350 echo "${ECHO_T}$ac_header_preproc" >&6
8352 # So? What about this header?
8353 case $ac_header_compiler:$ac_header_preproc in
8355 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8356 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8357 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8358 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8360 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8361 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8363 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8365 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8367 echo "$as_me:$LINENO: checking for krb5.h" >&5
8368 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8369 if test "${ac_cv_header_krb5_h+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 ac_cv_header_krb5_h=$ac_header_preproc
8374 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8375 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8378 if test $ac_cv_header_krb5_h = yes; then
8381 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8382 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8383 { (exit 1); exit 1; }; }
8387 if test "${ac_cv_header_com_err_h+set}" = set; then
8388 echo "$as_me:$LINENO: checking for com_err.h" >&5
8389 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8390 if test "${ac_cv_header_com_err_h+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8394 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8396 # Is the header compilable?
8397 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8398 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8399 cat >conftest.$ac_ext <<_ACEOF
8400 #line $LINENO "configure"
8401 #include "confdefs.h"
8402 $ac_includes_default
8403 #include <com_err.h>
8405 rm -f conftest.$ac_objext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407 (eval $ac_compile) 2>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8411 { ac_try='test -s conftest.$ac_objext'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_header_compiler=yes
8419 echo "$as_me: failed program was:" >&5
8420 cat conftest.$ac_ext >&5
8421 ac_header_compiler=no
8423 rm -f conftest.$ac_objext conftest.$ac_ext
8424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8425 echo "${ECHO_T}$ac_header_compiler" >&6
8427 # Is the header present?
8428 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8429 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8430 cat >conftest.$ac_ext <<_ACEOF
8431 #line $LINENO "configure"
8432 #include "confdefs.h"
8433 #include <com_err.h>
8435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8438 egrep -v '^ *\+' conftest.er1 >conftest.err
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } >/dev/null; then
8443 if test -s conftest.err; then
8444 ac_cpp_err=$ac_c_preproc_warn_flag
8451 if test -z "$ac_cpp_err"; then
8452 ac_header_preproc=yes
8454 echo "$as_me: failed program was:" >&5
8455 cat conftest.$ac_ext >&5
8456 ac_header_preproc=no
8458 rm -f conftest.err conftest.$ac_ext
8459 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8460 echo "${ECHO_T}$ac_header_preproc" >&6
8462 # So? What about this header?
8463 case $ac_header_compiler:$ac_header_preproc in
8465 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8466 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8467 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8468 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8470 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8471 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8472 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8473 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8475 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8477 echo "$as_me:$LINENO: checking for com_err.h" >&5
8478 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8479 if test "${ac_cv_header_com_err_h+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 ac_cv_header_com_err_h=$ac_header_preproc
8484 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8485 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8488 if test $ac_cv_header_com_err_h = yes; then
8491 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8492 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8493 { (exit 1); exit 1; }; }
8499 if test "$with_openssl" = yes ; then
8500 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8501 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8502 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8503 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8507 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8509 # Is the header compilable?
8510 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8511 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8512 cat >conftest.$ac_ext <<_ACEOF
8513 #line $LINENO "configure"
8514 #include "confdefs.h"
8515 $ac_includes_default
8516 #include <openssl/ssl.h>
8518 rm -f conftest.$ac_objext
8519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8520 (eval $ac_compile) 2>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -s conftest.$ac_objext'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 ac_header_compiler=yes
8532 echo "$as_me: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8534 ac_header_compiler=no
8536 rm -f conftest.$ac_objext conftest.$ac_ext
8537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8538 echo "${ECHO_T}$ac_header_compiler" >&6
8540 # Is the header present?
8541 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8542 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8543 cat >conftest.$ac_ext <<_ACEOF
8544 #line $LINENO "configure"
8545 #include "confdefs.h"
8546 #include <openssl/ssl.h>
8548 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8551 egrep -v '^ *\+' conftest.er1 >conftest.err
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } >/dev/null; then
8556 if test -s conftest.err; then
8557 ac_cpp_err=$ac_c_preproc_warn_flag
8564 if test -z "$ac_cpp_err"; then
8565 ac_header_preproc=yes
8567 echo "$as_me: failed program was:" >&5
8568 cat conftest.$ac_ext >&5
8569 ac_header_preproc=no
8571 rm -f conftest.err conftest.$ac_ext
8572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8573 echo "${ECHO_T}$ac_header_preproc" >&6
8575 # So? What about this header?
8576 case $ac_header_compiler:$ac_header_preproc in
8578 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8579 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8581 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8583 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8584 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8586 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8588 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8590 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8591 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8592 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8597 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8598 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8601 if test $ac_cv_header_openssl_ssl_h = yes; then
8604 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8605 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8606 { (exit 1); exit 1; }; }
8610 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8611 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8612 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8613 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8616 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8617 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8619 # Is the header compilable?
8620 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8621 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8623 #line $LINENO "configure"
8624 #include "confdefs.h"
8625 $ac_includes_default
8626 #include <openssl/err.h>
8628 rm -f conftest.$ac_objext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630 (eval $ac_compile) 2>&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -s conftest.$ac_objext'
8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; }; then
8640 ac_header_compiler=yes
8642 echo "$as_me: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8644 ac_header_compiler=no
8646 rm -f conftest.$ac_objext conftest.$ac_ext
8647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8648 echo "${ECHO_T}$ac_header_compiler" >&6
8650 # Is the header present?
8651 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8652 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8653 cat >conftest.$ac_ext <<_ACEOF
8654 #line $LINENO "configure"
8655 #include "confdefs.h"
8656 #include <openssl/err.h>
8658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8661 egrep -v '^ *\+' conftest.er1 >conftest.err
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } >/dev/null; then
8666 if test -s conftest.err; then
8667 ac_cpp_err=$ac_c_preproc_warn_flag
8674 if test -z "$ac_cpp_err"; then
8675 ac_header_preproc=yes
8677 echo "$as_me: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8679 ac_header_preproc=no
8681 rm -f conftest.err conftest.$ac_ext
8682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8683 echo "${ECHO_T}$ac_header_preproc" >&6
8685 # So? What about this header?
8686 case $ac_header_compiler:$ac_header_preproc in
8688 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8689 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8690 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8691 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8693 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8694 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8695 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8696 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8698 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8700 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8701 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8702 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 ac_cv_header_openssl_err_h=$ac_header_preproc
8707 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8708 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8711 if test $ac_cv_header_openssl_err_h = yes; then
8714 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8715 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8716 { (exit 1); exit 1; }; }
8722 if test "$with_pam" = yes ; then
8724 for ac_header in security/pam_appl.h
8726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo "$as_me:$LINENO: checking for $ac_header" >&5
8729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8736 # Is the header compilable?
8737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8739 cat >conftest.$ac_ext <<_ACEOF
8740 #line $LINENO "configure"
8741 #include "confdefs.h"
8742 $ac_includes_default
8743 #include <$ac_header>
8745 rm -f conftest.$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747 (eval $ac_compile) 2>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -s conftest.$ac_objext'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; }; then
8757 ac_header_compiler=yes
8759 echo "$as_me: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 ac_header_compiler=no
8763 rm -f conftest.$ac_objext conftest.$ac_ext
8764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8765 echo "${ECHO_T}$ac_header_compiler" >&6
8767 # Is the header present?
8768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8770 cat >conftest.$ac_ext <<_ACEOF
8771 #line $LINENO "configure"
8772 #include "confdefs.h"
8773 #include <$ac_header>
8775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8776 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8778 egrep -v '^ *\+' conftest.er1 >conftest.err
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } >/dev/null; then
8783 if test -s conftest.err; then
8784 ac_cpp_err=$ac_c_preproc_warn_flag
8791 if test -z "$ac_cpp_err"; then
8792 ac_header_preproc=yes
8794 echo "$as_me: failed program was:" >&5
8795 cat conftest.$ac_ext >&5
8796 ac_header_preproc=no
8798 rm -f conftest.err conftest.$ac_ext
8799 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8800 echo "${ECHO_T}$ac_header_preproc" >&6
8802 # So? What about this header?
8803 case $ac_header_compiler:$ac_header_preproc in
8805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8817 echo "$as_me:$LINENO: checking for $ac_header" >&5
8818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 eval "$as_ac_Header=$ac_header_preproc"
8824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8829 cat >>confdefs.h <<_ACEOF
8830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8835 for ac_header in pam/pam_appl.h
8837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8839 echo "$as_me:$LINENO: checking for $ac_header" >&5
8840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8847 # Is the header compilable?
8848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8850 cat >conftest.$ac_ext <<_ACEOF
8851 #line $LINENO "configure"
8852 #include "confdefs.h"
8853 $ac_includes_default
8854 #include <$ac_header>
8856 rm -f conftest.$ac_objext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858 (eval $ac_compile) 2>&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } &&
8862 { ac_try='test -s conftest.$ac_objext'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; }; then
8868 ac_header_compiler=yes
8870 echo "$as_me: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8872 ac_header_compiler=no
8874 rm -f conftest.$ac_objext conftest.$ac_ext
8875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8876 echo "${ECHO_T}$ac_header_compiler" >&6
8878 # Is the header present?
8879 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8880 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8881 cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8883 #include "confdefs.h"
8884 #include <$ac_header>
8886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8889 egrep -v '^ *\+' conftest.er1 >conftest.err
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } >/dev/null; then
8894 if test -s conftest.err; then
8895 ac_cpp_err=$ac_c_preproc_warn_flag
8902 if test -z "$ac_cpp_err"; then
8903 ac_header_preproc=yes
8905 echo "$as_me: failed program was:" >&5
8906 cat conftest.$ac_ext >&5
8907 ac_header_preproc=no
8909 rm -f conftest.err conftest.$ac_ext
8910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8911 echo "${ECHO_T}$ac_header_preproc" >&6
8913 # So? What about this header?
8914 case $ac_header_compiler:$ac_header_preproc in
8916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8926 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8928 echo "$as_me:$LINENO: checking for $ac_header" >&5
8929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 eval "$as_ac_Header=$ac_header_preproc"
8935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8940 cat >>confdefs.h <<_ACEOF
8941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8945 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8946 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8947 { (exit 1); exit 1; }; }
8958 if test "$with_rendezvous" = yes ; then
8959 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8960 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8961 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8962 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8966 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8968 # Is the header compilable?
8969 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8970 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8971 cat >conftest.$ac_ext <<_ACEOF
8972 #line $LINENO "configure"
8973 #include "confdefs.h"
8974 $ac_includes_default
8975 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8977 rm -f conftest.$ac_objext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8979 (eval $ac_compile) 2>&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try='test -s conftest.$ac_objext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_header_compiler=yes
8991 echo "$as_me: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8993 ac_header_compiler=no
8995 rm -f conftest.$ac_objext conftest.$ac_ext
8996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8997 echo "${ECHO_T}$ac_header_compiler" >&6
8999 # Is the header present?
9000 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9001 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9002 cat >conftest.$ac_ext <<_ACEOF
9003 #line $LINENO "configure"
9004 #include "confdefs.h"
9005 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9010 egrep -v '^ *\+' conftest.er1 >conftest.err
9012 cat conftest.err >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } >/dev/null; then
9015 if test -s conftest.err; then
9016 ac_cpp_err=$ac_c_preproc_warn_flag
9023 if test -z "$ac_cpp_err"; then
9024 ac_header_preproc=yes
9026 echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9028 ac_header_preproc=no
9030 rm -f conftest.err conftest.$ac_ext
9031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9032 echo "${ECHO_T}$ac_header_preproc" >&6
9034 # So? What about this header?
9035 case $ac_header_compiler:$ac_header_preproc in
9037 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9038 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9039 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9040 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9042 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9043 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9045 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9047 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9049 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9050 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9051 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9056 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9057 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9060 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9063 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9064 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9065 { (exit 1); exit 1; }; }
9073 ## Types, structures, compiler characteristics
9077 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9078 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9079 if test "${ac_cv_c_const+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 cat >conftest.$ac_ext <<_ACEOF
9083 #line $LINENO "configure"
9084 #include "confdefs.h"
9086 #ifdef F77_DUMMY_MAIN
9090 int F77_DUMMY_MAIN() { return 1; }
9095 /* FIXME: Include the comments suggested by Paul. */
9097 /* Ultrix mips cc rejects this. */
9098 typedef int charset[2];
9100 /* SunOS 4.1.1 cc rejects this. */
9101 char const *const *ccp;
9103 /* NEC SVR4.0.2 mips cc rejects this. */
9104 struct point {int x, y;};
9105 static struct point const zero = {0,0};
9106 /* AIX XL C 1.02.0.0 rejects this.
9107 It does not let you subtract one const X* pointer from another in
9108 an arm of an if-expression whose if-part is not a constant
9110 const char *g = "string";
9111 ccp = &g + (g ? g-g : 0);
9112 /* HPUX 7.0 cc rejects these. */
9115 ccp = (char const *const *) p;
9116 { /* SCO 3.2v4 cc rejects this. */
9118 char const *s = 0 ? (char *) 0 : (char const *) 0;
9122 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9124 const int *foo = &x[0];
9127 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9128 typedef const int *iptr;
9132 { /* AIX XL C 1.02.0.0 rejects this saying
9133 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9134 struct s { int j; const int *ap[3]; };
9135 struct s *b; b->j = 5;
9137 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148 (eval $ac_compile) 2>&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -s conftest.$ac_objext'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; }; then
9160 echo "$as_me: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9164 rm -f conftest.$ac_objext conftest.$ac_ext
9166 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9167 echo "${ECHO_T}$ac_cv_c_const" >&6
9168 if test $ac_cv_c_const = no; then
9170 cat >>confdefs.h <<\_ACEOF
9176 echo "$as_me:$LINENO: checking for inline" >&5
9177 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9178 if test "${ac_cv_c_inline+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 for ac_kw in inline __inline__ __inline; do
9183 cat >conftest.$ac_ext <<_ACEOF
9184 #line $LINENO "configure"
9185 #include "confdefs.h"
9187 static $ac_kw int static_foo () {return 0; }
9188 $ac_kw int foo () {return 0; }
9192 rm -f conftest.$ac_objext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9194 (eval $ac_compile) 2>&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -s conftest.$ac_objext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9204 ac_cv_c_inline=$ac_kw; break
9206 echo "$as_me: failed program was:" >&5
9207 cat conftest.$ac_ext >&5
9209 rm -f conftest.$ac_objext conftest.$ac_ext
9213 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9214 echo "${ECHO_T}$ac_cv_c_inline" >&6
9215 case $ac_cv_c_inline in
9218 cat >>confdefs.h <<\_ACEOF
9222 *) cat >>confdefs.h <<_ACEOF
9223 #define inline $ac_cv_c_inline
9228 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9229 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9230 if test "${ac_cv_c_stringize+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 cat >conftest.$ac_ext <<_ACEOF
9234 #line $LINENO "configure"
9235 #include "confdefs.h"
9238 char *s = x(teststring);
9240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9241 egrep "#teststring" >/dev/null 2>&1; then
9242 ac_cv_c_stringize=no
9244 ac_cv_c_stringize=yes
9249 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9250 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9251 if test $ac_cv_c_stringize = yes; then
9253 cat >>confdefs.h <<\_ACEOF
9254 #define HAVE_STRINGIZE 1
9259 echo "$as_me:$LINENO: checking for signed types" >&5
9260 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9261 if test "${pgac_cv_c_signed+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 cat >conftest.$ac_ext <<_ACEOF
9265 #line $LINENO "configure"
9266 #include "confdefs.h"
9268 #ifdef F77_DUMMY_MAIN
9272 int F77_DUMMY_MAIN() { return 1; }
9277 signed char c; signed short s; signed int i;
9282 rm -f conftest.$ac_objext
9283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9284 (eval $ac_compile) 2>&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -s conftest.$ac_objext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 pgac_cv_c_signed=yes
9296 echo "$as_me: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9300 rm -f conftest.$ac_objext conftest.$ac_ext
9302 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9303 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9304 if test x"$pgac_cv_c_signed" = xno ; then
9306 cat >>confdefs.h <<\_ACEOF
9311 echo "$as_me:$LINENO: checking for working volatile" >&5
9312 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9313 if test "${ac_cv_c_volatile+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 cat >conftest.$ac_ext <<_ACEOF
9317 #line $LINENO "configure"
9318 #include "confdefs.h"
9320 #ifdef F77_DUMMY_MAIN
9324 int F77_DUMMY_MAIN() { return 1; }
9336 rm -f conftest.$ac_objext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9338 (eval $ac_compile) 2>&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -s conftest.$ac_objext'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 ac_cv_c_volatile=yes
9350 echo "$as_me: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9354 rm -f conftest.$ac_objext conftest.$ac_ext
9356 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9357 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9358 if test $ac_cv_c_volatile = no; then
9360 cat >>confdefs.h <<\_ACEOF
9366 echo "$as_me:$LINENO: checking for __func__" >&5
9367 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9368 if test "${pgac_cv_funcname_func_support+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 cat >conftest.$ac_ext <<_ACEOF
9372 #line $LINENO "configure"
9373 #include "confdefs.h"
9375 #ifdef F77_DUMMY_MAIN
9379 int F77_DUMMY_MAIN() { return 1; }
9384 printf("%s\n", __func__);
9389 rm -f conftest.$ac_objext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9391 (eval $ac_compile) 2>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } &&
9395 { ac_try='test -s conftest.$ac_objext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 pgac_cv_funcname_func_support=yes
9403 echo "$as_me: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9405 pgac_cv_funcname_func_support=no
9407 rm -f conftest.$ac_objext conftest.$ac_ext
9409 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9410 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9411 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9413 cat >>confdefs.h <<\_ACEOF
9414 #define HAVE_FUNCNAME__FUNC 1
9418 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9419 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9420 if test "${pgac_cv_funcname_function_support+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 cat >conftest.$ac_ext <<_ACEOF
9424 #line $LINENO "configure"
9425 #include "confdefs.h"
9427 #ifdef F77_DUMMY_MAIN
9431 int F77_DUMMY_MAIN() { return 1; }
9436 printf("%s\n", __FUNCTION__);
9441 rm -f conftest.$ac_objext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9443 (eval $ac_compile) 2>&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -s conftest.$ac_objext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 pgac_cv_funcname_function_support=yes
9455 echo "$as_me: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 pgac_cv_funcname_function_support=no
9459 rm -f conftest.$ac_objext conftest.$ac_ext
9461 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9462 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9463 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9465 cat >>confdefs.h <<\_ACEOF
9466 #define HAVE_FUNCNAME__FUNCTION 1
9471 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9472 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9473 if test "${ac_cv_struct_tm+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 cat >conftest.$ac_ext <<_ACEOF
9477 #line $LINENO "configure"
9478 #include "confdefs.h"
9479 #include <sys/types.h>
9482 #ifdef F77_DUMMY_MAIN
9486 int F77_DUMMY_MAIN() { return 1; }
9491 struct tm *tp; tp->tm_sec;
9496 rm -f conftest.$ac_objext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498 (eval $ac_compile) 2>&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -s conftest.$ac_objext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_cv_struct_tm=time.h
9510 echo "$as_me: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9512 ac_cv_struct_tm=sys/time.h
9514 rm -f conftest.$ac_objext conftest.$ac_ext
9516 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9517 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9518 if test $ac_cv_struct_tm = sys/time.h; then
9520 cat >>confdefs.h <<\_ACEOF
9521 #define TM_IN_SYS_TIME 1
9526 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9527 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9528 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9529 echo $ECHO_N "(cached) $ECHO_C" >&6
9531 cat >conftest.$ac_ext <<_ACEOF
9532 #line $LINENO "configure"
9533 #include "confdefs.h"
9534 #include <sys/types.h>
9535 #include <$ac_cv_struct_tm>
9538 #ifdef F77_DUMMY_MAIN
9542 int F77_DUMMY_MAIN() { return 1; }
9547 static struct tm ac_aggr;
9548 if (ac_aggr.tm_zone)
9554 rm -f conftest.$ac_objext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9556 (eval $ac_compile) 2>&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } &&
9560 { ac_try='test -s conftest.$ac_objext'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
9566 ac_cv_member_struct_tm_tm_zone=yes
9568 echo "$as_me: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9570 ac_cv_member_struct_tm_tm_zone=no
9572 rm -f conftest.$ac_objext conftest.$ac_ext
9574 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9575 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9576 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9578 cat >>confdefs.h <<_ACEOF
9579 #define HAVE_STRUCT_TM_TM_ZONE 1
9585 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9587 cat >>confdefs.h <<\_ACEOF
9588 #define HAVE_TM_ZONE 1
9592 echo "$as_me:$LINENO: checking for tzname" >&5
9593 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9594 if test "${ac_cv_var_tzname+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 cat >conftest.$ac_ext <<_ACEOF
9598 #line $LINENO "configure"
9599 #include "confdefs.h"
9601 #ifndef tzname /* For SGI. */
9602 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9605 #ifdef F77_DUMMY_MAIN
9609 int F77_DUMMY_MAIN() { return 1; }
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621 (eval $ac_link) 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_cv_var_tzname=yes
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9639 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9640 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9641 if test $ac_cv_var_tzname = yes; then
9643 cat >>confdefs.h <<\_ACEOF
9644 #define HAVE_TZNAME 1
9649 echo "$as_me:$LINENO: checking for union semun" >&5
9650 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9651 if test "${ac_cv_type_union_semun+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 cat >conftest.$ac_ext <<_ACEOF
9655 #line $LINENO "configure"
9656 #include "confdefs.h"
9657 #include <sys/types.h>
9658 #include <sys/ipc.h>
9659 #include <sys/sem.h>
9661 #ifdef F77_DUMMY_MAIN
9665 int F77_DUMMY_MAIN() { return 1; }
9670 if ((union semun *) 0)
9672 if (sizeof (union semun))
9678 rm -f conftest.$ac_objext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680 (eval $ac_compile) 2>&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); } &&
9684 { ac_try='test -s conftest.$ac_objext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_type_union_semun=yes
9692 echo "$as_me: failed program was:" >&5
9693 cat conftest.$ac_ext >&5
9694 ac_cv_type_union_semun=no
9696 rm -f conftest.$ac_objext conftest.$ac_ext
9698 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9699 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9700 if test $ac_cv_type_union_semun = yes; then
9702 cat >>confdefs.h <<_ACEOF
9703 #define HAVE_UNION_SEMUN 1
9709 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9710 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9711 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 cat >conftest.$ac_ext <<_ACEOF
9715 #line $LINENO "configure"
9716 #include "confdefs.h"
9717 #include <sys/types.h>
9718 #ifdef HAVE_SYS_UN_H
9723 #ifdef F77_DUMMY_MAIN
9727 int F77_DUMMY_MAIN() { return 1; }
9732 if ((struct sockaddr_un *) 0)
9734 if (sizeof (struct sockaddr_un))
9740 rm -f conftest.$ac_objext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9742 (eval $ac_compile) 2>&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -s conftest.$ac_objext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_cv_type_struct_sockaddr_un=yes
9754 echo "$as_me: failed program was:" >&5
9755 cat conftest.$ac_ext >&5
9756 ac_cv_type_struct_sockaddr_un=no
9758 rm -f conftest.$ac_objext conftest.$ac_ext
9760 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9761 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9762 if test $ac_cv_type_struct_sockaddr_un = yes; then
9764 cat >>confdefs.h <<_ACEOF
9765 #define HAVE_STRUCT_SOCKADDR_UN 1
9769 cat >>confdefs.h <<\_ACEOF
9770 #define HAVE_UNIX_SOCKETS 1
9775 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9776 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9777 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 cat >conftest.$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9782 #include "confdefs.h"
9783 #include <sys/types.h>
9784 #ifdef HAVE_SYS_SOCKET_H
9785 #include <sys/socket.h>
9789 #ifdef F77_DUMMY_MAIN
9793 int F77_DUMMY_MAIN() { return 1; }
9798 if ((struct sockaddr_storage *) 0)
9800 if (sizeof (struct sockaddr_storage))
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808 (eval $ac_compile) 2>&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -s conftest.$ac_objext'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; }; then
9818 ac_cv_type_struct_sockaddr_storage=yes
9820 echo "$as_me: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9822 ac_cv_type_struct_sockaddr_storage=no
9824 rm -f conftest.$ac_objext conftest.$ac_ext
9826 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9827 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9828 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9830 cat >>confdefs.h <<_ACEOF
9831 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9837 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9838 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9839 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 cat >conftest.$ac_ext <<_ACEOF
9843 #line $LINENO "configure"
9844 #include "confdefs.h"
9845 #include <sys/types.h>
9846 #ifdef HAVE_SYS_SOCKET_H
9847 #include <sys/socket.h>
9851 #ifdef F77_DUMMY_MAIN
9855 int F77_DUMMY_MAIN() { return 1; }
9860 static struct sockaddr_storage ac_aggr;
9861 if (ac_aggr.ss_family)
9867 rm -f conftest.$ac_objext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869 (eval $ac_compile) 2>&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9881 echo "$as_me: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9883 ac_cv_member_struct_sockaddr_storage_ss_family=no
9885 rm -f conftest.$ac_objext conftest.$ac_ext
9887 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9888 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9889 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9891 cat >>confdefs.h <<_ACEOF
9892 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9897 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9898 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9899 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 cat >conftest.$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9904 #include "confdefs.h"
9905 #include <sys/types.h>
9906 #ifdef HAVE_SYS_SOCKET_H
9907 #include <sys/socket.h>
9911 #ifdef F77_DUMMY_MAIN
9915 int F77_DUMMY_MAIN() { return 1; }
9920 static struct sockaddr_storage ac_aggr;
9921 if (ac_aggr.__ss_family)
9927 rm -f conftest.$ac_objext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929 (eval $ac_compile) 2>&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -s conftest.$ac_objext'
9934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; }; then
9939 ac_cv_member_struct_sockaddr_storage___ss_family=yes
9941 echo "$as_me: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 ac_cv_member_struct_sockaddr_storage___ss_family=no
9945 rm -f conftest.$ac_objext conftest.$ac_ext
9947 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9948 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9949 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9951 cat >>confdefs.h <<_ACEOF
9952 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9957 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9958 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9959 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 cat >conftest.$ac_ext <<_ACEOF
9963 #line $LINENO "configure"
9964 #include "confdefs.h"
9965 #include <sys/types.h>
9966 #ifdef HAVE_SYS_SOCKET_H
9967 #include <sys/socket.h>
9971 #ifdef F77_DUMMY_MAIN
9975 int F77_DUMMY_MAIN() { return 1; }
9980 static struct sockaddr_storage ac_aggr;
9987 rm -f conftest.$ac_objext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9989 (eval $ac_compile) 2>&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -s conftest.$ac_objext'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; }; then
9999 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10001 echo "$as_me: failed program was:" >&5
10002 cat conftest.$ac_ext >&5
10003 ac_cv_member_struct_sockaddr_storage_ss_len=no
10005 rm -f conftest.$ac_objext conftest.$ac_ext
10007 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10008 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10009 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10011 cat >>confdefs.h <<_ACEOF
10012 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10017 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10018 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10019 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 cat >conftest.$ac_ext <<_ACEOF
10023 #line $LINENO "configure"
10024 #include "confdefs.h"
10025 #include <sys/types.h>
10026 #ifdef HAVE_SYS_SOCKET_H
10027 #include <sys/socket.h>
10031 #ifdef F77_DUMMY_MAIN
10032 # ifdef __cplusplus
10035 int F77_DUMMY_MAIN() { return 1; }
10040 static struct sockaddr_storage ac_aggr;
10041 if (ac_aggr.__ss_len)
10047 rm -f conftest.$ac_objext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10049 (eval $ac_compile) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -s conftest.$ac_objext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10061 echo "$as_me: failed program was:" >&5
10062 cat conftest.$ac_ext >&5
10063 ac_cv_member_struct_sockaddr_storage___ss_len=no
10065 rm -f conftest.$ac_objext conftest.$ac_ext
10067 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10068 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10069 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10071 cat >>confdefs.h <<_ACEOF
10072 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10077 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10078 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10079 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
10082 cat >conftest.$ac_ext <<_ACEOF
10083 #line $LINENO "configure"
10084 #include "confdefs.h"
10085 #include <sys/types.h>
10086 #ifdef HAVE_SYS_SOCKET_H
10087 #include <sys/socket.h>
10091 #ifdef F77_DUMMY_MAIN
10092 # ifdef __cplusplus
10095 int F77_DUMMY_MAIN() { return 1; }
10100 static struct sockaddr ac_aggr;
10101 if (ac_aggr.sa_len)
10107 rm -f conftest.$ac_objext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109 (eval $ac_compile) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } &&
10113 { ac_try='test -s conftest.$ac_objext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
10119 ac_cv_member_struct_sockaddr_sa_len=yes
10121 echo "$as_me: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 ac_cv_member_struct_sockaddr_sa_len=no
10125 rm -f conftest.$ac_objext conftest.$ac_ext
10127 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10128 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10129 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10131 cat >>confdefs.h <<_ACEOF
10132 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10138 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10139 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10140 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 cat >conftest.$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10145 #include "confdefs.h"
10146 #include <sys/types.h>
10147 #include <sys/socket.h>
10151 #ifdef F77_DUMMY_MAIN
10152 # ifdef __cplusplus
10155 int F77_DUMMY_MAIN() { return 1; }
10160 if ((struct addrinfo *) 0)
10162 if (sizeof (struct addrinfo))
10168 rm -f conftest.$ac_objext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10170 (eval $ac_compile) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -s conftest.$ac_objext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_type_struct_addrinfo=yes
10182 echo "$as_me: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 ac_cv_type_struct_addrinfo=no
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10188 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10189 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10190 if test $ac_cv_type_struct_addrinfo = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193 #define HAVE_STRUCT_ADDRINFO 1
10200 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10201 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10202 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 cat >conftest.$ac_ext <<_ACEOF
10206 #line $LINENO "configure"
10207 #include "confdefs.h"
10208 #include <sys/param.h>
10209 #include <sys/types.h>
10210 #include <sys/socket.h>
10211 #include <sys/ucred.h>
10213 #ifdef F77_DUMMY_MAIN
10214 # ifdef __cplusplus
10217 int F77_DUMMY_MAIN() { return 1; }
10222 if ((struct cmsgcred *) 0)
10224 if (sizeof (struct cmsgcred))
10230 rm -f conftest.$ac_objext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -s conftest.$ac_objext'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 ac_cv_type_struct_cmsgcred=yes
10244 echo "$as_me: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10246 ac_cv_type_struct_cmsgcred=no
10248 rm -f conftest.$ac_objext conftest.$ac_ext
10250 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10251 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10252 if test $ac_cv_type_struct_cmsgcred = yes; then
10254 cat >>confdefs.h <<_ACEOF
10255 #define HAVE_STRUCT_CMSGCRED 1
10260 echo "$as_me:$LINENO: checking for struct fcred" >&5
10261 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10262 if test "${ac_cv_type_struct_fcred+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 cat >conftest.$ac_ext <<_ACEOF
10266 #line $LINENO "configure"
10267 #include "confdefs.h"
10268 #include <sys/param.h>
10269 #include <sys/types.h>
10270 #include <sys/socket.h>
10271 #include <sys/ucred.h>
10273 #ifdef F77_DUMMY_MAIN
10274 # ifdef __cplusplus
10277 int F77_DUMMY_MAIN() { return 1; }
10282 if ((struct fcred *) 0)
10284 if (sizeof (struct fcred))
10290 rm -f conftest.$ac_objext
10291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10292 (eval $ac_compile) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try='test -s conftest.$ac_objext'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_cv_type_struct_fcred=yes
10304 echo "$as_me: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10306 ac_cv_type_struct_fcred=no
10308 rm -f conftest.$ac_objext conftest.$ac_ext
10310 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10311 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10312 if test $ac_cv_type_struct_fcred = yes; then
10314 cat >>confdefs.h <<_ACEOF
10315 #define HAVE_STRUCT_FCRED 1
10320 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10321 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10322 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 cat >conftest.$ac_ext <<_ACEOF
10326 #line $LINENO "configure"
10327 #include "confdefs.h"
10328 #include <sys/param.h>
10329 #include <sys/types.h>
10330 #include <sys/socket.h>
10331 #include <sys/ucred.h>
10333 #ifdef F77_DUMMY_MAIN
10334 # ifdef __cplusplus
10337 int F77_DUMMY_MAIN() { return 1; }
10342 if ((struct sockcred *) 0)
10344 if (sizeof (struct sockcred))
10350 rm -f conftest.$ac_objext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352 (eval $ac_compile) 2>&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); } &&
10356 { ac_try='test -s conftest.$ac_objext'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }; then
10362 ac_cv_type_struct_sockcred=yes
10364 echo "$as_me: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10366 ac_cv_type_struct_sockcred=no
10368 rm -f conftest.$ac_objext conftest.$ac_ext
10370 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10371 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10372 if test $ac_cv_type_struct_sockcred = yes; then
10374 cat >>confdefs.h <<_ACEOF
10375 #define HAVE_STRUCT_SOCKCRED 1
10382 if test "$with_zlib" = yes; then
10383 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10384 # did not). While we could work around the lack of z_streamp, it
10385 # seems unwise to encourage people to use such old zlib versions...
10386 echo "$as_me:$LINENO: checking for z_streamp" >&5
10387 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10388 if test "${ac_cv_type_z_streamp+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 cat >conftest.$ac_ext <<_ACEOF
10392 #line $LINENO "configure"
10393 #include "confdefs.h"
10396 #ifdef F77_DUMMY_MAIN
10397 # ifdef __cplusplus
10400 int F77_DUMMY_MAIN() { return 1; }
10405 if ((z_streamp *) 0)
10407 if (sizeof (z_streamp))
10413 rm -f conftest.$ac_objext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10415 (eval $ac_compile) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } &&
10419 { ac_try='test -s conftest.$ac_objext'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; }; then
10425 ac_cv_type_z_streamp=yes
10427 echo "$as_me: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 ac_cv_type_z_streamp=no
10431 rm -f conftest.$ac_objext conftest.$ac_ext
10433 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10434 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10435 if test $ac_cv_type_z_streamp = yes; then
10438 { { echo "$as_me:$LINENO: error: zlib version is too old
10439 Use --without-zlib to disable zlib support." >&5
10440 echo "$as_me: error: zlib version is too old
10441 Use --without-zlib to disable zlib support." >&2;}
10442 { (exit 1); exit 1; }; }
10447 if test "$with_krb5" = yes; then
10448 # Check for differences between MIT and Heimdal (KTH) releases
10449 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10450 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10451 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 cat >conftest.$ac_ext <<_ACEOF
10455 #line $LINENO "configure"
10456 #include "confdefs.h"
10459 #ifdef F77_DUMMY_MAIN
10460 # ifdef __cplusplus
10463 int F77_DUMMY_MAIN() { return 1; }
10468 static krb5_ticket ac_aggr;
10469 if (ac_aggr.enc_part2)
10475 rm -f conftest.$ac_objext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_cv_member_krb5_ticket_enc_part2=yes
10489 echo "$as_me: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 ac_cv_member_krb5_ticket_enc_part2=no
10493 rm -f conftest.$ac_objext conftest.$ac_ext
10495 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10496 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10497 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10499 cat >>confdefs.h <<_ACEOF
10500 #define HAVE_KRB5_TICKET_ENC_PART2 1
10505 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10506 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10507 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10512 #include "confdefs.h"
10515 #ifdef F77_DUMMY_MAIN
10516 # ifdef __cplusplus
10519 int F77_DUMMY_MAIN() { return 1; }
10524 static krb5_ticket ac_aggr;
10525 if (ac_aggr.client)
10531 rm -f conftest.$ac_objext
10532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10533 (eval $ac_compile) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -s conftest.$ac_objext'
10538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539 (eval $ac_try) 2>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
10543 ac_cv_member_krb5_ticket_client=yes
10545 echo "$as_me: failed program was:" >&5
10546 cat conftest.$ac_ext >&5
10547 ac_cv_member_krb5_ticket_client=no
10549 rm -f conftest.$ac_objext conftest.$ac_ext
10551 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10552 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10553 if test $ac_cv_member_krb5_ticket_client = yes; then
10555 cat >>confdefs.h <<_ACEOF
10556 #define HAVE_KRB5_TICKET_CLIENT 1
10561 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10562 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10563 { (exit 1); exit 1; }; }
10568 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10569 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10570 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 cat >conftest.$ac_ext <<_ACEOF
10574 #line $LINENO "configure"
10575 #include "confdefs.h"
10578 #ifdef F77_DUMMY_MAIN
10579 # ifdef __cplusplus
10582 int F77_DUMMY_MAIN() { return 1; }
10587 static krb5_error ac_aggr;
10588 if (ac_aggr.text.data)
10594 rm -f conftest.$ac_objext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10596 (eval $ac_compile) 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -s conftest.$ac_objext'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 ac_cv_member_krb5_error_text_data=yes
10608 echo "$as_me: failed program was:" >&5
10609 cat conftest.$ac_ext >&5
10610 ac_cv_member_krb5_error_text_data=no
10612 rm -f conftest.$ac_objext conftest.$ac_ext
10614 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10615 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10616 if test $ac_cv_member_krb5_error_text_data = yes; then
10618 cat >>confdefs.h <<_ACEOF
10619 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10624 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10625 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10626 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 cat >conftest.$ac_ext <<_ACEOF
10630 #line $LINENO "configure"
10631 #include "confdefs.h"
10634 #ifdef F77_DUMMY_MAIN
10635 # ifdef __cplusplus
10638 int F77_DUMMY_MAIN() { return 1; }
10643 static krb5_error ac_aggr;
10644 if (ac_aggr.e_data)
10650 rm -f conftest.$ac_objext
10651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10652 (eval $ac_compile) 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -s conftest.$ac_objext'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_member_krb5_error_e_data=yes
10664 echo "$as_me: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 ac_cv_member_krb5_error_e_data=no
10668 rm -f conftest.$ac_objext conftest.$ac_ext
10670 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10671 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10672 if test $ac_cv_member_krb5_error_e_data = yes; then
10674 cat >>confdefs.h <<_ACEOF
10675 #define HAVE_KRB5_ERROR_E_DATA 1
10680 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10681 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10682 { (exit 1); exit 1; }; }
10691 ## Functions, global variables
10694 echo "$as_me:$LINENO: checking for int timezone" >&5
10695 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10696 if test "${pgac_cv_var_int_timezone+set}" = set; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 cat >conftest.$ac_ext <<_ACEOF
10700 #line $LINENO "configure"
10701 #include "confdefs.h"
10704 #ifdef F77_DUMMY_MAIN
10705 # ifdef __cplusplus
10708 int F77_DUMMY_MAIN() { return 1; }
10713 res = timezone / 60;
10718 rm -f conftest.$ac_objext conftest$ac_exeext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10720 (eval $ac_link) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -s conftest$ac_exeext'
10725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 pgac_cv_var_int_timezone=yes
10732 echo "$as_me: failed program was:" >&5
10733 cat conftest.$ac_ext >&5
10734 pgac_cv_var_int_timezone=no
10736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10738 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10739 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10740 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10742 cat >>confdefs.h <<\_ACEOF
10743 #define HAVE_INT_TIMEZONE
10747 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10748 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10749 if test "${ac_cv_func_accept_arg1+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 if test "${ac_cv_func_accept_arg2+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 if test "${ac_cv_func_accept_arg3+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10759 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10760 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10761 cat >conftest.$ac_ext <<_ACEOF
10762 #line $LINENO "configure"
10763 #include "confdefs.h"
10764 #ifdef HAVE_SYS_TYPES_H
10765 #include <sys/types.h>
10767 #ifdef HAVE_SYS_SOCKET_H
10768 #include <sys/socket.h>
10770 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10771 #ifdef F77_DUMMY_MAIN
10772 # ifdef __cplusplus
10775 int F77_DUMMY_MAIN() { return 1; }
10785 rm -f conftest.$ac_objext
10786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10787 (eval $ac_compile) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); } &&
10791 { ac_try='test -s conftest.$ac_objext'
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 ac_not_found=no; break 3
10799 echo "$as_me: failed program was:" >&5
10800 cat conftest.$ac_ext >&5
10803 rm -f conftest.$ac_objext conftest.$ac_ext
10807 if test "$ac_not_found" = yes; then
10808 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10809 echo "$as_me: error: could not determine argument types" >&2;}
10810 { (exit 1); exit 1; }; }
10812 if test "$ac_cv_func_accept_arg3" = "void"; then
10813 ac_cv_func_accept_arg3=int
10821 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10822 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10824 cat >>confdefs.h <<_ACEOF
10825 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10829 cat >>confdefs.h <<_ACEOF
10830 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10834 cat >>confdefs.h <<_ACEOF
10835 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10839 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10840 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10841 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10845 #line $LINENO "configure"
10846 #include "confdefs.h"
10847 #include <sys/time.h>
10848 #ifdef F77_DUMMY_MAIN
10849 # ifdef __cplusplus
10852 int F77_DUMMY_MAIN() { return 1; }
10857 struct timeval *tp;
10858 struct timezone *tzp;
10859 gettimeofday(tp,tzp);
10864 rm -f conftest.$ac_objext
10865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866 (eval $ac_compile) 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try='test -s conftest.$ac_objext'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 pgac_cv_func_gettimeofday_1arg=no
10878 echo "$as_me: failed program was:" >&5
10879 cat conftest.$ac_ext >&5
10880 pgac_cv_func_gettimeofday_1arg=yes
10882 rm -f conftest.$ac_objext conftest.$ac_ext
10884 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10885 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10886 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10888 cat >>confdefs.h <<\_ACEOF
10889 #define GETTIMEOFDAY_1ARG
10896 # SunOS doesn't handle negative byte comparisons properly with +/- return
10897 echo "$as_me:$LINENO: checking for working memcmp" >&5
10898 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10899 if test "${ac_cv_func_memcmp_working+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 if test "$cross_compiling" = yes; then
10903 ac_cv_func_memcmp_working=no
10905 cat >conftest.$ac_ext <<_ACEOF
10906 #line $LINENO "configure"
10907 #include "confdefs.h"
10909 #ifdef F77_DUMMY_MAIN
10910 # ifdef __cplusplus
10913 int F77_DUMMY_MAIN() { return 1; }
10919 /* Some versions of memcmp are not 8-bit clean. */
10920 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10921 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10924 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10925 or more and with at least one buffer not starting on a 4-byte boundary.
10926 William Lewis provided this test program. */
10931 for (i = 0; i < 4; i++)
10935 strcpy (a, "--------01111111");
10936 strcpy (b, "--------10000000");
10937 if (memcmp (a, b, 16) >= 0)
10947 rm -f conftest$ac_exeext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10949 (eval $ac_link) 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958 ac_cv_func_memcmp_working=yes
10960 echo "$as_me: program exited with status $ac_status" >&5
10961 echo "$as_me: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 ( exit $ac_status )
10964 ac_cv_func_memcmp_working=no
10966 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10969 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10970 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10971 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10990 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10993 echo "$as_me:$LINENO: checking for $ac_func" >&5
10994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10995 if eval "test \"\${$as_ac_var+set}\" = set"; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 cat >conftest.$ac_ext <<_ACEOF
10999 #line $LINENO "configure"
11000 #include "confdefs.h"
11001 /* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below. */
11003 #include <assert.h>
11004 /* Override any gcc2 internal prototype to avoid an error. */
11008 /* We use char because int might match the return type of a gcc2
11009 builtin and then its argument prototype would still apply. */
11013 #ifdef F77_DUMMY_MAIN
11014 # ifdef __cplusplus
11017 int F77_DUMMY_MAIN() { return 1; }
11022 /* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11037 (eval $ac_link) 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } &&
11041 { ac_try='test -s conftest$ac_exeext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 eval "$as_ac_var=yes"
11049 echo "$as_me: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11051 eval "$as_ac_var=no"
11053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11057 if test `eval echo '${'$as_ac_var'}'` = yes; then
11058 cat >>confdefs.h <<_ACEOF
11059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11066 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11067 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11068 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11071 cat >conftest.$ac_ext <<_ACEOF
11072 #line $LINENO "configure"
11073 #include "confdefs.h"
11074 #include <unistd.h>
11076 #ifdef F77_DUMMY_MAIN
11077 # ifdef __cplusplus
11080 int F77_DUMMY_MAIN() { return 1; }
11086 char *p = (char *) fdatasync;
11093 rm -f conftest.$ac_objext
11094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11095 (eval $ac_compile) 2>&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } &&
11099 { ac_try='test -s conftest.$ac_objext'
11100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11101 (eval $ac_try) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; }; then
11105 ac_cv_have_decl_fdatasync=yes
11107 echo "$as_me: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11109 ac_cv_have_decl_fdatasync=no
11111 rm -f conftest.$ac_objext conftest.$ac_ext
11113 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11114 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11115 if test $ac_cv_have_decl_fdatasync = yes; then
11117 cat >>confdefs.h <<_ACEOF
11118 #define HAVE_DECL_FDATASYNC 1
11123 cat >>confdefs.h <<_ACEOF
11124 #define HAVE_DECL_FDATASYNC 0
11132 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11133 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11134 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 cat >conftest.$ac_ext <<_ACEOF
11138 #line $LINENO "configure"
11139 #include "confdefs.h"
11140 $ac_includes_default
11141 #include <netinet/in.h>
11143 #ifdef F77_DUMMY_MAIN
11144 # ifdef __cplusplus
11147 int F77_DUMMY_MAIN() { return 1; }
11152 if ((struct sockaddr_in6 *) 0)
11154 if (sizeof (struct sockaddr_in6))
11160 rm -f conftest.$ac_objext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); } &&
11166 { ac_try='test -s conftest.$ac_objext'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
11172 ac_cv_type_struct_sockaddr_in6=yes
11174 echo "$as_me: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 ac_cv_type_struct_sockaddr_in6=no
11178 rm -f conftest.$ac_objext conftest.$ac_ext
11180 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11181 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11182 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11183 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11184 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11185 if test "${ac_cv_func_inet_ntop+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 cat >conftest.$ac_ext <<_ACEOF
11189 #line $LINENO "configure"
11190 #include "confdefs.h"
11191 /* System header to define __stub macros and hopefully few prototypes,
11192 which can conflict with char inet_ntop (); below. */
11193 #include <assert.h>
11194 /* Override any gcc2 internal prototype to avoid an error. */
11198 /* We use char because int might match the return type of a gcc2
11199 builtin and then its argument prototype would still apply. */
11203 #ifdef F77_DUMMY_MAIN
11204 # ifdef __cplusplus
11207 int F77_DUMMY_MAIN() { return 1; }
11212 /* The GNU C library defines this for functions which it implements
11213 to always fail with ENOSYS. Some functions are actually named
11214 something starting with __ and the normal name is an alias. */
11215 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11225 rm -f conftest.$ac_objext conftest$ac_exeext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11227 (eval $ac_link) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -s conftest$ac_exeext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_cv_func_inet_ntop=yes
11239 echo "$as_me: failed program was:" >&5
11240 cat conftest.$ac_ext >&5
11241 ac_cv_func_inet_ntop=no
11243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11245 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11246 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11247 if test $ac_cv_func_inet_ntop = yes; then
11249 cat >>confdefs.h <<\_ACEOF
11250 #define HAVE_IPV6 1
11258 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11259 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11260 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 cat >conftest.$ac_ext <<_ACEOF
11264 #line $LINENO "configure"
11265 #include "confdefs.h"
11266 #include <machine/vmparam.h>
11267 #include <sys/exec.h>
11269 #ifdef F77_DUMMY_MAIN
11270 # ifdef __cplusplus
11273 int F77_DUMMY_MAIN() { return 1; }
11278 PS_STRINGS->ps_nargvstr = 1;
11279 PS_STRINGS->ps_argvstr = "foo";
11284 rm -f conftest.$ac_objext conftest$ac_exeext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11286 (eval $ac_link) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -s conftest$ac_exeext'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 pgac_cv_var_PS_STRINGS=yes
11298 echo "$as_me: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 pgac_cv_var_PS_STRINGS=no
11302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11304 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11305 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11306 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11308 cat >>confdefs.h <<\_ACEOF
11309 #define HAVE_PS_STRINGS
11315 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11316 # is missing. Yes, there are machines that have only one. We may
11317 # also decide to use snprintf.c if snprintf() is present but does not
11318 # have working "long long int" support -- see below.
11320 pgac_need_repl_snprintf=no
11322 for ac_func in snprintf
11324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11325 echo "$as_me:$LINENO: checking for $ac_func" >&5
11326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11327 if eval "test \"\${$as_ac_var+set}\" = set"; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 cat >conftest.$ac_ext <<_ACEOF
11331 #line $LINENO "configure"
11332 #include "confdefs.h"
11333 /* System header to define __stub macros and hopefully few prototypes,
11334 which can conflict with char $ac_func (); below. */
11335 #include <assert.h>
11336 /* Override any gcc2 internal prototype to avoid an error. */
11340 /* We use char because int might match the return type of a gcc2
11341 builtin and then its argument prototype would still apply. */
11345 #ifdef F77_DUMMY_MAIN
11346 # ifdef __cplusplus
11349 int F77_DUMMY_MAIN() { return 1; }
11354 /* The GNU C library defines this for functions which it implements
11355 to always fail with ENOSYS. Some functions are actually named
11356 something starting with __ and the normal name is an alias. */
11357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11369 (eval $ac_link) 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try='test -s conftest$ac_exeext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 eval "$as_ac_var=yes"
11381 echo "$as_me: failed program was:" >&5
11382 cat conftest.$ac_ext >&5
11383 eval "$as_ac_var=no"
11385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11389 if test `eval echo '${'$as_ac_var'}'` = yes; then
11390 cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11395 pgac_need_repl_snprintf=yes
11400 for ac_func in vsnprintf
11402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11403 echo "$as_me:$LINENO: checking for $ac_func" >&5
11404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11405 if eval "test \"\${$as_ac_var+set}\" = set"; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11411 /* System header to define __stub macros and hopefully few prototypes,
11412 which can conflict with char $ac_func (); below. */
11413 #include <assert.h>
11414 /* Override any gcc2 internal prototype to avoid an error. */
11418 /* We use char because int might match the return type of a gcc2
11419 builtin and then its argument prototype would still apply. */
11423 #ifdef F77_DUMMY_MAIN
11424 # ifdef __cplusplus
11427 int F77_DUMMY_MAIN() { return 1; }
11432 /* The GNU C library defines this for functions which it implements
11433 to always fail with ENOSYS. Some functions are actually named
11434 something starting with __ and the normal name is an alias. */
11435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11445 rm -f conftest.$ac_objext conftest$ac_exeext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11447 (eval $ac_link) 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -s conftest$ac_exeext'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 eval "$as_ac_var=yes"
11459 echo "$as_me: failed program was:" >&5
11460 cat conftest.$ac_ext >&5
11461 eval "$as_ac_var=no"
11463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11467 if test `eval echo '${'$as_ac_var'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11473 pgac_need_repl_snprintf=yes
11479 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11480 # include/c.h will provide declarations. Note this is a separate test
11481 # from whether the functions exist in the C library --- there are
11482 # systems that have the functions but don't bother to declare them :-(
11484 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11485 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11486 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 cat >conftest.$ac_ext <<_ACEOF
11490 #line $LINENO "configure"
11491 #include "confdefs.h"
11492 $ac_includes_default
11493 #ifdef F77_DUMMY_MAIN
11494 # ifdef __cplusplus
11497 int F77_DUMMY_MAIN() { return 1; }
11503 char *p = (char *) snprintf;
11510 rm -f conftest.$ac_objext
11511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512 (eval $ac_compile) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } &&
11516 { ac_try='test -s conftest.$ac_objext'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }; then
11522 ac_cv_have_decl_snprintf=yes
11524 echo "$as_me: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11526 ac_cv_have_decl_snprintf=no
11528 rm -f conftest.$ac_objext conftest.$ac_ext
11530 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11531 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11532 if test $ac_cv_have_decl_snprintf = yes; then
11534 cat >>confdefs.h <<_ACEOF
11535 #define HAVE_DECL_SNPRINTF 1
11540 cat >>confdefs.h <<_ACEOF
11541 #define HAVE_DECL_SNPRINTF 0
11546 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11547 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11548 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 cat >conftest.$ac_ext <<_ACEOF
11552 #line $LINENO "configure"
11553 #include "confdefs.h"
11554 $ac_includes_default
11555 #ifdef F77_DUMMY_MAIN
11556 # ifdef __cplusplus
11559 int F77_DUMMY_MAIN() { return 1; }
11565 char *p = (char *) vsnprintf;
11572 rm -f conftest.$ac_objext
11573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11574 (eval $ac_compile) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -s conftest.$ac_objext'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; }; then
11584 ac_cv_have_decl_vsnprintf=yes
11586 echo "$as_me: failed program was:" >&5
11587 cat conftest.$ac_ext >&5
11588 ac_cv_have_decl_vsnprintf=no
11590 rm -f conftest.$ac_objext conftest.$ac_ext
11592 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11593 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11594 if test $ac_cv_have_decl_vsnprintf = yes; then
11596 cat >>confdefs.h <<_ACEOF
11597 #define HAVE_DECL_VSNPRINTF 1
11602 cat >>confdefs.h <<_ACEOF
11603 #define HAVE_DECL_VSNPRINTF 0
11612 # do this one the hard way in case isinf() is a macro
11613 echo "$as_me:$LINENO: checking for isinf" >&5
11614 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11615 if test "${ac_cv_func_isinf+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 cat >conftest.$ac_ext <<_ACEOF
11619 #line $LINENO "configure"
11620 #include "confdefs.h"
11623 #ifdef F77_DUMMY_MAIN
11624 # ifdef __cplusplus
11627 int F77_DUMMY_MAIN() { return 1; }
11632 double x = 0.0; int res = isinf(x);
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -s conftest$ac_exeext'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 ac_cv_func_isinf=yes
11651 echo "$as_me: failed program was:" >&5
11652 cat conftest.$ac_ext >&5
11653 ac_cv_func_isinf=no
11655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11657 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11658 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11660 if test $ac_cv_func_isinf = yes ; then
11662 cat >>confdefs.h <<\_ACEOF
11663 #define HAVE_ISINF 1
11667 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11668 # Look for a way to implement a substitute for isinf()
11673 for ac_func in fpclass fp_class fp_class_d class
11675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11676 echo "$as_me:$LINENO: checking for $ac_func" >&5
11677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11678 if eval "test \"\${$as_ac_var+set}\" = set"; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 cat >conftest.$ac_ext <<_ACEOF
11682 #line $LINENO "configure"
11683 #include "confdefs.h"
11684 /* System header to define __stub macros and hopefully few prototypes,
11685 which can conflict with char $ac_func (); below. */
11686 #include <assert.h>
11687 /* Override any gcc2 internal prototype to avoid an error. */
11691 /* We use char because int might match the return type of a gcc2
11692 builtin and then its argument prototype would still apply. */
11696 #ifdef F77_DUMMY_MAIN
11697 # ifdef __cplusplus
11700 int F77_DUMMY_MAIN() { return 1; }
11705 /* The GNU C library defines this for functions which it implements
11706 to always fail with ENOSYS. Some functions are actually named
11707 something starting with __ and the normal name is an alias. */
11708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 { ac_try='test -s conftest$ac_exeext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11730 eval "$as_ac_var=yes"
11732 echo "$as_me: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11734 eval "$as_ac_var=no"
11736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11740 if test `eval echo '${'$as_ac_var'}'` = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11764 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11767 echo "$as_me:$LINENO: checking for $ac_func" >&5
11768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11769 if eval "test \"\${$as_ac_var+set}\" = set"; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 cat >conftest.$ac_ext <<_ACEOF
11773 #line $LINENO "configure"
11774 #include "confdefs.h"
11775 /* System header to define __stub macros and hopefully few prototypes,
11776 which can conflict with char $ac_func (); below. */
11777 #include <assert.h>
11778 /* Override any gcc2 internal prototype to avoid an error. */
11782 /* We use char because int might match the return type of a gcc2
11783 builtin and then its argument prototype would still apply. */
11787 #ifdef F77_DUMMY_MAIN
11788 # ifdef __cplusplus
11791 int F77_DUMMY_MAIN() { return 1; }
11796 /* The GNU C library defines this for functions which it implements
11797 to always fail with ENOSYS. Some functions are actually named
11798 something starting with __ and the normal name is an alias. */
11799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -s conftest$ac_exeext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 eval "$as_ac_var=yes"
11823 echo "$as_me: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11825 eval "$as_ac_var=no"
11827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11831 if test `eval echo '${'$as_ac_var'}'` = yes; then
11832 cat >>confdefs.h <<_ACEOF
11833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11837 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11843 # system's version of getaddrinfo(), if any, may be used only if we found
11844 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11845 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11847 for ac_func in getaddrinfo
11849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11850 echo "$as_me:$LINENO: checking for $ac_func" >&5
11851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11852 if eval "test \"\${$as_ac_var+set}\" = set"; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11855 cat >conftest.$ac_ext <<_ACEOF
11856 #line $LINENO "configure"
11857 #include "confdefs.h"
11858 /* System header to define __stub macros and hopefully few prototypes,
11859 which can conflict with char $ac_func (); below. */
11860 #include <assert.h>
11861 /* Override any gcc2 internal prototype to avoid an error. */
11865 /* We use char because int might match the return type of a gcc2
11866 builtin and then its argument prototype would still apply. */
11870 #ifdef F77_DUMMY_MAIN
11871 # ifdef __cplusplus
11874 int F77_DUMMY_MAIN() { return 1; }
11879 /* The GNU C library defines this for functions which it implements
11880 to always fail with ENOSYS. Some functions are actually named
11881 something starting with __ and the normal name is an alias. */
11882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894 (eval $ac_link) 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 eval "$as_ac_var=yes"
11906 echo "$as_me: failed program was:" >&5
11907 cat conftest.$ac_ext >&5
11908 eval "$as_ac_var=no"
11910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11914 if test `eval echo '${'$as_ac_var'}'` = yes; then
11915 cat >>confdefs.h <<_ACEOF
11916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11920 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11926 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11929 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11930 # We override the previous test that said fseeko/ftello didn't exist
11931 # OS tests are also done in include/c.h and port/fseeko.c
11932 case $host_os in bsdi*|netbsd*)
11933 ac_cv_func_fseeko=yes
11936 # Solaris has a very slow qsort in certain cases, so we replace it.
11937 case $host_os in solaris*)
11938 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11941 # Win32 can't to rename or unlink on an open file
11942 case $host_os in mingw*)
11943 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11944 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11945 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11948 if test "$with_readline" = yes; then
11949 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11950 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11951 cat >conftest.$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11953 #include "confdefs.h"
11955 #ifdef HAVE_READLINE_READLINE_H
11956 # include <readline/readline.h>
11957 #elif defined(HAVE_READLINE_H)
11958 # include <readline.h>
11961 #ifdef F77_DUMMY_MAIN
11962 # ifdef __cplusplus
11965 int F77_DUMMY_MAIN() { return 1; }
11970 rl_completion_append_character = 'x';
11975 rm -f conftest.$ac_objext conftest$ac_exeext
11976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -s conftest$ac_exeext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 echo "$as_me:$LINENO: result: yes" >&5
11988 echo "${ECHO_T}yes" >&6
11990 cat >>confdefs.h <<\_ACEOF
11991 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11995 echo "$as_me: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 echo "$as_me:$LINENO: result: no" >&5
11998 echo "${ECHO_T}no" >&6
12000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12003 for ac_func in rl_completion_matches rl_filename_completion_function
12005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12006 echo "$as_me:$LINENO: checking for $ac_func" >&5
12007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12008 if eval "test \"\${$as_ac_var+set}\" = set"; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 cat >conftest.$ac_ext <<_ACEOF
12012 #line $LINENO "configure"
12013 #include "confdefs.h"
12014 /* System header to define __stub macros and hopefully few prototypes,
12015 which can conflict with char $ac_func (); below. */
12016 #include <assert.h>
12017 /* Override any gcc2 internal prototype to avoid an error. */
12021 /* We use char because int might match the return type of a gcc2
12022 builtin and then its argument prototype would still apply. */
12026 #ifdef F77_DUMMY_MAIN
12027 # ifdef __cplusplus
12030 int F77_DUMMY_MAIN() { return 1; }
12035 /* The GNU C library defines this for functions which it implements
12036 to always fail with ENOSYS. Some functions are actually named
12037 something starting with __ and the normal name is an alias. */
12038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12050 (eval $ac_link) 2>&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -s conftest$ac_exeext'
12055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12056 (eval $ac_try) 2>&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); }; }; then
12060 eval "$as_ac_var=yes"
12062 echo "$as_me: failed program was:" >&5
12063 cat conftest.$ac_ext >&5
12064 eval "$as_ac_var=no"
12066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12070 if test `eval echo '${'$as_ac_var'}'` = yes; then
12071 cat >>confdefs.h <<_ACEOF
12072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12079 for ac_func in replace_history_entry
12081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12084 if eval "test \"\${$as_ac_var+set}\" = set"; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 cat >conftest.$ac_ext <<_ACEOF
12088 #line $LINENO "configure"
12089 #include "confdefs.h"
12090 /* System header to define __stub macros and hopefully few prototypes,
12091 which can conflict with char $ac_func (); below. */
12092 #include <assert.h>
12093 /* Override any gcc2 internal prototype to avoid an error. */
12097 /* We use char because int might match the return type of a gcc2
12098 builtin and then its argument prototype would still apply. */
12102 #ifdef F77_DUMMY_MAIN
12103 # ifdef __cplusplus
12106 int F77_DUMMY_MAIN() { return 1; }
12111 /* The GNU C library defines this for functions which it implements
12112 to always fail with ENOSYS. Some functions are actually named
12113 something starting with __ and the normal name is an alias. */
12114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12124 rm -f conftest.$ac_objext conftest$ac_exeext
12125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try='test -s conftest$ac_exeext'
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 eval "$as_ac_var=yes"
12138 echo "$as_me: failed program was:" >&5
12139 cat conftest.$ac_ext >&5
12140 eval "$as_ac_var=no"
12142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12146 if test `eval echo '${'$as_ac_var'}'` = yes; then
12147 cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12157 echo "$as_me:$LINENO: checking for finite" >&5
12158 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12159 cat >conftest.$ac_ext <<_ACEOF
12160 #line $LINENO "configure"
12161 #include "confdefs.h"
12163 #ifdef F77_DUMMY_MAIN
12164 # ifdef __cplusplus
12167 int F77_DUMMY_MAIN() { return 1; }
12172 int dummy=finite(1.0);
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -s conftest$ac_exeext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12190 cat >>confdefs.h <<\_ACEOF
12191 #define HAVE_FINITE 1
12194 echo "$as_me:$LINENO: result: yes" >&5
12195 echo "${ECHO_T}yes" >&6
12197 echo "$as_me: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12199 echo "$as_me:$LINENO: result: no" >&5
12200 echo "${ECHO_T}no" >&6
12202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12204 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12205 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12206 cat >conftest.$ac_ext <<_ACEOF
12207 #line $LINENO "configure"
12208 #include "confdefs.h"
12209 #include <setjmp.h>
12210 #ifdef F77_DUMMY_MAIN
12211 # ifdef __cplusplus
12214 int F77_DUMMY_MAIN() { return 1; }
12219 sigjmp_buf x; sigsetjmp(x, 1);
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -s conftest$ac_exeext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12237 cat >>confdefs.h <<\_ACEOF
12238 #define HAVE_SIGSETJMP 1
12241 echo "$as_me:$LINENO: result: yes" >&5
12242 echo "${ECHO_T}yes" >&6
12244 echo "$as_me: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12246 echo "$as_me:$LINENO: result: no" >&5
12247 echo "${ECHO_T}no" >&6
12249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12251 echo "$as_me:$LINENO: checking for syslog" >&5
12252 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12253 if test "${ac_cv_func_syslog+set}" = set; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 cat >conftest.$ac_ext <<_ACEOF
12257 #line $LINENO "configure"
12258 #include "confdefs.h"
12259 /* System header to define __stub macros and hopefully few prototypes,
12260 which can conflict with char syslog (); below. */
12261 #include <assert.h>
12262 /* Override any gcc2 internal prototype to avoid an error. */
12266 /* We use char because int might match the return type of a gcc2
12267 builtin and then its argument prototype would still apply. */
12271 #ifdef F77_DUMMY_MAIN
12272 # ifdef __cplusplus
12275 int F77_DUMMY_MAIN() { return 1; }
12280 /* The GNU C library defines this for functions which it implements
12281 to always fail with ENOSYS. Some functions are actually named
12282 something starting with __ and the normal name is an alias. */
12283 #if defined (__stub_syslog) || defined (__stub___syslog)
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12295 (eval $ac_link) 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -s conftest$ac_exeext'
12300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301 (eval $ac_try) 2>&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); }; }; then
12305 ac_cv_func_syslog=yes
12307 echo "$as_me: failed program was:" >&5
12308 cat conftest.$ac_ext >&5
12309 ac_cv_func_syslog=no
12311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12313 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12314 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12315 if test $ac_cv_func_syslog = yes; then
12316 if test "${ac_cv_header_syslog_h+set}" = set; then
12317 echo "$as_me:$LINENO: checking for syslog.h" >&5
12318 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12319 if test "${ac_cv_header_syslog_h+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12323 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12325 # Is the header compilable?
12326 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12327 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12329 #line $LINENO "configure"
12330 #include "confdefs.h"
12331 $ac_includes_default
12332 #include <syslog.h>
12334 rm -f conftest.$ac_objext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12336 (eval $ac_compile) 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
12340 { ac_try='test -s conftest.$ac_objext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 ac_header_compiler=yes
12348 echo "$as_me: failed program was:" >&5
12349 cat conftest.$ac_ext >&5
12350 ac_header_compiler=no
12352 rm -f conftest.$ac_objext conftest.$ac_ext
12353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12354 echo "${ECHO_T}$ac_header_compiler" >&6
12356 # Is the header present?
12357 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12358 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12359 cat >conftest.$ac_ext <<_ACEOF
12360 #line $LINENO "configure"
12361 #include "confdefs.h"
12362 #include <syslog.h>
12364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12367 egrep -v '^ *\+' conftest.er1 >conftest.err
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } >/dev/null; then
12372 if test -s conftest.err; then
12373 ac_cpp_err=$ac_c_preproc_warn_flag
12380 if test -z "$ac_cpp_err"; then
12381 ac_header_preproc=yes
12383 echo "$as_me: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 ac_header_preproc=no
12387 rm -f conftest.err conftest.$ac_ext
12388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12389 echo "${ECHO_T}$ac_header_preproc" >&6
12391 # So? What about this header?
12392 case $ac_header_compiler:$ac_header_preproc in
12394 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12395 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12397 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12399 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12400 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12402 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12404 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12406 echo "$as_me:$LINENO: checking for syslog.h" >&5
12407 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12408 if test "${ac_cv_header_syslog_h+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 ac_cv_header_syslog_h=$ac_header_preproc
12413 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12414 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12417 if test $ac_cv_header_syslog_h = yes; then
12419 cat >>confdefs.h <<\_ACEOF
12420 #define HAVE_SYSLOG 1
12429 echo "$as_me:$LINENO: checking for optreset" >&5
12430 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12431 if test "${pgac_cv_var_int_optreset+set}" = set; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 cat >conftest.$ac_ext <<_ACEOF
12435 #line $LINENO "configure"
12436 #include "confdefs.h"
12437 #include <unistd.h>
12438 #ifdef F77_DUMMY_MAIN
12439 # ifdef __cplusplus
12442 int F77_DUMMY_MAIN() { return 1; }
12447 extern int optreset; optreset = 1;
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12454 (eval $ac_link) 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 pgac_cv_var_int_optreset=yes
12466 echo "$as_me: failed program was:" >&5
12467 cat conftest.$ac_ext >&5
12468 pgac_cv_var_int_optreset=no
12470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12472 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12473 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12474 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_INT_OPTRESET 1
12484 for ac_func in strtoll strtoq
12486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12487 echo "$as_me:$LINENO: checking for $ac_func" >&5
12488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12489 if eval "test \"\${$as_ac_var+set}\" = set"; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #line $LINENO "configure"
12494 #include "confdefs.h"
12495 /* System header to define __stub macros and hopefully few prototypes,
12496 which can conflict with char $ac_func (); below. */
12497 #include <assert.h>
12498 /* Override any gcc2 internal prototype to avoid an error. */
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12507 #ifdef F77_DUMMY_MAIN
12508 # ifdef __cplusplus
12511 int F77_DUMMY_MAIN() { return 1; }
12516 /* The GNU C library defines this for functions which it implements
12517 to always fail with ENOSYS. Some functions are actually named
12518 something starting with __ and the normal name is an alias. */
12519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531 (eval $ac_link) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); } &&
12535 { ac_try='test -s conftest$ac_exeext'
12536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537 (eval $ac_try) 2>&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; }; then
12541 eval "$as_ac_var=yes"
12543 echo "$as_me: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 eval "$as_ac_var=no"
12547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12551 if test `eval echo '${'$as_ac_var'}'` = yes; then
12552 cat >>confdefs.h <<_ACEOF
12553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12561 for ac_func in strtoull strtouq
12563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12564 echo "$as_me:$LINENO: checking for $ac_func" >&5
12565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12566 if eval "test \"\${$as_ac_var+set}\" = set"; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 cat >conftest.$ac_ext <<_ACEOF
12570 #line $LINENO "configure"
12571 #include "confdefs.h"
12572 /* System header to define __stub macros and hopefully few prototypes,
12573 which can conflict with char $ac_func (); below. */
12574 #include <assert.h>
12575 /* Override any gcc2 internal prototype to avoid an error. */
12579 /* We use char because int might match the return type of a gcc2
12580 builtin and then its argument prototype would still apply. */
12584 #ifdef F77_DUMMY_MAIN
12585 # ifdef __cplusplus
12588 int F77_DUMMY_MAIN() { return 1; }
12593 /* The GNU C library defines this for functions which it implements
12594 to always fail with ENOSYS. Some functions are actually named
12595 something starting with __ and the normal name is an alias. */
12596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12608 (eval $ac_link) 2>&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -s conftest$ac_exeext'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; }; then
12618 eval "$as_ac_var=yes"
12620 echo "$as_me: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 eval "$as_ac_var=no"
12624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12628 if test `eval echo '${'$as_ac_var'}'` = yes; then
12629 cat >>confdefs.h <<_ACEOF
12630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12637 # Check for one of atexit() or on_exit()
12639 for ac_func in atexit
12641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12642 echo "$as_me:$LINENO: checking for $ac_func" >&5
12643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12644 if eval "test \"\${$as_ac_var+set}\" = set"; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 cat >conftest.$ac_ext <<_ACEOF
12648 #line $LINENO "configure"
12649 #include "confdefs.h"
12650 /* System header to define __stub macros and hopefully few prototypes,
12651 which can conflict with char $ac_func (); below. */
12652 #include <assert.h>
12653 /* Override any gcc2 internal prototype to avoid an error. */
12657 /* We use char because int might match the return type of a gcc2
12658 builtin and then its argument prototype would still apply. */
12662 #ifdef F77_DUMMY_MAIN
12663 # ifdef __cplusplus
12666 int F77_DUMMY_MAIN() { return 1; }
12671 /* The GNU C library defines this for functions which it implements
12672 to always fail with ENOSYS. Some functions are actually named
12673 something starting with __ and the normal name is an alias. */
12674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12684 rm -f conftest.$ac_objext conftest$ac_exeext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12686 (eval $ac_link) 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -s conftest$ac_exeext'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; }; then
12696 eval "$as_ac_var=yes"
12698 echo "$as_me: failed program was:" >&5
12699 cat conftest.$ac_ext >&5
12700 eval "$as_ac_var=no"
12702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12706 if test `eval echo '${'$as_ac_var'}'` = yes; then
12707 cat >>confdefs.h <<_ACEOF
12708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12713 for ac_func in on_exit
12715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12716 echo "$as_me:$LINENO: checking for $ac_func" >&5
12717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12718 if eval "test \"\${$as_ac_var+set}\" = set"; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
12721 cat >conftest.$ac_ext <<_ACEOF
12722 #line $LINENO "configure"
12723 #include "confdefs.h"
12724 /* System header to define __stub macros and hopefully few prototypes,
12725 which can conflict with char $ac_func (); below. */
12726 #include <assert.h>
12727 /* Override any gcc2 internal prototype to avoid an error. */
12731 /* We use char because int might match the return type of a gcc2
12732 builtin and then its argument prototype would still apply. */
12736 #ifdef F77_DUMMY_MAIN
12737 # ifdef __cplusplus
12740 int F77_DUMMY_MAIN() { return 1; }
12745 /* The GNU C library defines this for functions which it implements
12746 to always fail with ENOSYS. Some functions are actually named
12747 something starting with __ and the normal name is an alias. */
12748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12760 (eval $ac_link) 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } &&
12764 { ac_try='test -s conftest$ac_exeext'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 eval "$as_ac_var=yes"
12772 echo "$as_me: failed program was:" >&5
12773 cat conftest.$ac_ext >&5
12774 eval "$as_ac_var=no"
12776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12780 if test `eval echo '${'$as_ac_var'}'` = yes; then
12781 cat >>confdefs.h <<_ACEOF
12782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12786 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12787 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12788 { (exit 1); exit 1; }; }
12796 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12797 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12798 if test "${ac_cv_sys_largefile_source+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 ac_cv_sys_largefile_source=no
12803 cat >conftest.$ac_ext <<_ACEOF
12804 #line $LINENO "configure"
12805 #include "confdefs.h"
12807 #ifdef F77_DUMMY_MAIN
12808 # ifdef __cplusplus
12811 int F77_DUMMY_MAIN() { return 1; }
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823 (eval $ac_compile) 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -s conftest.$ac_objext'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12835 echo "$as_me: failed program was:" >&5
12836 cat conftest.$ac_ext >&5
12838 rm -f conftest.$ac_objext conftest.$ac_ext
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 #include "confdefs.h"
12842 #define _LARGEFILE_SOURCE 1
12844 #ifdef F77_DUMMY_MAIN
12845 # ifdef __cplusplus
12848 int F77_DUMMY_MAIN() { return 1; }
12858 rm -f conftest.$ac_objext
12859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12860 (eval $ac_compile) 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -s conftest.$ac_objext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_sys_largefile_source=1; break
12872 echo "$as_me: failed program was:" >&5
12873 cat conftest.$ac_ext >&5
12875 rm -f conftest.$ac_objext conftest.$ac_ext
12879 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12880 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12881 if test "$ac_cv_sys_largefile_source" != no; then
12883 cat >>confdefs.h <<_ACEOF
12884 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12890 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12891 # in glibc 2.1.3, but that breaks too many other things.
12892 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12893 echo "$as_me:$LINENO: checking for fseeko" >&5
12894 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12895 if test "${ac_cv_func_fseeko+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 cat >conftest.$ac_ext <<_ACEOF
12899 #line $LINENO "configure"
12900 #include "confdefs.h"
12902 #ifdef F77_DUMMY_MAIN
12903 # ifdef __cplusplus
12906 int F77_DUMMY_MAIN() { return 1; }
12911 return fseeko && fseeko (stdin, 0, 0);
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12918 (eval $ac_link) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -s conftest$ac_exeext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 ac_cv_func_fseeko=yes
12930 echo "$as_me: failed program was:" >&5
12931 cat conftest.$ac_ext >&5
12932 ac_cv_func_fseeko=no
12934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12937 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12938 if test $ac_cv_func_fseeko = yes; then
12940 cat >>confdefs.h <<\_ACEOF
12941 #define HAVE_FSEEKO 1
12950 # For each platform, we need to know about any special compile and link
12951 # libraries, and whether the normal C function names are thread-safe.
12953 if test "$enable_thread_safety" = yes; then
12954 if test "${ac_cv_header_pthread_h+set}" = set; then
12955 echo "$as_me:$LINENO: checking for pthread.h" >&5
12956 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12957 if test "${ac_cv_header_pthread_h+set}" = set; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12961 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12963 # Is the header compilable?
12964 echo "$as_me:$LINENO: checking pthread.h usability" >&5
12965 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
12966 cat >conftest.$ac_ext <<_ACEOF
12967 #line $LINENO "configure"
12968 #include "confdefs.h"
12969 $ac_includes_default
12970 #include <pthread.h>
12972 rm -f conftest.$ac_objext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12974 (eval $ac_compile) 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -s conftest.$ac_objext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 ac_header_compiler=yes
12986 echo "$as_me: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12988 ac_header_compiler=no
12990 rm -f conftest.$ac_objext conftest.$ac_ext
12991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12992 echo "${ECHO_T}$ac_header_compiler" >&6
12994 # Is the header present?
12995 echo "$as_me:$LINENO: checking pthread.h presence" >&5
12996 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
12997 cat >conftest.$ac_ext <<_ACEOF
12998 #line $LINENO "configure"
12999 #include "confdefs.h"
13000 #include <pthread.h>
13002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13005 egrep -v '^ *\+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } >/dev/null; then
13010 if test -s conftest.err; then
13011 ac_cpp_err=$ac_c_preproc_warn_flag
13018 if test -z "$ac_cpp_err"; then
13019 ac_header_preproc=yes
13021 echo "$as_me: failed program was:" >&5
13022 cat conftest.$ac_ext >&5
13023 ac_header_preproc=no
13025 rm -f conftest.err conftest.$ac_ext
13026 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13027 echo "${ECHO_T}$ac_header_preproc" >&6
13029 # So? What about this header?
13030 case $ac_header_compiler:$ac_header_preproc in
13032 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13033 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13034 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13035 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13037 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13038 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13039 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13040 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13041 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13042 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13044 echo "$as_me:$LINENO: checking for pthread.h" >&5
13045 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13046 if test "${ac_cv_header_pthread_h+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 ac_cv_header_pthread_h=$ac_header_preproc
13051 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13052 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13055 if test $ac_cv_header_pthread_h = yes; then
13058 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
13059 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
13060 { (exit 1); exit 1; }; }
13065 if test "$SUPPORTS_THREADS" != yes; then
13066 { { echo "$as_me:$LINENO: error:
13067 Cannot enable threads on your platform.
13068 Please report your platform threading info to the PostgreSQL mailing lists
13069 so it can be added to the next release. Report all compile flags, link flags,
13070 functions, or libraries required for threading support.
13072 echo "$as_me: error:
13073 Cannot enable threads on your platform.
13074 Please report your platform threading info to the PostgreSQL mailing lists
13075 so it can be added to the next release. Report all compile flags, link flags,
13076 functions, or libraries required for threading support.
13078 { (exit 1); exit 1; }; }
13081 # do not use values from template file
13090 # Check for re-entrant versions of certain functions
13092 # Include special flags if threads are enabled _and_ if required for
13093 # threading on this platform. Some platforms have *_r functions but
13094 # their natively named funcs are threadsafe, and should be used instead.
13096 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13097 # functions are marked "not found", which is perfect.
13099 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
13102 CFLAGS="$CFLAGS $THREAD_CFLAGS"
13103 LIBS="$LIBS $THREAD_LIBS"
13107 for ac_func in strerror_r getpwuid_r gethostbyname_r
13109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13110 echo "$as_me:$LINENO: checking for $ac_func" >&5
13111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13112 if eval "test \"\${$as_ac_var+set}\" = set"; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 cat >conftest.$ac_ext <<_ACEOF
13116 #line $LINENO "configure"
13117 #include "confdefs.h"
13118 /* System header to define __stub macros and hopefully few prototypes,
13119 which can conflict with char $ac_func (); below. */
13120 #include <assert.h>
13121 /* Override any gcc2 internal prototype to avoid an error. */
13125 /* We use char because int might match the return type of a gcc2
13126 builtin and then its argument prototype would still apply. */
13130 #ifdef F77_DUMMY_MAIN
13131 # ifdef __cplusplus
13134 int F77_DUMMY_MAIN() { return 1; }
13139 /* The GNU C library defines this for functions which it implements
13140 to always fail with ENOSYS. Some functions are actually named
13141 something starting with __ and the normal name is an alias. */
13142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13154 (eval $ac_link) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -s conftest$ac_exeext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 eval "$as_ac_var=yes"
13166 echo "$as_me: failed program was:" >&5
13167 cat conftest.$ac_ext >&5
13168 eval "$as_ac_var=no"
13170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13174 if test `eval echo '${'$as_ac_var'}'` = yes; then
13175 cat >>confdefs.h <<_ACEOF
13176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13187 # This test makes sure that run tests work at all. Sometimes a shared
13188 # library is found by the linker, but the runtime linker can't find it.
13189 # This check should come after all modifications of compiler or linker
13190 # variables, and before any other run tests.
13191 echo "$as_me:$LINENO: checking test program" >&5
13192 echo $ECHO_N "checking test program... $ECHO_C" >&6
13193 if test "$cross_compiling" = yes; then
13194 echo "$as_me:$LINENO: result: cross-compiling" >&5
13195 echo "${ECHO_T}cross-compiling" >&6
13197 cat >conftest.$ac_ext <<_ACEOF
13198 #line $LINENO "configure"
13199 #include "confdefs.h"
13200 int main() { return 0; }
13202 rm -f conftest$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204 (eval $ac_link) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 echo "$as_me:$LINENO: result: ok" >&5
13214 echo "${ECHO_T}ok" >&6
13216 echo "$as_me: program exited with status $ac_status" >&5
13217 echo "$as_me: failed program was:" >&5
13218 cat conftest.$ac_ext >&5
13219 ( exit $ac_status )
13220 echo "$as_me:$LINENO: result: failed" >&5
13221 echo "${ECHO_T}failed" >&6
13222 { { echo "$as_me:$LINENO: error:
13223 *** Could not execute a simple test program. This may be a problem
13224 *** related to locating shared libraries. Check the file 'config.log'
13225 *** for the exact reason." >&5
13226 echo "$as_me: error:
13227 *** Could not execute a simple test program. This may be a problem
13228 *** related to locating shared libraries. Check the file 'config.log'
13229 *** for the exact reason." >&2;}
13230 { (exit 1); exit 1; }; }
13232 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13237 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13238 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13239 if test "${pgac_cv_type_long_int_64+set}" = set; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 if test "$cross_compiling" = yes; then
13243 # If cross-compiling, check the size reported by the compiler and
13244 # trust that the arithmetic works.
13245 cat >conftest.$ac_ext <<_ACEOF
13246 #line $LINENO "configure"
13247 #include "confdefs.h"
13249 #ifdef F77_DUMMY_MAIN
13250 # ifdef __cplusplus
13253 int F77_DUMMY_MAIN() { return 1; }
13258 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13265 rm -f conftest.$ac_objext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13267 (eval $ac_compile) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -s conftest.$ac_objext'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13277 pgac_cv_type_long_int_64=yes
13279 echo "$as_me: failed program was:" >&5
13280 cat conftest.$ac_ext >&5
13281 pgac_cv_type_long_int_64=no
13283 rm -f conftest.$ac_objext conftest.$ac_ext
13285 cat >conftest.$ac_ext <<_ACEOF
13286 #line $LINENO "configure"
13287 #include "confdefs.h"
13288 typedef long int int64;
13291 * These are globals to discourage the compiler from folding all the
13292 * arithmetic tests down to compile-time constants.
13294 int64 a = 20000001;
13295 int64 b = 40000005;
13297 int does_int64_work()
13301 if (sizeof(int64) != 8)
13302 return 0; /* definitely not the right size */
13304 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13312 exit(! does_int64_work());
13315 rm -f conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 pgac_cv_type_long_int_64=yes
13328 echo "$as_me: program exited with status $ac_status" >&5
13329 echo "$as_me: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
13331 ( exit $ac_status )
13332 pgac_cv_type_long_int_64=no
13334 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13337 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13338 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13340 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13341 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13343 cat >>confdefs.h <<\_ACEOF
13344 #define HAVE_LONG_INT_64
13350 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13351 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13352 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13353 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 if test "$cross_compiling" = yes; then
13357 # If cross-compiling, check the size reported by the compiler and
13358 # trust that the arithmetic works.
13359 cat >conftest.$ac_ext <<_ACEOF
13360 #line $LINENO "configure"
13361 #include "confdefs.h"
13363 #ifdef F77_DUMMY_MAIN
13364 # ifdef __cplusplus
13367 int F77_DUMMY_MAIN() { return 1; }
13372 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13379 rm -f conftest.$ac_objext
13380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13381 (eval $ac_compile) 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } &&
13385 { ac_try='test -s conftest.$ac_objext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 pgac_cv_type_long_long_int_64=yes
13393 echo "$as_me: failed program was:" >&5
13394 cat conftest.$ac_ext >&5
13395 pgac_cv_type_long_long_int_64=no
13397 rm -f conftest.$ac_objext conftest.$ac_ext
13399 cat >conftest.$ac_ext <<_ACEOF
13400 #line $LINENO "configure"
13401 #include "confdefs.h"
13402 typedef long long int int64;
13405 * These are globals to discourage the compiler from folding all the
13406 * arithmetic tests down to compile-time constants.
13408 int64 a = 20000001;
13409 int64 b = 40000005;
13411 int does_int64_work()
13415 if (sizeof(int64) != 8)
13416 return 0; /* definitely not the right size */
13418 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13426 exit(! does_int64_work());
13429 rm -f conftest$ac_exeext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13431 (eval $ac_link) 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 pgac_cv_type_long_long_int_64=yes
13442 echo "$as_me: program exited with status $ac_status" >&5
13443 echo "$as_me: failed program was:" >&5
13444 cat conftest.$ac_ext >&5
13445 ( exit $ac_status )
13446 pgac_cv_type_long_long_int_64=no
13448 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13451 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13452 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13454 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13455 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13457 cat >>confdefs.h <<\_ACEOF
13458 #define HAVE_LONG_LONG_INT_64
13467 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13468 cat >conftest.$ac_ext <<_ACEOF
13469 #line $LINENO "configure"
13470 #include "confdefs.h"
13472 #define INT64CONST(x) x##LL
13473 long long int foo = INT64CONST(0x1234567890123456);
13475 #ifdef F77_DUMMY_MAIN
13476 # ifdef __cplusplus
13479 int F77_DUMMY_MAIN() { return 1; }
13489 rm -f conftest.$ac_objext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491 (eval $ac_compile) 2>&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } &&
13495 { ac_try='test -s conftest.$ac_objext'
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13502 cat >>confdefs.h <<\_ACEOF
13503 #define HAVE_LL_CONSTANTS 1
13507 echo "$as_me: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13510 rm -f conftest.$ac_objext conftest.$ac_ext
13514 # If we found "long int" is 64 bits, assume snprintf handles it. If
13515 # we found we need to use "long long int", better check. We cope with
13516 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13517 # neither works, fall back to our own snprintf emulation (which we
13520 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13521 if test $pgac_need_repl_snprintf = no; then
13522 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13523 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13524 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 for pgac_format in '%lld' '%qd' '%I64d'; do
13528 if test "$cross_compiling" = yes; then
13529 pgac_cv_snprintf_long_long_int_format=cross; break
13531 cat >conftest.$ac_ext <<_ACEOF
13532 #line $LINENO "configure"
13533 #include "confdefs.h"
13535 typedef long long int int64;
13536 #define INT64_FORMAT "$pgac_format"
13538 int64 a = 20000001;
13539 int64 b = 40000005;
13541 int does_int64_snprintf_work()
13546 if (sizeof(int64) != 8)
13547 return 0; /* doesn't look like the right size */
13550 snprintf(buf, 100, INT64_FORMAT, c);
13551 if (strcmp(buf, "800000140000005") != 0)
13552 return 0; /* either multiply or snprintf is busted */
13556 exit(! does_int64_snprintf_work());
13559 rm -f conftest$ac_exeext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13561 (eval $ac_link) 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13570 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13572 echo "$as_me: program exited with status $ac_status" >&5
13573 echo "$as_me: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13576 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13581 LONG_LONG_INT_FORMAT=''
13583 case $pgac_cv_snprintf_long_long_int_format in
13584 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13585 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13586 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13587 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13588 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13589 *) echo "$as_me:$LINENO: result: none" >&5
13590 echo "${ECHO_T}none" >&6;;
13592 if test "$LONG_LONG_INT_FORMAT" = ""; then
13593 # Force usage of our own snprintf, since system snprintf is broken
13594 pgac_need_repl_snprintf=yes
13595 LONG_LONG_INT_FORMAT='%lld'
13598 # Here if we previously decided we needed to use our own snprintf
13599 LONG_LONG_INT_FORMAT='%lld'
13601 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13603 # Here if we are not using 'long long int' at all
13604 INT64_FORMAT='"%ld"'
13608 cat >>confdefs.h <<_ACEOF
13609 #define INT64_FORMAT $INT64_FORMAT
13613 if test $pgac_need_repl_snprintf = yes; then
13614 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13617 # Need a #define for the size of Datum (unsigned long)
13618 echo "$as_me:$LINENO: checking for unsigned long" >&5
13619 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13620 if test "${ac_cv_type_unsigned_long+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 cat >conftest.$ac_ext <<_ACEOF
13624 #line $LINENO "configure"
13625 #include "confdefs.h"
13626 $ac_includes_default
13627 #ifdef F77_DUMMY_MAIN
13628 # ifdef __cplusplus
13631 int F77_DUMMY_MAIN() { return 1; }
13636 if ((unsigned long *) 0)
13638 if (sizeof (unsigned long))
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -s conftest.$ac_objext'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_type_unsigned_long=yes
13658 echo "$as_me: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 ac_cv_type_unsigned_long=no
13662 rm -f conftest.$ac_objext conftest.$ac_ext
13664 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13665 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13667 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13668 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13669 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 if test "$ac_cv_type_unsigned_long" = yes; then
13673 # The cast to unsigned long works around a bug in the HP C Compiler
13674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13676 # This bug is HP SR number 8606223364.
13677 if test "$cross_compiling" = yes; then
13678 # Depending upon the size, compute the lo and hi bounds.
13679 cat >conftest.$ac_ext <<_ACEOF
13680 #line $LINENO "configure"
13681 #include "confdefs.h"
13682 $ac_includes_default
13683 #ifdef F77_DUMMY_MAIN
13684 # ifdef __cplusplus
13687 int F77_DUMMY_MAIN() { return 1; }
13692 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -s conftest.$ac_objext'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13713 cat >conftest.$ac_ext <<_ACEOF
13714 #line $LINENO "configure"
13715 #include "confdefs.h"
13716 $ac_includes_default
13717 #ifdef F77_DUMMY_MAIN
13718 # ifdef __cplusplus
13721 int F77_DUMMY_MAIN() { return 1; }
13726 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13733 rm -f conftest.$ac_objext
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735 (eval $ac_compile) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } &&
13739 { ac_try='test -s conftest.$ac_objext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_hi=$ac_mid; break
13747 echo "$as_me: failed program was:" >&5
13748 cat conftest.$ac_ext >&5
13749 ac_lo=`expr $ac_mid + 1`
13750 if test $ac_lo -le $ac_mid; then
13754 ac_mid=`expr 2 '*' $ac_mid + 1`
13756 rm -f conftest.$ac_objext conftest.$ac_ext
13759 echo "$as_me: failed program was:" >&5
13760 cat conftest.$ac_ext >&5
13761 cat >conftest.$ac_ext <<_ACEOF
13762 #line $LINENO "configure"
13763 #include "confdefs.h"
13764 $ac_includes_default
13765 #ifdef F77_DUMMY_MAIN
13766 # ifdef __cplusplus
13769 int F77_DUMMY_MAIN() { return 1; }
13774 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13781 rm -f conftest.$ac_objext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783 (eval $ac_compile) 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try='test -s conftest.$ac_objext'
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13795 cat >conftest.$ac_ext <<_ACEOF
13796 #line $LINENO "configure"
13797 #include "confdefs.h"
13798 $ac_includes_default
13799 #ifdef F77_DUMMY_MAIN
13800 # ifdef __cplusplus
13803 int F77_DUMMY_MAIN() { return 1; }
13808 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_lo=$ac_mid; break
13829 echo "$as_me: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13831 ac_hi=`expr '(' $ac_mid ')' - 1`
13832 if test $ac_mid -le $ac_hi; then
13836 ac_mid=`expr 2 '*' $ac_mid`
13838 rm -f conftest.$ac_objext conftest.$ac_ext
13841 echo "$as_me: failed program was:" >&5
13842 cat conftest.$ac_ext >&5
13845 rm -f conftest.$ac_objext conftest.$ac_ext
13847 rm -f conftest.$ac_objext conftest.$ac_ext
13848 # Binary search between lo and hi bounds.
13849 while test "x$ac_lo" != "x$ac_hi"; do
13850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13851 cat >conftest.$ac_ext <<_ACEOF
13852 #line $LINENO "configure"
13853 #include "confdefs.h"
13854 $ac_includes_default
13855 #ifdef F77_DUMMY_MAIN
13856 # ifdef __cplusplus
13859 int F77_DUMMY_MAIN() { return 1; }
13864 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13871 rm -f conftest.$ac_objext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873 (eval $ac_compile) 2>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } &&
13877 { ac_try='test -s conftest.$ac_objext'
13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13885 echo "$as_me: failed program was:" >&5
13886 cat conftest.$ac_ext >&5
13887 ac_lo=`expr '(' $ac_mid ')' + 1`
13889 rm -f conftest.$ac_objext conftest.$ac_ext
13892 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13893 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13894 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13895 { (exit 1); exit 1; }; } ;;
13898 if test "$cross_compiling" = yes; then
13899 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13900 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13901 { (exit 1); exit 1; }; }
13903 cat >conftest.$ac_ext <<_ACEOF
13904 #line $LINENO "configure"
13905 #include "confdefs.h"
13906 $ac_includes_default
13907 long longval () { return (long) (sizeof (unsigned long)); }
13908 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13910 #include <stdlib.h>
13911 #ifdef F77_DUMMY_MAIN
13912 # ifdef __cplusplus
13915 int F77_DUMMY_MAIN() { return 1; }
13921 FILE *f = fopen ("conftest.val", "w");
13924 if (((long) (sizeof (unsigned long))) < 0)
13926 long i = longval ();
13927 if (i != ((long) (sizeof (unsigned long))))
13929 fprintf (f, "%ld\n", i);
13933 unsigned long i = ulongval ();
13934 if (i != ((long) (sizeof (unsigned long))))
13936 fprintf (f, "%lu\n", i);
13938 exit (ferror (f) || fclose (f) != 0);
13944 rm -f conftest$ac_exeext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13946 (eval $ac_link) 2>&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); }; }; then
13955 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13957 echo "$as_me: program exited with status $ac_status" >&5
13958 echo "$as_me: failed program was:" >&5
13959 cat conftest.$ac_ext >&5
13960 ( exit $ac_status )
13961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13962 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13963 { (exit 1); exit 1; }; }
13965 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13970 ac_cv_sizeof_unsigned_long=0
13973 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13974 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13975 cat >>confdefs.h <<_ACEOF
13976 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13981 # Determine memory alignment requirements for the basic C data types.
13983 echo "$as_me:$LINENO: checking for short" >&5
13984 echo $ECHO_N "checking for short... $ECHO_C" >&6
13985 if test "${ac_cv_type_short+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 cat >conftest.$ac_ext <<_ACEOF
13989 #line $LINENO "configure"
13990 #include "confdefs.h"
13991 $ac_includes_default
13992 #ifdef F77_DUMMY_MAIN
13993 # ifdef __cplusplus
13996 int F77_DUMMY_MAIN() { return 1; }
14003 if (sizeof (short))
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011 (eval $ac_compile) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try='test -s conftest.$ac_objext'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 ac_cv_type_short=yes
14023 echo "$as_me: failed program was:" >&5
14024 cat conftest.$ac_ext >&5
14025 ac_cv_type_short=no
14027 rm -f conftest.$ac_objext conftest.$ac_ext
14029 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14030 echo "${ECHO_T}$ac_cv_type_short" >&6
14032 echo "$as_me:$LINENO: checking alignment of short" >&5
14033 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14034 if test "${pgac_cv_alignof_short+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14037 if test "$ac_cv_type_short" = yes; then
14038 if test "$cross_compiling" = yes; then
14039 # Depending upon the size, compute the lo and hi bounds.
14040 cat >conftest.$ac_ext <<_ACEOF
14041 #line $LINENO "configure"
14042 #include "confdefs.h"
14043 $ac_includes_default
14044 struct { char filler; short field; } pgac_struct;
14045 #ifdef F77_DUMMY_MAIN
14046 # ifdef __cplusplus
14049 int F77_DUMMY_MAIN() { return 1; }
14054 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14061 rm -f conftest.$ac_objext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14063 (eval $ac_compile) 2>&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -s conftest.$ac_objext'
14068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); }; }; then
14075 cat >conftest.$ac_ext <<_ACEOF
14076 #line $LINENO "configure"
14077 #include "confdefs.h"
14078 $ac_includes_default
14079 struct { char filler; short field; } pgac_struct;
14080 #ifdef F77_DUMMY_MAIN
14081 # ifdef __cplusplus
14084 int F77_DUMMY_MAIN() { return 1; }
14089 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14096 rm -f conftest.$ac_objext
14097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14098 (eval $ac_compile) 2>&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
14102 { ac_try='test -s conftest.$ac_objext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_hi=$ac_mid; break
14110 echo "$as_me: failed program was:" >&5
14111 cat conftest.$ac_ext >&5
14112 ac_lo=`expr $ac_mid + 1`
14113 if test $ac_lo -le $ac_mid; then
14117 ac_mid=`expr 2 '*' $ac_mid + 1`
14119 rm -f conftest.$ac_objext conftest.$ac_ext
14122 echo "$as_me: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14124 cat >conftest.$ac_ext <<_ACEOF
14125 #line $LINENO "configure"
14126 #include "confdefs.h"
14127 $ac_includes_default
14128 struct { char filler; short field; } pgac_struct;
14129 #ifdef F77_DUMMY_MAIN
14130 # ifdef __cplusplus
14133 int F77_DUMMY_MAIN() { return 1; }
14138 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14145 rm -f conftest.$ac_objext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14147 (eval $ac_compile) 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -s conftest.$ac_objext'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14159 cat >conftest.$ac_ext <<_ACEOF
14160 #line $LINENO "configure"
14161 #include "confdefs.h"
14162 $ac_includes_default
14163 struct { char filler; short field; } pgac_struct;
14164 #ifdef F77_DUMMY_MAIN
14165 # ifdef __cplusplus
14168 int F77_DUMMY_MAIN() { return 1; }
14173 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14180 rm -f conftest.$ac_objext
14181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14182 (eval $ac_compile) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } &&
14186 { ac_try='test -s conftest.$ac_objext'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 ac_lo=$ac_mid; break
14194 echo "$as_me: failed program was:" >&5
14195 cat conftest.$ac_ext >&5
14196 ac_hi=`expr '(' $ac_mid ')' - 1`
14197 if test $ac_mid -le $ac_hi; then
14201 ac_mid=`expr 2 '*' $ac_mid`
14203 rm -f conftest.$ac_objext conftest.$ac_ext
14206 echo "$as_me: failed program was:" >&5
14207 cat conftest.$ac_ext >&5
14210 rm -f conftest.$ac_objext conftest.$ac_ext
14212 rm -f conftest.$ac_objext conftest.$ac_ext
14213 # Binary search between lo and hi bounds.
14214 while test "x$ac_lo" != "x$ac_hi"; do
14215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14216 cat >conftest.$ac_ext <<_ACEOF
14217 #line $LINENO "configure"
14218 #include "confdefs.h"
14219 $ac_includes_default
14220 struct { char filler; short field; } pgac_struct;
14221 #ifdef F77_DUMMY_MAIN
14222 # ifdef __cplusplus
14225 int F77_DUMMY_MAIN() { return 1; }
14230 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14237 rm -f conftest.$ac_objext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239 (eval $ac_compile) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } &&
14243 { ac_try='test -s conftest.$ac_objext'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14251 echo "$as_me: failed program was:" >&5
14252 cat conftest.$ac_ext >&5
14253 ac_lo=`expr '(' $ac_mid ')' + 1`
14255 rm -f conftest.$ac_objext conftest.$ac_ext
14258 ?*) pgac_cv_alignof_short=$ac_lo;;
14259 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14260 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14261 { (exit 1); exit 1; }; } ;;
14264 if test "$cross_compiling" = yes; then
14265 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14266 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14267 { (exit 1); exit 1; }; }
14269 cat >conftest.$ac_ext <<_ACEOF
14270 #line $LINENO "configure"
14271 #include "confdefs.h"
14272 $ac_includes_default
14273 struct { char filler; short field; } pgac_struct;
14274 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14275 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14277 #include <stdlib.h>
14278 #ifdef F77_DUMMY_MAIN
14279 # ifdef __cplusplus
14282 int F77_DUMMY_MAIN() { return 1; }
14288 FILE *f = fopen ("conftest.val", "w");
14291 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14293 long i = longval ();
14294 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14296 fprintf (f, "%ld\n", i);
14300 unsigned long i = ulongval ();
14301 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14303 fprintf (f, "%lu\n", i);
14305 exit (ferror (f) || fclose (f) != 0);
14311 rm -f conftest$ac_exeext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; }; then
14322 pgac_cv_alignof_short=`cat conftest.val`
14324 echo "$as_me: program exited with status $ac_status" >&5
14325 echo "$as_me: failed program was:" >&5
14326 cat conftest.$ac_ext >&5
14327 ( exit $ac_status )
14328 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14329 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14330 { (exit 1); exit 1; }; }
14332 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14337 pgac_cv_alignof_short=0
14340 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14341 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14342 cat >>confdefs.h <<_ACEOF
14343 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14347 echo "$as_me:$LINENO: checking for int" >&5
14348 echo $ECHO_N "checking for int... $ECHO_C" >&6
14349 if test "${ac_cv_type_int+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 cat >conftest.$ac_ext <<_ACEOF
14353 #line $LINENO "configure"
14354 #include "confdefs.h"
14355 $ac_includes_default
14356 #ifdef F77_DUMMY_MAIN
14357 # ifdef __cplusplus
14360 int F77_DUMMY_MAIN() { return 1; }
14373 rm -f conftest.$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375 (eval $ac_compile) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -s conftest.$ac_objext'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14387 echo "$as_me: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14391 rm -f conftest.$ac_objext conftest.$ac_ext
14393 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14394 echo "${ECHO_T}$ac_cv_type_int" >&6
14396 echo "$as_me:$LINENO: checking alignment of int" >&5
14397 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14398 if test "${pgac_cv_alignof_int+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14401 if test "$ac_cv_type_int" = yes; then
14402 if test "$cross_compiling" = yes; then
14403 # Depending upon the size, compute the lo and hi bounds.
14404 cat >conftest.$ac_ext <<_ACEOF
14405 #line $LINENO "configure"
14406 #include "confdefs.h"
14407 $ac_includes_default
14408 struct { char filler; int field; } pgac_struct;
14409 #ifdef F77_DUMMY_MAIN
14410 # ifdef __cplusplus
14413 int F77_DUMMY_MAIN() { return 1; }
14418 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14425 rm -f conftest.$ac_objext
14426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14427 (eval $ac_compile) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); } &&
14431 { ac_try='test -s conftest.$ac_objext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14439 cat >conftest.$ac_ext <<_ACEOF
14440 #line $LINENO "configure"
14441 #include "confdefs.h"
14442 $ac_includes_default
14443 struct { char filler; int field; } pgac_struct;
14444 #ifdef F77_DUMMY_MAIN
14445 # ifdef __cplusplus
14448 int F77_DUMMY_MAIN() { return 1; }
14453 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14460 rm -f conftest.$ac_objext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462 (eval $ac_compile) 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try='test -s conftest.$ac_objext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_hi=$ac_mid; break
14474 echo "$as_me: failed program was:" >&5
14475 cat conftest.$ac_ext >&5
14476 ac_lo=`expr $ac_mid + 1`
14477 if test $ac_lo -le $ac_mid; then
14481 ac_mid=`expr 2 '*' $ac_mid + 1`
14483 rm -f conftest.$ac_objext conftest.$ac_ext
14486 echo "$as_me: failed program was:" >&5
14487 cat conftest.$ac_ext >&5
14488 cat >conftest.$ac_ext <<_ACEOF
14489 #line $LINENO "configure"
14490 #include "confdefs.h"
14491 $ac_includes_default
14492 struct { char filler; int field; } pgac_struct;
14493 #ifdef F77_DUMMY_MAIN
14494 # ifdef __cplusplus
14497 int F77_DUMMY_MAIN() { return 1; }
14502 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14509 rm -f conftest.$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -s conftest.$ac_objext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14523 cat >conftest.$ac_ext <<_ACEOF
14524 #line $LINENO "configure"
14525 #include "confdefs.h"
14526 $ac_includes_default
14527 struct { char filler; int field; } pgac_struct;
14528 #ifdef F77_DUMMY_MAIN
14529 # ifdef __cplusplus
14532 int F77_DUMMY_MAIN() { return 1; }
14537 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14544 rm -f conftest.$ac_objext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14546 (eval $ac_compile) 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -s conftest.$ac_objext'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 ac_lo=$ac_mid; break
14558 echo "$as_me: failed program was:" >&5
14559 cat conftest.$ac_ext >&5
14560 ac_hi=`expr '(' $ac_mid ')' - 1`
14561 if test $ac_mid -le $ac_hi; then
14565 ac_mid=`expr 2 '*' $ac_mid`
14567 rm -f conftest.$ac_objext conftest.$ac_ext
14570 echo "$as_me: failed program was:" >&5
14571 cat conftest.$ac_ext >&5
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14576 rm -f conftest.$ac_objext conftest.$ac_ext
14577 # Binary search between lo and hi bounds.
14578 while test "x$ac_lo" != "x$ac_hi"; do
14579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14580 cat >conftest.$ac_ext <<_ACEOF
14581 #line $LINENO "configure"
14582 #include "confdefs.h"
14583 $ac_includes_default
14584 struct { char filler; int field; } pgac_struct;
14585 #ifdef F77_DUMMY_MAIN
14586 # ifdef __cplusplus
14589 int F77_DUMMY_MAIN() { return 1; }
14594 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14601 rm -f conftest.$ac_objext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14603 (eval $ac_compile) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -s conftest.$ac_objext'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14615 echo "$as_me: failed program was:" >&5
14616 cat conftest.$ac_ext >&5
14617 ac_lo=`expr '(' $ac_mid ')' + 1`
14619 rm -f conftest.$ac_objext conftest.$ac_ext
14622 ?*) pgac_cv_alignof_int=$ac_lo;;
14623 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14624 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14625 { (exit 1); exit 1; }; } ;;
14628 if test "$cross_compiling" = yes; then
14629 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14630 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14631 { (exit 1); exit 1; }; }
14633 cat >conftest.$ac_ext <<_ACEOF
14634 #line $LINENO "configure"
14635 #include "confdefs.h"
14636 $ac_includes_default
14637 struct { char filler; int field; } pgac_struct;
14638 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14639 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14641 #include <stdlib.h>
14642 #ifdef F77_DUMMY_MAIN
14643 # ifdef __cplusplus
14646 int F77_DUMMY_MAIN() { return 1; }
14652 FILE *f = fopen ("conftest.val", "w");
14655 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14657 long i = longval ();
14658 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14660 fprintf (f, "%ld\n", i);
14664 unsigned long i = ulongval ();
14665 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14667 fprintf (f, "%lu\n", i);
14669 exit (ferror (f) || fclose (f) != 0);
14675 rm -f conftest$ac_exeext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14677 (eval $ac_link) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 pgac_cv_alignof_int=`cat conftest.val`
14688 echo "$as_me: program exited with status $ac_status" >&5
14689 echo "$as_me: failed program was:" >&5
14690 cat conftest.$ac_ext >&5
14691 ( exit $ac_status )
14692 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14693 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14694 { (exit 1); exit 1; }; }
14696 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14701 pgac_cv_alignof_int=0
14704 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14705 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14706 cat >>confdefs.h <<_ACEOF
14707 #define ALIGNOF_INT $pgac_cv_alignof_int
14711 echo "$as_me:$LINENO: checking for long" >&5
14712 echo $ECHO_N "checking for long... $ECHO_C" >&6
14713 if test "${ac_cv_type_long+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 cat >conftest.$ac_ext <<_ACEOF
14717 #line $LINENO "configure"
14718 #include "confdefs.h"
14719 $ac_includes_default
14720 #ifdef F77_DUMMY_MAIN
14721 # ifdef __cplusplus
14724 int F77_DUMMY_MAIN() { return 1; }
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739 (eval $ac_compile) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } &&
14743 { ac_try='test -s conftest.$ac_objext'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14749 ac_cv_type_long=yes
14751 echo "$as_me: failed program was:" >&5
14752 cat conftest.$ac_ext >&5
14755 rm -f conftest.$ac_objext conftest.$ac_ext
14757 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14758 echo "${ECHO_T}$ac_cv_type_long" >&6
14760 echo "$as_me:$LINENO: checking alignment of long" >&5
14761 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14762 if test "${pgac_cv_alignof_long+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 if test "$ac_cv_type_long" = yes; then
14766 if test "$cross_compiling" = yes; then
14767 # Depending upon the size, compute the lo and hi bounds.
14768 cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14770 #include "confdefs.h"
14771 $ac_includes_default
14772 struct { char filler; long field; } pgac_struct;
14773 #ifdef F77_DUMMY_MAIN
14774 # ifdef __cplusplus
14777 int F77_DUMMY_MAIN() { return 1; }
14782 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14789 rm -f conftest.$ac_objext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791 (eval $ac_compile) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -s conftest.$ac_objext'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14803 cat >conftest.$ac_ext <<_ACEOF
14804 #line $LINENO "configure"
14805 #include "confdefs.h"
14806 $ac_includes_default
14807 struct { char filler; long field; } pgac_struct;
14808 #ifdef F77_DUMMY_MAIN
14809 # ifdef __cplusplus
14812 int F77_DUMMY_MAIN() { return 1; }
14817 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14824 rm -f conftest.$ac_objext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826 (eval $ac_compile) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_hi=$ac_mid; break
14838 echo "$as_me: failed program was:" >&5
14839 cat conftest.$ac_ext >&5
14840 ac_lo=`expr $ac_mid + 1`
14841 if test $ac_lo -le $ac_mid; then
14845 ac_mid=`expr 2 '*' $ac_mid + 1`
14847 rm -f conftest.$ac_objext conftest.$ac_ext
14850 echo "$as_me: failed program was:" >&5
14851 cat conftest.$ac_ext >&5
14852 cat >conftest.$ac_ext <<_ACEOF
14853 #line $LINENO "configure"
14854 #include "confdefs.h"
14855 $ac_includes_default
14856 struct { char filler; long field; } pgac_struct;
14857 #ifdef F77_DUMMY_MAIN
14858 # ifdef __cplusplus
14861 int F77_DUMMY_MAIN() { return 1; }
14866 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14873 rm -f conftest.$ac_objext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875 (eval $ac_compile) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14887 cat >conftest.$ac_ext <<_ACEOF
14888 #line $LINENO "configure"
14889 #include "confdefs.h"
14890 $ac_includes_default
14891 struct { char filler; long field; } pgac_struct;
14892 #ifdef F77_DUMMY_MAIN
14893 # ifdef __cplusplus
14896 int F77_DUMMY_MAIN() { return 1; }
14901 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14908 rm -f conftest.$ac_objext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14910 (eval $ac_compile) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_lo=$ac_mid; break
14922 echo "$as_me: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 ac_hi=`expr '(' $ac_mid ')' - 1`
14925 if test $ac_mid -le $ac_hi; then
14929 ac_mid=`expr 2 '*' $ac_mid`
14931 rm -f conftest.$ac_objext conftest.$ac_ext
14934 echo "$as_me: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14938 rm -f conftest.$ac_objext conftest.$ac_ext
14940 rm -f conftest.$ac_objext conftest.$ac_ext
14941 # Binary search between lo and hi bounds.
14942 while test "x$ac_lo" != "x$ac_hi"; do
14943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14944 cat >conftest.$ac_ext <<_ACEOF
14945 #line $LINENO "configure"
14946 #include "confdefs.h"
14947 $ac_includes_default
14948 struct { char filler; long field; } pgac_struct;
14949 #ifdef F77_DUMMY_MAIN
14950 # ifdef __cplusplus
14953 int F77_DUMMY_MAIN() { return 1; }
14958 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14965 rm -f conftest.$ac_objext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -s conftest.$ac_objext'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14979 echo "$as_me: failed program was:" >&5
14980 cat conftest.$ac_ext >&5
14981 ac_lo=`expr '(' $ac_mid ')' + 1`
14983 rm -f conftest.$ac_objext conftest.$ac_ext
14986 ?*) pgac_cv_alignof_long=$ac_lo;;
14987 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14988 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14989 { (exit 1); exit 1; }; } ;;
14992 if test "$cross_compiling" = yes; then
14993 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14994 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14995 { (exit 1); exit 1; }; }
14997 cat >conftest.$ac_ext <<_ACEOF
14998 #line $LINENO "configure"
14999 #include "confdefs.h"
15000 $ac_includes_default
15001 struct { char filler; long field; } pgac_struct;
15002 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15003 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15005 #include <stdlib.h>
15006 #ifdef F77_DUMMY_MAIN
15007 # ifdef __cplusplus
15010 int F77_DUMMY_MAIN() { return 1; }
15016 FILE *f = fopen ("conftest.val", "w");
15019 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15021 long i = longval ();
15022 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15024 fprintf (f, "%ld\n", i);
15028 unsigned long i = ulongval ();
15029 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15031 fprintf (f, "%lu\n", i);
15033 exit (ferror (f) || fclose (f) != 0);
15039 rm -f conftest$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 pgac_cv_alignof_long=`cat conftest.val`
15052 echo "$as_me: program exited with status $ac_status" >&5
15053 echo "$as_me: failed program was:" >&5
15054 cat conftest.$ac_ext >&5
15055 ( exit $ac_status )
15056 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15057 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15058 { (exit 1); exit 1; }; }
15060 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15065 pgac_cv_alignof_long=0
15068 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15069 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15070 cat >>confdefs.h <<_ACEOF
15071 #define ALIGNOF_LONG $pgac_cv_alignof_long
15075 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15076 echo "$as_me:$LINENO: checking for long long int" >&5
15077 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15078 if test "${ac_cv_type_long_long_int+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 cat >conftest.$ac_ext <<_ACEOF
15082 #line $LINENO "configure"
15083 #include "confdefs.h"
15084 $ac_includes_default
15085 #ifdef F77_DUMMY_MAIN
15086 # ifdef __cplusplus
15089 int F77_DUMMY_MAIN() { return 1; }
15094 if ((long long int *) 0)
15096 if (sizeof (long long int))
15102 rm -f conftest.$ac_objext
15103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15104 (eval $ac_compile) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -s conftest.$ac_objext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_cv_type_long_long_int=yes
15116 echo "$as_me: failed program was:" >&5
15117 cat conftest.$ac_ext >&5
15118 ac_cv_type_long_long_int=no
15120 rm -f conftest.$ac_objext conftest.$ac_ext
15122 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15123 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15125 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15126 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15127 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 if test "$ac_cv_type_long_long_int" = yes; then
15131 if test "$cross_compiling" = yes; then
15132 # Depending upon the size, compute the lo and hi bounds.
15133 cat >conftest.$ac_ext <<_ACEOF
15134 #line $LINENO "configure"
15135 #include "confdefs.h"
15136 $ac_includes_default
15137 struct { char filler; long long int field; } pgac_struct;
15138 #ifdef F77_DUMMY_MAIN
15139 # ifdef __cplusplus
15142 int F77_DUMMY_MAIN() { return 1; }
15147 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15154 rm -f conftest.$ac_objext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15156 (eval $ac_compile) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -s conftest.$ac_objext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15168 cat >conftest.$ac_ext <<_ACEOF
15169 #line $LINENO "configure"
15170 #include "confdefs.h"
15171 $ac_includes_default
15172 struct { char filler; long long int field; } pgac_struct;
15173 #ifdef F77_DUMMY_MAIN
15174 # ifdef __cplusplus
15177 int F77_DUMMY_MAIN() { return 1; }
15182 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15189 rm -f conftest.$ac_objext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15191 (eval $ac_compile) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -s conftest.$ac_objext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 ac_hi=$ac_mid; break
15203 echo "$as_me: failed program was:" >&5
15204 cat conftest.$ac_ext >&5
15205 ac_lo=`expr $ac_mid + 1`
15206 if test $ac_lo -le $ac_mid; then
15210 ac_mid=`expr 2 '*' $ac_mid + 1`
15212 rm -f conftest.$ac_objext conftest.$ac_ext
15215 echo "$as_me: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15217 cat >conftest.$ac_ext <<_ACEOF
15218 #line $LINENO "configure"
15219 #include "confdefs.h"
15220 $ac_includes_default
15221 struct { char filler; long long int field; } pgac_struct;
15222 #ifdef F77_DUMMY_MAIN
15223 # ifdef __cplusplus
15226 int F77_DUMMY_MAIN() { return 1; }
15231 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15238 rm -f conftest.$ac_objext
15239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15240 (eval $ac_compile) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15252 cat >conftest.$ac_ext <<_ACEOF
15253 #line $LINENO "configure"
15254 #include "confdefs.h"
15255 $ac_includes_default
15256 struct { char filler; long long int field; } pgac_struct;
15257 #ifdef F77_DUMMY_MAIN
15258 # ifdef __cplusplus
15261 int F77_DUMMY_MAIN() { return 1; }
15266 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15273 rm -f conftest.$ac_objext
15274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15275 (eval $ac_compile) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } &&
15279 { ac_try='test -s conftest.$ac_objext'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then
15285 ac_lo=$ac_mid; break
15287 echo "$as_me: failed program was:" >&5
15288 cat conftest.$ac_ext >&5
15289 ac_hi=`expr '(' $ac_mid ')' - 1`
15290 if test $ac_mid -le $ac_hi; then
15294 ac_mid=`expr 2 '*' $ac_mid`
15296 rm -f conftest.$ac_objext conftest.$ac_ext
15299 echo "$as_me: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15303 rm -f conftest.$ac_objext conftest.$ac_ext
15305 rm -f conftest.$ac_objext conftest.$ac_ext
15306 # Binary search between lo and hi bounds.
15307 while test "x$ac_lo" != "x$ac_hi"; do
15308 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15309 cat >conftest.$ac_ext <<_ACEOF
15310 #line $LINENO "configure"
15311 #include "confdefs.h"
15312 $ac_includes_default
15313 struct { char filler; long long int field; } pgac_struct;
15314 #ifdef F77_DUMMY_MAIN
15315 # ifdef __cplusplus
15318 int F77_DUMMY_MAIN() { return 1; }
15323 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15330 rm -f conftest.$ac_objext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15332 (eval $ac_compile) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -s conftest.$ac_objext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15344 echo "$as_me: failed program was:" >&5
15345 cat conftest.$ac_ext >&5
15346 ac_lo=`expr '(' $ac_mid ')' + 1`
15348 rm -f conftest.$ac_objext conftest.$ac_ext
15351 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15352 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15353 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15354 { (exit 1); exit 1; }; } ;;
15357 if test "$cross_compiling" = yes; then
15358 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15359 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15360 { (exit 1); exit 1; }; }
15362 cat >conftest.$ac_ext <<_ACEOF
15363 #line $LINENO "configure"
15364 #include "confdefs.h"
15365 $ac_includes_default
15366 struct { char filler; long long int field; } pgac_struct;
15367 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15368 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15370 #include <stdlib.h>
15371 #ifdef F77_DUMMY_MAIN
15372 # ifdef __cplusplus
15375 int F77_DUMMY_MAIN() { return 1; }
15381 FILE *f = fopen ("conftest.val", "w");
15384 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15386 long i = longval ();
15387 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15389 fprintf (f, "%ld\n", i);
15393 unsigned long i = ulongval ();
15394 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15396 fprintf (f, "%lu\n", i);
15398 exit (ferror (f) || fclose (f) != 0);
15404 rm -f conftest$ac_exeext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15406 (eval $ac_link) 2>&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15415 pgac_cv_alignof_long_long_int=`cat conftest.val`
15417 echo "$as_me: program exited with status $ac_status" >&5
15418 echo "$as_me: failed program was:" >&5
15419 cat conftest.$ac_ext >&5
15420 ( exit $ac_status )
15421 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15422 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15423 { (exit 1); exit 1; }; }
15425 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15430 pgac_cv_alignof_long_long_int=0
15433 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15434 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15435 cat >>confdefs.h <<_ACEOF
15436 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15441 echo "$as_me:$LINENO: checking for double" >&5
15442 echo $ECHO_N "checking for double... $ECHO_C" >&6
15443 if test "${ac_cv_type_double+set}" = set; then
15444 echo $ECHO_N "(cached) $ECHO_C" >&6
15446 cat >conftest.$ac_ext <<_ACEOF
15447 #line $LINENO "configure"
15448 #include "confdefs.h"
15449 $ac_includes_default
15450 #ifdef F77_DUMMY_MAIN
15451 # ifdef __cplusplus
15454 int F77_DUMMY_MAIN() { return 1; }
15461 if (sizeof (double))
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469 (eval $ac_compile) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); } &&
15473 { ac_try='test -s conftest.$ac_objext'
15474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15475 (eval $ac_try) 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 ac_cv_type_double=yes
15481 echo "$as_me: failed program was:" >&5
15482 cat conftest.$ac_ext >&5
15483 ac_cv_type_double=no
15485 rm -f conftest.$ac_objext conftest.$ac_ext
15487 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15488 echo "${ECHO_T}$ac_cv_type_double" >&6
15490 echo "$as_me:$LINENO: checking alignment of double" >&5
15491 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15492 if test "${pgac_cv_alignof_double+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 if test "$ac_cv_type_double" = yes; then
15496 if test "$cross_compiling" = yes; then
15497 # Depending upon the size, compute the lo and hi bounds.
15498 cat >conftest.$ac_ext <<_ACEOF
15499 #line $LINENO "configure"
15500 #include "confdefs.h"
15501 $ac_includes_default
15502 struct { char filler; double field; } pgac_struct;
15503 #ifdef F77_DUMMY_MAIN
15504 # ifdef __cplusplus
15507 int F77_DUMMY_MAIN() { return 1; }
15512 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15519 rm -f conftest.$ac_objext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15521 (eval $ac_compile) 2>&5
15523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
15525 { ac_try='test -s conftest.$ac_objext'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15533 cat >conftest.$ac_ext <<_ACEOF
15534 #line $LINENO "configure"
15535 #include "confdefs.h"
15536 $ac_includes_default
15537 struct { char filler; double field; } pgac_struct;
15538 #ifdef F77_DUMMY_MAIN
15539 # ifdef __cplusplus
15542 int F77_DUMMY_MAIN() { return 1; }
15547 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15554 rm -f conftest.$ac_objext
15555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15556 (eval $ac_compile) 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -s conftest.$ac_objext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 ac_hi=$ac_mid; break
15568 echo "$as_me: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15570 ac_lo=`expr $ac_mid + 1`
15571 if test $ac_lo -le $ac_mid; then
15575 ac_mid=`expr 2 '*' $ac_mid + 1`
15577 rm -f conftest.$ac_objext conftest.$ac_ext
15580 echo "$as_me: failed program was:" >&5
15581 cat conftest.$ac_ext >&5
15582 cat >conftest.$ac_ext <<_ACEOF
15583 #line $LINENO "configure"
15584 #include "confdefs.h"
15585 $ac_includes_default
15586 struct { char filler; double field; } pgac_struct;
15587 #ifdef F77_DUMMY_MAIN
15588 # ifdef __cplusplus
15591 int F77_DUMMY_MAIN() { return 1; }
15596 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15603 rm -f conftest.$ac_objext
15604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15605 (eval $ac_compile) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -s conftest.$ac_objext'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15617 cat >conftest.$ac_ext <<_ACEOF
15618 #line $LINENO "configure"
15619 #include "confdefs.h"
15620 $ac_includes_default
15621 struct { char filler; double field; } pgac_struct;
15622 #ifdef F77_DUMMY_MAIN
15623 # ifdef __cplusplus
15626 int F77_DUMMY_MAIN() { return 1; }
15631 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15638 rm -f conftest.$ac_objext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640 (eval $ac_compile) 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -s conftest.$ac_objext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_lo=$ac_mid; break
15652 echo "$as_me: failed program was:" >&5
15653 cat conftest.$ac_ext >&5
15654 ac_hi=`expr '(' $ac_mid ')' - 1`
15655 if test $ac_mid -le $ac_hi; then
15659 ac_mid=`expr 2 '*' $ac_mid`
15661 rm -f conftest.$ac_objext conftest.$ac_ext
15664 echo "$as_me: failed program was:" >&5
15665 cat conftest.$ac_ext >&5
15668 rm -f conftest.$ac_objext conftest.$ac_ext
15670 rm -f conftest.$ac_objext conftest.$ac_ext
15671 # Binary search between lo and hi bounds.
15672 while test "x$ac_lo" != "x$ac_hi"; do
15673 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15674 cat >conftest.$ac_ext <<_ACEOF
15675 #line $LINENO "configure"
15676 #include "confdefs.h"
15677 $ac_includes_default
15678 struct { char filler; double field; } pgac_struct;
15679 #ifdef F77_DUMMY_MAIN
15680 # ifdef __cplusplus
15683 int F77_DUMMY_MAIN() { return 1; }
15688 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15695 rm -f conftest.$ac_objext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697 (eval $ac_compile) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -s conftest.$ac_objext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15709 echo "$as_me: failed program was:" >&5
15710 cat conftest.$ac_ext >&5
15711 ac_lo=`expr '(' $ac_mid ')' + 1`
15713 rm -f conftest.$ac_objext conftest.$ac_ext
15716 ?*) pgac_cv_alignof_double=$ac_lo;;
15717 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15718 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15719 { (exit 1); exit 1; }; } ;;
15722 if test "$cross_compiling" = yes; then
15723 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15724 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15725 { (exit 1); exit 1; }; }
15727 cat >conftest.$ac_ext <<_ACEOF
15728 #line $LINENO "configure"
15729 #include "confdefs.h"
15730 $ac_includes_default
15731 struct { char filler; double field; } pgac_struct;
15732 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15733 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15735 #include <stdlib.h>
15736 #ifdef F77_DUMMY_MAIN
15737 # ifdef __cplusplus
15740 int F77_DUMMY_MAIN() { return 1; }
15746 FILE *f = fopen ("conftest.val", "w");
15749 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15751 long i = longval ();
15752 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15754 fprintf (f, "%ld\n", i);
15758 unsigned long i = ulongval ();
15759 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15761 fprintf (f, "%lu\n", i);
15763 exit (ferror (f) || fclose (f) != 0);
15769 rm -f conftest$ac_exeext
15770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771 (eval $ac_link) 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 pgac_cv_alignof_double=`cat conftest.val`
15782 echo "$as_me: program exited with status $ac_status" >&5
15783 echo "$as_me: failed program was:" >&5
15784 cat conftest.$ac_ext >&5
15785 ( exit $ac_status )
15786 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15787 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15788 { (exit 1); exit 1; }; }
15790 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15795 pgac_cv_alignof_double=0
15798 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15799 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15800 cat >>confdefs.h <<_ACEOF
15801 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15806 # Compute maximum alignment of any basic type.
15807 # We assume long's alignment is at least as strong as char, short, or int;
15808 # but we must check long long (if it exists) and double.
15810 MAX_ALIGNOF=$pgac_cv_alignof_long
15811 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15812 MAX_ALIGNOF=$pgac_cv_alignof_double
15814 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15815 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15818 cat >>confdefs.h <<_ACEOF
15819 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15824 # Some platforms predefine the types int8, int16, etc. Only check
15825 # a (hopefully) representative subset.
15826 echo "$as_me:$LINENO: checking for int8" >&5
15827 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15828 if test "${ac_cv_type_int8+set}" = set; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 cat >conftest.$ac_ext <<_ACEOF
15832 #line $LINENO "configure"
15833 #include "confdefs.h"
15835 #ifdef HAVE_SUPPORTDEFS_H
15836 #include <SupportDefs.h>
15839 #ifdef F77_DUMMY_MAIN
15840 # ifdef __cplusplus
15843 int F77_DUMMY_MAIN() { return 1; }
15856 rm -f conftest.$ac_objext
15857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15858 (eval $ac_compile) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } &&
15862 { ac_try='test -s conftest.$ac_objext'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_cv_type_int8=yes
15870 echo "$as_me: failed program was:" >&5
15871 cat conftest.$ac_ext >&5
15874 rm -f conftest.$ac_objext conftest.$ac_ext
15876 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15877 echo "${ECHO_T}$ac_cv_type_int8" >&6
15878 if test $ac_cv_type_int8 = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define HAVE_INT8 1
15886 echo "$as_me:$LINENO: checking for uint8" >&5
15887 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15888 if test "${ac_cv_type_uint8+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 cat >conftest.$ac_ext <<_ACEOF
15892 #line $LINENO "configure"
15893 #include "confdefs.h"
15895 #ifdef HAVE_SUPPORTDEFS_H
15896 #include <SupportDefs.h>
15899 #ifdef F77_DUMMY_MAIN
15900 # ifdef __cplusplus
15903 int F77_DUMMY_MAIN() { return 1; }
15910 if (sizeof (uint8))
15916 rm -f conftest.$ac_objext
15917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15918 (eval $ac_compile) 2>&5
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } &&
15922 { ac_try='test -s conftest.$ac_objext'
15923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924 (eval $ac_try) 2>&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); }; }; then
15928 ac_cv_type_uint8=yes
15930 echo "$as_me: failed program was:" >&5
15931 cat conftest.$ac_ext >&5
15932 ac_cv_type_uint8=no
15934 rm -f conftest.$ac_objext conftest.$ac_ext
15936 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15937 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15938 if test $ac_cv_type_uint8 = yes; then
15940 cat >>confdefs.h <<_ACEOF
15941 #define HAVE_UINT8 1
15946 echo "$as_me:$LINENO: checking for int64" >&5
15947 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15948 if test "${ac_cv_type_int64+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 cat >conftest.$ac_ext <<_ACEOF
15952 #line $LINENO "configure"
15953 #include "confdefs.h"
15955 #ifdef HAVE_SUPPORTDEFS_H
15956 #include <SupportDefs.h>
15959 #ifdef F77_DUMMY_MAIN
15960 # ifdef __cplusplus
15963 int F77_DUMMY_MAIN() { return 1; }
15970 if (sizeof (int64))
15976 rm -f conftest.$ac_objext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15978 (eval $ac_compile) 2>&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -s conftest.$ac_objext'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; }; then
15988 ac_cv_type_int64=yes
15990 echo "$as_me: failed program was:" >&5
15991 cat conftest.$ac_ext >&5
15992 ac_cv_type_int64=no
15994 rm -f conftest.$ac_objext conftest.$ac_ext
15996 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15997 echo "${ECHO_T}$ac_cv_type_int64" >&6
15998 if test $ac_cv_type_int64 = yes; then
16000 cat >>confdefs.h <<_ACEOF
16001 #define HAVE_INT64 1
16006 echo "$as_me:$LINENO: checking for uint64" >&5
16007 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16008 if test "${ac_cv_type_uint64+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 cat >conftest.$ac_ext <<_ACEOF
16012 #line $LINENO "configure"
16013 #include "confdefs.h"
16015 #ifdef HAVE_SUPPORTDEFS_H
16016 #include <SupportDefs.h>
16019 #ifdef F77_DUMMY_MAIN
16020 # ifdef __cplusplus
16023 int F77_DUMMY_MAIN() { return 1; }
16030 if (sizeof (uint64))
16036 rm -f conftest.$ac_objext
16037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16038 (eval $ac_compile) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } &&
16042 { ac_try='test -s conftest.$ac_objext'
16043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044 (eval $ac_try) 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; }; then
16048 ac_cv_type_uint64=yes
16050 echo "$as_me: failed program was:" >&5
16051 cat conftest.$ac_ext >&5
16052 ac_cv_type_uint64=no
16054 rm -f conftest.$ac_objext conftest.$ac_ext
16056 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16057 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16058 if test $ac_cv_type_uint64 = yes; then
16060 cat >>confdefs.h <<_ACEOF
16061 #define HAVE_UINT64 1
16068 # We also check for sig_atomic_t, which *should* be defined per ANSI
16069 # C, but is missing on some old platforms.
16070 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16071 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16072 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 cat >conftest.$ac_ext <<_ACEOF
16076 #line $LINENO "configure"
16077 #include "confdefs.h"
16078 #include <signal.h>
16080 #ifdef F77_DUMMY_MAIN
16081 # ifdef __cplusplus
16084 int F77_DUMMY_MAIN() { return 1; }
16089 if ((sig_atomic_t *) 0)
16091 if (sizeof (sig_atomic_t))
16097 rm -f conftest.$ac_objext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16099 (eval $ac_compile) 2>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_cv_type_sig_atomic_t=yes
16111 echo "$as_me: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16113 ac_cv_type_sig_atomic_t=no
16115 rm -f conftest.$ac_objext conftest.$ac_ext
16117 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16118 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16119 if test $ac_cv_type_sig_atomic_t = yes; then
16121 cat >>confdefs.h <<_ACEOF
16122 #define HAVE_SIG_ATOMIC_T 1
16130 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16131 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16132 if test "${pgac_cv_func_posix_signals+set}" = set; then
16133 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 cat >conftest.$ac_ext <<_ACEOF
16136 #line $LINENO "configure"
16137 #include "confdefs.h"
16138 #include <signal.h>
16140 #ifdef F77_DUMMY_MAIN
16141 # ifdef __cplusplus
16144 int F77_DUMMY_MAIN() { return 1; }
16149 struct sigaction act, oact;
16150 sigemptyset(&act.sa_mask);
16151 act.sa_flags = SA_RESTART;
16152 sigaction(0, &act, &oact);
16157 rm -f conftest.$ac_objext conftest$ac_exeext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16159 (eval $ac_link) 2>&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } &&
16163 { ac_try='test -s conftest$ac_exeext'
16164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16165 (eval $ac_try) 2>&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); }; }; then
16169 pgac_cv_func_posix_signals=yes
16171 echo "$as_me: failed program was:" >&5
16172 cat conftest.$ac_ext >&5
16173 pgac_cv_func_posix_signals=no
16175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16177 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16178 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16179 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16181 cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_POSIX_SIGNALS
16186 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16188 if test $ac_cv_func_fseeko = yes; then
16189 # Check whether --enable-largefile or --disable-largefile was given.
16190 if test "${enable_largefile+set}" = set; then
16191 enableval="$enable_largefile"
16194 if test "$enable_largefile" != no; then
16196 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16197 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16198 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 ac_cv_sys_largefile_CC=no
16202 if test "$GCC" != yes; then
16205 # IRIX 6.2 and later do not support large files by default,
16206 # so use the C compiler's -n32 option if that helps.
16207 cat >conftest.$ac_ext <<_ACEOF
16208 #line $LINENO "configure"
16209 #include "confdefs.h"
16210 #include <sys/types.h>
16211 /* Check that off_t can represent 2**63 - 1 correctly.
16212 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16213 since some C++ compilers masquerading as C compilers
16214 incorrectly reject 9223372036854775807. */
16215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16216 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16217 && LARGE_OFF_T % 2147483647 == 1)
16219 #ifdef F77_DUMMY_MAIN
16220 # ifdef __cplusplus
16223 int F77_DUMMY_MAIN() { return 1; }
16233 rm -f conftest.$ac_objext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16235 (eval $ac_compile) 2>&5
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); } &&
16239 { ac_try='test -s conftest.$ac_objext'
16240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241 (eval $ac_try) 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; }; then
16247 echo "$as_me: failed program was:" >&5
16248 cat conftest.$ac_ext >&5
16250 rm -f conftest.$ac_objext
16252 rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254 (eval $ac_compile) 2>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
16258 { ac_try='test -s conftest.$ac_objext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 ac_cv_sys_largefile_CC=' -n32'; break
16266 echo "$as_me: failed program was:" >&5
16267 cat conftest.$ac_ext >&5
16269 rm -f conftest.$ac_objext
16273 rm -f conftest.$ac_ext
16276 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16277 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16278 if test "$ac_cv_sys_largefile_CC" != no; then
16279 CC=$CC$ac_cv_sys_largefile_CC
16282 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16283 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16284 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16288 ac_cv_sys_file_offset_bits=no
16289 cat >conftest.$ac_ext <<_ACEOF
16290 #line $LINENO "configure"
16291 #include "confdefs.h"
16292 #include <sys/types.h>
16293 /* Check that off_t can represent 2**63 - 1 correctly.
16294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16295 since some C++ compilers masquerading as C compilers
16296 incorrectly reject 9223372036854775807. */
16297 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16298 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16299 && LARGE_OFF_T % 2147483647 == 1)
16301 #ifdef F77_DUMMY_MAIN
16302 # ifdef __cplusplus
16305 int F77_DUMMY_MAIN() { return 1; }
16315 rm -f conftest.$ac_objext
16316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16317 (eval $ac_compile) 2>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } &&
16321 { ac_try='test -s conftest.$ac_objext'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16329 echo "$as_me: failed program was:" >&5
16330 cat conftest.$ac_ext >&5
16332 rm -f conftest.$ac_objext conftest.$ac_ext
16333 cat >conftest.$ac_ext <<_ACEOF
16334 #line $LINENO "configure"
16335 #include "confdefs.h"
16336 #define _FILE_OFFSET_BITS 64
16337 #include <sys/types.h>
16338 /* Check that off_t can represent 2**63 - 1 correctly.
16339 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16340 since some C++ compilers masquerading as C compilers
16341 incorrectly reject 9223372036854775807. */
16342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16343 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16344 && LARGE_OFF_T % 2147483647 == 1)
16346 #ifdef F77_DUMMY_MAIN
16347 # ifdef __cplusplus
16350 int F77_DUMMY_MAIN() { return 1; }
16360 rm -f conftest.$ac_objext
16361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16362 (eval $ac_compile) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } &&
16366 { ac_try='test -s conftest.$ac_objext'
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 ac_cv_sys_file_offset_bits=64; break
16374 echo "$as_me: failed program was:" >&5
16375 cat conftest.$ac_ext >&5
16377 rm -f conftest.$ac_objext conftest.$ac_ext
16381 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16382 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16383 if test "$ac_cv_sys_file_offset_bits" != no; then
16385 cat >>confdefs.h <<_ACEOF
16386 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16391 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16392 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16393 if test "${ac_cv_sys_large_files+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 ac_cv_sys_large_files=no
16398 cat >conftest.$ac_ext <<_ACEOF
16399 #line $LINENO "configure"
16400 #include "confdefs.h"
16401 #include <sys/types.h>
16402 /* Check that off_t can represent 2**63 - 1 correctly.
16403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16404 since some C++ compilers masquerading as C compilers
16405 incorrectly reject 9223372036854775807. */
16406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16408 && LARGE_OFF_T % 2147483647 == 1)
16410 #ifdef F77_DUMMY_MAIN
16411 # ifdef __cplusplus
16414 int F77_DUMMY_MAIN() { return 1; }
16424 rm -f conftest.$ac_objext
16425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16426 (eval $ac_compile) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16438 echo "$as_me: failed program was:" >&5
16439 cat conftest.$ac_ext >&5
16441 rm -f conftest.$ac_objext conftest.$ac_ext
16442 cat >conftest.$ac_ext <<_ACEOF
16443 #line $LINENO "configure"
16444 #include "confdefs.h"
16445 #define _LARGE_FILES 1
16446 #include <sys/types.h>
16447 /* Check that off_t can represent 2**63 - 1 correctly.
16448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16449 since some C++ compilers masquerading as C compilers
16450 incorrectly reject 9223372036854775807. */
16451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16453 && LARGE_OFF_T % 2147483647 == 1)
16455 #ifdef F77_DUMMY_MAIN
16456 # ifdef __cplusplus
16459 int F77_DUMMY_MAIN() { return 1; }
16469 rm -f conftest.$ac_objext
16470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16471 (eval $ac_compile) 2>&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -s conftest.$ac_objext'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 ac_cv_sys_large_files=1; break
16483 echo "$as_me: failed program was:" >&5
16484 cat conftest.$ac_ext >&5
16486 rm -f conftest.$ac_objext conftest.$ac_ext
16490 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16491 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16492 if test "$ac_cv_sys_large_files" != no; then
16494 cat >>confdefs.h <<_ACEOF
16495 #define _LARGE_FILES $ac_cv_sys_large_files
16505 # Select semaphore implementation type.
16506 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16508 cat >>confdefs.h <<\_ACEOF
16509 #define USE_NAMED_POSIX_SEMAPHORES 1
16512 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16514 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16516 cat >>confdefs.h <<\_ACEOF
16517 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16520 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16523 cat >>confdefs.h <<\_ACEOF
16524 #define USE_SYSV_SEMAPHORES 1
16527 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16532 # Select shared-memory implementation type.
16534 cat >>confdefs.h <<\_ACEOF
16535 #define USE_SYSV_SHARED_MEMORY 1
16538 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16541 if test "$enable_nls" = yes ; then
16543 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16544 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16545 if test "${ac_cv_search_gettext+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 ac_func_search_save_LIBS=$LIBS
16549 ac_cv_search_gettext=no
16550 cat >conftest.$ac_ext <<_ACEOF
16551 #line $LINENO "configure"
16552 #include "confdefs.h"
16554 /* Override any gcc2 internal prototype to avoid an error. */
16558 /* We use char because int might match the return type of a gcc2
16559 builtin and then its argument prototype would still apply. */
16561 #ifdef F77_DUMMY_MAIN
16562 # ifdef __cplusplus
16565 int F77_DUMMY_MAIN() { return 1; }
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577 (eval $ac_link) 2>&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -s conftest$ac_exeext'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16587 ac_cv_search_gettext="none required"
16589 echo "$as_me: failed program was:" >&5
16590 cat conftest.$ac_ext >&5
16592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16593 if test "$ac_cv_search_gettext" = no; then
16594 for ac_lib in intl; do
16595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16596 cat >conftest.$ac_ext <<_ACEOF
16597 #line $LINENO "configure"
16598 #include "confdefs.h"
16600 /* Override any gcc2 internal prototype to avoid an error. */
16604 /* We use char because int might match the return type of a gcc2
16605 builtin and then its argument prototype would still apply. */
16607 #ifdef F77_DUMMY_MAIN
16608 # ifdef __cplusplus
16611 int F77_DUMMY_MAIN() { return 1; }
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16623 (eval $ac_link) 2>&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
16627 { ac_try='test -s conftest$ac_exeext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 ac_cv_search_gettext="-l$ac_lib"
16636 echo "$as_me: failed program was:" >&5
16637 cat conftest.$ac_ext >&5
16639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16642 LIBS=$ac_func_search_save_LIBS
16644 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16645 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16646 if test "$ac_cv_search_gettext" != no; then
16647 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16650 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16651 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16652 { (exit 1); exit 1; }; }
16655 if test "${ac_cv_header_libintl_h+set}" = set; then
16656 echo "$as_me:$LINENO: checking for libintl.h" >&5
16657 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16658 if test "${ac_cv_header_libintl_h+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16662 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16664 # Is the header compilable?
16665 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16666 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16667 cat >conftest.$ac_ext <<_ACEOF
16668 #line $LINENO "configure"
16669 #include "confdefs.h"
16670 $ac_includes_default
16671 #include <libintl.h>
16673 rm -f conftest.$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675 (eval $ac_compile) 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -s conftest.$ac_objext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_header_compiler=yes
16687 echo "$as_me: failed program was:" >&5
16688 cat conftest.$ac_ext >&5
16689 ac_header_compiler=no
16691 rm -f conftest.$ac_objext conftest.$ac_ext
16692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16693 echo "${ECHO_T}$ac_header_compiler" >&6
16695 # Is the header present?
16696 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16697 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16698 cat >conftest.$ac_ext <<_ACEOF
16699 #line $LINENO "configure"
16700 #include "confdefs.h"
16701 #include <libintl.h>
16703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16706 egrep -v '^ *\+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } >/dev/null; then
16711 if test -s conftest.err; then
16712 ac_cpp_err=$ac_c_preproc_warn_flag
16719 if test -z "$ac_cpp_err"; then
16720 ac_header_preproc=yes
16722 echo "$as_me: failed program was:" >&5
16723 cat conftest.$ac_ext >&5
16724 ac_header_preproc=no
16726 rm -f conftest.err conftest.$ac_ext
16727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16728 echo "${ECHO_T}$ac_header_preproc" >&6
16730 # So? What about this header?
16731 case $ac_header_compiler:$ac_header_preproc in
16733 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16734 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16736 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16738 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16739 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16741 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16743 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16745 echo "$as_me:$LINENO: checking for libintl.h" >&5
16746 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16747 if test "${ac_cv_header_libintl_h+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16750 ac_cv_header_libintl_h=$ac_header_preproc
16752 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16753 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16756 if test $ac_cv_header_libintl_h = yes; then
16759 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16760 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16761 { (exit 1); exit 1; }; }
16765 for ac_prog in msgfmt
16767 # Extract the first word of "$ac_prog", so it can be a program name with args.
16768 set dummy $ac_prog; ac_word=$2
16769 echo "$as_me:$LINENO: checking for $ac_word" >&5
16770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16771 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16772 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 if test -n "$MSGFMT"; then
16775 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16778 for as_dir in $PATH
16781 test -z "$as_dir" && as_dir=.
16782 for ac_exec_ext in '' $ac_executable_extensions; do
16783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16784 ac_cv_prog_MSGFMT="$ac_prog"
16785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16793 MSGFMT=$ac_cv_prog_MSGFMT
16794 if test -n "$MSGFMT"; then
16795 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16796 echo "${ECHO_T}$MSGFMT" >&6
16798 echo "$as_me:$LINENO: result: no" >&5
16799 echo "${ECHO_T}no" >&6
16802 test -n "$MSGFMT" && break
16805 if test -z "$MSGFMT"; then
16806 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16807 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16808 { (exit 1); exit 1; }; }
16810 for ac_prog in msgmerge
16812 # Extract the first word of "$ac_prog", so it can be a program name with args.
16813 set dummy $ac_prog; ac_word=$2
16814 echo "$as_me:$LINENO: checking for $ac_word" >&5
16815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16816 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16819 if test -n "$MSGMERGE"; then
16820 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16823 for as_dir in $PATH
16826 test -z "$as_dir" && as_dir=.
16827 for ac_exec_ext in '' $ac_executable_extensions; do
16828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16829 ac_cv_prog_MSGMERGE="$ac_prog"
16830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16838 MSGMERGE=$ac_cv_prog_MSGMERGE
16839 if test -n "$MSGMERGE"; then
16840 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16841 echo "${ECHO_T}$MSGMERGE" >&6
16843 echo "$as_me:$LINENO: result: no" >&5
16844 echo "${ECHO_T}no" >&6
16847 test -n "$MSGMERGE" && break
16850 for ac_prog in xgettext
16852 # Extract the first word of "$ac_prog", so it can be a program name with args.
16853 set dummy $ac_prog; ac_word=$2
16854 echo "$as_me:$LINENO: checking for $ac_word" >&5
16855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16856 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16857 echo $ECHO_N "(cached) $ECHO_C" >&6
16859 if test -n "$XGETTEXT"; then
16860 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16863 for as_dir in $PATH
16866 test -z "$as_dir" && as_dir=.
16867 for ac_exec_ext in '' $ac_executable_extensions; do
16868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16869 ac_cv_prog_XGETTEXT="$ac_prog"
16870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16878 XGETTEXT=$ac_cv_prog_XGETTEXT
16879 if test -n "$XGETTEXT"; then
16880 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16881 echo "${ECHO_T}$XGETTEXT" >&6
16883 echo "$as_me:$LINENO: result: no" >&5
16884 echo "${ECHO_T}no" >&6
16887 test -n "$XGETTEXT" && break
16891 # Note: share/locale is always the default, independent of $datadir
16892 localedir='${prefix}/share/locale'
16893 if test x"$prefix" = x"NONE"; then
16894 exp_localedir="$ac_default_prefix/share/locale"
16896 exp_localedir="$prefix/share/locale"
16901 cat >>confdefs.h <<_ACEOF
16902 #define LOCALEDIR "$exp_localedir"
16908 # Check for Tcl configuration script tclConfig.sh
16909 if test "$with_tcl" = yes; then
16910 for ac_prog in tclsh tcl
16912 # Extract the first word of "$ac_prog", so it can be a program name with args.
16913 set dummy $ac_prog; ac_word=$2
16914 echo "$as_me:$LINENO: checking for $ac_word" >&5
16915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16916 if test "${ac_cv_path_TCLSH+set}" = set; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16925 for as_dir in $PATH
16928 test -z "$as_dir" && as_dir=.
16929 for ac_exec_ext in '' $ac_executable_extensions; do
16930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16931 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16941 TCLSH=$ac_cv_path_TCLSH
16943 if test -n "$TCLSH"; then
16944 echo "$as_me:$LINENO: result: $TCLSH" >&5
16945 echo "${ECHO_T}$TCLSH" >&6
16947 echo "$as_me:$LINENO: result: no" >&5
16948 echo "${ECHO_T}no" >&6
16951 test -n "$TCLSH" && break
16954 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16955 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16956 # Let user override test
16957 if test -z "$TCL_CONFIG_SH"; then
16958 pgac_test_dirs="$with_tclconfig"
16960 set X $pgac_test_dirs; shift
16961 if test $# -eq 0; then
16962 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16963 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16964 { (exit 1); exit 1; }; }
16965 set X `echo 'puts $auto_path' | $TCLSH`; shift
16969 if test -r "$pgac_dir/tclConfig.sh"; then
16970 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16976 if test -z "$TCL_CONFIG_SH"; then
16977 echo "$as_me:$LINENO: result: no" >&5
16978 echo "${ECHO_T}no" >&6
16979 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16980 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16981 { (exit 1); exit 1; }; }
16983 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16984 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16990 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16991 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16992 eval TCL_LIBS=\"$TCL_LIBS\"
16993 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16994 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16998 # Check for Tk configuration script tkConfig.sh
16999 if test "$with_tk" = yes; then
17000 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17001 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17002 # Let user override test
17003 if test -z "$TK_CONFIG_SH"; then
17004 pgac_test_dirs="$with_tkconfig $with_tclconfig"
17006 set X $pgac_test_dirs; shift
17007 if test $# -eq 0; then
17008 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17009 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17010 { (exit 1); exit 1; }; }
17011 set X `echo 'puts $auto_path' | $TCLSH`; shift
17015 if test -r "$pgac_dir/tkConfig.sh"; then
17016 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17022 if test -z "$TK_CONFIG_SH"; then
17023 echo "$as_me:$LINENO: result: no" >&5
17024 echo "${ECHO_T}no" >&6
17025 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17026 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17027 { (exit 1); exit 1; }; }
17029 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17030 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17036 eval TK_LIBS=\"$TK_LIBS\"
17037 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17038 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17044 # Check for DocBook and tools
17046 for ac_prog in onsgmls nsgmls
17048 # Extract the first word of "$ac_prog", so it can be a program name with args.
17049 set dummy $ac_prog; ac_word=$2
17050 echo "$as_me:$LINENO: checking for $ac_word" >&5
17051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17052 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17053 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 if test -n "$NSGMLS"; then
17056 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17059 for as_dir in $PATH
17062 test -z "$as_dir" && as_dir=.
17063 for ac_exec_ext in '' $ac_executable_extensions; do
17064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17065 ac_cv_prog_NSGMLS="$ac_prog"
17066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17074 NSGMLS=$ac_cv_prog_NSGMLS
17075 if test -n "$NSGMLS"; then
17076 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17077 echo "${ECHO_T}$NSGMLS" >&6
17079 echo "$as_me:$LINENO: result: no" >&5
17080 echo "${ECHO_T}no" >&6
17083 test -n "$NSGMLS" && break
17086 for ac_prog in openjade jade
17088 # Extract the first word of "$ac_prog", so it can be a program name with args.
17089 set dummy $ac_prog; ac_word=$2
17090 echo "$as_me:$LINENO: checking for $ac_word" >&5
17091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17092 if test "${ac_cv_prog_JADE+set}" = set; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 if test -n "$JADE"; then
17096 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17099 for as_dir in $PATH
17102 test -z "$as_dir" && as_dir=.
17103 for ac_exec_ext in '' $ac_executable_extensions; do
17104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17105 ac_cv_prog_JADE="$ac_prog"
17106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17114 JADE=$ac_cv_prog_JADE
17115 if test -n "$JADE"; then
17116 echo "$as_me:$LINENO: result: $JADE" >&5
17117 echo "${ECHO_T}$JADE" >&6
17119 echo "$as_me:$LINENO: result: no" >&5
17120 echo "${ECHO_T}no" >&6
17123 test -n "$JADE" && break
17127 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
17128 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
17129 if test "${pgac_cv_check_docbook+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17132 cat >conftest.sgml <<EOF
17133 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
17135 <title>test</title>
17137 <title>random</title>
17139 <title>testsect</title>
17146 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
17147 if test $? -eq 0; then
17148 pgac_cv_check_docbook=yes
17150 pgac_cv_check_docbook=no
17152 rm -f conftest.sgml
17154 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17155 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17157 have_docbook=$pgac_cv_check_docbook
17160 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17161 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17162 if test "${pgac_cv_path_stylesheets+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17165 if test -n "$DOCBOOKSTYLE"; then
17166 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17168 for pgac_prefix in /usr /usr/local /opt; do
17169 for pgac_infix in share lib; do
17170 for pgac_postfix in \
17171 sgml/stylesheets/nwalsh-modular \
17172 sgml/stylesheets/docbook \
17173 sgml/docbook/dsssl/modular \
17174 sgml/docbook/stylesheet/dsssl/modular \
17175 sgml/docbook/dsssl-stylesheets
17177 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17178 if test -r "$pgac_candidate/html/docbook.dsl" \
17179 && test -r "$pgac_candidate/print/docbook.dsl"
17181 pgac_cv_path_stylesheets=$pgac_candidate
17190 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17192 if test -n "$DOCBOOKSTYLE"; then
17193 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17194 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17196 echo "$as_me:$LINENO: result: no" >&5
17197 echo "${ECHO_T}no" >&6
17199 if test -n "$DOCBOOKSTYLE"; then
17200 for ac_prog in collateindex.pl
17202 # Extract the first word of "$ac_prog", so it can be a program name with args.
17203 set dummy $ac_prog; ac_word=$2
17204 echo "$as_me:$LINENO: checking for $ac_word" >&5
17205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17206 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 case $COLLATEINDEX in
17211 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17215 for as_dir in $DOCBOOKSTYLE/bin $PATH
17218 test -z "$as_dir" && as_dir=.
17219 for ac_exec_ext in '' $ac_executable_extensions; do
17220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17221 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17231 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17233 if test -n "$COLLATEINDEX"; then
17234 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17235 echo "${ECHO_T}$COLLATEINDEX" >&6
17237 echo "$as_me:$LINENO: result: no" >&5
17238 echo "${ECHO_T}no" >&6
17241 test -n "$COLLATEINDEX" && break
17245 for ac_prog in collateindex.pl
17247 # Extract the first word of "$ac_prog", so it can be a program name with args.
17248 set dummy $ac_prog; ac_word=$2
17249 echo "$as_me:$LINENO: checking for $ac_word" >&5
17250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17251 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 case $COLLATEINDEX in
17256 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17260 for as_dir in $PATH
17263 test -z "$as_dir" && as_dir=.
17264 for ac_exec_ext in '' $ac_executable_extensions; do
17265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17266 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17276 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17278 if test -n "$COLLATEINDEX"; then
17279 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17280 echo "${ECHO_T}$COLLATEINDEX" >&6
17282 echo "$as_me:$LINENO: result: no" >&5
17283 echo "${ECHO_T}no" >&6
17286 test -n "$COLLATEINDEX" && break
17290 for ac_prog in sgmlspl
17292 # Extract the first word of "$ac_prog", so it can be a program name with args.
17293 set dummy $ac_prog; ac_word=$2
17294 echo "$as_me:$LINENO: checking for $ac_word" >&5
17295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17296 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 if test -n "$SGMLSPL"; then
17300 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17303 for as_dir in $PATH
17306 test -z "$as_dir" && as_dir=.
17307 for ac_exec_ext in '' $ac_executable_extensions; do
17308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17309 ac_cv_prog_SGMLSPL="$ac_prog"
17310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17318 SGMLSPL=$ac_cv_prog_SGMLSPL
17319 if test -n "$SGMLSPL"; then
17320 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17321 echo "${ECHO_T}$SGMLSPL" >&6
17323 echo "$as_me:$LINENO: result: no" >&5
17324 echo "${ECHO_T}no" >&6
17327 test -n "$SGMLSPL" && break
17332 # prepare build tree if outside source tree
17333 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17334 # Note 2: /bin/pwd might be better than shell's built-in at getting
17335 # a symlink-free name.
17336 if test "$no_create" != yes; then
17337 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17342 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17343 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17344 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17345 || { { echo "$as_me:$LINENO: error: failed" >&5
17346 echo "$as_me: error: failed" >&2;}
17347 { (exit 1); exit 1; }; }
17348 echo "$as_me:$LINENO: result: done" >&5
17349 echo "${ECHO_T}done" >&6
17354 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17357 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}"
17360 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17363 cat >confcache <<\_ACEOF
17364 # This file is a shell script that caches the results of configure
17365 # tests run on this system so they can be shared between configure
17366 # scripts and configure runs, see configure's option --config-cache.
17367 # It is not useful on other systems. If it contains results you don't
17368 # want to keep, you may remove or edit it.
17370 # config.status only pays attention to the cache file if you give it
17371 # the --recheck option to rerun configure.
17373 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17375 # following values.
17379 # The following way of writing the cache mishandles newlines in values,
17380 # but we know of no workaround that is simple, portable, and efficient.
17381 # So, don't put newlines in cache variables' values.
17382 # Ultrix sh set writes to stderr and can't be redirected directly,
17383 # and sets the high bit in the cache file unless we assign to the vars.
17386 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17388 # `set' does not quote correctly, so add quotes (double-quote
17389 # substitution turns \\\\ into \\, and sed turns \\ into \).
17392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17395 # `set' quotes correctly as required by POSIX, so do not add quotes.
17397 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17406 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17408 if cmp -s $cache_file confcache; then :; else
17409 if test -w $cache_file; then
17410 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17411 cat confcache >$cache_file
17413 echo "not updating unwritable cache $cache_file"
17418 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17419 # Let make expand exec_prefix.
17420 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17422 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17423 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17424 # trailing colons and then remove the whole line if VPATH becomes empty
17425 # (actually we leave an empty line to preserve line numbers).
17426 if test "x$srcdir" = x.; then
17427 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17428 s/:*\$(srcdir):*/:/;
17429 s/:*\${srcdir}:*/:/;
17431 s/^\([^=]*=[ ]*\):*/\1/;
17437 DEFS=-DHAVE_CONFIG_H
17440 : ${CONFIG_STATUS=./config.status}
17441 ac_clean_files_save=$ac_clean_files
17442 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17443 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17444 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17445 cat >$CONFIG_STATUS <<_ACEOF
17447 # Generated by $as_me.
17448 # Run this file to recreate the current configuration.
17449 # Compiler output produced by configure, useful for debugging
17450 # configure, is in config.log if it exists.
17453 SHELL=\${CONFIG_SHELL-$SHELL}
17456 cat >>$CONFIG_STATUS <<\_ACEOF
17458 ## --------------------- ##
17459 ## M4sh Initialization. ##
17460 ## --------------------- ##
17462 # Be Bourne compatible
17463 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17466 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17471 # Support unset when possible.
17472 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17478 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17479 { $as_unset LANG || test "${LANG+set}" != set; } ||
17480 { LANG=C; export LANG; }
17481 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17482 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17483 { LC_ALL=C; export LC_ALL; }
17484 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17485 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17486 { LC_TIME=C; export LC_TIME; }
17487 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17488 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17489 { LC_CTYPE=C; export LC_CTYPE; }
17490 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17491 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17492 { LANGUAGE=C; export LANGUAGE; }
17493 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17494 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17495 { LC_COLLATE=C; export LC_COLLATE; }
17496 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17497 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17498 { LC_NUMERIC=C; export LC_NUMERIC; }
17499 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17500 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17501 { LC_MESSAGES=C; export LC_MESSAGES; }
17504 # Name of the executable.
17505 as_me=`(basename "$0") 2>/dev/null ||
17506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17507 X"$0" : 'X\(//\)$' \| \
17508 X"$0" : 'X\(/\)$' \| \
17509 . : '\(.\)' 2>/dev/null ||
17511 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17512 /^X\/\(\/\/\)$/{ s//\1/; q; }
17513 /^X\/\(\/\).*/{ s//\1/; q; }
17516 # PATH needs CR, and LINENO needs CR and PATH.
17517 # Avoid depending upon Character Ranges.
17518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17521 as_cr_digits='0123456789'
17522 as_cr_alnum=$as_cr_Letters$as_cr_digits
17524 # The user is always right.
17525 if test "${PATH_SEPARATOR+set}" != set; then
17526 echo "#! /bin/sh" >conftest.sh
17527 echo "exit 0" >>conftest.sh
17528 chmod +x conftest.sh
17529 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17538 as_lineno_1=$LINENO
17539 as_lineno_2=$LINENO
17540 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17541 test "x$as_lineno_1" != "x$as_lineno_2" &&
17542 test "x$as_lineno_3" = "x$as_lineno_2" || {
17543 # Find who we are. Look in the path if we contain no path at all
17546 *[\\/]* ) as_myself=$0 ;;
17547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17548 for as_dir in $PATH
17551 test -z "$as_dir" && as_dir=.
17552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17557 # We did not find ourselves, most probably we were run as `sh COMMAND'
17558 # in which case we are not to be found in the path.
17559 if test "x$as_myself" = x; then
17562 if test ! -f "$as_myself"; then
17563 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17564 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17565 { (exit 1); exit 1; }; }
17567 case $CONFIG_SHELL in
17569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17570 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17573 test -z "$as_dir" && as_dir=.
17574 for as_base in sh bash ksh sh5; do
17577 if ("$as_dir/$as_base" -c '
17578 as_lineno_1=$LINENO
17579 as_lineno_2=$LINENO
17580 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17581 test "x$as_lineno_1" != "x$as_lineno_2" &&
17582 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17583 CONFIG_SHELL=$as_dir/$as_base
17584 export CONFIG_SHELL
17585 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17593 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17594 # uniformly replaced by the line number. The first 'sed' inserts a
17595 # line-number line before each line; the second 'sed' does the real
17596 # work. The second script uses 'N' to pair each line-number line
17597 # with the numbered line, and appends trailing '-' during
17598 # substitution so that $LINENO is not a special case at line end.
17599 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17600 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17601 sed '=' <$as_myself |
17606 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17609 s,^['$as_cr_digits']*\n,,
17610 ' >$as_me.lineno &&
17611 chmod +x $as_me.lineno ||
17612 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17613 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17614 { (exit 1); exit 1; }; }
17616 # Don't try to exec as it changes $[0], causing all sort of problems
17617 # (the dirname of $[0] is not the place where we might find the
17618 # original and so on. Autoconf is especially sensible to this).
17620 # Exit status is that of the last command.
17625 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17626 *c*,-n*) ECHO_N= ECHO_C='
17628 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17629 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17632 if expr a : '\(a\)' >/dev/null 2>&1; then
17638 rm -f conf$$ conf$$.exe conf$$.file
17640 if ln -s conf$$.file conf$$ 2>/dev/null; then
17641 # We could just check for DJGPP; but this test a) works b) is more generic
17642 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17643 if test -f conf$$.exe; then
17644 # Don't use ln at all; we don't have any links
17649 elif ln conf$$.file conf$$ 2>/dev/null; then
17654 rm -f conf$$ conf$$.exe conf$$.file
17656 as_executable_p="test -f"
17658 # Sed expression to map a string onto a valid CPP name.
17659 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17661 # Sed expression to map a string onto a valid variable name.
17662 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17666 # We need space, tab and new line, in precisely that order.
17672 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17676 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17677 # report actual input values of CONFIG_FILES etc. instead of their
17678 # values after options handling. Logging --version etc. is OK.
17682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17683 ## Running $as_me. ##
17688 This file was extended by PostgreSQL $as_me 7.4beta1, which was
17689 generated by GNU Autoconf 2.53. Invocation command line was
17691 CONFIG_FILES = $CONFIG_FILES
17692 CONFIG_HEADERS = $CONFIG_HEADERS
17693 CONFIG_LINKS = $CONFIG_LINKS
17694 CONFIG_COMMANDS = $CONFIG_COMMANDS
17698 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17702 # Files that config.status was made for.
17703 if test -n "$ac_config_files"; then
17704 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17707 if test -n "$ac_config_headers"; then
17708 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17711 if test -n "$ac_config_links"; then
17712 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17715 if test -n "$ac_config_commands"; then
17716 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17719 cat >>$CONFIG_STATUS <<\_ACEOF
17722 \`$as_me' instantiates files from templates according to the
17723 current configuration.
17725 Usage: $0 [OPTIONS] [FILE]...
17727 -h, --help print this help, then exit
17728 -V, --version print version number, then exit
17729 -d, --debug don't remove temporary files
17730 --recheck update $as_me by reconfiguring in the same conditions
17731 --file=FILE[:TEMPLATE]
17732 instantiate the configuration file FILE
17733 --header=FILE[:TEMPLATE]
17734 instantiate the configuration header FILE
17736 Configuration files:
17739 Configuration headers:
17742 Configuration links:
17745 Report bugs to <bug-autoconf@gnu.org>."
17748 cat >>$CONFIG_STATUS <<_ACEOF
17750 PostgreSQL config.status 7.4beta1
17751 configured by $0, generated by GNU Autoconf 2.53,
17752 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17754 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17755 Free Software Foundation, Inc.
17756 This config.status script is free software; the Free Software Foundation
17757 gives unlimited permission to copy, distribute and modify it."
17761 cat >>$CONFIG_STATUS <<\_ACEOF
17762 # If no file are specified by the user, then we need to provide default
17763 # value. By we need to know if files were specified by the user.
17769 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17770 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17772 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17776 *) # This is not an option, so the user has probably given explicit
17778 ac_need_defaults=false;;
17782 # Handling of the options.
17784 cat >>$CONFIG_STATUS <<_ACEOF
17785 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17786 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17787 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17789 cat >>$CONFIG_STATUS <<\_ACEOF
17790 --version | --vers* | -V )
17791 echo "$ac_cs_version"; exit 0 ;;
17793 # Conflict between --help and --header
17794 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17795 Try \`$0 --help' for more information." >&5
17796 echo "$as_me: error: ambiguous option: $1
17797 Try \`$0 --help' for more information." >&2;}
17798 { (exit 1); exit 1; }; };;
17799 --help | --hel | -h )
17800 echo "$ac_cs_usage"; exit 0 ;;
17801 --debug | --d* | -d )
17803 --file | --fil | --fi | --f )
17805 CONFIG_FILES="$CONFIG_FILES $1"
17806 ac_need_defaults=false;;
17807 --header | --heade | --head | --hea )
17809 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17810 ac_need_defaults=false;;
17812 # This is an error.
17813 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17814 Try \`$0 --help' for more information." >&5
17815 echo "$as_me: error: unrecognized option: $1
17816 Try \`$0 --help' for more information." >&2;}
17817 { (exit 1); exit 1; }; } ;;
17819 *) ac_config_targets="$ac_config_targets $1" ;;
17831 cat >>$CONFIG_STATUS <<\_ACEOF
17832 for ac_config_target in $ac_config_targets
17834 case "$ac_config_target" in
17835 # Handling of arguments.
17836 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17837 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17838 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17839 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17840 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17841 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17842 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17843 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17844 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17845 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17846 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17847 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17848 { (exit 1); exit 1; }; };;
17852 # If the user did not use the arguments to specify the items to instantiate,
17853 # then the envvar interface is used. Set only those that are not.
17854 # We use the long form for the default assignment because of an extremely
17855 # bizarre bug on SunOS 4.1.3.
17856 if $ac_need_defaults; then
17857 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17858 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17859 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17862 # Create a temporary directory, and hook for its removal unless debugging.
17865 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17866 trap '{ (exit 1); exit 1; }' 1 2 13 15
17869 # Create a (secure) tmp directory for tmp files.
17872 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17873 test -n "$tmp" && test -d "$tmp"
17876 tmp=$TMPDIR/cs$$-$RANDOM
17877 (umask 077 && mkdir $tmp)
17880 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17881 { (exit 1); exit 1; }
17886 cat >>$CONFIG_STATUS <<_ACEOF
17889 # CONFIG_FILES section.
17892 # No need to generate the scripts if there are no CONFIG_FILES.
17893 # This happens for instance when ./config.status config.h
17894 if test -n "\$CONFIG_FILES"; then
17895 # Protect against being on the right side of a sed subst in config.status.
17896 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17897 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17898 s,@SHELL@,$SHELL,;t t
17899 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17900 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17901 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17902 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17903 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17904 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17905 s,@exec_prefix@,$exec_prefix,;t t
17906 s,@prefix@,$prefix,;t t
17907 s,@program_transform_name@,$program_transform_name,;t t
17908 s,@bindir@,$bindir,;t t
17909 s,@sbindir@,$sbindir,;t t
17910 s,@libexecdir@,$libexecdir,;t t
17911 s,@datadir@,$datadir,;t t
17912 s,@sysconfdir@,$sysconfdir,;t t
17913 s,@sharedstatedir@,$sharedstatedir,;t t
17914 s,@localstatedir@,$localstatedir,;t t
17915 s,@libdir@,$libdir,;t t
17916 s,@includedir@,$includedir,;t t
17917 s,@oldincludedir@,$oldincludedir,;t t
17918 s,@infodir@,$infodir,;t t
17919 s,@mandir@,$mandir,;t t
17920 s,@build_alias@,$build_alias,;t t
17921 s,@host_alias@,$host_alias,;t t
17922 s,@target_alias@,$target_alias,;t t
17923 s,@DEFS@,$DEFS,;t t
17924 s,@ECHO_C@,$ECHO_C,;t t
17925 s,@ECHO_N@,$ECHO_N,;t t
17926 s,@ECHO_T@,$ECHO_T,;t t
17927 s,@LIBS@,$LIBS,;t t
17928 s,@docdir@,$docdir,;t t
17929 s,@configure_args@,$configure_args,;t t
17930 s,@build@,$build,;t t
17931 s,@build_cpu@,$build_cpu,;t t
17932 s,@build_vendor@,$build_vendor,;t t
17933 s,@build_os@,$build_os,;t t
17934 s,@host@,$host,;t t
17935 s,@host_cpu@,$host_cpu,;t t
17936 s,@host_vendor@,$host_vendor,;t t
17937 s,@host_os@,$host_os,;t t
17938 s,@PORTNAME@,$PORTNAME,;t t
17940 s,@enable_nls@,$enable_nls,;t t
17941 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17942 s,@default_port@,$default_port,;t t
17943 s,@enable_shared@,$enable_shared,;t t
17944 s,@enable_rpath@,$enable_rpath,;t t
17945 s,@enable_debug@,$enable_debug,;t t
17947 s,@CFLAGS@,$CFLAGS,;t t
17948 s,@LDFLAGS@,$LDFLAGS,;t t
17949 s,@CPPFLAGS@,$CPPFLAGS,;t t
17950 s,@ac_ct_CC@,$ac_ct_CC,;t t
17951 s,@EXEEXT@,$EXEEXT,;t t
17952 s,@OBJEXT@,$OBJEXT,;t t
17955 s,@autodepend@,$autodepend,;t t
17956 s,@INCLUDES@,$INCLUDES,;t t
17957 s,@enable_thread_safety@,$enable_thread_safety,;t t
17958 s,@with_tcl@,$with_tcl,;t t
17959 s,@with_tk@,$with_tk,;t t
17960 s,@with_perl@,$with_perl,;t t
17961 s,@with_python@,$with_python,;t t
17963 s,@with_java@,$with_java,;t t
17964 s,@with_krb4@,$with_krb4,;t t
17965 s,@with_krb5@,$with_krb5,;t t
17966 s,@krb_srvtab@,$krb_srvtab,;t t
17967 s,@with_pam@,$with_pam,;t t
17968 s,@with_rendezvous@,$with_rendezvous,;t t
17969 s,@with_openssl@,$with_openssl,;t t
17970 s,@ELF_SYS@,$ELF_SYS,;t t
17972 s,@FLEX@,$FLEX,;t t
17973 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17974 s,@LN_S@,$LN_S,;t t
17976 s,@with_gnu_ld@,$with_gnu_ld,;t t
17977 s,@ld_R_works@,$ld_R_works,;t t
17978 s,@RANLIB@,$RANLIB,;t t
17979 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17980 s,@LORDER@,$LORDER,;t t
17982 s,@STRIP@,$STRIP,;t t
17983 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17984 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17985 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17986 s,@YACC@,$YACC,;t t
17987 s,@YFLAGS@,$YFLAGS,;t t
17988 s,@PERL@,$PERL,;t t
17989 s,@perl_archlibexp@,$perl_archlibexp,;t t
17990 s,@perl_privlibexp@,$perl_privlibexp,;t t
17991 s,@perl_useshrplib@,$perl_useshrplib,;t t
17992 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17993 s,@PYTHON@,$PYTHON,;t t
17994 s,@python_version@,$python_version,;t t
17995 s,@python_prefix@,$python_prefix,;t t
17996 s,@python_execprefix@,$python_execprefix,;t t
17997 s,@python_configdir@,$python_configdir,;t t
17998 s,@python_moduledir@,$python_moduledir,;t t
17999 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
18000 s,@python_includespec@,$python_includespec,;t t
18001 s,@python_libspec@,$python_libspec,;t t
18002 s,@LIBOBJS@,$LIBOBJS,;t t
18003 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
18004 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18005 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18006 s,@MSGFMT@,$MSGFMT,;t t
18007 s,@MSGMERGE@,$MSGMERGE,;t t
18008 s,@XGETTEXT@,$XGETTEXT,;t t
18009 s,@localedir@,$localedir,;t t
18010 s,@TCLSH@,$TCLSH,;t t
18011 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18012 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18013 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18014 s,@TCL_LIBS@,$TCL_LIBS,;t t
18015 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18016 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18017 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18018 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18019 s,@TK_LIBS@,$TK_LIBS,;t t
18020 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18021 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18022 s,@NSGMLS@,$NSGMLS,;t t
18023 s,@JADE@,$JADE,;t t
18024 s,@have_docbook@,$have_docbook,;t t
18025 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18026 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18027 s,@SGMLSPL@,$SGMLSPL,;t t
18028 s,@vpath_build@,$vpath_build,;t t
18033 cat >>$CONFIG_STATUS <<\_ACEOF
18034 # Split the substitutions into bite-sized pieces for seds with
18035 # small command number limits, like on Digital OSF/1 and HP-UX.
18036 ac_max_sed_lines=48
18037 ac_sed_frag=1 # Number of current file.
18038 ac_beg=1 # First line for current file.
18039 ac_end=$ac_max_sed_lines # Line after last line for current file.
18042 while $ac_more_lines; do
18043 if test $ac_beg -gt 1; then
18044 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18046 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18048 if test ! -s $tmp/subs.frag; then
18049 ac_more_lines=false
18051 # The purpose of the label and of the branching condition is to
18052 # speed up the sed processing (if there are no `@' at all, there
18053 # is no need to browse any of the substitutions).
18054 # These are the two extra sed commands mentioned above.
18056 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18057 if test -z "$ac_sed_cmds"; then
18058 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18060 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18062 ac_sed_frag=`expr $ac_sed_frag + 1`
18064 ac_end=`expr $ac_end + $ac_max_sed_lines`
18067 if test -z "$ac_sed_cmds"; then
18070 fi # test -n "$CONFIG_FILES"
18073 cat >>$CONFIG_STATUS <<\_ACEOF
18074 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18075 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18077 - | *:- | *:-:* ) # input from stdin
18079 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18080 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18081 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18082 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18083 * ) ac_file_in=$ac_file.in ;;
18086 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18087 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18089 X"$ac_file" : 'X\(//\)[^/]' \| \
18090 X"$ac_file" : 'X\(//\)$' \| \
18091 X"$ac_file" : 'X\(/\)' \| \
18092 . : '\(.\)' 2>/dev/null ||
18094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18096 /^X\(\/\/\)$/{ s//\1/; q; }
18097 /^X\(\/\).*/{ s//\1/; q; }
18099 { case "$ac_dir" in
18100 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18104 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18105 case $as_mkdir_dir in
18106 # Skip DOS drivespec
18107 ?:) as_incr_dir=$as_mkdir_dir ;;
18109 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18110 test -d "$as_incr_dir" ||
18111 mkdir "$as_incr_dir" ||
18112 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18113 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18114 { (exit 1); exit 1; }; }
18121 if test "$ac_dir" != .; then
18122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18123 # A "../" for each directory in $ac_dir_suffix.
18124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18126 ac_dir_suffix= ac_top_builddir=
18130 .) # No --srcdir option. We are building in place.
18132 if test -z "$ac_top_builddir"; then
18135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18137 [\\/]* | ?:[\\/]* ) # Absolute path.
18138 ac_srcdir=$srcdir$ac_dir_suffix;
18139 ac_top_srcdir=$srcdir ;;
18140 *) # Relative path.
18141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18144 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18146 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18147 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18148 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18149 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18153 if test x"$ac_file" != x-; then
18154 { echo "$as_me:$LINENO: creating $ac_file" >&5
18155 echo "$as_me: creating $ac_file" >&6;}
18158 # Let's still pretend it is `configure' which instantiates (i.e., don't
18159 # use $as_me), people would be surprised to read:
18160 # /* config.h. Generated by config.status. */
18161 if test x"$ac_file" = x-; then
18164 configure_input="$ac_file. "
18166 configure_input=$configure_input"Generated from `echo $ac_file_in |
18167 sed 's,.*/,,'` by configure."
18169 # First look for the input files in the build tree, otherwise in the
18171 ac_file_inputs=`IFS=:
18172 for f in $ac_file_in; do
18174 -) echo $tmp/stdin ;;
18176 # Absolute (can't be DOS-style, as IFS=:)
18177 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18178 echo "$as_me: error: cannot find input file: $f" >&2;}
18179 { (exit 1); exit 1; }; }
18182 if test -f "$f"; then
18185 elif test -f "$srcdir/$f"; then
18190 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18191 echo "$as_me: error: cannot find input file: $f" >&2;}
18192 { (exit 1); exit 1; }; }
18195 done` || { (exit 1); exit 1; }
18197 cat >>$CONFIG_STATUS <<_ACEOF
18201 cat >>$CONFIG_STATUS <<\_ACEOF
18203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18204 s,@configure_input@,$configure_input,;t t
18205 s,@srcdir@,$ac_srcdir,;t t
18206 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18207 s,@top_srcdir@,$ac_top_srcdir,;t t
18208 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18209 s,@builddir@,$ac_builddir,;t t
18210 s,@abs_builddir@,$ac_abs_builddir,;t t
18211 s,@top_builddir@,$ac_top_builddir,;t t
18212 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18213 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18215 if test x"$ac_file" != x-; then
18216 mv $tmp/out $ac_file
18224 cat >>$CONFIG_STATUS <<\_ACEOF
18227 # CONFIG_HEADER section.
18230 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18231 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18233 # ac_d sets the value in "#define NAME VALUE" lines.
18234 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18235 ac_dB='[ ].*$,\1#\2'
18238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18239 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18240 ac_uB='$,\1#\2define\3'
18244 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18247 - | *:- | *:-:* ) # input from stdin
18249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18253 * ) ac_file_in=$ac_file.in ;;
18256 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18257 echo "$as_me: creating $ac_file" >&6;}
18259 # First look for the input files in the build tree, otherwise in the
18261 ac_file_inputs=`IFS=:
18262 for f in $ac_file_in; do
18264 -) echo $tmp/stdin ;;
18266 # Absolute (can't be DOS-style, as IFS=:)
18267 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18268 echo "$as_me: error: cannot find input file: $f" >&2;}
18269 { (exit 1); exit 1; }; }
18272 if test -f "$f"; then
18275 elif test -f "$srcdir/$f"; then
18280 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18281 echo "$as_me: error: cannot find input file: $f" >&2;}
18282 { (exit 1); exit 1; }; }
18285 done` || { (exit 1); exit 1; }
18286 # Remove the trailing spaces.
18287 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18291 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18292 # `conftest.undefs', that substitutes the proper values into
18293 # config.h.in to produce config.h. The first handles `#define'
18294 # templates, and the second `#undef' templates.
18295 # And first: Protect against being on the right side of a sed subst in
18296 # config.status. Protect against being in an unquoted here document
18297 # in config.status.
18298 rm -f conftest.defines conftest.undefs
18299 # Using a here document instead of a string reduces the quoting nightmare.
18300 # Putting comments in sed scripts is not portable.
18302 # `end' is used to avoid that the second main sed command (meant for
18303 # 0-ary CPP macros) applies to n-ary macro definitions.
18304 # See the Autoconf documentation for `clear'.
18305 cat >confdef2sed.sed <<\_ACEOF
18310 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18312 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18315 # If some macros were called several times there might be several times
18316 # the same #defines, which is useless. Nevertheless, we may not want to
18317 # sort them, since we want the *last* AC-DEFINE to be honored.
18318 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18319 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18320 rm -f confdef2sed.sed
18322 # This sed command replaces #undef with comments. This is necessary, for
18323 # example, in the case of _POSIX_SOURCE, which is predefined and required
18324 # on some systems where configure will not decide to define it.
18325 cat >>conftest.undefs <<\_ACEOF
18326 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18329 # Break up conftest.defines because some shells have a limit on the size
18330 # of here documents, and old seds have small limits too (100 cmds).
18331 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18332 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18333 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18334 echo ' :' >>$CONFIG_STATUS
18335 rm -f conftest.tail
18336 while grep . conftest.defines >/dev/null
18338 # Write a limited-size here document to $tmp/defines.sed.
18339 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18340 # Speed up: don't consider the non `#define' lines.
18341 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18342 # Work around the forget-to-reset-the-flag bug.
18343 echo 't clr' >>$CONFIG_STATUS
18344 echo ': clr' >>$CONFIG_STATUS
18345 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18347 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18349 mv $tmp/out $tmp/in
18351 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18352 rm -f conftest.defines
18353 mv conftest.tail conftest.defines
18355 rm -f conftest.defines
18356 echo ' fi # egrep' >>$CONFIG_STATUS
18357 echo >>$CONFIG_STATUS
18359 # Break up conftest.undefs because some shells have a limit on the size
18360 # of here documents, and old seds have small limits too (100 cmds).
18361 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18362 rm -f conftest.tail
18363 while grep . conftest.undefs >/dev/null
18365 # Write a limited-size here document to $tmp/undefs.sed.
18366 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18367 # Speed up: don't consider the non `#undef'
18368 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18369 # Work around the forget-to-reset-the-flag bug.
18370 echo 't clr' >>$CONFIG_STATUS
18371 echo ': clr' >>$CONFIG_STATUS
18372 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18374 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18376 mv $tmp/out $tmp/in
18378 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18379 rm -f conftest.undefs
18380 mv conftest.tail conftest.undefs
18382 rm -f conftest.undefs
18384 cat >>$CONFIG_STATUS <<\_ACEOF
18385 # Let's still pretend it is `configure' which instantiates (i.e., don't
18386 # use $as_me), people would be surprised to read:
18387 # /* config.h. Generated by config.status. */
18388 if test x"$ac_file" = x-; then
18389 echo "/* Generated by configure. */" >$tmp/config.h
18391 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18393 cat $tmp/in >>$tmp/config.h
18395 if test x"$ac_file" != x-; then
18396 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18397 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18398 echo "$as_me: $ac_file is unchanged" >&6;}
18400 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18402 X"$ac_file" : 'X\(//\)[^/]' \| \
18403 X"$ac_file" : 'X\(//\)$' \| \
18404 X"$ac_file" : 'X\(/\)' \| \
18405 . : '\(.\)' 2>/dev/null ||
18407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18409 /^X\(\/\/\)$/{ s//\1/; q; }
18410 /^X\(\/\).*/{ s//\1/; q; }
18412 { case "$ac_dir" in
18413 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18417 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18418 case $as_mkdir_dir in
18419 # Skip DOS drivespec
18420 ?:) as_incr_dir=$as_mkdir_dir ;;
18422 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18423 test -d "$as_incr_dir" ||
18424 mkdir "$as_incr_dir" ||
18425 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18426 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18427 { (exit 1); exit 1; }; }
18433 mv $tmp/config.h $ac_file
18437 rm -f $tmp/config.h
18439 # Run the commands associated with the file.
18441 src/include/pg_config.h )
18442 # Update timestamp for pg_config.h (see Makefile.global)
18443 echo >src/include/stamp-h
18448 cat >>$CONFIG_STATUS <<\_ACEOF
18451 # CONFIG_LINKS section.
18454 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18455 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18456 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18458 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18459 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18461 if test ! -r $srcdir/$ac_source; then
18462 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18463 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18464 { (exit 1); exit 1; }; }
18468 # Make relative symlinks.
18469 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18470 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18471 X"$ac_dest" : 'X\(//\)[^/]' \| \
18472 X"$ac_dest" : 'X\(//\)$' \| \
18473 X"$ac_dest" : 'X\(/\)' \| \
18474 . : '\(.\)' 2>/dev/null ||
18476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18477 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18478 /^X\(\/\/\)$/{ s//\1/; q; }
18479 /^X\(\/\).*/{ s//\1/; q; }
18481 { case "$ac_dest_dir" in
18482 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18485 as_dummy="$ac_dest_dir"
18486 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18487 case $as_mkdir_dir in
18488 # Skip DOS drivespec
18489 ?:) as_incr_dir=$as_mkdir_dir ;;
18491 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18492 test -d "$as_incr_dir" ||
18493 mkdir "$as_incr_dir" ||
18494 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18495 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18496 { (exit 1); exit 1; }; }
18503 if test "$ac_dest_dir" != .; then
18504 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18505 # A "../" for each directory in $ac_dir_suffix.
18506 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18508 ac_dir_suffix= ac_top_builddir=
18512 .) # No --srcdir option. We are building in place.
18514 if test -z "$ac_top_builddir"; then
18517 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18519 [\\/]* | ?:[\\/]* ) # Absolute path.
18520 ac_srcdir=$srcdir$ac_dir_suffix;
18521 ac_top_srcdir=$srcdir ;;
18522 *) # Relative path.
18523 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18524 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18526 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18528 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18529 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18530 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18531 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18535 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18536 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18539 # Make a symlink if possible; otherwise try a hard link.
18540 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18541 ln $srcdir/$ac_source $ac_dest ||
18542 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18543 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18544 { (exit 1); exit 1; }; }
18548 cat >>$CONFIG_STATUS <<\_ACEOF
18550 { (exit 0); exit 0; }
18552 chmod +x $CONFIG_STATUS
18553 ac_clean_files=$ac_clean_files_save
18556 # configure is writing to config.log, and then calls config.status.
18557 # config.status does its own redirection, appending to config.log.
18558 # Unfortunately, on DOS this fails, as config.log is still kept open
18559 # by configure, so config.status won't be able to write to it; its
18560 # output is simply discarded. So we exec the FD to /dev/null,
18561 # effectively closing config.log, so it can be properly (re)opened and
18562 # appended to by config.status. When coming back to configure, we
18563 # need to make the FD available again.
18564 if test "$no_create" != yes; then
18567 $SHELL $CONFIG_STATUS || ac_cs_success=false
18569 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18570 # would make configure fail if this is the last instruction.
18571 $ac_cs_success || { (exit 1); exit 1; }