2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2002 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.3devel'
262 PACKAGE_STRING='PostgreSQL 7.3devel'
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.3devel 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.3devel:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-recode enable character set recode support
842 --enable-nls[=LANGUAGES] enable Native Language Support
843 --disable-shared do not build shared libraries
844 --disable-rpath do not embed shared library search path in executables
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --disable-largefile omit support for large files
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-includes=DIRS look for additional header files in DIRS
855 --with-libraries=DIRS look for additional libraries in DIRS
856 --with-libs=DIRS alternative spelling of --with-libraries
857 --with-pgport=PORTNUM change default port number 5432
858 --with-maxbackends=N set default maximum number of connections 32
859 --with-tcl build Tcl and Tk interfaces
860 --without-tk do not build Tk interfaces if Tcl is enabled
861 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862 --with-tkconfig=DIR tkConfig.sh is in DIR
863 --with-perl build Perl interface and PL/Perl
864 --with-python build Python interface module
865 --with-java build JDBC interface and Java tools
866 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
867 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
868 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
869 --with-pam build with PAM support
870 --with-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.3devel
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 2002 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.3devel, 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=win ;;
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 netbsd*) template=netbsd ;;
1398 nextstep*) template=nextstep ;;
1399 openbsd*) template=openbsd ;;
1400 osf*) template=osf ;;
1401 qnx*) template=qnx4 ;;
1402 sco*) template=sco ;;
1403 solaris*) template=solaris ;;
1404 sunos*) template=sunos4 ;;
1406 case $host_vendor in
1407 univel) template=univel ;;
1409 sysv4*) template=svr4 ;;
1410 sysv5*) template=unixware ;;
1411 ultrix*) template=ultrix4 ;;
1414 if test x"$template" = x"" ; then
1415 { { echo "$as_me:$LINENO: error:
1416 *******************************************************************
1417 PostgreSQL has apparently not been ported to your platform yet.
1418 To try a manual configuration, look into the src/template directory
1419 for a similar platform and use the '--with-template=' option.
1421 Please also contact <pgsql-ports@postgresql.org> to see about
1422 rectifying this. Include the above 'checking host system type...'
1424 *******************************************************************
1426 echo "$as_me: error:
1427 *******************************************************************
1428 PostgreSQL has apparently not been ported to your platform yet.
1429 To try a manual configuration, look into the src/template directory
1430 for a similar platform and use the '--with-template=' option.
1432 Please also contact <pgsql-ports@postgresql.org> to see about
1433 rectifying this. Include the above 'checking host system type...'
1435 *******************************************************************
1437 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $template" >&5
1445 echo "${ECHO_T}$template" >&6
1450 # Pick right test-and-set (TAS) code. Most platforms have inline
1451 # assembler code in src/include/storage/s_lock.h, so we just use
1452 # a dummy file here.
1454 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1455 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1456 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1457 *) need_tas=no; tas_file=dummy.s ;;
1459 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1462 if test "$need_tas" = yes ; then
1470 ## Command line options
1475 # Add non-standard directories to the include path
1480 # Check whether --with-includes or --without-includes was given.
1481 if test "${with_includes+set}" = set; then
1482 withval="$with_includes"
1486 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1487 echo "$as_me: error: argument required for --with-includes option" >&2;}
1488 { (exit 1); exit 1; }; }
1491 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1492 echo "$as_me: error: argument required for --with-includes option" >&2;}
1493 { (exit 1); exit 1; }; }
1505 # Add non-standard directories to the library search path
1510 # Check whether --with-libraries or --without-libraries was given.
1511 if test "${with_libraries+set}" = set; then
1512 withval="$with_libraries"
1516 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1517 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1518 { (exit 1); exit 1; }; }
1521 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1522 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1523 { (exit 1); exit 1; }; }
1526 LIBRARY_DIRS=$withval
1536 # Check whether --with-libs or --without-libs was given.
1537 if test "${with_libs+set}" = set; then
1538 withval="$with_libs"
1542 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1543 echo "$as_me: error: argument required for --with-libs option" >&2;}
1544 { (exit 1); exit 1; }; }
1547 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1548 echo "$as_me: error: argument required for --with-libs option" >&2;}
1549 { (exit 1); exit 1; }; }
1552 LIBRARY_DIRS=$withval
1561 # 64-bit integer date/time storage (--enable-integer-datetimes)
1563 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1564 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1567 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1568 if test "${enable_integer_datetimes+set}" = set; then
1569 enableval="$enable_integer_datetimes"
1574 cat >>confdefs.h <<\_ACEOF
1575 #define USE_INTEGER_DATETIMES 1
1583 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1584 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1585 { (exit 1); exit 1; }; }
1590 enable_integer_datetimes=no
1594 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1595 echo "${ECHO_T}$enable_integer_datetimes" >&6
1598 # Character set recode (--enable-recode)
1600 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1601 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1604 # Check whether --enable-recode or --disable-recode was given.
1605 if test "${enable_recode+set}" = set; then
1606 enableval="$enable_recode"
1611 cat >>confdefs.h <<\_ACEOF
1612 #define CYR_RECODE 1
1620 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1621 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1622 { (exit 1); exit 1; }; }
1631 echo "$as_me:$LINENO: result: $enable_recode" >&5
1632 echo "${ECHO_T}$enable_recode" >&6
1640 cat >>confdefs.h <<\_ACEOF
1649 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1650 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1653 # Check whether --enable-nls or --disable-nls was given.
1654 if test "${enable_nls+set}" = set; then
1655 enableval="$enable_nls"
1666 WANTED_LANGUAGES=$enableval
1675 if test "$enable_nls" = yes; then
1677 cat >>confdefs.h <<\_ACEOF
1678 #define ENABLE_NLS 1
1683 echo "$as_me:$LINENO: result: $enable_nls" >&5
1684 echo "${ECHO_T}$enable_nls" >&6
1689 # Default port number (--with-pgport), default 5432
1691 echo "$as_me:$LINENO: checking for default port number" >&5
1692 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1696 # Check whether --with-pgport or --without-pgport was given.
1697 if test "${with_pgport+set}" = set; then
1698 withval="$with_pgport"
1702 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1703 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1704 { (exit 1); exit 1; }; }
1707 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1708 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1709 { (exit 1); exit 1; }; }
1712 default_port=$withval
1720 echo "$as_me:$LINENO: result: $default_port" >&5
1721 echo "${ECHO_T}$default_port" >&6
1722 # Need both of these because some places want an integer and some a string
1724 cat >>confdefs.h <<_ACEOF
1725 #define DEF_PGPORT ${default_port}
1729 cat >>confdefs.h <<_ACEOF
1730 #define DEF_PGPORT_STR "${default_port}"
1736 # Maximum number of allowed connections (--with-maxbackends), default 32
1738 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1739 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1743 # Check whether --with-maxbackends or --without-maxbackends was given.
1744 if test "${with_maxbackends+set}" = set; then
1745 withval="$with_maxbackends"
1749 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1750 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1751 { (exit 1); exit 1; }; }
1754 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1755 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1756 { (exit 1); exit 1; }; }
1767 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1768 echo "${ECHO_T}$with_maxbackends" >&6
1770 cat >>confdefs.h <<_ACEOF
1771 #define DEF_MAXBACKENDS $with_maxbackends
1777 # Option to disable shared libraries
1781 # Check whether --enable-shared or --disable-shared was given.
1782 if test "${enable_shared+set}" = set; then
1783 enableval="$enable_shared"
1793 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1794 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1795 { (exit 1); exit 1; }; }
1807 # '-rpath'-like feature can be disabled
1811 # Check whether --enable-rpath or --disable-rpath was given.
1812 if test "${enable_rpath+set}" = set; then
1813 enableval="$enable_rpath"
1823 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1824 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1825 { (exit 1); exit 1; }; }
1838 # --enable-debug adds -g to compiler flags
1842 # Check whether --enable-debug or --disable-debug was given.
1843 if test "${enable_debug+set}" = set; then
1844 enableval="$enable_debug"
1854 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1855 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1856 { (exit 1); exit 1; }; }
1871 # For historical reasons you can also use --with-CC to specify the C compiler
1872 # to use, although the standard way to do this is to set the CC environment
1877 # Check whether --with-CC or --without-CC was given.
1878 if test "${with_CC+set}" = set; then
1883 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1884 echo "$as_me: error: argument required for --with-CC option" >&2;}
1885 { (exit 1); exit 1; }; }
1888 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1889 echo "$as_me: error: argument required for --with-CC option" >&2;}
1890 { (exit 1); exit 1; }; }
1901 aix) pgac_cc_list="gcc xlc";;
1902 irix) pgac_cc_list="cc";; # no gcc
1903 *) pgac_cc_list="gcc cc";;
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 if test -n "$ac_tool_prefix"; then
1912 for ac_prog in $pgac_cc_list
1914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 if test -n "$CC"; then
1922 ac_cv_prog_CC="$CC" # Let the user override the test.
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1949 test -n "$CC" && break
1952 if test -z "$CC"; then
1954 for ac_prog in $pgac_cc_list
1956 # Extract the first word of "$ac_prog", so it can be a program name with args.
1957 set dummy $ac_prog; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 if test -n "$ac_ct_CC"; then
1964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973 ac_cv_prog_ac_ct_CC="$ac_prog"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1983 if test -n "$ac_ct_CC"; then
1984 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1985 echo "${ECHO_T}$ac_ct_CC" >&6
1987 echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1991 test -n "$ac_ct_CC" && break
1998 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1999 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2000 { (exit 1); exit 1; }; }
2002 # Provide some information about the compiler.
2003 echo "$as_me:$LINENO:" \
2004 "checking for C compiler version" >&5
2005 ac_compiler=`set X $ac_compile; echo $2`
2006 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2007 (eval $ac_compiler --version </dev/null >&5) 2>&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }
2011 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2012 (eval $ac_compiler -v </dev/null >&5) 2>&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }
2016 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2017 (eval $ac_compiler -V </dev/null >&5) 2>&5
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }
2022 cat >conftest.$ac_ext <<_ACEOF
2023 #line $LINENO "configure"
2024 #include "confdefs.h"
2026 #ifdef F77_DUMMY_MAIN
2030 int F77_DUMMY_MAIN() { return 1; }
2040 ac_clean_files_save=$ac_clean_files
2041 ac_clean_files="$ac_clean_files a.out a.exe"
2042 # Try to create an executable without -o first, disregard a.out.
2043 # It will help us diagnose broken compilers, and finding out an intuition
2045 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2046 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2047 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2048 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2049 (eval $ac_link_default) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; then
2053 # Find the output, starting from the most likely. This scheme is
2054 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2057 # Be careful to initialize this variable, since it used to be cached.
2058 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2060 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2061 ls a.out conftest 2>/dev/null;
2062 ls a.* conftest.* 2>/dev/null`; do
2064 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2065 a.out ) # We found the default executable, but exeext='' is most
2068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2069 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2076 echo "$as_me: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2078 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2079 echo "$as_me: error: C compiler cannot create executables" >&2;}
2080 { (exit 77); exit 77; }; }
2083 ac_exeext=$ac_cv_exeext
2084 echo "$as_me:$LINENO: result: $ac_file" >&5
2085 echo "${ECHO_T}$ac_file" >&6
2087 # Check the compiler produces executables we can run. If not, either
2088 # the compiler is broken, or we cross compile.
2089 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2090 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2091 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2092 # If not cross compiling, check that we can run a simple program.
2093 if test "$cross_compiling" != yes; then
2094 if { ac_try='./$ac_file'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2102 if test "$cross_compiling" = maybe; then
2105 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2106 If you meant to cross compile, use \`--host'." >&5
2107 echo "$as_me: error: cannot run C compiled programs.
2108 If you meant to cross compile, use \`--host'." >&2;}
2109 { (exit 1); exit 1; }; }
2113 echo "$as_me:$LINENO: result: yes" >&5
2114 echo "${ECHO_T}yes" >&6
2116 rm -f a.out a.exe conftest$ac_cv_exeext
2117 ac_clean_files=$ac_clean_files_save
2118 # Check the compiler produces executables we can run. If not, either
2119 # the compiler is broken, or we cross compile.
2120 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2121 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2122 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2123 echo "${ECHO_T}$cross_compiling" >&6
2125 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2126 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2128 (eval $ac_link) 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }; then
2132 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2133 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2134 # work properly (i.e., refer to `conftest.exe'), while it won't with
2136 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2138 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2139 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2147 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2148 { (exit 1); exit 1; }; }
2151 rm -f conftest$ac_cv_exeext
2152 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2153 echo "${ECHO_T}$ac_cv_exeext" >&6
2155 rm -f conftest.$ac_ext
2156 EXEEXT=$ac_cv_exeext
2158 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2159 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2160 if test "${ac_cv_objext+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #line $LINENO "configure"
2165 #include "confdefs.h"
2167 #ifdef F77_DUMMY_MAIN
2171 int F77_DUMMY_MAIN() { return 1; }
2181 rm -f conftest.o conftest.obj
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2195 echo "$as_me: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2198 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2199 { (exit 1); exit 1; }; }
2202 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2204 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2205 echo "${ECHO_T}$ac_cv_objext" >&6
2206 OBJEXT=$ac_cv_objext
2208 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2209 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2210 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #line $LINENO "configure"
2215 #include "confdefs.h"
2217 #ifdef F77_DUMMY_MAIN
2221 int F77_DUMMY_MAIN() { return 1; }
2234 rm -f conftest.$ac_objext
2235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236 (eval $ac_compile) 2>&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2248 echo "$as_me: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2252 rm -f conftest.$ac_objext conftest.$ac_ext
2253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2256 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2257 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2258 GCC=`test $ac_compiler_gnu = yes && echo yes`
2259 ac_test_CFLAGS=${CFLAGS+set}
2260 ac_save_CFLAGS=$CFLAGS
2262 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2264 if test "${ac_cv_prog_cc_g+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 cat >conftest.$ac_ext <<_ACEOF
2268 #line $LINENO "configure"
2269 #include "confdefs.h"
2271 #ifdef F77_DUMMY_MAIN
2275 int F77_DUMMY_MAIN() { return 1; }
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -s conftest.$ac_objext'
2292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); }; }; then
2299 echo "$as_me: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2303 rm -f conftest.$ac_objext conftest.$ac_ext
2305 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2307 if test "$ac_test_CFLAGS" = set; then
2308 CFLAGS=$ac_save_CFLAGS
2309 elif test $ac_cv_prog_cc_g = yes; then
2310 if test "$GCC" = yes; then
2316 if test "$GCC" = yes; then
2322 # Some people use a C++ compiler to compile C. Since we use `exit',
2323 # in C++ we need to declare it. In case someone uses the same compiler
2324 # for both compiling C and C++ we need to have the C++ compiler decide
2325 # the declaration of exit, since it's the most demanding environment.
2326 cat >conftest.$ac_ext <<_ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333 (eval $ac_compile) 2>&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } &&
2337 { ac_try='test -s conftest.$ac_objext'
2338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; }; then
2343 for ac_declaration in \
2345 '#include <stdlib.h>' \
2346 'extern "C" void std::exit (int) throw (); using std::exit;' \
2347 'extern "C" void std::exit (int); using std::exit;' \
2348 'extern "C" void exit (int) throw ();' \
2349 'extern "C" void exit (int);' \
2352 cat >conftest.$ac_ext <<_ACEOF
2353 #line $LINENO "configure"
2354 #include "confdefs.h"
2357 #ifdef F77_DUMMY_MAIN
2361 int F77_DUMMY_MAIN() { return 1; }
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2385 echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2389 rm -f conftest.$ac_objext conftest.$ac_ext
2390 cat >conftest.$ac_ext <<_ACEOF
2391 #line $LINENO "configure"
2392 #include "confdefs.h"
2394 #ifdef F77_DUMMY_MAIN
2398 int F77_DUMMY_MAIN() { return 1; }
2408 rm -f conftest.$ac_objext
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410 (eval $ac_compile) 2>&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } &&
2414 { ac_try='test -s conftest.$ac_objext'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; }; then
2422 echo "$as_me: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2425 rm -f conftest.$ac_objext conftest.$ac_ext
2428 if test -n "$ac_declaration"; then
2429 echo '#ifdef __cplusplus' >>confdefs.h
2430 echo $ac_declaration >>confdefs.h
2431 echo '#endif' >>confdefs.h
2435 echo "$as_me: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2438 rm -f conftest.$ac_objext conftest.$ac_ext
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446 . "$srcdir/src/template/$template" || exit
2448 if test "$ac_env_CFLAGS_set" = set; then
2449 CFLAGS=$ac_env_CFLAGS_value
2451 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2454 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2455 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2456 # Check if the compiler still works with the template settings
2457 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2458 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2460 cat >conftest.$ac_ext <<_ACEOF
2461 #line $LINENO "configure"
2462 #include "confdefs.h"
2464 #ifdef F77_DUMMY_MAIN
2468 int F77_DUMMY_MAIN() { return 1; }
2478 rm -f conftest.$ac_objext conftest$ac_exeext
2479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2480 (eval $ac_link) 2>&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -s conftest$ac_exeext'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; }; then
2490 echo "$as_me:$LINENO: result: yes" >&5
2491 echo "${ECHO_T}yes" >&6
2493 echo "$as_me: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6
2497 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2498 echo "$as_me: error: cannot proceed" >&2;}
2499 { (exit 1); exit 1; }; }
2501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2508 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2509 # On Suns, sometimes $CPP names a directory.
2510 if test -n "$CPP" && test -d "$CPP"; then
2513 if test -z "$CPP"; then
2514 if test "${ac_cv_prog_CPP+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2517 # Double quotes because CPP needs to be expanded
2518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2521 for ac_c_preproc_warn_flag in '' yes
2523 # Use a header file that comes with gcc, so configuring glibc
2524 # with a fresh cross-compiler works.
2525 # On the NeXT, cc -E runs the code through the compiler's parser,
2526 # not just through cpp. "Syntax error" is here to catch this case.
2527 cat >conftest.$ac_ext <<_ACEOF
2528 #line $LINENO "configure"
2529 #include "confdefs.h"
2533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2536 egrep -v '^ *\+' conftest.er1 >conftest.err
2538 cat conftest.err >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); } >/dev/null; then
2541 if test -s conftest.err; then
2542 ac_cpp_err=$ac_c_preproc_warn_flag
2549 if test -z "$ac_cpp_err"; then
2552 echo "$as_me: failed program was:" >&5
2553 cat conftest.$ac_ext >&5
2554 # Broken: fails on valid input.
2557 rm -f conftest.err conftest.$ac_ext
2559 # OK, works on sane cases. Now check whether non-existent headers
2560 # can be detected and how.
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2563 #include "confdefs.h"
2564 #include <ac_nonexistent.h>
2566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2569 egrep -v '^ *\+' conftest.er1 >conftest.err
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } >/dev/null; then
2574 if test -s conftest.err; then
2575 ac_cpp_err=$ac_c_preproc_warn_flag
2582 if test -z "$ac_cpp_err"; then
2583 # Broken: success on invalid input.
2586 echo "$as_me: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2588 # Passes both tests.
2592 rm -f conftest.err conftest.$ac_ext
2595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2596 rm -f conftest.err conftest.$ac_ext
2597 if $ac_preproc_ok; then
2609 echo "$as_me:$LINENO: result: $CPP" >&5
2610 echo "${ECHO_T}$CPP" >&6
2612 for ac_c_preproc_warn_flag in '' yes
2614 # Use a header file that comes with gcc, so configuring glibc
2615 # with a fresh cross-compiler works.
2616 # On the NeXT, cc -E runs the code through the compiler's parser,
2617 # not just through cpp. "Syntax error" is here to catch this case.
2618 cat >conftest.$ac_ext <<_ACEOF
2619 #line $LINENO "configure"
2620 #include "confdefs.h"
2624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2627 egrep -v '^ *\+' conftest.er1 >conftest.err
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } >/dev/null; then
2632 if test -s conftest.err; then
2633 ac_cpp_err=$ac_c_preproc_warn_flag
2640 if test -z "$ac_cpp_err"; then
2643 echo "$as_me: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 # Broken: fails on valid input.
2648 rm -f conftest.err conftest.$ac_ext
2650 # OK, works on sane cases. Now check whether non-existent headers
2651 # can be detected and how.
2652 cat >conftest.$ac_ext <<_ACEOF
2653 #line $LINENO "configure"
2654 #include "confdefs.h"
2655 #include <ac_nonexistent.h>
2657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2660 egrep -v '^ *\+' conftest.er1 >conftest.err
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } >/dev/null; then
2665 if test -s conftest.err; then
2666 ac_cpp_err=$ac_c_preproc_warn_flag
2673 if test -z "$ac_cpp_err"; then
2674 # Broken: success on invalid input.
2677 echo "$as_me: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 # Passes both tests.
2683 rm -f conftest.err conftest.$ac_ext
2686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2687 rm -f conftest.err conftest.$ac_ext
2688 if $ac_preproc_ok; then
2691 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2692 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2693 { (exit 1); exit 1; }; }
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 # Create compiler version string
2705 if test x"$GCC" = x"yes" ; then
2706 cc_string="GCC `${CC} --version | sed q`"
2711 cat >>confdefs.h <<_ACEOF
2712 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2718 # Automatic dependency tracking
2722 # Check whether --enable-depend or --disable-depend was given.
2723 if test "${enable_depend+set}" = set; then
2724 enableval="$enable_depend"
2734 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2735 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2736 { (exit 1); exit 1; }; }
2749 # Enable assert checks
2753 # Check whether --enable-cassert or --disable-cassert was given.
2754 if test "${enable_cassert+set}" = set; then
2755 enableval="$enable_cassert"
2760 cat >>confdefs.h <<\_ACEOF
2761 #define USE_ASSERT_CHECKING 1
2769 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2770 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2771 { (exit 1); exit 1; }; }
2783 # Include directories
2787 # SRCH_INC comes from the template file
2788 for dir in $with_includes $SRCH_INC; do
2789 if test -d "$dir"; then
2790 INCLUDES="$INCLUDES -I$dir"
2792 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2793 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2801 # Library directories
2805 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2806 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2807 if test -d "$dir"; then
2808 LIBDIRS="$LIBDIRS -L$dir"
2810 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2811 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2820 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2821 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2825 # Check whether --with-tcl or --without-tcl was given.
2826 if test "${with_tcl+set}" = set; then
2837 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2838 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2839 { (exit 1); exit 1; }; }
2848 echo "$as_me:$LINENO: result: $with_tcl" >&5
2849 echo "${ECHO_T}$with_tcl" >&6
2852 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2853 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2854 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2855 if test "$with_tcl" = yes; then
2859 # Check whether --with-tk or --without-tk was given.
2860 if test "${with_tk+set}" = set; then
2871 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2872 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2873 { (exit 1); exit 1; }; }
2885 echo "$as_me:$LINENO: result: $with_tk" >&5
2886 echo "${ECHO_T}$with_tk" >&6
2890 # We see if the path to the Tcl/Tk configuration scripts is specified.
2891 # This will override the use of tclsh to find the paths to search.
2896 # Check whether --with-tclconfig or --without-tclconfig was given.
2897 if test "${with_tclconfig+set}" = set; then
2898 withval="$with_tclconfig"
2902 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2903 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2904 { (exit 1); exit 1; }; }
2907 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2908 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2909 { (exit 1); exit 1; }; }
2919 # We see if the path to the Tk configuration scripts is specified.
2920 # This will override the use of tclsh to find the paths to search.
2925 # Check whether --with-tkconfig or --without-tkconfig was given.
2926 if test "${with_tkconfig+set}" = set; then
2927 withval="$with_tkconfig"
2931 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2932 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2933 { (exit 1); exit 1; }; }
2936 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2937 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2938 { (exit 1); exit 1; }; }
2949 # Optionally build Perl modules (Pg.pm and PL/Perl)
2951 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2952 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2956 # Check whether --with-perl or --without-perl was given.
2957 if test "${with_perl+set}" = set; then
2958 withval="$with_perl"
2968 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2969 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2970 { (exit 1); exit 1; }; }
2979 echo "$as_me:$LINENO: result: $with_perl" >&5
2980 echo "${ECHO_T}$with_perl" >&6
2984 # Optionally build Python interface module
2986 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2987 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2991 # Check whether --with-python or --without-python was given.
2992 if test "${with_python+set}" = set; then
2993 withval="$with_python"
3003 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3004 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3005 { (exit 1); exit 1; }; }
3014 echo "$as_me:$LINENO: result: $with_python" >&5
3015 echo "${ECHO_T}$with_python" >&6
3019 # Optionally build the Java/JDBC tools
3021 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3022 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3026 # Check whether --with-java or --without-java was given.
3027 if test "${with_java+set}" = set; then
3028 withval="$with_java"
3032 echo "$as_me:$LINENO: result: yes" >&5
3033 echo "${ECHO_T}yes" >&6
3035 for ac_prog in jakarta-ant ant ant.sh ant.bat
3037 # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3041 if test "${ac_cv_path_ANT+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 if test -n "$ANT"; then
3069 echo "$as_me:$LINENO: result: $ANT" >&5
3070 echo "${ECHO_T}$ANT" >&6
3072 echo "$as_me:$LINENO: result: no" >&5
3073 echo "${ECHO_T}no" >&6
3076 test -n "$ANT" && break
3080 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3081 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3082 if test "${pgac_cv_prog_ant_works+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 cat > conftest.java << EOF
3087 public class conftest {
3088 int testmethod(int a, int b) {
3094 cat > conftest.xml << EOF
3095 <project name="conftest" default="conftest">
3096 <target name="conftest">
3097 <javac srcdir="." includes="conftest.java">
3103 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3104 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3105 (eval $pgac_cmd) 2>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }
3110 if test $? = 0 && test -f ./conftest.class ; then
3111 pgac_cv_prog_ant_works=yes
3113 echo "configure: failed java program was:" >&5
3114 cat conftest.java >&5
3115 echo "configure: failed build file was:" >&5
3116 cat conftest.xml >&5
3117 pgac_cv_prog_ant_works=no
3120 rm -f conftest* core core.* *.core
3123 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3124 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3126 if test "$pgac_cv_prog_ant_works" != yes; then
3127 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3128 echo "$as_me: error: ant does not work" >&2;}
3129 { (exit 1); exit 1; }; }
3133 if test -z "$ANT"; then
3134 { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3135 echo "$as_me: error: Ant is required to build Java components" >&2;}
3136 { (exit 1); exit 1; }; }
3140 echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6
3144 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3145 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3146 { (exit 1); exit 1; }; }
3152 echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6
3162 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3163 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3167 # Check whether --with-krb4 or --without-krb4 was given.
3168 if test "${with_krb4+set}" = set; then
3169 withval="$with_krb4"
3173 krb4_prefix=/usr/athena
3180 krb4_prefix=$withval
3189 if test "$with_krb4" = yes; then
3191 echo "$as_me:$LINENO: result: yes" >&5
3192 echo "${ECHO_T}yes" >&6
3194 cat >>confdefs.h <<\_ACEOF
3199 if test -d "$krb4_prefix/include"; then
3200 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3202 if test -d "$krb4_prefix/lib"; then
3203 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3206 krb_srvtab="/etc/srvtab"
3209 echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3220 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3221 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3225 # Check whether --with-krb5 or --without-krb5 was given.
3226 if test "${with_krb5+set}" = set; then
3227 withval="$with_krb5"
3231 krb5_prefix=/usr/athena
3238 krb5_prefix=$withval
3247 if test "$with_krb5" = yes; then
3249 echo "$as_me:$LINENO: result: yes" >&5
3250 echo "${ECHO_T}yes" >&6
3252 cat >>confdefs.h <<\_ACEOF
3257 if test -d "$krb5_prefix/include"; then
3258 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3260 if test -d "$krb5_prefix/lib"; then
3261 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3264 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3267 echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6
3275 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3276 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3277 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3278 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3279 { (exit 1); exit 1; }; }
3286 # Kerberos configuration parameters
3291 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3292 if test "${with_krb_srvnam+set}" = set; then
3293 withval="$with_krb_srvnam"
3297 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3298 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3299 { (exit 1); exit 1; }; }
3302 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3303 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3304 { (exit 1); exit 1; }; }
3312 with_krb_srvnam="postgres"
3316 cat >>confdefs.h <<_ACEOF
3317 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3325 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3326 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3330 # Check whether --with-pam or --without-pam was given.
3331 if test "${with_pam+set}" = set; then
3337 cat >>confdefs.h <<\_ACEOF
3346 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3347 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3348 { (exit 1); exit 1; }; }
3357 echo "$as_me:$LINENO: result: $with_pam" >&5
3358 echo "${ECHO_T}$with_pam" >&6
3368 # Check whether --with-openssl or --without-openssl was given.
3369 if test "${with_openssl+set}" = set; then
3370 withval="$with_openssl"
3374 openssl_prefix=/usr/local/ssl
3381 openssl_prefix=$withval
3390 if test "$with_openssl" = yes; then
3392 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3393 echo "${ECHO_T}building with OpenSSL support" >&6
3395 cat >>confdefs.h <<\_ACEOF
3400 if test -d "${openssl_prefix}/include" ; then
3401 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3403 if test -d "${openssl_prefix}/lib" ; then
3404 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3419 # Check whether --with-readline or --without-readline was given.
3420 if test "${with_readline+set}" = set; then
3421 withval="$with_readline"
3431 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3432 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3433 { (exit 1); exit 1; }; }
3449 # Check whether --with-zlib or --without-zlib was given.
3450 if test "${with_zlib+set}" = set; then
3451 withval="$with_zlib"
3461 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3462 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3463 { (exit 1); exit 1; }; }
3475 # Assume system is ELF if it predefines __ELF__ as 1,
3476 # otherwise believe host_os based default.
3478 freebsd1*|freebsd2*) elf=no;;
3479 freebsd3*|freebsd4*) elf=yes;;
3483 cat >conftest.$ac_ext <<_ACEOF
3484 #line $LINENO "configure"
3485 #include "confdefs.h"
3491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3492 egrep "yes" >/dev/null 2>&1; then
3495 if test "X$elf" = "Xyes" ; then
3507 CPPFLAGS="$CPPFLAGS $INCLUDES"
3508 LDFLAGS="$LDFLAGS $LIBDIRS"
3510 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3511 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3512 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3513 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3516 for ac_prog in gawk mawk nawk awk
3518 # Extract the first word of "$ac_prog", so it can be a program name with args.
3519 set dummy $ac_prog; ac_word=$2
3520 echo "$as_me:$LINENO: checking for $ac_word" >&5
3521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3522 if test "${ac_cv_prog_AWK+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 if test -n "$AWK"; then
3526 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 ac_cv_prog_AWK="$ac_prog"
3536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 if test -n "$AWK"; then
3546 echo "$as_me:$LINENO: result: $AWK" >&5
3547 echo "${ECHO_T}$AWK" >&6
3549 echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6
3553 test -n "$AWK" && break
3556 echo "$as_me:$LINENO: checking for flex" >&5
3557 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3558 if test "${pgac_cv_path_flex+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 # Let the user override the test
3562 if test -n "$FLEX"; then
3563 pgac_cv_path_flex=$FLEX
3567 for pgac_dir in $PATH; do
3568 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3571 for pgac_prog in flex lex; do
3572 pgac_candidate="$pgac_dir/$pgac_prog"
3573 if test -f "$pgac_candidate" \
3574 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3576 echo '%%' > conftest.l
3577 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3578 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3579 pgac_broken_flex=$pgac_candidate
3583 pgac_cv_path_flex=$pgac_candidate
3591 : ${pgac_cv_path_flex=no}
3595 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3596 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3597 if test x"$pgac_cv_path_flex" = x"no"; then
3598 if test -n "$pgac_broken_flex"; then
3599 { echo "$as_me:$LINENO: WARNING:
3600 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3601 *** should get version 2.5.4 or later." >&5
3602 echo "$as_me: WARNING:
3603 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3604 *** should get version 2.5.4 or later." >&2;}
3607 { echo "$as_me:$LINENO: WARNING:
3608 *** Without Flex you will not be able to build PostgreSQL from CVS or
3609 *** change any of the scanner definition files. You can obtain Flex from
3610 *** a GNU mirror site. (If you are using the official distribution of
3611 *** PostgreSQL then you do not need to worry about this because the Flex
3612 *** output is pre-generated.)" >&5
3613 echo "$as_me: WARNING:
3614 *** Without Flex you will not be able to build PostgreSQL from CVS or
3615 *** change any of the scanner definition files. You can obtain Flex from
3616 *** a GNU mirror site. (If you are using the official distribution of
3617 *** PostgreSQL then you do not need to worry about this because the Flex
3618 *** output is pre-generated.)" >&2;}
3621 if test x"$pgac_cv_path_flex" = x"no"; then
3624 FLEX=$pgac_cv_path_flex
3630 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3631 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3633 if test "$LN_S" = "ln -s"; then
3634 echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6
3637 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3638 echo "${ECHO_T}no, using $LN_S" >&6
3642 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3643 if test "${with_gnu_ld+set}" = set; then
3644 withval="$with_gnu_ld"
3645 test "$withval" = no || with_gnu_ld=yes
3650 if test "$GCC" = yes; then
3651 # Check if gcc -print-prog-name=ld gives a path.
3652 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3653 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3656 # gcc leaves a trailing carriage return which upsets mingw
3657 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3659 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3662 # Accept absolute paths.
3663 [\\/]* | [A-Za-z]:[\\/]*)
3664 re_direlt='/[^/][^/]*/\.\./'
3665 # Canonicalize the path of ld
3666 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3667 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3668 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3670 test -z "$LD" && LD="$ac_prog"
3673 # If it fails, then pretend we aren't using GCC.
3677 # If it is relative, then search for the first ld in PATH.
3681 elif test "$with_gnu_ld" = yes; then
3682 echo "$as_me:$LINENO: checking for GNU ld" >&5
3683 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3685 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3686 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3688 if test "${ac_cv_path_LD+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 if test -z "$LD"; then
3692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3693 for ac_dir in $PATH; do
3694 test -z "$ac_dir" && ac_dir=.
3695 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3696 ac_cv_path_LD="$ac_dir/$ac_prog"
3697 # Check to see if the program is GNU ld. I'd rather use --version,
3698 # but apparently some GNU ld's only accept -v.
3699 # Break only if it was the GNU/non-GNU ld that we prefer.
3700 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3701 test "$with_gnu_ld" != no && break
3703 test "$with_gnu_ld" != yes && break
3709 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3714 if test -n "$LD"; then
3715 echo "$as_me:$LINENO: result: $LD" >&5
3716 echo "${ECHO_T}$LD" >&6
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3721 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3722 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3723 { (exit 1); exit 1; }; }
3724 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3725 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3726 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3730 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3731 ac_cv_prog_gnu_ld=yes
3733 ac_cv_prog_gnu_ld=no
3736 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3737 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3738 with_gnu_ld=$ac_cv_prog_gnu_ld
3743 case $host_os in sysv5*)
3744 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3745 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3746 if test "${pgac_cv_prog_ld_R+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3751 cat >conftest.$ac_ext <<_ACEOF
3752 #line $LINENO "configure"
3753 #include "confdefs.h"
3755 #ifdef F77_DUMMY_MAIN
3759 int F77_DUMMY_MAIN() { return 1; }
3769 rm -f conftest.$ac_objext conftest$ac_exeext
3770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3771 (eval $ac_link) 2>&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 pgac_cv_prog_ld_R=yes
3783 echo "$as_me: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3785 pgac_cv_prog_ld_R=no
3787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3788 LDFLAGS=$pgac_save_LDFLAGS
3791 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3792 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3793 ld_R_works=$pgac_cv_prog_ld_R
3796 if test -n "$ac_tool_prefix"; then
3797 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3798 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3799 echo "$as_me:$LINENO: checking for $ac_word" >&5
3800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3801 if test "${ac_cv_prog_RANLIB+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 if test -n "$RANLIB"; then
3805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 RANLIB=$ac_cv_prog_RANLIB
3824 if test -n "$RANLIB"; then
3825 echo "$as_me:$LINENO: result: $RANLIB" >&5
3826 echo "${ECHO_T}$RANLIB" >&6
3828 echo "$as_me:$LINENO: result: no" >&5
3829 echo "${ECHO_T}no" >&6
3833 if test -z "$ac_cv_prog_RANLIB"; then
3834 ac_ct_RANLIB=$RANLIB
3835 # Extract the first word of "ranlib", so it can be a program name with args.
3836 set dummy ranlib; ac_word=$2
3837 echo "$as_me:$LINENO: checking for $ac_word" >&5
3838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3839 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 if test -n "$ac_ct_RANLIB"; then
3843 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_ac_ct_RANLIB="ranlib"
3853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3862 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3863 if test -n "$ac_ct_RANLIB"; then
3864 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3865 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3867 echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3871 RANLIB=$ac_ct_RANLIB
3873 RANLIB="$ac_cv_prog_RANLIB"
3876 for ac_prog in lorder
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_LORDER+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 if test -n "$LORDER"; then
3886 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_LORDER="$ac_prog"
3896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 LORDER=$ac_cv_prog_LORDER
3905 if test -n "$LORDER"; then
3906 echo "$as_me:$LINENO: result: $LORDER" >&5
3907 echo "${ECHO_T}$LORDER" >&6
3909 echo "$as_me:$LINENO: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3913 test -n "$LORDER" && break
3916 # Extract the first word of "tar", so it can be a program name with args.
3917 set dummy tar; ac_word=$2
3918 echo "$as_me:$LINENO: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_path_TAR+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 if test -n "$TAR"; then
3948 echo "$as_me:$LINENO: result: $TAR" >&5
3949 echo "${ECHO_T}$TAR" >&6
3951 echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3956 if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3958 set dummy ${ac_tool_prefix}strip; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_STRIP+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$STRIP"; then
3965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 STRIP=$ac_cv_prog_STRIP
3984 if test -n "$STRIP"; then
3985 echo "$as_me:$LINENO: result: $STRIP" >&5
3986 echo "${ECHO_T}$STRIP" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3993 if test -z "$ac_cv_prog_STRIP"; then
3995 # Extract the first word of "strip", so it can be a program name with args.
3996 set dummy strip; ac_word=$2
3997 echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3999 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if test -n "$ac_ct_STRIP"; then
4003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_prog_ac_ct_STRIP="strip"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4023 if test -n "$ac_ct_STRIP"; then
4024 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4025 echo "${ECHO_T}$ac_ct_STRIP" >&6
4027 echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4033 STRIP="$ac_cv_prog_STRIP"
4037 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4038 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4039 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4040 STRIP_STATIC_LIB="$STRIP -x"
4041 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4042 echo "$as_me:$LINENO: result: yes" >&5
4043 echo "${ECHO_T}yes" >&6
4047 echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6
4054 for ac_prog in 'bison -y'
4056 # Extract the first word of "$ac_prog", so it can be a program name with args.
4057 set dummy $ac_prog; ac_word=$2
4058 echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4060 if test "${ac_cv_prog_YACC+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 if test -n "$YACC"; then
4064 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_YACC="$ac_prog"
4074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 YACC=$ac_cv_prog_YACC
4083 if test -n "$YACC"; then
4084 echo "$as_me:$LINENO: result: $YACC" >&5
4085 echo "${ECHO_T}$YACC" >&6
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4091 test -n "$YACC" && break
4094 if test -z "$YACC"; then
4095 { echo "$as_me:$LINENO: WARNING:
4096 *** Without Bison you will not be able to build PostgreSQL from CVS or
4097 *** change any of the parser definition files. You can obtain Bison from
4098 *** a GNU mirror site. (If you are using the official distribution of
4099 *** PostgreSQL then you do not need to worry about this because the Bison
4100 *** output is pre-generated.) To use a different yacc program (possible,
4101 *** but not recommended), set the environment variable YACC before running
4102 *** 'configure'." >&5
4103 echo "$as_me: WARNING:
4104 *** Without Bison you will not be able to build PostgreSQL from CVS or
4105 *** change any of the parser definition files. You can obtain Bison from
4106 *** a GNU mirror site. (If you are using the official distribution of
4107 *** PostgreSQL then you do not need to worry about this because the Bison
4108 *** output is pre-generated.) To use a different yacc program (possible,
4109 *** but not recommended), set the environment variable YACC before running
4110 *** 'configure'." >&2;}
4114 if test "$with_tk" = yes; then
4115 # Extract the first word of "wish", so it can be a program name with args.
4116 set dummy wish; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_path_WISH+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 WISH=$ac_cv_path_WISH
4146 if test -n "$WISH"; then
4147 echo "$as_me:$LINENO: result: $WISH" >&5
4148 echo "${ECHO_T}$WISH" >&6
4150 echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4154 test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4155 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4156 { (exit 1); exit 1; }; }
4159 # Extract the first word of "perl", so it can be a program name with args.
4160 set dummy perl; ac_word=$2
4161 echo "$as_me:$LINENO: checking for $ac_word" >&5
4162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163 if test "${ac_cv_path_PERL+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4188 PERL=$ac_cv_path_PERL
4190 if test -n "$PERL"; then
4191 echo "$as_me:$LINENO: result: $PERL" >&5
4192 echo "${ECHO_T}$PERL" >&6
4194 echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4198 if test "$with_perl" = yes; then
4200 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4201 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4202 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4203 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4204 echo "${ECHO_T}$perl_installsitearch" >&6
4205 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4206 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4207 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4208 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4209 echo "${ECHO_T}$perl_installman3dir" >&6
4210 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4211 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4212 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4213 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4214 echo "${ECHO_T}$perl_archlibexp" >&6
4215 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4216 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4217 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4218 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4219 echo "${ECHO_T}$perl_privlibexp" >&6
4220 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4221 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4222 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4223 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4224 echo "${ECHO_T}$perl_useshrplib" >&6
4225 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4226 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4227 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4228 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4229 echo "${ECHO_T}$perl_man3ext" >&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 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4317 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4318 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4319 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4320 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4322 pgac_tab=" " # tab character
4323 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"`
4325 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4326 echo "${ECHO_T}${python_libspec}" >&6
4336 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4339 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4340 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4341 if test "${ac_cv_lib_bsd_main+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 ac_check_lib_save_LIBS=$LIBS
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4351 #ifdef F77_DUMMY_MAIN
4355 int F77_DUMMY_MAIN() { return 1; }
4365 rm -f conftest.$ac_objext conftest$ac_exeext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4367 (eval $ac_link) 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try='test -s conftest$ac_exeext'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_cv_lib_bsd_main=yes
4379 echo "$as_me: failed program was:" >&5
4380 cat conftest.$ac_ext >&5
4381 ac_cv_lib_bsd_main=no
4383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4384 LIBS=$ac_check_lib_save_LIBS
4386 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4387 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4388 if test $ac_cv_lib_bsd_main = yes; then
4389 cat >>confdefs.h <<_ACEOF
4390 #define HAVE_LIBBSD 1
4399 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4400 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4401 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 ac_check_lib_save_LIBS=$LIBS
4406 cat >conftest.$ac_ext <<_ACEOF
4407 #line $LINENO "configure"
4408 #include "confdefs.h"
4410 /* Override any gcc2 internal prototype to avoid an error. */
4414 /* We use char because int might match the return type of a gcc2
4415 builtin and then its argument prototype would still apply. */
4416 char setproctitle ();
4417 #ifdef F77_DUMMY_MAIN
4421 int F77_DUMMY_MAIN() { return 1; }
4431 rm -f conftest.$ac_objext conftest$ac_exeext
4432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4433 (eval $ac_link) 2>&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -s conftest$ac_exeext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_cv_lib_util_setproctitle=yes
4445 echo "$as_me: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4447 ac_cv_lib_util_setproctitle=no
4449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4450 LIBS=$ac_check_lib_save_LIBS
4452 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4453 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4454 if test $ac_cv_lib_util_setproctitle = yes; then
4455 cat >>confdefs.h <<_ACEOF
4456 #define HAVE_LIBUTIL 1
4464 echo "$as_me:$LINENO: checking for main in -lm" >&5
4465 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4466 if test "${ac_cv_lib_m_main+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 ac_check_lib_save_LIBS=$LIBS
4471 cat >conftest.$ac_ext <<_ACEOF
4472 #line $LINENO "configure"
4473 #include "confdefs.h"
4476 #ifdef F77_DUMMY_MAIN
4480 int F77_DUMMY_MAIN() { return 1; }
4490 rm -f conftest.$ac_objext conftest$ac_exeext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try='test -s conftest$ac_exeext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_cv_lib_m_main=yes
4504 echo "$as_me: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4509 LIBS=$ac_check_lib_save_LIBS
4511 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4512 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4513 if test $ac_cv_lib_m_main = yes; then
4514 cat >>confdefs.h <<_ACEOF
4523 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4524 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4525 if test "${ac_cv_lib_dl_main+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 ac_check_lib_save_LIBS=$LIBS
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4532 #include "confdefs.h"
4535 #ifdef F77_DUMMY_MAIN
4539 int F77_DUMMY_MAIN() { return 1; }
4549 rm -f conftest.$ac_objext conftest$ac_exeext
4550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4551 (eval $ac_link) 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -s conftest$ac_exeext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 ac_cv_lib_dl_main=yes
4563 echo "$as_me: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4565 ac_cv_lib_dl_main=no
4567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4568 LIBS=$ac_check_lib_save_LIBS
4570 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4571 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4572 if test $ac_cv_lib_dl_main = yes; then
4573 cat >>confdefs.h <<_ACEOF
4574 #define HAVE_LIBDL 1
4582 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4583 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4584 if test "${ac_cv_lib_nsl_main+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 ac_check_lib_save_LIBS=$LIBS
4589 cat >conftest.$ac_ext <<_ACEOF
4590 #line $LINENO "configure"
4591 #include "confdefs.h"
4594 #ifdef F77_DUMMY_MAIN
4598 int F77_DUMMY_MAIN() { return 1; }
4608 rm -f conftest.$ac_objext conftest$ac_exeext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4610 (eval $ac_link) 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
4614 { ac_try='test -s conftest$ac_exeext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_lib_nsl_main=yes
4622 echo "$as_me: failed program was:" >&5
4623 cat conftest.$ac_ext >&5
4624 ac_cv_lib_nsl_main=no
4626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4627 LIBS=$ac_check_lib_save_LIBS
4629 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4630 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4631 if test $ac_cv_lib_nsl_main = yes; then
4632 cat >>confdefs.h <<_ACEOF
4633 #define HAVE_LIBNSL 1
4641 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4642 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4643 if test "${ac_cv_lib_socket_main+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 ac_check_lib_save_LIBS=$LIBS
4647 LIBS="-lsocket $LIBS"
4648 cat >conftest.$ac_ext <<_ACEOF
4649 #line $LINENO "configure"
4650 #include "confdefs.h"
4653 #ifdef F77_DUMMY_MAIN
4657 int F77_DUMMY_MAIN() { return 1; }
4667 rm -f conftest.$ac_objext conftest$ac_exeext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4669 (eval $ac_link) 2>&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -s conftest$ac_exeext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 ac_cv_lib_socket_main=yes
4681 echo "$as_me: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4683 ac_cv_lib_socket_main=no
4685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4686 LIBS=$ac_check_lib_save_LIBS
4688 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4689 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4690 if test $ac_cv_lib_socket_main = yes; then
4691 cat >>confdefs.h <<_ACEOF
4692 #define HAVE_LIBSOCKET 1
4695 LIBS="-lsocket $LIBS"
4700 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4701 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4702 if test "${ac_cv_lib_ipc_main+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 ac_check_lib_save_LIBS=$LIBS
4707 cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 #include "confdefs.h"
4712 #ifdef F77_DUMMY_MAIN
4716 int F77_DUMMY_MAIN() { return 1; }
4726 rm -f conftest.$ac_objext conftest$ac_exeext
4727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4728 (eval $ac_link) 2>&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } &&
4732 { ac_try='test -s conftest$ac_exeext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 ac_cv_lib_ipc_main=yes
4740 echo "$as_me: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4742 ac_cv_lib_ipc_main=no
4744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4745 LIBS=$ac_check_lib_save_LIBS
4747 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4748 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4749 if test $ac_cv_lib_ipc_main = yes; then
4750 cat >>confdefs.h <<_ACEOF
4751 #define HAVE_LIBIPC 1
4759 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4760 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4761 if test "${ac_cv_lib_IPC_main+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 ac_check_lib_save_LIBS=$LIBS
4766 cat >conftest.$ac_ext <<_ACEOF
4767 #line $LINENO "configure"
4768 #include "confdefs.h"
4771 #ifdef F77_DUMMY_MAIN
4775 int F77_DUMMY_MAIN() { return 1; }
4785 rm -f conftest.$ac_objext conftest$ac_exeext
4786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4787 (eval $ac_link) 2>&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -s conftest$ac_exeext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_lib_IPC_main=yes
4799 echo "$as_me: failed program was:" >&5
4800 cat conftest.$ac_ext >&5
4801 ac_cv_lib_IPC_main=no
4803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4804 LIBS=$ac_check_lib_save_LIBS
4806 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4807 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4808 if test $ac_cv_lib_IPC_main = yes; then
4809 cat >>confdefs.h <<_ACEOF
4810 #define HAVE_LIBIPC 1
4818 echo "$as_me:$LINENO: checking for main in -llc" >&5
4819 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4820 if test "${ac_cv_lib_lc_main+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 ac_check_lib_save_LIBS=$LIBS
4825 cat >conftest.$ac_ext <<_ACEOF
4826 #line $LINENO "configure"
4827 #include "confdefs.h"
4830 #ifdef F77_DUMMY_MAIN
4834 int F77_DUMMY_MAIN() { return 1; }
4844 rm -f conftest.$ac_objext conftest$ac_exeext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4846 (eval $ac_link) 2>&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } &&
4850 { ac_try='test -s conftest$ac_exeext'
4851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); }; }; then
4856 ac_cv_lib_lc_main=yes
4858 echo "$as_me: failed program was:" >&5
4859 cat conftest.$ac_ext >&5
4860 ac_cv_lib_lc_main=no
4862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4863 LIBS=$ac_check_lib_save_LIBS
4865 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4866 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4867 if test $ac_cv_lib_lc_main = yes; then
4868 cat >>confdefs.h <<_ACEOF
4869 #define HAVE_LIBLC 1
4877 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4878 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4879 if test "${ac_cv_lib_dld_main+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 ac_check_lib_save_LIBS=$LIBS
4884 cat >conftest.$ac_ext <<_ACEOF
4885 #line $LINENO "configure"
4886 #include "confdefs.h"
4889 #ifdef F77_DUMMY_MAIN
4893 int F77_DUMMY_MAIN() { return 1; }
4903 rm -f conftest.$ac_objext conftest$ac_exeext
4904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4905 (eval $ac_link) 2>&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -s conftest$ac_exeext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_lib_dld_main=yes
4917 echo "$as_me: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4919 ac_cv_lib_dld_main=no
4921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4922 LIBS=$ac_check_lib_save_LIBS
4924 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4925 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4926 if test $ac_cv_lib_dld_main = yes; then
4927 cat >>confdefs.h <<_ACEOF
4928 #define HAVE_LIBDLD 1
4936 echo "$as_me:$LINENO: checking for main in -lld" >&5
4937 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4938 if test "${ac_cv_lib_ld_main+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 ac_check_lib_save_LIBS=$LIBS
4943 cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4945 #include "confdefs.h"
4948 #ifdef F77_DUMMY_MAIN
4952 int F77_DUMMY_MAIN() { return 1; }
4962 rm -f conftest.$ac_objext conftest$ac_exeext
4963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4964 (eval $ac_link) 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -s conftest$ac_exeext'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; }; then
4974 ac_cv_lib_ld_main=yes
4976 echo "$as_me: failed program was:" >&5
4977 cat conftest.$ac_ext >&5
4978 ac_cv_lib_ld_main=no
4980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4981 LIBS=$ac_check_lib_save_LIBS
4983 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4984 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4985 if test $ac_cv_lib_ld_main = yes; then
4986 cat >>confdefs.h <<_ACEOF
4987 #define HAVE_LIBLD 1
4995 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4996 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4997 if test "${ac_cv_lib_compat_main+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 ac_check_lib_save_LIBS=$LIBS
5001 LIBS="-lcompat $LIBS"
5002 cat >conftest.$ac_ext <<_ACEOF
5003 #line $LINENO "configure"
5004 #include "confdefs.h"
5007 #ifdef F77_DUMMY_MAIN
5011 int F77_DUMMY_MAIN() { return 1; }
5021 rm -f conftest.$ac_objext conftest$ac_exeext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023 (eval $ac_link) 2>&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } &&
5027 { ac_try='test -s conftest$ac_exeext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 ac_cv_lib_compat_main=yes
5035 echo "$as_me: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5037 ac_cv_lib_compat_main=no
5039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5040 LIBS=$ac_check_lib_save_LIBS
5042 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5043 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5044 if test $ac_cv_lib_compat_main = yes; then
5045 cat >>confdefs.h <<_ACEOF
5046 #define HAVE_LIBCOMPAT 1
5049 LIBS="-lcompat $LIBS"
5054 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5055 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5056 if test "${ac_cv_lib_BSD_main+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 ac_check_lib_save_LIBS=$LIBS
5061 cat >conftest.$ac_ext <<_ACEOF
5062 #line $LINENO "configure"
5063 #include "confdefs.h"
5066 #ifdef F77_DUMMY_MAIN
5070 int F77_DUMMY_MAIN() { return 1; }
5080 rm -f conftest.$ac_objext conftest$ac_exeext
5081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5082 (eval $ac_link) 2>&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -s conftest$ac_exeext'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; }; then
5092 ac_cv_lib_BSD_main=yes
5094 echo "$as_me: failed program was:" >&5
5095 cat conftest.$ac_ext >&5
5096 ac_cv_lib_BSD_main=no
5098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5099 LIBS=$ac_check_lib_save_LIBS
5101 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5102 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5103 if test $ac_cv_lib_BSD_main = yes; then
5104 cat >>confdefs.h <<_ACEOF
5105 #define HAVE_LIBBSD 1
5113 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5114 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5115 if test "${ac_cv_lib_gen_main+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 ac_check_lib_save_LIBS=$LIBS
5120 cat >conftest.$ac_ext <<_ACEOF
5121 #line $LINENO "configure"
5122 #include "confdefs.h"
5125 #ifdef F77_DUMMY_MAIN
5129 int F77_DUMMY_MAIN() { return 1; }
5139 rm -f conftest.$ac_objext conftest$ac_exeext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5141 (eval $ac_link) 2>&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
5145 { ac_try='test -s conftest$ac_exeext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 ac_cv_lib_gen_main=yes
5153 echo "$as_me: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5155 ac_cv_lib_gen_main=no
5157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5158 LIBS=$ac_check_lib_save_LIBS
5160 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5161 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5162 if test $ac_cv_lib_gen_main = yes; then
5163 cat >>confdefs.h <<_ACEOF
5164 #define HAVE_LIBGEN 1
5172 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5173 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5174 if test "${ac_cv_lib_PW_main+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 ac_check_lib_save_LIBS=$LIBS
5179 cat >conftest.$ac_ext <<_ACEOF
5180 #line $LINENO "configure"
5181 #include "confdefs.h"
5184 #ifdef F77_DUMMY_MAIN
5188 int F77_DUMMY_MAIN() { return 1; }
5198 rm -f conftest.$ac_objext conftest$ac_exeext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200 (eval $ac_link) 2>&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } &&
5204 { ac_try='test -s conftest$ac_exeext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 ac_cv_lib_PW_main=yes
5212 echo "$as_me: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
5214 ac_cv_lib_PW_main=no
5216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5217 LIBS=$ac_check_lib_save_LIBS
5219 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5220 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5221 if test $ac_cv_lib_PW_main = yes; then
5222 cat >>confdefs.h <<_ACEOF
5223 #define HAVE_LIBPW 1
5231 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5232 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5233 if test "${ac_cv_lib_resolv_main+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 ac_check_lib_save_LIBS=$LIBS
5237 LIBS="-lresolv $LIBS"
5238 cat >conftest.$ac_ext <<_ACEOF
5239 #line $LINENO "configure"
5240 #include "confdefs.h"
5243 #ifdef F77_DUMMY_MAIN
5247 int F77_DUMMY_MAIN() { return 1; }
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5259 (eval $ac_link) 2>&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } &&
5263 { ac_try='test -s conftest$ac_exeext'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 ac_cv_lib_resolv_main=yes
5271 echo "$as_me: failed program was:" >&5
5272 cat conftest.$ac_ext >&5
5273 ac_cv_lib_resolv_main=no
5275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5276 LIBS=$ac_check_lib_save_LIBS
5278 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5279 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5280 if test $ac_cv_lib_resolv_main = yes; then
5281 cat >>confdefs.h <<_ACEOF
5282 #define HAVE_LIBRESOLV 1
5285 LIBS="-lresolv $LIBS"
5289 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5290 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5291 if test "${ac_cv_search_getopt_long+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 ac_func_search_save_LIBS=$LIBS
5295 ac_cv_search_getopt_long=no
5296 cat >conftest.$ac_ext <<_ACEOF
5297 #line $LINENO "configure"
5298 #include "confdefs.h"
5300 /* Override any gcc2 internal prototype to avoid an error. */
5304 /* We use char because int might match the return type of a gcc2
5305 builtin and then its argument prototype would still apply. */
5306 char getopt_long ();
5307 #ifdef F77_DUMMY_MAIN
5311 int F77_DUMMY_MAIN() { return 1; }
5321 rm -f conftest.$ac_objext conftest$ac_exeext
5322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5323 (eval $ac_link) 2>&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -s conftest$ac_exeext'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; }; then
5333 ac_cv_search_getopt_long="none required"
5335 echo "$as_me: failed program was:" >&5
5336 cat conftest.$ac_ext >&5
5338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5339 if test "$ac_cv_search_getopt_long" = no; then
5340 for ac_lib in getopt; do
5341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5342 cat >conftest.$ac_ext <<_ACEOF
5343 #line $LINENO "configure"
5344 #include "confdefs.h"
5346 /* Override any gcc2 internal prototype to avoid an error. */
5350 /* We use char because int might match the return type of a gcc2
5351 builtin and then its argument prototype would still apply. */
5352 char getopt_long ();
5353 #ifdef F77_DUMMY_MAIN
5357 int F77_DUMMY_MAIN() { return 1; }
5367 rm -f conftest.$ac_objext conftest$ac_exeext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5369 (eval $ac_link) 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -s conftest$ac_exeext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_search_getopt_long="-l$ac_lib"
5382 echo "$as_me: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_func_search_save_LIBS
5390 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5391 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5392 if test "$ac_cv_search_getopt_long" != no; then
5393 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5399 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5400 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5401 if test "${ac_cv_lib_unix_main+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5404 ac_check_lib_save_LIBS=$LIBS
5406 cat >conftest.$ac_ext <<_ACEOF
5407 #line $LINENO "configure"
5408 #include "confdefs.h"
5411 #ifdef F77_DUMMY_MAIN
5415 int F77_DUMMY_MAIN() { return 1; }
5425 rm -f conftest.$ac_objext conftest$ac_exeext
5426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5427 (eval $ac_link) 2>&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); } &&
5431 { ac_try='test -s conftest$ac_exeext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5437 ac_cv_lib_unix_main=yes
5439 echo "$as_me: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5441 ac_cv_lib_unix_main=no
5443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5444 LIBS=$ac_check_lib_save_LIBS
5446 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5447 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5448 if test $ac_cv_lib_unix_main = yes; then
5449 cat >>confdefs.h <<_ACEOF
5450 #define HAVE_LIBUNIX 1
5457 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5458 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5459 if test "${ac_cv_search_crypt+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 ac_func_search_save_LIBS=$LIBS
5463 ac_cv_search_crypt=no
5464 cat >conftest.$ac_ext <<_ACEOF
5465 #line $LINENO "configure"
5466 #include "confdefs.h"
5468 /* Override any gcc2 internal prototype to avoid an error. */
5472 /* We use char because int might match the return type of a gcc2
5473 builtin and then its argument prototype would still apply. */
5475 #ifdef F77_DUMMY_MAIN
5479 int F77_DUMMY_MAIN() { return 1; }
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -s conftest$ac_exeext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_search_crypt="none required"
5503 echo "$as_me: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5507 if test "$ac_cv_search_crypt" = no; then
5508 for ac_lib in crypt; do
5509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5510 cat >conftest.$ac_ext <<_ACEOF
5511 #line $LINENO "configure"
5512 #include "confdefs.h"
5514 /* Override any gcc2 internal prototype to avoid an error. */
5518 /* We use char because int might match the return type of a gcc2
5519 builtin and then its argument prototype would still apply. */
5521 #ifdef F77_DUMMY_MAIN
5525 int F77_DUMMY_MAIN() { return 1; }
5535 rm -f conftest.$ac_objext conftest$ac_exeext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5537 (eval $ac_link) 2>&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -s conftest$ac_exeext'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
5547 ac_cv_search_crypt="-l$ac_lib"
5550 echo "$as_me: failed program was:" >&5
5551 cat conftest.$ac_ext >&5
5553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5556 LIBS=$ac_func_search_save_LIBS
5558 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5559 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5560 if test "$ac_cv_search_crypt" != no; then
5561 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5567 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5568 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5569 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 ac_check_lib_save_LIBS=$LIBS
5574 cat >conftest.$ac_ext <<_ACEOF
5575 #line $LINENO "configure"
5576 #include "confdefs.h"
5578 /* Override any gcc2 internal prototype to avoid an error. */
5582 /* We use char because int might match the return type of a gcc2
5583 builtin and then its argument prototype would still apply. */
5584 char __inet_ntoa ();
5585 #ifdef F77_DUMMY_MAIN
5589 int F77_DUMMY_MAIN() { return 1; }
5599 rm -f conftest.$ac_objext conftest$ac_exeext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_lib_bind___inet_ntoa=yes
5613 echo "$as_me: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
5615 ac_cv_lib_bind___inet_ntoa=no
5617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5620 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5621 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5622 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5623 cat >>confdefs.h <<_ACEOF
5624 #define HAVE_LIBBIND 1
5632 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5633 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5634 if test "${ac_cv_search_fdatasync+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 ac_func_search_save_LIBS=$LIBS
5638 ac_cv_search_fdatasync=no
5639 cat >conftest.$ac_ext <<_ACEOF
5640 #line $LINENO "configure"
5641 #include "confdefs.h"
5643 /* Override any gcc2 internal prototype to avoid an error. */
5647 /* We use char because int might match the return type of a gcc2
5648 builtin and then its argument prototype would still apply. */
5650 #ifdef F77_DUMMY_MAIN
5654 int F77_DUMMY_MAIN() { return 1; }
5664 rm -f conftest.$ac_objext conftest$ac_exeext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5666 (eval $ac_link) 2>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -s conftest$ac_exeext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_search_fdatasync="none required"
5678 echo "$as_me: failed program was:" >&5
5679 cat conftest.$ac_ext >&5
5681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5682 if test "$ac_cv_search_fdatasync" = no; then
5683 for ac_lib in rt posix4; do
5684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5687 #include "confdefs.h"
5689 /* Override any gcc2 internal prototype to avoid an error. */
5693 /* We use char because int might match the return type of a gcc2
5694 builtin and then its argument prototype would still apply. */
5696 #ifdef F77_DUMMY_MAIN
5700 int F77_DUMMY_MAIN() { return 1; }
5710 rm -f conftest.$ac_objext conftest$ac_exeext
5711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5712 (eval $ac_link) 2>&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } &&
5716 { ac_try='test -s conftest$ac_exeext'
5717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }; }; then
5722 ac_cv_search_fdatasync="-l$ac_lib"
5725 echo "$as_me: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5731 LIBS=$ac_func_search_save_LIBS
5733 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5734 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5735 if test "$ac_cv_search_fdatasync" != no; then
5736 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5741 if test "$with_readline" = yes; then
5743 echo "$as_me:$LINENO: checking for readline" >&5
5744 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5746 if test "${pgac_cv_check_readline+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 pgac_cv_check_readline=no
5750 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5751 for pgac_rllib in -lreadline -ledit ; do
5752 pgac_save_LIBS=$LIBS
5753 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5754 cat >conftest.$ac_ext <<_ACEOF
5755 #line $LINENO "configure"
5756 #include "confdefs.h"
5758 /* Override any gcc2 internal prototype to avoid an error. */
5762 /* We use char because int might match the return type of a gcc2
5763 builtin and then its argument prototype would still apply. */
5765 #ifdef F77_DUMMY_MAIN
5769 int F77_DUMMY_MAIN() { return 1; }
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5792 # NetBSD and OpenBSD have a broken linker that does not
5793 # recognize dependent libraries
5794 case $host_os in netbsd* | openbsd* )
5797 *) pgac_lib=" -lcurses" ;;
5801 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5805 echo "$as_me: failed program was:" >&5
5806 cat conftest.$ac_ext >&5
5808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809 LIBS=$pgac_save_LIBS
5812 LIBS=$pgac_save_LIBS
5816 if test "$pgac_cv_check_readline" != no ; then
5818 cat >>confdefs.h <<\_ACEOF
5819 #define HAVE_LIBREADLINE 1
5822 LIBS="$pgac_cv_check_readline $LIBS"
5823 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5824 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5826 echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5829 if test x"$pgac_cv_check_readline" = x"no"; then
5830 { { echo "$as_me:$LINENO: error: readline library not found
5831 Use --without-readline to disable readline support." >&5
5832 echo "$as_me: error: readline library not found
5833 Use --without-readline to disable readline support." >&2;}
5834 { (exit 1); exit 1; }; }
5838 if test "$with_zlib" = yes; then
5840 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5841 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5842 if test "${ac_cv_lib_z_inflate+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_check_lib_save_LIBS=$LIBS
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line $LINENO "configure"
5849 #include "confdefs.h"
5851 /* Override any gcc2 internal prototype to avoid an error. */
5855 /* We use char because int might match the return type of a gcc2
5856 builtin and then its argument prototype would still apply. */
5858 #ifdef F77_DUMMY_MAIN
5862 int F77_DUMMY_MAIN() { return 1; }
5872 rm -f conftest.$ac_objext conftest$ac_exeext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } &&
5878 { ac_try='test -s conftest$ac_exeext'
5879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; }; then
5884 ac_cv_lib_z_inflate=yes
5886 echo "$as_me: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5888 ac_cv_lib_z_inflate=no
5890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5891 LIBS=$ac_check_lib_save_LIBS
5893 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5894 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5895 if test $ac_cv_lib_z_inflate = yes; then
5896 cat >>confdefs.h <<_ACEOF
5903 { { echo "$as_me:$LINENO: error: zlib library not found
5904 Use --without-zlib to disable zlib support." >&5
5905 echo "$as_me: error: zlib library not found
5906 Use --without-zlib to disable zlib support." >&2;}
5907 { (exit 1); exit 1; }; }
5912 if test "$with_krb4" = yes ; then
5914 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5915 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5916 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 ac_check_lib_save_LIBS=$LIBS
5921 cat >conftest.$ac_ext <<_ACEOF
5922 #line $LINENO "configure"
5923 #include "confdefs.h"
5925 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5931 char des_encrypt ();
5932 #ifdef F77_DUMMY_MAIN
5936 int F77_DUMMY_MAIN() { return 1; }
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948 (eval $ac_link) 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -s conftest$ac_exeext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5958 ac_cv_lib_des_des_encrypt=yes
5960 echo "$as_me: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5962 ac_cv_lib_des_des_encrypt=no
5964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5965 LIBS=$ac_check_lib_save_LIBS
5967 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
5968 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
5969 if test $ac_cv_lib_des_des_encrypt = yes; then
5970 cat >>confdefs.h <<_ACEOF
5971 #define HAVE_LIBDES 1
5977 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
5978 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
5979 { (exit 1); exit 1; }; }
5983 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
5984 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
5985 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 ac_check_lib_save_LIBS=$LIBS
5990 cat >conftest.$ac_ext <<_ACEOF
5991 #line $LINENO "configure"
5992 #include "confdefs.h"
5994 /* Override any gcc2 internal prototype to avoid an error. */
5998 /* We use char because int might match the return type of a gcc2
5999 builtin and then its argument prototype would still apply. */
6000 char krb_sendauth ();
6001 #ifdef F77_DUMMY_MAIN
6005 int F77_DUMMY_MAIN() { return 1; }
6015 rm -f conftest.$ac_objext conftest$ac_exeext
6016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017 (eval $ac_link) 2>&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -s conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_lib_krb_krb_sendauth=yes
6029 echo "$as_me: failed program was:" >&5
6030 cat conftest.$ac_ext >&5
6031 ac_cv_lib_krb_krb_sendauth=no
6033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6034 LIBS=$ac_check_lib_save_LIBS
6036 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6037 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6038 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6039 cat >>confdefs.h <<_ACEOF
6040 #define HAVE_LIBKRB 1
6046 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6047 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6048 { (exit 1); exit 1; }; }
6053 if test "$with_krb5" = yes ; then
6054 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6055 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6056 if test "${ac_cv_search_com_err+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_func_search_save_LIBS=$LIBS
6060 ac_cv_search_com_err=no
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line $LINENO "configure"
6063 #include "confdefs.h"
6065 /* Override any gcc2 internal prototype to avoid an error. */
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6072 #ifdef F77_DUMMY_MAIN
6076 int F77_DUMMY_MAIN() { return 1; }
6086 rm -f conftest.$ac_objext conftest$ac_exeext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6088 (eval $ac_link) 2>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -s conftest$ac_exeext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_cv_search_com_err="none required"
6100 echo "$as_me: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 if test "$ac_cv_search_com_err" = no; then
6105 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6107 cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6109 #include "confdefs.h"
6111 /* Override any gcc2 internal prototype to avoid an error. */
6115 /* We use char because int might match the return type of a gcc2
6116 builtin and then its argument prototype would still apply. */
6118 #ifdef F77_DUMMY_MAIN
6122 int F77_DUMMY_MAIN() { return 1; }
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -s conftest$ac_exeext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 ac_cv_search_com_err="-l$ac_lib"
6147 echo "$as_me: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6153 LIBS=$ac_func_search_save_LIBS
6155 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6156 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6157 if test "$ac_cv_search_com_err" != no; then
6158 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6161 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6162 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6163 { (exit 1); exit 1; }; }
6166 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6167 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6168 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 ac_func_search_save_LIBS=$LIBS
6172 ac_cv_search_krb5_encrypt=no
6173 cat >conftest.$ac_ext <<_ACEOF
6174 #line $LINENO "configure"
6175 #include "confdefs.h"
6177 /* Override any gcc2 internal prototype to avoid an error. */
6181 /* We use char because int might match the return type of a gcc2
6182 builtin and then its argument prototype would still apply. */
6183 char krb5_encrypt ();
6184 #ifdef F77_DUMMY_MAIN
6188 int F77_DUMMY_MAIN() { return 1; }
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200 (eval $ac_link) 2>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -s conftest$ac_exeext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 ac_cv_search_krb5_encrypt="none required"
6212 echo "$as_me: failed program was:" >&5
6213 cat conftest.$ac_ext >&5
6215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6216 if test "$ac_cv_search_krb5_encrypt" = no; then
6217 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6219 cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6221 #include "confdefs.h"
6223 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6229 char krb5_encrypt ();
6230 #ifdef F77_DUMMY_MAIN
6234 int F77_DUMMY_MAIN() { return 1; }
6244 rm -f conftest.$ac_objext conftest$ac_exeext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246 (eval $ac_link) 2>&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } &&
6250 { ac_try='test -s conftest$ac_exeext'
6251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); }; }; then
6256 ac_cv_search_krb5_encrypt="-l$ac_lib"
6259 echo "$as_me: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6265 LIBS=$ac_func_search_save_LIBS
6267 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6268 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6269 if test "$ac_cv_search_krb5_encrypt" != no; then
6270 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6273 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6274 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6275 { (exit 1); exit 1; }; }
6278 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6279 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6280 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 ac_func_search_save_LIBS=$LIBS
6284 ac_cv_search_krb5_sendauth=no
6285 cat >conftest.$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6287 #include "confdefs.h"
6289 /* Override any gcc2 internal prototype to avoid an error. */
6293 /* We use char because int might match the return type of a gcc2
6294 builtin and then its argument prototype would still apply. */
6295 char krb5_sendauth ();
6296 #ifdef F77_DUMMY_MAIN
6300 int F77_DUMMY_MAIN() { return 1; }
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6312 (eval $ac_link) 2>&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -s conftest$ac_exeext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_search_krb5_sendauth="none required"
6324 echo "$as_me: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6328 if test "$ac_cv_search_krb5_sendauth" = no; then
6329 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6331 cat >conftest.$ac_ext <<_ACEOF
6332 #line $LINENO "configure"
6333 #include "confdefs.h"
6335 /* Override any gcc2 internal prototype to avoid an error. */
6339 /* We use char because int might match the return type of a gcc2
6340 builtin and then its argument prototype would still apply. */
6341 char krb5_sendauth ();
6342 #ifdef F77_DUMMY_MAIN
6346 int F77_DUMMY_MAIN() { return 1; }
6356 rm -f conftest.$ac_objext conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -s conftest$ac_exeext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_search_krb5_sendauth="-l$ac_lib"
6371 echo "$as_me: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6377 LIBS=$ac_func_search_save_LIBS
6379 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6380 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6381 if test "$ac_cv_search_krb5_sendauth" != no; then
6382 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6385 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6386 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6387 { (exit 1); exit 1; }; }
6392 if test "$with_openssl" = yes ; then
6394 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6395 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6396 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 ac_check_lib_save_LIBS=$LIBS
6400 LIBS="-lcrypto $LIBS"
6401 cat >conftest.$ac_ext <<_ACEOF
6402 #line $LINENO "configure"
6403 #include "confdefs.h"
6405 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6411 char CRYPTO_new_ex_data ();
6412 #ifdef F77_DUMMY_MAIN
6416 int F77_DUMMY_MAIN() { return 1; }
6421 CRYPTO_new_ex_data ();
6426 rm -f conftest.$ac_objext conftest$ac_exeext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6428 (eval $ac_link) 2>&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -s conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6440 echo "$as_me: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6442 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6445 LIBS=$ac_check_lib_save_LIBS
6447 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6448 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6449 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6450 cat >>confdefs.h <<_ACEOF
6451 #define HAVE_LIBCRYPTO 1
6454 LIBS="-lcrypto $LIBS"
6457 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6458 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6459 { (exit 1); exit 1; }; }
6463 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6464 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6465 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 ac_check_lib_save_LIBS=$LIBS
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line $LINENO "configure"
6472 #include "confdefs.h"
6474 /* Override any gcc2 internal prototype to avoid an error. */
6478 /* We use char because int might match the return type of a gcc2
6479 builtin and then its argument prototype would still apply. */
6480 char SSL_library_init ();
6481 #ifdef F77_DUMMY_MAIN
6485 int F77_DUMMY_MAIN() { return 1; }
6490 SSL_library_init ();
6495 rm -f conftest.$ac_objext conftest$ac_exeext
6496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6497 (eval $ac_link) 2>&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try='test -s conftest$ac_exeext'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; }; then
6507 ac_cv_lib_ssl_SSL_library_init=yes
6509 echo "$as_me: failed program was:" >&5
6510 cat conftest.$ac_ext >&5
6511 ac_cv_lib_ssl_SSL_library_init=no
6513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6514 LIBS=$ac_check_lib_save_LIBS
6516 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6517 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6518 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6519 cat >>confdefs.h <<_ACEOF
6520 #define HAVE_LIBSSL 1
6526 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6527 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6528 { (exit 1); exit 1; }; }
6533 if test "$with_pam" = yes ; then
6535 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6536 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6537 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 ac_check_lib_save_LIBS=$LIBS
6542 cat >conftest.$ac_ext <<_ACEOF
6543 #line $LINENO "configure"
6544 #include "confdefs.h"
6546 /* Override any gcc2 internal prototype to avoid an error. */
6550 /* We use char because int might match the return type of a gcc2
6551 builtin and then its argument prototype would still apply. */
6553 #ifdef F77_DUMMY_MAIN
6557 int F77_DUMMY_MAIN() { return 1; }
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -s conftest$ac_exeext'
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6579 ac_cv_lib_pam_pam_start=yes
6581 echo "$as_me: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6583 ac_cv_lib_pam_pam_start=no
6585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6586 LIBS=$ac_check_lib_save_LIBS
6588 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6589 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6590 if test $ac_cv_lib_pam_pam_start = yes; then
6591 cat >>confdefs.h <<_ACEOF
6592 #define HAVE_LIBPAM 1
6598 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6599 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6600 { (exit 1); exit 1; }; }
6610 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6611 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6612 if test "${ac_cv_header_stdc+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 cat >conftest.$ac_ext <<_ACEOF
6616 #line $LINENO "configure"
6617 #include "confdefs.h"
6624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6627 egrep -v '^ *\+' conftest.er1 >conftest.err
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } >/dev/null; then
6632 if test -s conftest.err; then
6633 ac_cpp_err=$ac_c_preproc_warn_flag
6640 if test -z "$ac_cpp_err"; then
6641 ac_cv_header_stdc=yes
6643 echo "$as_me: failed program was:" >&5
6644 cat conftest.$ac_ext >&5
6645 ac_cv_header_stdc=no
6647 rm -f conftest.err conftest.$ac_ext
6649 if test $ac_cv_header_stdc = yes; then
6650 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6651 cat >conftest.$ac_ext <<_ACEOF
6652 #line $LINENO "configure"
6653 #include "confdefs.h"
6657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6658 egrep "memchr" >/dev/null 2>&1; then
6661 ac_cv_header_stdc=no
6667 if test $ac_cv_header_stdc = yes; then
6668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6669 cat >conftest.$ac_ext <<_ACEOF
6670 #line $LINENO "configure"
6671 #include "confdefs.h"
6675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6676 egrep "free" >/dev/null 2>&1; then
6679 ac_cv_header_stdc=no
6685 if test $ac_cv_header_stdc = yes; then
6686 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6687 if test "$cross_compiling" = yes; then
6690 cat >conftest.$ac_ext <<_ACEOF
6691 #line $LINENO "configure"
6692 #include "confdefs.h"
6694 #if ((' ' & 0x0FF) == 0x020)
6695 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6696 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6698 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6699 || ('j' <= (c) && (c) <= 'r') \
6700 || ('s' <= (c) && (c) <= 'z'))
6701 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6704 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6709 for (i = 0; i < 256; i++)
6710 if (XOR (islower (i), ISLOWER (i))
6711 || toupper (i) != TOUPPER (i))
6716 rm -f conftest$ac_exeext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6718 (eval $ac_link) 2>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6729 echo "$as_me: program exited with status $ac_status" >&5
6730 echo "$as_me: failed program was:" >&5
6731 cat conftest.$ac_ext >&5
6733 ac_cv_header_stdc=no
6735 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6739 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6740 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6741 if test $ac_cv_header_stdc = yes; then
6743 cat >>confdefs.h <<\_ACEOF
6744 #define STDC_HEADERS 1
6749 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6759 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6760 inttypes.h stdint.h unistd.h
6762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6763 echo "$as_me:$LINENO: checking for $ac_header" >&5
6764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6771 $ac_includes_default
6773 #include <$ac_header>
6775 rm -f conftest.$ac_objext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777 (eval $ac_compile) 2>&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 eval "$as_ac_Header=yes"
6789 echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 eval "$as_ac_Header=no"
6793 rm -f conftest.$ac_objext conftest.$ac_ext
6795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6798 cat >>confdefs.h <<_ACEOF
6799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6825 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
6827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6829 echo "$as_me:$LINENO: checking for $ac_header" >&5
6830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6837 # Is the header compilable?
6838 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6839 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6840 cat >conftest.$ac_ext <<_ACEOF
6841 #line $LINENO "configure"
6842 #include "confdefs.h"
6843 $ac_includes_default
6844 #include <$ac_header>
6846 rm -f conftest.$ac_objext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848 (eval $ac_compile) 2>&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6852 { ac_try='test -s conftest.$ac_objext'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; }; then
6858 ac_header_compiler=yes
6860 echo "$as_me: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6862 ac_header_compiler=no
6864 rm -f conftest.$ac_objext conftest.$ac_ext
6865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6866 echo "${ECHO_T}$ac_header_compiler" >&6
6868 # Is the header present?
6869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6871 cat >conftest.$ac_ext <<_ACEOF
6872 #line $LINENO "configure"
6873 #include "confdefs.h"
6874 #include <$ac_header>
6876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6879 egrep -v '^ *\+' conftest.er1 >conftest.err
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } >/dev/null; then
6884 if test -s conftest.err; then
6885 ac_cpp_err=$ac_c_preproc_warn_flag
6892 if test -z "$ac_cpp_err"; then
6893 ac_header_preproc=yes
6895 echo "$as_me: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6897 ac_header_preproc=no
6899 rm -f conftest.err conftest.$ac_ext
6900 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6901 echo "${ECHO_T}$ac_header_preproc" >&6
6903 # So? What about this header?
6904 case $ac_header_compiler:$ac_header_preproc in
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6918 echo "$as_me:$LINENO: checking for $ac_header" >&5
6919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 eval "$as_ac_Header=$ac_header_preproc"
6925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6930 cat >>confdefs.h <<_ACEOF
6931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6939 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
6940 # netinet/in.h is included first.
6942 for ac_header in netinet/in.h
6944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6946 echo "$as_me:$LINENO: checking for $ac_header" >&5
6947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6954 # Is the header compilable?
6955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6957 cat >conftest.$ac_ext <<_ACEOF
6958 #line $LINENO "configure"
6959 #include "confdefs.h"
6960 $ac_includes_default
6961 #include <$ac_header>
6963 rm -f conftest.$ac_objext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965 (eval $ac_compile) 2>&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -s conftest.$ac_objext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 ac_header_compiler=yes
6977 echo "$as_me: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 ac_header_compiler=no
6981 rm -f conftest.$ac_objext conftest.$ac_ext
6982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6983 echo "${ECHO_T}$ac_header_compiler" >&6
6985 # Is the header present?
6986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6989 #line $LINENO "configure"
6990 #include "confdefs.h"
6991 #include <$ac_header>
6993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6996 egrep -v '^ *\+' conftest.er1 >conftest.err
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } >/dev/null; then
7001 if test -s conftest.err; then
7002 ac_cpp_err=$ac_c_preproc_warn_flag
7009 if test -z "$ac_cpp_err"; then
7010 ac_header_preproc=yes
7012 echo "$as_me: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7014 ac_header_preproc=no
7016 rm -f conftest.err conftest.$ac_ext
7017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7018 echo "${ECHO_T}$ac_header_preproc" >&6
7020 # So? What about this header?
7021 case $ac_header_compiler:$ac_header_preproc in
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7031 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7035 echo "$as_me:$LINENO: checking for $ac_header" >&5
7036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 eval "$as_ac_Header=$ac_header_preproc"
7042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7047 cat >>confdefs.h <<_ACEOF
7048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7056 for ac_header in netinet/tcp.h
7058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7059 echo "$as_me:$LINENO: checking for $ac_header" >&5
7060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 cat >conftest.$ac_ext <<_ACEOF
7065 #line $LINENO "configure"
7066 #include "confdefs.h"
7067 $ac_includes_default
7068 #ifdef HAVE_NETINET_IN_H
7069 #include <netinet/in.h>
7073 #include <$ac_header>
7075 rm -f conftest.$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } &&
7081 { ac_try='test -s conftest.$ac_objext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 eval "$as_ac_Header=yes"
7089 echo "$as_me: failed program was:" >&5
7090 cat conftest.$ac_ext >&5
7091 eval "$as_ac_Header=no"
7093 rm -f conftest.$ac_objext conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7098 cat >>confdefs.h <<_ACEOF
7099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7107 if test "$with_readline" = yes; then
7109 for ac_header in readline/readline.h
7111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7113 echo "$as_me:$LINENO: checking for $ac_header" >&5
7114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7121 # Is the header compilable?
7122 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7124 cat >conftest.$ac_ext <<_ACEOF
7125 #line $LINENO "configure"
7126 #include "confdefs.h"
7127 $ac_includes_default
7128 #include <$ac_header>
7130 rm -f conftest.$ac_objext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7132 (eval $ac_compile) 2>&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } &&
7136 { ac_try='test -s conftest.$ac_objext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 ac_header_compiler=yes
7144 echo "$as_me: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7146 ac_header_compiler=no
7148 rm -f conftest.$ac_objext conftest.$ac_ext
7149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7150 echo "${ECHO_T}$ac_header_compiler" >&6
7152 # Is the header present?
7153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7155 cat >conftest.$ac_ext <<_ACEOF
7156 #line $LINENO "configure"
7157 #include "confdefs.h"
7158 #include <$ac_header>
7160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7163 egrep -v '^ *\+' conftest.er1 >conftest.err
7165 cat conftest.err >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } >/dev/null; then
7168 if test -s conftest.err; then
7169 ac_cpp_err=$ac_c_preproc_warn_flag
7176 if test -z "$ac_cpp_err"; then
7177 ac_header_preproc=yes
7179 echo "$as_me: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7181 ac_header_preproc=no
7183 rm -f conftest.err conftest.$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7185 echo "${ECHO_T}$ac_header_preproc" >&6
7187 # So? What about this header?
7188 case $ac_header_compiler:$ac_header_preproc in
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7202 echo "$as_me:$LINENO: checking for $ac_header" >&5
7203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 eval "$as_ac_Header=$ac_header_preproc"
7209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7214 cat >>confdefs.h <<_ACEOF
7215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7220 for ac_header in readline.h
7222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7224 echo "$as_me:$LINENO: checking for $ac_header" >&5
7225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7232 # Is the header compilable?
7233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7235 cat >conftest.$ac_ext <<_ACEOF
7236 #line $LINENO "configure"
7237 #include "confdefs.h"
7238 $ac_includes_default
7239 #include <$ac_header>
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243 (eval $ac_compile) 2>&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } &&
7247 { ac_try='test -s conftest.$ac_objext'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; }; then
7253 ac_header_compiler=yes
7255 echo "$as_me: failed program was:" >&5
7256 cat conftest.$ac_ext >&5
7257 ac_header_compiler=no
7259 rm -f conftest.$ac_objext conftest.$ac_ext
7260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7261 echo "${ECHO_T}$ac_header_compiler" >&6
7263 # Is the header present?
7264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7266 cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7268 #include "confdefs.h"
7269 #include <$ac_header>
7271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7274 egrep -v '^ *\+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } >/dev/null; then
7279 if test -s conftest.err; then
7280 ac_cpp_err=$ac_c_preproc_warn_flag
7287 if test -z "$ac_cpp_err"; then
7288 ac_header_preproc=yes
7290 echo "$as_me: failed program was:" >&5
7291 cat conftest.$ac_ext >&5
7292 ac_header_preproc=no
7294 rm -f conftest.err conftest.$ac_ext
7295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7296 echo "${ECHO_T}$ac_header_preproc" >&6
7298 # So? What about this header?
7299 case $ac_header_compiler:$ac_header_preproc in
7301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7313 echo "$as_me:$LINENO: checking for $ac_header" >&5
7314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 eval "$as_ac_Header=$ac_header_preproc"
7320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7325 cat >>confdefs.h <<_ACEOF
7326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7330 { { echo "$as_me:$LINENO: error: readline header not found
7331 Use --without-readline to disable readline support." >&5
7332 echo "$as_me: error: readline header not found
7333 Use --without-readline to disable readline support." >&2;}
7334 { (exit 1); exit 1; }; }
7344 for ac_header in readline/history.h
7346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7348 echo "$as_me:$LINENO: checking for $ac_header" >&5
7349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7351 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7356 # Is the header compilable?
7357 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7360 #line $LINENO "configure"
7361 #include "confdefs.h"
7362 $ac_includes_default
7363 #include <$ac_header>
7365 rm -f conftest.$ac_objext
7366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7367 (eval $ac_compile) 2>&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 { ac_try='test -s conftest.$ac_objext'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7377 ac_header_compiler=yes
7379 echo "$as_me: failed program was:" >&5
7380 cat conftest.$ac_ext >&5
7381 ac_header_compiler=no
7383 rm -f conftest.$ac_objext conftest.$ac_ext
7384 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7385 echo "${ECHO_T}$ac_header_compiler" >&6
7387 # Is the header present?
7388 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7390 cat >conftest.$ac_ext <<_ACEOF
7391 #line $LINENO "configure"
7392 #include "confdefs.h"
7393 #include <$ac_header>
7395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7398 egrep -v '^ *\+' conftest.er1 >conftest.err
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } >/dev/null; then
7403 if test -s conftest.err; then
7404 ac_cpp_err=$ac_c_preproc_warn_flag
7411 if test -z "$ac_cpp_err"; then
7412 ac_header_preproc=yes
7414 echo "$as_me: failed program was:" >&5
7415 cat conftest.$ac_ext >&5
7416 ac_header_preproc=no
7418 rm -f conftest.err conftest.$ac_ext
7419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7420 echo "${ECHO_T}$ac_header_preproc" >&6
7422 # So? What about this header?
7423 case $ac_header_compiler:$ac_header_preproc in
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7437 echo "$as_me:$LINENO: checking for $ac_header" >&5
7438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 eval "$as_ac_Header=$ac_header_preproc"
7444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7449 cat >>confdefs.h <<_ACEOF
7450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7455 for ac_header in history.h
7457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7459 echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7467 # Is the header compilable?
7468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 #include "confdefs.h"
7473 $ac_includes_default
7474 #include <$ac_header>
7476 rm -f conftest.$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478 (eval $ac_compile) 2>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } &&
7482 { ac_try='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_header_compiler=yes
7490 echo "$as_me: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7492 ac_header_compiler=no
7494 rm -f conftest.$ac_objext conftest.$ac_ext
7495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496 echo "${ECHO_T}$ac_header_compiler" >&6
7498 # Is the header present?
7499 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7502 #line $LINENO "configure"
7503 #include "confdefs.h"
7504 #include <$ac_header>
7506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7509 egrep -v '^ *\+' conftest.er1 >conftest.err
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } >/dev/null; then
7514 if test -s conftest.err; then
7515 ac_cpp_err=$ac_c_preproc_warn_flag
7522 if test -z "$ac_cpp_err"; then
7523 ac_header_preproc=yes
7525 echo "$as_me: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7527 ac_header_preproc=no
7529 rm -f conftest.err conftest.$ac_ext
7530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7531 echo "${ECHO_T}$ac_header_preproc" >&6
7533 # So? What about this header?
7534 case $ac_header_compiler:$ac_header_preproc in
7536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7548 echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 eval "$as_ac_Header=$ac_header_preproc"
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7560 cat >>confdefs.h <<_ACEOF
7561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7565 { { echo "$as_me:$LINENO: error: history header not found
7566 Use --without-readline to disable readline support." >&5
7567 echo "$as_me: error: history header not found
7568 Use --without-readline to disable readline support." >&2;}
7569 { (exit 1); exit 1; }; }
7580 if test "$with_zlib" = yes; then
7581 if test "${ac_cv_header_zlib_h+set}" = set; then
7582 echo "$as_me:$LINENO: checking for zlib.h" >&5
7583 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7584 if test "${ac_cv_header_zlib_h+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7588 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7590 # Is the header compilable?
7591 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7592 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7593 cat >conftest.$ac_ext <<_ACEOF
7594 #line $LINENO "configure"
7595 #include "confdefs.h"
7596 $ac_includes_default
7599 rm -f conftest.$ac_objext
7600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7601 (eval $ac_compile) 2>&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); } &&
7605 { ac_try='test -s conftest.$ac_objext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_header_compiler=yes
7613 echo "$as_me: failed program was:" >&5
7614 cat conftest.$ac_ext >&5
7615 ac_header_compiler=no
7617 rm -f conftest.$ac_objext conftest.$ac_ext
7618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7619 echo "${ECHO_T}$ac_header_compiler" >&6
7621 # Is the header present?
7622 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7623 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7624 cat >conftest.$ac_ext <<_ACEOF
7625 #line $LINENO "configure"
7626 #include "confdefs.h"
7629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7632 egrep -v '^ *\+' conftest.er1 >conftest.err
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } >/dev/null; then
7637 if test -s conftest.err; then
7638 ac_cpp_err=$ac_c_preproc_warn_flag
7645 if test -z "$ac_cpp_err"; then
7646 ac_header_preproc=yes
7648 echo "$as_me: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7650 ac_header_preproc=no
7652 rm -f conftest.err conftest.$ac_ext
7653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7654 echo "${ECHO_T}$ac_header_preproc" >&6
7656 # So? What about this header?
7657 case $ac_header_compiler:$ac_header_preproc in
7659 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7660 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7661 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7662 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7664 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7665 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7666 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7667 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7668 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7669 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7671 echo "$as_me:$LINENO: checking for zlib.h" >&5
7672 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7673 if test "${ac_cv_header_zlib_h+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 ac_cv_header_zlib_h=$ac_header_preproc
7678 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7679 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7682 if test $ac_cv_header_zlib_h = yes; then
7685 { { echo "$as_me:$LINENO: error: zlib header not found
7686 Use --without-zlib to disable zlib support." >&5
7687 echo "$as_me: error: zlib header not found
7688 Use --without-zlib to disable zlib support." >&2;}
7689 { (exit 1); exit 1; }; }
7695 if test "$with_krb4" = yes ; then
7696 if test "${ac_cv_header_krb_h+set}" = set; then
7697 echo "$as_me:$LINENO: checking for krb.h" >&5
7698 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7699 if test "${ac_cv_header_krb_h+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7703 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7705 # Is the header compilable?
7706 echo "$as_me:$LINENO: checking krb.h usability" >&5
7707 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line $LINENO "configure"
7710 #include "confdefs.h"
7711 $ac_includes_default
7714 rm -f conftest.$ac_objext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7716 (eval $ac_compile) 2>&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try='test -s conftest.$ac_objext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_header_compiler=yes
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 ac_header_compiler=no
7732 rm -f conftest.$ac_objext conftest.$ac_ext
7733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7734 echo "${ECHO_T}$ac_header_compiler" >&6
7736 # Is the header present?
7737 echo "$as_me:$LINENO: checking krb.h presence" >&5
7738 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7739 cat >conftest.$ac_ext <<_ACEOF
7740 #line $LINENO "configure"
7741 #include "confdefs.h"
7744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7747 egrep -v '^ *\+' conftest.er1 >conftest.err
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } >/dev/null; then
7752 if test -s conftest.err; then
7753 ac_cpp_err=$ac_c_preproc_warn_flag
7760 if test -z "$ac_cpp_err"; then
7761 ac_header_preproc=yes
7763 echo "$as_me: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 ac_header_preproc=no
7767 rm -f conftest.err conftest.$ac_ext
7768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7769 echo "${ECHO_T}$ac_header_preproc" >&6
7771 # So? What about this header?
7772 case $ac_header_compiler:$ac_header_preproc in
7774 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7775 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7776 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7777 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7779 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7780 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7782 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7784 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7786 echo "$as_me:$LINENO: checking for krb.h" >&5
7787 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7788 if test "${ac_cv_header_krb_h+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 ac_cv_header_krb_h=$ac_header_preproc
7793 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7794 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7797 if test $ac_cv_header_krb_h = yes; then
7800 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7801 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7802 { (exit 1); exit 1; }; }
7808 if test "$with_krb5" = yes ; then
7809 if test "${ac_cv_header_krb5_h+set}" = set; then
7810 echo "$as_me:$LINENO: checking for krb5.h" >&5
7811 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7812 if test "${ac_cv_header_krb5_h+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7816 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7818 # Is the header compilable?
7819 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7820 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7822 #line $LINENO "configure"
7823 #include "confdefs.h"
7824 $ac_includes_default
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -s conftest.$ac_objext'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 ac_header_compiler=yes
7841 echo "$as_me: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7843 ac_header_compiler=no
7845 rm -f conftest.$ac_objext conftest.$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7847 echo "${ECHO_T}$ac_header_compiler" >&6
7849 # Is the header present?
7850 echo "$as_me:$LINENO: checking krb5.h presence" >&5
7851 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
7852 cat >conftest.$ac_ext <<_ACEOF
7853 #line $LINENO "configure"
7854 #include "confdefs.h"
7857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7860 egrep -v '^ *\+' conftest.er1 >conftest.err
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } >/dev/null; then
7865 if test -s conftest.err; then
7866 ac_cpp_err=$ac_c_preproc_warn_flag
7873 if test -z "$ac_cpp_err"; then
7874 ac_header_preproc=yes
7876 echo "$as_me: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7878 ac_header_preproc=no
7880 rm -f conftest.err conftest.$ac_ext
7881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882 echo "${ECHO_T}$ac_header_preproc" >&6
7884 # So? What about this header?
7885 case $ac_header_compiler:$ac_header_preproc in
7887 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
7888 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7890 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7892 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
7893 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
7894 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
7895 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
7897 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
7899 echo "$as_me:$LINENO: checking for krb5.h" >&5
7900 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7901 if test "${ac_cv_header_krb5_h+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_cv_header_krb5_h=$ac_header_preproc
7906 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7907 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7910 if test $ac_cv_header_krb5_h = yes; then
7913 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
7914 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
7915 { (exit 1); exit 1; }; }
7919 if test "${ac_cv_header_com_err_h+set}" = set; then
7920 echo "$as_me:$LINENO: checking for com_err.h" >&5
7921 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
7922 if test "${ac_cv_header_com_err_h+set}" = set; then
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
7926 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
7928 # Is the header compilable?
7929 echo "$as_me:$LINENO: checking com_err.h usability" >&5
7930 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 #include "confdefs.h"
7934 $ac_includes_default
7935 #include <com_err.h>
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_header_compiler=yes
7951 echo "$as_me: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7953 ac_header_compiler=no
7955 rm -f conftest.$ac_objext conftest.$ac_ext
7956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7957 echo "${ECHO_T}$ac_header_compiler" >&6
7959 # Is the header present?
7960 echo "$as_me:$LINENO: checking com_err.h presence" >&5
7961 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
7962 cat >conftest.$ac_ext <<_ACEOF
7963 #line $LINENO "configure"
7964 #include "confdefs.h"
7965 #include <com_err.h>
7967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7970 egrep -v '^ *\+' conftest.er1 >conftest.err
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } >/dev/null; then
7975 if test -s conftest.err; then
7976 ac_cpp_err=$ac_c_preproc_warn_flag
7983 if test -z "$ac_cpp_err"; then
7984 ac_header_preproc=yes
7986 echo "$as_me: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7988 ac_header_preproc=no
7990 rm -f conftest.err conftest.$ac_ext
7991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7992 echo "${ECHO_T}$ac_header_preproc" >&6
7994 # So? What about this header?
7995 case $ac_header_compiler:$ac_header_preproc in
7997 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
7998 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8000 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8002 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8003 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8004 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8005 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8006 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8007 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8009 echo "$as_me:$LINENO: checking for com_err.h" >&5
8010 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8011 if test "${ac_cv_header_com_err_h+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 ac_cv_header_com_err_h=$ac_header_preproc
8016 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8017 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8020 if test $ac_cv_header_com_err_h = yes; then
8023 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8024 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8025 { (exit 1); exit 1; }; }
8031 if test "$with_openssl" = yes ; then
8032 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8033 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8034 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8035 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8039 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8041 # Is the header compilable?
8042 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8043 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 #include "confdefs.h"
8047 $ac_includes_default
8048 #include <openssl/ssl.h>
8050 rm -f conftest.$ac_objext
8051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8052 (eval $ac_compile) 2>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_header_compiler=yes
8064 echo "$as_me: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8066 ac_header_compiler=no
8068 rm -f conftest.$ac_objext conftest.$ac_ext
8069 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8070 echo "${ECHO_T}$ac_header_compiler" >&6
8072 # Is the header present?
8073 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8074 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8077 #include "confdefs.h"
8078 #include <openssl/ssl.h>
8080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8083 egrep -v '^ *\+' conftest.er1 >conftest.err
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } >/dev/null; then
8088 if test -s conftest.err; then
8089 ac_cpp_err=$ac_c_preproc_warn_flag
8096 if test -z "$ac_cpp_err"; then
8097 ac_header_preproc=yes
8099 echo "$as_me: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8101 ac_header_preproc=no
8103 rm -f conftest.err conftest.$ac_ext
8104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8105 echo "${ECHO_T}$ac_header_preproc" >&6
8107 # So? What about this header?
8108 case $ac_header_compiler:$ac_header_preproc in
8110 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8111 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8113 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8115 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8116 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8117 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8118 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8120 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8122 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8123 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8124 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8129 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8130 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8133 if test $ac_cv_header_openssl_ssl_h = yes; then
8136 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8137 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8138 { (exit 1); exit 1; }; }
8142 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8143 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8144 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8145 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8149 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8151 # Is the header compilable?
8152 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8153 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8154 cat >conftest.$ac_ext <<_ACEOF
8155 #line $LINENO "configure"
8156 #include "confdefs.h"
8157 $ac_includes_default
8158 #include <openssl/err.h>
8160 rm -f conftest.$ac_objext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162 (eval $ac_compile) 2>&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -s conftest.$ac_objext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 ac_header_compiler=yes
8174 echo "$as_me: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8176 ac_header_compiler=no
8178 rm -f conftest.$ac_objext conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8180 echo "${ECHO_T}$ac_header_compiler" >&6
8182 # Is the header present?
8183 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8184 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8185 cat >conftest.$ac_ext <<_ACEOF
8186 #line $LINENO "configure"
8187 #include "confdefs.h"
8188 #include <openssl/err.h>
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8193 egrep -v '^ *\+' conftest.er1 >conftest.err
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } >/dev/null; then
8198 if test -s conftest.err; then
8199 ac_cpp_err=$ac_c_preproc_warn_flag
8206 if test -z "$ac_cpp_err"; then
8207 ac_header_preproc=yes
8209 echo "$as_me: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8211 ac_header_preproc=no
8213 rm -f conftest.err conftest.$ac_ext
8214 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8215 echo "${ECHO_T}$ac_header_preproc" >&6
8217 # So? What about this header?
8218 case $ac_header_compiler:$ac_header_preproc in
8220 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8221 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8222 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8223 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8225 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8226 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8227 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8228 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8229 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8230 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8232 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8233 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8234 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 ac_cv_header_openssl_err_h=$ac_header_preproc
8239 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8240 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8243 if test $ac_cv_header_openssl_err_h = yes; then
8246 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8247 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8248 { (exit 1); exit 1; }; }
8254 if test "$with_pam" = yes ; then
8255 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8256 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8257 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8258 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8262 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8264 # Is the header compilable?
8265 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8266 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8267 cat >conftest.$ac_ext <<_ACEOF
8268 #line $LINENO "configure"
8269 #include "confdefs.h"
8270 $ac_includes_default
8271 #include <security/pam_appl.h>
8273 rm -f conftest.$ac_objext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275 (eval $ac_compile) 2>&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -s conftest.$ac_objext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_header_compiler=yes
8287 echo "$as_me: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8289 ac_header_compiler=no
8291 rm -f conftest.$ac_objext conftest.$ac_ext
8292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8293 echo "${ECHO_T}$ac_header_compiler" >&6
8295 # Is the header present?
8296 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8297 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8299 #line $LINENO "configure"
8300 #include "confdefs.h"
8301 #include <security/pam_appl.h>
8303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8306 egrep -v '^ *\+' conftest.er1 >conftest.err
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } >/dev/null; then
8311 if test -s conftest.err; then
8312 ac_cpp_err=$ac_c_preproc_warn_flag
8319 if test -z "$ac_cpp_err"; then
8320 ac_header_preproc=yes
8322 echo "$as_me: failed program was:" >&5
8323 cat conftest.$ac_ext >&5
8324 ac_header_preproc=no
8326 rm -f conftest.err conftest.$ac_ext
8327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8328 echo "${ECHO_T}$ac_header_preproc" >&6
8330 # So? What about this header?
8331 case $ac_header_compiler:$ac_header_preproc in
8333 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8334 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8336 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8338 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8339 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8340 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8341 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8342 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8343 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8345 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8346 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8347 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 ac_cv_header_security_pam_appl_h=$ac_header_preproc
8352 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8353 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8356 if test $ac_cv_header_security_pam_appl_h = yes; then
8359 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8360 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8361 { (exit 1); exit 1; }; }
8369 ## Types, structures, compiler characteristics
8373 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8374 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8375 if test "${ac_cv_c_const+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 cat >conftest.$ac_ext <<_ACEOF
8379 #line $LINENO "configure"
8380 #include "confdefs.h"
8382 #ifdef F77_DUMMY_MAIN
8386 int F77_DUMMY_MAIN() { return 1; }
8391 /* FIXME: Include the comments suggested by Paul. */
8393 /* Ultrix mips cc rejects this. */
8394 typedef int charset[2];
8396 /* SunOS 4.1.1 cc rejects this. */
8397 char const *const *ccp;
8399 /* NEC SVR4.0.2 mips cc rejects this. */
8400 struct point {int x, y;};
8401 static struct point const zero = {0,0};
8402 /* AIX XL C 1.02.0.0 rejects this.
8403 It does not let you subtract one const X* pointer from another in
8404 an arm of an if-expression whose if-part is not a constant
8406 const char *g = "string";
8407 ccp = &g + (g ? g-g : 0);
8408 /* HPUX 7.0 cc rejects these. */
8411 ccp = (char const *const *) p;
8412 { /* SCO 3.2v4 cc rejects this. */
8414 char const *s = 0 ? (char *) 0 : (char const *) 0;
8418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8420 const int *foo = &x[0];
8423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8424 typedef const int *iptr;
8428 { /* AIX XL C 1.02.0.0 rejects this saying
8429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8430 struct s { int j; const int *ap[3]; };
8431 struct s *b; b->j = 5;
8433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444 (eval $ac_compile) 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -s conftest.$ac_objext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8456 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8460 rm -f conftest.$ac_objext conftest.$ac_ext
8462 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8463 echo "${ECHO_T}$ac_cv_c_const" >&6
8464 if test $ac_cv_c_const = no; then
8466 cat >>confdefs.h <<\_ACEOF
8472 echo "$as_me:$LINENO: checking for inline" >&5
8473 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8474 if test "${ac_cv_c_inline+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 for ac_kw in inline __inline__ __inline; do
8479 cat >conftest.$ac_ext <<_ACEOF
8480 #line $LINENO "configure"
8481 #include "confdefs.h"
8483 static $ac_kw int static_foo () {return 0; }
8484 $ac_kw int foo () {return 0; }
8488 rm -f conftest.$ac_objext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_c_inline=$ac_kw; break
8502 echo "$as_me: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8505 rm -f conftest.$ac_objext conftest.$ac_ext
8509 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8510 echo "${ECHO_T}$ac_cv_c_inline" >&6
8511 case $ac_cv_c_inline in
8514 cat >>confdefs.h <<\_ACEOF
8518 *) cat >>confdefs.h <<_ACEOF
8519 #define inline $ac_cv_c_inline
8524 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8525 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8526 if test "${ac_cv_c_stringize+set}" = set; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 cat >conftest.$ac_ext <<_ACEOF
8530 #line $LINENO "configure"
8531 #include "confdefs.h"
8534 char *s = x(teststring);
8536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8537 egrep "#teststring" >/dev/null 2>&1; then
8538 ac_cv_c_stringize=no
8540 ac_cv_c_stringize=yes
8545 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8546 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8547 if test $ac_cv_c_stringize = yes; then
8549 cat >>confdefs.h <<\_ACEOF
8550 #define HAVE_STRINGIZE 1
8555 echo "$as_me:$LINENO: checking for signed types" >&5
8556 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8557 if test "${pgac_cv_c_signed+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 cat >conftest.$ac_ext <<_ACEOF
8561 #line $LINENO "configure"
8562 #include "confdefs.h"
8564 #ifdef F77_DUMMY_MAIN
8568 int F77_DUMMY_MAIN() { return 1; }
8573 signed char c; signed short s; signed int i;
8578 rm -f conftest.$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -s conftest.$ac_objext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 pgac_cv_c_signed=yes
8592 echo "$as_me: failed program was:" >&5
8593 cat conftest.$ac_ext >&5
8596 rm -f conftest.$ac_objext conftest.$ac_ext
8598 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8599 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8600 if test x"$pgac_cv_c_signed" = xno ; then
8602 cat >>confdefs.h <<\_ACEOF
8607 echo "$as_me:$LINENO: checking for working volatile" >&5
8608 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8609 if test "${ac_cv_c_volatile+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8613 #line $LINENO "configure"
8614 #include "confdefs.h"
8616 #ifdef F77_DUMMY_MAIN
8620 int F77_DUMMY_MAIN() { return 1; }
8632 rm -f conftest.$ac_objext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8634 (eval $ac_compile) 2>&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } &&
8638 { ac_try='test -s conftest.$ac_objext'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; }; then
8644 ac_cv_c_volatile=yes
8646 echo "$as_me: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8650 rm -f conftest.$ac_objext conftest.$ac_ext
8652 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8653 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8654 if test $ac_cv_c_volatile = no; then
8656 cat >>confdefs.h <<\_ACEOF
8662 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8663 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8664 if test "${ac_cv_struct_tm+set}" = set; then
8665 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 cat >conftest.$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 #include "confdefs.h"
8670 #include <sys/types.h>
8673 #ifdef F77_DUMMY_MAIN
8677 int F77_DUMMY_MAIN() { return 1; }
8682 struct tm *tp; tp->tm_sec;
8687 rm -f conftest.$ac_objext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8689 (eval $ac_compile) 2>&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -s conftest.$ac_objext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_struct_tm=time.h
8701 echo "$as_me: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8703 ac_cv_struct_tm=sys/time.h
8705 rm -f conftest.$ac_objext conftest.$ac_ext
8707 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8708 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8709 if test $ac_cv_struct_tm = sys/time.h; then
8711 cat >>confdefs.h <<\_ACEOF
8712 #define TM_IN_SYS_TIME 1
8717 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8718 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8719 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 #include "confdefs.h"
8725 #include <sys/types.h>
8726 #include <$ac_cv_struct_tm>
8729 #ifdef F77_DUMMY_MAIN
8733 int F77_DUMMY_MAIN() { return 1; }
8738 static struct tm ac_aggr;
8739 if (ac_aggr.tm_zone)
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_cv_member_struct_tm_tm_zone=yes
8759 echo "$as_me: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8761 ac_cv_member_struct_tm_tm_zone=no
8763 rm -f conftest.$ac_objext conftest.$ac_ext
8765 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8766 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8767 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8769 cat >>confdefs.h <<_ACEOF
8770 #define HAVE_STRUCT_TM_TM_ZONE 1
8776 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8778 cat >>confdefs.h <<\_ACEOF
8779 #define HAVE_TM_ZONE 1
8783 echo "$as_me:$LINENO: checking for tzname" >&5
8784 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8785 if test "${ac_cv_var_tzname+set}" = set; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 #include "confdefs.h"
8792 #ifndef tzname /* For SGI. */
8793 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8796 #ifdef F77_DUMMY_MAIN
8800 int F77_DUMMY_MAIN() { return 1; }
8810 rm -f conftest.$ac_objext conftest$ac_exeext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8812 (eval $ac_link) 2>&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -s conftest$ac_exeext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_cv_var_tzname=yes
8824 echo "$as_me: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8831 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8832 if test $ac_cv_var_tzname = yes; then
8834 cat >>confdefs.h <<\_ACEOF
8835 #define HAVE_TZNAME 1
8841 echo "$as_me:$LINENO: checking for union semun" >&5
8842 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
8843 if test "${ac_cv_type_union_semun+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 cat >conftest.$ac_ext <<_ACEOF
8847 #line $LINENO "configure"
8848 #include "confdefs.h"
8849 #include <sys/types.h>
8850 #include <sys/ipc.h>
8851 #include <sys/sem.h>
8853 #ifdef F77_DUMMY_MAIN
8857 int F77_DUMMY_MAIN() { return 1; }
8862 if ((union semun *) 0)
8864 if (sizeof (union semun))
8870 rm -f conftest.$ac_objext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8872 (eval $ac_compile) 2>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -s conftest.$ac_objext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 ac_cv_type_union_semun=yes
8884 echo "$as_me: failed program was:" >&5
8885 cat conftest.$ac_ext >&5
8886 ac_cv_type_union_semun=no
8888 rm -f conftest.$ac_objext conftest.$ac_ext
8890 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
8891 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
8892 if test $ac_cv_type_union_semun = yes; then
8894 cat >>confdefs.h <<_ACEOF
8895 #define HAVE_UNION_SEMUN 1
8901 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
8902 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
8903 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 cat >conftest.$ac_ext <<_ACEOF
8907 #line $LINENO "configure"
8908 #include "confdefs.h"
8909 #include <sys/types.h>
8910 #ifdef HAVE_SYS_UN_H
8915 #ifdef F77_DUMMY_MAIN
8919 int F77_DUMMY_MAIN() { return 1; }
8924 if ((struct sockaddr_un *) 0)
8926 if (sizeof (struct sockaddr_un))
8932 rm -f conftest.$ac_objext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8934 (eval $ac_compile) 2>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try='test -s conftest.$ac_objext'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 ac_cv_type_struct_sockaddr_un=yes
8946 echo "$as_me: failed program was:" >&5
8947 cat conftest.$ac_ext >&5
8948 ac_cv_type_struct_sockaddr_un=no
8950 rm -f conftest.$ac_objext conftest.$ac_ext
8952 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
8953 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
8954 if test $ac_cv_type_struct_sockaddr_un = yes; then
8956 cat >>confdefs.h <<_ACEOF
8957 #define HAVE_STRUCT_SOCKADDR_UN 1
8964 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
8965 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
8966 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 cat >conftest.$ac_ext <<_ACEOF
8970 #line $LINENO "configure"
8971 #include "confdefs.h"
8972 #include <sys/param.h>
8973 #include <sys/socket.h>
8974 #include <sys/ucred.h>
8976 #ifdef F77_DUMMY_MAIN
8980 int F77_DUMMY_MAIN() { return 1; }
8985 if ((struct cmsgcred *) 0)
8987 if (sizeof (struct cmsgcred))
8993 rm -f conftest.$ac_objext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8995 (eval $ac_compile) 2>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try='test -s conftest.$ac_objext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_type_struct_cmsgcred=yes
9007 echo "$as_me: failed program was:" >&5
9008 cat conftest.$ac_ext >&5
9009 ac_cv_type_struct_cmsgcred=no
9011 rm -f conftest.$ac_objext conftest.$ac_ext
9013 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9014 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9015 if test $ac_cv_type_struct_cmsgcred = yes; then
9017 cat >>confdefs.h <<_ACEOF
9018 #define HAVE_STRUCT_CMSGCRED 1
9023 echo "$as_me:$LINENO: checking for struct fcred" >&5
9024 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9025 if test "${ac_cv_type_struct_fcred+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9030 #include "confdefs.h"
9031 #include <sys/param.h>
9032 #include <sys/socket.h>
9033 #include <sys/ucred.h>
9035 #ifdef F77_DUMMY_MAIN
9039 int F77_DUMMY_MAIN() { return 1; }
9044 if ((struct fcred *) 0)
9046 if (sizeof (struct fcred))
9052 rm -f conftest.$ac_objext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9054 (eval $ac_compile) 2>&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -s conftest.$ac_objext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 ac_cv_type_struct_fcred=yes
9066 echo "$as_me: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9068 ac_cv_type_struct_fcred=no
9070 rm -f conftest.$ac_objext conftest.$ac_ext
9072 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9073 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9074 if test $ac_cv_type_struct_fcred = yes; then
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_STRUCT_FCRED 1
9082 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9083 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9084 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9089 #include "confdefs.h"
9090 #include <sys/param.h>
9091 #include <sys/socket.h>
9092 #include <sys/ucred.h>
9094 #ifdef F77_DUMMY_MAIN
9098 int F77_DUMMY_MAIN() { return 1; }
9103 if ((struct sockcred *) 0)
9105 if (sizeof (struct sockcred))
9111 rm -f conftest.$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113 (eval $ac_compile) 2>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try='test -s conftest.$ac_objext'
9118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; }; then
9123 ac_cv_type_struct_sockcred=yes
9125 echo "$as_me: failed program was:" >&5
9126 cat conftest.$ac_ext >&5
9127 ac_cv_type_struct_sockcred=no
9129 rm -f conftest.$ac_objext conftest.$ac_ext
9131 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9132 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9133 if test $ac_cv_type_struct_sockcred = yes; then
9135 cat >>confdefs.h <<_ACEOF
9136 #define HAVE_STRUCT_SOCKCRED 1
9143 if test "$with_zlib" = yes; then
9144 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9145 # did not). While we could work around the lack of z_streamp, it
9146 # seems unwise to encourage people to use such old zlib versions...
9147 echo "$as_me:$LINENO: checking for z_streamp" >&5
9148 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9149 if test "${ac_cv_type_z_streamp+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 cat >conftest.$ac_ext <<_ACEOF
9153 #line $LINENO "configure"
9154 #include "confdefs.h"
9157 #ifdef F77_DUMMY_MAIN
9161 int F77_DUMMY_MAIN() { return 1; }
9166 if ((z_streamp *) 0)
9168 if (sizeof (z_streamp))
9174 rm -f conftest.$ac_objext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9176 (eval $ac_compile) 2>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
9180 { ac_try='test -s conftest.$ac_objext'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; }; then
9186 ac_cv_type_z_streamp=yes
9188 echo "$as_me: failed program was:" >&5
9189 cat conftest.$ac_ext >&5
9190 ac_cv_type_z_streamp=no
9192 rm -f conftest.$ac_objext conftest.$ac_ext
9194 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9195 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9196 if test $ac_cv_type_z_streamp = yes; then
9199 { { echo "$as_me:$LINENO: error: zlib version is too old
9200 Use --without-zlib to disable zlib support." >&5
9201 echo "$as_me: error: zlib version is too old
9202 Use --without-zlib to disable zlib support." >&2;}
9203 { (exit 1); exit 1; }; }
9208 if test "$with_krb5" = yes; then
9209 # Check for differences between MIT and Heimdal (KTH) releases
9210 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9211 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9212 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 cat >conftest.$ac_ext <<_ACEOF
9216 #line $LINENO "configure"
9217 #include "confdefs.h"
9220 #ifdef F77_DUMMY_MAIN
9224 int F77_DUMMY_MAIN() { return 1; }
9229 static krb5_ticket ac_aggr;
9230 if (ac_aggr.enc_part2)
9236 rm -f conftest.$ac_objext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238 (eval $ac_compile) 2>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -s conftest.$ac_objext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_member_krb5_ticket_enc_part2=yes
9250 echo "$as_me: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 ac_cv_member_krb5_ticket_enc_part2=no
9254 rm -f conftest.$ac_objext conftest.$ac_ext
9256 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9257 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9258 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9260 cat >>confdefs.h <<_ACEOF
9261 #define HAVE_KRB5_TICKET_ENC_PART2 1
9266 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9267 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9268 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9272 #line $LINENO "configure"
9273 #include "confdefs.h"
9276 #ifdef F77_DUMMY_MAIN
9280 int F77_DUMMY_MAIN() { return 1; }
9285 static krb5_ticket ac_aggr;
9292 rm -f conftest.$ac_objext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9294 (eval $ac_compile) 2>&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -s conftest.$ac_objext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_cv_member_krb5_ticket_client=yes
9306 echo "$as_me: failed program was:" >&5
9307 cat conftest.$ac_ext >&5
9308 ac_cv_member_krb5_ticket_client=no
9310 rm -f conftest.$ac_objext conftest.$ac_ext
9312 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9313 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9314 if test $ac_cv_member_krb5_ticket_client = yes; then
9316 cat >>confdefs.h <<_ACEOF
9317 #define HAVE_KRB5_TICKET_CLIENT 1
9322 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9323 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9324 { (exit 1); exit 1; }; }
9329 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9330 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9331 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9332 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 cat >conftest.$ac_ext <<_ACEOF
9335 #line $LINENO "configure"
9336 #include "confdefs.h"
9339 #ifdef F77_DUMMY_MAIN
9343 int F77_DUMMY_MAIN() { return 1; }
9348 static krb5_error ac_aggr;
9349 if (ac_aggr.text.data)
9355 rm -f conftest.$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -s conftest.$ac_objext'
9362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); }; }; then
9367 ac_cv_member_krb5_error_text_data=yes
9369 echo "$as_me: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9371 ac_cv_member_krb5_error_text_data=no
9373 rm -f conftest.$ac_objext conftest.$ac_ext
9375 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9376 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9377 if test $ac_cv_member_krb5_error_text_data = yes; then
9379 cat >>confdefs.h <<_ACEOF
9380 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9385 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9386 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9387 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 cat >conftest.$ac_ext <<_ACEOF
9391 #line $LINENO "configure"
9392 #include "confdefs.h"
9395 #ifdef F77_DUMMY_MAIN
9399 int F77_DUMMY_MAIN() { return 1; }
9404 static krb5_error ac_aggr;
9411 rm -f conftest.$ac_objext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413 (eval $ac_compile) 2>&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -s conftest.$ac_objext'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 ac_cv_member_krb5_error_e_data=yes
9425 echo "$as_me: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 ac_cv_member_krb5_error_e_data=no
9429 rm -f conftest.$ac_objext conftest.$ac_ext
9431 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9432 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9433 if test $ac_cv_member_krb5_error_e_data = yes; then
9436 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9437 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9438 { (exit 1); exit 1; }; }
9447 ## Functions, global variables
9450 echo "$as_me:$LINENO: checking for int timezone" >&5
9451 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9452 if test "${pgac_cv_var_int_timezone+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 cat >conftest.$ac_ext <<_ACEOF
9456 #line $LINENO "configure"
9457 #include "confdefs.h"
9460 #ifdef F77_DUMMY_MAIN
9464 int F77_DUMMY_MAIN() { return 1; }
9469 res = timezone / 60;
9474 rm -f conftest.$ac_objext conftest$ac_exeext
9475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9476 (eval $ac_link) 2>&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } &&
9480 { ac_try='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 pgac_cv_var_int_timezone=yes
9488 echo "$as_me: failed program was:" >&5
9489 cat conftest.$ac_ext >&5
9490 pgac_cv_var_int_timezone=no
9492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9494 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9495 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9496 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9498 cat >>confdefs.h <<\_ACEOF
9499 #define HAVE_INT_TIMEZONE
9503 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9504 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9505 if test "${ac_cv_func_accept_arg1+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 if test "${ac_cv_func_accept_arg2+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 if test "${ac_cv_func_accept_arg3+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9515 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9516 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9517 cat >conftest.$ac_ext <<_ACEOF
9518 #line $LINENO "configure"
9519 #include "confdefs.h"
9520 #ifdef HAVE_SYS_TYPES_H
9521 #include <sys/types.h>
9523 #ifdef HAVE_SYS_SOCKET_H
9524 #include <sys/socket.h>
9526 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9527 #ifdef F77_DUMMY_MAIN
9531 int F77_DUMMY_MAIN() { return 1; }
9541 rm -f conftest.$ac_objext
9542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9543 (eval $ac_compile) 2>&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -s conftest.$ac_objext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 ac_not_found=no; break 3
9555 echo "$as_me: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9559 rm -f conftest.$ac_objext conftest.$ac_ext
9563 if test "$ac_not_found" = yes; then
9564 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9565 echo "$as_me: error: could not determine argument types" >&2;}
9566 { (exit 1); exit 1; }; }
9568 if test "$ac_cv_func_accept_arg3" = "void"; then
9569 ac_cv_func_accept_arg3=int
9577 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9578 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9580 cat >>confdefs.h <<_ACEOF
9581 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9585 cat >>confdefs.h <<_ACEOF
9586 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9590 cat >>confdefs.h <<_ACEOF
9591 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9595 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9596 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9597 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 cat >conftest.$ac_ext <<_ACEOF
9601 #line $LINENO "configure"
9602 #include "confdefs.h"
9603 #include <sys/time.h>
9604 #ifdef F77_DUMMY_MAIN
9608 int F77_DUMMY_MAIN() { return 1; }
9614 struct timezone *tzp;
9615 gettimeofday(tp,tzp);
9620 rm -f conftest.$ac_objext
9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622 (eval $ac_compile) 2>&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } &&
9626 { ac_try='test -s conftest.$ac_objext'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; }; then
9632 pgac_cv_func_gettimeofday_1arg=no
9634 echo "$as_me: failed program was:" >&5
9635 cat conftest.$ac_ext >&5
9636 pgac_cv_func_gettimeofday_1arg=yes
9638 rm -f conftest.$ac_objext conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9641 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9642 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9644 cat >>confdefs.h <<\_ACEOF
9645 #define GETTIMEOFDAY_1ARG
9650 # SunOS doesn't handle negative byte comparisons properly with +/- return
9651 echo "$as_me:$LINENO: checking for working memcmp" >&5
9652 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9653 if test "${ac_cv_func_memcmp_working+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 if test "$cross_compiling" = yes; then
9657 ac_cv_func_memcmp_working=no
9659 cat >conftest.$ac_ext <<_ACEOF
9660 #line $LINENO "configure"
9661 #include "confdefs.h"
9663 #ifdef F77_DUMMY_MAIN
9667 int F77_DUMMY_MAIN() { return 1; }
9673 /* Some versions of memcmp are not 8-bit clean. */
9674 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9675 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9678 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9679 or more and with at least one buffer not starting on a 4-byte boundary.
9680 William Lewis provided this test program. */
9685 for (i = 0; i < 4; i++)
9689 strcpy (a, "--------01111111");
9690 strcpy (b, "--------10000000");
9691 if (memcmp (a, b, 16) >= 0)
9701 rm -f conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_cv_func_memcmp_working=yes
9714 echo "$as_me: program exited with status $ac_status" >&5
9715 echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9718 ac_cv_func_memcmp_working=no
9720 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9723 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9724 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9725 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9740 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9743 echo "$as_me:$LINENO: checking for $ac_func" >&5
9744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9745 if eval "test \"\${$as_ac_var+set}\" = set"; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 cat >conftest.$ac_ext <<_ACEOF
9749 #line $LINENO "configure"
9750 #include "confdefs.h"
9751 /* System header to define __stub macros and hopefully few prototypes,
9752 which can conflict with char $ac_func (); below. */
9754 /* Override any gcc2 internal prototype to avoid an error. */
9758 /* We use char because int might match the return type of a gcc2
9759 builtin and then its argument prototype would still apply. */
9763 #ifdef F77_DUMMY_MAIN
9767 int F77_DUMMY_MAIN() { return 1; }
9772 /* The GNU C library defines this for functions which it implements
9773 to always fail with ENOSYS. Some functions are actually named
9774 something starting with __ and the normal name is an alias. */
9775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 eval "$as_ac_var=yes"
9799 echo "$as_me: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9801 eval "$as_ac_var=no"
9803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9807 if test `eval echo '${'$as_ac_var'}'` = yes; then
9808 cat >>confdefs.h <<_ACEOF
9809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9816 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9817 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9818 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9822 #line $LINENO "configure"
9823 #include "confdefs.h"
9826 #ifdef F77_DUMMY_MAIN
9830 int F77_DUMMY_MAIN() { return 1; }
9836 char *p = (char *) fdatasync;
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845 (eval $ac_compile) 2>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
9849 { ac_try='test -s conftest.$ac_objext'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 ac_cv_have_decl_fdatasync=yes
9857 echo "$as_me: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 ac_cv_have_decl_fdatasync=no
9861 rm -f conftest.$ac_objext conftest.$ac_ext
9863 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
9864 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
9865 if test $ac_cv_have_decl_fdatasync = yes; then
9867 cat >>confdefs.h <<_ACEOF
9868 #define HAVE_DECL_FDATASYNC 1
9873 cat >>confdefs.h <<_ACEOF
9874 #define HAVE_DECL_FDATASYNC 0
9882 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
9883 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
9884 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9888 #line $LINENO "configure"
9889 #include "confdefs.h"
9890 #include <machine/vmparam.h>
9891 #include <sys/exec.h>
9893 #ifdef F77_DUMMY_MAIN
9897 int F77_DUMMY_MAIN() { return 1; }
9902 PS_STRINGS->ps_nargvstr = 1;
9903 PS_STRINGS->ps_argvstr = "foo";
9908 rm -f conftest.$ac_objext conftest$ac_exeext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9910 (eval $ac_link) 2>&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -s conftest$ac_exeext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 pgac_cv_var_PS_STRINGS=yes
9922 echo "$as_me: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 pgac_cv_var_PS_STRINGS=no
9926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9928 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
9929 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
9930 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
9932 cat >>confdefs.h <<\_ACEOF
9933 #define HAVE_PS_STRINGS
9939 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
9940 # is missing. Yes, there are machines that have only one. We may
9941 # also decide to use snprintf.c if snprintf() is present but does not
9942 # have working "long long int" support -- see below.
9944 pgac_need_repl_snprintf=no
9946 for ac_func in snprintf
9948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9949 echo "$as_me:$LINENO: checking for $ac_func" >&5
9950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9951 if eval "test \"\${$as_ac_var+set}\" = set"; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 cat >conftest.$ac_ext <<_ACEOF
9955 #line $LINENO "configure"
9956 #include "confdefs.h"
9957 /* System header to define __stub macros and hopefully few prototypes,
9958 which can conflict with char $ac_func (); below. */
9960 /* Override any gcc2 internal prototype to avoid an error. */
9964 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9969 #ifdef F77_DUMMY_MAIN
9973 int F77_DUMMY_MAIN() { return 1; }
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993 (eval $ac_link) 2>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -s conftest$ac_exeext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 eval "$as_ac_var=yes"
10005 echo "$as_me: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10007 eval "$as_ac_var=no"
10009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10013 if test `eval echo '${'$as_ac_var'}'` = yes; then
10014 cat >>confdefs.h <<_ACEOF
10015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10019 pgac_need_repl_snprintf=yes
10024 for ac_func in vsnprintf
10026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10027 echo "$as_me:$LINENO: checking for $ac_func" >&5
10028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10029 if eval "test \"\${$as_ac_var+set}\" = set"; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 cat >conftest.$ac_ext <<_ACEOF
10033 #line $LINENO "configure"
10034 #include "confdefs.h"
10035 /* System header to define __stub macros and hopefully few prototypes,
10036 which can conflict with char $ac_func (); below. */
10037 #include <assert.h>
10038 /* Override any gcc2 internal prototype to avoid an error. */
10042 /* We use char because int might match the return type of a gcc2
10043 builtin and then its argument prototype would still apply. */
10047 #ifdef F77_DUMMY_MAIN
10048 # ifdef __cplusplus
10051 int F77_DUMMY_MAIN() { return 1; }
10056 /* The GNU C library defines this for functions which it implements
10057 to always fail with ENOSYS. Some functions are actually named
10058 something starting with __ and the normal name is an alias. */
10059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071 (eval $ac_link) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 eval "$as_ac_var=yes"
10083 echo "$as_me: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 eval "$as_ac_var=no"
10087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10091 if test `eval echo '${'$as_ac_var'}'` = yes; then
10092 cat >>confdefs.h <<_ACEOF
10093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10097 pgac_need_repl_snprintf=yes
10103 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10104 # include/c.h will provide declarations. Note this is a separate test
10105 # from whether the functions exist in the C library --- there are
10106 # systems that have the functions but don't bother to declare them :-(
10108 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10109 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10110 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10114 #line $LINENO "configure"
10115 #include "confdefs.h"
10116 $ac_includes_default
10117 #ifdef F77_DUMMY_MAIN
10118 # ifdef __cplusplus
10121 int F77_DUMMY_MAIN() { return 1; }
10127 char *p = (char *) snprintf;
10134 rm -f conftest.$ac_objext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10136 (eval $ac_compile) 2>&5
10138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } &&
10140 { ac_try='test -s conftest.$ac_objext'
10141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142 (eval $ac_try) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; }; then
10146 ac_cv_have_decl_snprintf=yes
10148 echo "$as_me: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
10150 ac_cv_have_decl_snprintf=no
10152 rm -f conftest.$ac_objext conftest.$ac_ext
10154 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10155 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10156 if test $ac_cv_have_decl_snprintf = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159 #define HAVE_DECL_SNPRINTF 1
10164 cat >>confdefs.h <<_ACEOF
10165 #define HAVE_DECL_SNPRINTF 0
10170 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10171 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10172 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 cat >conftest.$ac_ext <<_ACEOF
10176 #line $LINENO "configure"
10177 #include "confdefs.h"
10178 $ac_includes_default
10179 #ifdef F77_DUMMY_MAIN
10180 # ifdef __cplusplus
10183 int F77_DUMMY_MAIN() { return 1; }
10189 char *p = (char *) vsnprintf;
10196 rm -f conftest.$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -s conftest.$ac_objext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_have_decl_vsnprintf=yes
10210 echo "$as_me: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10212 ac_cv_have_decl_vsnprintf=no
10214 rm -f conftest.$ac_objext conftest.$ac_ext
10216 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10217 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10218 if test $ac_cv_have_decl_vsnprintf = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define HAVE_DECL_VSNPRINTF 1
10226 cat >>confdefs.h <<_ACEOF
10227 #define HAVE_DECL_VSNPRINTF 0
10236 # do this one the hard way in case isinf() is a macro
10237 echo "$as_me:$LINENO: checking for isinf" >&5
10238 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10239 if test "${ac_cv_func_isinf+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 cat >conftest.$ac_ext <<_ACEOF
10243 #line $LINENO "configure"
10244 #include "confdefs.h"
10247 #ifdef F77_DUMMY_MAIN
10248 # ifdef __cplusplus
10251 int F77_DUMMY_MAIN() { return 1; }
10256 double x = 0.0; int res = isinf(x);
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_func_isinf=yes
10275 echo "$as_me: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 ac_cv_func_isinf=no
10279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10281 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10282 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10284 if test $ac_cv_func_isinf = yes ; then
10286 cat >>confdefs.h <<\_ACEOF
10287 #define HAVE_ISINF 1
10291 LIBOBJS="$LIBOBJS isinf.$ac_objext"
10292 # Look for a way to implement a substitute for isinf()
10297 for ac_func in fpclass fp_class fp_class_d class
10299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10300 echo "$as_me:$LINENO: checking for $ac_func" >&5
10301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10302 if eval "test \"\${$as_ac_var+set}\" = set"; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 cat >conftest.$ac_ext <<_ACEOF
10306 #line $LINENO "configure"
10307 #include "confdefs.h"
10308 /* System header to define __stub macros and hopefully few prototypes,
10309 which can conflict with char $ac_func (); below. */
10310 #include <assert.h>
10311 /* Override any gcc2 internal prototype to avoid an error. */
10315 /* We use char because int might match the return type of a gcc2
10316 builtin and then its argument prototype would still apply. */
10320 #ifdef F77_DUMMY_MAIN
10321 # ifdef __cplusplus
10324 int F77_DUMMY_MAIN() { return 1; }
10329 /* The GNU C library defines this for functions which it implements
10330 to always fail with ENOSYS. Some functions are actually named
10331 something starting with __ and the normal name is an alias. */
10332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10342 rm -f conftest.$ac_objext conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; }; then
10354 eval "$as_ac_var=yes"
10356 echo "$as_me: failed program was:" >&5
10357 cat conftest.$ac_ext >&5
10358 eval "$as_ac_var=no"
10360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10364 if test `eval echo '${'$as_ac_var'}'` = yes; then
10365 cat >>confdefs.h <<_ACEOF
10366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10384 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387 echo "$as_me:$LINENO: checking for $ac_func" >&5
10388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10389 if eval "test \"\${$as_ac_var+set}\" = set"; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 cat >conftest.$ac_ext <<_ACEOF
10393 #line $LINENO "configure"
10394 #include "confdefs.h"
10395 /* System header to define __stub macros and hopefully few prototypes,
10396 which can conflict with char $ac_func (); below. */
10397 #include <assert.h>
10398 /* Override any gcc2 internal prototype to avoid an error. */
10402 /* We use char because int might match the return type of a gcc2
10403 builtin and then its argument prototype would still apply. */
10407 #ifdef F77_DUMMY_MAIN
10408 # ifdef __cplusplus
10411 int F77_DUMMY_MAIN() { return 1; }
10416 /* The GNU C library defines this for functions which it implements
10417 to always fail with ENOSYS. Some functions are actually named
10418 something starting with __ and the normal name is an alias. */
10419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10429 rm -f conftest.$ac_objext conftest$ac_exeext
10430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10431 (eval $ac_link) 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 eval "$as_ac_var=yes"
10443 echo "$as_me: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10445 eval "$as_ac_var=no"
10447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10451 if test `eval echo '${'$as_ac_var'}'` = yes; then
10452 cat >>confdefs.h <<_ACEOF
10453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10457 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10463 # Solaris has a very slow qsort in certain cases.
10465 solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10468 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10469 # this hackery with HPUXMATHLIB allows us to cope.
10473 if [ -r /lib/pa1.1/libm.a ] ; then
10474 HPUXMATHLIB="-L /lib/pa1.1 -lm"
10480 for ac_func in rint
10482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10483 echo "$as_me:$LINENO: checking for $ac_func" >&5
10484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10485 if eval "test \"\${$as_ac_var+set}\" = set"; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 cat >conftest.$ac_ext <<_ACEOF
10489 #line $LINENO "configure"
10490 #include "confdefs.h"
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char $ac_func (); below. */
10493 #include <assert.h>
10494 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10503 #ifdef F77_DUMMY_MAIN
10504 # ifdef __cplusplus
10507 int F77_DUMMY_MAIN() { return 1; }
10512 /* The GNU C library defines this for functions which it implements
10513 to always fail with ENOSYS. Some functions are actually named
10514 something starting with __ and the normal name is an alias. */
10515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527 (eval $ac_link) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
10531 { ac_try='test -s conftest$ac_exeext'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 eval "$as_ac_var=yes"
10539 echo "$as_me: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10541 eval "$as_ac_var=no"
10543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10547 if test `eval echo '${'$as_ac_var'}'` = yes; then
10548 cat >>confdefs.h <<_ACEOF
10549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10553 echo "$as_me:$LINENO: checking for rint in -lm" >&5
10554 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10555 if test "${ac_cv_lib_m_rint+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 ac_check_lib_save_LIBS=$LIBS
10559 LIBS="-lm $HPUXMATHLIB $LIBS"
10560 cat >conftest.$ac_ext <<_ACEOF
10561 #line $LINENO "configure"
10562 #include "confdefs.h"
10564 /* Override any gcc2 internal prototype to avoid an error. */
10568 /* We use char because int might match the return type of a gcc2
10569 builtin and then its argument prototype would still apply. */
10571 #ifdef F77_DUMMY_MAIN
10572 # ifdef __cplusplus
10575 int F77_DUMMY_MAIN() { return 1; }
10585 rm -f conftest.$ac_objext conftest$ac_exeext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587 (eval $ac_link) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } &&
10591 { ac_try='test -s conftest$ac_exeext'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 ac_cv_lib_m_rint=yes
10599 echo "$as_me: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10601 ac_cv_lib_m_rint=no
10603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10604 LIBS=$ac_check_lib_save_LIBS
10606 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10607 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10608 if test $ac_cv_lib_m_rint = yes; then
10609 cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_RINT 1
10620 if test "$with_readline" = yes; then
10621 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10622 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10623 cat >conftest.$ac_ext <<_ACEOF
10624 #line $LINENO "configure"
10625 #include "confdefs.h"
10627 #ifdef HAVE_READLINE_READLINE_H
10628 # include <readline/readline.h>
10629 #elif defined(HAVE_READLINE_H)
10630 # include <readline.h>
10633 #ifdef F77_DUMMY_MAIN
10634 # ifdef __cplusplus
10637 int F77_DUMMY_MAIN() { return 1; }
10642 rl_completion_append_character = 'x';
10647 rm -f conftest.$ac_objext conftest$ac_exeext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649 (eval $ac_link) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -s conftest$ac_exeext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 echo "$as_me:$LINENO: result: yes" >&5
10660 echo "${ECHO_T}yes" >&6
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10667 echo "$as_me: failed program was:" >&5
10668 cat conftest.$ac_ext >&5
10669 echo "$as_me:$LINENO: result: no" >&5
10670 echo "${ECHO_T}no" >&6
10672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10675 for ac_func in rl_completion_matches rl_filename_completion_function
10677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10678 echo "$as_me:$LINENO: checking for $ac_func" >&5
10679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10680 if eval "test \"\${$as_ac_var+set}\" = set"; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10685 #include "confdefs.h"
10686 /* System header to define __stub macros and hopefully few prototypes,
10687 which can conflict with char $ac_func (); below. */
10688 #include <assert.h>
10689 /* Override any gcc2 internal prototype to avoid an error. */
10693 /* We use char because int might match the return type of a gcc2
10694 builtin and then its argument prototype would still apply. */
10698 #ifdef F77_DUMMY_MAIN
10699 # ifdef __cplusplus
10702 int F77_DUMMY_MAIN() { return 1; }
10707 /* The GNU C library defines this for functions which it implements
10708 to always fail with ENOSYS. Some functions are actually named
10709 something starting with __ and the normal name is an alias. */
10710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10720 rm -f conftest.$ac_objext conftest$ac_exeext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722 (eval $ac_link) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -s conftest$ac_exeext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
10732 eval "$as_ac_var=yes"
10734 echo "$as_me: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 eval "$as_ac_var=no"
10738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10742 if test `eval echo '${'$as_ac_var'}'` = yes; then
10743 cat >>confdefs.h <<_ACEOF
10744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10753 echo "$as_me:$LINENO: checking for finite" >&5
10754 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10757 #include "confdefs.h"
10759 #ifdef F77_DUMMY_MAIN
10760 # ifdef __cplusplus
10763 int F77_DUMMY_MAIN() { return 1; }
10768 int dummy=finite(1.0);
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10775 (eval $ac_link) 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -s conftest$ac_exeext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
10786 cat >>confdefs.h <<\_ACEOF
10787 #define HAVE_FINITE 1
10790 echo "$as_me:$LINENO: result: yes" >&5
10791 echo "${ECHO_T}yes" >&6
10793 echo "$as_me: failed program was:" >&5
10794 cat conftest.$ac_ext >&5
10795 echo "$as_me:$LINENO: result: no" >&5
10796 echo "${ECHO_T}no" >&6
10798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10800 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10801 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10802 cat >conftest.$ac_ext <<_ACEOF
10803 #line $LINENO "configure"
10804 #include "confdefs.h"
10805 #include <setjmp.h>
10806 #ifdef F77_DUMMY_MAIN
10807 # ifdef __cplusplus
10810 int F77_DUMMY_MAIN() { return 1; }
10815 sigjmp_buf x; sigsetjmp(x, 1);
10820 rm -f conftest.$ac_objext conftest$ac_exeext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10822 (eval $ac_link) 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } &&
10826 { ac_try='test -s conftest$ac_exeext'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
10833 cat >>confdefs.h <<\_ACEOF
10834 #define HAVE_SIGSETJMP 1
10837 echo "$as_me:$LINENO: result: yes" >&5
10838 echo "${ECHO_T}yes" >&6
10840 echo "$as_me: failed program was:" >&5
10841 cat conftest.$ac_ext >&5
10842 echo "$as_me:$LINENO: result: no" >&5
10843 echo "${ECHO_T}no" >&6
10845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10847 echo "$as_me:$LINENO: checking for syslog" >&5
10848 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
10849 if test "${ac_cv_func_syslog+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 cat >conftest.$ac_ext <<_ACEOF
10853 #line $LINENO "configure"
10854 #include "confdefs.h"
10855 /* System header to define __stub macros and hopefully few prototypes,
10856 which can conflict with char syslog (); below. */
10857 #include <assert.h>
10858 /* Override any gcc2 internal prototype to avoid an error. */
10862 /* We use char because int might match the return type of a gcc2
10863 builtin and then its argument prototype would still apply. */
10867 #ifdef F77_DUMMY_MAIN
10868 # ifdef __cplusplus
10871 int F77_DUMMY_MAIN() { return 1; }
10876 /* The GNU C library defines this for functions which it implements
10877 to always fail with ENOSYS. Some functions are actually named
10878 something starting with __ and the normal name is an alias. */
10879 #if defined (__stub_syslog) || defined (__stub___syslog)
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891 (eval $ac_link) 2>&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
10895 { ac_try='test -s conftest$ac_exeext'
10896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897 (eval $ac_try) 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; }; then
10901 ac_cv_func_syslog=yes
10903 echo "$as_me: failed program was:" >&5
10904 cat conftest.$ac_ext >&5
10905 ac_cv_func_syslog=no
10907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10909 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
10910 echo "${ECHO_T}$ac_cv_func_syslog" >&6
10911 if test $ac_cv_func_syslog = yes; then
10912 if test "${ac_cv_header_syslog_h+set}" = set; then
10913 echo "$as_me:$LINENO: checking for syslog.h" >&5
10914 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
10915 if test "${ac_cv_header_syslog_h+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
10919 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
10921 # Is the header compilable?
10922 echo "$as_me:$LINENO: checking syslog.h usability" >&5
10923 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
10924 cat >conftest.$ac_ext <<_ACEOF
10925 #line $LINENO "configure"
10926 #include "confdefs.h"
10927 $ac_includes_default
10928 #include <syslog.h>
10930 rm -f conftest.$ac_objext
10931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10932 (eval $ac_compile) 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
10936 { ac_try='test -s conftest.$ac_objext'
10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938 (eval $ac_try) 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; }; then
10942 ac_header_compiler=yes
10944 echo "$as_me: failed program was:" >&5
10945 cat conftest.$ac_ext >&5
10946 ac_header_compiler=no
10948 rm -f conftest.$ac_objext conftest.$ac_ext
10949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10950 echo "${ECHO_T}$ac_header_compiler" >&6
10952 # Is the header present?
10953 echo "$as_me:$LINENO: checking syslog.h presence" >&5
10954 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
10955 cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10957 #include "confdefs.h"
10958 #include <syslog.h>
10960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10963 egrep -v '^ *\+' conftest.er1 >conftest.err
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } >/dev/null; then
10968 if test -s conftest.err; then
10969 ac_cpp_err=$ac_c_preproc_warn_flag
10976 if test -z "$ac_cpp_err"; then
10977 ac_header_preproc=yes
10979 echo "$as_me: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 ac_header_preproc=no
10983 rm -f conftest.err conftest.$ac_ext
10984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10985 echo "${ECHO_T}$ac_header_preproc" >&6
10987 # So? What about this header?
10988 case $ac_header_compiler:$ac_header_preproc in
10990 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
10991 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10992 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
10993 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
10995 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
10996 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
10998 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
10999 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11000 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11002 echo "$as_me:$LINENO: checking for syslog.h" >&5
11003 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11004 if test "${ac_cv_header_syslog_h+set}" = set; then
11005 echo $ECHO_N "(cached) $ECHO_C" >&6
11007 ac_cv_header_syslog_h=$ac_header_preproc
11009 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11010 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11013 if test $ac_cv_header_syslog_h = yes; then
11014 cat >>confdefs.h <<\_ACEOF
11015 #define HAVE_SYSLOG 1
11024 echo "$as_me:$LINENO: checking for optreset" >&5
11025 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11026 if test "${pgac_cv_var_int_optreset+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 cat >conftest.$ac_ext <<_ACEOF
11030 #line $LINENO "configure"
11031 #include "confdefs.h"
11032 #include <unistd.h>
11033 #ifdef F77_DUMMY_MAIN
11034 # ifdef __cplusplus
11037 int F77_DUMMY_MAIN() { return 1; }
11042 extern int optreset; optreset = 1;
11047 rm -f conftest.$ac_objext conftest$ac_exeext
11048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11049 (eval $ac_link) 2>&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } &&
11053 { ac_try='test -s conftest$ac_exeext'
11054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055 (eval $ac_try) 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 pgac_cv_var_int_optreset=yes
11061 echo "$as_me: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11063 pgac_cv_var_int_optreset=no
11065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11067 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11068 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11069 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11071 cat >>confdefs.h <<\_ACEOF
11072 #define HAVE_INT_OPTRESET 1
11079 for ac_func in strtoll strtoq
11081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11082 echo "$as_me:$LINENO: checking for $ac_func" >&5
11083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11084 if eval "test \"\${$as_ac_var+set}\" = set"; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 cat >conftest.$ac_ext <<_ACEOF
11088 #line $LINENO "configure"
11089 #include "confdefs.h"
11090 /* System header to define __stub macros and hopefully few prototypes,
11091 which can conflict with char $ac_func (); below. */
11092 #include <assert.h>
11093 /* Override any gcc2 internal prototype to avoid an error. */
11097 /* We use char because int might match the return type of a gcc2
11098 builtin and then its argument prototype would still apply. */
11102 #ifdef F77_DUMMY_MAIN
11103 # ifdef __cplusplus
11106 int F77_DUMMY_MAIN() { return 1; }
11111 /* The GNU C library defines this for functions which it implements
11112 to always fail with ENOSYS. Some functions are actually named
11113 something starting with __ and the normal name is an alias. */
11114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -s conftest$ac_exeext'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; }; then
11136 eval "$as_ac_var=yes"
11138 echo "$as_me: failed program was:" >&5
11139 cat conftest.$ac_ext >&5
11140 eval "$as_ac_var=no"
11142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11146 if test `eval echo '${'$as_ac_var'}'` = yes; then
11147 cat >>confdefs.h <<_ACEOF
11148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11156 for ac_func in strtoull strtouq
11158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11159 echo "$as_me:$LINENO: checking for $ac_func" >&5
11160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11161 if eval "test \"\${$as_ac_var+set}\" = set"; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 cat >conftest.$ac_ext <<_ACEOF
11165 #line $LINENO "configure"
11166 #include "confdefs.h"
11167 /* System header to define __stub macros and hopefully few prototypes,
11168 which can conflict with char $ac_func (); below. */
11169 #include <assert.h>
11170 /* Override any gcc2 internal prototype to avoid an error. */
11174 /* We use char because int might match the return type of a gcc2
11175 builtin and then its argument prototype would still apply. */
11179 #ifdef F77_DUMMY_MAIN
11180 # ifdef __cplusplus
11183 int F77_DUMMY_MAIN() { return 1; }
11188 /* The GNU C library defines this for functions which it implements
11189 to always fail with ENOSYS. Some functions are actually named
11190 something starting with __ and the normal name is an alias. */
11191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203 (eval $ac_link) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } &&
11207 { ac_try='test -s conftest$ac_exeext'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
11213 eval "$as_ac_var=yes"
11215 echo "$as_me: failed program was:" >&5
11216 cat conftest.$ac_ext >&5
11217 eval "$as_ac_var=no"
11219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11223 if test `eval echo '${'$as_ac_var'}'` = yes; then
11224 cat >>confdefs.h <<_ACEOF
11225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11232 # Check for one of atexit() or on_exit()
11234 for ac_func in atexit
11236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11237 echo "$as_me:$LINENO: checking for $ac_func" >&5
11238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11239 if eval "test \"\${$as_ac_var+set}\" = set"; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 cat >conftest.$ac_ext <<_ACEOF
11243 #line $LINENO "configure"
11244 #include "confdefs.h"
11245 /* System header to define __stub macros and hopefully few prototypes,
11246 which can conflict with char $ac_func (); below. */
11247 #include <assert.h>
11248 /* Override any gcc2 internal prototype to avoid an error. */
11252 /* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11257 #ifdef F77_DUMMY_MAIN
11258 # ifdef __cplusplus
11261 int F77_DUMMY_MAIN() { return 1; }
11266 /* The GNU C library defines this for functions which it implements
11267 to always fail with ENOSYS. Some functions are actually named
11268 something starting with __ and the normal name is an alias. */
11269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -s conftest$ac_exeext'
11286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 eval "$as_ac_var=yes"
11293 echo "$as_me: failed program was:" >&5
11294 cat conftest.$ac_ext >&5
11295 eval "$as_ac_var=no"
11297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11301 if test `eval echo '${'$as_ac_var'}'` = yes; then
11302 cat >>confdefs.h <<_ACEOF
11303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11308 for ac_func in on_exit
11310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11311 echo "$as_me:$LINENO: checking for $ac_func" >&5
11312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11313 if eval "test \"\${$as_ac_var+set}\" = set"; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11316 cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11318 #include "confdefs.h"
11319 /* System header to define __stub macros and hopefully few prototypes,
11320 which can conflict with char $ac_func (); below. */
11321 #include <assert.h>
11322 /* Override any gcc2 internal prototype to avoid an error. */
11326 /* We use char because int might match the return type of a gcc2
11327 builtin and then its argument prototype would still apply. */
11331 #ifdef F77_DUMMY_MAIN
11332 # ifdef __cplusplus
11335 int F77_DUMMY_MAIN() { return 1; }
11340 /* The GNU C library defines this for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355 (eval $ac_link) 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } &&
11359 { ac_try='test -s conftest$ac_exeext'
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 eval "$as_ac_var=yes"
11367 echo "$as_me: failed program was:" >&5
11368 cat conftest.$ac_ext >&5
11369 eval "$as_ac_var=no"
11371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11375 if test `eval echo '${'$as_ac_var'}'` = yes; then
11376 cat >>confdefs.h <<_ACEOF
11377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11381 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11382 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11383 { (exit 1); exit 1; }; }
11391 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11392 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11393 if test "${ac_cv_sys_largefile_source+set}" = set; then
11394 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 ac_cv_sys_largefile_source=no
11398 cat >conftest.$ac_ext <<_ACEOF
11399 #line $LINENO "configure"
11400 #include "confdefs.h"
11402 #ifdef F77_DUMMY_MAIN
11403 # ifdef __cplusplus
11406 int F77_DUMMY_MAIN() { return 1; }
11416 rm -f conftest.$ac_objext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418 (eval $ac_compile) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11430 echo "$as_me: failed program was:" >&5
11431 cat conftest.$ac_ext >&5
11433 rm -f conftest.$ac_objext conftest.$ac_ext
11434 cat >conftest.$ac_ext <<_ACEOF
11435 #line $LINENO "configure"
11436 #include "confdefs.h"
11437 #define _LARGEFILE_SOURCE 1
11439 #ifdef F77_DUMMY_MAIN
11440 # ifdef __cplusplus
11443 int F77_DUMMY_MAIN() { return 1; }
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_sys_largefile_source=1; break
11467 echo "$as_me: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11470 rm -f conftest.$ac_objext conftest.$ac_ext
11474 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11475 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11476 if test "$ac_cv_sys_largefile_source" != no; then
11478 cat >>confdefs.h <<_ACEOF
11479 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11485 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11486 # in glibc 2.1.3, but that breaks too many other things.
11487 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11488 echo "$as_me:$LINENO: checking for fseeko" >&5
11489 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11490 if test "${ac_cv_func_fseeko+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 cat >conftest.$ac_ext <<_ACEOF
11494 #line $LINENO "configure"
11495 #include "confdefs.h"
11497 #ifdef F77_DUMMY_MAIN
11498 # ifdef __cplusplus
11501 int F77_DUMMY_MAIN() { return 1; }
11506 return fseeko && fseeko (stdin, 0, 0);
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -s conftest$ac_exeext'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }; then
11523 ac_cv_func_fseeko=yes
11525 echo "$as_me: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 ac_cv_func_fseeko=no
11529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11531 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11532 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11533 if test $ac_cv_func_fseeko = yes; then
11535 cat >>confdefs.h <<\_ACEOF
11536 #define HAVE_FSEEKO 1
11543 # This test makes sure that run tests work at all. Sometimes a shared
11544 # library is found by the linker, but the runtime linker can't find it.
11545 # This check should come after all modifications of compiler or linker
11546 # variables, and before any other run tests.
11547 echo "$as_me:$LINENO: checking test program" >&5
11548 echo $ECHO_N "checking test program... $ECHO_C" >&6
11549 if test "$cross_compiling" = yes; then
11550 echo "$as_me:$LINENO: result: cross-compiling" >&5
11551 echo "${ECHO_T}cross-compiling" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11554 #line $LINENO "configure"
11555 #include "confdefs.h"
11556 int main() { return 0; }
11558 rm -f conftest$ac_exeext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11560 (eval $ac_link) 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11569 echo "$as_me:$LINENO: result: ok" >&5
11570 echo "${ECHO_T}ok" >&6
11572 echo "$as_me: program exited with status $ac_status" >&5
11573 echo "$as_me: failed program was:" >&5
11574 cat conftest.$ac_ext >&5
11575 ( exit $ac_status )
11576 echo "$as_me:$LINENO: result: failed" >&5
11577 echo "${ECHO_T}failed" >&6
11578 { { echo "$as_me:$LINENO: error:
11579 *** Could not execute a simple test program. This may be a problem
11580 *** related to locating shared libraries. Check the file 'config.log'
11581 *** for the exact reason." >&5
11582 echo "$as_me: error:
11583 *** Could not execute a simple test program. This may be a problem
11584 *** related to locating shared libraries. Check the file 'config.log'
11585 *** for the exact reason." >&2;}
11586 { (exit 1); exit 1; }; }
11588 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11593 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11594 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11595 if test "${pgac_cv_type_long_int_64+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 if test "$cross_compiling" = yes; then
11599 pgac_cv_type_long_int_64=no
11600 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11601 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11603 cat >conftest.$ac_ext <<_ACEOF
11604 #line $LINENO "configure"
11605 #include "confdefs.h"
11606 typedef long int int64;
11609 * These are globals to discourage the compiler from folding all the
11610 * arithmetic tests down to compile-time constants.
11612 int64 a = 20000001;
11613 int64 b = 40000005;
11615 int does_int64_work()
11619 if (sizeof(int64) != 8)
11620 return 0; /* definitely not the right size */
11622 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11630 exit(! does_int64_work());
11633 rm -f conftest$ac_exeext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635 (eval $ac_link) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11644 pgac_cv_type_long_int_64=yes
11646 echo "$as_me: program exited with status $ac_status" >&5
11647 echo "$as_me: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 ( exit $ac_status )
11650 pgac_cv_type_long_int_64=no
11652 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11655 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11656 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11658 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11659 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11661 cat >>confdefs.h <<\_ACEOF
11662 #define HAVE_LONG_INT_64
11668 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11669 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11670 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11671 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 if test "$cross_compiling" = yes; then
11675 pgac_cv_type_long_long_int_64=no
11676 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11677 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11679 cat >conftest.$ac_ext <<_ACEOF
11680 #line $LINENO "configure"
11681 #include "confdefs.h"
11682 typedef long long int int64;
11685 * These are globals to discourage the compiler from folding all the
11686 * arithmetic tests down to compile-time constants.
11688 int64 a = 20000001;
11689 int64 b = 40000005;
11691 int does_int64_work()
11695 if (sizeof(int64) != 8)
11696 return 0; /* definitely not the right size */
11698 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11706 exit(! does_int64_work());
11709 rm -f conftest$ac_exeext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11711 (eval $ac_link) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 pgac_cv_type_long_long_int_64=yes
11722 echo "$as_me: program exited with status $ac_status" >&5
11723 echo "$as_me: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11725 ( exit $ac_status )
11726 pgac_cv_type_long_long_int_64=no
11728 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11731 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
11732 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
11734 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
11735 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_LONG_LONG_INT_64
11747 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
11748 cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11752 #define INT64CONST(x) x##LL
11753 long long int foo = INT64CONST(0x1234567890123456);
11755 #ifdef F77_DUMMY_MAIN
11756 # ifdef __cplusplus
11759 int F77_DUMMY_MAIN() { return 1; }
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771 (eval $ac_compile) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -s conftest.$ac_objext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11782 cat >>confdefs.h <<\_ACEOF
11783 #define HAVE_LL_CONSTANTS 1
11787 echo "$as_me: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11790 rm -f conftest.$ac_objext conftest.$ac_ext
11795 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11796 if test $pgac_need_repl_snprintf = no; then
11797 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
11798 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
11799 if test "$cross_compiling" = yes; then
11800 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11801 echo "${ECHO_T}cannot test (not on host machine)" >&6
11802 # Force usage of our own snprintf, since we cannot test foreign snprintf
11803 pgac_need_repl_snprintf=yes
11804 INT64_FORMAT='"%lld"'
11807 cat >conftest.$ac_ext <<_ACEOF
11808 #line $LINENO "configure"
11809 #include "confdefs.h"
11811 typedef long long int int64;
11812 #define INT64_FORMAT "%lld"
11814 int64 a = 20000001;
11815 int64 b = 40000005;
11817 int does_int64_snprintf_work()
11822 if (sizeof(int64) != 8)
11823 return 0; /* doesn't look like the right size */
11826 snprintf(buf, 100, INT64_FORMAT, c);
11827 if (strcmp(buf, "800000140000005") != 0)
11828 return 0; /* either multiply or snprintf is busted */
11832 exit(! does_int64_snprintf_work());
11835 rm -f conftest$ac_exeext
11836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11837 (eval $ac_link) 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11842 (eval $ac_try) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; }; then
11846 echo "$as_me:$LINENO: result: yes" >&5
11847 echo "${ECHO_T}yes" >&6
11848 INT64_FORMAT='"%lld"'
11851 echo "$as_me: program exited with status $ac_status" >&5
11852 echo "$as_me: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 ( exit $ac_status )
11855 echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11857 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
11858 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
11859 if test "$cross_compiling" = yes; then
11860 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11861 echo "${ECHO_T}cannot test (not on host machine)" >&6
11862 # Force usage of our own snprintf, since we cannot test foreign snprintf
11863 pgac_need_repl_snprintf=yes
11864 INT64_FORMAT='"%lld"'
11867 cat >conftest.$ac_ext <<_ACEOF
11868 #line $LINENO "configure"
11869 #include "confdefs.h"
11871 typedef long long int int64;
11872 #define INT64_FORMAT "%qd"
11874 int64 a = 20000001;
11875 int64 b = 40000005;
11877 int does_int64_snprintf_work()
11882 if (sizeof(int64) != 8)
11883 return 0; /* doesn't look like the right size */
11886 snprintf(buf, 100, INT64_FORMAT, c);
11887 if (strcmp(buf, "800000140000005") != 0)
11888 return 0; /* either multiply or snprintf is busted */
11892 exit(! does_int64_snprintf_work());
11895 rm -f conftest$ac_exeext
11896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11897 (eval $ac_link) 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 echo "$as_me:$LINENO: result: yes" >&5
11907 echo "${ECHO_T}yes" >&6
11908 INT64_FORMAT='"%qd"'
11911 echo "$as_me: program exited with status $ac_status" >&5
11912 echo "$as_me: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11914 ( exit $ac_status )
11915 echo "$as_me:$LINENO: result: no" >&5
11916 echo "${ECHO_T}no" >&6
11917 # Force usage of our own snprintf, since system snprintf is broken
11918 pgac_need_repl_snprintf=yes
11919 INT64_FORMAT='"%lld"'
11922 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11925 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11928 # here if we previously decided we needed to use our own snprintf
11929 INT64_FORMAT='"%lld"'
11932 # Here if we are not using 'long long int' at all
11933 INT64_FORMAT='"%ld"'
11937 cat >>confdefs.h <<_ACEOF
11938 #define INT64_FORMAT $INT64_FORMAT
11942 if test $pgac_need_repl_snprintf = yes; then
11943 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
11947 echo "$as_me:$LINENO: checking for unsigned long" >&5
11948 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
11949 if test "${ac_cv_type_unsigned_long+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 cat >conftest.$ac_ext <<_ACEOF
11953 #line $LINENO "configure"
11954 #include "confdefs.h"
11955 $ac_includes_default
11956 #ifdef F77_DUMMY_MAIN
11957 # ifdef __cplusplus
11960 int F77_DUMMY_MAIN() { return 1; }
11965 if ((unsigned long *) 0)
11967 if (sizeof (unsigned long))
11973 rm -f conftest.$ac_objext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11975 (eval $ac_compile) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_type_unsigned_long=yes
11987 echo "$as_me: failed program was:" >&5
11988 cat conftest.$ac_ext >&5
11989 ac_cv_type_unsigned_long=no
11991 rm -f conftest.$ac_objext conftest.$ac_ext
11993 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
11994 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
11996 echo "$as_me:$LINENO: checking size of unsigned long" >&5
11997 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
11998 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
12001 if test "$ac_cv_type_unsigned_long" = yes; then
12002 # The cast to unsigned long works around a bug in the HP C Compiler
12003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12005 # This bug is HP SR number 8606223364.
12006 if test "$cross_compiling" = yes; then
12007 # Depending upon the size, compute the lo and hi bounds.
12008 cat >conftest.$ac_ext <<_ACEOF
12009 #line $LINENO "configure"
12010 #include "confdefs.h"
12011 $ac_includes_default
12012 #ifdef F77_DUMMY_MAIN
12013 # ifdef __cplusplus
12016 int F77_DUMMY_MAIN() { return 1; }
12021 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -s conftest.$ac_objext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12042 cat >conftest.$ac_ext <<_ACEOF
12043 #line $LINENO "configure"
12044 #include "confdefs.h"
12045 $ac_includes_default
12046 #ifdef F77_DUMMY_MAIN
12047 # ifdef __cplusplus
12050 int F77_DUMMY_MAIN() { return 1; }
12055 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12062 rm -f conftest.$ac_objext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -s conftest.$ac_objext'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
12074 ac_hi=$ac_mid; break
12076 echo "$as_me: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 ac_lo=`expr $ac_mid + 1`
12079 if test $ac_lo -le $ac_mid; then
12083 ac_mid=`expr 2 '*' $ac_mid + 1`
12085 rm -f conftest.$ac_objext conftest.$ac_ext
12088 echo "$as_me: failed program was:" >&5
12089 cat conftest.$ac_ext >&5
12090 cat >conftest.$ac_ext <<_ACEOF
12091 #line $LINENO "configure"
12092 #include "confdefs.h"
12093 $ac_includes_default
12094 #ifdef F77_DUMMY_MAIN
12095 # ifdef __cplusplus
12098 int F77_DUMMY_MAIN() { return 1; }
12103 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12110 rm -f conftest.$ac_objext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12112 (eval $ac_compile) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try='test -s conftest.$ac_objext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12124 cat >conftest.$ac_ext <<_ACEOF
12125 #line $LINENO "configure"
12126 #include "confdefs.h"
12127 $ac_includes_default
12128 #ifdef F77_DUMMY_MAIN
12129 # ifdef __cplusplus
12132 int F77_DUMMY_MAIN() { return 1; }
12137 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12144 rm -f conftest.$ac_objext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12146 (eval $ac_compile) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_lo=$ac_mid; break
12158 echo "$as_me: failed program was:" >&5
12159 cat conftest.$ac_ext >&5
12160 ac_hi=`expr '(' $ac_mid ')' - 1`
12161 if test $ac_mid -le $ac_hi; then
12165 ac_mid=`expr 2 '*' $ac_mid`
12167 rm -f conftest.$ac_objext conftest.$ac_ext
12170 echo "$as_me: failed program was:" >&5
12171 cat conftest.$ac_ext >&5
12174 rm -f conftest.$ac_objext conftest.$ac_ext
12176 rm -f conftest.$ac_objext conftest.$ac_ext
12177 # Binary search between lo and hi bounds.
12178 while test "x$ac_lo" != "x$ac_hi"; do
12179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12180 cat >conftest.$ac_ext <<_ACEOF
12181 #line $LINENO "configure"
12182 #include "confdefs.h"
12183 $ac_includes_default
12184 #ifdef F77_DUMMY_MAIN
12185 # ifdef __cplusplus
12188 int F77_DUMMY_MAIN() { return 1; }
12193 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12214 echo "$as_me: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12216 ac_lo=`expr '(' $ac_mid ')' + 1`
12218 rm -f conftest.$ac_objext conftest.$ac_ext
12221 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12223 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12224 { (exit 1); exit 1; }; } ;;
12227 if test "$cross_compiling" = yes; then
12228 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12229 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12230 { (exit 1); exit 1; }; }
12232 cat >conftest.$ac_ext <<_ACEOF
12233 #line $LINENO "configure"
12234 #include "confdefs.h"
12235 $ac_includes_default
12236 long longval () { return (long) (sizeof (unsigned long)); }
12237 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12239 #include <stdlib.h>
12240 #ifdef F77_DUMMY_MAIN
12241 # ifdef __cplusplus
12244 int F77_DUMMY_MAIN() { return 1; }
12250 FILE *f = fopen ("conftest.val", "w");
12253 if (((long) (sizeof (unsigned long))) < 0)
12255 long i = longval ();
12256 if (i != ((long) (sizeof (unsigned long))))
12258 fprintf (f, "%ld\n", i);
12262 unsigned long i = ulongval ();
12263 if (i != ((long) (sizeof (unsigned long))))
12265 fprintf (f, "%lu\n", i);
12267 exit (ferror (f) || fclose (f) != 0);
12273 rm -f conftest$ac_exeext
12274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275 (eval $ac_link) 2>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_cv_sizeof_unsigned_long=`cat conftest.val`
12286 echo "$as_me: program exited with status $ac_status" >&5
12287 echo "$as_me: failed program was:" >&5
12288 cat conftest.$ac_ext >&5
12289 ( exit $ac_status )
12290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12291 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12292 { (exit 1); exit 1; }; }
12294 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12299 ac_cv_sizeof_unsigned_long=0
12302 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12303 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12304 cat >>confdefs.h <<_ACEOF
12305 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12310 cat >>confdefs.h <<_ACEOF
12311 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12315 # Determine memory alignment requirements for the basic C data types.
12317 echo "$as_me:$LINENO: checking for short" >&5
12318 echo $ECHO_N "checking for short... $ECHO_C" >&6
12319 if test "${ac_cv_type_short+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 cat >conftest.$ac_ext <<_ACEOF
12323 #line $LINENO "configure"
12324 #include "confdefs.h"
12325 $ac_includes_default
12326 #ifdef F77_DUMMY_MAIN
12327 # ifdef __cplusplus
12330 int F77_DUMMY_MAIN() { return 1; }
12337 if (sizeof (short))
12343 rm -f conftest.$ac_objext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345 (eval $ac_compile) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
12349 { ac_try='test -s conftest.$ac_objext'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12355 ac_cv_type_short=yes
12357 echo "$as_me: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12359 ac_cv_type_short=no
12361 rm -f conftest.$ac_objext conftest.$ac_ext
12363 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12364 echo "${ECHO_T}$ac_cv_type_short" >&6
12366 echo "$as_me:$LINENO: checking alignment of short" >&5
12367 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12368 if test "${pgac_cv_alignof_short+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 if test "$ac_cv_type_short" = yes; then
12372 if test "$cross_compiling" = yes; then
12373 # Depending upon the size, compute the lo and hi bounds.
12374 cat >conftest.$ac_ext <<_ACEOF
12375 #line $LINENO "configure"
12376 #include "confdefs.h"
12377 $ac_includes_default
12378 struct { char filler; short field; } pgac_struct;
12379 #ifdef F77_DUMMY_MAIN
12380 # ifdef __cplusplus
12383 int F77_DUMMY_MAIN() { return 1; }
12388 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397 (eval $ac_compile) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -s conftest.$ac_objext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412 $ac_includes_default
12413 struct { char filler; short field; } pgac_struct;
12414 #ifdef F77_DUMMY_MAIN
12415 # ifdef __cplusplus
12418 int F77_DUMMY_MAIN() { return 1; }
12423 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12430 rm -f conftest.$ac_objext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12432 (eval $ac_compile) 2>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -s conftest.$ac_objext'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442 ac_hi=$ac_mid; break
12444 echo "$as_me: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12446 ac_lo=`expr $ac_mid + 1`
12447 if test $ac_lo -le $ac_mid; then
12451 ac_mid=`expr 2 '*' $ac_mid + 1`
12453 rm -f conftest.$ac_objext conftest.$ac_ext
12456 echo "$as_me: failed program was:" >&5
12457 cat conftest.$ac_ext >&5
12458 cat >conftest.$ac_ext <<_ACEOF
12459 #line $LINENO "configure"
12460 #include "confdefs.h"
12461 $ac_includes_default
12462 struct { char filler; short field; } pgac_struct;
12463 #ifdef F77_DUMMY_MAIN
12464 # ifdef __cplusplus
12467 int F77_DUMMY_MAIN() { return 1; }
12472 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12479 rm -f conftest.$ac_objext
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
12485 { ac_try='test -s conftest.$ac_objext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12493 cat >conftest.$ac_ext <<_ACEOF
12494 #line $LINENO "configure"
12495 #include "confdefs.h"
12496 $ac_includes_default
12497 struct { char filler; short field; } pgac_struct;
12498 #ifdef F77_DUMMY_MAIN
12499 # ifdef __cplusplus
12502 int F77_DUMMY_MAIN() { return 1; }
12507 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_lo=$ac_mid; break
12528 echo "$as_me: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12530 ac_hi=`expr '(' $ac_mid ')' - 1`
12531 if test $ac_mid -le $ac_hi; then
12535 ac_mid=`expr 2 '*' $ac_mid`
12537 rm -f conftest.$ac_objext conftest.$ac_ext
12540 echo "$as_me: failed program was:" >&5
12541 cat conftest.$ac_ext >&5
12544 rm -f conftest.$ac_objext conftest.$ac_ext
12546 rm -f conftest.$ac_objext conftest.$ac_ext
12547 # Binary search between lo and hi bounds.
12548 while test "x$ac_lo" != "x$ac_hi"; do
12549 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12550 cat >conftest.$ac_ext <<_ACEOF
12551 #line $LINENO "configure"
12552 #include "confdefs.h"
12553 $ac_includes_default
12554 struct { char filler; short field; } pgac_struct;
12555 #ifdef F77_DUMMY_MAIN
12556 # ifdef __cplusplus
12559 int F77_DUMMY_MAIN() { return 1; }
12564 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12571 rm -f conftest.$ac_objext
12572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12573 (eval $ac_compile) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -s conftest.$ac_objext'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12585 echo "$as_me: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12587 ac_lo=`expr '(' $ac_mid ')' + 1`
12589 rm -f conftest.$ac_objext conftest.$ac_ext
12592 ?*) pgac_cv_alignof_short=$ac_lo;;
12593 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12594 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12595 { (exit 1); exit 1; }; } ;;
12598 if test "$cross_compiling" = yes; then
12599 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12600 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12601 { (exit 1); exit 1; }; }
12603 cat >conftest.$ac_ext <<_ACEOF
12604 #line $LINENO "configure"
12605 #include "confdefs.h"
12606 $ac_includes_default
12607 struct { char filler; short field; } pgac_struct;
12608 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12609 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12611 #include <stdlib.h>
12612 #ifdef F77_DUMMY_MAIN
12613 # ifdef __cplusplus
12616 int F77_DUMMY_MAIN() { return 1; }
12622 FILE *f = fopen ("conftest.val", "w");
12625 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12627 long i = longval ();
12628 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12630 fprintf (f, "%ld\n", i);
12634 unsigned long i = ulongval ();
12635 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12637 fprintf (f, "%lu\n", i);
12639 exit (ferror (f) || fclose (f) != 0);
12645 rm -f conftest$ac_exeext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12647 (eval $ac_link) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 pgac_cv_alignof_short=`cat conftest.val`
12658 echo "$as_me: program exited with status $ac_status" >&5
12659 echo "$as_me: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661 ( exit $ac_status )
12662 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12663 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12664 { (exit 1); exit 1; }; }
12666 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12671 pgac_cv_alignof_short=0
12674 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12675 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12676 cat >>confdefs.h <<_ACEOF
12677 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12681 echo "$as_me:$LINENO: checking for int" >&5
12682 echo $ECHO_N "checking for int... $ECHO_C" >&6
12683 if test "${ac_cv_type_int+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 cat >conftest.$ac_ext <<_ACEOF
12687 #line $LINENO "configure"
12688 #include "confdefs.h"
12689 $ac_includes_default
12690 #ifdef F77_DUMMY_MAIN
12691 # ifdef __cplusplus
12694 int F77_DUMMY_MAIN() { return 1; }
12707 rm -f conftest.$ac_objext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -s conftest.$ac_objext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12721 echo "$as_me: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12725 rm -f conftest.$ac_objext conftest.$ac_ext
12727 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12728 echo "${ECHO_T}$ac_cv_type_int" >&6
12730 echo "$as_me:$LINENO: checking alignment of int" >&5
12731 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12732 if test "${pgac_cv_alignof_int+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 if test "$ac_cv_type_int" = yes; then
12736 if test "$cross_compiling" = yes; then
12737 # Depending upon the size, compute the lo and hi bounds.
12738 cat >conftest.$ac_ext <<_ACEOF
12739 #line $LINENO "configure"
12740 #include "confdefs.h"
12741 $ac_includes_default
12742 struct { char filler; int field; } pgac_struct;
12743 #ifdef F77_DUMMY_MAIN
12744 # ifdef __cplusplus
12747 int F77_DUMMY_MAIN() { return 1; }
12752 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12759 rm -f conftest.$ac_objext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761 (eval $ac_compile) 2>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -s conftest.$ac_objext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12773 cat >conftest.$ac_ext <<_ACEOF
12774 #line $LINENO "configure"
12775 #include "confdefs.h"
12776 $ac_includes_default
12777 struct { char filler; int field; } pgac_struct;
12778 #ifdef F77_DUMMY_MAIN
12779 # ifdef __cplusplus
12782 int F77_DUMMY_MAIN() { return 1; }
12787 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12794 rm -f conftest.$ac_objext
12795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -s conftest.$ac_objext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_hi=$ac_mid; break
12808 echo "$as_me: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12810 ac_lo=`expr $ac_mid + 1`
12811 if test $ac_lo -le $ac_mid; then
12815 ac_mid=`expr 2 '*' $ac_mid + 1`
12817 rm -f conftest.$ac_objext conftest.$ac_ext
12820 echo "$as_me: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12822 cat >conftest.$ac_ext <<_ACEOF
12823 #line $LINENO "configure"
12824 #include "confdefs.h"
12825 $ac_includes_default
12826 struct { char filler; int field; } pgac_struct;
12827 #ifdef F77_DUMMY_MAIN
12828 # ifdef __cplusplus
12831 int F77_DUMMY_MAIN() { return 1; }
12836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12843 rm -f conftest.$ac_objext
12844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12845 (eval $ac_compile) 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -s conftest.$ac_objext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 #include "confdefs.h"
12860 $ac_includes_default
12861 struct { char filler; int field; } pgac_struct;
12862 #ifdef F77_DUMMY_MAIN
12863 # ifdef __cplusplus
12866 int F77_DUMMY_MAIN() { return 1; }
12871 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12878 rm -f conftest.$ac_objext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880 (eval $ac_compile) 2>&5
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } &&
12884 { ac_try='test -s conftest.$ac_objext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 ac_lo=$ac_mid; break
12892 echo "$as_me: failed program was:" >&5
12893 cat conftest.$ac_ext >&5
12894 ac_hi=`expr '(' $ac_mid ')' - 1`
12895 if test $ac_mid -le $ac_hi; then
12899 ac_mid=`expr 2 '*' $ac_mid`
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12904 echo "$as_me: failed program was:" >&5
12905 cat conftest.$ac_ext >&5
12908 rm -f conftest.$ac_objext conftest.$ac_ext
12910 rm -f conftest.$ac_objext conftest.$ac_ext
12911 # Binary search between lo and hi bounds.
12912 while test "x$ac_lo" != "x$ac_hi"; do
12913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12914 cat >conftest.$ac_ext <<_ACEOF
12915 #line $LINENO "configure"
12916 #include "confdefs.h"
12917 $ac_includes_default
12918 struct { char filler; int field; } pgac_struct;
12919 #ifdef F77_DUMMY_MAIN
12920 # ifdef __cplusplus
12923 int F77_DUMMY_MAIN() { return 1; }
12928 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12935 rm -f conftest.$ac_objext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12937 (eval $ac_compile) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -s conftest.$ac_objext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12949 echo "$as_me: failed program was:" >&5
12950 cat conftest.$ac_ext >&5
12951 ac_lo=`expr '(' $ac_mid ')' + 1`
12953 rm -f conftest.$ac_objext conftest.$ac_ext
12956 ?*) pgac_cv_alignof_int=$ac_lo;;
12957 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
12958 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
12959 { (exit 1); exit 1; }; } ;;
12962 if test "$cross_compiling" = yes; then
12963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12964 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12965 { (exit 1); exit 1; }; }
12967 cat >conftest.$ac_ext <<_ACEOF
12968 #line $LINENO "configure"
12969 #include "confdefs.h"
12970 $ac_includes_default
12971 struct { char filler; int field; } pgac_struct;
12972 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12973 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12975 #include <stdlib.h>
12976 #ifdef F77_DUMMY_MAIN
12977 # ifdef __cplusplus
12980 int F77_DUMMY_MAIN() { return 1; }
12986 FILE *f = fopen ("conftest.val", "w");
12989 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12991 long i = longval ();
12992 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12994 fprintf (f, "%ld\n", i);
12998 unsigned long i = ulongval ();
12999 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13001 fprintf (f, "%lu\n", i);
13003 exit (ferror (f) || fclose (f) != 0);
13009 rm -f conftest$ac_exeext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011 (eval $ac_link) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 pgac_cv_alignof_int=`cat conftest.val`
13022 echo "$as_me: program exited with status $ac_status" >&5
13023 echo "$as_me: failed program was:" >&5
13024 cat conftest.$ac_ext >&5
13025 ( exit $ac_status )
13026 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13027 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13028 { (exit 1); exit 1; }; }
13030 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13035 pgac_cv_alignof_int=0
13038 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13039 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13040 cat >>confdefs.h <<_ACEOF
13041 #define ALIGNOF_INT $pgac_cv_alignof_int
13045 echo "$as_me:$LINENO: checking for long" >&5
13046 echo $ECHO_N "checking for long... $ECHO_C" >&6
13047 if test "${ac_cv_type_long+set}" = set; then
13048 echo $ECHO_N "(cached) $ECHO_C" >&6
13050 cat >conftest.$ac_ext <<_ACEOF
13051 #line $LINENO "configure"
13052 #include "confdefs.h"
13053 $ac_includes_default
13054 #ifdef F77_DUMMY_MAIN
13055 # ifdef __cplusplus
13058 int F77_DUMMY_MAIN() { return 1; }
13071 rm -f conftest.$ac_objext
13072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13073 (eval $ac_compile) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
13077 { ac_try='test -s conftest.$ac_objext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_type_long=yes
13085 echo "$as_me: failed program was:" >&5
13086 cat conftest.$ac_ext >&5
13089 rm -f conftest.$ac_objext conftest.$ac_ext
13091 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13092 echo "${ECHO_T}$ac_cv_type_long" >&6
13094 echo "$as_me:$LINENO: checking alignment of long" >&5
13095 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13096 if test "${pgac_cv_alignof_long+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 if test "$ac_cv_type_long" = yes; then
13100 if test "$cross_compiling" = yes; then
13101 # Depending upon the size, compute the lo and hi bounds.
13102 cat >conftest.$ac_ext <<_ACEOF
13103 #line $LINENO "configure"
13104 #include "confdefs.h"
13105 $ac_includes_default
13106 struct { char filler; long field; } pgac_struct;
13107 #ifdef F77_DUMMY_MAIN
13108 # ifdef __cplusplus
13111 int F77_DUMMY_MAIN() { return 1; }
13116 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13123 rm -f conftest.$ac_objext
13124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13125 (eval $ac_compile) 2>&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } &&
13129 { ac_try='test -s conftest.$ac_objext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13137 cat >conftest.$ac_ext <<_ACEOF
13138 #line $LINENO "configure"
13139 #include "confdefs.h"
13140 $ac_includes_default
13141 struct { char filler; long field; } pgac_struct;
13142 #ifdef F77_DUMMY_MAIN
13143 # ifdef __cplusplus
13146 int F77_DUMMY_MAIN() { return 1; }
13151 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13158 rm -f conftest.$ac_objext
13159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160 (eval $ac_compile) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } &&
13164 { ac_try='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13170 ac_hi=$ac_mid; break
13172 echo "$as_me: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 ac_lo=`expr $ac_mid + 1`
13175 if test $ac_lo -le $ac_mid; then
13179 ac_mid=`expr 2 '*' $ac_mid + 1`
13181 rm -f conftest.$ac_objext conftest.$ac_ext
13184 echo "$as_me: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13186 cat >conftest.$ac_ext <<_ACEOF
13187 #line $LINENO "configure"
13188 #include "confdefs.h"
13189 $ac_includes_default
13190 struct { char filler; long field; } pgac_struct;
13191 #ifdef F77_DUMMY_MAIN
13192 # ifdef __cplusplus
13195 int F77_DUMMY_MAIN() { return 1; }
13200 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } &&
13213 { ac_try='test -s conftest.$ac_objext'
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13221 cat >conftest.$ac_ext <<_ACEOF
13222 #line $LINENO "configure"
13223 #include "confdefs.h"
13224 $ac_includes_default
13225 struct { char filler; long field; } pgac_struct;
13226 #ifdef F77_DUMMY_MAIN
13227 # ifdef __cplusplus
13230 int F77_DUMMY_MAIN() { return 1; }
13235 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13242 rm -f conftest.$ac_objext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13244 (eval $ac_compile) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -s conftest.$ac_objext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_lo=$ac_mid; break
13256 echo "$as_me: failed program was:" >&5
13257 cat conftest.$ac_ext >&5
13258 ac_hi=`expr '(' $ac_mid ')' - 1`
13259 if test $ac_mid -le $ac_hi; then
13263 ac_mid=`expr 2 '*' $ac_mid`
13265 rm -f conftest.$ac_objext conftest.$ac_ext
13268 echo "$as_me: failed program was:" >&5
13269 cat conftest.$ac_ext >&5
13272 rm -f conftest.$ac_objext conftest.$ac_ext
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13275 # Binary search between lo and hi bounds.
13276 while test "x$ac_lo" != "x$ac_hi"; do
13277 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13278 cat >conftest.$ac_ext <<_ACEOF
13279 #line $LINENO "configure"
13280 #include "confdefs.h"
13281 $ac_includes_default
13282 struct { char filler; long field; } pgac_struct;
13283 #ifdef F77_DUMMY_MAIN
13284 # ifdef __cplusplus
13287 int F77_DUMMY_MAIN() { return 1; }
13292 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301 (eval $ac_compile) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
13305 { ac_try='test -s conftest.$ac_objext'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
13313 echo "$as_me: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13315 ac_lo=`expr '(' $ac_mid ')' + 1`
13317 rm -f conftest.$ac_objext conftest.$ac_ext
13320 ?*) pgac_cv_alignof_long=$ac_lo;;
13321 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13322 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13323 { (exit 1); exit 1; }; } ;;
13326 if test "$cross_compiling" = yes; then
13327 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13328 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13329 { (exit 1); exit 1; }; }
13331 cat >conftest.$ac_ext <<_ACEOF
13332 #line $LINENO "configure"
13333 #include "confdefs.h"
13334 $ac_includes_default
13335 struct { char filler; long field; } pgac_struct;
13336 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13337 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13339 #include <stdlib.h>
13340 #ifdef F77_DUMMY_MAIN
13341 # ifdef __cplusplus
13344 int F77_DUMMY_MAIN() { return 1; }
13350 FILE *f = fopen ("conftest.val", "w");
13353 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13355 long i = longval ();
13356 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13358 fprintf (f, "%ld\n", i);
13362 unsigned long i = ulongval ();
13363 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13365 fprintf (f, "%lu\n", i);
13367 exit (ferror (f) || fclose (f) != 0);
13373 rm -f conftest$ac_exeext
13374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13375 (eval $ac_link) 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; }; then
13384 pgac_cv_alignof_long=`cat conftest.val`
13386 echo "$as_me: program exited with status $ac_status" >&5
13387 echo "$as_me: failed program was:" >&5
13388 cat conftest.$ac_ext >&5
13389 ( exit $ac_status )
13390 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13391 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13392 { (exit 1); exit 1; }; }
13394 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13399 pgac_cv_alignof_long=0
13402 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13403 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13404 cat >>confdefs.h <<_ACEOF
13405 #define ALIGNOF_LONG $pgac_cv_alignof_long
13409 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13410 echo "$as_me:$LINENO: checking for long long int" >&5
13411 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13412 if test "${ac_cv_type_long_long_int+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 cat >conftest.$ac_ext <<_ACEOF
13416 #line $LINENO "configure"
13417 #include "confdefs.h"
13418 $ac_includes_default
13419 #ifdef F77_DUMMY_MAIN
13420 # ifdef __cplusplus
13423 int F77_DUMMY_MAIN() { return 1; }
13428 if ((long long int *) 0)
13430 if (sizeof (long long int))
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -s conftest.$ac_objext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13448 ac_cv_type_long_long_int=yes
13450 echo "$as_me: failed program was:" >&5
13451 cat conftest.$ac_ext >&5
13452 ac_cv_type_long_long_int=no
13454 rm -f conftest.$ac_objext conftest.$ac_ext
13456 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13457 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13459 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13460 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13461 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13464 if test "$ac_cv_type_long_long_int" = yes; then
13465 if test "$cross_compiling" = yes; then
13466 # Depending upon the size, compute the lo and hi bounds.
13467 cat >conftest.$ac_ext <<_ACEOF
13468 #line $LINENO "configure"
13469 #include "confdefs.h"
13470 $ac_includes_default
13471 struct { char filler; long long int field; } pgac_struct;
13472 #ifdef F77_DUMMY_MAIN
13473 # ifdef __cplusplus
13476 int F77_DUMMY_MAIN() { return 1; }
13481 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13488 rm -f conftest.$ac_objext
13489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13490 (eval $ac_compile) 2>&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } &&
13494 { ac_try='test -s conftest.$ac_objext'
13495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496 (eval $ac_try) 2>&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; }; then
13502 cat >conftest.$ac_ext <<_ACEOF
13503 #line $LINENO "configure"
13504 #include "confdefs.h"
13505 $ac_includes_default
13506 struct { char filler; long long int field; } pgac_struct;
13507 #ifdef F77_DUMMY_MAIN
13508 # ifdef __cplusplus
13511 int F77_DUMMY_MAIN() { return 1; }
13516 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525 (eval $ac_compile) 2>&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -s conftest.$ac_objext'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 ac_hi=$ac_mid; break
13537 echo "$as_me: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13539 ac_lo=`expr $ac_mid + 1`
13540 if test $ac_lo -le $ac_mid; then
13544 ac_mid=`expr 2 '*' $ac_mid + 1`
13546 rm -f conftest.$ac_objext conftest.$ac_ext
13549 echo "$as_me: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13551 cat >conftest.$ac_ext <<_ACEOF
13552 #line $LINENO "configure"
13553 #include "confdefs.h"
13554 $ac_includes_default
13555 struct { char filler; long long int field; } pgac_struct;
13556 #ifdef F77_DUMMY_MAIN
13557 # ifdef __cplusplus
13560 int F77_DUMMY_MAIN() { return 1; }
13565 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -s conftest.$ac_objext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13586 cat >conftest.$ac_ext <<_ACEOF
13587 #line $LINENO "configure"
13588 #include "confdefs.h"
13589 $ac_includes_default
13590 struct { char filler; long long int field; } pgac_struct;
13591 #ifdef F77_DUMMY_MAIN
13592 # ifdef __cplusplus
13595 int F77_DUMMY_MAIN() { return 1; }
13600 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13607 rm -f conftest.$ac_objext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609 (eval $ac_compile) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -s conftest.$ac_objext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_lo=$ac_mid; break
13621 echo "$as_me: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 ac_hi=`expr '(' $ac_mid ')' - 1`
13624 if test $ac_mid -le $ac_hi; then
13628 ac_mid=`expr 2 '*' $ac_mid`
13630 rm -f conftest.$ac_objext conftest.$ac_ext
13633 echo "$as_me: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13637 rm -f conftest.$ac_objext conftest.$ac_ext
13639 rm -f conftest.$ac_objext conftest.$ac_ext
13640 # Binary search between lo and hi bounds.
13641 while test "x$ac_lo" != "x$ac_hi"; do
13642 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13643 cat >conftest.$ac_ext <<_ACEOF
13644 #line $LINENO "configure"
13645 #include "confdefs.h"
13646 $ac_includes_default
13647 struct { char filler; long long int field; } pgac_struct;
13648 #ifdef F77_DUMMY_MAIN
13649 # ifdef __cplusplus
13652 int F77_DUMMY_MAIN() { return 1; }
13657 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666 (eval $ac_compile) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13678 echo "$as_me: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 ac_lo=`expr '(' $ac_mid ')' + 1`
13682 rm -f conftest.$ac_objext conftest.$ac_ext
13685 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13686 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13687 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13688 { (exit 1); exit 1; }; } ;;
13691 if test "$cross_compiling" = yes; then
13692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13693 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13694 { (exit 1); exit 1; }; }
13696 cat >conftest.$ac_ext <<_ACEOF
13697 #line $LINENO "configure"
13698 #include "confdefs.h"
13699 $ac_includes_default
13700 struct { char filler; long long int field; } pgac_struct;
13701 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13702 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13704 #include <stdlib.h>
13705 #ifdef F77_DUMMY_MAIN
13706 # ifdef __cplusplus
13709 int F77_DUMMY_MAIN() { return 1; }
13715 FILE *f = fopen ("conftest.val", "w");
13718 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13720 long i = longval ();
13721 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13723 fprintf (f, "%ld\n", i);
13727 unsigned long i = ulongval ();
13728 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13730 fprintf (f, "%lu\n", i);
13732 exit (ferror (f) || fclose (f) != 0);
13738 rm -f conftest$ac_exeext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13740 (eval $ac_link) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 pgac_cv_alignof_long_long_int=`cat conftest.val`
13751 echo "$as_me: program exited with status $ac_status" >&5
13752 echo "$as_me: failed program was:" >&5
13753 cat conftest.$ac_ext >&5
13754 ( exit $ac_status )
13755 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13756 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13757 { (exit 1); exit 1; }; }
13759 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13764 pgac_cv_alignof_long_long_int=0
13767 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
13768 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
13769 cat >>confdefs.h <<_ACEOF
13770 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
13775 echo "$as_me:$LINENO: checking for double" >&5
13776 echo $ECHO_N "checking for double... $ECHO_C" >&6
13777 if test "${ac_cv_type_double+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13782 #include "confdefs.h"
13783 $ac_includes_default
13784 #ifdef F77_DUMMY_MAIN
13785 # ifdef __cplusplus
13788 int F77_DUMMY_MAIN() { return 1; }
13795 if (sizeof (double))
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
13807 { ac_try='test -s conftest.$ac_objext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 ac_cv_type_double=yes
13815 echo "$as_me: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13817 ac_cv_type_double=no
13819 rm -f conftest.$ac_objext conftest.$ac_ext
13821 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
13822 echo "${ECHO_T}$ac_cv_type_double" >&6
13824 echo "$as_me:$LINENO: checking alignment of double" >&5
13825 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
13826 if test "${pgac_cv_alignof_double+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 if test "$ac_cv_type_double" = yes; then
13830 if test "$cross_compiling" = yes; then
13831 # Depending upon the size, compute the lo and hi bounds.
13832 cat >conftest.$ac_ext <<_ACEOF
13833 #line $LINENO "configure"
13834 #include "confdefs.h"
13835 $ac_includes_default
13836 struct { char filler; double field; } pgac_struct;
13837 #ifdef F77_DUMMY_MAIN
13838 # ifdef __cplusplus
13841 int F77_DUMMY_MAIN() { return 1; }
13846 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13853 rm -f conftest.$ac_objext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855 (eval $ac_compile) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try='test -s conftest.$ac_objext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 #include "confdefs.h"
13870 $ac_includes_default
13871 struct { char filler; double field; } pgac_struct;
13872 #ifdef F77_DUMMY_MAIN
13873 # ifdef __cplusplus
13876 int F77_DUMMY_MAIN() { return 1; }
13881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_hi=$ac_mid; break
13902 echo "$as_me: failed program was:" >&5
13903 cat conftest.$ac_ext >&5
13904 ac_lo=`expr $ac_mid + 1`
13905 if test $ac_lo -le $ac_mid; then
13909 ac_mid=`expr 2 '*' $ac_mid + 1`
13911 rm -f conftest.$ac_objext conftest.$ac_ext
13914 echo "$as_me: failed program was:" >&5
13915 cat conftest.$ac_ext >&5
13916 cat >conftest.$ac_ext <<_ACEOF
13917 #line $LINENO "configure"
13918 #include "confdefs.h"
13919 $ac_includes_default
13920 struct { char filler; double field; } pgac_struct;
13921 #ifdef F77_DUMMY_MAIN
13922 # ifdef __cplusplus
13925 int F77_DUMMY_MAIN() { return 1; }
13930 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939 (eval $ac_compile) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -s conftest.$ac_objext'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13951 cat >conftest.$ac_ext <<_ACEOF
13952 #line $LINENO "configure"
13953 #include "confdefs.h"
13954 $ac_includes_default
13955 struct { char filler; double field; } pgac_struct;
13956 #ifdef F77_DUMMY_MAIN
13957 # ifdef __cplusplus
13960 int F77_DUMMY_MAIN() { return 1; }
13965 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_lo=$ac_mid; break
13986 echo "$as_me: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13988 ac_hi=`expr '(' $ac_mid ')' - 1`
13989 if test $ac_mid -le $ac_hi; then
13993 ac_mid=`expr 2 '*' $ac_mid`
13995 rm -f conftest.$ac_objext conftest.$ac_ext
13998 echo "$as_me: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14002 rm -f conftest.$ac_objext conftest.$ac_ext
14004 rm -f conftest.$ac_objext conftest.$ac_ext
14005 # Binary search between lo and hi bounds.
14006 while test "x$ac_lo" != "x$ac_hi"; do
14007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14008 cat >conftest.$ac_ext <<_ACEOF
14009 #line $LINENO "configure"
14010 #include "confdefs.h"
14011 $ac_includes_default
14012 struct { char filler; double field; } pgac_struct;
14013 #ifdef F77_DUMMY_MAIN
14014 # ifdef __cplusplus
14017 int F77_DUMMY_MAIN() { return 1; }
14022 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14029 rm -f conftest.$ac_objext
14030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14031 (eval $ac_compile) 2>&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } &&
14035 { ac_try='test -s conftest.$ac_objext'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14043 echo "$as_me: failed program was:" >&5
14044 cat conftest.$ac_ext >&5
14045 ac_lo=`expr '(' $ac_mid ')' + 1`
14047 rm -f conftest.$ac_objext conftest.$ac_ext
14050 ?*) pgac_cv_alignof_double=$ac_lo;;
14051 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14052 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14053 { (exit 1); exit 1; }; } ;;
14056 if test "$cross_compiling" = yes; then
14057 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14058 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14059 { (exit 1); exit 1; }; }
14061 cat >conftest.$ac_ext <<_ACEOF
14062 #line $LINENO "configure"
14063 #include "confdefs.h"
14064 $ac_includes_default
14065 struct { char filler; double field; } pgac_struct;
14066 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14067 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14069 #include <stdlib.h>
14070 #ifdef F77_DUMMY_MAIN
14071 # ifdef __cplusplus
14074 int F77_DUMMY_MAIN() { return 1; }
14080 FILE *f = fopen ("conftest.val", "w");
14083 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14085 long i = longval ();
14086 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14088 fprintf (f, "%ld\n", i);
14092 unsigned long i = ulongval ();
14093 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14095 fprintf (f, "%lu\n", i);
14097 exit (ferror (f) || fclose (f) != 0);
14103 rm -f conftest$ac_exeext
14104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14105 (eval $ac_link) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 pgac_cv_alignof_double=`cat conftest.val`
14116 echo "$as_me: program exited with status $ac_status" >&5
14117 echo "$as_me: failed program was:" >&5
14118 cat conftest.$ac_ext >&5
14119 ( exit $ac_status )
14120 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14121 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14122 { (exit 1); exit 1; }; }
14124 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14129 pgac_cv_alignof_double=0
14132 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14133 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14134 cat >>confdefs.h <<_ACEOF
14135 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14140 # Compute maximum alignment of any basic type.
14141 # We assume long's alignment is at least as strong as char, short, or int;
14142 # but we must check long long (if it exists) and double.
14144 MAX_ALIGNOF=$pgac_cv_alignof_long
14145 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14146 MAX_ALIGNOF=$pgac_cv_alignof_double
14148 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14149 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14152 cat >>confdefs.h <<_ACEOF
14153 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14158 # Some platforms predefine the types int8, int16, etc. Only check
14159 # a (hopefully) representative subset.
14160 echo "$as_me:$LINENO: checking for int8" >&5
14161 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14162 if test "${ac_cv_type_int8+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 cat >conftest.$ac_ext <<_ACEOF
14166 #line $LINENO "configure"
14167 #include "confdefs.h"
14169 #ifdef HAVE_SUPPORTDEFS_H
14170 #include <SupportDefs.h>
14173 #ifdef F77_DUMMY_MAIN
14174 # ifdef __cplusplus
14177 int F77_DUMMY_MAIN() { return 1; }
14190 rm -f conftest.$ac_objext
14191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14192 (eval $ac_compile) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -s conftest.$ac_objext'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14202 ac_cv_type_int8=yes
14204 echo "$as_me: failed program was:" >&5
14205 cat conftest.$ac_ext >&5
14208 rm -f conftest.$ac_objext conftest.$ac_ext
14210 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14211 echo "${ECHO_T}$ac_cv_type_int8" >&6
14212 if test $ac_cv_type_int8 = yes; then
14214 cat >>confdefs.h <<_ACEOF
14215 #define HAVE_INT8 1
14220 echo "$as_me:$LINENO: checking for uint8" >&5
14221 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14222 if test "${ac_cv_type_uint8+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 cat >conftest.$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14227 #include "confdefs.h"
14229 #ifdef HAVE_SUPPORTDEFS_H
14230 #include <SupportDefs.h>
14233 #ifdef F77_DUMMY_MAIN
14234 # ifdef __cplusplus
14237 int F77_DUMMY_MAIN() { return 1; }
14244 if (sizeof (uint8))
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); } &&
14256 { ac_try='test -s conftest.$ac_objext'
14257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258 (eval $ac_try) 2>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); }; }; then
14262 ac_cv_type_uint8=yes
14264 echo "$as_me: failed program was:" >&5
14265 cat conftest.$ac_ext >&5
14266 ac_cv_type_uint8=no
14268 rm -f conftest.$ac_objext conftest.$ac_ext
14270 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14271 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14272 if test $ac_cv_type_uint8 = yes; then
14274 cat >>confdefs.h <<_ACEOF
14275 #define HAVE_UINT8 1
14280 echo "$as_me:$LINENO: checking for int64" >&5
14281 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14282 if test "${ac_cv_type_int64+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 cat >conftest.$ac_ext <<_ACEOF
14286 #line $LINENO "configure"
14287 #include "confdefs.h"
14289 #ifdef HAVE_SUPPORTDEFS_H
14290 #include <SupportDefs.h>
14293 #ifdef F77_DUMMY_MAIN
14294 # ifdef __cplusplus
14297 int F77_DUMMY_MAIN() { return 1; }
14304 if (sizeof (int64))
14310 rm -f conftest.$ac_objext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14312 (eval $ac_compile) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } &&
14316 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_type_int64=yes
14324 echo "$as_me: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 ac_cv_type_int64=no
14328 rm -f conftest.$ac_objext conftest.$ac_ext
14330 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14331 echo "${ECHO_T}$ac_cv_type_int64" >&6
14332 if test $ac_cv_type_int64 = yes; then
14334 cat >>confdefs.h <<_ACEOF
14335 #define HAVE_INT64 1
14340 echo "$as_me:$LINENO: checking for uint64" >&5
14341 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14342 if test "${ac_cv_type_uint64+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 cat >conftest.$ac_ext <<_ACEOF
14346 #line $LINENO "configure"
14347 #include "confdefs.h"
14349 #ifdef HAVE_SUPPORTDEFS_H
14350 #include <SupportDefs.h>
14353 #ifdef F77_DUMMY_MAIN
14354 # ifdef __cplusplus
14357 int F77_DUMMY_MAIN() { return 1; }
14364 if (sizeof (uint64))
14370 rm -f conftest.$ac_objext
14371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14372 (eval $ac_compile) 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } &&
14376 { ac_try='test -s conftest.$ac_objext'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_cv_type_uint64=yes
14384 echo "$as_me: failed program was:" >&5
14385 cat conftest.$ac_ext >&5
14386 ac_cv_type_uint64=no
14388 rm -f conftest.$ac_objext conftest.$ac_ext
14390 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14391 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14392 if test $ac_cv_type_uint64 = yes; then
14394 cat >>confdefs.h <<_ACEOF
14395 #define HAVE_UINT64 1
14402 # We also check for sig_atomic_t, which *should* be defined per ANSI
14403 # C, but is missing on some old platforms.
14404 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14405 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14406 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 cat >conftest.$ac_ext <<_ACEOF
14410 #line $LINENO "configure"
14411 #include "confdefs.h"
14412 #include <signal.h>
14414 #ifdef F77_DUMMY_MAIN
14415 # ifdef __cplusplus
14418 int F77_DUMMY_MAIN() { return 1; }
14423 if ((sig_atomic_t *) 0)
14425 if (sizeof (sig_atomic_t))
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433 (eval $ac_compile) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
14437 { ac_try='test -s conftest.$ac_objext'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_cv_type_sig_atomic_t=yes
14445 echo "$as_me: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14447 ac_cv_type_sig_atomic_t=no
14449 rm -f conftest.$ac_objext conftest.$ac_ext
14451 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14452 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14453 if test $ac_cv_type_sig_atomic_t = yes; then
14455 cat >>confdefs.h <<_ACEOF
14456 #define HAVE_SIG_ATOMIC_T 1
14464 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14465 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14466 if test "${pgac_cv_func_posix_signals+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 #include "confdefs.h"
14472 #include <signal.h>
14474 #ifdef F77_DUMMY_MAIN
14475 # ifdef __cplusplus
14478 int F77_DUMMY_MAIN() { return 1; }
14483 struct sigaction act, oact;
14484 sigemptyset(&act.sa_mask);
14485 act.sa_flags = SA_RESTART;
14486 sigaction(0, &act, &oact);
14491 rm -f conftest.$ac_objext conftest$ac_exeext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14493 (eval $ac_link) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } &&
14497 { ac_try='test -s conftest$ac_exeext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 pgac_cv_func_posix_signals=yes
14505 echo "$as_me: failed program was:" >&5
14506 cat conftest.$ac_ext >&5
14507 pgac_cv_func_posix_signals=no
14509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14511 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14512 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14513 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14515 cat >>confdefs.h <<\_ACEOF
14516 #define HAVE_POSIX_SIGNALS
14520 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14522 if test $ac_cv_func_fseeko = yes; then
14523 # Check whether --enable-largefile or --disable-largefile was given.
14524 if test "${enable_largefile+set}" = set; then
14525 enableval="$enable_largefile"
14528 if test "$enable_largefile" != no; then
14530 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14531 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14532 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14535 ac_cv_sys_largefile_CC=no
14536 if test "$GCC" != yes; then
14539 # IRIX 6.2 and later do not support large files by default,
14540 # so use the C compiler's -n32 option if that helps.
14541 cat >conftest.$ac_ext <<_ACEOF
14542 #line $LINENO "configure"
14543 #include "confdefs.h"
14544 #include <sys/types.h>
14545 /* Check that off_t can represent 2**63 - 1 correctly.
14546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14547 since some C++ compilers masquerading as C compilers
14548 incorrectly reject 9223372036854775807. */
14549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14551 && LARGE_OFF_T % 2147483647 == 1)
14553 #ifdef F77_DUMMY_MAIN
14554 # ifdef __cplusplus
14557 int F77_DUMMY_MAIN() { return 1; }
14567 rm -f conftest.$ac_objext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14569 (eval $ac_compile) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try='test -s conftest.$ac_objext'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14581 echo "$as_me: failed program was:" >&5
14582 cat conftest.$ac_ext >&5
14584 rm -f conftest.$ac_objext
14586 rm -f conftest.$ac_objext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588 (eval $ac_compile) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -s conftest.$ac_objext'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_cv_sys_largefile_CC=' -n32'; break
14600 echo "$as_me: failed program was:" >&5
14601 cat conftest.$ac_ext >&5
14603 rm -f conftest.$ac_objext
14607 rm -f conftest.$ac_ext
14610 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14611 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14612 if test "$ac_cv_sys_largefile_CC" != no; then
14613 CC=$CC$ac_cv_sys_largefile_CC
14616 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14617 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14618 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14622 ac_cv_sys_file_offset_bits=no
14623 cat >conftest.$ac_ext <<_ACEOF
14624 #line $LINENO "configure"
14625 #include "confdefs.h"
14626 #include <sys/types.h>
14627 /* Check that off_t can represent 2**63 - 1 correctly.
14628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14629 since some C++ compilers masquerading as C compilers
14630 incorrectly reject 9223372036854775807. */
14631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14633 && LARGE_OFF_T % 2147483647 == 1)
14635 #ifdef F77_DUMMY_MAIN
14636 # ifdef __cplusplus
14639 int F77_DUMMY_MAIN() { return 1; }
14649 rm -f conftest.$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651 (eval $ac_compile) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } &&
14655 { ac_try='test -s conftest.$ac_objext'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14663 echo "$as_me: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
14666 rm -f conftest.$ac_objext conftest.$ac_ext
14667 cat >conftest.$ac_ext <<_ACEOF
14668 #line $LINENO "configure"
14669 #include "confdefs.h"
14670 #define _FILE_OFFSET_BITS 64
14671 #include <sys/types.h>
14672 /* Check that off_t can represent 2**63 - 1 correctly.
14673 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14674 since some C++ compilers masquerading as C compilers
14675 incorrectly reject 9223372036854775807. */
14676 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14677 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14678 && LARGE_OFF_T % 2147483647 == 1)
14680 #ifdef F77_DUMMY_MAIN
14681 # ifdef __cplusplus
14684 int F77_DUMMY_MAIN() { return 1; }
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_cv_sys_file_offset_bits=64; break
14708 echo "$as_me: failed program was:" >&5
14709 cat conftest.$ac_ext >&5
14711 rm -f conftest.$ac_objext conftest.$ac_ext
14715 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14716 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14717 if test "$ac_cv_sys_file_offset_bits" != no; then
14719 cat >>confdefs.h <<_ACEOF
14720 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14725 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14726 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14727 if test "${ac_cv_sys_large_files+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 ac_cv_sys_large_files=no
14732 cat >conftest.$ac_ext <<_ACEOF
14733 #line $LINENO "configure"
14734 #include "confdefs.h"
14735 #include <sys/types.h>
14736 /* Check that off_t can represent 2**63 - 1 correctly.
14737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14738 since some C++ compilers masquerading as C compilers
14739 incorrectly reject 9223372036854775807. */
14740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14742 && LARGE_OFF_T % 2147483647 == 1)
14744 #ifdef F77_DUMMY_MAIN
14745 # ifdef __cplusplus
14748 int F77_DUMMY_MAIN() { return 1; }
14758 rm -f conftest.$ac_objext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14760 (eval $ac_compile) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -s conftest.$ac_objext'
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14772 echo "$as_me: failed program was:" >&5
14773 cat conftest.$ac_ext >&5
14775 rm -f conftest.$ac_objext conftest.$ac_ext
14776 cat >conftest.$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14778 #include "confdefs.h"
14779 #define _LARGE_FILES 1
14780 #include <sys/types.h>
14781 /* Check that off_t can represent 2**63 - 1 correctly.
14782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14783 since some C++ compilers masquerading as C compilers
14784 incorrectly reject 9223372036854775807. */
14785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14787 && LARGE_OFF_T % 2147483647 == 1)
14789 #ifdef F77_DUMMY_MAIN
14790 # ifdef __cplusplus
14793 int F77_DUMMY_MAIN() { return 1; }
14803 rm -f conftest.$ac_objext
14804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14805 (eval $ac_compile) 2>&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -s conftest.$ac_objext'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 ac_cv_sys_large_files=1; break
14817 echo "$as_me: failed program was:" >&5
14818 cat conftest.$ac_ext >&5
14820 rm -f conftest.$ac_objext conftest.$ac_ext
14824 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14825 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14826 if test "$ac_cv_sys_large_files" != no; then
14828 cat >>confdefs.h <<_ACEOF
14829 #define _LARGE_FILES $ac_cv_sys_large_files
14839 # Select semaphore implementation type.
14840 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
14842 cat >>confdefs.h <<\_ACEOF
14843 #define USE_NAMED_POSIX_SEMAPHORES 1
14846 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14848 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
14850 cat >>confdefs.h <<\_ACEOF
14851 #define USE_UNNAMED_POSIX_SEMAPHORES 1
14854 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14857 cat >>confdefs.h <<\_ACEOF
14858 #define USE_SYSV_SEMAPHORES 1
14861 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
14866 # Select shared-memory implementation type.
14868 cat >>confdefs.h <<\_ACEOF
14869 #define USE_SYSV_SHARED_MEMORY 1
14872 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
14875 if test "$enable_nls" = yes ; then
14877 echo "$as_me:$LINENO: checking for library containing gettext" >&5
14878 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
14879 if test "${ac_cv_search_gettext+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 ac_func_search_save_LIBS=$LIBS
14883 ac_cv_search_gettext=no
14884 cat >conftest.$ac_ext <<_ACEOF
14885 #line $LINENO "configure"
14886 #include "confdefs.h"
14888 /* Override any gcc2 internal prototype to avoid an error. */
14892 /* We use char because int might match the return type of a gcc2
14893 builtin and then its argument prototype would still apply. */
14895 #ifdef F77_DUMMY_MAIN
14896 # ifdef __cplusplus
14899 int F77_DUMMY_MAIN() { return 1; }
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14911 (eval $ac_link) 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -s conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 ac_cv_search_gettext="none required"
14923 echo "$as_me: failed program was:" >&5
14924 cat conftest.$ac_ext >&5
14926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14927 if test "$ac_cv_search_gettext" = no; then
14928 for ac_lib in intl; do
14929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14930 cat >conftest.$ac_ext <<_ACEOF
14931 #line $LINENO "configure"
14932 #include "confdefs.h"
14934 /* Override any gcc2 internal prototype to avoid an error. */
14938 /* We use char because int might match the return type of a gcc2
14939 builtin and then its argument prototype would still apply. */
14941 #ifdef F77_DUMMY_MAIN
14942 # ifdef __cplusplus
14945 int F77_DUMMY_MAIN() { return 1; }
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14957 (eval $ac_link) 2>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try='test -s conftest$ac_exeext'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 ac_cv_search_gettext="-l$ac_lib"
14970 echo "$as_me: failed program was:" >&5
14971 cat conftest.$ac_ext >&5
14973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14976 LIBS=$ac_func_search_save_LIBS
14978 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
14979 echo "${ECHO_T}$ac_cv_search_gettext" >&6
14980 if test "$ac_cv_search_gettext" != no; then
14981 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
14984 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
14985 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
14986 { (exit 1); exit 1; }; }
14989 if test "${ac_cv_header_libintl_h+set}" = set; then
14990 echo "$as_me:$LINENO: checking for libintl.h" >&5
14991 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14992 if test "${ac_cv_header_libintl_h+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14996 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14998 # Is the header compilable?
14999 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15000 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15001 cat >conftest.$ac_ext <<_ACEOF
15002 #line $LINENO "configure"
15003 #include "confdefs.h"
15004 $ac_includes_default
15005 #include <libintl.h>
15007 rm -f conftest.$ac_objext
15008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15009 (eval $ac_compile) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); } &&
15013 { ac_try='test -s conftest.$ac_objext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_header_compiler=yes
15021 echo "$as_me: failed program was:" >&5
15022 cat conftest.$ac_ext >&5
15023 ac_header_compiler=no
15025 rm -f conftest.$ac_objext conftest.$ac_ext
15026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15027 echo "${ECHO_T}$ac_header_compiler" >&6
15029 # Is the header present?
15030 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15031 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15032 cat >conftest.$ac_ext <<_ACEOF
15033 #line $LINENO "configure"
15034 #include "confdefs.h"
15035 #include <libintl.h>
15037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15040 egrep -v '^ *\+' conftest.er1 >conftest.err
15042 cat conftest.err >&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } >/dev/null; then
15045 if test -s conftest.err; then
15046 ac_cpp_err=$ac_c_preproc_warn_flag
15053 if test -z "$ac_cpp_err"; then
15054 ac_header_preproc=yes
15056 echo "$as_me: failed program was:" >&5
15057 cat conftest.$ac_ext >&5
15058 ac_header_preproc=no
15060 rm -f conftest.err conftest.$ac_ext
15061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15062 echo "${ECHO_T}$ac_header_preproc" >&6
15064 # So? What about this header?
15065 case $ac_header_compiler:$ac_header_preproc in
15067 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15068 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15069 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15070 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15072 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15073 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15074 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15075 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15077 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15079 echo "$as_me:$LINENO: checking for libintl.h" >&5
15080 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15081 if test "${ac_cv_header_libintl_h+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 ac_cv_header_libintl_h=$ac_header_preproc
15086 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15087 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15090 if test $ac_cv_header_libintl_h = yes; then
15093 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15094 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15095 { (exit 1); exit 1; }; }
15099 for ac_prog in msgfmt
15101 # Extract the first word of "$ac_prog", so it can be a program name with args.
15102 set dummy $ac_prog; ac_word=$2
15103 echo "$as_me:$LINENO: checking for $ac_word" >&5
15104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15105 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 if test -n "$MSGFMT"; then
15109 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112 for as_dir in $PATH
15115 test -z "$as_dir" && as_dir=.
15116 for ac_exec_ext in '' $ac_executable_extensions; do
15117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118 ac_cv_prog_MSGFMT="$ac_prog"
15119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15127 MSGFMT=$ac_cv_prog_MSGFMT
15128 if test -n "$MSGFMT"; then
15129 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15130 echo "${ECHO_T}$MSGFMT" >&6
15132 echo "$as_me:$LINENO: result: no" >&5
15133 echo "${ECHO_T}no" >&6
15136 test -n "$MSGFMT" && break
15139 if test -z "$MSGFMT"; then
15140 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15141 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15142 { (exit 1); exit 1; }; }
15144 for ac_prog in msgmerge
15146 # Extract the first word of "$ac_prog", so it can be a program name with args.
15147 set dummy $ac_prog; ac_word=$2
15148 echo "$as_me:$LINENO: checking for $ac_word" >&5
15149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15150 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15153 if test -n "$MSGMERGE"; then
15154 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15157 for as_dir in $PATH
15160 test -z "$as_dir" && as_dir=.
15161 for ac_exec_ext in '' $ac_executable_extensions; do
15162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15163 ac_cv_prog_MSGMERGE="$ac_prog"
15164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15172 MSGMERGE=$ac_cv_prog_MSGMERGE
15173 if test -n "$MSGMERGE"; then
15174 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15175 echo "${ECHO_T}$MSGMERGE" >&6
15177 echo "$as_me:$LINENO: result: no" >&5
15178 echo "${ECHO_T}no" >&6
15181 test -n "$MSGMERGE" && break
15184 for ac_prog in xgettext
15186 # Extract the first word of "$ac_prog", so it can be a program name with args.
15187 set dummy $ac_prog; ac_word=$2
15188 echo "$as_me:$LINENO: checking for $ac_word" >&5
15189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15190 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 if test -n "$XGETTEXT"; then
15194 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15197 for as_dir in $PATH
15200 test -z "$as_dir" && as_dir=.
15201 for ac_exec_ext in '' $ac_executable_extensions; do
15202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15203 ac_cv_prog_XGETTEXT="$ac_prog"
15204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15212 XGETTEXT=$ac_cv_prog_XGETTEXT
15213 if test -n "$XGETTEXT"; then
15214 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15215 echo "${ECHO_T}$XGETTEXT" >&6
15217 echo "$as_me:$LINENO: result: no" >&5
15218 echo "${ECHO_T}no" >&6
15221 test -n "$XGETTEXT" && break
15225 # Note: share/locale is always the default, independent of $datadir
15226 localedir='${prefix}/share/locale'
15227 if test x"$prefix" = x"NONE"; then
15228 exp_localedir="$ac_default_prefix/share/locale"
15230 exp_localedir="$prefix/share/locale"
15235 cat >>confdefs.h <<_ACEOF
15236 #define LOCALEDIR "$exp_localedir"
15242 # Check for Tcl configuration script tclConfig.sh
15243 if test "$with_tcl" = yes; then
15244 for ac_prog in tclsh tcl
15246 # Extract the first word of "$ac_prog", so it can be a program name with args.
15247 set dummy $ac_prog; ac_word=$2
15248 echo "$as_me:$LINENO: checking for $ac_word" >&5
15249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15250 if test "${ac_cv_path_TCLSH+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15259 for as_dir in $PATH
15262 test -z "$as_dir" && as_dir=.
15263 for ac_exec_ext in '' $ac_executable_extensions; do
15264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15265 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15275 TCLSH=$ac_cv_path_TCLSH
15277 if test -n "$TCLSH"; then
15278 echo "$as_me:$LINENO: result: $TCLSH" >&5
15279 echo "${ECHO_T}$TCLSH" >&6
15281 echo "$as_me:$LINENO: result: no" >&5
15282 echo "${ECHO_T}no" >&6
15285 test -n "$TCLSH" && break
15288 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15289 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15290 # Let user override test
15291 if test -z "$TCL_CONFIG_SH"; then
15292 pgac_test_dirs="$with_tclconfig"
15294 set X $pgac_test_dirs; shift
15295 if test $# -eq 0; then
15296 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15297 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15298 { (exit 1); exit 1; }; }
15299 set X `echo 'puts $auto_path' | $TCLSH`; shift
15303 if test -r "$pgac_dir/tclConfig.sh"; then
15304 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15310 if test -z "$TCL_CONFIG_SH"; then
15311 echo "$as_me:$LINENO: result: no" >&5
15312 echo "${ECHO_T}no" >&6
15313 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15314 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15315 { (exit 1); exit 1; }; }
15317 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15318 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15324 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15325 eval TCL_LIBS=\"$TCL_LIBS\"
15326 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15327 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15331 # Check for Tk configuration script tkConfig.sh
15332 if test "$with_tk" = yes; then
15333 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15334 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15335 # Let user override test
15336 if test -z "$TK_CONFIG_SH"; then
15337 pgac_test_dirs="$with_tkconfig $with_tclconfig"
15339 set X $pgac_test_dirs; shift
15340 if test $# -eq 0; then
15341 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15342 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15343 { (exit 1); exit 1; }; }
15344 set X `echo 'puts $auto_path' | $TCLSH`; shift
15348 if test -r "$pgac_dir/tkConfig.sh"; then
15349 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15355 if test -z "$TK_CONFIG_SH"; then
15356 echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15358 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15359 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15360 { (exit 1); exit 1; }; }
15362 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15363 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15369 eval TK_LIBS=\"$TK_LIBS\"
15370 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15371 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15377 # Check for DocBook and tools
15379 for ac_prog in onsgmls nsgmls
15381 # Extract the first word of "$ac_prog", so it can be a program name with args.
15382 set dummy $ac_prog; ac_word=$2
15383 echo "$as_me:$LINENO: checking for $ac_word" >&5
15384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15385 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 if test -n "$NSGMLS"; then
15389 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15392 for as_dir in $PATH
15395 test -z "$as_dir" && as_dir=.
15396 for ac_exec_ext in '' $ac_executable_extensions; do
15397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15398 ac_cv_prog_NSGMLS="$ac_prog"
15399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15407 NSGMLS=$ac_cv_prog_NSGMLS
15408 if test -n "$NSGMLS"; then
15409 echo "$as_me:$LINENO: result: $NSGMLS" >&5
15410 echo "${ECHO_T}$NSGMLS" >&6
15412 echo "$as_me:$LINENO: result: no" >&5
15413 echo "${ECHO_T}no" >&6
15416 test -n "$NSGMLS" && break
15419 for ac_prog in openjade jade
15421 # Extract the first word of "$ac_prog", so it can be a program name with args.
15422 set dummy $ac_prog; ac_word=$2
15423 echo "$as_me:$LINENO: checking for $ac_word" >&5
15424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15425 if test "${ac_cv_prog_JADE+set}" = set; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 if test -n "$JADE"; then
15429 ac_cv_prog_JADE="$JADE" # Let the user override the test.
15431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15432 for as_dir in $PATH
15435 test -z "$as_dir" && as_dir=.
15436 for ac_exec_ext in '' $ac_executable_extensions; do
15437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15438 ac_cv_prog_JADE="$ac_prog"
15439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15447 JADE=$ac_cv_prog_JADE
15448 if test -n "$JADE"; then
15449 echo "$as_me:$LINENO: result: $JADE" >&5
15450 echo "${ECHO_T}$JADE" >&6
15452 echo "$as_me:$LINENO: result: no" >&5
15453 echo "${ECHO_T}no" >&6
15456 test -n "$JADE" && break
15460 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15461 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15462 if test "${pgac_cv_check_docbook+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 cat >conftest.sgml <<EOF
15466 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15468 <title>test</title>
15470 <title>random</title>
15472 <title>testsect</title>
15479 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15480 if test $? -eq 0; then
15481 pgac_cv_check_docbook=yes
15483 pgac_cv_check_docbook=no
15485 rm -f conftest.sgml
15487 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15488 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15490 have_docbook=$pgac_cv_check_docbook
15493 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15494 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15495 if test "${pgac_cv_path_stylesheets+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 if test -n "$DOCBOOKSTYLE"; then
15499 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15501 for pgac_prefix in /usr /usr/local /opt; do
15502 for pgac_infix in share lib; do
15503 for pgac_postfix in \
15504 sgml/stylesheets/nwalsh-modular \
15505 sgml/stylesheets/docbook \
15506 sgml/docbook/dsssl/modular \
15507 sgml/docbook/stylesheet/dsssl/modular \
15508 sgml/docbook/dsssl-stylesheets
15510 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15511 if test -r "$pgac_candidate/html/docbook.dsl" \
15512 && test -r "$pgac_candidate/print/docbook.dsl"
15514 pgac_cv_path_stylesheets=$pgac_candidate
15523 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15525 if test -n "$DOCBOOKSTYLE"; then
15526 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15527 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15529 echo "$as_me:$LINENO: result: no" >&5
15530 echo "${ECHO_T}no" >&6
15532 if test -n "$DOCBOOKSTYLE"; then
15533 for ac_prog in collateindex.pl
15535 # Extract the first word of "$ac_prog", so it can be a program name with args.
15536 set dummy $ac_prog; ac_word=$2
15537 echo "$as_me:$LINENO: checking for $ac_word" >&5
15538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15539 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15540 echo $ECHO_N "(cached) $ECHO_C" >&6
15542 case $COLLATEINDEX in
15544 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15548 for as_dir in $DOCBOOKSTYLE/bin $PATH
15551 test -z "$as_dir" && as_dir=.
15552 for ac_exec_ext in '' $ac_executable_extensions; do
15553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15554 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15564 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15566 if test -n "$COLLATEINDEX"; then
15567 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15568 echo "${ECHO_T}$COLLATEINDEX" >&6
15570 echo "$as_me:$LINENO: result: no" >&5
15571 echo "${ECHO_T}no" >&6
15574 test -n "$COLLATEINDEX" && break
15578 for ac_prog in collateindex.pl
15580 # Extract the first word of "$ac_prog", so it can be a program name with args.
15581 set dummy $ac_prog; ac_word=$2
15582 echo "$as_me:$LINENO: checking for $ac_word" >&5
15583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15584 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15585 echo $ECHO_N "(cached) $ECHO_C" >&6
15587 case $COLLATEINDEX in
15589 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15593 for as_dir in $PATH
15596 test -z "$as_dir" && as_dir=.
15597 for ac_exec_ext in '' $ac_executable_extensions; do
15598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15599 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15609 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15611 if test -n "$COLLATEINDEX"; then
15612 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15613 echo "${ECHO_T}$COLLATEINDEX" >&6
15615 echo "$as_me:$LINENO: result: no" >&5
15616 echo "${ECHO_T}no" >&6
15619 test -n "$COLLATEINDEX" && break
15623 for ac_prog in sgmlspl
15625 # Extract the first word of "$ac_prog", so it can be a program name with args.
15626 set dummy $ac_prog; ac_word=$2
15627 echo "$as_me:$LINENO: checking for $ac_word" >&5
15628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15629 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 if test -n "$SGMLSPL"; then
15633 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15636 for as_dir in $PATH
15639 test -z "$as_dir" && as_dir=.
15640 for ac_exec_ext in '' $ac_executable_extensions; do
15641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15642 ac_cv_prog_SGMLSPL="$ac_prog"
15643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15651 SGMLSPL=$ac_cv_prog_SGMLSPL
15652 if test -n "$SGMLSPL"; then
15653 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15654 echo "${ECHO_T}$SGMLSPL" >&6
15656 echo "$as_me:$LINENO: result: no" >&5
15657 echo "${ECHO_T}no" >&6
15660 test -n "$SGMLSPL" && break
15665 # prepare build tree if outside source tree
15666 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15667 # Note 2: /bin/pwd might be better than shell's built-in at getting
15668 # a symlink-free name.
15669 if test "$no_create" != yes; then
15670 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15675 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15676 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15677 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15678 || { { echo "$as_me:$LINENO: error: failed" >&5
15679 echo "$as_me: error: failed" >&2;}
15680 { (exit 1); exit 1; }; }
15681 echo "$as_me:$LINENO: result: done" >&5
15682 echo "${ECHO_T}done" >&6
15687 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15690 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}"
15693 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15696 cat >confcache <<\_ACEOF
15697 # This file is a shell script that caches the results of configure
15698 # tests run on this system so they can be shared between configure
15699 # scripts and configure runs, see configure's option --config-cache.
15700 # It is not useful on other systems. If it contains results you don't
15701 # want to keep, you may remove or edit it.
15703 # config.status only pays attention to the cache file if you give it
15704 # the --recheck option to rerun configure.
15706 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15708 # following values.
15712 # The following way of writing the cache mishandles newlines in values,
15713 # but we know of no workaround that is simple, portable, and efficient.
15714 # So, don't put newlines in cache variables' values.
15715 # Ultrix sh set writes to stderr and can't be redirected directly,
15716 # and sets the high bit in the cache file unless we assign to the vars.
15719 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15721 # `set' does not quote correctly, so add quotes (double-quote
15722 # substitution turns \\\\ into \\, and sed turns \\ into \).
15725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15728 # `set' quotes correctly as required by POSIX, so do not add quotes.
15730 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15739 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15741 if cmp -s $cache_file confcache; then :; else
15742 if test -w $cache_file; then
15743 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15744 cat confcache >$cache_file
15746 echo "not updating unwritable cache $cache_file"
15751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15752 # Let make expand exec_prefix.
15753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15755 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15756 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15757 # trailing colons and then remove the whole line if VPATH becomes empty
15758 # (actually we leave an empty line to preserve line numbers).
15759 if test "x$srcdir" = x.; then
15760 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15761 s/:*\$(srcdir):*/:/;
15762 s/:*\${srcdir}:*/:/;
15764 s/^\([^=]*=[ ]*\):*/\1/;
15770 DEFS=-DHAVE_CONFIG_H
15773 : ${CONFIG_STATUS=./config.status}
15774 ac_clean_files_save=$ac_clean_files
15775 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15776 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15777 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15778 cat >$CONFIG_STATUS <<_ACEOF
15780 # Generated by $as_me.
15781 # Run this file to recreate the current configuration.
15782 # Compiler output produced by configure, useful for debugging
15783 # configure, is in config.log if it exists.
15786 SHELL=\${CONFIG_SHELL-$SHELL}
15789 cat >>$CONFIG_STATUS <<\_ACEOF
15791 ## --------------------- ##
15792 ## M4sh Initialization. ##
15793 ## --------------------- ##
15795 # Be Bourne compatible
15796 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15799 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15804 # Support unset when possible.
15805 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15811 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15812 { $as_unset LANG || test "${LANG+set}" != set; } ||
15813 { LANG=C; export LANG; }
15814 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15815 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15816 { LC_ALL=C; export LC_ALL; }
15817 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15818 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15819 { LC_TIME=C; export LC_TIME; }
15820 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15821 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15822 { LC_CTYPE=C; export LC_CTYPE; }
15823 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15824 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15825 { LANGUAGE=C; export LANGUAGE; }
15826 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15827 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15828 { LC_COLLATE=C; export LC_COLLATE; }
15829 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15830 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15831 { LC_NUMERIC=C; export LC_NUMERIC; }
15832 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15833 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15834 { LC_MESSAGES=C; export LC_MESSAGES; }
15837 # Name of the executable.
15838 as_me=`(basename "$0") 2>/dev/null ||
15839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15840 X"$0" : 'X\(//\)$' \| \
15841 X"$0" : 'X\(/\)$' \| \
15842 . : '\(.\)' 2>/dev/null ||
15844 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15845 /^X\/\(\/\/\)$/{ s//\1/; q; }
15846 /^X\/\(\/\).*/{ s//\1/; q; }
15849 # PATH needs CR, and LINENO needs CR and PATH.
15850 # Avoid depending upon Character Ranges.
15851 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15852 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15853 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15854 as_cr_digits='0123456789'
15855 as_cr_alnum=$as_cr_Letters$as_cr_digits
15857 # The user is always right.
15858 if test "${PATH_SEPARATOR+set}" != set; then
15859 echo "#! /bin/sh" >conftest.sh
15860 echo "exit 0" >>conftest.sh
15861 chmod +x conftest.sh
15862 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
15871 as_lineno_1=$LINENO
15872 as_lineno_2=$LINENO
15873 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15874 test "x$as_lineno_1" != "x$as_lineno_2" &&
15875 test "x$as_lineno_3" = "x$as_lineno_2" || {
15876 # Find who we are. Look in the path if we contain no path at all
15879 *[\\/]* ) as_myself=$0 ;;
15880 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15881 for as_dir in $PATH
15884 test -z "$as_dir" && as_dir=.
15885 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15890 # We did not find ourselves, most probably we were run as `sh COMMAND'
15891 # in which case we are not to be found in the path.
15892 if test "x$as_myself" = x; then
15895 if test ! -f "$as_myself"; then
15896 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15897 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15898 { (exit 1); exit 1; }; }
15900 case $CONFIG_SHELL in
15902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15903 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15906 test -z "$as_dir" && as_dir=.
15907 for as_base in sh bash ksh sh5; do
15910 if ("$as_dir/$as_base" -c '
15911 as_lineno_1=$LINENO
15912 as_lineno_2=$LINENO
15913 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15914 test "x$as_lineno_1" != "x$as_lineno_2" &&
15915 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15916 CONFIG_SHELL=$as_dir/$as_base
15917 export CONFIG_SHELL
15918 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15926 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15927 # uniformly replaced by the line number. The first 'sed' inserts a
15928 # line-number line before each line; the second 'sed' does the real
15929 # work. The second script uses 'N' to pair each line-number line
15930 # with the numbered line, and appends trailing '-' during
15931 # substitution so that $LINENO is not a special case at line end.
15932 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15933 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15934 sed '=' <$as_myself |
15939 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15942 s,^['$as_cr_digits']*\n,,
15943 ' >$as_me.lineno &&
15944 chmod +x $as_me.lineno ||
15945 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15946 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15947 { (exit 1); exit 1; }; }
15949 # Don't try to exec as it changes $[0], causing all sort of problems
15950 # (the dirname of $[0] is not the place where we might find the
15951 # original and so on. Autoconf is especially sensible to this).
15953 # Exit status is that of the last command.
15958 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15959 *c*,-n*) ECHO_N= ECHO_C='
15961 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15962 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15965 if expr a : '\(a\)' >/dev/null 2>&1; then
15971 rm -f conf$$ conf$$.exe conf$$.file
15973 if ln -s conf$$.file conf$$ 2>/dev/null; then
15974 # We could just check for DJGPP; but this test a) works b) is more generic
15975 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15976 if test -f conf$$.exe; then
15977 # Don't use ln at all; we don't have any links
15982 elif ln conf$$.file conf$$ 2>/dev/null; then
15987 rm -f conf$$ conf$$.exe conf$$.file
15989 as_executable_p="test -f"
15991 # Sed expression to map a string onto a valid CPP name.
15992 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15994 # Sed expression to map a string onto a valid variable name.
15995 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15999 # We need space, tab and new line, in precisely that order.
16005 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16009 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16010 # report actual input values of CONFIG_FILES etc. instead of their
16011 # values after options handling. Logging --version etc. is OK.
16015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16016 ## Running $as_me. ##
16021 This file was extended by PostgreSQL $as_me 7.3devel, which was
16022 generated by GNU Autoconf 2.53. Invocation command line was
16024 CONFIG_FILES = $CONFIG_FILES
16025 CONFIG_HEADERS = $CONFIG_HEADERS
16026 CONFIG_LINKS = $CONFIG_LINKS
16027 CONFIG_COMMANDS = $CONFIG_COMMANDS
16031 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16035 # Files that config.status was made for.
16036 if test -n "$ac_config_files"; then
16037 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16040 if test -n "$ac_config_headers"; then
16041 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16044 if test -n "$ac_config_links"; then
16045 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16048 if test -n "$ac_config_commands"; then
16049 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16052 cat >>$CONFIG_STATUS <<\_ACEOF
16055 \`$as_me' instantiates files from templates according to the
16056 current configuration.
16058 Usage: $0 [OPTIONS] [FILE]...
16060 -h, --help print this help, then exit
16061 -V, --version print version number, then exit
16062 -d, --debug don't remove temporary files
16063 --recheck update $as_me by reconfiguring in the same conditions
16064 --file=FILE[:TEMPLATE]
16065 instantiate the configuration file FILE
16066 --header=FILE[:TEMPLATE]
16067 instantiate the configuration header FILE
16069 Configuration files:
16072 Configuration headers:
16075 Configuration links:
16078 Report bugs to <bug-autoconf@gnu.org>."
16081 cat >>$CONFIG_STATUS <<_ACEOF
16083 PostgreSQL config.status 7.3devel
16084 configured by $0, generated by GNU Autoconf 2.53,
16085 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16087 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16088 Free Software Foundation, Inc.
16089 This config.status script is free software; the Free Software Foundation
16090 gives unlimited permission to copy, distribute and modify it."
16094 cat >>$CONFIG_STATUS <<\_ACEOF
16095 # If no file are specified by the user, then we need to provide default
16096 # value. By we need to know if files were specified by the user.
16102 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16103 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16105 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16109 *) # This is not an option, so the user has probably given explicit
16111 ac_need_defaults=false;;
16115 # Handling of the options.
16117 cat >>$CONFIG_STATUS <<_ACEOF
16118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16119 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16120 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16122 cat >>$CONFIG_STATUS <<\_ACEOF
16123 --version | --vers* | -V )
16124 echo "$ac_cs_version"; exit 0 ;;
16126 # Conflict between --help and --header
16127 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16128 Try \`$0 --help' for more information." >&5
16129 echo "$as_me: error: ambiguous option: $1
16130 Try \`$0 --help' for more information." >&2;}
16131 { (exit 1); exit 1; }; };;
16132 --help | --hel | -h )
16133 echo "$ac_cs_usage"; exit 0 ;;
16134 --debug | --d* | -d )
16136 --file | --fil | --fi | --f )
16138 CONFIG_FILES="$CONFIG_FILES $1"
16139 ac_need_defaults=false;;
16140 --header | --heade | --head | --hea )
16142 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16143 ac_need_defaults=false;;
16145 # This is an error.
16146 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16147 Try \`$0 --help' for more information." >&5
16148 echo "$as_me: error: unrecognized option: $1
16149 Try \`$0 --help' for more information." >&2;}
16150 { (exit 1); exit 1; }; } ;;
16152 *) ac_config_targets="$ac_config_targets $1" ;;
16164 cat >>$CONFIG_STATUS <<\_ACEOF
16165 for ac_config_target in $ac_config_targets
16167 case "$ac_config_target" in
16168 # Handling of arguments.
16169 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16170 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16171 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16172 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16173 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16174 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16175 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16176 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16177 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16178 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16179 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16180 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16181 { (exit 1); exit 1; }; };;
16185 # If the user did not use the arguments to specify the items to instantiate,
16186 # then the envvar interface is used. Set only those that are not.
16187 # We use the long form for the default assignment because of an extremely
16188 # bizarre bug on SunOS 4.1.3.
16189 if $ac_need_defaults; then
16190 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16191 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16192 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16195 # Create a temporary directory, and hook for its removal unless debugging.
16198 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16199 trap '{ (exit 1); exit 1; }' 1 2 13 15
16202 # Create a (secure) tmp directory for tmp files.
16205 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16206 test -n "$tmp" && test -d "$tmp"
16209 tmp=$TMPDIR/cs$$-$RANDOM
16210 (umask 077 && mkdir $tmp)
16213 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16214 { (exit 1); exit 1; }
16219 cat >>$CONFIG_STATUS <<_ACEOF
16222 # CONFIG_FILES section.
16225 # No need to generate the scripts if there are no CONFIG_FILES.
16226 # This happens for instance when ./config.status config.h
16227 if test -n "\$CONFIG_FILES"; then
16228 # Protect against being on the right side of a sed subst in config.status.
16229 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16230 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16231 s,@SHELL@,$SHELL,;t t
16232 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16233 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16234 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16235 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16236 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16237 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16238 s,@exec_prefix@,$exec_prefix,;t t
16239 s,@prefix@,$prefix,;t t
16240 s,@program_transform_name@,$program_transform_name,;t t
16241 s,@bindir@,$bindir,;t t
16242 s,@sbindir@,$sbindir,;t t
16243 s,@libexecdir@,$libexecdir,;t t
16244 s,@datadir@,$datadir,;t t
16245 s,@sysconfdir@,$sysconfdir,;t t
16246 s,@sharedstatedir@,$sharedstatedir,;t t
16247 s,@localstatedir@,$localstatedir,;t t
16248 s,@libdir@,$libdir,;t t
16249 s,@includedir@,$includedir,;t t
16250 s,@oldincludedir@,$oldincludedir,;t t
16251 s,@infodir@,$infodir,;t t
16252 s,@mandir@,$mandir,;t t
16253 s,@build_alias@,$build_alias,;t t
16254 s,@host_alias@,$host_alias,;t t
16255 s,@target_alias@,$target_alias,;t t
16256 s,@DEFS@,$DEFS,;t t
16257 s,@ECHO_C@,$ECHO_C,;t t
16258 s,@ECHO_N@,$ECHO_N,;t t
16259 s,@ECHO_T@,$ECHO_T,;t t
16260 s,@LIBS@,$LIBS,;t t
16261 s,@docdir@,$docdir,;t t
16262 s,@configure_args@,$configure_args,;t t
16263 s,@build@,$build,;t t
16264 s,@build_cpu@,$build_cpu,;t t
16265 s,@build_vendor@,$build_vendor,;t t
16266 s,@build_os@,$build_os,;t t
16267 s,@host@,$host,;t t
16268 s,@host_cpu@,$host_cpu,;t t
16269 s,@host_vendor@,$host_vendor,;t t
16270 s,@host_os@,$host_os,;t t
16271 s,@PORTNAME@,$PORTNAME,;t t
16273 s,@MULTIBYTE@,$MULTIBYTE,;t t
16274 s,@enable_nls@,$enable_nls,;t t
16275 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16276 s,@default_port@,$default_port,;t t
16277 s,@enable_shared@,$enable_shared,;t t
16278 s,@enable_rpath@,$enable_rpath,;t t
16279 s,@enable_debug@,$enable_debug,;t t
16281 s,@CFLAGS@,$CFLAGS,;t t
16282 s,@LDFLAGS@,$LDFLAGS,;t t
16283 s,@CPPFLAGS@,$CPPFLAGS,;t t
16284 s,@ac_ct_CC@,$ac_ct_CC,;t t
16285 s,@EXEEXT@,$EXEEXT,;t t
16286 s,@OBJEXT@,$OBJEXT,;t t
16289 s,@autodepend@,$autodepend,;t t
16290 s,@INCLUDES@,$INCLUDES,;t t
16291 s,@with_tcl@,$with_tcl,;t t
16292 s,@with_tk@,$with_tk,;t t
16293 s,@with_perl@,$with_perl,;t t
16294 s,@with_python@,$with_python,;t t
16296 s,@with_java@,$with_java,;t t
16297 s,@with_krb4@,$with_krb4,;t t
16298 s,@with_krb5@,$with_krb5,;t t
16299 s,@krb_srvtab@,$krb_srvtab,;t t
16300 s,@with_pam@,$with_pam,;t t
16301 s,@with_openssl@,$with_openssl,;t t
16302 s,@ELF_SYS@,$ELF_SYS,;t t
16304 s,@FLEX@,$FLEX,;t t
16305 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16306 s,@LN_S@,$LN_S,;t t
16308 s,@with_gnu_ld@,$with_gnu_ld,;t t
16309 s,@ld_R_works@,$ld_R_works,;t t
16310 s,@RANLIB@,$RANLIB,;t t
16311 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16312 s,@LORDER@,$LORDER,;t t
16314 s,@STRIP@,$STRIP,;t t
16315 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16316 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16317 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16318 s,@YACC@,$YACC,;t t
16319 s,@YFLAGS@,$YFLAGS,;t t
16320 s,@WISH@,$WISH,;t t
16321 s,@PERL@,$PERL,;t t
16322 s,@perl_installsitearch@,$perl_installsitearch,;t t
16323 s,@perl_installman3dir@,$perl_installman3dir,;t t
16324 s,@perl_archlibexp@,$perl_archlibexp,;t t
16325 s,@perl_privlibexp@,$perl_privlibexp,;t t
16326 s,@perl_useshrplib@,$perl_useshrplib,;t t
16327 s,@perl_man3ext@,$perl_man3ext,;t t
16328 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16329 s,@PYTHON@,$PYTHON,;t t
16330 s,@python_version@,$python_version,;t t
16331 s,@python_prefix@,$python_prefix,;t t
16332 s,@python_execprefix@,$python_execprefix,;t t
16333 s,@python_configdir@,$python_configdir,;t t
16334 s,@python_moduledir@,$python_moduledir,;t t
16335 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16336 s,@python_includespec@,$python_includespec,;t t
16337 s,@python_libspec@,$python_libspec,;t t
16338 s,@LIBOBJS@,$LIBOBJS,;t t
16339 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16340 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16341 s,@MSGFMT@,$MSGFMT,;t t
16342 s,@MSGMERGE@,$MSGMERGE,;t t
16343 s,@XGETTEXT@,$XGETTEXT,;t t
16344 s,@localedir@,$localedir,;t t
16345 s,@TCLSH@,$TCLSH,;t t
16346 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16347 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16348 s,@TCL_LIBS@,$TCL_LIBS,;t t
16349 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16350 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16351 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16352 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16353 s,@TK_LIBS@,$TK_LIBS,;t t
16354 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16355 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16356 s,@NSGMLS@,$NSGMLS,;t t
16357 s,@JADE@,$JADE,;t t
16358 s,@have_docbook@,$have_docbook,;t t
16359 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16360 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16361 s,@SGMLSPL@,$SGMLSPL,;t t
16362 s,@vpath_build@,$vpath_build,;t t
16367 cat >>$CONFIG_STATUS <<\_ACEOF
16368 # Split the substitutions into bite-sized pieces for seds with
16369 # small command number limits, like on Digital OSF/1 and HP-UX.
16370 ac_max_sed_lines=48
16371 ac_sed_frag=1 # Number of current file.
16372 ac_beg=1 # First line for current file.
16373 ac_end=$ac_max_sed_lines # Line after last line for current file.
16376 while $ac_more_lines; do
16377 if test $ac_beg -gt 1; then
16378 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16380 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16382 if test ! -s $tmp/subs.frag; then
16383 ac_more_lines=false
16385 # The purpose of the label and of the branching condition is to
16386 # speed up the sed processing (if there are no `@' at all, there
16387 # is no need to browse any of the substitutions).
16388 # These are the two extra sed commands mentioned above.
16390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16391 if test -z "$ac_sed_cmds"; then
16392 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16394 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16396 ac_sed_frag=`expr $ac_sed_frag + 1`
16398 ac_end=`expr $ac_end + $ac_max_sed_lines`
16401 if test -z "$ac_sed_cmds"; then
16404 fi # test -n "$CONFIG_FILES"
16407 cat >>$CONFIG_STATUS <<\_ACEOF
16408 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16409 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16411 - | *:- | *:-:* ) # input from stdin
16413 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16414 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16415 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16417 * ) ac_file_in=$ac_file.in ;;
16420 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16421 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16423 X"$ac_file" : 'X\(//\)[^/]' \| \
16424 X"$ac_file" : 'X\(//\)$' \| \
16425 X"$ac_file" : 'X\(/\)' \| \
16426 . : '\(.\)' 2>/dev/null ||
16428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16429 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16430 /^X\(\/\/\)$/{ s//\1/; q; }
16431 /^X\(\/\).*/{ s//\1/; q; }
16433 { case "$ac_dir" in
16434 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16438 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16439 case $as_mkdir_dir in
16440 # Skip DOS drivespec
16441 ?:) as_incr_dir=$as_mkdir_dir ;;
16443 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16444 test -d "$as_incr_dir" ||
16445 mkdir "$as_incr_dir" ||
16446 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16447 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16448 { (exit 1); exit 1; }; }
16455 if test "$ac_dir" != .; then
16456 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16457 # A "../" for each directory in $ac_dir_suffix.
16458 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16460 ac_dir_suffix= ac_top_builddir=
16464 .) # No --srcdir option. We are building in place.
16466 if test -z "$ac_top_builddir"; then
16469 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16471 [\\/]* | ?:[\\/]* ) # Absolute path.
16472 ac_srcdir=$srcdir$ac_dir_suffix;
16473 ac_top_srcdir=$srcdir ;;
16474 *) # Relative path.
16475 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16476 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16478 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16480 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16481 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16482 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16483 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16487 if test x"$ac_file" != x-; then
16488 { echo "$as_me:$LINENO: creating $ac_file" >&5
16489 echo "$as_me: creating $ac_file" >&6;}
16492 # Let's still pretend it is `configure' which instantiates (i.e., don't
16493 # use $as_me), people would be surprised to read:
16494 # /* config.h. Generated by config.status. */
16495 if test x"$ac_file" = x-; then
16498 configure_input="$ac_file. "
16500 configure_input=$configure_input"Generated from `echo $ac_file_in |
16501 sed 's,.*/,,'` by configure."
16503 # First look for the input files in the build tree, otherwise in the
16505 ac_file_inputs=`IFS=:
16506 for f in $ac_file_in; do
16508 -) echo $tmp/stdin ;;
16510 # Absolute (can't be DOS-style, as IFS=:)
16511 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16512 echo "$as_me: error: cannot find input file: $f" >&2;}
16513 { (exit 1); exit 1; }; }
16516 if test -f "$f"; then
16519 elif test -f "$srcdir/$f"; then
16524 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16525 echo "$as_me: error: cannot find input file: $f" >&2;}
16526 { (exit 1); exit 1; }; }
16529 done` || { (exit 1); exit 1; }
16531 cat >>$CONFIG_STATUS <<_ACEOF
16535 cat >>$CONFIG_STATUS <<\_ACEOF
16537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16538 s,@configure_input@,$configure_input,;t t
16539 s,@srcdir@,$ac_srcdir,;t t
16540 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16541 s,@top_srcdir@,$ac_top_srcdir,;t t
16542 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16543 s,@builddir@,$ac_builddir,;t t
16544 s,@abs_builddir@,$ac_abs_builddir,;t t
16545 s,@top_builddir@,$ac_top_builddir,;t t
16546 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16547 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16549 if test x"$ac_file" != x-; then
16550 mv $tmp/out $ac_file
16558 cat >>$CONFIG_STATUS <<\_ACEOF
16561 # CONFIG_HEADER section.
16564 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16565 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16567 # ac_d sets the value in "#define NAME VALUE" lines.
16568 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16569 ac_dB='[ ].*$,\1#\2'
16572 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16573 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16574 ac_uB='$,\1#\2define\3'
16578 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16579 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16581 - | *:- | *:-:* ) # input from stdin
16583 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16584 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16585 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16587 * ) ac_file_in=$ac_file.in ;;
16590 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16591 echo "$as_me: creating $ac_file" >&6;}
16593 # First look for the input files in the build tree, otherwise in the
16595 ac_file_inputs=`IFS=:
16596 for f in $ac_file_in; do
16598 -) echo $tmp/stdin ;;
16600 # Absolute (can't be DOS-style, as IFS=:)
16601 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16602 echo "$as_me: error: cannot find input file: $f" >&2;}
16603 { (exit 1); exit 1; }; }
16606 if test -f "$f"; then
16609 elif test -f "$srcdir/$f"; then
16614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16615 echo "$as_me: error: cannot find input file: $f" >&2;}
16616 { (exit 1); exit 1; }; }
16619 done` || { (exit 1); exit 1; }
16620 # Remove the trailing spaces.
16621 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16625 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16626 # `conftest.undefs', that substitutes the proper values into
16627 # config.h.in to produce config.h. The first handles `#define'
16628 # templates, and the second `#undef' templates.
16629 # And first: Protect against being on the right side of a sed subst in
16630 # config.status. Protect against being in an unquoted here document
16631 # in config.status.
16632 rm -f conftest.defines conftest.undefs
16633 # Using a here document instead of a string reduces the quoting nightmare.
16634 # Putting comments in sed scripts is not portable.
16636 # `end' is used to avoid that the second main sed command (meant for
16637 # 0-ary CPP macros) applies to n-ary macro definitions.
16638 # See the Autoconf documentation for `clear'.
16639 cat >confdef2sed.sed <<\_ACEOF
16644 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16646 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16649 # If some macros were called several times there might be several times
16650 # the same #defines, which is useless. Nevertheless, we may not want to
16651 # sort them, since we want the *last* AC-DEFINE to be honored.
16652 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16653 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16654 rm -f confdef2sed.sed
16656 # This sed command replaces #undef with comments. This is necessary, for
16657 # example, in the case of _POSIX_SOURCE, which is predefined and required
16658 # on some systems where configure will not decide to define it.
16659 cat >>conftest.undefs <<\_ACEOF
16660 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16663 # Break up conftest.defines because some shells have a limit on the size
16664 # of here documents, and old seds have small limits too (100 cmds).
16665 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16666 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16667 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16668 echo ' :' >>$CONFIG_STATUS
16669 rm -f conftest.tail
16670 while grep . conftest.defines >/dev/null
16672 # Write a limited-size here document to $tmp/defines.sed.
16673 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16674 # Speed up: don't consider the non `#define' lines.
16675 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16676 # Work around the forget-to-reset-the-flag bug.
16677 echo 't clr' >>$CONFIG_STATUS
16678 echo ': clr' >>$CONFIG_STATUS
16679 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16681 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16683 mv $tmp/out $tmp/in
16685 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16686 rm -f conftest.defines
16687 mv conftest.tail conftest.defines
16689 rm -f conftest.defines
16690 echo ' fi # egrep' >>$CONFIG_STATUS
16691 echo >>$CONFIG_STATUS
16693 # Break up conftest.undefs because some shells have a limit on the size
16694 # of here documents, and old seds have small limits too (100 cmds).
16695 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16696 rm -f conftest.tail
16697 while grep . conftest.undefs >/dev/null
16699 # Write a limited-size here document to $tmp/undefs.sed.
16700 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16701 # Speed up: don't consider the non `#undef'
16702 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16703 # Work around the forget-to-reset-the-flag bug.
16704 echo 't clr' >>$CONFIG_STATUS
16705 echo ': clr' >>$CONFIG_STATUS
16706 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16710 mv $tmp/out $tmp/in
16712 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16713 rm -f conftest.undefs
16714 mv conftest.tail conftest.undefs
16716 rm -f conftest.undefs
16718 cat >>$CONFIG_STATUS <<\_ACEOF
16719 # Let's still pretend it is `configure' which instantiates (i.e., don't
16720 # use $as_me), people would be surprised to read:
16721 # /* config.h. Generated by config.status. */
16722 if test x"$ac_file" = x-; then
16723 echo "/* Generated by configure. */" >$tmp/config.h
16725 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16727 cat $tmp/in >>$tmp/config.h
16729 if test x"$ac_file" != x-; then
16730 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16732 echo "$as_me: $ac_file is unchanged" >&6;}
16734 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16736 X"$ac_file" : 'X\(//\)[^/]' \| \
16737 X"$ac_file" : 'X\(//\)$' \| \
16738 X"$ac_file" : 'X\(/\)' \| \
16739 . : '\(.\)' 2>/dev/null ||
16741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16743 /^X\(\/\/\)$/{ s//\1/; q; }
16744 /^X\(\/\).*/{ s//\1/; q; }
16746 { case "$ac_dir" in
16747 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16751 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16752 case $as_mkdir_dir in
16753 # Skip DOS drivespec
16754 ?:) as_incr_dir=$as_mkdir_dir ;;
16756 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16757 test -d "$as_incr_dir" ||
16758 mkdir "$as_incr_dir" ||
16759 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16760 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16761 { (exit 1); exit 1; }; }
16767 mv $tmp/config.h $ac_file
16771 rm -f $tmp/config.h
16773 # Run the commands associated with the file.
16775 src/include/pg_config.h )
16776 # Update timestamp for pg_config.h (see Makefile.global)
16777 echo >src/include/stamp-h
16782 cat >>$CONFIG_STATUS <<\_ACEOF
16785 # CONFIG_LINKS section.
16788 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16789 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16790 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16792 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16793 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16795 if test ! -r $srcdir/$ac_source; then
16796 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16797 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16798 { (exit 1); exit 1; }; }
16802 # Make relative symlinks.
16803 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16804 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16805 X"$ac_dest" : 'X\(//\)[^/]' \| \
16806 X"$ac_dest" : 'X\(//\)$' \| \
16807 X"$ac_dest" : 'X\(/\)' \| \
16808 . : '\(.\)' 2>/dev/null ||
16810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16812 /^X\(\/\/\)$/{ s//\1/; q; }
16813 /^X\(\/\).*/{ s//\1/; q; }
16815 { case "$ac_dest_dir" in
16816 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16819 as_dummy="$ac_dest_dir"
16820 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16821 case $as_mkdir_dir in
16822 # Skip DOS drivespec
16823 ?:) as_incr_dir=$as_mkdir_dir ;;
16825 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16826 test -d "$as_incr_dir" ||
16827 mkdir "$as_incr_dir" ||
16828 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
16829 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
16830 { (exit 1); exit 1; }; }
16837 if test "$ac_dest_dir" != .; then
16838 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16839 # A "../" for each directory in $ac_dir_suffix.
16840 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16842 ac_dir_suffix= ac_top_builddir=
16846 .) # No --srcdir option. We are building in place.
16848 if test -z "$ac_top_builddir"; then
16851 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16853 [\\/]* | ?:[\\/]* ) # Absolute path.
16854 ac_srcdir=$srcdir$ac_dir_suffix;
16855 ac_top_srcdir=$srcdir ;;
16856 *) # Relative path.
16857 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16858 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16860 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
16862 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
16863 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
16864 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
16865 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
16869 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16870 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16873 # Make a symlink if possible; otherwise try a hard link.
16874 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16875 ln $srcdir/$ac_source $ac_dest ||
16876 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
16877 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
16878 { (exit 1); exit 1; }; }
16882 cat >>$CONFIG_STATUS <<\_ACEOF
16884 { (exit 0); exit 0; }
16886 chmod +x $CONFIG_STATUS
16887 ac_clean_files=$ac_clean_files_save
16890 # configure is writing to config.log, and then calls config.status.
16891 # config.status does its own redirection, appending to config.log.
16892 # Unfortunately, on DOS this fails, as config.log is still kept open
16893 # by configure, so config.status won't be able to write to it; its
16894 # output is simply discarded. So we exec the FD to /dev/null,
16895 # effectively closing config.log, so it can be properly (re)opened and
16896 # appended to by config.status. When coming back to configure, we
16897 # need to make the FD available again.
16898 if test "$no_create" != yes; then
16901 $SHELL $CONFIG_STATUS || ac_cs_success=false
16903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16904 # would make configure fail if this is the last instruction.
16905 $ac_cs_success || { (exit 1); exit 1; }