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_CXX_set=${CXX+set}
761 ac_env_CXX_value=$CXX
762 ac_cv_env_CXX_set=${CXX+set}
763 ac_cv_env_CXX_value=$CXX
764 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
765 ac_env_CXXFLAGS_value=$CXXFLAGS
766 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
767 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
768 ac_env_CXXCPP_set=${CXXCPP+set}
769 ac_env_CXXCPP_value=$CXXCPP
770 ac_cv_env_CXXCPP_set=${CXXCPP+set}
771 ac_cv_env_CXXCPP_value=$CXXCPP
772 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
773 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
774 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
775 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures PostgreSQL 7.3devel to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of PostgreSQL 7.3devel:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-integer-datetimes enable 64-bit integer date/time support
853 --enable-recode enable character set recode support
854 --enable-multibyte enable multibyte character support
855 --enable-nls[=LANGUAGES] enable Native Language Support
856 --disable-shared do not build shared libraries
857 --disable-rpath do not embed shared library search path in executables
858 --enable-debug build with debugging symbols (-g)
859 --enable-depend turn on automatic dependency tracking
860 --enable-cassert enable assertion checks (for debugging)
861 --enable-odbc build the ODBC driver package
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-includes=DIRS look for additional header files in DIRS
868 --with-libraries=DIRS look for additional libraries in DIRS
869 --with-libs=DIRS alternative spelling of --with-libraries
870 --with-pgport=PORTNUM change default port number 5432
871 --with-maxbackends=N set default maximum number of connections 32
872 --with-tcl build Tcl and Tk interfaces
873 --without-tk do not build Tk interfaces if Tcl is enabled
874 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
875 --with-tkconfig=DIR tkConfig.sh is in DIR
876 --with-perl build Perl interface and PL/Perl
877 --with-python build Python interface module
878 --with-java build JDBC interface and Java tools
879 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
880 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
881 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
882 --with-pam build with PAM support
883 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
884 --without-readline do not use Readline
885 --without-zlib do not use Zlib
886 --with-unixodbc build ODBC driver for unixODBC
887 --with-iodbc build ODBC driver for iODBC
888 --with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
889 --with-CXX build C++ modules (libpq++)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
892 Some influential environment variables:
893 CC C compiler command
894 CFLAGS C compiler flags
895 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
896 nonstandard directory <lib dir>
897 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
898 headers in a nonstandard directory <include dir>
900 CXX C++ compiler command
901 CXXFLAGS C++ compiler flags
902 CXXCPP C++ preprocessor
904 location of DocBook stylesheets
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
909 Report bugs to <pgsql-bugs@postgresql.org>.
913 if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
920 if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925 ac_dir_suffix= ac_top_builddir=
929 .) # No --srcdir option. We are building in place.
931 if test -z "$ac_top_builddir"; then
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
943 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
945 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
946 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
947 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
948 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
951 # Check for guested configure; otherwise get Cygnus style configure.
952 if test -f $ac_srcdir/configure.gnu; then
954 $SHELL $ac_srcdir/configure.gnu --help=recursive
955 elif test -f $ac_srcdir/configure; then
957 $SHELL $ac_srcdir/configure --help=recursive
958 elif test -f $ac_srcdir/configure.ac ||
959 test -f $ac_srcdir/configure.in; then
963 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 test -n "$ac_init_help" && exit 0
970 if $ac_init_version; then
972 PostgreSQL configure 7.3devel
973 generated by GNU Autoconf 2.53
975 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
976 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
980 Copyright 2002 PostgreSQL Global Development Group
986 This file contains any messages produced by compilers while
987 running configure, to aid debugging if configure makes a mistake.
989 It was created by PostgreSQL $as_me 7.3devel, which was
990 generated by GNU Autoconf 2.53. Invocation command line was
1001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1013 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 test -z "$as_dir" && as_dir=.
1025 echo "PATH: $as_dir"
1040 # Keep a trace of the command line.
1041 # Strip out --no-create and --no-recursion so they do not pile up.
1042 # Also quote any args containing shell meta-characters.
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n ) continue ;;
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 case " $ac_configure_args " in
1057 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1058 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1061 # Get rid of the leading space.
1064 # When interrupted or exit'd, cleanup temporary files, and complete
1065 # config.log. We remove comments because anyway the quotes in there
1066 # would cause problems or look ugly.
1067 # WARNING: Be sure not to use single quotes in there, as some shells,
1068 # such as our DU 5.0 friend, will then `close' the trap.
1069 trap 'exit_status=$?
1070 # Save into config.log some information that might help in debugging.
1074 ## ---------------- ##
1075 ## Cache variables. ##
1076 ## ---------------- ##
1079 # The following way of writing the cache mishandles newlines in values,
1082 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1085 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 if test -s confdefs.h; then
1102 sed "/^$/d" confdefs.h
1105 test "$ac_signal" != 0 &&
1106 echo "$as_me: caught signal $ac_signal"
1107 echo "$as_me: exit $exit_status"
1109 rm -f core core.* *.core &&
1110 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1113 for ac_signal in 1 2 13 15; do
1114 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1118 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1119 rm -rf conftest* confdefs.h
1120 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1123 # Predefined preprocessor variables.
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_NAME "$PACKAGE_NAME"
1130 cat >>confdefs.h <<_ACEOF
1131 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_STRING "$PACKAGE_STRING"
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1150 # Let the site file select an alternate cache file if it wants to.
1151 # Prefer explicitly selected file to automatically selected ones.
1152 if test -z "$CONFIG_SITE"; then
1153 if test "x$prefix" != xNONE; then
1154 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1156 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1159 for ac_site_file in $CONFIG_SITE; do
1160 if test -r "$ac_site_file"; then
1161 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1162 echo "$as_me: loading site script $ac_site_file" >&6;}
1163 sed 's/^/| /' "$ac_site_file" >&5
1168 if test -r "$cache_file"; then
1169 # Some versions of bash will fail to source /dev/null (special
1170 # files actually), so we avoid doing that.
1171 if test -f "$cache_file"; then
1172 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1173 echo "$as_me: loading cache $cache_file" >&6;}
1175 [\\/]* | ?:[\\/]* ) . $cache_file;;
1176 *) . ./$cache_file;;
1180 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1181 echo "$as_me: creating cache $cache_file" >&6;}
1185 # Check that the precious variables saved in the cache have kept the same
1187 ac_cache_corrupted=false
1188 for ac_var in `(set) 2>&1 |
1189 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1190 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1191 eval ac_new_set=\$ac_env_${ac_var}_set
1192 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1193 eval ac_new_val="\$ac_env_${ac_var}_value"
1194 case $ac_old_set,$ac_new_set in
1196 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1198 ac_cache_corrupted=: ;;
1200 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1201 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1202 ac_cache_corrupted=: ;;
1205 if test "x$ac_old_val" != "x$ac_new_val"; then
1206 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1207 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1208 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1209 echo "$as_me: former value: $ac_old_val" >&2;}
1210 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1211 echo "$as_me: current value: $ac_new_val" >&2;}
1212 ac_cache_corrupted=:
1215 # Pass precious variables to config.status.
1216 if test "$ac_new_set" = set; then
1218 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1219 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1220 *) ac_arg=$ac_var=$ac_new_val ;;
1222 case " $ac_configure_args " in
1223 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1224 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1228 if $ac_cache_corrupted; then
1229 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1230 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1231 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1232 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1233 { (exit 1); exit 1; }; }
1237 ac_cpp='$CPP $CPPFLAGS'
1238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1275 for ac_dir in config $srcdir/config; do
1276 if test -f $ac_dir/install-sh; then
1278 ac_install_sh="$ac_aux_dir/install-sh -c"
1280 elif test -f $ac_dir/install.sh; then
1282 ac_install_sh="$ac_aux_dir/install.sh -c"
1284 elif test -f $ac_dir/shtool; then
1286 ac_install_sh="$ac_aux_dir/shtool install -c"
1290 if test -z "$ac_aux_dir"; then
1291 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1293 { (exit 1); exit 1; }; }
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300 configure_args=$ac_configure_args
1304 cat >>confdefs.h <<_ACEOF
1305 #define PG_VERSION "$PACKAGE_VERSION"
1309 # Make sure we can run config.sub.
1310 $ac_config_sub sun4 >/dev/null 2>&1 ||
1311 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1312 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1313 { (exit 1); exit 1; }; }
1315 echo "$as_me:$LINENO: checking build system type" >&5
1316 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1317 if test "${ac_cv_build+set}" = set; then
1318 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 ac_cv_build_alias=$build_alias
1321 test -z "$ac_cv_build_alias" &&
1322 ac_cv_build_alias=`$ac_config_guess`
1323 test -z "$ac_cv_build_alias" &&
1324 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1325 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1326 { (exit 1); exit 1; }; }
1327 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1334 echo "${ECHO_T}$ac_cv_build" >&6
1336 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1341 echo "$as_me:$LINENO: checking host system type" >&5
1342 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1343 if test "${ac_cv_host+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 ac_cv_host_alias=$host_alias
1347 test -z "$ac_cv_host_alias" &&
1348 ac_cv_host_alias=$ac_cv_build_alias
1349 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1350 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1351 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1352 { (exit 1); exit 1; }; }
1355 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1356 echo "${ECHO_T}$ac_cv_host" >&6
1358 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1365 echo "$as_me:$LINENO: checking which template to use" >&5
1366 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1371 # Check whether --with-template or --without-template was given.
1372 if test "${with_template+set}" = set; then
1373 withval="$with_template"
1377 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1378 echo "$as_me: error: argument required for --with-template option" >&2;}
1379 { (exit 1); exit 1; }; }
1382 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1383 echo "$as_me: error: argument required for --with-template option" >&2;}
1384 { (exit 1); exit 1; }; }
1389 list) echo; ls "$srcdir/src/template"; exit;;
1390 *) if test -f "$srcdir/src/template/$with_template" ; then
1393 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1394 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1395 { (exit 1); exit 1; }; }
1404 # --with-template not given
1407 aix*) template=aix ;;
1408 beos*) template=beos ;;
1409 bsdi*) template=bsdi ;;
1410 cygwin*) template=win ;;
1411 darwin*) template=darwin ;;
1412 dgux*) template=dgux ;;
1413 freebsd*) template=freebsd ;;
1414 hpux*) template=hpux ;;
1415 irix*) template=irix5 ;;
1416 linux*) template=linux ;;
1417 netbsd*) template=netbsd ;;
1418 nextstep*) template=nextstep ;;
1419 openbsd*) template=openbsd ;;
1420 osf*) template=osf ;;
1421 qnx*) template=qnx4 ;;
1422 sco*) template=sco ;;
1423 solaris*) template=solaris ;;
1424 sunos*) template=sunos4 ;;
1426 case $host_vendor in
1427 univel) template=univel ;;
1429 sysv4*) template=svr4 ;;
1430 sysv5*) template=unixware ;;
1431 ultrix*) template=ultrix4 ;;
1434 if test x"$template" = x"" ; then
1435 { { echo "$as_me:$LINENO: error:
1436 *******************************************************************
1437 PostgreSQL has apparently not been ported to your platform yet.
1438 To try a manual configuration, look into the src/template directory
1439 for a similar platform and use the '--with-template=' option.
1441 Please also contact <pgsql-ports@postgresql.org> to see about
1442 rectifying this. Include the above 'checking host system type...'
1444 *******************************************************************
1446 echo "$as_me: error:
1447 *******************************************************************
1448 PostgreSQL has apparently not been ported to your platform yet.
1449 To try a manual configuration, look into the src/template directory
1450 for a similar platform and use the '--with-template=' option.
1452 Please also contact <pgsql-ports@postgresql.org> to see about
1453 rectifying this. Include the above 'checking host system type...'
1455 *******************************************************************
1457 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $template" >&5
1465 echo "${ECHO_T}$template" >&6
1470 # Pick right test-and-set (TAS) code. Most platforms have inline
1471 # assembler code in src/include/storage/s_lock.h, so we just use
1472 # a dummy file here.
1474 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1475 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1476 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1477 *) need_tas=no; tas_file=dummy.s ;;
1479 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1482 if test "$need_tas" = yes ; then
1490 ## Command line options
1495 # Add non-standard directories to the include path
1500 # Check whether --with-includes or --without-includes was given.
1501 if test "${with_includes+set}" = set; then
1502 withval="$with_includes"
1506 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1507 echo "$as_me: error: argument required for --with-includes option" >&2;}
1508 { (exit 1); exit 1; }; }
1511 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1512 echo "$as_me: error: argument required for --with-includes option" >&2;}
1513 { (exit 1); exit 1; }; }
1525 # Add non-standard directories to the library search path
1530 # Check whether --with-libraries or --without-libraries was given.
1531 if test "${with_libraries+set}" = set; then
1532 withval="$with_libraries"
1536 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1537 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1538 { (exit 1); exit 1; }; }
1541 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1542 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1543 { (exit 1); exit 1; }; }
1546 LIBRARY_DIRS=$withval
1556 # Check whether --with-libs or --without-libs was given.
1557 if test "${with_libs+set}" = set; then
1558 withval="$with_libs"
1562 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1563 echo "$as_me: error: argument required for --with-libs option" >&2;}
1564 { (exit 1); exit 1; }; }
1567 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1568 echo "$as_me: error: argument required for --with-libs option" >&2;}
1569 { (exit 1); exit 1; }; }
1572 LIBRARY_DIRS=$withval
1581 # 64-bit integer date/time storage (--enable-integer-datetimes)
1583 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1584 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1587 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1588 if test "${enable_integer_datetimes+set}" = set; then
1589 enableval="$enable_integer_datetimes"
1594 cat >>confdefs.h <<\_ACEOF
1595 #define USE_INTEGER_DATETIMES 1
1603 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1604 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1605 { (exit 1); exit 1; }; }
1610 enable_integer_datetimes=no
1614 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1615 echo "${ECHO_T}$enable_integer_datetimes" >&6
1618 # Character set recode (--enable-recode)
1620 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1621 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1624 # Check whether --enable-recode or --disable-recode was given.
1625 if test "${enable_recode+set}" = set; then
1626 enableval="$enable_recode"
1631 cat >>confdefs.h <<\_ACEOF
1632 #define CYR_RECODE 1
1640 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1641 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1642 { (exit 1); exit 1; }; }
1651 echo "$as_me:$LINENO: result: $enable_recode" >&5
1652 echo "${ECHO_T}$enable_recode" >&6
1659 echo "$as_me:$LINENO: checking whether to build with multibyte character support" >&5
1660 echo $ECHO_N "checking whether to build with multibyte character support... $ECHO_C" >&6
1664 # Check whether --enable-multibyte or --disable-multibyte was given.
1665 if test "${enable_multibyte+set}" = set; then
1666 enableval="$enable_multibyte"
1676 enable_multibyte=yes
1679 SQL_ASCII|EUC_JP|EUC_CN|EUC_KR|EUC_TW|JOHAB|UNICODE|MULE_INTERNAL|LATIN1|LATIN2|LATIN3|LATIN4|LATIN5|LATIN6|LATIN7|LATIN8|LATIN9|LATIN10|WIN1256|TCVN|WIN874|KOI8|WIN|ALT|ISO_8859_5|ISO_8859_6|ISO_8859_7|ISO_8859_8)
1680 MULTIBYTE=$enableval;;
1682 { { echo "$as_me:$LINENO: error: argument to --enable-multibyte must be one of:
1683 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1684 UNICODE, MULE_INTERNAL,
1685 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1686 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1687 WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1688 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1689 Or do not specify an argument to the option to use the default." >&5
1690 echo "$as_me: error: argument to --enable-multibyte must be one of:
1691 SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, JOHAB,
1692 UNICODE, MULE_INTERNAL,
1693 LATIN1, LATIN2, LATIN3, LATIN4, LATIN5,
1694 LATIN6, LATIN7, LATIN8, LATIN9, LATIN10,
1695 WIN1256, TCVN, WIN874, KOI8, WIN, ALT,
1696 ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8
1697 Or do not specify an argument to the option to use the default." >&2;}
1698 { (exit 1); exit 1; }; };;
1709 if test "$enable_multibyte" = yes; then
1712 cat >>confdefs.h <<\_ACEOF
1716 echo "$as_me:$LINENO: result: yes, default $MULTIBYTE" >&5
1717 echo "${ECHO_T}yes, default $MULTIBYTE" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1730 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1731 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1734 # Check whether --enable-nls or --disable-nls was given.
1735 if test "${enable_nls+set}" = set; then
1736 enableval="$enable_nls"
1747 WANTED_LANGUAGES=$enableval
1756 if test "$enable_nls" = yes; then
1758 cat >>confdefs.h <<\_ACEOF
1759 #define ENABLE_NLS 1
1764 echo "$as_me:$LINENO: result: $enable_nls" >&5
1765 echo "${ECHO_T}$enable_nls" >&6
1770 # Default port number (--with-pgport), default 5432
1772 echo "$as_me:$LINENO: checking for default port number" >&5
1773 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1777 # Check whether --with-pgport or --without-pgport was given.
1778 if test "${with_pgport+set}" = set; then
1779 withval="$with_pgport"
1783 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1784 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1785 { (exit 1); exit 1; }; }
1788 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1789 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1790 { (exit 1); exit 1; }; }
1793 default_port=$withval
1801 echo "$as_me:$LINENO: result: $default_port" >&5
1802 echo "${ECHO_T}$default_port" >&6
1803 # Need both of these because some places want an integer and some a string
1805 cat >>confdefs.h <<_ACEOF
1806 #define DEF_PGPORT ${default_port}
1810 cat >>confdefs.h <<_ACEOF
1811 #define DEF_PGPORT_STR "${default_port}"
1817 # Maximum number of allowed connections (--with-maxbackends), default 32
1819 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1820 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1824 # Check whether --with-maxbackends or --without-maxbackends was given.
1825 if test "${with_maxbackends+set}" = set; then
1826 withval="$with_maxbackends"
1830 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1831 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1832 { (exit 1); exit 1; }; }
1835 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1836 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1837 { (exit 1); exit 1; }; }
1848 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1849 echo "${ECHO_T}$with_maxbackends" >&6
1851 cat >>confdefs.h <<_ACEOF
1852 #define DEF_MAXBACKENDS $with_maxbackends
1858 # Option to disable shared libraries
1862 # Check whether --enable-shared or --disable-shared was given.
1863 if test "${enable_shared+set}" = set; then
1864 enableval="$enable_shared"
1874 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1875 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1876 { (exit 1); exit 1; }; }
1888 # '-rpath'-like feature can be disabled
1892 # Check whether --enable-rpath or --disable-rpath was given.
1893 if test "${enable_rpath+set}" = set; then
1894 enableval="$enable_rpath"
1904 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1905 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1906 { (exit 1); exit 1; }; }
1919 # --enable-debug adds -g to compiler flags
1923 # Check whether --enable-debug or --disable-debug was given.
1924 if test "${enable_debug+set}" = set; then
1925 enableval="$enable_debug"
1935 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1936 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1937 { (exit 1); exit 1; }; }
1952 # For historical reasons you can also use --with-CC to specify the C compiler
1953 # to use, although the standard way to do this is to set the CC environment
1958 # Check whether --with-CC or --without-CC was given.
1959 if test "${with_CC+set}" = set; then
1964 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1965 echo "$as_me: error: argument required for --with-CC option" >&2;}
1966 { (exit 1); exit 1; }; }
1969 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1970 echo "$as_me: error: argument required for --with-CC option" >&2;}
1971 { (exit 1); exit 1; }; }
1982 aix) pgac_cc_list="gcc xlc";;
1983 irix) pgac_cc_list="cc";; # no gcc
1984 *) pgac_cc_list="gcc cc";;
1988 ac_cpp='$CPP $CPPFLAGS'
1989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1992 if test -n "$ac_tool_prefix"; then
1993 for ac_prog in $pgac_cc_list
1995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1997 echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1999 if test "${ac_cv_prog_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$CC"; then
2003 ac_cv_prog_CC="$CC" # Let the user override the test.
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 if test -n "$CC"; then
2023 echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2030 test -n "$CC" && break
2033 if test -z "$CC"; then
2035 for ac_prog in $pgac_cc_list
2037 # Extract the first word of "$ac_prog", so it can be a program name with args.
2038 set dummy $ac_prog; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 if test -n "$ac_ct_CC"; then
2045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 for ac_exec_ext in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_ac_ct_CC="$ac_prog"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6
2068 echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2072 test -n "$ac_ct_CC" && break
2079 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2080 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2081 { (exit 1); exit 1; }; }
2083 # Provide some information about the compiler.
2084 echo "$as_me:$LINENO:" \
2085 "checking for C compiler version" >&5
2086 ac_compiler=`set X $ac_compile; echo $2`
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2088 (eval $ac_compiler --version </dev/null >&5) 2>&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2093 (eval $ac_compiler -v </dev/null >&5) 2>&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2098 (eval $ac_compiler -V </dev/null >&5) 2>&5
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }
2103 cat >conftest.$ac_ext <<_ACEOF
2104 #line $LINENO "configure"
2105 #include "confdefs.h"
2107 #ifdef F77_DUMMY_MAIN
2111 int F77_DUMMY_MAIN() { return 1; }
2121 ac_clean_files_save=$ac_clean_files
2122 ac_clean_files="$ac_clean_files a.out a.exe"
2123 # Try to create an executable without -o first, disregard a.out.
2124 # It will help us diagnose broken compilers, and finding out an intuition
2126 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2127 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2128 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130 (eval $ac_link_default) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; then
2134 # Find the output, starting from the most likely. This scheme is
2135 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2138 # Be careful to initialize this variable, since it used to be cached.
2139 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2141 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2142 ls a.out conftest 2>/dev/null;
2143 ls a.* conftest.* 2>/dev/null`; do
2145 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2146 a.out ) # We found the default executable, but exeext='' is most
2149 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2157 echo "$as_me: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2159 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2160 echo "$as_me: error: C compiler cannot create executables" >&2;}
2161 { (exit 77); exit 77; }; }
2164 ac_exeext=$ac_cv_exeext
2165 echo "$as_me:$LINENO: result: $ac_file" >&5
2166 echo "${ECHO_T}$ac_file" >&6
2168 # Check the compiler produces executables we can run. If not, either
2169 # the compiler is broken, or we cross compile.
2170 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2171 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2172 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2173 # If not cross compiling, check that we can run a simple program.
2174 if test "$cross_compiling" != yes; then
2175 if { ac_try='./$ac_file'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2183 if test "$cross_compiling" = maybe; then
2186 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2187 If you meant to cross compile, use \`--host'." >&5
2188 echo "$as_me: error: cannot run C compiled programs.
2189 If you meant to cross compile, use \`--host'." >&2;}
2190 { (exit 1); exit 1; }; }
2194 echo "$as_me:$LINENO: result: yes" >&5
2195 echo "${ECHO_T}yes" >&6
2197 rm -f a.out a.exe conftest$ac_cv_exeext
2198 ac_clean_files=$ac_clean_files_save
2199 # Check the compiler produces executables we can run. If not, either
2200 # the compiler is broken, or we cross compile.
2201 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2202 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2203 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2204 echo "${ECHO_T}$cross_compiling" >&6
2206 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2207 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2209 (eval $ac_link) 2>&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; then
2213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2214 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2215 # work properly (i.e., refer to `conftest.exe'), while it won't with
2217 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2219 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2220 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2228 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2229 { (exit 1); exit 1; }; }
2232 rm -f conftest$ac_cv_exeext
2233 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2234 echo "${ECHO_T}$ac_cv_exeext" >&6
2236 rm -f conftest.$ac_ext
2237 EXEEXT=$ac_cv_exeext
2239 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2240 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2241 if test "${ac_cv_objext+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 #include "confdefs.h"
2248 #ifdef F77_DUMMY_MAIN
2252 int F77_DUMMY_MAIN() { return 1; }
2262 rm -f conftest.o conftest.obj
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); }; then
2268 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2279 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2280 { (exit 1); exit 1; }; }
2283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2285 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2286 echo "${ECHO_T}$ac_cv_objext" >&6
2287 OBJEXT=$ac_cv_objext
2289 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2290 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2291 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2296 #include "confdefs.h"
2298 #ifdef F77_DUMMY_MAIN
2302 int F77_DUMMY_MAIN() { return 1; }
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2329 echo "$as_me: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2339 GCC=`test $ac_compiler_gnu = yes && echo yes`
2340 ac_test_CFLAGS=${CFLAGS+set}
2341 ac_save_CFLAGS=$CFLAGS
2343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2345 if test "${ac_cv_prog_cc_g+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 #include "confdefs.h"
2352 #ifdef F77_DUMMY_MAIN
2356 int F77_DUMMY_MAIN() { return 1; }
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368 (eval $ac_compile) 2>&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); } &&
2372 { ac_try='test -s conftest.$ac_objext'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; }; then
2380 echo "$as_me: failed program was:" >&5
2381 cat conftest.$ac_ext >&5
2384 rm -f conftest.$ac_objext conftest.$ac_ext
2386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2387 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2388 if test "$ac_test_CFLAGS" = set; then
2389 CFLAGS=$ac_save_CFLAGS
2390 elif test $ac_cv_prog_cc_g = yes; then
2391 if test "$GCC" = yes; then
2397 if test "$GCC" = yes; then
2403 # Some people use a C++ compiler to compile C. Since we use `exit',
2404 # in C++ we need to declare it. In case someone uses the same compiler
2405 # for both compiling C and C++ we need to have the C++ compiler decide
2406 # the declaration of exit, since it's the most demanding environment.
2407 cat >conftest.$ac_ext <<_ACEOF
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 for ac_declaration in \
2426 '#include <stdlib.h>' \
2427 'extern "C" void std::exit (int) throw (); using std::exit;' \
2428 'extern "C" void std::exit (int); using std::exit;' \
2429 'extern "C" void exit (int) throw ();' \
2430 'extern "C" void exit (int);' \
2433 cat >conftest.$ac_ext <<_ACEOF
2434 #line $LINENO "configure"
2435 #include "confdefs.h"
2438 #ifdef F77_DUMMY_MAIN
2442 int F77_DUMMY_MAIN() { return 1; }
2452 rm -f conftest.$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2466 echo "$as_me: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2470 rm -f conftest.$ac_objext conftest.$ac_ext
2471 cat >conftest.$ac_ext <<_ACEOF
2472 #line $LINENO "configure"
2473 #include "confdefs.h"
2475 #ifdef F77_DUMMY_MAIN
2479 int F77_DUMMY_MAIN() { return 1; }
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2503 echo "$as_me: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2509 if test -n "$ac_declaration"; then
2510 echo '#ifdef __cplusplus' >>confdefs.h
2511 echo $ac_declaration >>confdefs.h
2512 echo '#endif' >>confdefs.h
2516 echo "$as_me: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2519 rm -f conftest.$ac_objext conftest.$ac_ext
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527 . "$srcdir/src/template/$template" || exit
2529 if test "$ac_env_CFLAGS_set" = set; then
2530 CFLAGS=$ac_env_CFLAGS_value
2532 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2535 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2536 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2537 # Check if the compiler still works with the template settings
2538 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2539 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2541 cat >conftest.$ac_ext <<_ACEOF
2542 #line $LINENO "configure"
2543 #include "confdefs.h"
2545 #ifdef F77_DUMMY_MAIN
2549 int F77_DUMMY_MAIN() { return 1; }
2559 rm -f conftest.$ac_objext conftest$ac_exeext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2561 (eval $ac_link) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -s conftest$ac_exeext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 echo "$as_me:$LINENO: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6
2574 echo "$as_me: failed program was:" >&5
2575 cat conftest.$ac_ext >&5
2576 echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2578 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2579 echo "$as_me: error: cannot proceed" >&2;}
2580 { (exit 1); exit 1; }; }
2582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2589 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2590 # On Suns, sometimes $CPP names a directory.
2591 if test -n "$CPP" && test -d "$CPP"; then
2594 if test -z "$CPP"; then
2595 if test "${ac_cv_prog_CPP+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 # Double quotes because CPP needs to be expanded
2599 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2602 for ac_c_preproc_warn_flag in '' yes
2604 # Use a header file that comes with gcc, so configuring glibc
2605 # with a fresh cross-compiler works.
2606 # On the NeXT, cc -E runs the code through the compiler's parser,
2607 # not just through cpp. "Syntax error" is here to catch this case.
2608 cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 #include "confdefs.h"
2614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2617 egrep -v '^ *\+' conftest.er1 >conftest.err
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } >/dev/null; then
2622 if test -s conftest.err; then
2623 ac_cpp_err=$ac_c_preproc_warn_flag
2630 if test -z "$ac_cpp_err"; then
2633 echo "$as_me: failed program was:" >&5
2634 cat conftest.$ac_ext >&5
2635 # Broken: fails on valid input.
2638 rm -f conftest.err conftest.$ac_ext
2640 # OK, works on sane cases. Now check whether non-existent headers
2641 # can be detected and how.
2642 cat >conftest.$ac_ext <<_ACEOF
2643 #line $LINENO "configure"
2644 #include "confdefs.h"
2645 #include <ac_nonexistent.h>
2647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2650 egrep -v '^ *\+' conftest.er1 >conftest.err
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } >/dev/null; then
2655 if test -s conftest.err; then
2656 ac_cpp_err=$ac_c_preproc_warn_flag
2663 if test -z "$ac_cpp_err"; then
2664 # Broken: success on invalid input.
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2669 # Passes both tests.
2673 rm -f conftest.err conftest.$ac_ext
2676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2677 rm -f conftest.err conftest.$ac_ext
2678 if $ac_preproc_ok; then
2690 echo "$as_me:$LINENO: result: $CPP" >&5
2691 echo "${ECHO_T}$CPP" >&6
2693 for ac_c_preproc_warn_flag in '' yes
2695 # Use a header file that comes with gcc, so configuring glibc
2696 # with a fresh cross-compiler works.
2697 # On the NeXT, cc -E runs the code through the compiler's parser,
2698 # not just through cpp. "Syntax error" is here to catch this case.
2699 cat >conftest.$ac_ext <<_ACEOF
2700 #line $LINENO "configure"
2701 #include "confdefs.h"
2705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2708 egrep -v '^ *\+' conftest.er1 >conftest.err
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } >/dev/null; then
2713 if test -s conftest.err; then
2714 ac_cpp_err=$ac_c_preproc_warn_flag
2721 if test -z "$ac_cpp_err"; then
2724 echo "$as_me: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2726 # Broken: fails on valid input.
2729 rm -f conftest.err conftest.$ac_ext
2731 # OK, works on sane cases. Now check whether non-existent headers
2732 # can be detected and how.
2733 cat >conftest.$ac_ext <<_ACEOF
2734 #line $LINENO "configure"
2735 #include "confdefs.h"
2736 #include <ac_nonexistent.h>
2738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2741 egrep -v '^ *\+' conftest.er1 >conftest.err
2743 cat conftest.err >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } >/dev/null; then
2746 if test -s conftest.err; then
2747 ac_cpp_err=$ac_c_preproc_warn_flag
2754 if test -z "$ac_cpp_err"; then
2755 # Broken: success on invalid input.
2758 echo "$as_me: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2760 # Passes both tests.
2764 rm -f conftest.err conftest.$ac_ext
2767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2768 rm -f conftest.err conftest.$ac_ext
2769 if $ac_preproc_ok; then
2772 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2773 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2774 { (exit 1); exit 1; }; }
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 # Create compiler version string
2786 if test x"$GCC" = x"yes" ; then
2787 cc_string="GCC `${CC} --version | sed q`"
2792 cat >>confdefs.h <<_ACEOF
2793 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2799 # Automatic dependency tracking
2803 # Check whether --enable-depend or --disable-depend was given.
2804 if test "${enable_depend+set}" = set; then
2805 enableval="$enable_depend"
2815 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2816 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2817 { (exit 1); exit 1; }; }
2830 # Enable assert checks
2834 # Check whether --enable-cassert or --disable-cassert was given.
2835 if test "${enable_cassert+set}" = set; then
2836 enableval="$enable_cassert"
2841 cat >>confdefs.h <<\_ACEOF
2842 #define USE_ASSERT_CHECKING 1
2850 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2851 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2852 { (exit 1); exit 1; }; }
2864 # Include directories
2868 # SRCH_INC comes from the template file
2869 for dir in $with_includes $SRCH_INC; do
2870 if test -d "$dir"; then
2871 INCLUDES="$INCLUDES -I$dir"
2873 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2874 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2882 # Library directories
2886 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2887 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2888 if test -d "$dir"; then
2889 LIBDIRS="$LIBDIRS -L$dir"
2891 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2892 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2901 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2902 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2906 # Check whether --with-tcl or --without-tcl was given.
2907 if test "${with_tcl+set}" = set; then
2918 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2919 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2920 { (exit 1); exit 1; }; }
2929 echo "$as_me:$LINENO: result: $with_tcl" >&5
2930 echo "${ECHO_T}$with_tcl" >&6
2933 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2934 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2935 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2936 if test "$with_tcl" = yes; then
2940 # Check whether --with-tk or --without-tk was given.
2941 if test "${with_tk+set}" = set; then
2952 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2953 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2954 { (exit 1); exit 1; }; }
2966 echo "$as_me:$LINENO: result: $with_tk" >&5
2967 echo "${ECHO_T}$with_tk" >&6
2971 # We see if the path to the Tcl/Tk configuration scripts is specified.
2972 # This will override the use of tclsh to find the paths to search.
2977 # Check whether --with-tclconfig or --without-tclconfig was given.
2978 if test "${with_tclconfig+set}" = set; then
2979 withval="$with_tclconfig"
2983 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2984 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2985 { (exit 1); exit 1; }; }
2988 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2989 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2990 { (exit 1); exit 1; }; }
3000 # We see if the path to the Tk configuration scripts is specified.
3001 # This will override the use of tclsh to find the paths to search.
3006 # Check whether --with-tkconfig or --without-tkconfig was given.
3007 if test "${with_tkconfig+set}" = set; then
3008 withval="$with_tkconfig"
3012 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3013 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3014 { (exit 1); exit 1; }; }
3017 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3018 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3019 { (exit 1); exit 1; }; }
3030 # Optionally build Perl modules (Pg.pm and PL/Perl)
3032 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3033 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3037 # Check whether --with-perl or --without-perl was given.
3038 if test "${with_perl+set}" = set; then
3039 withval="$with_perl"
3049 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3050 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3051 { (exit 1); exit 1; }; }
3060 echo "$as_me:$LINENO: result: $with_perl" >&5
3061 echo "${ECHO_T}$with_perl" >&6
3065 # Optionally build Python interface module
3067 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3068 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3072 # Check whether --with-python or --without-python was given.
3073 if test "${with_python+set}" = set; then
3074 withval="$with_python"
3084 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3085 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3086 { (exit 1); exit 1; }; }
3095 echo "$as_me:$LINENO: result: $with_python" >&5
3096 echo "${ECHO_T}$with_python" >&6
3100 # Optionally build the Java/JDBC tools
3102 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3103 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3107 # Check whether --with-java or --without-java was given.
3108 if test "${with_java+set}" = set; then
3109 withval="$with_java"
3113 echo "$as_me:$LINENO: result: yes" >&5
3114 echo "${ECHO_T}yes" >&6
3116 for ac_prog in jakarta-ant ant ant.sh ant.bat
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122 if test "${ac_cv_path_ANT+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 if test -n "$ANT"; then
3150 echo "$as_me:$LINENO: result: $ANT" >&5
3151 echo "${ECHO_T}$ANT" >&6
3153 echo "$as_me:$LINENO: result: no" >&5
3154 echo "${ECHO_T}no" >&6
3157 test -n "$ANT" && break
3161 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3162 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3163 if test "${pgac_cv_prog_ant_works+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 cat > conftest.java << EOF
3168 public class conftest {
3169 int testmethod(int a, int b) {
3175 cat > conftest.xml << EOF
3176 <project name="conftest" default="conftest">
3177 <target name="conftest">
3178 <javac srcdir="." includes="conftest.java">
3184 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3185 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3186 (eval $pgac_cmd) 2>&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3191 if test $? = 0 && test -f ./conftest.class ; then
3192 pgac_cv_prog_ant_works=yes
3194 echo "configure: failed java program was:" >&5
3195 cat conftest.java >&5
3196 echo "configure: failed build file was:" >&5
3197 cat conftest.xml >&5
3198 pgac_cv_prog_ant_works=no
3201 rm -f conftest* core core.* *.core
3204 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3205 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3207 if test "$pgac_cv_prog_ant_works" != yes; then
3208 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3209 echo "$as_me: error: ant does not work" >&2;}
3210 { (exit 1); exit 1; }; }
3214 if test -z "$ANT"; then
3215 { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3216 echo "$as_me: error: Ant is required to build Java components" >&2;}
3217 { (exit 1); exit 1; }; }
3221 echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3225 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3226 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3227 { (exit 1); exit 1; }; }
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3243 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3244 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3248 # Check whether --with-krb4 or --without-krb4 was given.
3249 if test "${with_krb4+set}" = set; then
3250 withval="$with_krb4"
3254 krb4_prefix=/usr/athena
3261 krb4_prefix=$withval
3270 if test "$with_krb4" = yes; then
3272 echo "$as_me:$LINENO: result: yes" >&5
3273 echo "${ECHO_T}yes" >&6
3275 cat >>confdefs.h <<\_ACEOF
3280 if test -d "$krb4_prefix/include"; then
3281 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3283 if test -d "$krb4_prefix/lib"; then
3284 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3287 krb_srvtab="/etc/srvtab"
3290 echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3301 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3302 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3306 # Check whether --with-krb5 or --without-krb5 was given.
3307 if test "${with_krb5+set}" = set; then
3308 withval="$with_krb5"
3312 krb5_prefix=/usr/athena
3319 krb5_prefix=$withval
3328 if test "$with_krb5" = yes; then
3330 echo "$as_me:$LINENO: result: yes" >&5
3331 echo "${ECHO_T}yes" >&6
3333 cat >>confdefs.h <<\_ACEOF
3338 if test -d "$krb5_prefix/include"; then
3339 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3341 if test -d "$krb5_prefix/lib"; then
3342 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3345 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3348 echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6
3356 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3357 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3358 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3359 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3360 { (exit 1); exit 1; }; }
3367 # Kerberos configuration parameters
3372 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3373 if test "${with_krb_srvnam+set}" = set; then
3374 withval="$with_krb_srvnam"
3378 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3379 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3380 { (exit 1); exit 1; }; }
3383 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3384 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3385 { (exit 1); exit 1; }; }
3393 with_krb_srvnam="postgres"
3397 cat >>confdefs.h <<_ACEOF
3398 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3406 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3407 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3411 # Check whether --with-pam or --without-pam was given.
3412 if test "${with_pam+set}" = set; then
3418 cat >>confdefs.h <<\_ACEOF
3427 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3428 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3429 { (exit 1); exit 1; }; }
3438 echo "$as_me:$LINENO: result: $with_pam" >&5
3439 echo "${ECHO_T}$with_pam" >&6
3449 # Check whether --with-openssl or --without-openssl was given.
3450 if test "${with_openssl+set}" = set; then
3451 withval="$with_openssl"
3455 openssl_prefix=/usr/local/ssl
3462 openssl_prefix=$withval
3471 if test "$with_openssl" = yes; then
3473 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3474 echo "${ECHO_T}building with OpenSSL support" >&6
3476 cat >>confdefs.h <<\_ACEOF
3481 if test -d "${openssl_prefix}/include" ; then
3482 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3484 if test -d "${openssl_prefix}/lib" ; then
3485 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3500 # Check whether --with-readline or --without-readline was given.
3501 if test "${with_readline+set}" = set; then
3502 withval="$with_readline"
3512 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3513 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3514 { (exit 1); exit 1; }; }
3530 # Check whether --with-zlib or --without-zlib was given.
3531 if test "${with_zlib+set}" = set; then
3532 withval="$with_zlib"
3542 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3543 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3544 { (exit 1); exit 1; }; }
3557 # Optionally enable the building of the ODBC driver
3561 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3562 enable_odbc=$with_odbc
3565 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3566 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3569 # Check whether --enable-odbc or --disable-odbc was given.
3570 if test "${enable_odbc+set}" = set; then
3571 enableval="$enable_odbc"
3581 { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3582 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3583 { (exit 1); exit 1; }; }
3595 # Check whether --with-unixodbc or --without-unixodbc was given.
3596 if test "${with_unixodbc+set}" = set; then
3597 withval="$with_unixodbc"
3607 { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3608 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3609 { (exit 1); exit 1; }; }
3621 # Check whether --with-iodbc or --without-iodbc was given.
3622 if test "${with_iodbc+set}" = set; then
3623 withval="$with_iodbc"
3633 { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3634 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3635 { (exit 1); exit 1; }; }
3644 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3645 { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3646 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3647 { (exit 1); exit 1; }; }
3649 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3652 case $enable_odbc:$with_unixodbc:$with_iodbc in
3653 yes:no:no) echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3654 echo "${ECHO_T}yes (stand-alone)" >&6;;
3655 yes:yes:no) echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3656 echo "${ECHO_T}yes (unixODBC)" >&6
3658 cat >>confdefs.h <<\_ACEOF
3659 #define WITH_UNIXODBC 1
3663 yes:no:yes) echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3664 echo "${ECHO_T}yes (iODBC)" >&6
3666 cat >>confdefs.h <<\_ACEOF
3667 #define WITH_IODBC 1
3671 no:*) echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6;;
3679 # Allow for overriding the default location of the odbcinst.ini
3680 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3684 # Check whether --with-odbcinst or --without-odbcinst was given.
3685 if test "${with_odbcinst+set}" = set; then
3686 withval="$with_odbcinst"
3690 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3691 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3692 { (exit 1); exit 1; }; }
3695 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3696 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3697 { (exit 1); exit 1; }; }
3700 odbcinst_ini_dir=$withval
3705 odbcinst_ini_dir="\${sysconfdir}"
3712 # Assume system is ELF if it predefines __ELF__ as 1,
3713 # otherwise believe host_os based default.
3715 freebsd1*|freebsd2*) elf=no;;
3716 freebsd3*|freebsd4*) elf=yes;;
3720 cat >conftest.$ac_ext <<_ACEOF
3721 #line $LINENO "configure"
3722 #include "confdefs.h"
3728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3729 egrep "yes" >/dev/null 2>&1; then
3732 if test "X$elf" = "Xyes" ; then
3745 # Optionally build C++ code (i.e., libpq++)
3747 echo "$as_me:$LINENO: checking whether to build C++ modules" >&5
3748 echo $ECHO_N "checking whether to build C++ modules... $ECHO_C" >&6
3752 # Check whether --with-CXX or --without-CXX was given.
3753 if test "${with_CXX+set}" = set; then
3774 if test "$with_CXX" = yes; then
3776 echo "$as_me:$LINENO: result: yes" >&5
3777 echo "${ECHO_T}yes" >&6
3779 # If the user has specified CXXFLAGS in the environment, leave it
3780 # alone, else use a default.
3783 ac_cpp='$CXXCPP $CPPFLAGS'
3784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3787 if test -n "$ac_tool_prefix"; then
3788 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_prog_CXX+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 if test -n "$CXX"; then
3798 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 if test -n "$CXX"; then
3818 echo "$as_me:$LINENO: result: $CXX" >&5
3819 echo "${ECHO_T}$CXX" >&6
3821 echo "$as_me:$LINENO: result: no" >&5
3822 echo "${ECHO_T}no" >&6
3825 test -n "$CXX" && break
3828 if test -z "$CXX"; then
3830 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3832 # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 echo "$as_me:$LINENO: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 if test -n "$ac_ct_CXX"; then
3840 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_ac_ct_CXX="$ac_prog"
3850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3859 if test -n "$ac_ct_CXX"; then
3860 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3861 echo "${ECHO_T}$ac_ct_CXX" >&6
3863 echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3867 test -n "$ac_ct_CXX" && break
3869 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3875 # Provide some information about the compiler.
3876 echo "$as_me:$LINENO:" \
3877 "checking for C++ compiler version" >&5
3878 ac_compiler=`set X $ac_compile; echo $2`
3879 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3880 (eval $ac_compiler --version </dev/null >&5) 2>&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }
3884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3885 (eval $ac_compiler -v </dev/null >&5) 2>&5
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }
3889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3890 (eval $ac_compiler -V </dev/null >&5) 2>&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }
3895 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3896 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3897 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 cat >conftest.$ac_ext <<_ACEOF
3901 #line $LINENO "configure"
3902 #include "confdefs.h"
3904 #ifdef F77_DUMMY_MAIN
3908 int F77_DUMMY_MAIN() { return 1; }
3921 rm -f conftest.$ac_objext
3922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3923 (eval $ac_compile) 2>&5
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -s conftest.$ac_objext'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3935 echo "$as_me: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3939 rm -f conftest.$ac_objext conftest.$ac_ext
3940 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3943 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3944 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3945 GXX=`test $ac_compiler_gnu = yes && echo yes`
3946 ac_test_CXXFLAGS=${CXXFLAGS+set}
3947 ac_save_CXXFLAGS=$CXXFLAGS
3949 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3950 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3951 if test "${ac_cv_prog_cxx_g+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 cat >conftest.$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3956 #include "confdefs.h"
3958 #ifdef F77_DUMMY_MAIN
3962 int F77_DUMMY_MAIN() { return 1; }
3972 rm -f conftest.$ac_objext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_cv_prog_cxx_g=yes
3986 echo "$as_me: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3990 rm -f conftest.$ac_objext conftest.$ac_ext
3992 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3993 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3994 if test "$ac_test_CXXFLAGS" = set; then
3995 CXXFLAGS=$ac_save_CXXFLAGS
3996 elif test $ac_cv_prog_cxx_g = yes; then
3997 if test "$GXX" = yes; then
4003 if test "$GXX" = yes; then
4009 for ac_declaration in \
4011 '#include <stdlib.h>' \
4012 'extern "C" void std::exit (int) throw (); using std::exit;' \
4013 'extern "C" void std::exit (int); using std::exit;' \
4014 'extern "C" void exit (int) throw ();' \
4015 'extern "C" void exit (int);' \
4018 cat >conftest.$ac_ext <<_ACEOF
4019 #line $LINENO "configure"
4020 #include "confdefs.h"
4023 #ifdef F77_DUMMY_MAIN
4027 int F77_DUMMY_MAIN() { return 1; }
4037 rm -f conftest.$ac_objext
4038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -s conftest.$ac_objext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4051 echo "$as_me: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4055 rm -f conftest.$ac_objext conftest.$ac_ext
4056 cat >conftest.$ac_ext <<_ACEOF
4057 #line $LINENO "configure"
4058 #include "confdefs.h"
4060 #ifdef F77_DUMMY_MAIN
4064 int F77_DUMMY_MAIN() { return 1; }
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4088 echo "$as_me: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4091 rm -f conftest.$ac_objext conftest.$ac_ext
4094 if test -n "$ac_declaration"; then
4095 echo '#ifdef __cplusplus' >>confdefs.h
4096 echo $ac_declaration >>confdefs.h
4097 echo '#endif' >>confdefs.h
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106 if test "$ac_env_CXXFLAGS" != set; then
4107 if test "$GXX" = yes; then
4111 osf) CXXFLAGS='-O4 -Olimit 2000' ;;
4112 unixware) CXXFLAGS='-O' ;;
4117 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
4118 CXXFLAGS="$CXXFLAGS -g"
4120 { echo "$as_me:$LINENO: using CXXFLAGS=$CXXFLAGS" >&5
4121 echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
4124 ac_cpp='$CXXCPP $CPPFLAGS'
4125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4128 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4129 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4130 if test -z "$CXXCPP"; then
4131 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 # Double quotes because CXXCPP needs to be expanded
4135 for CXXCPP in "$CXX -E" "/lib/cpp"
4138 for ac_cxx_preproc_warn_flag in '' yes
4140 # Use a header file that comes with gcc, so configuring glibc
4141 # with a fresh cross-compiler works.
4142 # On the NeXT, cc -E runs the code through the compiler's parser,
4143 # not just through cpp. "Syntax error" is here to catch this case.
4144 cat >conftest.$ac_ext <<_ACEOF
4145 #line $LINENO "configure"
4146 #include "confdefs.h"
4150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4153 egrep -v '^ *\+' conftest.er1 >conftest.err
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } >/dev/null; then
4158 if test -s conftest.err; then
4159 ac_cpp_err=$ac_cxx_preproc_warn_flag
4166 if test -z "$ac_cpp_err"; then
4169 echo "$as_me: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 # Broken: fails on valid input.
4174 rm -f conftest.err conftest.$ac_ext
4176 # OK, works on sane cases. Now check whether non-existent headers
4177 # can be detected and how.
4178 cat >conftest.$ac_ext <<_ACEOF
4179 #line $LINENO "configure"
4180 #include "confdefs.h"
4181 #include <ac_nonexistent.h>
4183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4186 egrep -v '^ *\+' conftest.er1 >conftest.err
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } >/dev/null; then
4191 if test -s conftest.err; then
4192 ac_cpp_err=$ac_cxx_preproc_warn_flag
4199 if test -z "$ac_cpp_err"; then
4200 # Broken: success on invalid input.
4203 echo "$as_me: failed program was:" >&5
4204 cat conftest.$ac_ext >&5
4205 # Passes both tests.
4209 rm -f conftest.err conftest.$ac_ext
4212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4213 rm -f conftest.err conftest.$ac_ext
4214 if $ac_preproc_ok; then
4219 ac_cv_prog_CXXCPP=$CXXCPP
4222 CXXCPP=$ac_cv_prog_CXXCPP
4224 ac_cv_prog_CXXCPP=$CXXCPP
4226 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4227 echo "${ECHO_T}$CXXCPP" >&6
4229 for ac_cxx_preproc_warn_flag in '' yes
4231 # Use a header file that comes with gcc, so configuring glibc
4232 # with a fresh cross-compiler works.
4233 # On the NeXT, cc -E runs the code through the compiler's parser,
4234 # not just through cpp. "Syntax error" is here to catch this case.
4235 cat >conftest.$ac_ext <<_ACEOF
4236 #line $LINENO "configure"
4237 #include "confdefs.h"
4241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4244 egrep -v '^ *\+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null; then
4249 if test -s conftest.err; then
4250 ac_cpp_err=$ac_cxx_preproc_warn_flag
4257 if test -z "$ac_cpp_err"; then
4260 echo "$as_me: failed program was:" >&5
4261 cat conftest.$ac_ext >&5
4262 # Broken: fails on valid input.
4265 rm -f conftest.err conftest.$ac_ext
4267 # OK, works on sane cases. Now check whether non-existent headers
4268 # can be detected and how.
4269 cat >conftest.$ac_ext <<_ACEOF
4270 #line $LINENO "configure"
4271 #include "confdefs.h"
4272 #include <ac_nonexistent.h>
4274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4277 egrep -v '^ *\+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } >/dev/null; then
4282 if test -s conftest.err; then
4283 ac_cpp_err=$ac_cxx_preproc_warn_flag
4290 if test -z "$ac_cpp_err"; then
4291 # Broken: success on invalid input.
4294 echo "$as_me: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4296 # Passes both tests.
4300 rm -f conftest.err conftest.$ac_ext
4303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304 rm -f conftest.err conftest.$ac_ext
4305 if $ac_preproc_ok; then
4308 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4309 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4310 { (exit 1); exit 1; }; }
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4328 CPPFLAGS="$CPPFLAGS $INCLUDES"
4329 LDFLAGS="$LDFLAGS $LIBDIRS"
4331 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
4332 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
4333 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
4334 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
4337 for ac_prog in gawk mawk nawk awk
4339 # Extract the first word of "$ac_prog", so it can be a program name with args.
4340 set dummy $ac_prog; ac_word=$2
4341 echo "$as_me:$LINENO: checking for $ac_word" >&5
4342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4343 if test "${ac_cv_prog_AWK+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 if test -n "$AWK"; then
4347 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 test -z "$as_dir" && as_dir=.
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4356 ac_cv_prog_AWK="$ac_prog"
4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 if test -n "$AWK"; then
4367 echo "$as_me:$LINENO: result: $AWK" >&5
4368 echo "${ECHO_T}$AWK" >&6
4370 echo "$as_me:$LINENO: result: no" >&5
4371 echo "${ECHO_T}no" >&6
4374 test -n "$AWK" && break
4377 echo "$as_me:$LINENO: checking for flex" >&5
4378 echo $ECHO_N "checking for flex... $ECHO_C" >&6
4379 if test "${pgac_cv_path_flex+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 # Let the user override the test
4383 if test -n "$FLEX"; then
4384 pgac_cv_path_flex=$FLEX
4388 for pgac_dir in $PATH; do
4389 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
4392 for pgac_prog in flex lex; do
4393 pgac_candidate="$pgac_dir/$pgac_prog"
4394 if test -f "$pgac_candidate" \
4395 && $pgac_candidate --version </dev/null >/dev/null 2>&1
4397 echo '%%' > conftest.l
4398 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4399 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
4400 pgac_broken_flex=$pgac_candidate
4404 pgac_cv_path_flex=$pgac_candidate
4412 : ${pgac_cv_path_flex=no}
4416 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4417 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4418 if test x"$pgac_cv_path_flex" = x"no"; then
4419 if test -n "$pgac_broken_flex"; then
4420 { echo "$as_me:$LINENO: WARNING:
4421 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4422 *** should get version 2.5.4 or later." >&5
4423 echo "$as_me: WARNING:
4424 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4425 *** should get version 2.5.4 or later." >&2;}
4428 { echo "$as_me:$LINENO: WARNING:
4429 *** Without Flex you will not be able to build PostgreSQL from CVS or
4430 *** change any of the scanner definition files. You can obtain Flex from
4431 *** a GNU mirror site. (If you are using the official distribution of
4432 *** PostgreSQL then you do not need to worry about this because the Flex
4433 *** output is pre-generated.)" >&5
4434 echo "$as_me: WARNING:
4435 *** Without Flex you will not be able to build PostgreSQL from CVS or
4436 *** change any of the scanner definition files. You can obtain Flex from
4437 *** a GNU mirror site. (If you are using the official distribution of
4438 *** PostgreSQL then you do not need to worry about this because the Flex
4439 *** output is pre-generated.)" >&2;}
4442 if test x"$pgac_cv_path_flex" = x"no"; then
4445 FLEX=$pgac_cv_path_flex
4451 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4452 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4454 if test "$LN_S" = "ln -s"; then
4455 echo "$as_me:$LINENO: result: yes" >&5
4456 echo "${ECHO_T}yes" >&6
4458 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4459 echo "${ECHO_T}no, using $LN_S" >&6
4463 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4464 if test "${with_gnu_ld+set}" = set; then
4465 withval="$with_gnu_ld"
4466 test "$withval" = no || with_gnu_ld=yes
4471 if test "$GCC" = yes; then
4472 # Check if gcc -print-prog-name=ld gives a path.
4473 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4474 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4477 # gcc leaves a trailing carriage return which upsets mingw
4478 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4480 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4483 # Accept absolute paths.
4484 [\\/]* | [A-Za-z]:[\\/]*)
4485 re_direlt='/[^/][^/]*/\.\./'
4486 # Canonicalize the path of ld
4487 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4488 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4489 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4491 test -z "$LD" && LD="$ac_prog"
4494 # If it fails, then pretend we aren't using GCC.
4498 # If it is relative, then search for the first ld in PATH.
4502 elif test "$with_gnu_ld" = yes; then
4503 echo "$as_me:$LINENO: checking for GNU ld" >&5
4504 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4506 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4507 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4509 if test "${ac_cv_path_LD+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 if test -z "$LD"; then
4513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4514 for ac_dir in $PATH; do
4515 test -z "$ac_dir" && ac_dir=.
4516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4517 ac_cv_path_LD="$ac_dir/$ac_prog"
4518 # Check to see if the program is GNU ld. I'd rather use --version,
4519 # but apparently some GNU ld's only accept -v.
4520 # Break only if it was the GNU/non-GNU ld that we prefer.
4521 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4522 test "$with_gnu_ld" != no && break
4524 test "$with_gnu_ld" != yes && break
4530 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4535 if test -n "$LD"; then
4536 echo "$as_me:$LINENO: result: $LD" >&5
4537 echo "${ECHO_T}$LD" >&6
4539 echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4542 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4543 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4544 { (exit 1); exit 1; }; }
4545 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4546 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4547 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4551 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4552 ac_cv_prog_gnu_ld=yes
4554 ac_cv_prog_gnu_ld=no
4557 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4558 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4559 with_gnu_ld=$ac_cv_prog_gnu_ld
4564 case $host_os in sysv5*)
4565 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4566 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4567 if test "${pgac_cv_prog_ld_R+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4572 cat >conftest.$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 #include "confdefs.h"
4576 #ifdef F77_DUMMY_MAIN
4580 int F77_DUMMY_MAIN() { return 1; }
4590 rm -f conftest.$ac_objext conftest$ac_exeext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } &&
4596 { ac_try='test -s conftest$ac_exeext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 pgac_cv_prog_ld_R=yes
4604 echo "$as_me: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4606 pgac_cv_prog_ld_R=no
4608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4609 LDFLAGS=$pgac_save_LDFLAGS
4612 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4613 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4614 ld_R_works=$pgac_cv_prog_ld_R
4617 if test -n "$ac_tool_prefix"; then
4618 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4620 echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622 if test "${ac_cv_prog_RANLIB+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 if test -n "$RANLIB"; then
4626 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4635 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 RANLIB=$ac_cv_prog_RANLIB
4645 if test -n "$RANLIB"; then
4646 echo "$as_me:$LINENO: result: $RANLIB" >&5
4647 echo "${ECHO_T}$RANLIB" >&6
4649 echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6
4654 if test -z "$ac_cv_prog_RANLIB"; then
4655 ac_ct_RANLIB=$RANLIB
4656 # Extract the first word of "ranlib", so it can be a program name with args.
4657 set dummy ranlib; ac_word=$2
4658 echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -n "$ac_ct_RANLIB"; then
4664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_prog_ac_ct_RANLIB="ranlib"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4684 if test -n "$ac_ct_RANLIB"; then
4685 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4686 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4688 echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6
4692 RANLIB=$ac_ct_RANLIB
4694 RANLIB="$ac_cv_prog_RANLIB"
4697 for ac_prog in lorder
4699 # Extract the first word of "$ac_prog", so it can be a program name with args.
4700 set dummy $ac_prog; ac_word=$2
4701 echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4703 if test "${ac_cv_prog_LORDER+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 if test -n "$LORDER"; then
4707 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_prog_LORDER="$ac_prog"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 LORDER=$ac_cv_prog_LORDER
4726 if test -n "$LORDER"; then
4727 echo "$as_me:$LINENO: result: $LORDER" >&5
4728 echo "${ECHO_T}$LORDER" >&6
4730 echo "$as_me:$LINENO: result: no" >&5
4731 echo "${ECHO_T}no" >&6
4734 test -n "$LORDER" && break
4737 # Extract the first word of "tar", so it can be a program name with args.
4738 set dummy tar; ac_word=$2
4739 echo "$as_me:$LINENO: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_path_TAR+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 if test -n "$TAR"; then
4769 echo "$as_me:$LINENO: result: $TAR" >&5
4770 echo "${ECHO_T}$TAR" >&6
4772 echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4777 if test -n "$ac_tool_prefix"; then
4778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4779 set dummy ${ac_tool_prefix}strip; ac_word=$2
4780 echo "$as_me:$LINENO: checking for $ac_word" >&5
4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4782 if test "${ac_cv_prog_STRIP+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 if test -n "$STRIP"; then
4786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 test -z "$as_dir" && as_dir=.
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4795 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 STRIP=$ac_cv_prog_STRIP
4805 if test -n "$STRIP"; then
4806 echo "$as_me:$LINENO: result: $STRIP" >&5
4807 echo "${ECHO_T}$STRIP" >&6
4809 echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4814 if test -z "$ac_cv_prog_STRIP"; then
4816 # Extract the first word of "strip", so it can be a program name with args.
4817 set dummy strip; ac_word=$2
4818 echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4820 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 if test -n "$ac_ct_STRIP"; then
4824 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_prog_ac_ct_STRIP="strip"
4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4843 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4844 if test -n "$ac_ct_STRIP"; then
4845 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4846 echo "${ECHO_T}$ac_ct_STRIP" >&6
4848 echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6
4854 STRIP="$ac_cv_prog_STRIP"
4858 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4859 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4860 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4861 STRIP_STATIC_LIB="$STRIP -x"
4862 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4863 echo "$as_me:$LINENO: result: yes" >&5
4864 echo "${ECHO_T}yes" >&6
4868 echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4875 for ac_prog in 'bison -y'
4877 # Extract the first word of "$ac_prog", so it can be a program name with args.
4878 set dummy $ac_prog; ac_word=$2
4879 echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4881 if test "${ac_cv_prog_YACC+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 if test -n "$YACC"; then
4885 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_prog_YACC="$ac_prog"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 YACC=$ac_cv_prog_YACC
4904 if test -n "$YACC"; then
4905 echo "$as_me:$LINENO: result: $YACC" >&5
4906 echo "${ECHO_T}$YACC" >&6
4908 echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6
4912 test -n "$YACC" && break
4915 if test -z "$YACC"; then
4916 { echo "$as_me:$LINENO: WARNING:
4917 *** Without Bison you will not be able to build PostgreSQL from CVS or
4918 *** change any of the parser definition files. You can obtain Bison from
4919 *** a GNU mirror site. (If you are using the official distribution of
4920 *** PostgreSQL then you do not need to worry about this because the Bison
4921 *** output is pre-generated.) To use a different yacc program (possible,
4922 *** but not recommended), set the environment variable YACC before running
4923 *** 'configure'." >&5
4924 echo "$as_me: WARNING:
4925 *** Without Bison you will not be able to build PostgreSQL from CVS or
4926 *** change any of the parser definition files. You can obtain Bison from
4927 *** a GNU mirror site. (If you are using the official distribution of
4928 *** PostgreSQL then you do not need to worry about this because the Bison
4929 *** output is pre-generated.) To use a different yacc program (possible,
4930 *** but not recommended), set the environment variable YACC before running
4931 *** 'configure'." >&2;}
4935 if test "$with_tk" = yes; then
4936 # Extract the first word of "wish", so it can be a program name with args.
4937 set dummy wish; ac_word=$2
4938 echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4940 if test "${ac_cv_path_WISH+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4955 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 WISH=$ac_cv_path_WISH
4967 if test -n "$WISH"; then
4968 echo "$as_me:$LINENO: result: $WISH" >&5
4969 echo "${ECHO_T}$WISH" >&6
4971 echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6
4975 test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4976 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4977 { (exit 1); exit 1; }; }
4980 # Extract the first word of "perl", so it can be a program name with args.
4981 set dummy perl; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_path_PERL+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 PERL=$ac_cv_path_PERL
5011 if test -n "$PERL"; then
5012 echo "$as_me:$LINENO: result: $PERL" >&5
5013 echo "${ECHO_T}$PERL" >&6
5015 echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6
5019 if test "$with_perl" = yes; then
5022 echo "$as_me:$LINENO: checking Perl installation directories" >&5
5023 echo $ECHO_N "checking Perl installation directories... $ECHO_C" >&6
5025 # These are the ones we currently need. Others can be added easily.
5026 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
5027 perl_installsitelib=`$PERL -MConfig -e 'print $Config{installsitelib}'`
5028 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
5031 echo "$as_me:$LINENO: result: done" >&5
5032 echo "${ECHO_T}done" >&6
5036 if test "$with_python" = yes; then
5037 # Extract the first word of "python", so it can be a program name with args.
5038 set dummy python; ac_word=$2
5039 echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5041 if test "${ac_cv_path_PYTHON+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 PYTHON=$ac_cv_path_PYTHON
5068 if test -n "$PYTHON"; then
5069 echo "$as_me:$LINENO: result: $PYTHON" >&5
5070 echo "${ECHO_T}$PYTHON" >&6
5072 echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6
5076 if test x"$PYTHON" = x""; then
5077 { { echo "$as_me:$LINENO: error: Python not found" >&5
5078 echo "$as_me: error: Python not found" >&2;}
5079 { (exit 1); exit 1; }; }
5083 echo "$as_me:$LINENO: checking Python installation directories" >&5
5084 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
5085 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
5086 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
5087 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
5088 python_configdir="${python_execprefix}/lib/python${python_version}/config"
5089 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
5090 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
5091 python_includespec="-I${python_prefix}/include/python${python_version}"
5092 if test "$python_prefix" != "$python_execprefix"; then
5093 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
5096 # This should be enough of a message.
5097 if test "$python_prefix" != "$python_execprefix"; then
5098 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
5099 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
5101 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
5102 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
5109 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
5110 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
5112 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5113 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
5114 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
5115 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5116 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
5118 pgac_tab=" " # tab character
5119 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"`
5121 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
5122 echo "${ECHO_T}${python_libspec}" >&6
5132 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
5135 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
5136 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
5137 if test "${ac_cv_lib_bsd_main+set}" = set; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 ac_check_lib_save_LIBS=$LIBS
5142 cat >conftest.$ac_ext <<_ACEOF
5143 #line $LINENO "configure"
5144 #include "confdefs.h"
5147 #ifdef F77_DUMMY_MAIN
5151 int F77_DUMMY_MAIN() { return 1; }
5161 rm -f conftest.$ac_objext conftest$ac_exeext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5163 (eval $ac_link) 2>&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -s conftest$ac_exeext'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_lib_bsd_main=yes
5175 echo "$as_me: failed program was:" >&5
5176 cat conftest.$ac_ext >&5
5177 ac_cv_lib_bsd_main=no
5179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5180 LIBS=$ac_check_lib_save_LIBS
5182 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
5183 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
5184 if test $ac_cv_lib_bsd_main = yes; then
5185 cat >>confdefs.h <<_ACEOF
5186 #define HAVE_LIBBSD 1
5195 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
5196 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
5197 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 ac_check_lib_save_LIBS=$LIBS
5202 cat >conftest.$ac_ext <<_ACEOF
5203 #line $LINENO "configure"
5204 #include "confdefs.h"
5206 /* Override any gcc2 internal prototype to avoid an error. */
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5212 char setproctitle ();
5213 #ifdef F77_DUMMY_MAIN
5217 int F77_DUMMY_MAIN() { return 1; }
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -s conftest$ac_exeext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_cv_lib_util_setproctitle=yes
5241 echo "$as_me: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 ac_cv_lib_util_setproctitle=no
5245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5246 LIBS=$ac_check_lib_save_LIBS
5248 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5249 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5250 if test $ac_cv_lib_util_setproctitle = yes; then
5251 cat >>confdefs.h <<_ACEOF
5252 #define HAVE_LIBUTIL 1
5260 echo "$as_me:$LINENO: checking for main in -lm" >&5
5261 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5262 if test "${ac_cv_lib_m_main+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 ac_check_lib_save_LIBS=$LIBS
5267 cat >conftest.$ac_ext <<_ACEOF
5268 #line $LINENO "configure"
5269 #include "confdefs.h"
5272 #ifdef F77_DUMMY_MAIN
5276 int F77_DUMMY_MAIN() { return 1; }
5286 rm -f conftest.$ac_objext conftest$ac_exeext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5288 (eval $ac_link) 2>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -s conftest$ac_exeext'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; }; then
5298 ac_cv_lib_m_main=yes
5300 echo "$as_me: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5305 LIBS=$ac_check_lib_save_LIBS
5307 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5308 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5309 if test $ac_cv_lib_m_main = yes; then
5310 cat >>confdefs.h <<_ACEOF
5319 echo "$as_me:$LINENO: checking for main in -ldl" >&5
5320 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
5321 if test "${ac_cv_lib_dl_main+set}" = set; then
5322 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 ac_check_lib_save_LIBS=$LIBS
5326 cat >conftest.$ac_ext <<_ACEOF
5327 #line $LINENO "configure"
5328 #include "confdefs.h"
5331 #ifdef F77_DUMMY_MAIN
5335 int F77_DUMMY_MAIN() { return 1; }
5345 rm -f conftest.$ac_objext conftest$ac_exeext
5346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5347 (eval $ac_link) 2>&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try='test -s conftest$ac_exeext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_lib_dl_main=yes
5359 echo "$as_me: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 ac_cv_lib_dl_main=no
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
5367 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
5368 if test $ac_cv_lib_dl_main = yes; then
5369 cat >>confdefs.h <<_ACEOF
5370 #define HAVE_LIBDL 1
5378 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5379 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5380 if test "${ac_cv_lib_nsl_main+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 ac_check_lib_save_LIBS=$LIBS
5385 cat >conftest.$ac_ext <<_ACEOF
5386 #line $LINENO "configure"
5387 #include "confdefs.h"
5390 #ifdef F77_DUMMY_MAIN
5394 int F77_DUMMY_MAIN() { return 1; }
5404 rm -f conftest.$ac_objext conftest$ac_exeext
5405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5406 (eval $ac_link) 2>&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try='test -s conftest$ac_exeext'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
5416 ac_cv_lib_nsl_main=yes
5418 echo "$as_me: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5420 ac_cv_lib_nsl_main=no
5422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5423 LIBS=$ac_check_lib_save_LIBS
5425 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5426 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5427 if test $ac_cv_lib_nsl_main = yes; then
5428 cat >>confdefs.h <<_ACEOF
5429 #define HAVE_LIBNSL 1
5437 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5438 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5439 if test "${ac_cv_lib_socket_main+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 ac_check_lib_save_LIBS=$LIBS
5443 LIBS="-lsocket $LIBS"
5444 cat >conftest.$ac_ext <<_ACEOF
5445 #line $LINENO "configure"
5446 #include "confdefs.h"
5449 #ifdef F77_DUMMY_MAIN
5453 int F77_DUMMY_MAIN() { return 1; }
5463 rm -f conftest.$ac_objext conftest$ac_exeext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465 (eval $ac_link) 2>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_lib_socket_main=yes
5477 echo "$as_me: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5479 ac_cv_lib_socket_main=no
5481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5482 LIBS=$ac_check_lib_save_LIBS
5484 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5485 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5486 if test $ac_cv_lib_socket_main = yes; then
5487 cat >>confdefs.h <<_ACEOF
5488 #define HAVE_LIBSOCKET 1
5491 LIBS="-lsocket $LIBS"
5496 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5497 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5498 if test "${ac_cv_lib_ipc_main+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 ac_check_lib_save_LIBS=$LIBS
5503 cat >conftest.$ac_ext <<_ACEOF
5504 #line $LINENO "configure"
5505 #include "confdefs.h"
5508 #ifdef F77_DUMMY_MAIN
5512 int F77_DUMMY_MAIN() { return 1; }
5522 rm -f conftest.$ac_objext conftest$ac_exeext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -s conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_lib_ipc_main=yes
5536 echo "$as_me: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5538 ac_cv_lib_ipc_main=no
5540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5541 LIBS=$ac_check_lib_save_LIBS
5543 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5544 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5545 if test $ac_cv_lib_ipc_main = yes; then
5546 cat >>confdefs.h <<_ACEOF
5547 #define HAVE_LIBIPC 1
5555 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5556 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5557 if test "${ac_cv_lib_IPC_main+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 ac_check_lib_save_LIBS=$LIBS
5562 cat >conftest.$ac_ext <<_ACEOF
5563 #line $LINENO "configure"
5564 #include "confdefs.h"
5567 #ifdef F77_DUMMY_MAIN
5571 int F77_DUMMY_MAIN() { return 1; }
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 ac_cv_lib_IPC_main=yes
5595 echo "$as_me: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 ac_cv_lib_IPC_main=no
5599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5600 LIBS=$ac_check_lib_save_LIBS
5602 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5603 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5604 if test $ac_cv_lib_IPC_main = yes; then
5605 cat >>confdefs.h <<_ACEOF
5606 #define HAVE_LIBIPC 1
5614 echo "$as_me:$LINENO: checking for main in -llc" >&5
5615 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5616 if test "${ac_cv_lib_lc_main+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 ac_check_lib_save_LIBS=$LIBS
5621 cat >conftest.$ac_ext <<_ACEOF
5622 #line $LINENO "configure"
5623 #include "confdefs.h"
5626 #ifdef F77_DUMMY_MAIN
5630 int F77_DUMMY_MAIN() { return 1; }
5640 rm -f conftest.$ac_objext conftest$ac_exeext
5641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5642 (eval $ac_link) 2>&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_lib_lc_main=yes
5654 echo "$as_me: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 ac_cv_lib_lc_main=no
5658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5659 LIBS=$ac_check_lib_save_LIBS
5661 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5662 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5663 if test $ac_cv_lib_lc_main = yes; then
5664 cat >>confdefs.h <<_ACEOF
5665 #define HAVE_LIBLC 1
5673 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5674 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5675 if test "${ac_cv_lib_dld_main+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 ac_check_lib_save_LIBS=$LIBS
5680 cat >conftest.$ac_ext <<_ACEOF
5681 #line $LINENO "configure"
5682 #include "confdefs.h"
5685 #ifdef F77_DUMMY_MAIN
5689 int F77_DUMMY_MAIN() { return 1; }
5699 rm -f conftest.$ac_objext conftest$ac_exeext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701 (eval $ac_link) 2>&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } &&
5705 { ac_try='test -s conftest$ac_exeext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5711 ac_cv_lib_dld_main=yes
5713 echo "$as_me: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5715 ac_cv_lib_dld_main=no
5717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5718 LIBS=$ac_check_lib_save_LIBS
5720 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5721 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5722 if test $ac_cv_lib_dld_main = yes; then
5723 cat >>confdefs.h <<_ACEOF
5724 #define HAVE_LIBDLD 1
5732 echo "$as_me:$LINENO: checking for main in -lld" >&5
5733 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5734 if test "${ac_cv_lib_ld_main+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 ac_check_lib_save_LIBS=$LIBS
5739 cat >conftest.$ac_ext <<_ACEOF
5740 #line $LINENO "configure"
5741 #include "confdefs.h"
5744 #ifdef F77_DUMMY_MAIN
5748 int F77_DUMMY_MAIN() { return 1; }
5758 rm -f conftest.$ac_objext conftest$ac_exeext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760 (eval $ac_link) 2>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -s conftest$ac_exeext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_cv_lib_ld_main=yes
5772 echo "$as_me: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5774 ac_cv_lib_ld_main=no
5776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5777 LIBS=$ac_check_lib_save_LIBS
5779 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5780 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5781 if test $ac_cv_lib_ld_main = yes; then
5782 cat >>confdefs.h <<_ACEOF
5783 #define HAVE_LIBLD 1
5791 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5792 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5793 if test "${ac_cv_lib_compat_main+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 ac_check_lib_save_LIBS=$LIBS
5797 LIBS="-lcompat $LIBS"
5798 cat >conftest.$ac_ext <<_ACEOF
5799 #line $LINENO "configure"
5800 #include "confdefs.h"
5803 #ifdef F77_DUMMY_MAIN
5807 int F77_DUMMY_MAIN() { return 1; }
5817 rm -f conftest.$ac_objext conftest$ac_exeext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819 (eval $ac_link) 2>&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try='test -s conftest$ac_exeext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_cv_lib_compat_main=yes
5831 echo "$as_me: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5833 ac_cv_lib_compat_main=no
5835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5836 LIBS=$ac_check_lib_save_LIBS
5838 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5839 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5840 if test $ac_cv_lib_compat_main = yes; then
5841 cat >>confdefs.h <<_ACEOF
5842 #define HAVE_LIBCOMPAT 1
5845 LIBS="-lcompat $LIBS"
5850 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5851 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5852 if test "${ac_cv_lib_BSD_main+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 ac_check_lib_save_LIBS=$LIBS
5857 cat >conftest.$ac_ext <<_ACEOF
5858 #line $LINENO "configure"
5859 #include "confdefs.h"
5862 #ifdef F77_DUMMY_MAIN
5866 int F77_DUMMY_MAIN() { return 1; }
5876 rm -f conftest.$ac_objext conftest$ac_exeext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5878 (eval $ac_link) 2>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -s conftest$ac_exeext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_cv_lib_BSD_main=yes
5890 echo "$as_me: failed program was:" >&5
5891 cat conftest.$ac_ext >&5
5892 ac_cv_lib_BSD_main=no
5894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5895 LIBS=$ac_check_lib_save_LIBS
5897 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5898 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5899 if test $ac_cv_lib_BSD_main = yes; then
5900 cat >>confdefs.h <<_ACEOF
5901 #define HAVE_LIBBSD 1
5909 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5910 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5911 if test "${ac_cv_lib_gen_main+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 ac_check_lib_save_LIBS=$LIBS
5916 cat >conftest.$ac_ext <<_ACEOF
5917 #line $LINENO "configure"
5918 #include "confdefs.h"
5921 #ifdef F77_DUMMY_MAIN
5925 int F77_DUMMY_MAIN() { return 1; }
5935 rm -f conftest.$ac_objext conftest$ac_exeext
5936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 (eval $ac_link) 2>&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -s conftest$ac_exeext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5947 ac_cv_lib_gen_main=yes
5949 echo "$as_me: failed program was:" >&5
5950 cat conftest.$ac_ext >&5
5951 ac_cv_lib_gen_main=no
5953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5954 LIBS=$ac_check_lib_save_LIBS
5956 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5957 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5958 if test $ac_cv_lib_gen_main = yes; then
5959 cat >>confdefs.h <<_ACEOF
5960 #define HAVE_LIBGEN 1
5968 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5969 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5970 if test "${ac_cv_lib_PW_main+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 ac_check_lib_save_LIBS=$LIBS
5975 cat >conftest.$ac_ext <<_ACEOF
5976 #line $LINENO "configure"
5977 #include "confdefs.h"
5980 #ifdef F77_DUMMY_MAIN
5984 int F77_DUMMY_MAIN() { return 1; }
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } &&
6000 { ac_try='test -s conftest$ac_exeext'
6001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 ac_cv_lib_PW_main=yes
6008 echo "$as_me: failed program was:" >&5
6009 cat conftest.$ac_ext >&5
6010 ac_cv_lib_PW_main=no
6012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6013 LIBS=$ac_check_lib_save_LIBS
6015 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
6016 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
6017 if test $ac_cv_lib_PW_main = yes; then
6018 cat >>confdefs.h <<_ACEOF
6019 #define HAVE_LIBPW 1
6027 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
6028 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
6029 if test "${ac_cv_lib_resolv_main+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 ac_check_lib_save_LIBS=$LIBS
6033 LIBS="-lresolv $LIBS"
6034 cat >conftest.$ac_ext <<_ACEOF
6035 #line $LINENO "configure"
6036 #include "confdefs.h"
6039 #ifdef F77_DUMMY_MAIN
6043 int F77_DUMMY_MAIN() { return 1; }
6053 rm -f conftest.$ac_objext conftest$ac_exeext
6054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6055 (eval $ac_link) 2>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try='test -s conftest$ac_exeext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_cv_lib_resolv_main=yes
6067 echo "$as_me: failed program was:" >&5
6068 cat conftest.$ac_ext >&5
6069 ac_cv_lib_resolv_main=no
6071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6072 LIBS=$ac_check_lib_save_LIBS
6074 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6075 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6076 if test $ac_cv_lib_resolv_main = yes; then
6077 cat >>confdefs.h <<_ACEOF
6078 #define HAVE_LIBRESOLV 1
6081 LIBS="-lresolv $LIBS"
6087 echo "$as_me:$LINENO: checking for main in -lunix" >&5
6088 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
6089 if test "${ac_cv_lib_unix_main+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 ac_check_lib_save_LIBS=$LIBS
6094 cat >conftest.$ac_ext <<_ACEOF
6095 #line $LINENO "configure"
6096 #include "confdefs.h"
6099 #ifdef F77_DUMMY_MAIN
6103 int F77_DUMMY_MAIN() { return 1; }
6113 rm -f conftest.$ac_objext conftest$ac_exeext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6115 (eval $ac_link) 2>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -s conftest$ac_exeext'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 ac_cv_lib_unix_main=yes
6127 echo "$as_me: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6129 ac_cv_lib_unix_main=no
6131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6132 LIBS=$ac_check_lib_save_LIBS
6134 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
6135 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
6136 if test $ac_cv_lib_unix_main = yes; then
6137 cat >>confdefs.h <<_ACEOF
6138 #define HAVE_LIBUNIX 1
6145 echo "$as_me:$LINENO: checking for library containing crypt" >&5
6146 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
6147 if test "${ac_cv_search_crypt+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 ac_func_search_save_LIBS=$LIBS
6151 ac_cv_search_crypt=no
6152 cat >conftest.$ac_ext <<_ACEOF
6153 #line $LINENO "configure"
6154 #include "confdefs.h"
6156 /* Override any gcc2 internal prototype to avoid an error. */
6160 /* We use char because int might match the return type of a gcc2
6161 builtin and then its argument prototype would still apply. */
6163 #ifdef F77_DUMMY_MAIN
6167 int F77_DUMMY_MAIN() { return 1; }
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -s conftest$ac_exeext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_cv_search_crypt="none required"
6191 echo "$as_me: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6195 if test "$ac_cv_search_crypt" = no; then
6196 for ac_lib in crypt; do
6197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6198 cat >conftest.$ac_ext <<_ACEOF
6199 #line $LINENO "configure"
6200 #include "confdefs.h"
6202 /* Override any gcc2 internal prototype to avoid an error. */
6206 /* We use char because int might match the return type of a gcc2
6207 builtin and then its argument prototype would still apply. */
6209 #ifdef F77_DUMMY_MAIN
6213 int F77_DUMMY_MAIN() { return 1; }
6223 rm -f conftest.$ac_objext conftest$ac_exeext
6224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6225 (eval $ac_link) 2>&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -s conftest$ac_exeext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 ac_cv_search_crypt="-l$ac_lib"
6238 echo "$as_me: failed program was:" >&5
6239 cat conftest.$ac_ext >&5
6241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6244 LIBS=$ac_func_search_save_LIBS
6246 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6247 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6248 if test "$ac_cv_search_crypt" != no; then
6249 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6255 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6256 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6257 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 ac_check_lib_save_LIBS=$LIBS
6262 cat >conftest.$ac_ext <<_ACEOF
6263 #line $LINENO "configure"
6264 #include "confdefs.h"
6266 /* Override any gcc2 internal prototype to avoid an error. */
6270 /* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6272 char __inet_ntoa ();
6273 #ifdef F77_DUMMY_MAIN
6277 int F77_DUMMY_MAIN() { return 1; }
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289 (eval $ac_link) 2>&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } &&
6293 { ac_try='test -s conftest$ac_exeext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_lib_bind___inet_ntoa=yes
6301 echo "$as_me: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6303 ac_cv_lib_bind___inet_ntoa=no
6305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6306 LIBS=$ac_check_lib_save_LIBS
6308 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6309 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6310 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6311 cat >>confdefs.h <<_ACEOF
6312 #define HAVE_LIBBIND 1
6320 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6321 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6322 if test "${ac_cv_search_fdatasync+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 ac_func_search_save_LIBS=$LIBS
6326 ac_cv_search_fdatasync=no
6327 cat >conftest.$ac_ext <<_ACEOF
6328 #line $LINENO "configure"
6329 #include "confdefs.h"
6331 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6338 #ifdef F77_DUMMY_MAIN
6342 int F77_DUMMY_MAIN() { return 1; }
6352 rm -f conftest.$ac_objext conftest$ac_exeext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } &&
6358 { ac_try='test -s conftest$ac_exeext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_search_fdatasync="none required"
6366 echo "$as_me: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6370 if test "$ac_cv_search_fdatasync" = no; then
6371 for ac_lib in rt posix4; do
6372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6373 cat >conftest.$ac_ext <<_ACEOF
6374 #line $LINENO "configure"
6375 #include "confdefs.h"
6377 /* Override any gcc2 internal prototype to avoid an error. */
6381 /* We use char because int might match the return type of a gcc2
6382 builtin and then its argument prototype would still apply. */
6384 #ifdef F77_DUMMY_MAIN
6388 int F77_DUMMY_MAIN() { return 1; }
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6400 (eval $ac_link) 2>&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -s conftest$ac_exeext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_search_fdatasync="-l$ac_lib"
6413 echo "$as_me: failed program was:" >&5
6414 cat conftest.$ac_ext >&5
6416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6419 LIBS=$ac_func_search_save_LIBS
6421 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6422 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6423 if test "$ac_cv_search_fdatasync" != no; then
6424 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6429 if test "$with_readline" = yes; then
6431 echo "$as_me:$LINENO: checking for readline" >&5
6432 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6434 if test "${pgac_cv_check_readline+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 pgac_cv_check_readline=no
6438 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6439 for pgac_rllib in -lreadline -ledit ; do
6440 pgac_save_LIBS=$LIBS
6441 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6442 cat >conftest.$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 #include "confdefs.h"
6446 /* Override any gcc2 internal prototype to avoid an error. */
6450 /* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6453 #ifdef F77_DUMMY_MAIN
6457 int F77_DUMMY_MAIN() { return 1; }
6467 rm -f conftest.$ac_objext conftest$ac_exeext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6469 (eval $ac_link) 2>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try='test -s conftest$ac_exeext'
6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; }; then
6480 # NetBSD and OpenBSD have a broken linker that does not
6481 # recognize dependent libraries
6482 case $host_os in netbsd* | openbsd* )
6485 *) pgac_lib=" -lcurses" ;;
6489 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6493 echo "$as_me: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6497 LIBS=$pgac_save_LIBS
6500 LIBS=$pgac_save_LIBS
6504 if test "$pgac_cv_check_readline" != no ; then
6506 cat >>confdefs.h <<\_ACEOF
6507 #define HAVE_LIBREADLINE 1
6510 LIBS="$pgac_cv_check_readline $LIBS"
6511 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6512 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6514 echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6
6517 if test x"$pgac_cv_check_readline" = x"no"; then
6518 { { echo "$as_me:$LINENO: error: readline library not found
6519 Use --without-readline to disable readline support." >&5
6520 echo "$as_me: error: readline library not found
6521 Use --without-readline to disable readline support." >&2;}
6522 { (exit 1); exit 1; }; }
6526 if test "$with_zlib" = yes; then
6528 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6529 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6530 if test "${ac_cv_lib_z_inflate+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 ac_check_lib_save_LIBS=$LIBS
6535 cat >conftest.$ac_ext <<_ACEOF
6536 #line $LINENO "configure"
6537 #include "confdefs.h"
6539 /* Override any gcc2 internal prototype to avoid an error. */
6543 /* We use char because int might match the return type of a gcc2
6544 builtin and then its argument prototype would still apply. */
6546 #ifdef F77_DUMMY_MAIN
6550 int F77_DUMMY_MAIN() { return 1; }
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -s conftest$ac_exeext'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 ac_cv_lib_z_inflate=yes
6574 echo "$as_me: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6576 ac_cv_lib_z_inflate=no
6578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6579 LIBS=$ac_check_lib_save_LIBS
6581 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6582 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6583 if test $ac_cv_lib_z_inflate = yes; then
6584 cat >>confdefs.h <<_ACEOF
6591 { { echo "$as_me:$LINENO: error: zlib library not found
6592 Use --without-zlib to disable zlib support." >&5
6593 echo "$as_me: error: zlib library not found
6594 Use --without-zlib to disable zlib support." >&2;}
6595 { (exit 1); exit 1; }; }
6600 if test "$with_krb4" = yes ; then
6602 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6603 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6604 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 ac_check_lib_save_LIBS=$LIBS
6609 cat >conftest.$ac_ext <<_ACEOF
6610 #line $LINENO "configure"
6611 #include "confdefs.h"
6613 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6619 char des_encrypt ();
6620 #ifdef F77_DUMMY_MAIN
6624 int F77_DUMMY_MAIN() { return 1; }
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try='test -s conftest$ac_exeext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_lib_des_des_encrypt=yes
6648 echo "$as_me: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6650 ac_cv_lib_des_des_encrypt=no
6652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6653 LIBS=$ac_check_lib_save_LIBS
6655 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6656 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6657 if test $ac_cv_lib_des_des_encrypt = yes; then
6658 cat >>confdefs.h <<_ACEOF
6659 #define HAVE_LIBDES 1
6665 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6666 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6667 { (exit 1); exit 1; }; }
6671 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6672 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6673 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 ac_check_lib_save_LIBS=$LIBS
6678 cat >conftest.$ac_ext <<_ACEOF
6679 #line $LINENO "configure"
6680 #include "confdefs.h"
6682 /* Override any gcc2 internal prototype to avoid an error. */
6686 /* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */
6688 char krb_sendauth ();
6689 #ifdef F77_DUMMY_MAIN
6693 int F77_DUMMY_MAIN() { return 1; }
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705 (eval $ac_link) 2>&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } &&
6709 { ac_try='test -s conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_lib_krb_krb_sendauth=yes
6717 echo "$as_me: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6719 ac_cv_lib_krb_krb_sendauth=no
6721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6722 LIBS=$ac_check_lib_save_LIBS
6724 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6725 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6726 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6727 cat >>confdefs.h <<_ACEOF
6728 #define HAVE_LIBKRB 1
6734 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6735 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6736 { (exit 1); exit 1; }; }
6741 if test "$with_krb5" = yes ; then
6742 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6743 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6744 if test "${ac_cv_search_com_err+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 ac_func_search_save_LIBS=$LIBS
6748 ac_cv_search_com_err=no
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 #include "confdefs.h"
6753 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6760 #ifdef F77_DUMMY_MAIN
6764 int F77_DUMMY_MAIN() { return 1; }
6774 rm -f conftest.$ac_objext conftest$ac_exeext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776 (eval $ac_link) 2>&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try='test -s conftest$ac_exeext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 ac_cv_search_com_err="none required"
6788 echo "$as_me: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6792 if test "$ac_cv_search_com_err" = no; then
6793 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line $LINENO "configure"
6797 #include "confdefs.h"
6799 /* Override any gcc2 internal prototype to avoid an error. */
6803 /* We use char because int might match the return type of a gcc2
6804 builtin and then its argument prototype would still apply. */
6806 #ifdef F77_DUMMY_MAIN
6810 int F77_DUMMY_MAIN() { return 1; }
6820 rm -f conftest.$ac_objext conftest$ac_exeext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6822 (eval $ac_link) 2>&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -s conftest$ac_exeext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_cv_search_com_err="-l$ac_lib"
6835 echo "$as_me: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6841 LIBS=$ac_func_search_save_LIBS
6843 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6844 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6845 if test "$ac_cv_search_com_err" != no; then
6846 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6849 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6850 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6851 { (exit 1); exit 1; }; }
6854 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6855 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6856 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 ac_func_search_save_LIBS=$LIBS
6860 ac_cv_search_krb5_encrypt=no
6861 cat >conftest.$ac_ext <<_ACEOF
6862 #line $LINENO "configure"
6863 #include "confdefs.h"
6865 /* Override any gcc2 internal prototype to avoid an error. */
6869 /* We use char because int might match the return type of a gcc2
6870 builtin and then its argument prototype would still apply. */
6871 char krb5_encrypt ();
6872 #ifdef F77_DUMMY_MAIN
6876 int F77_DUMMY_MAIN() { return 1; }
6886 rm -f conftest.$ac_objext conftest$ac_exeext
6887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6888 (eval $ac_link) 2>&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try='test -s conftest$ac_exeext'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898 ac_cv_search_krb5_encrypt="none required"
6900 echo "$as_me: failed program was:" >&5
6901 cat conftest.$ac_ext >&5
6903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6904 if test "$ac_cv_search_krb5_encrypt" = no; then
6905 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6907 cat >conftest.$ac_ext <<_ACEOF
6908 #line $LINENO "configure"
6909 #include "confdefs.h"
6911 /* Override any gcc2 internal prototype to avoid an error. */
6915 /* We use char because int might match the return type of a gcc2
6916 builtin and then its argument prototype would still apply. */
6917 char krb5_encrypt ();
6918 #ifdef F77_DUMMY_MAIN
6922 int F77_DUMMY_MAIN() { return 1; }
6932 rm -f conftest.$ac_objext conftest$ac_exeext
6933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934 (eval $ac_link) 2>&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -s conftest$ac_exeext'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6944 ac_cv_search_krb5_encrypt="-l$ac_lib"
6947 echo "$as_me: failed program was:" >&5
6948 cat conftest.$ac_ext >&5
6950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6953 LIBS=$ac_func_search_save_LIBS
6955 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6956 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6957 if test "$ac_cv_search_krb5_encrypt" != no; then
6958 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6961 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6962 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6963 { (exit 1); exit 1; }; }
6966 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6967 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6968 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 ac_func_search_save_LIBS=$LIBS
6972 ac_cv_search_krb5_sendauth=no
6973 cat >conftest.$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 #include "confdefs.h"
6977 /* Override any gcc2 internal prototype to avoid an error. */
6981 /* We use char because int might match the return type of a gcc2
6982 builtin and then its argument prototype would still apply. */
6983 char krb5_sendauth ();
6984 #ifdef F77_DUMMY_MAIN
6988 int F77_DUMMY_MAIN() { return 1; }
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7000 (eval $ac_link) 2>&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } &&
7004 { ac_try='test -s conftest$ac_exeext'
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7010 ac_cv_search_krb5_sendauth="none required"
7012 echo "$as_me: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7016 if test "$ac_cv_search_krb5_sendauth" = no; then
7017 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
7018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7019 cat >conftest.$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7021 #include "confdefs.h"
7023 /* Override any gcc2 internal prototype to avoid an error. */
7027 /* We use char because int might match the return type of a gcc2
7028 builtin and then its argument prototype would still apply. */
7029 char krb5_sendauth ();
7030 #ifdef F77_DUMMY_MAIN
7034 int F77_DUMMY_MAIN() { return 1; }
7044 rm -f conftest.$ac_objext conftest$ac_exeext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046 (eval $ac_link) 2>&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } &&
7050 { ac_try='test -s conftest$ac_exeext'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; }; then
7056 ac_cv_search_krb5_sendauth="-l$ac_lib"
7059 echo "$as_me: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7065 LIBS=$ac_func_search_save_LIBS
7067 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7068 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
7069 if test "$ac_cv_search_krb5_sendauth" != no; then
7070 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
7073 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7074 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7075 { (exit 1); exit 1; }; }
7080 if test "$with_openssl" = yes ; then
7082 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7083 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
7084 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_check_lib_save_LIBS=$LIBS
7088 LIBS="-lcrypto $LIBS"
7089 cat >conftest.$ac_ext <<_ACEOF
7090 #line $LINENO "configure"
7091 #include "confdefs.h"
7093 /* Override any gcc2 internal prototype to avoid an error. */
7097 /* We use char because int might match the return type of a gcc2
7098 builtin and then its argument prototype would still apply. */
7099 char CRYPTO_new_ex_data ();
7100 #ifdef F77_DUMMY_MAIN
7104 int F77_DUMMY_MAIN() { return 1; }
7109 CRYPTO_new_ex_data ();
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try='test -s conftest$ac_exeext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7128 echo "$as_me: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7130 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7133 LIBS=$ac_check_lib_save_LIBS
7135 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7136 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7137 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7138 cat >>confdefs.h <<_ACEOF
7139 #define HAVE_LIBCRYPTO 1
7142 LIBS="-lcrypto $LIBS"
7145 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7146 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7147 { (exit 1); exit 1; }; }
7151 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7152 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7153 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 ac_check_lib_save_LIBS=$LIBS
7158 cat >conftest.$ac_ext <<_ACEOF
7159 #line $LINENO "configure"
7160 #include "confdefs.h"
7162 /* Override any gcc2 internal prototype to avoid an error. */
7166 /* We use char because int might match the return type of a gcc2
7167 builtin and then its argument prototype would still apply. */
7168 char SSL_library_init ();
7169 #ifdef F77_DUMMY_MAIN
7173 int F77_DUMMY_MAIN() { return 1; }
7178 SSL_library_init ();
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try='test -s conftest$ac_exeext'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_lib_ssl_SSL_library_init=yes
7197 echo "$as_me: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7199 ac_cv_lib_ssl_SSL_library_init=no
7201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7202 LIBS=$ac_check_lib_save_LIBS
7204 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7205 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7206 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7207 cat >>confdefs.h <<_ACEOF
7208 #define HAVE_LIBSSL 1
7214 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7215 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7216 { (exit 1); exit 1; }; }
7221 if test "$with_pam" = yes ; then
7223 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7224 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7225 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 ac_check_lib_save_LIBS=$LIBS
7230 cat >conftest.$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7232 #include "confdefs.h"
7234 /* Override any gcc2 internal prototype to avoid an error. */
7238 /* We use char because int might match the return type of a gcc2
7239 builtin and then its argument prototype would still apply. */
7241 #ifdef F77_DUMMY_MAIN
7245 int F77_DUMMY_MAIN() { return 1; }
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7257 (eval $ac_link) 2>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -s conftest$ac_exeext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_cv_lib_pam_pam_start=yes
7269 echo "$as_me: failed program was:" >&5
7270 cat conftest.$ac_ext >&5
7271 ac_cv_lib_pam_pam_start=no
7273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7274 LIBS=$ac_check_lib_save_LIBS
7276 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7277 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7278 if test $ac_cv_lib_pam_pam_start = yes; then
7279 cat >>confdefs.h <<_ACEOF
7280 #define HAVE_LIBPAM 1
7286 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7287 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7288 { (exit 1); exit 1; }; }
7297 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7298 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7299 if test "${ac_cv_header_stdc+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7304 #include "confdefs.h"
7311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7314 egrep -v '^ *\+' conftest.er1 >conftest.err
7316 cat conftest.err >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } >/dev/null; then
7319 if test -s conftest.err; then
7320 ac_cpp_err=$ac_c_preproc_warn_flag
7327 if test -z "$ac_cpp_err"; then
7328 ac_cv_header_stdc=yes
7330 echo "$as_me: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7332 ac_cv_header_stdc=no
7334 rm -f conftest.err conftest.$ac_ext
7336 if test $ac_cv_header_stdc = yes; then
7337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7338 cat >conftest.$ac_ext <<_ACEOF
7339 #line $LINENO "configure"
7340 #include "confdefs.h"
7344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7345 egrep "memchr" >/dev/null 2>&1; then
7348 ac_cv_header_stdc=no
7354 if test $ac_cv_header_stdc = yes; then
7355 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7356 cat >conftest.$ac_ext <<_ACEOF
7357 #line $LINENO "configure"
7358 #include "confdefs.h"
7362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7363 egrep "free" >/dev/null 2>&1; then
7366 ac_cv_header_stdc=no
7372 if test $ac_cv_header_stdc = yes; then
7373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7374 if test "$cross_compiling" = yes; then
7377 cat >conftest.$ac_ext <<_ACEOF
7378 #line $LINENO "configure"
7379 #include "confdefs.h"
7381 #if ((' ' & 0x0FF) == 0x020)
7382 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7383 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7385 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7386 || ('j' <= (c) && (c) <= 'r') \
7387 || ('s' <= (c) && (c) <= 'z'))
7388 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7391 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7396 for (i = 0; i < 256; i++)
7397 if (XOR (islower (i), ISLOWER (i))
7398 || toupper (i) != TOUPPER (i))
7403 rm -f conftest$ac_exeext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7405 (eval $ac_link) 2>&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7416 echo "$as_me: program exited with status $ac_status" >&5
7417 echo "$as_me: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7420 ac_cv_header_stdc=no
7422 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7426 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7427 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7428 if test $ac_cv_header_stdc = yes; then
7430 cat >>confdefs.h <<\_ACEOF
7431 #define STDC_HEADERS 1
7436 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7446 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7447 inttypes.h stdint.h unistd.h
7449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7450 echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 cat >conftest.$ac_ext <<_ACEOF
7456 #line $LINENO "configure"
7457 #include "confdefs.h"
7458 $ac_includes_default
7460 #include <$ac_header>
7462 rm -f conftest.$ac_objext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7464 (eval $ac_compile) 2>&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try='test -s conftest.$ac_objext'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7474 eval "$as_ac_Header=yes"
7476 echo "$as_me: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7478 eval "$as_ac_Header=no"
7480 rm -f conftest.$ac_objext conftest.$ac_ext
7482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485 cat >>confdefs.h <<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7512 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
7514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7516 echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7524 # Is the header compilable?
7525 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7527 cat >conftest.$ac_ext <<_ACEOF
7528 #line $LINENO "configure"
7529 #include "confdefs.h"
7530 $ac_includes_default
7531 #include <$ac_header>
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_header_compiler=yes
7547 echo "$as_me: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 ac_header_compiler=no
7551 rm -f conftest.$ac_objext conftest.$ac_ext
7552 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7553 echo "${ECHO_T}$ac_header_compiler" >&6
7555 # Is the header present?
7556 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7558 cat >conftest.$ac_ext <<_ACEOF
7559 #line $LINENO "configure"
7560 #include "confdefs.h"
7561 #include <$ac_header>
7563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7566 egrep -v '^ *\+' conftest.er1 >conftest.err
7568 cat conftest.err >&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } >/dev/null; then
7571 if test -s conftest.err; then
7572 ac_cpp_err=$ac_c_preproc_warn_flag
7579 if test -z "$ac_cpp_err"; then
7580 ac_header_preproc=yes
7582 echo "$as_me: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7584 ac_header_preproc=no
7586 rm -f conftest.err conftest.$ac_ext
7587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7588 echo "${ECHO_T}$ac_header_preproc" >&6
7590 # So? What about this header?
7591 case $ac_header_compiler:$ac_header_preproc in
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7605 echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 eval "$as_ac_Header=$ac_header_preproc"
7612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7617 cat >>confdefs.h <<_ACEOF
7618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7626 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7627 # netinet/in.h is included first.
7629 for ac_header in netinet/in.h
7631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7633 echo "$as_me:$LINENO: checking for $ac_header" >&5
7634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7641 # Is the header compilable?
7642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7644 cat >conftest.$ac_ext <<_ACEOF
7645 #line $LINENO "configure"
7646 #include "confdefs.h"
7647 $ac_includes_default
7648 #include <$ac_header>
7650 rm -f conftest.$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -s conftest.$ac_objext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 ac_header_compiler=yes
7664 echo "$as_me: failed program was:" >&5
7665 cat conftest.$ac_ext >&5
7666 ac_header_compiler=no
7668 rm -f conftest.$ac_objext conftest.$ac_ext
7669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7670 echo "${ECHO_T}$ac_header_compiler" >&6
7672 # Is the header present?
7673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7675 cat >conftest.$ac_ext <<_ACEOF
7676 #line $LINENO "configure"
7677 #include "confdefs.h"
7678 #include <$ac_header>
7680 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7683 egrep -v '^ *\+' conftest.er1 >conftest.err
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } >/dev/null; then
7688 if test -s conftest.err; then
7689 ac_cpp_err=$ac_c_preproc_warn_flag
7696 if test -z "$ac_cpp_err"; then
7697 ac_header_preproc=yes
7699 echo "$as_me: failed program was:" >&5
7700 cat conftest.$ac_ext >&5
7701 ac_header_preproc=no
7703 rm -f conftest.err conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7705 echo "${ECHO_T}$ac_header_preproc" >&6
7707 # So? What about this header?
7708 case $ac_header_compiler:$ac_header_preproc in
7710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7722 echo "$as_me:$LINENO: checking for $ac_header" >&5
7723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 eval "$as_ac_Header=$ac_header_preproc"
7729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7734 cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7743 for ac_header in netinet/tcp.h
7745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7746 echo "$as_me:$LINENO: checking for $ac_header" >&5
7747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 #include "confdefs.h"
7754 $ac_includes_default
7755 #ifdef HAVE_NETINET_IN_H
7756 #include <netinet/in.h>
7760 #include <$ac_header>
7762 rm -f conftest.$ac_objext
7763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764 (eval $ac_compile) 2>&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
7768 { ac_try='test -s conftest.$ac_objext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 eval "$as_ac_Header=yes"
7776 echo "$as_me: failed program was:" >&5
7777 cat conftest.$ac_ext >&5
7778 eval "$as_ac_Header=no"
7780 rm -f conftest.$ac_objext conftest.$ac_ext
7782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7785 cat >>confdefs.h <<_ACEOF
7786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7794 if test "$with_readline" = yes; then
7796 for ac_header in readline/readline.h
7798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7800 echo "$as_me:$LINENO: checking for $ac_header" >&5
7801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7808 # Is the header compilable?
7809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7812 #line $LINENO "configure"
7813 #include "confdefs.h"
7814 $ac_includes_default
7815 #include <$ac_header>
7817 rm -f conftest.$ac_objext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7819 (eval $ac_compile) 2>&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } &&
7823 { ac_try='test -s conftest.$ac_objext'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; }; then
7829 ac_header_compiler=yes
7831 echo "$as_me: failed program was:" >&5
7832 cat conftest.$ac_ext >&5
7833 ac_header_compiler=no
7835 rm -f conftest.$ac_objext conftest.$ac_ext
7836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7837 echo "${ECHO_T}$ac_header_compiler" >&6
7839 # Is the header present?
7840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7842 cat >conftest.$ac_ext <<_ACEOF
7843 #line $LINENO "configure"
7844 #include "confdefs.h"
7845 #include <$ac_header>
7847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7850 egrep -v '^ *\+' conftest.er1 >conftest.err
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } >/dev/null; then
7855 if test -s conftest.err; then
7856 ac_cpp_err=$ac_c_preproc_warn_flag
7863 if test -z "$ac_cpp_err"; then
7864 ac_header_preproc=yes
7866 echo "$as_me: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7868 ac_header_preproc=no
7870 rm -f conftest.err conftest.$ac_ext
7871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7872 echo "${ECHO_T}$ac_header_preproc" >&6
7874 # So? What about this header?
7875 case $ac_header_compiler:$ac_header_preproc in
7877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7889 echo "$as_me:$LINENO: checking for $ac_header" >&5
7890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 eval "$as_ac_Header=$ac_header_preproc"
7896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7901 cat >>confdefs.h <<_ACEOF
7902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7907 for ac_header in readline.h
7909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911 echo "$as_me:$LINENO: checking for $ac_header" >&5
7912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7919 # Is the header compilable?
7920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7922 cat >conftest.$ac_ext <<_ACEOF
7923 #line $LINENO "configure"
7924 #include "confdefs.h"
7925 $ac_includes_default
7926 #include <$ac_header>
7928 rm -f conftest.$ac_objext
7929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -s conftest.$ac_objext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 ac_header_compiler=yes
7942 echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7944 ac_header_compiler=no
7946 rm -f conftest.$ac_objext conftest.$ac_ext
7947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7948 echo "${ECHO_T}$ac_header_compiler" >&6
7950 # Is the header present?
7951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7953 cat >conftest.$ac_ext <<_ACEOF
7954 #line $LINENO "configure"
7955 #include "confdefs.h"
7956 #include <$ac_header>
7958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7961 egrep -v '^ *\+' conftest.er1 >conftest.err
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } >/dev/null; then
7966 if test -s conftest.err; then
7967 ac_cpp_err=$ac_c_preproc_warn_flag
7974 if test -z "$ac_cpp_err"; then
7975 ac_header_preproc=yes
7977 echo "$as_me: failed program was:" >&5
7978 cat conftest.$ac_ext >&5
7979 ac_header_preproc=no
7981 rm -f conftest.err conftest.$ac_ext
7982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7983 echo "${ECHO_T}$ac_header_preproc" >&6
7985 # So? What about this header?
7986 case $ac_header_compiler:$ac_header_preproc in
7988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8000 echo "$as_me:$LINENO: checking for $ac_header" >&5
8001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 eval "$as_ac_Header=$ac_header_preproc"
8007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8012 cat >>confdefs.h <<_ACEOF
8013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8017 { { echo "$as_me:$LINENO: error: readline header not found
8018 Use --without-readline to disable readline support." >&5
8019 echo "$as_me: error: readline header not found
8020 Use --without-readline to disable readline support." >&2;}
8021 { (exit 1); exit 1; }; }
8031 for ac_header in readline/history.h
8033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8035 echo "$as_me:$LINENO: checking for $ac_header" >&5
8036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8041 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8043 # Is the header compilable?
8044 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8047 #line $LINENO "configure"
8048 #include "confdefs.h"
8049 $ac_includes_default
8050 #include <$ac_header>
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054 (eval $ac_compile) 2>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } &&
8058 { ac_try='test -s conftest.$ac_objext'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8064 ac_header_compiler=yes
8066 echo "$as_me: failed program was:" >&5
8067 cat conftest.$ac_ext >&5
8068 ac_header_compiler=no
8070 rm -f conftest.$ac_objext conftest.$ac_ext
8071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8072 echo "${ECHO_T}$ac_header_compiler" >&6
8074 # Is the header present?
8075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8077 cat >conftest.$ac_ext <<_ACEOF
8078 #line $LINENO "configure"
8079 #include "confdefs.h"
8080 #include <$ac_header>
8082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8085 egrep -v '^ *\+' conftest.er1 >conftest.err
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } >/dev/null; then
8090 if test -s conftest.err; then
8091 ac_cpp_err=$ac_c_preproc_warn_flag
8098 if test -z "$ac_cpp_err"; then
8099 ac_header_preproc=yes
8101 echo "$as_me: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8103 ac_header_preproc=no
8105 rm -f conftest.err conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107 echo "${ECHO_T}$ac_header_preproc" >&6
8109 # So? What about this header?
8110 case $ac_header_compiler:$ac_header_preproc in
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8124 echo "$as_me:$LINENO: checking for $ac_header" >&5
8125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8129 eval "$as_ac_Header=$ac_header_preproc"
8131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136 cat >>confdefs.h <<_ACEOF
8137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8142 for ac_header in history.h
8144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8146 echo "$as_me:$LINENO: checking for $ac_header" >&5
8147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8154 # Is the header compilable?
8155 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8157 cat >conftest.$ac_ext <<_ACEOF
8158 #line $LINENO "configure"
8159 #include "confdefs.h"
8160 $ac_includes_default
8161 #include <$ac_header>
8163 rm -f conftest.$ac_objext
8164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8165 (eval $ac_compile) 2>&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -s conftest.$ac_objext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 ac_header_compiler=yes
8177 echo "$as_me: failed program was:" >&5
8178 cat conftest.$ac_ext >&5
8179 ac_header_compiler=no
8181 rm -f conftest.$ac_objext conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8183 echo "${ECHO_T}$ac_header_compiler" >&6
8185 # Is the header present?
8186 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8188 cat >conftest.$ac_ext <<_ACEOF
8189 #line $LINENO "configure"
8190 #include "confdefs.h"
8191 #include <$ac_header>
8193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8196 egrep -v '^ *\+' conftest.er1 >conftest.err
8198 cat conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } >/dev/null; then
8201 if test -s conftest.err; then
8202 ac_cpp_err=$ac_c_preproc_warn_flag
8209 if test -z "$ac_cpp_err"; then
8210 ac_header_preproc=yes
8212 echo "$as_me: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8214 ac_header_preproc=no
8216 rm -f conftest.err conftest.$ac_ext
8217 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8218 echo "${ECHO_T}$ac_header_preproc" >&6
8220 # So? What about this header?
8221 case $ac_header_compiler:$ac_header_preproc in
8223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8235 echo "$as_me:$LINENO: checking for $ac_header" >&5
8236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 eval "$as_ac_Header=$ac_header_preproc"
8242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8247 cat >>confdefs.h <<_ACEOF
8248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8252 { { echo "$as_me:$LINENO: error: history header not found
8253 Use --without-readline to disable readline support." >&5
8254 echo "$as_me: error: history header not found
8255 Use --without-readline to disable readline support." >&2;}
8256 { (exit 1); exit 1; }; }
8267 if test "$with_zlib" = yes; then
8268 if test "${ac_cv_header_zlib_h+set}" = set; then
8269 echo "$as_me:$LINENO: checking for zlib.h" >&5
8270 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8271 if test "${ac_cv_header_zlib_h+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8275 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8277 # Is the header compilable?
8278 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8279 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8280 cat >conftest.$ac_ext <<_ACEOF
8281 #line $LINENO "configure"
8282 #include "confdefs.h"
8283 $ac_includes_default
8286 rm -f conftest.$ac_objext
8287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8288 (eval $ac_compile) 2>&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -s conftest.$ac_objext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 ac_header_compiler=yes
8300 echo "$as_me: failed program was:" >&5
8301 cat conftest.$ac_ext >&5
8302 ac_header_compiler=no
8304 rm -f conftest.$ac_objext conftest.$ac_ext
8305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8306 echo "${ECHO_T}$ac_header_compiler" >&6
8308 # Is the header present?
8309 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8310 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8311 cat >conftest.$ac_ext <<_ACEOF
8312 #line $LINENO "configure"
8313 #include "confdefs.h"
8316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8319 egrep -v '^ *\+' conftest.er1 >conftest.err
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } >/dev/null; then
8324 if test -s conftest.err; then
8325 ac_cpp_err=$ac_c_preproc_warn_flag
8332 if test -z "$ac_cpp_err"; then
8333 ac_header_preproc=yes
8335 echo "$as_me: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8337 ac_header_preproc=no
8339 rm -f conftest.err conftest.$ac_ext
8340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8341 echo "${ECHO_T}$ac_header_preproc" >&6
8343 # So? What about this header?
8344 case $ac_header_compiler:$ac_header_preproc in
8346 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8347 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8349 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8351 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8352 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8354 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8356 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8358 echo "$as_me:$LINENO: checking for zlib.h" >&5
8359 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8360 if test "${ac_cv_header_zlib_h+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 ac_cv_header_zlib_h=$ac_header_preproc
8365 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8366 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8369 if test $ac_cv_header_zlib_h = yes; then
8372 { { echo "$as_me:$LINENO: error: zlib header not found
8373 Use --without-zlib to disable zlib support." >&5
8374 echo "$as_me: error: zlib header not found
8375 Use --without-zlib to disable zlib support." >&2;}
8376 { (exit 1); exit 1; }; }
8382 if test "$with_krb4" = yes ; then
8383 if test "${ac_cv_header_krb_h+set}" = set; then
8384 echo "$as_me:$LINENO: checking for krb.h" >&5
8385 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8386 if test "${ac_cv_header_krb_h+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8390 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8392 # Is the header compilable?
8393 echo "$as_me:$LINENO: checking krb.h usability" >&5
8394 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8395 cat >conftest.$ac_ext <<_ACEOF
8396 #line $LINENO "configure"
8397 #include "confdefs.h"
8398 $ac_includes_default
8401 rm -f conftest.$ac_objext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } &&
8407 { ac_try='test -s conftest.$ac_objext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8413 ac_header_compiler=yes
8415 echo "$as_me: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8417 ac_header_compiler=no
8419 rm -f conftest.$ac_objext conftest.$ac_ext
8420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8421 echo "${ECHO_T}$ac_header_compiler" >&6
8423 # Is the header present?
8424 echo "$as_me:$LINENO: checking krb.h presence" >&5
8425 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8426 cat >conftest.$ac_ext <<_ACEOF
8427 #line $LINENO "configure"
8428 #include "confdefs.h"
8431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8434 egrep -v '^ *\+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } >/dev/null; then
8439 if test -s conftest.err; then
8440 ac_cpp_err=$ac_c_preproc_warn_flag
8447 if test -z "$ac_cpp_err"; then
8448 ac_header_preproc=yes
8450 echo "$as_me: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8452 ac_header_preproc=no
8454 rm -f conftest.err conftest.$ac_ext
8455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8456 echo "${ECHO_T}$ac_header_preproc" >&6
8458 # So? What about this header?
8459 case $ac_header_compiler:$ac_header_preproc in
8461 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8462 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8463 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8464 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8466 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8467 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8468 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8469 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8471 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8473 echo "$as_me:$LINENO: checking for krb.h" >&5
8474 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8475 if test "${ac_cv_header_krb_h+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 ac_cv_header_krb_h=$ac_header_preproc
8480 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8481 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8484 if test $ac_cv_header_krb_h = yes; then
8487 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8488 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8489 { (exit 1); exit 1; }; }
8495 if test "$with_krb5" = yes ; then
8496 if test "${ac_cv_header_krb5_h+set}" = set; then
8497 echo "$as_me:$LINENO: checking for krb5.h" >&5
8498 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8499 if test "${ac_cv_header_krb5_h+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8503 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8505 # Is the header compilable?
8506 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8507 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8508 cat >conftest.$ac_ext <<_ACEOF
8509 #line $LINENO "configure"
8510 #include "confdefs.h"
8511 $ac_includes_default
8514 rm -f conftest.$ac_objext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8516 (eval $ac_compile) 2>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try='test -s conftest.$ac_objext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_header_compiler=yes
8528 echo "$as_me: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8530 ac_header_compiler=no
8532 rm -f conftest.$ac_objext conftest.$ac_ext
8533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8534 echo "${ECHO_T}$ac_header_compiler" >&6
8536 # Is the header present?
8537 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8538 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8539 cat >conftest.$ac_ext <<_ACEOF
8540 #line $LINENO "configure"
8541 #include "confdefs.h"
8544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8547 egrep -v '^ *\+' conftest.er1 >conftest.err
8549 cat conftest.err >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } >/dev/null; then
8552 if test -s conftest.err; then
8553 ac_cpp_err=$ac_c_preproc_warn_flag
8560 if test -z "$ac_cpp_err"; then
8561 ac_header_preproc=yes
8563 echo "$as_me: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8565 ac_header_preproc=no
8567 rm -f conftest.err conftest.$ac_ext
8568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8569 echo "${ECHO_T}$ac_header_preproc" >&6
8571 # So? What about this header?
8572 case $ac_header_compiler:$ac_header_preproc in
8574 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8575 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8577 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8579 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8580 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8582 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8584 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8586 echo "$as_me:$LINENO: checking for krb5.h" >&5
8587 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8588 if test "${ac_cv_header_krb5_h+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 ac_cv_header_krb5_h=$ac_header_preproc
8593 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8594 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8597 if test $ac_cv_header_krb5_h = yes; then
8600 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8601 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8602 { (exit 1); exit 1; }; }
8606 if test "${ac_cv_header_com_err_h+set}" = set; then
8607 echo "$as_me:$LINENO: checking for com_err.h" >&5
8608 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8609 if test "${ac_cv_header_com_err_h+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8613 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8615 # Is the header compilable?
8616 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8617 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8618 cat >conftest.$ac_ext <<_ACEOF
8619 #line $LINENO "configure"
8620 #include "confdefs.h"
8621 $ac_includes_default
8622 #include <com_err.h>
8624 rm -f conftest.$ac_objext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8626 (eval $ac_compile) 2>&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 ac_header_compiler=yes
8638 echo "$as_me: failed program was:" >&5
8639 cat conftest.$ac_ext >&5
8640 ac_header_compiler=no
8642 rm -f conftest.$ac_objext conftest.$ac_ext
8643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8644 echo "${ECHO_T}$ac_header_compiler" >&6
8646 # Is the header present?
8647 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8648 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8649 cat >conftest.$ac_ext <<_ACEOF
8650 #line $LINENO "configure"
8651 #include "confdefs.h"
8652 #include <com_err.h>
8654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8657 egrep -v '^ *\+' conftest.er1 >conftest.err
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } >/dev/null; then
8662 if test -s conftest.err; then
8663 ac_cpp_err=$ac_c_preproc_warn_flag
8670 if test -z "$ac_cpp_err"; then
8671 ac_header_preproc=yes
8673 echo "$as_me: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8675 ac_header_preproc=no
8677 rm -f conftest.err conftest.$ac_ext
8678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8679 echo "${ECHO_T}$ac_header_preproc" >&6
8681 # So? What about this header?
8682 case $ac_header_compiler:$ac_header_preproc in
8684 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8685 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8687 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8689 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8690 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8692 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8694 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8696 echo "$as_me:$LINENO: checking for com_err.h" >&5
8697 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8698 if test "${ac_cv_header_com_err_h+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 ac_cv_header_com_err_h=$ac_header_preproc
8703 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8704 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8707 if test $ac_cv_header_com_err_h = yes; then
8710 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8711 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8712 { (exit 1); exit 1; }; }
8718 if test "$with_openssl" = yes ; then
8719 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8720 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8721 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8722 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8726 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8728 # Is the header compilable?
8729 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8730 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8731 cat >conftest.$ac_ext <<_ACEOF
8732 #line $LINENO "configure"
8733 #include "confdefs.h"
8734 $ac_includes_default
8735 #include <openssl/ssl.h>
8737 rm -f conftest.$ac_objext
8738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8739 (eval $ac_compile) 2>&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } &&
8743 { ac_try='test -s conftest.$ac_objext'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_header_compiler=yes
8751 echo "$as_me: failed program was:" >&5
8752 cat conftest.$ac_ext >&5
8753 ac_header_compiler=no
8755 rm -f conftest.$ac_objext conftest.$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8757 echo "${ECHO_T}$ac_header_compiler" >&6
8759 # Is the header present?
8760 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8761 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8762 cat >conftest.$ac_ext <<_ACEOF
8763 #line $LINENO "configure"
8764 #include "confdefs.h"
8765 #include <openssl/ssl.h>
8767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8770 egrep -v '^ *\+' conftest.er1 >conftest.err
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } >/dev/null; then
8775 if test -s conftest.err; then
8776 ac_cpp_err=$ac_c_preproc_warn_flag
8783 if test -z "$ac_cpp_err"; then
8784 ac_header_preproc=yes
8786 echo "$as_me: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8788 ac_header_preproc=no
8790 rm -f conftest.err conftest.$ac_ext
8791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8792 echo "${ECHO_T}$ac_header_preproc" >&6
8794 # So? What about this header?
8795 case $ac_header_compiler:$ac_header_preproc in
8797 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8798 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8800 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8802 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8803 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8804 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8805 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8807 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8809 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8810 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8811 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8816 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8817 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8820 if test $ac_cv_header_openssl_ssl_h = yes; then
8823 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8824 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8825 { (exit 1); exit 1; }; }
8829 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8830 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8831 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8832 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8836 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8838 # Is the header compilable?
8839 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8840 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8842 #line $LINENO "configure"
8843 #include "confdefs.h"
8844 $ac_includes_default
8845 #include <openssl/err.h>
8847 rm -f conftest.$ac_objext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -s conftest.$ac_objext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 ac_header_compiler=yes
8861 echo "$as_me: failed program was:" >&5
8862 cat conftest.$ac_ext >&5
8863 ac_header_compiler=no
8865 rm -f conftest.$ac_objext conftest.$ac_ext
8866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8867 echo "${ECHO_T}$ac_header_compiler" >&6
8869 # Is the header present?
8870 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8871 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8872 cat >conftest.$ac_ext <<_ACEOF
8873 #line $LINENO "configure"
8874 #include "confdefs.h"
8875 #include <openssl/err.h>
8877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8880 egrep -v '^ *\+' conftest.er1 >conftest.err
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } >/dev/null; then
8885 if test -s conftest.err; then
8886 ac_cpp_err=$ac_c_preproc_warn_flag
8893 if test -z "$ac_cpp_err"; then
8894 ac_header_preproc=yes
8896 echo "$as_me: failed program was:" >&5
8897 cat conftest.$ac_ext >&5
8898 ac_header_preproc=no
8900 rm -f conftest.err conftest.$ac_ext
8901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8902 echo "${ECHO_T}$ac_header_preproc" >&6
8904 # So? What about this header?
8905 case $ac_header_compiler:$ac_header_preproc in
8907 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8908 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8910 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8912 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8913 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8914 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8915 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8916 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8917 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8919 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8920 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8921 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 ac_cv_header_openssl_err_h=$ac_header_preproc
8926 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8927 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8930 if test $ac_cv_header_openssl_err_h = yes; then
8933 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8934 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8935 { (exit 1); exit 1; }; }
8941 if test "$with_pam" = yes ; then
8942 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8943 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8944 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8945 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8949 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8951 # Is the header compilable?
8952 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8953 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8954 cat >conftest.$ac_ext <<_ACEOF
8955 #line $LINENO "configure"
8956 #include "confdefs.h"
8957 $ac_includes_default
8958 #include <security/pam_appl.h>
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962 (eval $ac_compile) 2>&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -s conftest.$ac_objext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_header_compiler=yes
8974 echo "$as_me: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8976 ac_header_compiler=no
8978 rm -f conftest.$ac_objext conftest.$ac_ext
8979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8980 echo "${ECHO_T}$ac_header_compiler" >&6
8982 # Is the header present?
8983 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8984 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8985 cat >conftest.$ac_ext <<_ACEOF
8986 #line $LINENO "configure"
8987 #include "confdefs.h"
8988 #include <security/pam_appl.h>
8990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8993 egrep -v '^ *\+' conftest.er1 >conftest.err
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } >/dev/null; then
8998 if test -s conftest.err; then
8999 ac_cpp_err=$ac_c_preproc_warn_flag
9006 if test -z "$ac_cpp_err"; then
9007 ac_header_preproc=yes
9009 echo "$as_me: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9011 ac_header_preproc=no
9013 rm -f conftest.err conftest.$ac_ext
9014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9015 echo "${ECHO_T}$ac_header_preproc" >&6
9017 # So? What about this header?
9018 case $ac_header_compiler:$ac_header_preproc in
9020 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9021 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9022 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9023 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9025 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
9026 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
9028 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
9030 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
9032 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
9033 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
9034 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 ac_cv_header_security_pam_appl_h=$ac_header_preproc
9039 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
9040 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
9043 if test $ac_cv_header_security_pam_appl_h = yes; then
9046 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
9047 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
9048 { (exit 1); exit 1; }; }
9056 ## Types, structures, compiler characteristics
9059 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9060 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9061 if test "${ac_cv_c_const+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9064 cat >conftest.$ac_ext <<_ACEOF
9065 #line $LINENO "configure"
9066 #include "confdefs.h"
9068 #ifdef F77_DUMMY_MAIN
9072 int F77_DUMMY_MAIN() { return 1; }
9077 /* FIXME: Include the comments suggested by Paul. */
9079 /* Ultrix mips cc rejects this. */
9080 typedef int charset[2];
9082 /* SunOS 4.1.1 cc rejects this. */
9083 char const *const *ccp;
9085 /* NEC SVR4.0.2 mips cc rejects this. */
9086 struct point {int x, y;};
9087 static struct point const zero = {0,0};
9088 /* AIX XL C 1.02.0.0 rejects this.
9089 It does not let you subtract one const X* pointer from another in
9090 an arm of an if-expression whose if-part is not a constant
9092 const char *g = "string";
9093 ccp = &g + (g ? g-g : 0);
9094 /* HPUX 7.0 cc rejects these. */
9097 ccp = (char const *const *) p;
9098 { /* SCO 3.2v4 cc rejects this. */
9100 char const *s = 0 ? (char *) 0 : (char const *) 0;
9104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9106 const int *foo = &x[0];
9109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9110 typedef const int *iptr;
9114 { /* AIX XL C 1.02.0.0 rejects this saying
9115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9116 struct s { int j; const int *ap[3]; };
9117 struct s *b; b->j = 5;
9119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -s conftest.$ac_objext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9142 echo "$as_me: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9146 rm -f conftest.$ac_objext conftest.$ac_ext
9148 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9149 echo "${ECHO_T}$ac_cv_c_const" >&6
9150 if test $ac_cv_c_const = no; then
9152 cat >>confdefs.h <<\_ACEOF
9158 echo "$as_me:$LINENO: checking for inline" >&5
9159 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9160 if test "${ac_cv_c_inline+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 for ac_kw in inline __inline__ __inline; do
9165 cat >conftest.$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9167 #include "confdefs.h"
9169 static $ac_kw int static_foo () {return 0; }
9170 $ac_kw int foo () {return 0; }
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_c_inline=$ac_kw; break
9188 echo "$as_me: failed program was:" >&5
9189 cat conftest.$ac_ext >&5
9191 rm -f conftest.$ac_objext conftest.$ac_ext
9195 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9196 echo "${ECHO_T}$ac_cv_c_inline" >&6
9197 case $ac_cv_c_inline in
9200 cat >>confdefs.h <<\_ACEOF
9204 *) cat >>confdefs.h <<_ACEOF
9205 #define inline $ac_cv_c_inline
9210 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9211 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9212 if test "${ac_cv_c_stringize+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 char *s = x(teststring);
9222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9223 egrep "#teststring" >/dev/null 2>&1; then
9224 ac_cv_c_stringize=no
9226 ac_cv_c_stringize=yes
9231 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9232 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9233 if test $ac_cv_c_stringize = yes; then
9235 cat >>confdefs.h <<\_ACEOF
9236 #define HAVE_STRINGIZE 1
9241 echo "$as_me:$LINENO: checking for signed types" >&5
9242 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9243 if test "${pgac_cv_c_signed+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 cat >conftest.$ac_ext <<_ACEOF
9247 #line $LINENO "configure"
9248 #include "confdefs.h"
9250 #ifdef F77_DUMMY_MAIN
9254 int F77_DUMMY_MAIN() { return 1; }
9259 signed char c; signed short s; signed int i;
9264 rm -f conftest.$ac_objext
9265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9266 (eval $ac_compile) 2>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -s conftest.$ac_objext'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; }; then
9276 pgac_cv_c_signed=yes
9278 echo "$as_me: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9282 rm -f conftest.$ac_objext conftest.$ac_ext
9284 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9285 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9286 if test x"$pgac_cv_c_signed" = xno ; then
9288 cat >>confdefs.h <<\_ACEOF
9293 echo "$as_me:$LINENO: checking for working volatile" >&5
9294 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9295 if test "${ac_cv_c_volatile+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9298 cat >conftest.$ac_ext <<_ACEOF
9299 #line $LINENO "configure"
9300 #include "confdefs.h"
9302 #ifdef F77_DUMMY_MAIN
9306 int F77_DUMMY_MAIN() { return 1; }
9318 rm -f conftest.$ac_objext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9320 (eval $ac_compile) 2>&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try='test -s conftest.$ac_objext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_cv_c_volatile=yes
9332 echo "$as_me: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9336 rm -f conftest.$ac_objext conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9339 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9340 if test $ac_cv_c_volatile = no; then
9342 cat >>confdefs.h <<\_ACEOF
9348 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9349 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9350 if test "${ac_cv_struct_tm+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 #include "confdefs.h"
9356 #include <sys/types.h>
9359 #ifdef F77_DUMMY_MAIN
9363 int F77_DUMMY_MAIN() { return 1; }
9368 struct tm *tp; tp->tm_sec;
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375 (eval $ac_compile) 2>&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } &&
9379 { ac_try='test -s conftest.$ac_objext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 ac_cv_struct_tm=time.h
9387 echo "$as_me: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9389 ac_cv_struct_tm=sys/time.h
9391 rm -f conftest.$ac_objext conftest.$ac_ext
9393 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9394 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9395 if test $ac_cv_struct_tm = sys/time.h; then
9397 cat >>confdefs.h <<\_ACEOF
9398 #define TM_IN_SYS_TIME 1
9403 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9404 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9405 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 cat >conftest.$ac_ext <<_ACEOF
9409 #line $LINENO "configure"
9410 #include "confdefs.h"
9411 #include <sys/types.h>
9412 #include <$ac_cv_struct_tm>
9415 #ifdef F77_DUMMY_MAIN
9419 int F77_DUMMY_MAIN() { return 1; }
9424 static struct tm ac_aggr;
9425 if (ac_aggr.tm_zone)
9431 rm -f conftest.$ac_objext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9433 (eval $ac_compile) 2>&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } &&
9437 { ac_try='test -s conftest.$ac_objext'
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; }; then
9443 ac_cv_member_struct_tm_tm_zone=yes
9445 echo "$as_me: failed program was:" >&5
9446 cat conftest.$ac_ext >&5
9447 ac_cv_member_struct_tm_tm_zone=no
9449 rm -f conftest.$ac_objext conftest.$ac_ext
9451 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9452 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9453 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9455 cat >>confdefs.h <<_ACEOF
9456 #define HAVE_STRUCT_TM_TM_ZONE 1
9462 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9464 cat >>confdefs.h <<\_ACEOF
9465 #define HAVE_TM_ZONE 1
9469 echo "$as_me:$LINENO: checking for tzname" >&5
9470 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9471 if test "${ac_cv_var_tzname+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >conftest.$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9476 #include "confdefs.h"
9478 #ifndef tzname /* For SGI. */
9479 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9482 #ifdef F77_DUMMY_MAIN
9486 int F77_DUMMY_MAIN() { return 1; }
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_cv_var_tzname=yes
9510 echo "$as_me: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9516 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9517 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9518 if test $ac_cv_var_tzname = yes; then
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_TZNAME 1
9527 echo "$as_me:$LINENO: checking for union semun" >&5
9528 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9529 if test "${ac_cv_type_union_semun+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9533 #line $LINENO "configure"
9534 #include "confdefs.h"
9535 #include <sys/types.h>
9536 #include <sys/ipc.h>
9537 #include <sys/sem.h>
9539 #ifdef F77_DUMMY_MAIN
9543 int F77_DUMMY_MAIN() { return 1; }
9548 if ((union semun *) 0)
9550 if (sizeof (union semun))
9556 rm -f conftest.$ac_objext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9558 (eval $ac_compile) 2>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } &&
9562 { ac_try='test -s conftest.$ac_objext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_type_union_semun=yes
9570 echo "$as_me: failed program was:" >&5
9571 cat conftest.$ac_ext >&5
9572 ac_cv_type_union_semun=no
9574 rm -f conftest.$ac_objext conftest.$ac_ext
9576 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9577 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9578 if test $ac_cv_type_union_semun = yes; then
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_UNION_SEMUN 1
9587 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9588 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9589 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9593 #line $LINENO "configure"
9594 #include "confdefs.h"
9595 #include <sys/types.h>
9596 #ifdef HAVE_SYS_UN_H
9601 #ifdef F77_DUMMY_MAIN
9605 int F77_DUMMY_MAIN() { return 1; }
9610 if ((struct sockaddr_un *) 0)
9612 if (sizeof (struct sockaddr_un))
9618 rm -f conftest.$ac_objext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9620 (eval $ac_compile) 2>&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try='test -s conftest.$ac_objext'
9625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9630 ac_cv_type_struct_sockaddr_un=yes
9632 echo "$as_me: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9634 ac_cv_type_struct_sockaddr_un=no
9636 rm -f conftest.$ac_objext conftest.$ac_ext
9638 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9639 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9640 if test $ac_cv_type_struct_sockaddr_un = yes; then
9642 cat >>confdefs.h <<_ACEOF
9643 #define HAVE_STRUCT_SOCKADDR_UN 1
9650 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9651 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9652 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 cat >conftest.$ac_ext <<_ACEOF
9656 #line $LINENO "configure"
9657 #include "confdefs.h"
9658 #include <sys/param.h>
9659 #include <sys/socket.h>
9660 #include <sys/ucred.h>
9662 #ifdef F77_DUMMY_MAIN
9666 int F77_DUMMY_MAIN() { return 1; }
9671 if ((struct cmsgcred *) 0)
9673 if (sizeof (struct cmsgcred))
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9681 (eval $ac_compile) 2>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_type_struct_cmsgcred=yes
9693 echo "$as_me: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 ac_cv_type_struct_cmsgcred=no
9697 rm -f conftest.$ac_objext conftest.$ac_ext
9699 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9700 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9701 if test $ac_cv_type_struct_cmsgcred = yes; then
9703 cat >>confdefs.h <<_ACEOF
9704 #define HAVE_STRUCT_CMSGCRED 1
9709 echo "$as_me:$LINENO: checking for struct fcred" >&5
9710 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9711 if test "${ac_cv_type_struct_fcred+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 cat >conftest.$ac_ext <<_ACEOF
9715 #line $LINENO "configure"
9716 #include "confdefs.h"
9717 #include <sys/param.h>
9718 #include <sys/socket.h>
9719 #include <sys/ucred.h>
9721 #ifdef F77_DUMMY_MAIN
9725 int F77_DUMMY_MAIN() { return 1; }
9730 if ((struct fcred *) 0)
9732 if (sizeof (struct fcred))
9738 rm -f conftest.$ac_objext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740 (eval $ac_compile) 2>&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -s conftest.$ac_objext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_type_struct_fcred=yes
9752 echo "$as_me: failed program was:" >&5
9753 cat conftest.$ac_ext >&5
9754 ac_cv_type_struct_fcred=no
9756 rm -f conftest.$ac_objext conftest.$ac_ext
9758 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9759 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9760 if test $ac_cv_type_struct_fcred = yes; then
9762 cat >>confdefs.h <<_ACEOF
9763 #define HAVE_STRUCT_FCRED 1
9768 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9769 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9770 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 cat >conftest.$ac_ext <<_ACEOF
9774 #line $LINENO "configure"
9775 #include "confdefs.h"
9776 #include <sys/param.h>
9777 #include <sys/socket.h>
9778 #include <sys/ucred.h>
9780 #ifdef F77_DUMMY_MAIN
9784 int F77_DUMMY_MAIN() { return 1; }
9789 if ((struct sockcred *) 0)
9791 if (sizeof (struct sockcred))
9797 rm -f conftest.$ac_objext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9799 (eval $ac_compile) 2>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_type_struct_sockcred=yes
9811 echo "$as_me: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9813 ac_cv_type_struct_sockcred=no
9815 rm -f conftest.$ac_objext conftest.$ac_ext
9817 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9818 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9819 if test $ac_cv_type_struct_sockcred = yes; then
9821 cat >>confdefs.h <<_ACEOF
9822 #define HAVE_STRUCT_SOCKCRED 1
9829 if test "$with_zlib" = yes; then
9830 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9831 # did not). While we could work around the lack of z_streamp, it
9832 # seems unwise to encourage people to use such old zlib versions...
9833 echo "$as_me:$LINENO: checking for z_streamp" >&5
9834 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9835 if test "${ac_cv_type_z_streamp+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 cat >conftest.$ac_ext <<_ACEOF
9839 #line $LINENO "configure"
9840 #include "confdefs.h"
9843 #ifdef F77_DUMMY_MAIN
9847 int F77_DUMMY_MAIN() { return 1; }
9852 if ((z_streamp *) 0)
9854 if (sizeof (z_streamp))
9860 rm -f conftest.$ac_objext
9861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9862 (eval $ac_compile) 2>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -s conftest.$ac_objext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_cv_type_z_streamp=yes
9874 echo "$as_me: failed program was:" >&5
9875 cat conftest.$ac_ext >&5
9876 ac_cv_type_z_streamp=no
9878 rm -f conftest.$ac_objext conftest.$ac_ext
9880 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9881 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9882 if test $ac_cv_type_z_streamp = yes; then
9885 { { echo "$as_me:$LINENO: error: zlib version is too old
9886 Use --without-zlib to disable zlib support." >&5
9887 echo "$as_me: error: zlib version is too old
9888 Use --without-zlib to disable zlib support." >&2;}
9889 { (exit 1); exit 1; }; }
9894 if test "$with_krb5" = yes; then
9895 # Check for differences between MIT and Heimdal (KTH) releases
9896 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9897 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9898 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 cat >conftest.$ac_ext <<_ACEOF
9902 #line $LINENO "configure"
9903 #include "confdefs.h"
9906 #ifdef F77_DUMMY_MAIN
9910 int F77_DUMMY_MAIN() { return 1; }
9915 static krb5_ticket ac_aggr;
9916 if (ac_aggr.enc_part2)
9922 rm -f conftest.$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924 (eval $ac_compile) 2>&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -s conftest.$ac_objext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 ac_cv_member_krb5_ticket_enc_part2=yes
9936 echo "$as_me: failed program was:" >&5
9937 cat conftest.$ac_ext >&5
9938 ac_cv_member_krb5_ticket_enc_part2=no
9940 rm -f conftest.$ac_objext conftest.$ac_ext
9942 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9943 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9944 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9946 cat >>confdefs.h <<_ACEOF
9947 #define HAVE_KRB5_TICKET_ENC_PART2 1
9952 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9953 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9954 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9959 #include "confdefs.h"
9962 #ifdef F77_DUMMY_MAIN
9966 int F77_DUMMY_MAIN() { return 1; }
9971 static krb5_ticket ac_aggr;
9978 rm -f conftest.$ac_objext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980 (eval $ac_compile) 2>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try='test -s conftest.$ac_objext'
9985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); }; }; then
9990 ac_cv_member_krb5_ticket_client=yes
9992 echo "$as_me: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9994 ac_cv_member_krb5_ticket_client=no
9996 rm -f conftest.$ac_objext conftest.$ac_ext
9998 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9999 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10000 if test $ac_cv_member_krb5_ticket_client = yes; then
10002 cat >>confdefs.h <<_ACEOF
10003 #define HAVE_KRB5_TICKET_CLIENT 1
10008 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10009 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10010 { (exit 1); exit 1; }; }
10015 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10016 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10017 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 cat >conftest.$ac_ext <<_ACEOF
10021 #line $LINENO "configure"
10022 #include "confdefs.h"
10025 #ifdef F77_DUMMY_MAIN
10026 # ifdef __cplusplus
10029 int F77_DUMMY_MAIN() { return 1; }
10034 static krb5_error ac_aggr;
10035 if (ac_aggr.text.data)
10041 rm -f conftest.$ac_objext
10042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -s conftest.$ac_objext'
10048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049 (eval $ac_try) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); }; }; then
10053 ac_cv_member_krb5_error_text_data=yes
10055 echo "$as_me: failed program was:" >&5
10056 cat conftest.$ac_ext >&5
10057 ac_cv_member_krb5_error_text_data=no
10059 rm -f conftest.$ac_objext conftest.$ac_ext
10061 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10062 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10063 if test $ac_cv_member_krb5_error_text_data = yes; then
10065 cat >>confdefs.h <<_ACEOF
10066 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10071 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10072 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10073 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 cat >conftest.$ac_ext <<_ACEOF
10077 #line $LINENO "configure"
10078 #include "confdefs.h"
10081 #ifdef F77_DUMMY_MAIN
10082 # ifdef __cplusplus
10085 int F77_DUMMY_MAIN() { return 1; }
10090 static krb5_error ac_aggr;
10091 if (ac_aggr.e_data)
10097 rm -f conftest.$ac_objext
10098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10099 (eval $ac_compile) 2>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_member_krb5_error_e_data=yes
10111 echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10113 ac_cv_member_krb5_error_e_data=no
10115 rm -f conftest.$ac_objext conftest.$ac_ext
10117 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10118 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10119 if test $ac_cv_member_krb5_error_e_data = yes; then
10122 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10123 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10124 { (exit 1); exit 1; }; }
10133 ## Functions, global variables
10135 echo "$as_me:$LINENO: checking for int timezone" >&5
10136 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10137 if test "${pgac_cv_var_int_timezone+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 cat >conftest.$ac_ext <<_ACEOF
10141 #line $LINENO "configure"
10142 #include "confdefs.h"
10145 #ifdef F77_DUMMY_MAIN
10146 # ifdef __cplusplus
10149 int F77_DUMMY_MAIN() { return 1; }
10154 res = timezone / 60;
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161 (eval $ac_link) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } &&
10165 { ac_try='test -s conftest$ac_exeext'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; }; then
10171 pgac_cv_var_int_timezone=yes
10173 echo "$as_me: failed program was:" >&5
10174 cat conftest.$ac_ext >&5
10175 pgac_cv_var_int_timezone=no
10177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10179 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10180 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10181 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_INT_TIMEZONE
10188 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10189 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10190 if test "${ac_cv_func_accept_arg1+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 if test "${ac_cv_func_accept_arg2+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 if test "${ac_cv_func_accept_arg3+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10200 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10201 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10202 cat >conftest.$ac_ext <<_ACEOF
10203 #line $LINENO "configure"
10204 #include "confdefs.h"
10205 #ifdef HAVE_SYS_TYPES_H
10206 #include <sys/types.h>
10208 #ifdef HAVE_SYS_SOCKET_H
10209 #include <sys/socket.h>
10211 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10212 #ifdef F77_DUMMY_MAIN
10213 # ifdef __cplusplus
10216 int F77_DUMMY_MAIN() { return 1; }
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } &&
10232 { ac_try='test -s conftest.$ac_objext'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 ac_not_found=no; break 3
10240 echo "$as_me: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10244 rm -f conftest.$ac_objext conftest.$ac_ext
10248 if test "$ac_not_found" = yes; then
10249 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10250 echo "$as_me: error: could not determine argument types" >&2;}
10251 { (exit 1); exit 1; }; }
10253 if test "$ac_cv_func_accept_arg3" = "void"; then
10254 ac_cv_func_accept_arg3=int
10262 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10263 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10265 cat >>confdefs.h <<_ACEOF
10266 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10270 cat >>confdefs.h <<_ACEOF
10271 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10275 cat >>confdefs.h <<_ACEOF
10276 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10280 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10281 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10282 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10285 cat >conftest.$ac_ext <<_ACEOF
10286 #line $LINENO "configure"
10287 #include "confdefs.h"
10288 #include <sys/time.h>
10289 #ifdef F77_DUMMY_MAIN
10290 # ifdef __cplusplus
10293 int F77_DUMMY_MAIN() { return 1; }
10298 struct timeval *tp;
10299 struct timezone *tzp;
10300 gettimeofday(tp,tzp);
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307 (eval $ac_compile) 2>&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 pgac_cv_func_gettimeofday_1arg=no
10319 echo "$as_me: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10321 pgac_cv_func_gettimeofday_1arg=yes
10323 rm -f conftest.$ac_objext conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10326 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10327 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10329 cat >>confdefs.h <<\_ACEOF
10330 #define GETTIMEOFDAY_1ARG
10335 # SunOS doesn't handle negative byte comparisons properly with +/- return
10336 echo "$as_me:$LINENO: checking for 8-bit clean memcmp" >&5
10337 echo $ECHO_N "checking for 8-bit clean memcmp... $ECHO_C" >&6
10338 if test "${pgac_cv_func_memcmp_clean+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 if test "$cross_compiling" = yes; then
10342 pgac_cv_func_memcmp_clean=no
10344 cat >conftest.$ac_ext <<_ACEOF
10345 #line $LINENO "configure"
10346 #include "confdefs.h"
10350 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10351 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
10355 rm -f conftest$ac_exeext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357 (eval $ac_link) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 pgac_cv_func_memcmp_clean=yes
10368 echo "$as_me: program exited with status $ac_status" >&5
10369 echo "$as_me: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 ( exit $ac_status )
10372 pgac_cv_func_memcmp_clean=no
10374 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10377 echo "$as_me:$LINENO: result: $pgac_cv_func_memcmp_clean" >&5
10378 echo "${ECHO_T}$pgac_cv_func_memcmp_clean" >&6
10379 if test $pgac_cv_func_memcmp_clean = no ; then
10398 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
10400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10401 echo "$as_me:$LINENO: checking for $ac_func" >&5
10402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10403 if eval "test \"\${$as_ac_var+set}\" = set"; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 cat >conftest.$ac_ext <<_ACEOF
10407 #line $LINENO "configure"
10408 #include "confdefs.h"
10409 /* System header to define __stub macros and hopefully few prototypes,
10410 which can conflict with char $ac_func (); below. */
10411 #include <assert.h>
10412 /* Override any gcc2 internal prototype to avoid an error. */
10416 /* We use char because int might match the return type of a gcc2
10417 builtin and then its argument prototype would still apply. */
10421 #ifdef F77_DUMMY_MAIN
10422 # ifdef __cplusplus
10425 int F77_DUMMY_MAIN() { return 1; }
10430 /* The GNU C library defines this for functions which it implements
10431 to always fail with ENOSYS. Some functions are actually named
10432 something starting with __ and the normal name is an alias. */
10433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10445 (eval $ac_link) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -s conftest$ac_exeext'
10450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 eval "$as_ac_var=yes"
10457 echo "$as_me: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 eval "$as_ac_var=no"
10461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10464 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10465 if test `eval echo '${'$as_ac_var'}'` = yes; then
10466 cat >>confdefs.h <<_ACEOF
10467 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10474 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10475 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10476 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 cat >conftest.$ac_ext <<_ACEOF
10480 #line $LINENO "configure"
10481 #include "confdefs.h"
10482 #include <unistd.h>
10484 #ifdef F77_DUMMY_MAIN
10485 # ifdef __cplusplus
10488 int F77_DUMMY_MAIN() { return 1; }
10494 char *p = (char *) fdatasync;
10501 rm -f conftest.$ac_objext
10502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503 (eval $ac_compile) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
10507 { ac_try='test -s conftest.$ac_objext'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; }; then
10513 ac_cv_have_decl_fdatasync=yes
10515 echo "$as_me: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10517 ac_cv_have_decl_fdatasync=no
10519 rm -f conftest.$ac_objext conftest.$ac_ext
10521 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10522 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10523 if test $ac_cv_have_decl_fdatasync = yes; then
10525 cat >>confdefs.h <<_ACEOF
10526 #define HAVE_DECL_FDATASYNC 1
10531 cat >>confdefs.h <<_ACEOF
10532 #define HAVE_DECL_FDATASYNC 0
10540 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10541 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10542 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 cat >conftest.$ac_ext <<_ACEOF
10546 #line $LINENO "configure"
10547 #include "confdefs.h"
10548 #include <machine/vmparam.h>
10549 #include <sys/exec.h>
10551 #ifdef F77_DUMMY_MAIN
10552 # ifdef __cplusplus
10555 int F77_DUMMY_MAIN() { return 1; }
10560 PS_STRINGS->ps_nargvstr = 1;
10561 PS_STRINGS->ps_argvstr = "foo";
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -s conftest$ac_exeext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 pgac_cv_var_PS_STRINGS=yes
10580 echo "$as_me: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10582 pgac_cv_var_PS_STRINGS=no
10584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10586 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10587 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10588 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10590 cat >>confdefs.h <<\_ACEOF
10591 #define HAVE_PS_STRINGS
10597 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10598 # is missing. Yes, there are machines that have only one. We may
10599 # also decide to use snprintf.c if snprintf() is present but does not
10600 # have working "long long int" support -- see below.
10604 for ac_func in snprintf
10606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10607 echo "$as_me:$LINENO: checking for $ac_func" >&5
10608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10609 if eval "test \"\${$as_ac_var+set}\" = set"; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 cat >conftest.$ac_ext <<_ACEOF
10613 #line $LINENO "configure"
10614 #include "confdefs.h"
10615 /* System header to define __stub macros and hopefully few prototypes,
10616 which can conflict with char $ac_func (); below. */
10617 #include <assert.h>
10618 /* Override any gcc2 internal prototype to avoid an error. */
10622 /* We use char because int might match the return type of a gcc2
10623 builtin and then its argument prototype would still apply. */
10627 #ifdef F77_DUMMY_MAIN
10628 # ifdef __cplusplus
10631 int F77_DUMMY_MAIN() { return 1; }
10636 /* The GNU C library defines this for functions which it implements
10637 to always fail with ENOSYS. Some functions are actually named
10638 something starting with __ and the normal name is an alias. */
10639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10649 rm -f conftest.$ac_objext conftest$ac_exeext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651 (eval $ac_link) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -s conftest$ac_exeext'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }; then
10661 eval "$as_ac_var=yes"
10663 echo "$as_me: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10665 eval "$as_ac_var=no"
10667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10671 if test `eval echo '${'$as_ac_var'}'` = yes; then
10672 cat >>confdefs.h <<_ACEOF
10673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10677 SNPRINTF='snprintf.o'
10682 for ac_func in vsnprintf
10684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10685 echo "$as_me:$LINENO: checking for $ac_func" >&5
10686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10687 if eval "test \"\${$as_ac_var+set}\" = set"; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 cat >conftest.$ac_ext <<_ACEOF
10691 #line $LINENO "configure"
10692 #include "confdefs.h"
10693 /* System header to define __stub macros and hopefully few prototypes,
10694 which can conflict with char $ac_func (); below. */
10695 #include <assert.h>
10696 /* Override any gcc2 internal prototype to avoid an error. */
10700 /* We use char because int might match the return type of a gcc2
10701 builtin and then its argument prototype would still apply. */
10705 #ifdef F77_DUMMY_MAIN
10706 # ifdef __cplusplus
10709 int F77_DUMMY_MAIN() { return 1; }
10714 /* The GNU C library defines this for functions which it implements
10715 to always fail with ENOSYS. Some functions are actually named
10716 something starting with __ and the normal name is an alias. */
10717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10729 (eval $ac_link) 2>&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } &&
10733 { ac_try='test -s conftest$ac_exeext'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
10739 eval "$as_ac_var=yes"
10741 echo "$as_me: failed program was:" >&5
10742 cat conftest.$ac_ext >&5
10743 eval "$as_ac_var=no"
10745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10749 if test `eval echo '${'$as_ac_var'}'` = yes; then
10750 cat >>confdefs.h <<_ACEOF
10751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10755 SNPRINTF='snprintf.o'
10762 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10763 # include/c.h will provide declarations. Note this is a separate test
10764 # from whether the functions exist in the C library --- there are
10765 # systems that have the functions but don't bother to declare them :-(
10767 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10768 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10769 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 cat >conftest.$ac_ext <<_ACEOF
10773 #line $LINENO "configure"
10774 #include "confdefs.h"
10775 $ac_includes_default
10776 #ifdef F77_DUMMY_MAIN
10777 # ifdef __cplusplus
10780 int F77_DUMMY_MAIN() { return 1; }
10786 char *p = (char *) snprintf;
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795 (eval $ac_compile) 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -s conftest.$ac_objext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_cv_have_decl_snprintf=yes
10807 echo "$as_me: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 ac_cv_have_decl_snprintf=no
10811 rm -f conftest.$ac_objext conftest.$ac_ext
10813 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10814 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10815 if test $ac_cv_have_decl_snprintf = yes; then
10817 cat >>confdefs.h <<_ACEOF
10818 #define HAVE_DECL_SNPRINTF 1
10823 cat >>confdefs.h <<_ACEOF
10824 #define HAVE_DECL_SNPRINTF 0
10829 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10830 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10831 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 cat >conftest.$ac_ext <<_ACEOF
10835 #line $LINENO "configure"
10836 #include "confdefs.h"
10837 $ac_includes_default
10838 #ifdef F77_DUMMY_MAIN
10839 # ifdef __cplusplus
10842 int F77_DUMMY_MAIN() { return 1; }
10848 char *p = (char *) vsnprintf;
10855 rm -f conftest.$ac_objext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10857 (eval $ac_compile) 2>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -s conftest.$ac_objext'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; }; then
10867 ac_cv_have_decl_vsnprintf=yes
10869 echo "$as_me: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 ac_cv_have_decl_vsnprintf=no
10873 rm -f conftest.$ac_objext conftest.$ac_ext
10875 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10876 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10877 if test $ac_cv_have_decl_vsnprintf = yes; then
10879 cat >>confdefs.h <<_ACEOF
10880 #define HAVE_DECL_VSNPRINTF 1
10885 cat >>confdefs.h <<_ACEOF
10886 #define HAVE_DECL_VSNPRINTF 0
10895 # do this one the hard way in case isinf() is a macro
10896 echo "$as_me:$LINENO: checking for isinf" >&5
10897 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10898 if test "${ac_cv_func_isinf+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 cat >conftest.$ac_ext <<_ACEOF
10902 #line $LINENO "configure"
10903 #include "confdefs.h"
10906 #ifdef F77_DUMMY_MAIN
10907 # ifdef __cplusplus
10910 int F77_DUMMY_MAIN() { return 1; }
10915 double x = 0.0; int res = isinf(x);
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10922 (eval $ac_link) 2>&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } &&
10926 { ac_try='test -s conftest$ac_exeext'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }; then
10932 ac_cv_func_isinf=yes
10934 echo "$as_me: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10936 ac_cv_func_isinf=no
10938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10940 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10941 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10943 if test $ac_cv_func_isinf = yes ; then
10945 cat >>confdefs.h <<\_ACEOF
10946 #define HAVE_ISINF 1
10952 # Look for a way to implement a substitute for isinf()
10957 for ac_func in fpclass fp_class fp_class_d class
10959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 echo "$as_me:$LINENO: checking for $ac_func" >&5
10961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10962 if eval "test \"\${$as_ac_var+set}\" = set"; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 cat >conftest.$ac_ext <<_ACEOF
10966 #line $LINENO "configure"
10967 #include "confdefs.h"
10968 /* System header to define __stub macros and hopefully few prototypes,
10969 which can conflict with char $ac_func (); below. */
10970 #include <assert.h>
10971 /* Override any gcc2 internal prototype to avoid an error. */
10975 /* We use char because int might match the return type of a gcc2
10976 builtin and then its argument prototype would still apply. */
10980 #ifdef F77_DUMMY_MAIN
10981 # ifdef __cplusplus
10984 int F77_DUMMY_MAIN() { return 1; }
10989 /* The GNU C library defines this for functions which it implements
10990 to always fail with ENOSYS. Some functions are actually named
10991 something starting with __ and the normal name is an alias. */
10992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11002 rm -f conftest.$ac_objext conftest$ac_exeext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004 (eval $ac_link) 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } &&
11008 { ac_try='test -s conftest$ac_exeext'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; }; then
11014 eval "$as_ac_var=yes"
11016 echo "$as_me: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11018 eval "$as_ac_var=no"
11020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11024 if test `eval echo '${'$as_ac_var'}'` = yes; then
11025 cat >>confdefs.h <<_ACEOF
11026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11037 for ac_func in getrusage
11039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11040 echo "$as_me:$LINENO: checking for $ac_func" >&5
11041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11042 if eval "test \"\${$as_ac_var+set}\" = set"; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 cat >conftest.$ac_ext <<_ACEOF
11046 #line $LINENO "configure"
11047 #include "confdefs.h"
11048 /* System header to define __stub macros and hopefully few prototypes,
11049 which can conflict with char $ac_func (); below. */
11050 #include <assert.h>
11051 /* Override any gcc2 internal prototype to avoid an error. */
11055 /* We use char because int might match the return type of a gcc2
11056 builtin and then its argument prototype would still apply. */
11060 #ifdef F77_DUMMY_MAIN
11061 # ifdef __cplusplus
11064 int F77_DUMMY_MAIN() { return 1; }
11069 /* The GNU C library defines this for functions which it implements
11070 to always fail with ENOSYS. Some functions are actually named
11071 something starting with __ and the normal name is an alias. */
11072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -s conftest$ac_exeext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 eval "$as_ac_var=yes"
11096 echo "$as_me: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11098 eval "$as_ac_var=no"
11100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11104 if test `eval echo '${'$as_ac_var'}'` = yes; then
11105 cat >>confdefs.h <<_ACEOF
11106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110 GETRUSAGE='getrusage.o'
11116 for ac_func in srandom
11118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11119 echo "$as_me:$LINENO: checking for $ac_func" >&5
11120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11121 if eval "test \"\${$as_ac_var+set}\" = set"; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 cat >conftest.$ac_ext <<_ACEOF
11125 #line $LINENO "configure"
11126 #include "confdefs.h"
11127 /* System header to define __stub macros and hopefully few prototypes,
11128 which can conflict with char $ac_func (); below. */
11129 #include <assert.h>
11130 /* Override any gcc2 internal prototype to avoid an error. */
11134 /* We use char because int might match the return type of a gcc2
11135 builtin and then its argument prototype would still apply. */
11139 #ifdef F77_DUMMY_MAIN
11140 # ifdef __cplusplus
11143 int F77_DUMMY_MAIN() { return 1; }
11148 /* The GNU C library defines this for functions which it implements
11149 to always fail with ENOSYS. Some functions are actually named
11150 something starting with __ and the normal name is an alias. */
11151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163 (eval $ac_link) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -s conftest$ac_exeext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 eval "$as_ac_var=yes"
11175 echo "$as_me: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11177 eval "$as_ac_var=no"
11179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11183 if test `eval echo '${'$as_ac_var'}'` = yes; then
11184 cat >>confdefs.h <<_ACEOF
11185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11189 SRANDOM='srandom.o'
11195 for ac_func in gethostname
11197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11198 echo "$as_me:$LINENO: checking for $ac_func" >&5
11199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11200 if eval "test \"\${$as_ac_var+set}\" = set"; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11203 cat >conftest.$ac_ext <<_ACEOF
11204 #line $LINENO "configure"
11205 #include "confdefs.h"
11206 /* System header to define __stub macros and hopefully few prototypes,
11207 which can conflict with char $ac_func (); below. */
11208 #include <assert.h>
11209 /* Override any gcc2 internal prototype to avoid an error. */
11213 /* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */
11218 #ifdef F77_DUMMY_MAIN
11219 # ifdef __cplusplus
11222 int F77_DUMMY_MAIN() { return 1; }
11227 /* The GNU C library defines this for functions which it implements
11228 to always fail with ENOSYS. Some functions are actually named
11229 something starting with __ and the normal name is an alias. */
11230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } &&
11246 { ac_try='test -s conftest$ac_exeext'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; }; then
11252 eval "$as_ac_var=yes"
11254 echo "$as_me: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11256 eval "$as_ac_var=no"
11258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11262 if test `eval echo '${'$as_ac_var'}'` = yes; then
11263 cat >>confdefs.h <<_ACEOF
11264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11268 GETHOSTNAME='gethostname.o'
11274 for ac_func in random
11276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11279 if eval "test \"\${$as_ac_var+set}\" = set"; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 cat >conftest.$ac_ext <<_ACEOF
11283 #line $LINENO "configure"
11284 #include "confdefs.h"
11285 /* System header to define __stub macros and hopefully few prototypes,
11286 which can conflict with char $ac_func (); below. */
11287 #include <assert.h>
11288 /* Override any gcc2 internal prototype to avoid an error. */
11292 /* We use char because int might match the return type of a gcc2
11293 builtin and then its argument prototype would still apply. */
11297 #ifdef F77_DUMMY_MAIN
11298 # ifdef __cplusplus
11301 int F77_DUMMY_MAIN() { return 1; }
11306 /* The GNU C library defines this for functions which it implements
11307 to always fail with ENOSYS. Some functions are actually named
11308 something starting with __ and the normal name is an alias. */
11309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11319 rm -f conftest.$ac_objext conftest$ac_exeext
11320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11321 (eval $ac_link) 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); } &&
11325 { ac_try='test -s conftest$ac_exeext'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 eval "$as_ac_var=yes"
11333 echo "$as_me: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 eval "$as_ac_var=no"
11337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11341 if test `eval echo '${'$as_ac_var'}'` = yes; then
11342 cat >>confdefs.h <<_ACEOF
11343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11347 MISSING_RANDOM='random.o'
11353 for ac_func in inet_aton
11355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11356 echo "$as_me:$LINENO: checking for $ac_func" >&5
11357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11358 if eval "test \"\${$as_ac_var+set}\" = set"; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 cat >conftest.$ac_ext <<_ACEOF
11362 #line $LINENO "configure"
11363 #include "confdefs.h"
11364 /* System header to define __stub macros and hopefully few prototypes,
11365 which can conflict with char $ac_func (); below. */
11366 #include <assert.h>
11367 /* Override any gcc2 internal prototype to avoid an error. */
11371 /* We use char because int might match the return type of a gcc2
11372 builtin and then its argument prototype would still apply. */
11376 #ifdef F77_DUMMY_MAIN
11377 # ifdef __cplusplus
11380 int F77_DUMMY_MAIN() { return 1; }
11385 /* The GNU C library defines this for functions which it implements
11386 to always fail with ENOSYS. Some functions are actually named
11387 something starting with __ and the normal name is an alias. */
11388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11398 rm -f conftest.$ac_objext conftest$ac_exeext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11400 (eval $ac_link) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
11404 { ac_try='test -s conftest$ac_exeext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 eval "$as_ac_var=yes"
11412 echo "$as_me: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11414 eval "$as_ac_var=no"
11416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11420 if test `eval echo '${'$as_ac_var'}'` = yes; then
11421 cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11426 INET_ATON='inet_aton.o'
11432 for ac_func in strerror
11434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11435 echo "$as_me:$LINENO: checking for $ac_func" >&5
11436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11437 if eval "test \"\${$as_ac_var+set}\" = set"; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 #include "confdefs.h"
11443 /* System header to define __stub macros and hopefully few prototypes,
11444 which can conflict with char $ac_func (); below. */
11445 #include <assert.h>
11446 /* Override any gcc2 internal prototype to avoid an error. */
11450 /* We use char because int might match the return type of a gcc2
11451 builtin and then its argument prototype would still apply. */
11455 #ifdef F77_DUMMY_MAIN
11456 # ifdef __cplusplus
11459 int F77_DUMMY_MAIN() { return 1; }
11464 /* The GNU C library defines this for functions which it implements
11465 to always fail with ENOSYS. Some functions are actually named
11466 something starting with __ and the normal name is an alias. */
11467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479 (eval $ac_link) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try='test -s conftest$ac_exeext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 eval "$as_ac_var=yes"
11491 echo "$as_me: failed program was:" >&5
11492 cat conftest.$ac_ext >&5
11493 eval "$as_ac_var=no"
11495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11499 if test `eval echo '${'$as_ac_var'}'` = yes; then
11500 cat >>confdefs.h <<_ACEOF
11501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11505 STRERROR='strerror.o'
11511 for ac_func in strdup
11513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11514 echo "$as_me:$LINENO: checking for $ac_func" >&5
11515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11516 if eval "test \"\${$as_ac_var+set}\" = set"; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 cat >conftest.$ac_ext <<_ACEOF
11520 #line $LINENO "configure"
11521 #include "confdefs.h"
11522 /* System header to define __stub macros and hopefully few prototypes,
11523 which can conflict with char $ac_func (); below. */
11524 #include <assert.h>
11525 /* Override any gcc2 internal prototype to avoid an error. */
11529 /* We use char because int might match the return type of a gcc2
11530 builtin and then its argument prototype would still apply. */
11534 #ifdef F77_DUMMY_MAIN
11535 # ifdef __cplusplus
11538 int F77_DUMMY_MAIN() { return 1; }
11543 /* The GNU C library defines this for functions which it implements
11544 to always fail with ENOSYS. Some functions are actually named
11545 something starting with __ and the normal name is an alias. */
11546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11558 (eval $ac_link) 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -s conftest$ac_exeext'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 eval "$as_ac_var=yes"
11570 echo "$as_me: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11572 eval "$as_ac_var=no"
11574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11578 if test `eval echo '${'$as_ac_var'}'` = yes; then
11579 cat >>confdefs.h <<_ACEOF
11580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11584 STRDUP='../../utils/strdup.o'
11590 for ac_func in strtol
11592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11593 echo "$as_me:$LINENO: checking for $ac_func" >&5
11594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11595 if eval "test \"\${$as_ac_var+set}\" = set"; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 cat >conftest.$ac_ext <<_ACEOF
11599 #line $LINENO "configure"
11600 #include "confdefs.h"
11601 /* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char $ac_func (); below. */
11603 #include <assert.h>
11604 /* Override any gcc2 internal prototype to avoid an error. */
11608 /* We use char because int might match the return type of a gcc2
11609 builtin and then its argument prototype would still apply. */
11613 #ifdef F77_DUMMY_MAIN
11614 # ifdef __cplusplus
11617 int F77_DUMMY_MAIN() { return 1; }
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11635 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11637 (eval $ac_link) 2>&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try='test -s conftest$ac_exeext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 eval "$as_ac_var=yes"
11649 echo "$as_me: failed program was:" >&5
11650 cat conftest.$ac_ext >&5
11651 eval "$as_ac_var=no"
11653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11656 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11657 if test `eval echo '${'$as_ac_var'}'` = yes; then
11658 cat >>confdefs.h <<_ACEOF
11659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11669 for ac_func in strtoul
11671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11672 echo "$as_me:$LINENO: checking for $ac_func" >&5
11673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11674 if eval "test \"\${$as_ac_var+set}\" = set"; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 cat >conftest.$ac_ext <<_ACEOF
11678 #line $LINENO "configure"
11679 #include "confdefs.h"
11680 /* System header to define __stub macros and hopefully few prototypes,
11681 which can conflict with char $ac_func (); below. */
11682 #include <assert.h>
11683 /* Override any gcc2 internal prototype to avoid an error. */
11687 /* We use char because int might match the return type of a gcc2
11688 builtin and then its argument prototype would still apply. */
11692 #ifdef F77_DUMMY_MAIN
11693 # ifdef __cplusplus
11696 int F77_DUMMY_MAIN() { return 1; }
11701 /* The GNU C library defines this for functions which it implements
11702 to always fail with ENOSYS. Some functions are actually named
11703 something starting with __ and the normal name is an alias. */
11704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716 (eval $ac_link) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
11720 { ac_try='test -s conftest$ac_exeext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 eval "$as_ac_var=yes"
11728 echo "$as_me: failed program was:" >&5
11729 cat conftest.$ac_ext >&5
11730 eval "$as_ac_var=no"
11732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11736 if test `eval echo '${'$as_ac_var'}'` = yes; then
11737 cat >>confdefs.h <<_ACEOF
11738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11742 STRTOUL='strtoul.o'
11748 for ac_func in strcasecmp
11750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11751 echo "$as_me:$LINENO: checking for $ac_func" >&5
11752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11753 if eval "test \"\${$as_ac_var+set}\" = set"; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 cat >conftest.$ac_ext <<_ACEOF
11757 #line $LINENO "configure"
11758 #include "confdefs.h"
11759 /* System header to define __stub macros and hopefully few prototypes,
11760 which can conflict with char $ac_func (); below. */
11761 #include <assert.h>
11762 /* Override any gcc2 internal prototype to avoid an error. */
11766 /* We use char because int might match the return type of a gcc2
11767 builtin and then its argument prototype would still apply. */
11771 #ifdef F77_DUMMY_MAIN
11772 # ifdef __cplusplus
11775 int F77_DUMMY_MAIN() { return 1; }
11780 /* The GNU C library defines this for functions which it implements
11781 to always fail with ENOSYS. Some functions are actually named
11782 something starting with __ and the normal name is an alias. */
11783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795 (eval $ac_link) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -s conftest$ac_exeext'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 eval "$as_ac_var=yes"
11807 echo "$as_me: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 eval "$as_ac_var=no"
11811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11815 if test `eval echo '${'$as_ac_var'}'` = yes; then
11816 cat >>confdefs.h <<_ACEOF
11817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11821 STRCASECMP='strcasecmp.o'
11827 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11828 # this hackery with HPUXMATHLIB allows us to cope.
11832 if [ -r /lib/pa1.1/libm.a ] ; then
11833 HPUXMATHLIB="-L /lib/pa1.1 -lm"
11839 for ac_func in rint
11841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11842 echo "$as_me:$LINENO: checking for $ac_func" >&5
11843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11844 if eval "test \"\${$as_ac_var+set}\" = set"; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 cat >conftest.$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11849 #include "confdefs.h"
11850 /* System header to define __stub macros and hopefully few prototypes,
11851 which can conflict with char $ac_func (); below. */
11852 #include <assert.h>
11853 /* Override any gcc2 internal prototype to avoid an error. */
11857 /* We use char because int might match the return type of a gcc2
11858 builtin and then its argument prototype would still apply. */
11862 #ifdef F77_DUMMY_MAIN
11863 # ifdef __cplusplus
11866 int F77_DUMMY_MAIN() { return 1; }
11871 /* The GNU C library defines this for functions which it implements
11872 to always fail with ENOSYS. Some functions are actually named
11873 something starting with __ and the normal name is an alias. */
11874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11884 rm -f conftest.$ac_objext conftest$ac_exeext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11886 (eval $ac_link) 2>&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
11890 { ac_try='test -s conftest$ac_exeext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 eval "$as_ac_var=yes"
11898 echo "$as_me: failed program was:" >&5
11899 cat conftest.$ac_ext >&5
11900 eval "$as_ac_var=no"
11902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11906 if test `eval echo '${'$as_ac_var'}'` = yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11912 echo "$as_me:$LINENO: checking for rint in -lm" >&5
11913 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11914 if test "${ac_cv_lib_m_rint+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 ac_check_lib_save_LIBS=$LIBS
11918 LIBS="-lm $HPUXMATHLIB $LIBS"
11919 cat >conftest.$ac_ext <<_ACEOF
11920 #line $LINENO "configure"
11921 #include "confdefs.h"
11923 /* Override any gcc2 internal prototype to avoid an error. */
11927 /* We use char because int might match the return type of a gcc2
11928 builtin and then its argument prototype would still apply. */
11930 #ifdef F77_DUMMY_MAIN
11931 # ifdef __cplusplus
11934 int F77_DUMMY_MAIN() { return 1; }
11944 rm -f conftest.$ac_objext conftest$ac_exeext
11945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11946 (eval $ac_link) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_cv_lib_m_rint=yes
11958 echo "$as_me: failed program was:" >&5
11959 cat conftest.$ac_ext >&5
11960 ac_cv_lib_m_rint=no
11962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11965 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11966 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11967 if test $ac_cv_lib_m_rint = yes; then
11968 cat >>confdefs.h <<\_ACEOF
11969 #define HAVE_RINT 1
11979 if test "$with_readline" = yes; then
11980 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11981 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11982 cat >conftest.$ac_ext <<_ACEOF
11983 #line $LINENO "configure"
11984 #include "confdefs.h"
11986 #ifdef HAVE_READLINE_READLINE_H
11987 # include <readline/readline.h>
11988 #elif defined(HAVE_READLINE_H)
11989 # include <readline.h>
11992 #ifdef F77_DUMMY_MAIN
11993 # ifdef __cplusplus
11996 int F77_DUMMY_MAIN() { return 1; }
12001 rl_completion_append_character = 'x';
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008 (eval $ac_link) 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
12012 { ac_try='test -s conftest$ac_exeext'
12013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014 (eval $ac_try) 2>&5
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; }; then
12018 echo "$as_me:$LINENO: result: yes" >&5
12019 echo "${ECHO_T}yes" >&6
12021 cat >>confdefs.h <<\_ACEOF
12022 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12026 echo "$as_me: failed program was:" >&5
12027 cat conftest.$ac_ext >&5
12028 echo "$as_me:$LINENO: result: no" >&5
12029 echo "${ECHO_T}no" >&6
12031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12034 for ac_func in rl_completion_matches rl_filename_completion_function
12036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12037 echo "$as_me:$LINENO: checking for $ac_func" >&5
12038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12039 if eval "test \"\${$as_ac_var+set}\" = set"; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 cat >conftest.$ac_ext <<_ACEOF
12043 #line $LINENO "configure"
12044 #include "confdefs.h"
12045 /* System header to define __stub macros and hopefully few prototypes,
12046 which can conflict with char $ac_func (); below. */
12047 #include <assert.h>
12048 /* Override any gcc2 internal prototype to avoid an error. */
12052 /* We use char because int might match the return type of a gcc2
12053 builtin and then its argument prototype would still apply. */
12057 #ifdef F77_DUMMY_MAIN
12058 # ifdef __cplusplus
12061 int F77_DUMMY_MAIN() { return 1; }
12066 /* The GNU C library defines this for functions which it implements
12067 to always fail with ENOSYS. Some functions are actually named
12068 something starting with __ and the normal name is an alias. */
12069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12079 rm -f conftest.$ac_objext conftest$ac_exeext
12080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12081 (eval $ac_link) 2>&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -s conftest$ac_exeext'
12086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; }; then
12091 eval "$as_ac_var=yes"
12093 echo "$as_me: failed program was:" >&5
12094 cat conftest.$ac_ext >&5
12095 eval "$as_ac_var=no"
12097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12101 if test `eval echo '${'$as_ac_var'}'` = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12112 echo "$as_me:$LINENO: checking for finite" >&5
12113 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12114 cat >conftest.$ac_ext <<_ACEOF
12115 #line $LINENO "configure"
12116 #include "confdefs.h"
12118 #ifdef F77_DUMMY_MAIN
12119 # ifdef __cplusplus
12122 int F77_DUMMY_MAIN() { return 1; }
12127 int dummy=finite(1.0);
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12134 (eval $ac_link) 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -s conftest$ac_exeext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12145 cat >>confdefs.h <<\_ACEOF
12146 #define HAVE_FINITE 1
12149 echo "$as_me:$LINENO: result: yes" >&5
12150 echo "${ECHO_T}yes" >&6
12152 echo "$as_me: failed program was:" >&5
12153 cat conftest.$ac_ext >&5
12154 echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6
12157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12159 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12160 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12162 #line $LINENO "configure"
12163 #include "confdefs.h"
12164 #include <setjmp.h>
12165 #ifdef F77_DUMMY_MAIN
12166 # ifdef __cplusplus
12169 int F77_DUMMY_MAIN() { return 1; }
12174 sigjmp_buf x; sigsetjmp(x, 1);
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181 (eval $ac_link) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -s conftest$ac_exeext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12192 cat >>confdefs.h <<\_ACEOF
12193 #define HAVE_SIGSETJMP 1
12196 echo "$as_me:$LINENO: result: yes" >&5
12197 echo "${ECHO_T}yes" >&6
12199 echo "$as_me: failed program was:" >&5
12200 cat conftest.$ac_ext >&5
12201 echo "$as_me:$LINENO: result: no" >&5
12202 echo "${ECHO_T}no" >&6
12204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12207 for ac_func in syslog
12209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12210 echo "$as_me:$LINENO: checking for $ac_func" >&5
12211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12212 if eval "test \"\${$as_ac_var+set}\" = set"; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 cat >conftest.$ac_ext <<_ACEOF
12216 #line $LINENO "configure"
12217 #include "confdefs.h"
12218 /* System header to define __stub macros and hopefully few prototypes,
12219 which can conflict with char $ac_func (); below. */
12220 #include <assert.h>
12221 /* Override any gcc2 internal prototype to avoid an error. */
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12230 #ifdef F77_DUMMY_MAIN
12231 # ifdef __cplusplus
12234 int F77_DUMMY_MAIN() { return 1; }
12239 /* The GNU C library defines this for functions which it implements
12240 to always fail with ENOSYS. Some functions are actually named
12241 something starting with __ and the normal name is an alias. */
12242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12254 (eval $ac_link) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
12258 { ac_try='test -s conftest$ac_exeext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 eval "$as_ac_var=yes"
12266 echo "$as_me: failed program was:" >&5
12267 cat conftest.$ac_ext >&5
12268 eval "$as_ac_var=no"
12270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12274 if test `eval echo '${'$as_ac_var'}'` = yes; then
12275 cat >>confdefs.h <<_ACEOF
12276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12283 echo "$as_me:$LINENO: checking for optreset" >&5
12284 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12285 if test "${pgac_cv_var_int_optreset+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 cat >conftest.$ac_ext <<_ACEOF
12289 #line $LINENO "configure"
12290 #include "confdefs.h"
12291 #include <unistd.h>
12292 #ifdef F77_DUMMY_MAIN
12293 # ifdef __cplusplus
12296 int F77_DUMMY_MAIN() { return 1; }
12301 extern int optreset; optreset = 1;
12306 rm -f conftest.$ac_objext conftest$ac_exeext
12307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12308 (eval $ac_link) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -s conftest$ac_exeext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 pgac_cv_var_int_optreset=yes
12320 echo "$as_me: failed program was:" >&5
12321 cat conftest.$ac_ext >&5
12322 pgac_cv_var_int_optreset=no
12324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12326 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12327 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12328 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12330 cat >>confdefs.h <<\_ACEOF
12331 #define HAVE_INT_OPTRESET 1
12337 # This test makes sure that run tests work at all. Sometimes a shared
12338 # library is found by the linker, but the runtime linker can't find it.
12339 # This check should come after all modifications of compiler or linker
12340 # variables, and before any other run tests.
12341 echo "$as_me:$LINENO: checking test program" >&5
12342 echo $ECHO_N "checking test program... $ECHO_C" >&6
12343 if test "$cross_compiling" = yes; then
12344 echo "$as_me:$LINENO: result: cross-compiling" >&5
12345 echo "${ECHO_T}cross-compiling" >&6
12347 cat >conftest.$ac_ext <<_ACEOF
12348 #line $LINENO "configure"
12349 #include "confdefs.h"
12350 int main() { return 0; }
12352 rm -f conftest$ac_exeext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 echo "$as_me:$LINENO: result: ok" >&5
12364 echo "${ECHO_T}ok" >&6
12366 echo "$as_me: program exited with status $ac_status" >&5
12367 echo "$as_me: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12369 ( exit $ac_status )
12370 echo "$as_me:$LINENO: result: failed" >&5
12371 echo "${ECHO_T}failed" >&6
12372 { { echo "$as_me:$LINENO: error:
12373 *** Could not execute a simple test program. This may be a problem
12374 *** related to locating shared libraries. Check the file 'config.log'
12375 *** for the exact reason." >&5
12376 echo "$as_me: error:
12377 *** Could not execute a simple test program. This may be a problem
12378 *** related to locating shared libraries. Check the file 'config.log'
12379 *** for the exact reason." >&2;}
12380 { (exit 1); exit 1; }; }
12382 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12387 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12388 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12389 if test "${pgac_cv_type_long_int_64+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 if test "$cross_compiling" = yes; then
12393 pgac_cv_type_long_int_64=no
12394 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12395 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12397 cat >conftest.$ac_ext <<_ACEOF
12398 #line $LINENO "configure"
12399 #include "confdefs.h"
12400 typedef long int int64;
12403 * These are globals to discourage the compiler from folding all the
12404 * arithmetic tests down to compile-time constants.
12406 int64 a = 20000001;
12407 int64 b = 40000005;
12409 int does_int64_work()
12413 if (sizeof(int64) != 8)
12414 return 0; /* definitely not the right size */
12416 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12424 exit(! does_int64_work());
12427 rm -f conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 pgac_cv_type_long_int_64=yes
12440 echo "$as_me: program exited with status $ac_status" >&5
12441 echo "$as_me: failed program was:" >&5
12442 cat conftest.$ac_ext >&5
12443 ( exit $ac_status )
12444 pgac_cv_type_long_int_64=no
12446 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12449 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12450 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12452 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12453 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12455 cat >>confdefs.h <<\_ACEOF
12456 #define HAVE_LONG_INT_64
12462 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12463 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12464 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12465 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 if test "$cross_compiling" = yes; then
12469 pgac_cv_type_long_long_int_64=no
12470 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
12471 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
12473 cat >conftest.$ac_ext <<_ACEOF
12474 #line $LINENO "configure"
12475 #include "confdefs.h"
12476 typedef long long int int64;
12479 * These are globals to discourage the compiler from folding all the
12480 * arithmetic tests down to compile-time constants.
12482 int64 a = 20000001;
12483 int64 b = 40000005;
12485 int does_int64_work()
12489 if (sizeof(int64) != 8)
12490 return 0; /* definitely not the right size */
12492 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12500 exit(! does_int64_work());
12503 rm -f conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 pgac_cv_type_long_long_int_64=yes
12516 echo "$as_me: program exited with status $ac_status" >&5
12517 echo "$as_me: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 ( exit $ac_status )
12520 pgac_cv_type_long_long_int_64=no
12522 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12525 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12526 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12528 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12529 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12531 cat >>confdefs.h <<\_ACEOF
12532 #define HAVE_LONG_LONG_INT_64
12541 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12542 cat >conftest.$ac_ext <<_ACEOF
12543 #line $LINENO "configure"
12544 #include "confdefs.h"
12546 #define INT64CONST(x) x##LL
12547 long long int foo = INT64CONST(0x1234567890123456);
12549 #ifdef F77_DUMMY_MAIN
12550 # ifdef __cplusplus
12553 int F77_DUMMY_MAIN() { return 1; }
12563 rm -f conftest.$ac_objext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12565 (eval $ac_compile) 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
12569 { ac_try='test -s conftest.$ac_objext'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12576 cat >>confdefs.h <<\_ACEOF
12577 #define HAVE_LL_CONSTANTS 1
12581 echo "$as_me: failed program was:" >&5
12582 cat conftest.$ac_ext >&5
12584 rm -f conftest.$ac_objext conftest.$ac_ext
12589 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
12590 if [ x$SNPRINTF = x ] ; then
12591 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
12592 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
12593 if test "$cross_compiling" = yes; then
12594 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12595 echo "${ECHO_T}assuming not on target machine" >&6
12596 # Force usage of our own snprintf, since we cannot test foreign snprintf
12597 SNPRINTF='snprintf.o'
12598 INT64_FORMAT='"%lld"'
12601 cat >conftest.$ac_ext <<_ACEOF
12602 #line $LINENO "configure"
12603 #include "confdefs.h"
12605 typedef long long int int64;
12606 #define INT64_FORMAT "%lld"
12608 int64 a = 20000001;
12609 int64 b = 40000005;
12611 int does_int64_snprintf_work()
12616 if (sizeof(int64) != 8)
12617 return 0; /* doesn't look like the right size */
12620 snprintf(buf, 100, INT64_FORMAT, c);
12621 if (strcmp(buf, "800000140000005") != 0)
12622 return 0; /* either multiply or snprintf is busted */
12626 exit(! does_int64_snprintf_work());
12629 rm -f conftest$ac_exeext
12630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12631 (eval $ac_link) 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 echo "$as_me:$LINENO: result: yes" >&5
12641 echo "${ECHO_T}yes" >&6
12642 INT64_FORMAT='"%lld"'
12645 echo "$as_me: program exited with status $ac_status" >&5
12646 echo "$as_me: failed program was:" >&5
12647 cat conftest.$ac_ext >&5
12648 ( exit $ac_status )
12649 echo "$as_me:$LINENO: result: no" >&5
12650 echo "${ECHO_T}no" >&6
12651 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12652 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12653 if test "$cross_compiling" = yes; then
12654 echo "$as_me:$LINENO: result: assuming not on target machine" >&5
12655 echo "${ECHO_T}assuming not on target machine" >&6
12656 # Force usage of our own snprintf, since we cannot test foreign snprintf
12657 SNPRINTF='snprintf.o'
12658 INT64_FORMAT='"%lld"'
12661 cat >conftest.$ac_ext <<_ACEOF
12662 #line $LINENO "configure"
12663 #include "confdefs.h"
12665 typedef long long int int64;
12666 #define INT64_FORMAT "%qd"
12668 int64 a = 20000001;
12669 int64 b = 40000005;
12671 int does_int64_snprintf_work()
12676 if (sizeof(int64) != 8)
12677 return 0; /* doesn't look like the right size */
12680 snprintf(buf, 100, INT64_FORMAT, c);
12681 if (strcmp(buf, "800000140000005") != 0)
12682 return 0; /* either multiply or snprintf is busted */
12686 exit(! does_int64_snprintf_work());
12689 rm -f conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 echo "$as_me:$LINENO: result: yes" >&5
12701 echo "${ECHO_T}yes" >&6
12702 INT64_FORMAT='"%qd"'
12705 echo "$as_me: program exited with status $ac_status" >&5
12706 echo "$as_me: failed program was:" >&5
12707 cat conftest.$ac_ext >&5
12708 ( exit $ac_status )
12709 echo "$as_me:$LINENO: result: no" >&5
12710 echo "${ECHO_T}no" >&6
12711 # Force usage of our own snprintf, since system snprintf is broken
12712 SNPRINTF='snprintf.o'
12713 INT64_FORMAT='"%lld"'
12716 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12719 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12722 # here if we previously decided we needed to use our own snprintf
12723 INT64_FORMAT='"%lld"'
12726 # Here if we are not using 'long long int' at all
12727 INT64_FORMAT='"%ld"'
12731 cat >>confdefs.h <<_ACEOF
12732 #define INT64_FORMAT $INT64_FORMAT
12739 for ac_func in strtoll strtoq
12741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12742 echo "$as_me:$LINENO: checking for $ac_func" >&5
12743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12744 if eval "test \"\${$as_ac_var+set}\" = set"; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 cat >conftest.$ac_ext <<_ACEOF
12748 #line $LINENO "configure"
12749 #include "confdefs.h"
12750 /* System header to define __stub macros and hopefully few prototypes,
12751 which can conflict with char $ac_func (); below. */
12752 #include <assert.h>
12753 /* Override any gcc2 internal prototype to avoid an error. */
12757 /* We use char because int might match the return type of a gcc2
12758 builtin and then its argument prototype would still apply. */
12762 #ifdef F77_DUMMY_MAIN
12763 # ifdef __cplusplus
12766 int F77_DUMMY_MAIN() { return 1; }
12771 /* The GNU C library defines this for functions which it implements
12772 to always fail with ENOSYS. Some functions are actually named
12773 something starting with __ and the normal name is an alias. */
12774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12784 rm -f conftest.$ac_objext conftest$ac_exeext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12786 (eval $ac_link) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -s conftest$ac_exeext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 eval "$as_ac_var=yes"
12798 echo "$as_me: failed program was:" >&5
12799 cat conftest.$ac_ext >&5
12800 eval "$as_ac_var=no"
12802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12806 if test `eval echo '${'$as_ac_var'}'` = yes; then
12807 cat >>confdefs.h <<_ACEOF
12808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12816 for ac_func in strtoull strtouq
12818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12819 echo "$as_me:$LINENO: checking for $ac_func" >&5
12820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12821 if eval "test \"\${$as_ac_var+set}\" = set"; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 cat >conftest.$ac_ext <<_ACEOF
12825 #line $LINENO "configure"
12826 #include "confdefs.h"
12827 /* System header to define __stub macros and hopefully few prototypes,
12828 which can conflict with char $ac_func (); below. */
12829 #include <assert.h>
12830 /* Override any gcc2 internal prototype to avoid an error. */
12834 /* We use char because int might match the return type of a gcc2
12835 builtin and then its argument prototype would still apply. */
12839 #ifdef F77_DUMMY_MAIN
12840 # ifdef __cplusplus
12843 int F77_DUMMY_MAIN() { return 1; }
12848 /* The GNU C library defines this for functions which it implements
12849 to always fail with ENOSYS. Some functions are actually named
12850 something starting with __ and the normal name is an alias. */
12851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863 (eval $ac_link) 2>&5
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); } &&
12867 { ac_try='test -s conftest$ac_exeext'
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 eval "$as_ac_var=yes"
12875 echo "$as_me: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 eval "$as_ac_var=no"
12879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12883 if test `eval echo '${'$as_ac_var'}'` = yes; then
12884 cat >>confdefs.h <<_ACEOF
12885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12892 # Check for one of atexit() or on_exit()
12894 for ac_func in atexit
12896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12897 echo "$as_me:$LINENO: checking for $ac_func" >&5
12898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12899 if eval "test \"\${$as_ac_var+set}\" = set"; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 cat >conftest.$ac_ext <<_ACEOF
12903 #line $LINENO "configure"
12904 #include "confdefs.h"
12905 /* System header to define __stub macros and hopefully few prototypes,
12906 which can conflict with char $ac_func (); below. */
12907 #include <assert.h>
12908 /* Override any gcc2 internal prototype to avoid an error. */
12912 /* We use char because int might match the return type of a gcc2
12913 builtin and then its argument prototype would still apply. */
12917 #ifdef F77_DUMMY_MAIN
12918 # ifdef __cplusplus
12921 int F77_DUMMY_MAIN() { return 1; }
12926 /* The GNU C library defines this for functions which it implements
12927 to always fail with ENOSYS. Some functions are actually named
12928 something starting with __ and the normal name is an alias. */
12929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12939 rm -f conftest.$ac_objext conftest$ac_exeext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12941 (eval $ac_link) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } &&
12945 { ac_try='test -s conftest$ac_exeext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 eval "$as_ac_var=yes"
12953 echo "$as_me: failed program was:" >&5
12954 cat conftest.$ac_ext >&5
12955 eval "$as_ac_var=no"
12957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12961 if test `eval echo '${'$as_ac_var'}'` = yes; then
12962 cat >>confdefs.h <<_ACEOF
12963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12968 for ac_func in on_exit
12970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12971 echo "$as_me:$LINENO: checking for $ac_func" >&5
12972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12973 if eval "test \"\${$as_ac_var+set}\" = set"; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 cat >conftest.$ac_ext <<_ACEOF
12977 #line $LINENO "configure"
12978 #include "confdefs.h"
12979 /* System header to define __stub macros and hopefully few prototypes,
12980 which can conflict with char $ac_func (); below. */
12981 #include <assert.h>
12982 /* Override any gcc2 internal prototype to avoid an error. */
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12991 #ifdef F77_DUMMY_MAIN
12992 # ifdef __cplusplus
12995 int F77_DUMMY_MAIN() { return 1; }
13000 /* The GNU C library defines this for functions which it implements
13001 to always fail with ENOSYS. Some functions are actually named
13002 something starting with __ and the normal name is an alias. */
13003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13015 (eval $ac_link) 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -s conftest$ac_exeext'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 eval "$as_ac_var=yes"
13027 echo "$as_me: failed program was:" >&5
13028 cat conftest.$ac_ext >&5
13029 eval "$as_ac_var=no"
13031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13035 if test `eval echo '${'$as_ac_var'}'` = yes; then
13036 cat >>confdefs.h <<_ACEOF
13037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13041 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13042 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13043 { (exit 1); exit 1; }; }
13052 echo "$as_me:$LINENO: checking for unsigned long" >&5
13053 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13054 if test "${ac_cv_type_unsigned_long+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 cat >conftest.$ac_ext <<_ACEOF
13058 #line $LINENO "configure"
13059 #include "confdefs.h"
13060 $ac_includes_default
13061 #ifdef F77_DUMMY_MAIN
13062 # ifdef __cplusplus
13065 int F77_DUMMY_MAIN() { return 1; }
13070 if ((unsigned long *) 0)
13072 if (sizeof (unsigned long))
13078 rm -f conftest.$ac_objext
13079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13080 (eval $ac_compile) 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } &&
13084 { ac_try='test -s conftest.$ac_objext'
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; }; then
13090 ac_cv_type_unsigned_long=yes
13092 echo "$as_me: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
13094 ac_cv_type_unsigned_long=no
13096 rm -f conftest.$ac_objext conftest.$ac_ext
13098 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13099 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13101 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13102 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13103 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 if test "$ac_cv_type_unsigned_long" = yes; then
13107 # The cast to unsigned long works around a bug in the HP C Compiler
13108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13110 # This bug is HP SR number 8606223364.
13111 if test "$cross_compiling" = yes; then
13112 # Depending upon the size, compute the lo and hi bounds.
13113 cat >conftest.$ac_ext <<_ACEOF
13114 #line $LINENO "configure"
13115 #include "confdefs.h"
13116 $ac_includes_default
13117 #ifdef F77_DUMMY_MAIN
13118 # ifdef __cplusplus
13121 int F77_DUMMY_MAIN() { return 1; }
13126 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13133 rm -f conftest.$ac_objext
13134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13135 (eval $ac_compile) 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try='test -s conftest.$ac_objext'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13147 cat >conftest.$ac_ext <<_ACEOF
13148 #line $LINENO "configure"
13149 #include "confdefs.h"
13150 $ac_includes_default
13151 #ifdef F77_DUMMY_MAIN
13152 # ifdef __cplusplus
13155 int F77_DUMMY_MAIN() { return 1; }
13160 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13167 rm -f conftest.$ac_objext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169 (eval $ac_compile) 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try='test -s conftest.$ac_objext'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13179 ac_hi=$ac_mid; break
13181 echo "$as_me: failed program was:" >&5
13182 cat conftest.$ac_ext >&5
13183 ac_lo=`expr $ac_mid + 1`
13184 if test $ac_lo -le $ac_mid; then
13188 ac_mid=`expr 2 '*' $ac_mid + 1`
13190 rm -f conftest.$ac_objext conftest.$ac_ext
13193 echo "$as_me: failed program was:" >&5
13194 cat conftest.$ac_ext >&5
13195 cat >conftest.$ac_ext <<_ACEOF
13196 #line $LINENO "configure"
13197 #include "confdefs.h"
13198 $ac_includes_default
13199 #ifdef F77_DUMMY_MAIN
13200 # ifdef __cplusplus
13203 int F77_DUMMY_MAIN() { return 1; }
13208 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13215 rm -f conftest.$ac_objext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217 (eval $ac_compile) 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } &&
13221 { ac_try='test -s conftest.$ac_objext'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; }; then
13229 cat >conftest.$ac_ext <<_ACEOF
13230 #line $LINENO "configure"
13231 #include "confdefs.h"
13232 $ac_includes_default
13233 #ifdef F77_DUMMY_MAIN
13234 # ifdef __cplusplus
13237 int F77_DUMMY_MAIN() { return 1; }
13242 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13249 rm -f conftest.$ac_objext
13250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13251 (eval $ac_compile) 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -s conftest.$ac_objext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 ac_lo=$ac_mid; break
13263 echo "$as_me: failed program was:" >&5
13264 cat conftest.$ac_ext >&5
13265 ac_hi=`expr '(' $ac_mid ')' - 1`
13266 if test $ac_mid -le $ac_hi; then
13270 ac_mid=`expr 2 '*' $ac_mid`
13272 rm -f conftest.$ac_objext conftest.$ac_ext
13275 echo "$as_me: failed program was:" >&5
13276 cat conftest.$ac_ext >&5
13279 rm -f conftest.$ac_objext conftest.$ac_ext
13281 rm -f conftest.$ac_objext conftest.$ac_ext
13282 # Binary search between lo and hi bounds.
13283 while test "x$ac_lo" != "x$ac_hi"; do
13284 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13285 cat >conftest.$ac_ext <<_ACEOF
13286 #line $LINENO "configure"
13287 #include "confdefs.h"
13288 $ac_includes_default
13289 #ifdef F77_DUMMY_MAIN
13290 # ifdef __cplusplus
13293 int F77_DUMMY_MAIN() { return 1; }
13298 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13305 rm -f conftest.$ac_objext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13307 (eval $ac_compile) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } &&
13311 { ac_try='test -s conftest.$ac_objext'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13319 echo "$as_me: failed program was:" >&5
13320 cat conftest.$ac_ext >&5
13321 ac_lo=`expr '(' $ac_mid ')' + 1`
13323 rm -f conftest.$ac_objext conftest.$ac_ext
13326 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13328 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13329 { (exit 1); exit 1; }; } ;;
13332 if test "$cross_compiling" = yes; then
13333 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13334 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13335 { (exit 1); exit 1; }; }
13337 cat >conftest.$ac_ext <<_ACEOF
13338 #line $LINENO "configure"
13339 #include "confdefs.h"
13340 $ac_includes_default
13341 long longval () { return (long) (sizeof (unsigned long)); }
13342 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13344 #include <stdlib.h>
13345 #ifdef F77_DUMMY_MAIN
13346 # ifdef __cplusplus
13349 int F77_DUMMY_MAIN() { return 1; }
13355 FILE *f = fopen ("conftest.val", "w");
13358 if (((long) (sizeof (unsigned long))) < 0)
13360 long i = longval ();
13361 if (i != ((long) (sizeof (unsigned long))))
13363 fprintf (f, "%ld\n", i);
13367 unsigned long i = ulongval ();
13368 if (i != ((long) (sizeof (unsigned long))))
13370 fprintf (f, "%lu\n", i);
13372 exit (ferror (f) || fclose (f) != 0);
13378 rm -f conftest$ac_exeext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380 (eval $ac_link) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13391 echo "$as_me: program exited with status $ac_status" >&5
13392 echo "$as_me: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13394 ( exit $ac_status )
13395 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13396 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13397 { (exit 1); exit 1; }; }
13399 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13404 ac_cv_sizeof_unsigned_long=0
13407 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13408 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13409 cat >>confdefs.h <<_ACEOF
13410 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13415 cat >>confdefs.h <<_ACEOF
13416 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
13420 # Determine memory alignment requirements for the basic C data types.
13422 echo "$as_me:$LINENO: checking for short" >&5
13423 echo $ECHO_N "checking for short... $ECHO_C" >&6
13424 if test "${ac_cv_type_short+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 cat >conftest.$ac_ext <<_ACEOF
13428 #line $LINENO "configure"
13429 #include "confdefs.h"
13430 $ac_includes_default
13431 #ifdef F77_DUMMY_MAIN
13432 # ifdef __cplusplus
13435 int F77_DUMMY_MAIN() { return 1; }
13442 if (sizeof (short))
13448 rm -f conftest.$ac_objext
13449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13450 (eval $ac_compile) 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } &&
13454 { ac_try='test -s conftest.$ac_objext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 ac_cv_type_short=yes
13462 echo "$as_me: failed program was:" >&5
13463 cat conftest.$ac_ext >&5
13464 ac_cv_type_short=no
13466 rm -f conftest.$ac_objext conftest.$ac_ext
13468 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13469 echo "${ECHO_T}$ac_cv_type_short" >&6
13471 echo "$as_me:$LINENO: checking alignment of short" >&5
13472 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13473 if test "${pgac_cv_alignof_short+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 if test "$ac_cv_type_short" = yes; then
13477 if test "$cross_compiling" = yes; then
13478 # Depending upon the size, compute the lo and hi bounds.
13479 cat >conftest.$ac_ext <<_ACEOF
13480 #line $LINENO "configure"
13481 #include "confdefs.h"
13482 $ac_includes_default
13483 struct { char filler; short field; } pgac_struct;
13484 #ifdef F77_DUMMY_MAIN
13485 # ifdef __cplusplus
13488 int F77_DUMMY_MAIN() { return 1; }
13493 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13500 rm -f conftest.$ac_objext
13501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13502 (eval $ac_compile) 2>&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13514 cat >conftest.$ac_ext <<_ACEOF
13515 #line $LINENO "configure"
13516 #include "confdefs.h"
13517 $ac_includes_default
13518 struct { char filler; short field; } pgac_struct;
13519 #ifdef F77_DUMMY_MAIN
13520 # ifdef __cplusplus
13523 int F77_DUMMY_MAIN() { return 1; }
13528 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -s conftest.$ac_objext'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_hi=$ac_mid; break
13549 echo "$as_me: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13551 ac_lo=`expr $ac_mid + 1`
13552 if test $ac_lo -le $ac_mid; then
13556 ac_mid=`expr 2 '*' $ac_mid + 1`
13558 rm -f conftest.$ac_objext conftest.$ac_ext
13561 echo "$as_me: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13563 cat >conftest.$ac_ext <<_ACEOF
13564 #line $LINENO "configure"
13565 #include "confdefs.h"
13566 $ac_includes_default
13567 struct { char filler; short field; } pgac_struct;
13568 #ifdef F77_DUMMY_MAIN
13569 # ifdef __cplusplus
13572 int F77_DUMMY_MAIN() { return 1; }
13577 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13584 rm -f conftest.$ac_objext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586 (eval $ac_compile) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13598 cat >conftest.$ac_ext <<_ACEOF
13599 #line $LINENO "configure"
13600 #include "confdefs.h"
13601 $ac_includes_default
13602 struct { char filler; short field; } pgac_struct;
13603 #ifdef F77_DUMMY_MAIN
13604 # ifdef __cplusplus
13607 int F77_DUMMY_MAIN() { return 1; }
13612 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13619 rm -f conftest.$ac_objext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13621 (eval $ac_compile) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try='test -s conftest.$ac_objext'
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
13631 ac_lo=$ac_mid; break
13633 echo "$as_me: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13635 ac_hi=`expr '(' $ac_mid ')' - 1`
13636 if test $ac_mid -le $ac_hi; then
13640 ac_mid=`expr 2 '*' $ac_mid`
13642 rm -f conftest.$ac_objext conftest.$ac_ext
13645 echo "$as_me: failed program was:" >&5
13646 cat conftest.$ac_ext >&5
13649 rm -f conftest.$ac_objext conftest.$ac_ext
13651 rm -f conftest.$ac_objext conftest.$ac_ext
13652 # Binary search between lo and hi bounds.
13653 while test "x$ac_lo" != "x$ac_hi"; do
13654 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13655 cat >conftest.$ac_ext <<_ACEOF
13656 #line $LINENO "configure"
13657 #include "confdefs.h"
13658 $ac_includes_default
13659 struct { char filler; short field; } pgac_struct;
13660 #ifdef F77_DUMMY_MAIN
13661 # ifdef __cplusplus
13664 int F77_DUMMY_MAIN() { return 1; }
13669 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13676 rm -f conftest.$ac_objext
13677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678 (eval $ac_compile) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13690 echo "$as_me: failed program was:" >&5
13691 cat conftest.$ac_ext >&5
13692 ac_lo=`expr '(' $ac_mid ')' + 1`
13694 rm -f conftest.$ac_objext conftest.$ac_ext
13697 ?*) pgac_cv_alignof_short=$ac_lo;;
13698 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13699 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13700 { (exit 1); exit 1; }; } ;;
13703 if test "$cross_compiling" = yes; then
13704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13705 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13706 { (exit 1); exit 1; }; }
13708 cat >conftest.$ac_ext <<_ACEOF
13709 #line $LINENO "configure"
13710 #include "confdefs.h"
13711 $ac_includes_default
13712 struct { char filler; short field; } pgac_struct;
13713 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13714 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13716 #include <stdlib.h>
13717 #ifdef F77_DUMMY_MAIN
13718 # ifdef __cplusplus
13721 int F77_DUMMY_MAIN() { return 1; }
13727 FILE *f = fopen ("conftest.val", "w");
13730 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13732 long i = longval ();
13733 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13735 fprintf (f, "%ld\n", i);
13739 unsigned long i = ulongval ();
13740 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13742 fprintf (f, "%lu\n", i);
13744 exit (ferror (f) || fclose (f) != 0);
13750 rm -f conftest$ac_exeext
13751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13752 (eval $ac_link) 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 pgac_cv_alignof_short=`cat conftest.val`
13763 echo "$as_me: program exited with status $ac_status" >&5
13764 echo "$as_me: failed program was:" >&5
13765 cat conftest.$ac_ext >&5
13766 ( exit $ac_status )
13767 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13768 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13769 { (exit 1); exit 1; }; }
13771 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13776 pgac_cv_alignof_short=0
13779 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13780 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13781 cat >>confdefs.h <<_ACEOF
13782 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13786 echo "$as_me:$LINENO: checking for int" >&5
13787 echo $ECHO_N "checking for int... $ECHO_C" >&6
13788 if test "${ac_cv_type_int+set}" = set; then
13789 echo $ECHO_N "(cached) $ECHO_C" >&6
13791 cat >conftest.$ac_ext <<_ACEOF
13792 #line $LINENO "configure"
13793 #include "confdefs.h"
13794 $ac_includes_default
13795 #ifdef F77_DUMMY_MAIN
13796 # ifdef __cplusplus
13799 int F77_DUMMY_MAIN() { return 1; }
13812 rm -f conftest.$ac_objext
13813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13814 (eval $ac_compile) 2>&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -s conftest.$ac_objext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13826 echo "$as_me: failed program was:" >&5
13827 cat conftest.$ac_ext >&5
13830 rm -f conftest.$ac_objext conftest.$ac_ext
13832 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13833 echo "${ECHO_T}$ac_cv_type_int" >&6
13835 echo "$as_me:$LINENO: checking alignment of int" >&5
13836 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13837 if test "${pgac_cv_alignof_int+set}" = set; then
13838 echo $ECHO_N "(cached) $ECHO_C" >&6
13840 if test "$ac_cv_type_int" = yes; then
13841 if test "$cross_compiling" = yes; then
13842 # Depending upon the size, compute the lo and hi bounds.
13843 cat >conftest.$ac_ext <<_ACEOF
13844 #line $LINENO "configure"
13845 #include "confdefs.h"
13846 $ac_includes_default
13847 struct { char filler; int field; } pgac_struct;
13848 #ifdef F77_DUMMY_MAIN
13849 # ifdef __cplusplus
13852 int F77_DUMMY_MAIN() { return 1; }
13857 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13864 rm -f conftest.$ac_objext
13865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866 (eval $ac_compile) 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -s conftest.$ac_objext'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13878 cat >conftest.$ac_ext <<_ACEOF
13879 #line $LINENO "configure"
13880 #include "confdefs.h"
13881 $ac_includes_default
13882 struct { char filler; int field; } pgac_struct;
13883 #ifdef F77_DUMMY_MAIN
13884 # ifdef __cplusplus
13887 int F77_DUMMY_MAIN() { return 1; }
13892 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13899 rm -f conftest.$ac_objext
13900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13901 (eval $ac_compile) 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -s conftest.$ac_objext'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_hi=$ac_mid; break
13913 echo "$as_me: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 ac_lo=`expr $ac_mid + 1`
13916 if test $ac_lo -le $ac_mid; then
13920 ac_mid=`expr 2 '*' $ac_mid + 1`
13922 rm -f conftest.$ac_objext conftest.$ac_ext
13925 echo "$as_me: failed program was:" >&5
13926 cat conftest.$ac_ext >&5
13927 cat >conftest.$ac_ext <<_ACEOF
13928 #line $LINENO "configure"
13929 #include "confdefs.h"
13930 $ac_includes_default
13931 struct { char filler; int field; } pgac_struct;
13932 #ifdef F77_DUMMY_MAIN
13933 # ifdef __cplusplus
13936 int F77_DUMMY_MAIN() { return 1; }
13941 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13948 rm -f conftest.$ac_objext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13950 (eval $ac_compile) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try='test -s conftest.$ac_objext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13962 cat >conftest.$ac_ext <<_ACEOF
13963 #line $LINENO "configure"
13964 #include "confdefs.h"
13965 $ac_includes_default
13966 struct { char filler; int field; } pgac_struct;
13967 #ifdef F77_DUMMY_MAIN
13968 # ifdef __cplusplus
13971 int F77_DUMMY_MAIN() { return 1; }
13976 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985 (eval $ac_compile) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try='test -s conftest.$ac_objext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_lo=$ac_mid; break
13997 echo "$as_me: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
13999 ac_hi=`expr '(' $ac_mid ')' - 1`
14000 if test $ac_mid -le $ac_hi; then
14004 ac_mid=`expr 2 '*' $ac_mid`
14006 rm -f conftest.$ac_objext conftest.$ac_ext
14009 echo "$as_me: failed program was:" >&5
14010 cat conftest.$ac_ext >&5
14013 rm -f conftest.$ac_objext conftest.$ac_ext
14015 rm -f conftest.$ac_objext conftest.$ac_ext
14016 # Binary search between lo and hi bounds.
14017 while test "x$ac_lo" != "x$ac_hi"; do
14018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14019 cat >conftest.$ac_ext <<_ACEOF
14020 #line $LINENO "configure"
14021 #include "confdefs.h"
14022 $ac_includes_default
14023 struct { char filler; int field; } pgac_struct;
14024 #ifdef F77_DUMMY_MAIN
14025 # ifdef __cplusplus
14028 int F77_DUMMY_MAIN() { return 1; }
14033 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14040 rm -f conftest.$ac_objext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } &&
14046 { ac_try='test -s conftest.$ac_objext'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14054 echo "$as_me: failed program was:" >&5
14055 cat conftest.$ac_ext >&5
14056 ac_lo=`expr '(' $ac_mid ')' + 1`
14058 rm -f conftest.$ac_objext conftest.$ac_ext
14061 ?*) pgac_cv_alignof_int=$ac_lo;;
14062 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14063 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14064 { (exit 1); exit 1; }; } ;;
14067 if test "$cross_compiling" = yes; then
14068 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14069 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14070 { (exit 1); exit 1; }; }
14072 cat >conftest.$ac_ext <<_ACEOF
14073 #line $LINENO "configure"
14074 #include "confdefs.h"
14075 $ac_includes_default
14076 struct { char filler; int field; } pgac_struct;
14077 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14078 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14080 #include <stdlib.h>
14081 #ifdef F77_DUMMY_MAIN
14082 # ifdef __cplusplus
14085 int F77_DUMMY_MAIN() { return 1; }
14091 FILE *f = fopen ("conftest.val", "w");
14094 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14096 long i = longval ();
14097 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14099 fprintf (f, "%ld\n", i);
14103 unsigned long i = ulongval ();
14104 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14106 fprintf (f, "%lu\n", i);
14108 exit (ferror (f) || fclose (f) != 0);
14114 rm -f conftest$ac_exeext
14115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14116 (eval $ac_link) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121 (eval $ac_try) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); }; }; then
14125 pgac_cv_alignof_int=`cat conftest.val`
14127 echo "$as_me: program exited with status $ac_status" >&5
14128 echo "$as_me: failed program was:" >&5
14129 cat conftest.$ac_ext >&5
14130 ( exit $ac_status )
14131 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14132 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14133 { (exit 1); exit 1; }; }
14135 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14140 pgac_cv_alignof_int=0
14143 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14144 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14145 cat >>confdefs.h <<_ACEOF
14146 #define ALIGNOF_INT $pgac_cv_alignof_int
14150 echo "$as_me:$LINENO: checking for long" >&5
14151 echo $ECHO_N "checking for long... $ECHO_C" >&6
14152 if test "${ac_cv_type_long+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 cat >conftest.$ac_ext <<_ACEOF
14156 #line $LINENO "configure"
14157 #include "confdefs.h"
14158 $ac_includes_default
14159 #ifdef F77_DUMMY_MAIN
14160 # ifdef __cplusplus
14163 int F77_DUMMY_MAIN() { return 1; }
14176 rm -f conftest.$ac_objext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178 (eval $ac_compile) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -s conftest.$ac_objext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_type_long=yes
14190 echo "$as_me: failed program was:" >&5
14191 cat conftest.$ac_ext >&5
14194 rm -f conftest.$ac_objext conftest.$ac_ext
14196 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14197 echo "${ECHO_T}$ac_cv_type_long" >&6
14199 echo "$as_me:$LINENO: checking alignment of long" >&5
14200 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14201 if test "${pgac_cv_alignof_long+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 if test "$ac_cv_type_long" = yes; then
14205 if test "$cross_compiling" = yes; then
14206 # Depending upon the size, compute the lo and hi bounds.
14207 cat >conftest.$ac_ext <<_ACEOF
14208 #line $LINENO "configure"
14209 #include "confdefs.h"
14210 $ac_includes_default
14211 struct { char filler; long field; } pgac_struct;
14212 #ifdef F77_DUMMY_MAIN
14213 # ifdef __cplusplus
14216 int F77_DUMMY_MAIN() { return 1; }
14221 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -s conftest.$ac_objext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14242 cat >conftest.$ac_ext <<_ACEOF
14243 #line $LINENO "configure"
14244 #include "confdefs.h"
14245 $ac_includes_default
14246 struct { char filler; long field; } pgac_struct;
14247 #ifdef F77_DUMMY_MAIN
14248 # ifdef __cplusplus
14251 int F77_DUMMY_MAIN() { return 1; }
14256 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14263 rm -f conftest.$ac_objext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265 (eval $ac_compile) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_hi=$ac_mid; break
14277 echo "$as_me: failed program was:" >&5
14278 cat conftest.$ac_ext >&5
14279 ac_lo=`expr $ac_mid + 1`
14280 if test $ac_lo -le $ac_mid; then
14284 ac_mid=`expr 2 '*' $ac_mid + 1`
14286 rm -f conftest.$ac_objext conftest.$ac_ext
14289 echo "$as_me: failed program was:" >&5
14290 cat conftest.$ac_ext >&5
14291 cat >conftest.$ac_ext <<_ACEOF
14292 #line $LINENO "configure"
14293 #include "confdefs.h"
14294 $ac_includes_default
14295 struct { char filler; long field; } pgac_struct;
14296 #ifdef F77_DUMMY_MAIN
14297 # ifdef __cplusplus
14300 int F77_DUMMY_MAIN() { return 1; }
14305 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } &&
14318 { ac_try='test -s conftest.$ac_objext'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14326 cat >conftest.$ac_ext <<_ACEOF
14327 #line $LINENO "configure"
14328 #include "confdefs.h"
14329 $ac_includes_default
14330 struct { char filler; long field; } pgac_struct;
14331 #ifdef F77_DUMMY_MAIN
14332 # ifdef __cplusplus
14335 int F77_DUMMY_MAIN() { return 1; }
14340 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14347 rm -f conftest.$ac_objext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14349 (eval $ac_compile) 2>&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -s conftest.$ac_objext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 ac_lo=$ac_mid; break
14361 echo "$as_me: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14363 ac_hi=`expr '(' $ac_mid ')' - 1`
14364 if test $ac_mid -le $ac_hi; then
14368 ac_mid=`expr 2 '*' $ac_mid`
14370 rm -f conftest.$ac_objext conftest.$ac_ext
14373 echo "$as_me: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14377 rm -f conftest.$ac_objext conftest.$ac_ext
14379 rm -f conftest.$ac_objext conftest.$ac_ext
14380 # Binary search between lo and hi bounds.
14381 while test "x$ac_lo" != "x$ac_hi"; do
14382 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14383 cat >conftest.$ac_ext <<_ACEOF
14384 #line $LINENO "configure"
14385 #include "confdefs.h"
14386 $ac_includes_default
14387 struct { char filler; long field; } pgac_struct;
14388 #ifdef F77_DUMMY_MAIN
14389 # ifdef __cplusplus
14392 int F77_DUMMY_MAIN() { return 1; }
14397 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14404 rm -f conftest.$ac_objext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406 (eval $ac_compile) 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } &&
14410 { ac_try='test -s conftest.$ac_objext'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; }; then
14418 echo "$as_me: failed program was:" >&5
14419 cat conftest.$ac_ext >&5
14420 ac_lo=`expr '(' $ac_mid ')' + 1`
14422 rm -f conftest.$ac_objext conftest.$ac_ext
14425 ?*) pgac_cv_alignof_long=$ac_lo;;
14426 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14427 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14428 { (exit 1); exit 1; }; } ;;
14431 if test "$cross_compiling" = yes; then
14432 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14433 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14434 { (exit 1); exit 1; }; }
14436 cat >conftest.$ac_ext <<_ACEOF
14437 #line $LINENO "configure"
14438 #include "confdefs.h"
14439 $ac_includes_default
14440 struct { char filler; long field; } pgac_struct;
14441 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14442 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14444 #include <stdlib.h>
14445 #ifdef F77_DUMMY_MAIN
14446 # ifdef __cplusplus
14449 int F77_DUMMY_MAIN() { return 1; }
14455 FILE *f = fopen ("conftest.val", "w");
14458 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14460 long i = longval ();
14461 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14463 fprintf (f, "%ld\n", i);
14467 unsigned long i = ulongval ();
14468 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14470 fprintf (f, "%lu\n", i);
14472 exit (ferror (f) || fclose (f) != 0);
14478 rm -f conftest$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480 (eval $ac_link) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489 pgac_cv_alignof_long=`cat conftest.val`
14491 echo "$as_me: program exited with status $ac_status" >&5
14492 echo "$as_me: failed program was:" >&5
14493 cat conftest.$ac_ext >&5
14494 ( exit $ac_status )
14495 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14496 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14497 { (exit 1); exit 1; }; }
14499 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14504 pgac_cv_alignof_long=0
14507 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14508 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14509 cat >>confdefs.h <<_ACEOF
14510 #define ALIGNOF_LONG $pgac_cv_alignof_long
14514 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14515 echo "$as_me:$LINENO: checking for long long int" >&5
14516 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14517 if test "${ac_cv_type_long_long_int+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 cat >conftest.$ac_ext <<_ACEOF
14521 #line $LINENO "configure"
14522 #include "confdefs.h"
14523 $ac_includes_default
14524 #ifdef F77_DUMMY_MAIN
14525 # ifdef __cplusplus
14528 int F77_DUMMY_MAIN() { return 1; }
14533 if ((long long int *) 0)
14535 if (sizeof (long long int))
14541 rm -f conftest.$ac_objext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14543 (eval $ac_compile) 2>&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } &&
14547 { ac_try='test -s conftest.$ac_objext'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; }; then
14553 ac_cv_type_long_long_int=yes
14555 echo "$as_me: failed program was:" >&5
14556 cat conftest.$ac_ext >&5
14557 ac_cv_type_long_long_int=no
14559 rm -f conftest.$ac_objext conftest.$ac_ext
14561 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14562 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14564 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14565 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14566 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 if test "$ac_cv_type_long_long_int" = yes; then
14570 if test "$cross_compiling" = yes; then
14571 # Depending upon the size, compute the lo and hi bounds.
14572 cat >conftest.$ac_ext <<_ACEOF
14573 #line $LINENO "configure"
14574 #include "confdefs.h"
14575 $ac_includes_default
14576 struct { char filler; long long int field; } pgac_struct;
14577 #ifdef F77_DUMMY_MAIN
14578 # ifdef __cplusplus
14581 int F77_DUMMY_MAIN() { return 1; }
14586 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14593 rm -f conftest.$ac_objext
14594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14595 (eval $ac_compile) 2>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -s conftest.$ac_objext'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; }; then
14607 cat >conftest.$ac_ext <<_ACEOF
14608 #line $LINENO "configure"
14609 #include "confdefs.h"
14610 $ac_includes_default
14611 struct { char filler; long long int field; } pgac_struct;
14612 #ifdef F77_DUMMY_MAIN
14613 # ifdef __cplusplus
14616 int F77_DUMMY_MAIN() { return 1; }
14621 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14628 rm -f conftest.$ac_objext
14629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14630 (eval $ac_compile) 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -s conftest.$ac_objext'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }; then
14640 ac_hi=$ac_mid; break
14642 echo "$as_me: failed program was:" >&5
14643 cat conftest.$ac_ext >&5
14644 ac_lo=`expr $ac_mid + 1`
14645 if test $ac_lo -le $ac_mid; then
14649 ac_mid=`expr 2 '*' $ac_mid + 1`
14651 rm -f conftest.$ac_objext conftest.$ac_ext
14654 echo "$as_me: failed program was:" >&5
14655 cat conftest.$ac_ext >&5
14656 cat >conftest.$ac_ext <<_ACEOF
14657 #line $LINENO "configure"
14658 #include "confdefs.h"
14659 $ac_includes_default
14660 struct { char filler; long long int field; } pgac_struct;
14661 #ifdef F77_DUMMY_MAIN
14662 # ifdef __cplusplus
14665 int F77_DUMMY_MAIN() { return 1; }
14670 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14677 rm -f conftest.$ac_objext
14678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14679 (eval $ac_compile) 2>&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
14683 { ac_try='test -s conftest.$ac_objext'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14691 cat >conftest.$ac_ext <<_ACEOF
14692 #line $LINENO "configure"
14693 #include "confdefs.h"
14694 $ac_includes_default
14695 struct { char filler; long long int field; } pgac_struct;
14696 #ifdef F77_DUMMY_MAIN
14697 # ifdef __cplusplus
14700 int F77_DUMMY_MAIN() { return 1; }
14705 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14714 (eval $ac_compile) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -s conftest.$ac_objext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 ac_lo=$ac_mid; break
14726 echo "$as_me: failed program was:" >&5
14727 cat conftest.$ac_ext >&5
14728 ac_hi=`expr '(' $ac_mid ')' - 1`
14729 if test $ac_mid -le $ac_hi; then
14733 ac_mid=`expr 2 '*' $ac_mid`
14735 rm -f conftest.$ac_objext conftest.$ac_ext
14738 echo "$as_me: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14742 rm -f conftest.$ac_objext conftest.$ac_ext
14744 rm -f conftest.$ac_objext conftest.$ac_ext
14745 # Binary search between lo and hi bounds.
14746 while test "x$ac_lo" != "x$ac_hi"; do
14747 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14748 cat >conftest.$ac_ext <<_ACEOF
14749 #line $LINENO "configure"
14750 #include "confdefs.h"
14751 $ac_includes_default
14752 struct { char filler; long long int field; } pgac_struct;
14753 #ifdef F77_DUMMY_MAIN
14754 # ifdef __cplusplus
14757 int F77_DUMMY_MAIN() { return 1; }
14762 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14769 rm -f conftest.$ac_objext
14770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14771 (eval $ac_compile) 2>&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -s conftest.$ac_objext'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }; then
14783 echo "$as_me: failed program was:" >&5
14784 cat conftest.$ac_ext >&5
14785 ac_lo=`expr '(' $ac_mid ')' + 1`
14787 rm -f conftest.$ac_objext conftest.$ac_ext
14790 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14791 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14792 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14793 { (exit 1); exit 1; }; } ;;
14796 if test "$cross_compiling" = yes; then
14797 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14798 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14799 { (exit 1); exit 1; }; }
14801 cat >conftest.$ac_ext <<_ACEOF
14802 #line $LINENO "configure"
14803 #include "confdefs.h"
14804 $ac_includes_default
14805 struct { char filler; long long int field; } pgac_struct;
14806 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14807 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14809 #include <stdlib.h>
14810 #ifdef F77_DUMMY_MAIN
14811 # ifdef __cplusplus
14814 int F77_DUMMY_MAIN() { return 1; }
14820 FILE *f = fopen ("conftest.val", "w");
14823 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14825 long i = longval ();
14826 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14828 fprintf (f, "%ld\n", i);
14832 unsigned long i = ulongval ();
14833 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14835 fprintf (f, "%lu\n", i);
14837 exit (ferror (f) || fclose (f) != 0);
14843 rm -f conftest$ac_exeext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14845 (eval $ac_link) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 pgac_cv_alignof_long_long_int=`cat conftest.val`
14856 echo "$as_me: program exited with status $ac_status" >&5
14857 echo "$as_me: failed program was:" >&5
14858 cat conftest.$ac_ext >&5
14859 ( exit $ac_status )
14860 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14861 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14862 { (exit 1); exit 1; }; }
14864 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14869 pgac_cv_alignof_long_long_int=0
14872 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14873 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14874 cat >>confdefs.h <<_ACEOF
14875 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14880 echo "$as_me:$LINENO: checking for double" >&5
14881 echo $ECHO_N "checking for double... $ECHO_C" >&6
14882 if test "${ac_cv_type_double+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 cat >conftest.$ac_ext <<_ACEOF
14886 #line $LINENO "configure"
14887 #include "confdefs.h"
14888 $ac_includes_default
14889 #ifdef F77_DUMMY_MAIN
14890 # ifdef __cplusplus
14893 int F77_DUMMY_MAIN() { return 1; }
14900 if (sizeof (double))
14906 rm -f conftest.$ac_objext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14908 (eval $ac_compile) 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); } &&
14912 { ac_try='test -s conftest.$ac_objext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 ac_cv_type_double=yes
14920 echo "$as_me: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14922 ac_cv_type_double=no
14924 rm -f conftest.$ac_objext conftest.$ac_ext
14926 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14927 echo "${ECHO_T}$ac_cv_type_double" >&6
14929 echo "$as_me:$LINENO: checking alignment of double" >&5
14930 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14931 if test "${pgac_cv_alignof_double+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 if test "$ac_cv_type_double" = yes; then
14935 if test "$cross_compiling" = yes; then
14936 # Depending upon the size, compute the lo and hi bounds.
14937 cat >conftest.$ac_ext <<_ACEOF
14938 #line $LINENO "configure"
14939 #include "confdefs.h"
14940 $ac_includes_default
14941 struct { char filler; double field; } pgac_struct;
14942 #ifdef F77_DUMMY_MAIN
14943 # ifdef __cplusplus
14946 int F77_DUMMY_MAIN() { return 1; }
14951 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14958 rm -f conftest.$ac_objext
14959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14960 (eval $ac_compile) 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); } &&
14964 { ac_try='test -s conftest.$ac_objext'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }; then
14972 cat >conftest.$ac_ext <<_ACEOF
14973 #line $LINENO "configure"
14974 #include "confdefs.h"
14975 $ac_includes_default
14976 struct { char filler; double field; } pgac_struct;
14977 #ifdef F77_DUMMY_MAIN
14978 # ifdef __cplusplus
14981 int F77_DUMMY_MAIN() { return 1; }
14986 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14993 rm -f conftest.$ac_objext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14995 (eval $ac_compile) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -s conftest.$ac_objext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 ac_hi=$ac_mid; break
15007 echo "$as_me: failed program was:" >&5
15008 cat conftest.$ac_ext >&5
15009 ac_lo=`expr $ac_mid + 1`
15010 if test $ac_lo -le $ac_mid; then
15014 ac_mid=`expr 2 '*' $ac_mid + 1`
15016 rm -f conftest.$ac_objext conftest.$ac_ext
15019 echo "$as_me: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15021 cat >conftest.$ac_ext <<_ACEOF
15022 #line $LINENO "configure"
15023 #include "confdefs.h"
15024 $ac_includes_default
15025 struct { char filler; double field; } pgac_struct;
15026 #ifdef F77_DUMMY_MAIN
15027 # ifdef __cplusplus
15030 int F77_DUMMY_MAIN() { return 1; }
15035 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15042 rm -f conftest.$ac_objext
15043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15044 (eval $ac_compile) 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -s conftest.$ac_objext'
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15056 cat >conftest.$ac_ext <<_ACEOF
15057 #line $LINENO "configure"
15058 #include "confdefs.h"
15059 $ac_includes_default
15060 struct { char filler; double field; } pgac_struct;
15061 #ifdef F77_DUMMY_MAIN
15062 # ifdef __cplusplus
15065 int F77_DUMMY_MAIN() { return 1; }
15070 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15077 rm -f conftest.$ac_objext
15078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15079 (eval $ac_compile) 2>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } &&
15083 { ac_try='test -s conftest.$ac_objext'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 ac_lo=$ac_mid; break
15091 echo "$as_me: failed program was:" >&5
15092 cat conftest.$ac_ext >&5
15093 ac_hi=`expr '(' $ac_mid ')' - 1`
15094 if test $ac_mid -le $ac_hi; then
15098 ac_mid=`expr 2 '*' $ac_mid`
15100 rm -f conftest.$ac_objext conftest.$ac_ext
15103 echo "$as_me: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15107 rm -f conftest.$ac_objext conftest.$ac_ext
15109 rm -f conftest.$ac_objext conftest.$ac_ext
15110 # Binary search between lo and hi bounds.
15111 while test "x$ac_lo" != "x$ac_hi"; do
15112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15113 cat >conftest.$ac_ext <<_ACEOF
15114 #line $LINENO "configure"
15115 #include "confdefs.h"
15116 $ac_includes_default
15117 struct { char filler; double field; } pgac_struct;
15118 #ifdef F77_DUMMY_MAIN
15119 # ifdef __cplusplus
15122 int F77_DUMMY_MAIN() { return 1; }
15127 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15134 rm -f conftest.$ac_objext
15135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15136 (eval $ac_compile) 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -s conftest.$ac_objext'
15141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15142 (eval $ac_try) 2>&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); }; }; then
15148 echo "$as_me: failed program was:" >&5
15149 cat conftest.$ac_ext >&5
15150 ac_lo=`expr '(' $ac_mid ')' + 1`
15152 rm -f conftest.$ac_objext conftest.$ac_ext
15155 ?*) pgac_cv_alignof_double=$ac_lo;;
15156 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15157 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15158 { (exit 1); exit 1; }; } ;;
15161 if test "$cross_compiling" = yes; then
15162 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15163 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15164 { (exit 1); exit 1; }; }
15166 cat >conftest.$ac_ext <<_ACEOF
15167 #line $LINENO "configure"
15168 #include "confdefs.h"
15169 $ac_includes_default
15170 struct { char filler; double field; } pgac_struct;
15171 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15172 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15174 #include <stdlib.h>
15175 #ifdef F77_DUMMY_MAIN
15176 # ifdef __cplusplus
15179 int F77_DUMMY_MAIN() { return 1; }
15185 FILE *f = fopen ("conftest.val", "w");
15188 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15190 long i = longval ();
15191 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15193 fprintf (f, "%ld\n", i);
15197 unsigned long i = ulongval ();
15198 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15200 fprintf (f, "%lu\n", i);
15202 exit (ferror (f) || fclose (f) != 0);
15208 rm -f conftest$ac_exeext
15209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15210 (eval $ac_link) 2>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 pgac_cv_alignof_double=`cat conftest.val`
15221 echo "$as_me: program exited with status $ac_status" >&5
15222 echo "$as_me: failed program was:" >&5
15223 cat conftest.$ac_ext >&5
15224 ( exit $ac_status )
15225 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15226 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15227 { (exit 1); exit 1; }; }
15229 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15234 pgac_cv_alignof_double=0
15237 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15238 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15239 cat >>confdefs.h <<_ACEOF
15240 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15245 # Compute maximum alignment of any basic type.
15246 # We assume long's alignment is at least as strong as char, short, or int;
15247 # but we must check long long (if it exists) and double.
15249 MAX_ALIGNOF=$pgac_cv_alignof_long
15250 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15251 MAX_ALIGNOF=$pgac_cv_alignof_double
15253 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15254 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15257 cat >>confdefs.h <<_ACEOF
15258 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15263 # Some platforms predefine the types int8, int16, etc. Only check
15264 # a (hopefully) representative subset.
15265 echo "$as_me:$LINENO: checking for int8" >&5
15266 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15267 if test "${ac_cv_type_int8+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15270 cat >conftest.$ac_ext <<_ACEOF
15271 #line $LINENO "configure"
15272 #include "confdefs.h"
15274 #ifdef HAVE_SUPPORTDEFS_H
15275 #include <SupportDefs.h>
15278 #ifdef F77_DUMMY_MAIN
15279 # ifdef __cplusplus
15282 int F77_DUMMY_MAIN() { return 1; }
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297 (eval $ac_compile) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
15301 { ac_try='test -s conftest.$ac_objext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_cv_type_int8=yes
15309 echo "$as_me: failed program was:" >&5
15310 cat conftest.$ac_ext >&5
15313 rm -f conftest.$ac_objext conftest.$ac_ext
15315 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15316 echo "${ECHO_T}$ac_cv_type_int8" >&6
15317 if test $ac_cv_type_int8 = yes; then
15319 cat >>confdefs.h <<_ACEOF
15320 #define HAVE_INT8 1
15325 echo "$as_me:$LINENO: checking for uint8" >&5
15326 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15327 if test "${ac_cv_type_uint8+set}" = set; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 cat >conftest.$ac_ext <<_ACEOF
15331 #line $LINENO "configure"
15332 #include "confdefs.h"
15334 #ifdef HAVE_SUPPORTDEFS_H
15335 #include <SupportDefs.h>
15338 #ifdef F77_DUMMY_MAIN
15339 # ifdef __cplusplus
15342 int F77_DUMMY_MAIN() { return 1; }
15349 if (sizeof (uint8))
15355 rm -f conftest.$ac_objext
15356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15357 (eval $ac_compile) 2>&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
15361 { ac_try='test -s conftest.$ac_objext'
15362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363 (eval $ac_try) 2>&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); }; }; then
15367 ac_cv_type_uint8=yes
15369 echo "$as_me: failed program was:" >&5
15370 cat conftest.$ac_ext >&5
15371 ac_cv_type_uint8=no
15373 rm -f conftest.$ac_objext conftest.$ac_ext
15375 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15376 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15377 if test $ac_cv_type_uint8 = yes; then
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_UINT8 1
15385 echo "$as_me:$LINENO: checking for int64" >&5
15386 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15387 if test "${ac_cv_type_int64+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 cat >conftest.$ac_ext <<_ACEOF
15391 #line $LINENO "configure"
15392 #include "confdefs.h"
15394 #ifdef HAVE_SUPPORTDEFS_H
15395 #include <SupportDefs.h>
15398 #ifdef F77_DUMMY_MAIN
15399 # ifdef __cplusplus
15402 int F77_DUMMY_MAIN() { return 1; }
15409 if (sizeof (int64))
15415 rm -f conftest.$ac_objext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417 (eval $ac_compile) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
15421 { ac_try='test -s conftest.$ac_objext'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }; then
15427 ac_cv_type_int64=yes
15429 echo "$as_me: failed program was:" >&5
15430 cat conftest.$ac_ext >&5
15431 ac_cv_type_int64=no
15433 rm -f conftest.$ac_objext conftest.$ac_ext
15435 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15436 echo "${ECHO_T}$ac_cv_type_int64" >&6
15437 if test $ac_cv_type_int64 = yes; then
15439 cat >>confdefs.h <<_ACEOF
15440 #define HAVE_INT64 1
15445 echo "$as_me:$LINENO: checking for uint64" >&5
15446 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15447 if test "${ac_cv_type_uint64+set}" = set; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 cat >conftest.$ac_ext <<_ACEOF
15451 #line $LINENO "configure"
15452 #include "confdefs.h"
15454 #ifdef HAVE_SUPPORTDEFS_H
15455 #include <SupportDefs.h>
15458 #ifdef F77_DUMMY_MAIN
15459 # ifdef __cplusplus
15462 int F77_DUMMY_MAIN() { return 1; }
15469 if (sizeof (uint64))
15475 rm -f conftest.$ac_objext
15476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15477 (eval $ac_compile) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
15481 { ac_try='test -s conftest.$ac_objext'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
15487 ac_cv_type_uint64=yes
15489 echo "$as_me: failed program was:" >&5
15490 cat conftest.$ac_ext >&5
15491 ac_cv_type_uint64=no
15493 rm -f conftest.$ac_objext conftest.$ac_ext
15495 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15496 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15497 if test $ac_cv_type_uint64 = yes; then
15499 cat >>confdefs.h <<_ACEOF
15500 #define HAVE_UINT64 1
15507 # We also check for sig_atomic_t, which *should* be defined per ANSI
15508 # C, but is missing on some old platforms.
15509 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15510 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15511 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 cat >conftest.$ac_ext <<_ACEOF
15515 #line $LINENO "configure"
15516 #include "confdefs.h"
15517 #include <signal.h>
15519 #ifdef F77_DUMMY_MAIN
15520 # ifdef __cplusplus
15523 int F77_DUMMY_MAIN() { return 1; }
15528 if ((sig_atomic_t *) 0)
15530 if (sizeof (sig_atomic_t))
15536 rm -f conftest.$ac_objext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538 (eval $ac_compile) 2>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } &&
15542 { ac_try='test -s conftest.$ac_objext'
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_cv_type_sig_atomic_t=yes
15550 echo "$as_me: failed program was:" >&5
15551 cat conftest.$ac_ext >&5
15552 ac_cv_type_sig_atomic_t=no
15554 rm -f conftest.$ac_objext conftest.$ac_ext
15556 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15557 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15558 if test $ac_cv_type_sig_atomic_t = yes; then
15560 cat >>confdefs.h <<_ACEOF
15561 #define HAVE_SIG_ATOMIC_T 1
15569 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15570 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15571 if test "${pgac_cv_func_posix_signals+set}" = set; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15574 cat >conftest.$ac_ext <<_ACEOF
15575 #line $LINENO "configure"
15576 #include "confdefs.h"
15577 #include <signal.h>
15579 #ifdef F77_DUMMY_MAIN
15580 # ifdef __cplusplus
15583 int F77_DUMMY_MAIN() { return 1; }
15588 struct sigaction act, oact;
15589 sigemptyset(&act.sa_mask);
15590 act.sa_flags = SA_RESTART;
15591 sigaction(0, &act, &oact);
15596 rm -f conftest.$ac_objext conftest$ac_exeext
15597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15598 (eval $ac_link) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 pgac_cv_func_posix_signals=yes
15610 echo "$as_me: failed program was:" >&5
15611 cat conftest.$ac_ext >&5
15612 pgac_cv_func_posix_signals=no
15614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15616 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15617 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15618 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15620 cat >>confdefs.h <<\_ACEOF
15621 #define HAVE_POSIX_SIGNALS
15625 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15629 if test "$enable_nls" = yes ; then
15631 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15632 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15633 if test "${ac_cv_search_gettext+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 ac_func_search_save_LIBS=$LIBS
15637 ac_cv_search_gettext=no
15638 cat >conftest.$ac_ext <<_ACEOF
15639 #line $LINENO "configure"
15640 #include "confdefs.h"
15642 /* Override any gcc2 internal prototype to avoid an error. */
15646 /* We use char because int might match the return type of a gcc2
15647 builtin and then its argument prototype would still apply. */
15649 #ifdef F77_DUMMY_MAIN
15650 # ifdef __cplusplus
15653 int F77_DUMMY_MAIN() { return 1; }
15663 rm -f conftest.$ac_objext conftest$ac_exeext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15665 (eval $ac_link) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -s conftest$ac_exeext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_search_gettext="none required"
15677 echo "$as_me: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15681 if test "$ac_cv_search_gettext" = no; then
15682 for ac_lib in intl; do
15683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15684 cat >conftest.$ac_ext <<_ACEOF
15685 #line $LINENO "configure"
15686 #include "confdefs.h"
15688 /* Override any gcc2 internal prototype to avoid an error. */
15692 /* We use char because int might match the return type of a gcc2
15693 builtin and then its argument prototype would still apply. */
15695 #ifdef F77_DUMMY_MAIN
15696 # ifdef __cplusplus
15699 int F77_DUMMY_MAIN() { return 1; }
15709 rm -f conftest.$ac_objext conftest$ac_exeext
15710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15711 (eval $ac_link) 2>&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } &&
15715 { ac_try='test -s conftest$ac_exeext'
15716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717 (eval $ac_try) 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_search_gettext="-l$ac_lib"
15724 echo "$as_me: failed program was:" >&5
15725 cat conftest.$ac_ext >&5
15727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15730 LIBS=$ac_func_search_save_LIBS
15732 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15733 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15734 if test "$ac_cv_search_gettext" != no; then
15735 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15738 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15739 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15740 { (exit 1); exit 1; }; }
15743 if test "${ac_cv_header_libintl_h+set}" = set; then
15744 echo "$as_me:$LINENO: checking for libintl.h" >&5
15745 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15746 if test "${ac_cv_header_libintl_h+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15750 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15752 # Is the header compilable?
15753 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15754 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15755 cat >conftest.$ac_ext <<_ACEOF
15756 #line $LINENO "configure"
15757 #include "confdefs.h"
15758 $ac_includes_default
15759 #include <libintl.h>
15761 rm -f conftest.$ac_objext
15762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763 (eval $ac_compile) 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } &&
15767 { ac_try='test -s conftest.$ac_objext'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ac_header_compiler=yes
15775 echo "$as_me: failed program was:" >&5
15776 cat conftest.$ac_ext >&5
15777 ac_header_compiler=no
15779 rm -f conftest.$ac_objext conftest.$ac_ext
15780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15781 echo "${ECHO_T}$ac_header_compiler" >&6
15783 # Is the header present?
15784 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15785 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15786 cat >conftest.$ac_ext <<_ACEOF
15787 #line $LINENO "configure"
15788 #include "confdefs.h"
15789 #include <libintl.h>
15791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15794 egrep -v '^ *\+' conftest.er1 >conftest.err
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } >/dev/null; then
15799 if test -s conftest.err; then
15800 ac_cpp_err=$ac_c_preproc_warn_flag
15807 if test -z "$ac_cpp_err"; then
15808 ac_header_preproc=yes
15810 echo "$as_me: failed program was:" >&5
15811 cat conftest.$ac_ext >&5
15812 ac_header_preproc=no
15814 rm -f conftest.err conftest.$ac_ext
15815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15816 echo "${ECHO_T}$ac_header_preproc" >&6
15818 # So? What about this header?
15819 case $ac_header_compiler:$ac_header_preproc in
15821 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15822 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15823 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15824 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15826 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15827 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15829 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15831 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15833 echo "$as_me:$LINENO: checking for libintl.h" >&5
15834 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15835 if test "${ac_cv_header_libintl_h+set}" = set; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 ac_cv_header_libintl_h=$ac_header_preproc
15840 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15841 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15844 if test $ac_cv_header_libintl_h = yes; then
15847 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15848 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15849 { (exit 1); exit 1; }; }
15853 for ac_prog in msgfmt
15855 # Extract the first word of "$ac_prog", so it can be a program name with args.
15856 set dummy $ac_prog; ac_word=$2
15857 echo "$as_me:$LINENO: checking for $ac_word" >&5
15858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15859 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 if test -n "$MSGFMT"; then
15863 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15866 for as_dir in $PATH
15869 test -z "$as_dir" && as_dir=.
15870 for ac_exec_ext in '' $ac_executable_extensions; do
15871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15872 ac_cv_prog_MSGFMT="$ac_prog"
15873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15881 MSGFMT=$ac_cv_prog_MSGFMT
15882 if test -n "$MSGFMT"; then
15883 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15884 echo "${ECHO_T}$MSGFMT" >&6
15886 echo "$as_me:$LINENO: result: no" >&5
15887 echo "${ECHO_T}no" >&6
15890 test -n "$MSGFMT" && break
15893 if test -z "$MSGFMT"; then
15894 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15895 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15896 { (exit 1); exit 1; }; }
15898 for ac_prog in msgmerge
15900 # Extract the first word of "$ac_prog", so it can be a program name with args.
15901 set dummy $ac_prog; ac_word=$2
15902 echo "$as_me:$LINENO: checking for $ac_word" >&5
15903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15904 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15905 echo $ECHO_N "(cached) $ECHO_C" >&6
15907 if test -n "$MSGMERGE"; then
15908 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15911 for as_dir in $PATH
15914 test -z "$as_dir" && as_dir=.
15915 for ac_exec_ext in '' $ac_executable_extensions; do
15916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15917 ac_cv_prog_MSGMERGE="$ac_prog"
15918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15926 MSGMERGE=$ac_cv_prog_MSGMERGE
15927 if test -n "$MSGMERGE"; then
15928 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15929 echo "${ECHO_T}$MSGMERGE" >&6
15931 echo "$as_me:$LINENO: result: no" >&5
15932 echo "${ECHO_T}no" >&6
15935 test -n "$MSGMERGE" && break
15938 for ac_prog in xgettext
15940 # Extract the first word of "$ac_prog", so it can be a program name with args.
15941 set dummy $ac_prog; ac_word=$2
15942 echo "$as_me:$LINENO: checking for $ac_word" >&5
15943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15944 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 if test -n "$XGETTEXT"; then
15948 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951 for as_dir in $PATH
15954 test -z "$as_dir" && as_dir=.
15955 for ac_exec_ext in '' $ac_executable_extensions; do
15956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15957 ac_cv_prog_XGETTEXT="$ac_prog"
15958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15966 XGETTEXT=$ac_cv_prog_XGETTEXT
15967 if test -n "$XGETTEXT"; then
15968 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15969 echo "${ECHO_T}$XGETTEXT" >&6
15971 echo "$as_me:$LINENO: result: no" >&5
15972 echo "${ECHO_T}no" >&6
15975 test -n "$XGETTEXT" && break
15979 # Note: share/locale is always the default, independent of $datadir
15980 localedir='${prefix}/share/locale'
15981 if test x"$prefix" = x"NONE"; then
15982 exp_localedir="$ac_default_prefix/share/locale"
15984 exp_localedir="$prefix/share/locale"
15989 cat >>confdefs.h <<_ACEOF
15990 #define LOCALEDIR "$exp_localedir"
15996 if test "$with_CXX" = yes; then
16000 ac_cpp='$CXXCPP $CPPFLAGS'
16001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16005 if test "${ac_cv_header_string+set}" = set; then
16006 echo "$as_me:$LINENO: checking for string" >&5
16007 echo $ECHO_N "checking for string... $ECHO_C" >&6
16008 if test "${ac_cv_header_string+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16011 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16012 echo "${ECHO_T}$ac_cv_header_string" >&6
16014 # Is the header compilable?
16015 echo "$as_me:$LINENO: checking string usability" >&5
16016 echo $ECHO_N "checking string usability... $ECHO_C" >&6
16017 cat >conftest.$ac_ext <<_ACEOF
16018 #line $LINENO "configure"
16019 #include "confdefs.h"
16020 $ac_includes_default
16023 rm -f conftest.$ac_objext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16025 (eval $ac_compile) 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_header_compiler=yes
16037 echo "$as_me: failed program was:" >&5
16038 cat conftest.$ac_ext >&5
16039 ac_header_compiler=no
16041 rm -f conftest.$ac_objext conftest.$ac_ext
16042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16043 echo "${ECHO_T}$ac_header_compiler" >&6
16045 # Is the header present?
16046 echo "$as_me:$LINENO: checking string presence" >&5
16047 echo $ECHO_N "checking string presence... $ECHO_C" >&6
16048 cat >conftest.$ac_ext <<_ACEOF
16049 #line $LINENO "configure"
16050 #include "confdefs.h"
16053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16056 egrep -v '^ *\+' conftest.er1 >conftest.err
16058 cat conftest.err >&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } >/dev/null; then
16061 if test -s conftest.err; then
16062 ac_cpp_err=$ac_cxx_preproc_warn_flag
16069 if test -z "$ac_cpp_err"; then
16070 ac_header_preproc=yes
16072 echo "$as_me: failed program was:" >&5
16073 cat conftest.$ac_ext >&5
16074 ac_header_preproc=no
16076 rm -f conftest.err conftest.$ac_ext
16077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16078 echo "${ECHO_T}$ac_header_preproc" >&6
16080 # So? What about this header?
16081 case $ac_header_compiler:$ac_header_preproc in
16083 { echo "$as_me:$LINENO: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&5
16084 echo "$as_me: WARNING: string: accepted by the compiler, rejected by the preprocessor!" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16086 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16088 { echo "$as_me:$LINENO: WARNING: string: present but cannot be compiled" >&5
16089 echo "$as_me: WARNING: string: present but cannot be compiled" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: string: check for missing prerequisite headers?" >&5
16091 echo "$as_me: WARNING: string: check for missing prerequisite headers?" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: string: proceeding with the preprocessor's result" >&5
16093 echo "$as_me: WARNING: string: proceeding with the preprocessor's result" >&2;};;
16095 echo "$as_me:$LINENO: checking for string" >&5
16096 echo $ECHO_N "checking for string... $ECHO_C" >&6
16097 if test "${ac_cv_header_string+set}" = set; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 ac_cv_header_string=$ac_header_preproc
16102 echo "$as_me:$LINENO: result: $ac_cv_header_string" >&5
16103 echo "${ECHO_T}$ac_cv_header_string" >&6
16106 if test $ac_cv_header_string = yes; then
16108 cat >>confdefs.h <<\_ACEOF
16109 #define HAVE_CXX_STRING_HEADER 1
16113 echo "$as_me:$LINENO: checking for class string in <string.h>" >&5
16114 echo $ECHO_N "checking for class string in <string.h>... $ECHO_C" >&6
16115 if test "${pgac_cv_class_string_in_string_h+set}" = set; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 cat >conftest.$ac_ext <<_ACEOF
16119 #line $LINENO "configure"
16120 #include "confdefs.h"
16122 #include <stdlib.h>
16123 #include <string.h>
16125 #ifdef F77_DUMMY_MAIN
16126 # ifdef __cplusplus
16129 int F77_DUMMY_MAIN() { return 1; }
16134 string foo = "test"
16139 rm -f conftest.$ac_objext
16140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16141 (eval $ac_compile) 2>&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -s conftest.$ac_objext'
16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16151 pgac_cv_class_string_in_string_h=yes
16153 echo "$as_me: failed program was:" >&5
16154 cat conftest.$ac_ext >&5
16155 pgac_cv_class_string_in_string_h=no
16157 rm -f conftest.$ac_objext conftest.$ac_ext
16159 echo "$as_me:$LINENO: result: $pgac_cv_class_string_in_string_h" >&5
16160 echo "${ECHO_T}$pgac_cv_class_string_in_string_h" >&6
16162 if test x"$pgac_cv_class_string_in_string_h" != xyes ; then
16163 { { echo "$as_me:$LINENO: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&5
16164 echo "$as_me: error: neither <string> nor <string.h> seem to define the C++ class 'string'" >&2;}
16165 { (exit 1); exit 1; }; }
16172 ac_cpp='$CPP $CPPFLAGS'
16173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16178 echo "$as_me:$LINENO: checking for namespace std in C++" >&5
16179 echo $ECHO_N "checking for namespace std in C++... $ECHO_C" >&6
16180 if test "${pgac_cv_cxx_namespace_std+set}" = set; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 ac_cpp='$CXXCPP $CPPFLAGS'
16186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16190 cat >conftest.$ac_ext <<_ACEOF
16191 #line $LINENO "configure"
16192 #include "confdefs.h"
16194 #include <stdlib.h>
16195 #ifdef HAVE_CXX_STRING_HEADER
16198 using namespace std;
16200 #ifdef F77_DUMMY_MAIN
16201 # ifdef __cplusplus
16204 int F77_DUMMY_MAIN() { return 1; }
16214 rm -f conftest.$ac_objext
16215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16216 (eval $ac_compile) 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } &&
16220 { ac_try='test -s conftest.$ac_objext'
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 pgac_cv_cxx_namespace_std=yes
16228 echo "$as_me: failed program was:" >&5
16229 cat conftest.$ac_ext >&5
16230 pgac_cv_cxx_namespace_std=no
16232 rm -f conftest.$ac_objext conftest.$ac_ext
16234 ac_cpp='$CPP $CPPFLAGS'
16235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16240 echo "$as_me:$LINENO: result: $pgac_cv_cxx_namespace_std" >&5
16241 echo "${ECHO_T}$pgac_cv_cxx_namespace_std" >&6
16243 if test $pgac_cv_cxx_namespace_std = yes ; then
16245 cat >>confdefs.h <<\_ACEOF
16246 #define HAVE_NAMESPACE_STD 1
16253 # Check for Tcl configuration script tclConfig.sh
16254 if test "$with_tcl" = yes; then
16255 for ac_prog in tclsh tcl
16257 # Extract the first word of "$ac_prog", so it can be a program name with args.
16258 set dummy $ac_prog; ac_word=$2
16259 echo "$as_me:$LINENO: checking for $ac_word" >&5
16260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16261 if test "${ac_cv_path_TCLSH+set}" = set; then
16262 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16270 for as_dir in $PATH
16273 test -z "$as_dir" && as_dir=.
16274 for ac_exec_ext in '' $ac_executable_extensions; do
16275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16276 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16286 TCLSH=$ac_cv_path_TCLSH
16288 if test -n "$TCLSH"; then
16289 echo "$as_me:$LINENO: result: $TCLSH" >&5
16290 echo "${ECHO_T}$TCLSH" >&6
16292 echo "$as_me:$LINENO: result: no" >&5
16293 echo "${ECHO_T}no" >&6
16296 test -n "$TCLSH" && break
16299 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16300 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16301 # Let user override test
16302 if test -z "$TCL_CONFIG_SH"; then
16303 pgac_test_dirs="$with_tclconfig"
16305 set X $pgac_test_dirs; shift
16306 if test $# -eq 0; then
16307 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16308 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16309 { (exit 1); exit 1; }; }
16310 set X `echo 'puts $auto_path' | $TCLSH`; shift
16314 if test -r "$pgac_dir/tclConfig.sh"; then
16315 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16321 if test -z "$TCL_CONFIG_SH"; then
16322 echo "$as_me:$LINENO: result: no" >&5
16323 echo "${ECHO_T}no" >&6
16324 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16325 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16326 { (exit 1); exit 1; }; }
16328 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16329 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16336 # Check for Tk configuration script tkConfig.sh
16337 if test "$with_tk" = yes; then
16338 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16339 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16340 # Let user override test
16341 if test -z "$TK_CONFIG_SH"; then
16342 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16344 set X $pgac_test_dirs; shift
16345 if test $# -eq 0; then
16346 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16347 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16348 { (exit 1); exit 1; }; }
16349 set X `echo 'puts $auto_path' | $TCLSH`; shift
16353 if test -r "$pgac_dir/tkConfig.sh"; then
16354 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16360 if test -z "$TK_CONFIG_SH"; then
16361 echo "$as_me:$LINENO: result: no" >&5
16362 echo "${ECHO_T}no" >&6
16363 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16364 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16365 { (exit 1); exit 1; }; }
16367 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16368 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16377 # Check for DocBook and tools
16379 for ac_prog in onsgmls nsgmls
16381 # Extract the first word of "$ac_prog", so it can be a program name with args.
16382 set dummy $ac_prog; ac_word=$2
16383 echo "$as_me:$LINENO: checking for $ac_word" >&5
16384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16385 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 if test -n "$NSGMLS"; then
16389 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392 for as_dir in $PATH
16395 test -z "$as_dir" && as_dir=.
16396 for ac_exec_ext in '' $ac_executable_extensions; do
16397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16398 ac_cv_prog_NSGMLS="$ac_prog"
16399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16407 NSGMLS=$ac_cv_prog_NSGMLS
16408 if test -n "$NSGMLS"; then
16409 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16410 echo "${ECHO_T}$NSGMLS" >&6
16412 echo "$as_me:$LINENO: result: no" >&5
16413 echo "${ECHO_T}no" >&6
16416 test -n "$NSGMLS" && break
16419 for ac_prog in openjade jade
16421 # Extract the first word of "$ac_prog", so it can be a program name with args.
16422 set dummy $ac_prog; ac_word=$2
16423 echo "$as_me:$LINENO: checking for $ac_word" >&5
16424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16425 if test "${ac_cv_prog_JADE+set}" = set; then
16426 echo $ECHO_N "(cached) $ECHO_C" >&6
16428 if test -n "$JADE"; then
16429 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $PATH
16435 test -z "$as_dir" && as_dir=.
16436 for ac_exec_ext in '' $ac_executable_extensions; do
16437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16438 ac_cv_prog_JADE="$ac_prog"
16439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16447 JADE=$ac_cv_prog_JADE
16448 if test -n "$JADE"; then
16449 echo "$as_me:$LINENO: result: $JADE" >&5
16450 echo "${ECHO_T}$JADE" >&6
16452 echo "$as_me:$LINENO: result: no" >&5
16453 echo "${ECHO_T}no" >&6
16456 test -n "$JADE" && break
16460 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16461 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16462 if test "${pgac_cv_check_docbook+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 cat >conftest.sgml <<EOF
16466 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16468 <title>test</title>
16470 <title>random</title>
16472 <title>testsect</title>
16479 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16480 if test $? -eq 0; then
16481 pgac_cv_check_docbook=yes
16483 pgac_cv_check_docbook=no
16485 rm -f conftest.sgml
16487 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16488 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16490 have_docbook=$pgac_cv_check_docbook
16493 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16494 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16495 if test "${pgac_cv_path_stylesheets+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 if test -n "$DOCBOOKSTYLE"; then
16499 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16501 for pgac_prefix in /usr /usr/local /opt; do
16502 for pgac_infix in share lib; do
16503 for pgac_postfix in \
16504 sgml/stylesheets/nwalsh-modular \
16505 sgml/stylesheets/docbook \
16506 sgml/docbook/dsssl/modular \
16507 sgml/docbook/dsssl-stylesheets
16509 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16510 if test -r "$pgac_candidate/html/docbook.dsl" \
16511 && test -r "$pgac_candidate/print/docbook.dsl"
16513 pgac_cv_path_stylesheets=$pgac_candidate
16522 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16524 if test -n "$DOCBOOKSTYLE"; then
16525 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16526 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16528 echo "$as_me:$LINENO: result: no" >&5
16529 echo "${ECHO_T}no" >&6
16531 if test -n "$DOCBOOKSTYLE"; then
16532 for ac_prog in collateindex.pl
16534 # Extract the first word of "$ac_prog", so it can be a program name with args.
16535 set dummy $ac_prog; ac_word=$2
16536 echo "$as_me:$LINENO: checking for $ac_word" >&5
16537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16538 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 case $COLLATEINDEX in
16543 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547 for as_dir in $DOCBOOKSTYLE/bin $PATH
16550 test -z "$as_dir" && as_dir=.
16551 for ac_exec_ext in '' $ac_executable_extensions; do
16552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16553 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16563 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16565 if test -n "$COLLATEINDEX"; then
16566 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16567 echo "${ECHO_T}$COLLATEINDEX" >&6
16569 echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6
16573 test -n "$COLLATEINDEX" && break
16577 for ac_prog in collateindex.pl
16579 # Extract the first word of "$ac_prog", so it can be a program name with args.
16580 set dummy $ac_prog; ac_word=$2
16581 echo "$as_me:$LINENO: checking for $ac_word" >&5
16582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16583 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 case $COLLATEINDEX in
16588 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $PATH
16595 test -z "$as_dir" && as_dir=.
16596 for ac_exec_ext in '' $ac_executable_extensions; do
16597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16608 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16610 if test -n "$COLLATEINDEX"; then
16611 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16612 echo "${ECHO_T}$COLLATEINDEX" >&6
16614 echo "$as_me:$LINENO: result: no" >&5
16615 echo "${ECHO_T}no" >&6
16618 test -n "$COLLATEINDEX" && break
16622 for ac_prog in sgmlspl
16624 # Extract the first word of "$ac_prog", so it can be a program name with args.
16625 set dummy $ac_prog; ac_word=$2
16626 echo "$as_me:$LINENO: checking for $ac_word" >&5
16627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16628 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16631 if test -n "$SGMLSPL"; then
16632 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16635 for as_dir in $PATH
16638 test -z "$as_dir" && as_dir=.
16639 for ac_exec_ext in '' $ac_executable_extensions; do
16640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16641 ac_cv_prog_SGMLSPL="$ac_prog"
16642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16650 SGMLSPL=$ac_cv_prog_SGMLSPL
16651 if test -n "$SGMLSPL"; then
16652 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16653 echo "${ECHO_T}$SGMLSPL" >&6
16655 echo "$as_me:$LINENO: result: no" >&5
16656 echo "${ECHO_T}no" >&6
16659 test -n "$SGMLSPL" && break
16664 # prepare build tree if outside source tree
16665 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16666 # Note 2: /bin/pwd might be better than shell's built-in at getting
16667 # a symlink-free name.
16668 if test "$no_create" != yes; then
16669 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16674 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16675 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16676 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16677 || { { echo "$as_me:$LINENO: error: failed" >&5
16678 echo "$as_me: error: failed" >&2;}
16679 { (exit 1); exit 1; }; }
16680 echo "$as_me:$LINENO: result: done" >&5
16681 echo "${ECHO_T}done" >&6
16686 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16689 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c 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}"
16692 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16695 cat >confcache <<\_ACEOF
16696 # This file is a shell script that caches the results of configure
16697 # tests run on this system so they can be shared between configure
16698 # scripts and configure runs, see configure's option --config-cache.
16699 # It is not useful on other systems. If it contains results you don't
16700 # want to keep, you may remove or edit it.
16702 # config.status only pays attention to the cache file if you give it
16703 # the --recheck option to rerun configure.
16705 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16706 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16707 # following values.
16711 # The following way of writing the cache mishandles newlines in values,
16712 # but we know of no workaround that is simple, portable, and efficient.
16713 # So, don't put newlines in cache variables' values.
16714 # Ultrix sh set writes to stderr and can't be redirected directly,
16715 # and sets the high bit in the cache file unless we assign to the vars.
16718 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16720 # `set' does not quote correctly, so add quotes (double-quote
16721 # substitution turns \\\\ into \\, and sed turns \\ into \).
16724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16727 # `set' quotes correctly as required by POSIX, so do not add quotes.
16729 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16738 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16740 if cmp -s $cache_file confcache; then :; else
16741 if test -w $cache_file; then
16742 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16743 cat confcache >$cache_file
16745 echo "not updating unwritable cache $cache_file"
16750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16751 # Let make expand exec_prefix.
16752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16754 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16755 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16756 # trailing colons and then remove the whole line if VPATH becomes empty
16757 # (actually we leave an empty line to preserve line numbers).
16758 if test "x$srcdir" = x.; then
16759 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16760 s/:*\$(srcdir):*/:/;
16761 s/:*\${srcdir}:*/:/;
16763 s/^\([^=]*=[ ]*\):*/\1/;
16769 DEFS=-DHAVE_CONFIG_H
16772 : ${CONFIG_STATUS=./config.status}
16773 ac_clean_files_save=$ac_clean_files
16774 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16775 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16776 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16777 cat >$CONFIG_STATUS <<_ACEOF
16779 # Generated by $as_me.
16780 # Run this file to recreate the current configuration.
16781 # Compiler output produced by configure, useful for debugging
16782 # configure, is in config.log if it exists.
16785 SHELL=\${CONFIG_SHELL-$SHELL}
16788 cat >>$CONFIG_STATUS <<\_ACEOF
16790 ## --------------------- ##
16791 ## M4sh Initialization. ##
16792 ## --------------------- ##
16794 # Be Bourne compatible
16795 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16798 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16803 # Support unset when possible.
16804 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16810 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16811 { $as_unset LANG || test "${LANG+set}" != set; } ||
16812 { LANG=C; export LANG; }
16813 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16814 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16815 { LC_ALL=C; export LC_ALL; }
16816 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16817 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16818 { LC_TIME=C; export LC_TIME; }
16819 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16820 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16821 { LC_CTYPE=C; export LC_CTYPE; }
16822 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16823 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16824 { LANGUAGE=C; export LANGUAGE; }
16825 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16826 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16827 { LC_COLLATE=C; export LC_COLLATE; }
16828 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16829 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16830 { LC_NUMERIC=C; export LC_NUMERIC; }
16831 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16832 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16833 { LC_MESSAGES=C; export LC_MESSAGES; }
16836 # Name of the executable.
16837 as_me=`(basename "$0") 2>/dev/null ||
16838 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16839 X"$0" : 'X\(//\)$' \| \
16840 X"$0" : 'X\(/\)$' \| \
16841 . : '\(.\)' 2>/dev/null ||
16843 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16844 /^X\/\(\/\/\)$/{ s//\1/; q; }
16845 /^X\/\(\/\).*/{ s//\1/; q; }
16848 # PATH needs CR, and LINENO needs CR and PATH.
16849 # Avoid depending upon Character Ranges.
16850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16853 as_cr_digits='0123456789'
16854 as_cr_alnum=$as_cr_Letters$as_cr_digits
16856 # The user is always right.
16857 if test "${PATH_SEPARATOR+set}" != set; then
16858 echo "#! /bin/sh" >conftest.sh
16859 echo "exit 0" >>conftest.sh
16860 chmod +x conftest.sh
16861 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16870 as_lineno_1=$LINENO
16871 as_lineno_2=$LINENO
16872 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16873 test "x$as_lineno_1" != "x$as_lineno_2" &&
16874 test "x$as_lineno_3" = "x$as_lineno_2" || {
16875 # Find who we are. Look in the path if we contain no path at all
16878 *[\\/]* ) as_myself=$0 ;;
16879 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16880 for as_dir in $PATH
16883 test -z "$as_dir" && as_dir=.
16884 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16889 # We did not find ourselves, most probably we were run as `sh COMMAND'
16890 # in which case we are not to be found in the path.
16891 if test "x$as_myself" = x; then
16894 if test ! -f "$as_myself"; then
16895 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16896 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16897 { (exit 1); exit 1; }; }
16899 case $CONFIG_SHELL in
16901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16902 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16905 test -z "$as_dir" && as_dir=.
16906 for as_base in sh bash ksh sh5; do
16909 if ("$as_dir/$as_base" -c '
16910 as_lineno_1=$LINENO
16911 as_lineno_2=$LINENO
16912 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16913 test "x$as_lineno_1" != "x$as_lineno_2" &&
16914 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16915 CONFIG_SHELL=$as_dir/$as_base
16916 export CONFIG_SHELL
16917 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16925 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16926 # uniformly replaced by the line number. The first 'sed' inserts a
16927 # line-number line before each line; the second 'sed' does the real
16928 # work. The second script uses 'N' to pair each line-number line
16929 # with the numbered line, and appends trailing '-' during
16930 # substitution so that $LINENO is not a special case at line end.
16931 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16932 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16933 sed '=' <$as_myself |
16938 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16941 s,^['$as_cr_digits']*\n,,
16942 ' >$as_me.lineno &&
16943 chmod +x $as_me.lineno ||
16944 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16945 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16946 { (exit 1); exit 1; }; }
16948 # Don't try to exec as it changes $[0], causing all sort of problems
16949 # (the dirname of $[0] is not the place where we might find the
16950 # original and so on. Autoconf is especially sensible to this).
16952 # Exit status is that of the last command.
16957 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16958 *c*,-n*) ECHO_N= ECHO_C='
16960 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16961 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16964 if expr a : '\(a\)' >/dev/null 2>&1; then
16970 rm -f conf$$ conf$$.exe conf$$.file
16972 if ln -s conf$$.file conf$$ 2>/dev/null; then
16973 # We could just check for DJGPP; but this test a) works b) is more generic
16974 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16975 if test -f conf$$.exe; then
16976 # Don't use ln at all; we don't have any links
16981 elif ln conf$$.file conf$$ 2>/dev/null; then
16986 rm -f conf$$ conf$$.exe conf$$.file
16988 as_executable_p="test -f"
16990 # Sed expression to map a string onto a valid CPP name.
16991 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16993 # Sed expression to map a string onto a valid variable name.
16994 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16998 # We need space, tab and new line, in precisely that order.
17004 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17008 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17009 # report actual input values of CONFIG_FILES etc. instead of their
17010 # values after options handling. Logging --version etc. is OK.
17014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17015 ## Running $as_me. ##
17020 This file was extended by PostgreSQL $as_me 7.3devel, which was
17021 generated by GNU Autoconf 2.53. Invocation command line was
17023 CONFIG_FILES = $CONFIG_FILES
17024 CONFIG_HEADERS = $CONFIG_HEADERS
17025 CONFIG_LINKS = $CONFIG_LINKS
17026 CONFIG_COMMANDS = $CONFIG_COMMANDS
17030 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17034 # Files that config.status was made for.
17035 if test -n "$ac_config_files"; then
17036 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17039 if test -n "$ac_config_headers"; then
17040 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17043 if test -n "$ac_config_links"; then
17044 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17047 if test -n "$ac_config_commands"; then
17048 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17051 cat >>$CONFIG_STATUS <<\_ACEOF
17054 \`$as_me' instantiates files from templates according to the
17055 current configuration.
17057 Usage: $0 [OPTIONS] [FILE]...
17059 -h, --help print this help, then exit
17060 -V, --version print version number, then exit
17061 -d, --debug don't remove temporary files
17062 --recheck update $as_me by reconfiguring in the same conditions
17063 --file=FILE[:TEMPLATE]
17064 instantiate the configuration file FILE
17065 --header=FILE[:TEMPLATE]
17066 instantiate the configuration header FILE
17068 Configuration files:
17071 Configuration headers:
17074 Configuration links:
17077 Report bugs to <bug-autoconf@gnu.org>."
17080 cat >>$CONFIG_STATUS <<_ACEOF
17082 PostgreSQL config.status 7.3devel
17083 configured by $0, generated by GNU Autoconf 2.53,
17084 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17086 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17087 Free Software Foundation, Inc.
17088 This config.status script is free software; the Free Software Foundation
17089 gives unlimited permission to copy, distribute and modify it."
17093 cat >>$CONFIG_STATUS <<\_ACEOF
17094 # If no file are specified by the user, then we need to provide default
17095 # value. By we need to know if files were specified by the user.
17101 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17102 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17104 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17108 *) # This is not an option, so the user has probably given explicit
17110 ac_need_defaults=false;;
17114 # Handling of the options.
17116 cat >>$CONFIG_STATUS <<_ACEOF
17117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17118 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17119 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17121 cat >>$CONFIG_STATUS <<\_ACEOF
17122 --version | --vers* | -V )
17123 echo "$ac_cs_version"; exit 0 ;;
17125 # Conflict between --help and --header
17126 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17127 Try \`$0 --help' for more information." >&5
17128 echo "$as_me: error: ambiguous option: $1
17129 Try \`$0 --help' for more information." >&2;}
17130 { (exit 1); exit 1; }; };;
17131 --help | --hel | -h )
17132 echo "$ac_cs_usage"; exit 0 ;;
17133 --debug | --d* | -d )
17135 --file | --fil | --fi | --f )
17137 CONFIG_FILES="$CONFIG_FILES $1"
17138 ac_need_defaults=false;;
17139 --header | --heade | --head | --hea )
17141 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17142 ac_need_defaults=false;;
17144 # This is an error.
17145 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17146 Try \`$0 --help' for more information." >&5
17147 echo "$as_me: error: unrecognized option: $1
17148 Try \`$0 --help' for more information." >&2;}
17149 { (exit 1); exit 1; }; } ;;
17151 *) ac_config_targets="$ac_config_targets $1" ;;
17163 cat >>$CONFIG_STATUS <<\_ACEOF
17164 for ac_config_target in $ac_config_targets
17166 case "$ac_config_target" in
17167 # Handling of arguments.
17168 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17169 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17170 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17171 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17172 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17173 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17174 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17175 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17176 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17177 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17178 { (exit 1); exit 1; }; };;
17182 # If the user did not use the arguments to specify the items to instantiate,
17183 # then the envvar interface is used. Set only those that are not.
17184 # We use the long form for the default assignment because of an extremely
17185 # bizarre bug on SunOS 4.1.3.
17186 if $ac_need_defaults; then
17187 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17188 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17189 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17192 # Create a temporary directory, and hook for its removal unless debugging.
17195 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17196 trap '{ (exit 1); exit 1; }' 1 2 13 15
17199 # Create a (secure) tmp directory for tmp files.
17202 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17203 test -n "$tmp" && test -d "$tmp"
17206 tmp=$TMPDIR/cs$$-$RANDOM
17207 (umask 077 && mkdir $tmp)
17210 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17211 { (exit 1); exit 1; }
17216 cat >>$CONFIG_STATUS <<_ACEOF
17219 # CONFIG_FILES section.
17222 # No need to generate the scripts if there are no CONFIG_FILES.
17223 # This happens for instance when ./config.status config.h
17224 if test -n "\$CONFIG_FILES"; then
17225 # Protect against being on the right side of a sed subst in config.status.
17226 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17227 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17228 s,@SHELL@,$SHELL,;t t
17229 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17230 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17231 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17232 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17233 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17234 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17235 s,@exec_prefix@,$exec_prefix,;t t
17236 s,@prefix@,$prefix,;t t
17237 s,@program_transform_name@,$program_transform_name,;t t
17238 s,@bindir@,$bindir,;t t
17239 s,@sbindir@,$sbindir,;t t
17240 s,@libexecdir@,$libexecdir,;t t
17241 s,@datadir@,$datadir,;t t
17242 s,@sysconfdir@,$sysconfdir,;t t
17243 s,@sharedstatedir@,$sharedstatedir,;t t
17244 s,@localstatedir@,$localstatedir,;t t
17245 s,@libdir@,$libdir,;t t
17246 s,@includedir@,$includedir,;t t
17247 s,@oldincludedir@,$oldincludedir,;t t
17248 s,@infodir@,$infodir,;t t
17249 s,@mandir@,$mandir,;t t
17250 s,@build_alias@,$build_alias,;t t
17251 s,@host_alias@,$host_alias,;t t
17252 s,@target_alias@,$target_alias,;t t
17253 s,@DEFS@,$DEFS,;t t
17254 s,@ECHO_C@,$ECHO_C,;t t
17255 s,@ECHO_N@,$ECHO_N,;t t
17256 s,@ECHO_T@,$ECHO_T,;t t
17257 s,@LIBS@,$LIBS,;t t
17258 s,@docdir@,$docdir,;t t
17259 s,@configure_args@,$configure_args,;t t
17260 s,@build@,$build,;t t
17261 s,@build_cpu@,$build_cpu,;t t
17262 s,@build_vendor@,$build_vendor,;t t
17263 s,@build_os@,$build_os,;t t
17264 s,@host@,$host,;t t
17265 s,@host_cpu@,$host_cpu,;t t
17266 s,@host_vendor@,$host_vendor,;t t
17267 s,@host_os@,$host_os,;t t
17268 s,@PORTNAME@,$PORTNAME,;t t
17270 s,@MULTIBYTE@,$MULTIBYTE,;t t
17271 s,@enable_nls@,$enable_nls,;t t
17272 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17273 s,@default_port@,$default_port,;t t
17274 s,@enable_shared@,$enable_shared,;t t
17275 s,@enable_rpath@,$enable_rpath,;t t
17276 s,@enable_debug@,$enable_debug,;t t
17278 s,@CFLAGS@,$CFLAGS,;t t
17279 s,@LDFLAGS@,$LDFLAGS,;t t
17280 s,@CPPFLAGS@,$CPPFLAGS,;t t
17281 s,@ac_ct_CC@,$ac_ct_CC,;t t
17282 s,@EXEEXT@,$EXEEXT,;t t
17283 s,@OBJEXT@,$OBJEXT,;t t
17286 s,@autodepend@,$autodepend,;t t
17287 s,@INCLUDES@,$INCLUDES,;t t
17288 s,@with_tcl@,$with_tcl,;t t
17289 s,@with_tk@,$with_tk,;t t
17290 s,@with_perl@,$with_perl,;t t
17291 s,@with_python@,$with_python,;t t
17293 s,@with_java@,$with_java,;t t
17294 s,@with_krb4@,$with_krb4,;t t
17295 s,@with_krb5@,$with_krb5,;t t
17296 s,@krb_srvtab@,$krb_srvtab,;t t
17297 s,@with_pam@,$with_pam,;t t
17298 s,@with_openssl@,$with_openssl,;t t
17299 s,@enable_odbc@,$enable_odbc,;t t
17300 s,@with_unixodbc@,$with_unixodbc,;t t
17301 s,@with_iodbc@,$with_iodbc,;t t
17302 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
17303 s,@ELF_SYS@,$ELF_SYS,;t t
17305 s,@CXXFLAGS@,$CXXFLAGS,;t t
17306 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17307 s,@CXXCPP@,$CXXCPP,;t t
17308 s,@with_CXX@,$with_CXX,;t t
17311 s,@FLEX@,$FLEX,;t t
17312 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17313 s,@LN_S@,$LN_S,;t t
17315 s,@with_gnu_ld@,$with_gnu_ld,;t t
17316 s,@ld_R_works@,$ld_R_works,;t t
17317 s,@RANLIB@,$RANLIB,;t t
17318 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17319 s,@LORDER@,$LORDER,;t t
17321 s,@STRIP@,$STRIP,;t t
17322 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17323 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17324 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17325 s,@YACC@,$YACC,;t t
17326 s,@YFLAGS@,$YFLAGS,;t t
17327 s,@WISH@,$WISH,;t t
17328 s,@PERL@,$PERL,;t t
17329 s,@perl_installsitearch@,$perl_installsitearch,;t t
17330 s,@perl_installsitelib@,$perl_installsitelib,;t t
17331 s,@perl_installman3dir@,$perl_installman3dir,;t t
17332 s,@PYTHON@,$PYTHON,;t t
17333 s,@python_version@,$python_version,;t t
17334 s,@python_prefix@,$python_prefix,;t t
17335 s,@python_execprefix@,$python_execprefix,;t t
17336 s,@python_configdir@,$python_configdir,;t t
17337 s,@python_moduledir@,$python_moduledir,;t t
17338 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17339 s,@python_includespec@,$python_includespec,;t t
17340 s,@python_libspec@,$python_libspec,;t t
17341 s,@MEMCMP@,$MEMCMP,;t t
17342 s,@SNPRINTF@,$SNPRINTF,;t t
17343 s,@ISINF@,$ISINF,;t t
17344 s,@GETRUSAGE@,$GETRUSAGE,;t t
17345 s,@SRANDOM@,$SRANDOM,;t t
17346 s,@GETHOSTNAME@,$GETHOSTNAME,;t t
17347 s,@MISSING_RANDOM@,$MISSING_RANDOM,;t t
17348 s,@INET_ATON@,$INET_ATON,;t t
17349 s,@STRERROR@,$STRERROR,;t t
17350 s,@STRDUP@,$STRDUP,;t t
17351 s,@STRTOL@,$STRTOL,;t t
17352 s,@STRTOUL@,$STRTOUL,;t t
17353 s,@STRCASECMP@,$STRCASECMP,;t t
17354 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17355 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17356 s,@MSGFMT@,$MSGFMT,;t t
17357 s,@MSGMERGE@,$MSGMERGE,;t t
17358 s,@XGETTEXT@,$XGETTEXT,;t t
17359 s,@localedir@,$localedir,;t t
17360 s,@TCLSH@,$TCLSH,;t t
17361 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17362 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17363 s,@NSGMLS@,$NSGMLS,;t t
17364 s,@JADE@,$JADE,;t t
17365 s,@have_docbook@,$have_docbook,;t t
17366 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17367 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17368 s,@SGMLSPL@,$SGMLSPL,;t t
17369 s,@vpath_build@,$vpath_build,;t t
17374 cat >>$CONFIG_STATUS <<\_ACEOF
17375 # Split the substitutions into bite-sized pieces for seds with
17376 # small command number limits, like on Digital OSF/1 and HP-UX.
17377 ac_max_sed_lines=48
17378 ac_sed_frag=1 # Number of current file.
17379 ac_beg=1 # First line for current file.
17380 ac_end=$ac_max_sed_lines # Line after last line for current file.
17383 while $ac_more_lines; do
17384 if test $ac_beg -gt 1; then
17385 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17387 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17389 if test ! -s $tmp/subs.frag; then
17390 ac_more_lines=false
17392 # The purpose of the label and of the branching condition is to
17393 # speed up the sed processing (if there are no `@' at all, there
17394 # is no need to browse any of the substitutions).
17395 # These are the two extra sed commands mentioned above.
17397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17398 if test -z "$ac_sed_cmds"; then
17399 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17401 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17403 ac_sed_frag=`expr $ac_sed_frag + 1`
17405 ac_end=`expr $ac_end + $ac_max_sed_lines`
17408 if test -z "$ac_sed_cmds"; then
17411 fi # test -n "$CONFIG_FILES"
17414 cat >>$CONFIG_STATUS <<\_ACEOF
17415 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17418 - | *:- | *:-:* ) # input from stdin
17420 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17421 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17422 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17423 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17424 * ) ac_file_in=$ac_file.in ;;
17427 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17428 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17430 X"$ac_file" : 'X\(//\)[^/]' \| \
17431 X"$ac_file" : 'X\(//\)$' \| \
17432 X"$ac_file" : 'X\(/\)' \| \
17433 . : '\(.\)' 2>/dev/null ||
17435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17436 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17437 /^X\(\/\/\)$/{ s//\1/; q; }
17438 /^X\(\/\).*/{ s//\1/; q; }
17440 { case "$ac_dir" in
17441 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17445 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17446 case $as_mkdir_dir in
17447 # Skip DOS drivespec
17448 ?:) as_incr_dir=$as_mkdir_dir ;;
17450 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17451 test -d "$as_incr_dir" ||
17452 mkdir "$as_incr_dir" ||
17453 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17454 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17455 { (exit 1); exit 1; }; }
17462 if test "$ac_dir" != .; then
17463 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17464 # A "../" for each directory in $ac_dir_suffix.
17465 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17467 ac_dir_suffix= ac_top_builddir=
17471 .) # No --srcdir option. We are building in place.
17473 if test -z "$ac_top_builddir"; then
17476 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17478 [\\/]* | ?:[\\/]* ) # Absolute path.
17479 ac_srcdir=$srcdir$ac_dir_suffix;
17480 ac_top_srcdir=$srcdir ;;
17481 *) # Relative path.
17482 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17483 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17485 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17487 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17488 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17489 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17490 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17494 if test x"$ac_file" != x-; then
17495 { echo "$as_me:$LINENO: creating $ac_file" >&5
17496 echo "$as_me: creating $ac_file" >&6;}
17499 # Let's still pretend it is `configure' which instantiates (i.e., don't
17500 # use $as_me), people would be surprised to read:
17501 # /* config.h. Generated by config.status. */
17502 if test x"$ac_file" = x-; then
17505 configure_input="$ac_file. "
17507 configure_input=$configure_input"Generated from `echo $ac_file_in |
17508 sed 's,.*/,,'` by configure."
17510 # First look for the input files in the build tree, otherwise in the
17512 ac_file_inputs=`IFS=:
17513 for f in $ac_file_in; do
17515 -) echo $tmp/stdin ;;
17517 # Absolute (can't be DOS-style, as IFS=:)
17518 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17519 echo "$as_me: error: cannot find input file: $f" >&2;}
17520 { (exit 1); exit 1; }; }
17523 if test -f "$f"; then
17526 elif test -f "$srcdir/$f"; then
17531 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17532 echo "$as_me: error: cannot find input file: $f" >&2;}
17533 { (exit 1); exit 1; }; }
17536 done` || { (exit 1); exit 1; }
17538 cat >>$CONFIG_STATUS <<_ACEOF
17542 cat >>$CONFIG_STATUS <<\_ACEOF
17544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17545 s,@configure_input@,$configure_input,;t t
17546 s,@srcdir@,$ac_srcdir,;t t
17547 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17548 s,@top_srcdir@,$ac_top_srcdir,;t t
17549 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17550 s,@builddir@,$ac_builddir,;t t
17551 s,@abs_builddir@,$ac_abs_builddir,;t t
17552 s,@top_builddir@,$ac_top_builddir,;t t
17553 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17554 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17556 if test x"$ac_file" != x-; then
17557 mv $tmp/out $ac_file
17565 cat >>$CONFIG_STATUS <<\_ACEOF
17568 # CONFIG_HEADER section.
17571 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17572 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17574 # ac_d sets the value in "#define NAME VALUE" lines.
17575 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17576 ac_dB='[ ].*$,\1#\2'
17579 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17580 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17581 ac_uB='$,\1#\2define\3'
17585 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17586 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17588 - | *:- | *:-:* ) # input from stdin
17590 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17591 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17592 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17594 * ) ac_file_in=$ac_file.in ;;
17597 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17598 echo "$as_me: creating $ac_file" >&6;}
17600 # First look for the input files in the build tree, otherwise in the
17602 ac_file_inputs=`IFS=:
17603 for f in $ac_file_in; do
17605 -) echo $tmp/stdin ;;
17607 # Absolute (can't be DOS-style, as IFS=:)
17608 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17609 echo "$as_me: error: cannot find input file: $f" >&2;}
17610 { (exit 1); exit 1; }; }
17613 if test -f "$f"; then
17616 elif test -f "$srcdir/$f"; then
17621 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17622 echo "$as_me: error: cannot find input file: $f" >&2;}
17623 { (exit 1); exit 1; }; }
17626 done` || { (exit 1); exit 1; }
17627 # Remove the trailing spaces.
17628 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17632 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17633 # `conftest.undefs', that substitutes the proper values into
17634 # config.h.in to produce config.h. The first handles `#define'
17635 # templates, and the second `#undef' templates.
17636 # And first: Protect against being on the right side of a sed subst in
17637 # config.status. Protect against being in an unquoted here document
17638 # in config.status.
17639 rm -f conftest.defines conftest.undefs
17640 # Using a here document instead of a string reduces the quoting nightmare.
17641 # Putting comments in sed scripts is not portable.
17643 # `end' is used to avoid that the second main sed command (meant for
17644 # 0-ary CPP macros) applies to n-ary macro definitions.
17645 # See the Autoconf documentation for `clear'.
17646 cat >confdef2sed.sed <<\_ACEOF
17651 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17653 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17656 # If some macros were called several times there might be several times
17657 # the same #defines, which is useless. Nevertheless, we may not want to
17658 # sort them, since we want the *last* AC-DEFINE to be honored.
17659 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17660 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17661 rm -f confdef2sed.sed
17663 # This sed command replaces #undef with comments. This is necessary, for
17664 # example, in the case of _POSIX_SOURCE, which is predefined and required
17665 # on some systems where configure will not decide to define it.
17666 cat >>conftest.undefs <<\_ACEOF
17667 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17670 # Break up conftest.defines because some shells have a limit on the size
17671 # of here documents, and old seds have small limits too (100 cmds).
17672 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17673 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17674 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17675 echo ' :' >>$CONFIG_STATUS
17676 rm -f conftest.tail
17677 while grep . conftest.defines >/dev/null
17679 # Write a limited-size here document to $tmp/defines.sed.
17680 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17681 # Speed up: don't consider the non `#define' lines.
17682 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17683 # Work around the forget-to-reset-the-flag bug.
17684 echo 't clr' >>$CONFIG_STATUS
17685 echo ': clr' >>$CONFIG_STATUS
17686 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17688 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17690 mv $tmp/out $tmp/in
17692 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17693 rm -f conftest.defines
17694 mv conftest.tail conftest.defines
17696 rm -f conftest.defines
17697 echo ' fi # egrep' >>$CONFIG_STATUS
17698 echo >>$CONFIG_STATUS
17700 # Break up conftest.undefs because some shells have a limit on the size
17701 # of here documents, and old seds have small limits too (100 cmds).
17702 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17703 rm -f conftest.tail
17704 while grep . conftest.undefs >/dev/null
17706 # Write a limited-size here document to $tmp/undefs.sed.
17707 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17708 # Speed up: don't consider the non `#undef'
17709 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17710 # Work around the forget-to-reset-the-flag bug.
17711 echo 't clr' >>$CONFIG_STATUS
17712 echo ': clr' >>$CONFIG_STATUS
17713 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17715 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17717 mv $tmp/out $tmp/in
17719 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17720 rm -f conftest.undefs
17721 mv conftest.tail conftest.undefs
17723 rm -f conftest.undefs
17725 cat >>$CONFIG_STATUS <<\_ACEOF
17726 # Let's still pretend it is `configure' which instantiates (i.e., don't
17727 # use $as_me), people would be surprised to read:
17728 # /* config.h. Generated by config.status. */
17729 if test x"$ac_file" = x-; then
17730 echo "/* Generated by configure. */" >$tmp/config.h
17732 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17734 cat $tmp/in >>$tmp/config.h
17736 if test x"$ac_file" != x-; then
17737 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17738 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17739 echo "$as_me: $ac_file is unchanged" >&6;}
17741 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17743 X"$ac_file" : 'X\(//\)[^/]' \| \
17744 X"$ac_file" : 'X\(//\)$' \| \
17745 X"$ac_file" : 'X\(/\)' \| \
17746 . : '\(.\)' 2>/dev/null ||
17748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17750 /^X\(\/\/\)$/{ s//\1/; q; }
17751 /^X\(\/\).*/{ s//\1/; q; }
17753 { case "$ac_dir" in
17754 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17758 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17759 case $as_mkdir_dir in
17760 # Skip DOS drivespec
17761 ?:) as_incr_dir=$as_mkdir_dir ;;
17763 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17764 test -d "$as_incr_dir" ||
17765 mkdir "$as_incr_dir" ||
17766 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17767 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17768 { (exit 1); exit 1; }; }
17774 mv $tmp/config.h $ac_file
17778 rm -f $tmp/config.h
17780 # Run the commands associated with the file.
17782 src/include/pg_config.h )
17783 # Update timestamp for pg_config.h (see Makefile.global)
17784 echo >src/include/stamp-h
17789 cat >>$CONFIG_STATUS <<\_ACEOF
17792 # CONFIG_LINKS section.
17795 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17796 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17797 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17799 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17800 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17802 if test ! -r $srcdir/$ac_source; then
17803 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17804 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17805 { (exit 1); exit 1; }; }
17809 # Make relative symlinks.
17810 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17811 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17812 X"$ac_dest" : 'X\(//\)[^/]' \| \
17813 X"$ac_dest" : 'X\(//\)$' \| \
17814 X"$ac_dest" : 'X\(/\)' \| \
17815 . : '\(.\)' 2>/dev/null ||
17817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17819 /^X\(\/\/\)$/{ s//\1/; q; }
17820 /^X\(\/\).*/{ s//\1/; q; }
17822 { case "$ac_dest_dir" in
17823 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17826 as_dummy="$ac_dest_dir"
17827 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17828 case $as_mkdir_dir in
17829 # Skip DOS drivespec
17830 ?:) as_incr_dir=$as_mkdir_dir ;;
17832 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17833 test -d "$as_incr_dir" ||
17834 mkdir "$as_incr_dir" ||
17835 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17836 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17837 { (exit 1); exit 1; }; }
17844 if test "$ac_dest_dir" != .; then
17845 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17846 # A "../" for each directory in $ac_dir_suffix.
17847 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17849 ac_dir_suffix= ac_top_builddir=
17853 .) # No --srcdir option. We are building in place.
17855 if test -z "$ac_top_builddir"; then
17858 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17860 [\\/]* | ?:[\\/]* ) # Absolute path.
17861 ac_srcdir=$srcdir$ac_dir_suffix;
17862 ac_top_srcdir=$srcdir ;;
17863 *) # Relative path.
17864 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17865 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17867 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17869 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17870 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17871 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17872 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17876 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17877 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17880 # Make a symlink if possible; otherwise try a hard link.
17881 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17882 ln $srcdir/$ac_source $ac_dest ||
17883 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17884 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17885 { (exit 1); exit 1; }; }
17889 cat >>$CONFIG_STATUS <<\_ACEOF
17891 { (exit 0); exit 0; }
17893 chmod +x $CONFIG_STATUS
17894 ac_clean_files=$ac_clean_files_save
17897 # configure is writing to config.log, and then calls config.status.
17898 # config.status does its own redirection, appending to config.log.
17899 # Unfortunately, on DOS this fails, as config.log is still kept open
17900 # by configure, so config.status won't be able to write to it; its
17901 # output is simply discarded. So we exec the FD to /dev/null,
17902 # effectively closing config.log, so it can be properly (re)opened and
17903 # appended to by config.status. When coming back to configure, we
17904 # need to make the FD available again.
17905 if test "$no_create" != yes; then
17908 $SHELL $CONFIG_STATUS || ac_cs_success=false
17910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17911 # would make configure fail if this is the last instruction.
17912 $ac_cs_success || { (exit 1); exit 1; }