2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2002 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.4devel'
262 PACKAGE_STRING='PostgreSQL 7.4devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir docdir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 7.4devel to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 if test -n "$ac_init_help"; then
832 case $ac_init_help in
833 short | recursive ) echo "Configuration of PostgreSQL 7.4devel:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-recode enable single-byte recode support
842 --enable-nls[=LANGUAGES] enable Native Language Support
843 --disable-shared do not build shared libraries
844 --disable-rpath do not embed shared library search path in executables
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --disable-largefile omit support for large files
851 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-includes=DIRS look for additional header files in DIRS
855 --with-libraries=DIRS look for additional libraries in DIRS
856 --with-libs=DIRS alternative spelling of --with-libraries
857 --with-pgport=PORTNUM change default port number 5432
858 --with-threads allow libpq to be thread-safe
859 --with-tcl build Tcl and Tk interfaces
860 --without-tk do not build Tk interfaces if Tcl is enabled
861 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862 --with-tkconfig=DIR tkConfig.sh is in DIR
863 --with-perl build Perl modules (PL/Perl)
864 --with-python build Python interface module
865 --with-java build JDBC interface and Java tools
866 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
867 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
868 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
869 --with-pam build with PAM support
870 --with-rendezvous build with Rendezvous support
871 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
872 --without-readline do not use Readline
873 --without-zlib do not use Zlib
874 --with-gnu-ld assume the C compiler uses GNU ld default=no
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 location of DocBook stylesheets
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 Report bugs to <pgsql-bugs@postgresql.org>.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
953 PostgreSQL configure 7.4devel
954 generated by GNU Autoconf 2.53
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
961 Copyright 2002 PostgreSQL Global Development Group
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by PostgreSQL $as_me 7.4devel, which was
971 generated by GNU Autoconf 2.53. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n ) continue ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 case " $ac_configure_args " in
1038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1039 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log. We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1060 # The following way of writing the cache mishandles newlines in values,
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076 if test -s confdefs.h; then
1083 sed "/^$/d" confdefs.h
1086 test "$ac_signal" != 0 &&
1087 echo "$as_me: caught signal $ac_signal"
1088 echo "$as_me: exit $exit_status"
1090 rm -f core core.* *.core &&
1091 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094 for ac_signal in 1 2 13 15; do
1095 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 # Predefined preprocessor variables.
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134 if test "x$prefix" != xNONE; then
1135 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140 for ac_site_file in $CONFIG_SITE; do
1141 if test -r "$ac_site_file"; then
1142 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144 sed 's/^/| /' "$ac_site_file" >&5
1149 if test -r "$cache_file"; then
1150 # Some versions of bash will fail to source /dev/null (special
1151 # files actually), so we avoid doing that.
1152 if test -f "$cache_file"; then
1153 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1156 [\\/]* | ?:[\\/]* ) . $cache_file;;
1157 *) . ./$cache_file;;
1161 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1166 # Check that the precious variables saved in the cache have kept the same
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172 eval ac_new_set=\$ac_env_${ac_var}_set
1173 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174 eval ac_new_val="\$ac_env_${ac_var}_value"
1175 case $ac_old_set,$ac_new_set in
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1186 if test "x$ac_old_val" != "x$ac_new_val"; then
1187 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1190 echo "$as_me: former value: $ac_old_val" >&2;}
1191 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1192 echo "$as_me: current value: $ac_new_val" >&2;}
1193 ac_cache_corrupted=:
1196 # Pass precious variables to config.status.
1197 if test "$ac_new_set" = set; then
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 *) ac_arg=$ac_var=$ac_new_val ;;
1203 case " $ac_configure_args " in
1204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1205 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1209 if $ac_cache_corrupted; then
1210 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214 { (exit 1); exit 1; }; }
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 for ac_dir in config $srcdir/config; do
1257 if test -f $ac_dir/install-sh; then
1259 ac_install_sh="$ac_aux_dir/install-sh -c"
1261 elif test -f $ac_dir/install.sh; then
1263 ac_install_sh="$ac_aux_dir/install.sh -c"
1265 elif test -f $ac_dir/shtool; then
1267 ac_install_sh="$ac_aux_dir/shtool install -c"
1271 if test -z "$ac_aux_dir"; then
1272 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1273 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1274 { (exit 1); exit 1; }; }
1276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1278 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1281 configure_args=$ac_configure_args
1285 cat >>confdefs.h <<_ACEOF
1286 #define PG_VERSION "$PACKAGE_VERSION"
1290 # Make sure we can run config.sub.
1291 $ac_config_sub sun4 >/dev/null 2>&1 ||
1292 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1294 { (exit 1); exit 1; }; }
1296 echo "$as_me:$LINENO: checking build system type" >&5
1297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1298 if test "${ac_cv_build+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 ac_cv_build_alias=$build_alias
1302 test -z "$ac_cv_build_alias" &&
1303 ac_cv_build_alias=`$ac_config_guess`
1304 test -z "$ac_cv_build_alias" &&
1305 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1307 { (exit 1); exit 1; }; }
1308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1309 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1311 { (exit 1); exit 1; }; }
1314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1315 echo "${ECHO_T}$ac_cv_build" >&6
1317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1322 echo "$as_me:$LINENO: checking host system type" >&5
1323 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1324 if test "${ac_cv_host+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 ac_cv_host_alias=$host_alias
1328 test -z "$ac_cv_host_alias" &&
1329 ac_cv_host_alias=$ac_cv_build_alias
1330 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1331 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1333 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1337 echo "${ECHO_T}$ac_cv_host" >&6
1339 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346 echo "$as_me:$LINENO: checking which template to use" >&5
1347 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1352 # Check whether --with-template or --without-template was given.
1353 if test "${with_template+set}" = set; then
1354 withval="$with_template"
1358 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1359 echo "$as_me: error: argument required for --with-template option" >&2;}
1360 { (exit 1); exit 1; }; }
1363 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1364 echo "$as_me: error: argument required for --with-template option" >&2;}
1365 { (exit 1); exit 1; }; }
1370 list) echo; ls "$srcdir/src/template"; exit;;
1371 *) if test -f "$srcdir/src/template/$with_template" ; then
1374 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1375 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1376 { (exit 1); exit 1; }; }
1385 # --with-template not given
1388 aix*) template=aix ;;
1389 beos*) template=beos ;;
1390 bsdi*) template=bsdi ;;
1391 cygwin*) template=cygwin ;;
1392 darwin*) template=darwin ;;
1393 dgux*) template=dgux ;;
1394 freebsd*) template=freebsd ;;
1395 hpux*) template=hpux ;;
1396 irix*) template=irix5 ;;
1397 linux*) template=linux ;;
1398 mingw*) template=win32 ;;
1399 netbsd*) template=netbsd ;;
1400 nextstep*) template=nextstep ;;
1401 openbsd*) template=openbsd ;;
1402 osf*) template=osf ;;
1403 qnx*) template=qnx4 ;;
1404 sco*) template=sco ;;
1405 solaris*) template=solaris ;;
1406 sunos*) template=sunos4 ;;
1408 case $host_vendor in
1409 univel) template=univel ;;
1411 sysv4*) template=svr4 ;;
1412 sysv5*) template=unixware ;;
1413 ultrix*) template=ultrix4 ;;
1416 if test x"$template" = x"" ; then
1417 { { echo "$as_me:$LINENO: error:
1418 *******************************************************************
1419 PostgreSQL has apparently not been ported to your platform yet.
1420 To try a manual configuration, look into the src/template directory
1421 for a similar platform and use the '--with-template=' option.
1423 Please also contact <pgsql-ports@postgresql.org> to see about
1424 rectifying this. Include the above 'checking host system type...'
1426 *******************************************************************
1428 echo "$as_me: error:
1429 *******************************************************************
1430 PostgreSQL has apparently not been ported to your platform yet.
1431 To try a manual configuration, look into the src/template directory
1432 for a similar platform and use the '--with-template=' option.
1434 Please also contact <pgsql-ports@postgresql.org> to see about
1435 rectifying this. Include the above 'checking host system type...'
1437 *******************************************************************
1439 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $template" >&5
1447 echo "${ECHO_T}$template" >&6
1452 # Pick right test-and-set (TAS) code. Most platforms have inline
1453 # assembler code in src/include/storage/s_lock.h, so we just use
1454 # a dummy file here.
1456 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1457 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1458 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1459 *) need_tas=no; tas_file=dummy.s ;;
1461 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1464 if test "$need_tas" = yes ; then
1472 ## Command line options
1477 # Add non-standard directories to the include path
1482 # Check whether --with-includes or --without-includes was given.
1483 if test "${with_includes+set}" = set; then
1484 withval="$with_includes"
1488 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1489 echo "$as_me: error: argument required for --with-includes option" >&2;}
1490 { (exit 1); exit 1; }; }
1493 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1494 echo "$as_me: error: argument required for --with-includes option" >&2;}
1495 { (exit 1); exit 1; }; }
1507 # Add non-standard directories to the library search path
1512 # Check whether --with-libraries or --without-libraries was given.
1513 if test "${with_libraries+set}" = set; then
1514 withval="$with_libraries"
1518 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1519 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1520 { (exit 1); exit 1; }; }
1523 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1524 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1525 { (exit 1); exit 1; }; }
1528 LIBRARY_DIRS=$withval
1538 # Check whether --with-libs or --without-libs was given.
1539 if test "${with_libs+set}" = set; then
1540 withval="$with_libs"
1544 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1545 echo "$as_me: error: argument required for --with-libs option" >&2;}
1546 { (exit 1); exit 1; }; }
1549 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1550 echo "$as_me: error: argument required for --with-libs option" >&2;}
1551 { (exit 1); exit 1; }; }
1554 LIBRARY_DIRS=$withval
1563 # 64-bit integer date/time storage (--enable-integer-datetimes)
1565 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1566 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1569 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1570 if test "${enable_integer_datetimes+set}" = set; then
1571 enableval="$enable_integer_datetimes"
1576 cat >>confdefs.h <<\_ACEOF
1577 #define USE_INTEGER_DATETIMES 1
1585 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1586 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1587 { (exit 1); exit 1; }; }
1592 enable_integer_datetimes=no
1596 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1597 echo "${ECHO_T}$enable_integer_datetimes" >&6
1600 # Character set recode (--enable-recode)
1602 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1603 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1606 # Check whether --enable-recode or --disable-recode was given.
1607 if test "${enable_recode+set}" = set; then
1608 enableval="$enable_recode"
1613 cat >>confdefs.h <<\_ACEOF
1614 #define CYR_RECODE 1
1622 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1623 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1624 { (exit 1); exit 1; }; }
1633 echo "$as_me:$LINENO: result: $enable_recode" >&5
1634 echo "${ECHO_T}$enable_recode" >&6
1640 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1641 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1644 # Check whether --enable-nls or --disable-nls was given.
1645 if test "${enable_nls+set}" = set; then
1646 enableval="$enable_nls"
1657 WANTED_LANGUAGES=$enableval
1666 if test "$enable_nls" = yes; then
1668 cat >>confdefs.h <<\_ACEOF
1669 #define ENABLE_NLS 1
1674 echo "$as_me:$LINENO: result: $enable_nls" >&5
1675 echo "${ECHO_T}$enable_nls" >&6
1680 # Default port number (--with-pgport), default 5432
1682 echo "$as_me:$LINENO: checking for default port number" >&5
1683 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1687 # Check whether --with-pgport or --without-pgport was given.
1688 if test "${with_pgport+set}" = set; then
1689 withval="$with_pgport"
1693 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1694 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1695 { (exit 1); exit 1; }; }
1698 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1699 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1700 { (exit 1); exit 1; }; }
1703 default_port=$withval
1711 echo "$as_me:$LINENO: result: $default_port" >&5
1712 echo "${ECHO_T}$default_port" >&6
1713 # Need both of these because some places want an integer and some a string
1715 cat >>confdefs.h <<_ACEOF
1716 #define DEF_PGPORT ${default_port}
1720 cat >>confdefs.h <<_ACEOF
1721 #define DEF_PGPORT_STR "${default_port}"
1727 # Option to disable shared libraries
1731 # Check whether --enable-shared or --disable-shared was given.
1732 if test "${enable_shared+set}" = set; then
1733 enableval="$enable_shared"
1743 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1744 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1745 { (exit 1); exit 1; }; }
1757 # '-rpath'-like feature can be disabled
1761 # Check whether --enable-rpath or --disable-rpath was given.
1762 if test "${enable_rpath+set}" = set; then
1763 enableval="$enable_rpath"
1773 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1774 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1775 { (exit 1); exit 1; }; }
1788 # --enable-debug adds -g to compiler flags
1792 # Check whether --enable-debug or --disable-debug was given.
1793 if test "${enable_debug+set}" = set; then
1794 enableval="$enable_debug"
1804 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1805 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1806 { (exit 1); exit 1; }; }
1821 # For historical reasons you can also use --with-CC to specify the C compiler
1822 # to use, although the standard way to do this is to set the CC environment
1827 # Check whether --with-CC or --without-CC was given.
1828 if test "${with_CC+set}" = set; then
1833 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1834 echo "$as_me: error: argument required for --with-CC option" >&2;}
1835 { (exit 1); exit 1; }; }
1838 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1839 echo "$as_me: error: argument required for --with-CC option" >&2;}
1840 { (exit 1); exit 1; }; }
1851 aix) pgac_cc_list="gcc xlc";;
1852 irix) pgac_cc_list="cc";; # no gcc
1853 *) pgac_cc_list="gcc cc";;
1857 ac_cpp='$CPP $CPPFLAGS'
1858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862 for ac_prog in $pgac_cc_list
1864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$CC"; then
1872 ac_cv_prog_CC="$CC" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891 if test -n "$CC"; then
1892 echo "$as_me:$LINENO: result: $CC" >&5
1893 echo "${ECHO_T}$CC" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1899 test -n "$CC" && break
1902 if test -z "$CC"; then
1904 for ac_prog in $pgac_cc_list
1906 # Extract the first word of "$ac_prog", so it can be a program name with args.
1907 set dummy $ac_prog; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$ac_ct_CC"; then
1914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_ac_ct_CC="$ac_prog"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1933 if test -n "$ac_ct_CC"; then
1934 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1935 echo "${ECHO_T}$ac_ct_CC" >&6
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1941 test -n "$ac_ct_CC" && break
1948 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1949 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1950 { (exit 1); exit 1; }; }
1952 # Provide some information about the compiler.
1953 echo "$as_me:$LINENO:" \
1954 "checking for C compiler version" >&5
1955 ac_compiler=`set X $ac_compile; echo $2`
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1957 (eval $ac_compiler --version </dev/null >&5) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1962 (eval $ac_compiler -v </dev/null >&5) 2>&5
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }
1966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1967 (eval $ac_compiler -V </dev/null >&5) 2>&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }
1972 cat >conftest.$ac_ext <<_ACEOF
1973 #line $LINENO "configure"
1974 #include "confdefs.h"
1976 #ifdef F77_DUMMY_MAIN
1980 int F77_DUMMY_MAIN() { return 1; }
1990 ac_clean_files_save=$ac_clean_files
1991 ac_clean_files="$ac_clean_files a.out a.exe"
1992 # Try to create an executable without -o first, disregard a.out.
1993 # It will help us diagnose broken compilers, and finding out an intuition
1995 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1996 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1997 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1998 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1999 (eval $ac_link_default) 2>&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; then
2003 # Find the output, starting from the most likely. This scheme is
2004 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2007 # Be careful to initialize this variable, since it used to be cached.
2008 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2010 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2011 ls a.out conftest 2>/dev/null;
2012 ls a.* conftest.* 2>/dev/null`; do
2014 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2015 a.out ) # We found the default executable, but exeext='' is most
2018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2019 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2029 echo "$as_me: error: C compiler cannot create executables" >&2;}
2030 { (exit 77); exit 77; }; }
2033 ac_exeext=$ac_cv_exeext
2034 echo "$as_me:$LINENO: result: $ac_file" >&5
2035 echo "${ECHO_T}$ac_file" >&6
2037 # Check the compiler produces executables we can run. If not, either
2038 # the compiler is broken, or we cross compile.
2039 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2040 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2042 # If not cross compiling, check that we can run a simple program.
2043 if test "$cross_compiling" != yes; then
2044 if { ac_try='./$ac_file'
2045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
2052 if test "$cross_compiling" = maybe; then
2055 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2056 If you meant to cross compile, use \`--host'." >&5
2057 echo "$as_me: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'." >&2;}
2059 { (exit 1); exit 1; }; }
2063 echo "$as_me:$LINENO: result: yes" >&5
2064 echo "${ECHO_T}yes" >&6
2066 rm -f a.out a.exe conftest$ac_cv_exeext
2067 ac_clean_files=$ac_clean_files_save
2068 # Check the compiler produces executables we can run. If not, either
2069 # the compiler is broken, or we cross compile.
2070 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2071 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2072 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2073 echo "${ECHO_T}$cross_compiling" >&6
2075 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2076 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2078 (eval $ac_link) 2>&5
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081 (exit $ac_status); }; then
2082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2084 # work properly (i.e., refer to `conftest.exe'), while it won't with
2086 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2088 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2098 { (exit 1); exit 1; }; }
2101 rm -f conftest$ac_cv_exeext
2102 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2103 echo "${ECHO_T}$ac_cv_exeext" >&6
2105 rm -f conftest.$ac_ext
2106 EXEEXT=$ac_cv_exeext
2108 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2109 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2110 if test "${ac_cv_objext+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 cat >conftest.$ac_ext <<_ACEOF
2114 #line $LINENO "configure"
2115 #include "confdefs.h"
2117 #ifdef F77_DUMMY_MAIN
2121 int F77_DUMMY_MAIN() { return 1; }
2131 rm -f conftest.o conftest.obj
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); }; then
2137 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2140 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2145 echo "$as_me: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2147 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2148 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2149 { (exit 1); exit 1; }; }
2152 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2154 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2155 echo "${ECHO_T}$ac_cv_objext" >&6
2156 OBJEXT=$ac_cv_objext
2158 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2159 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2160 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 cat >conftest.$ac_ext <<_ACEOF
2164 #line $LINENO "configure"
2165 #include "confdefs.h"
2167 #ifdef F77_DUMMY_MAIN
2171 int F77_DUMMY_MAIN() { return 1; }
2184 rm -f conftest.$ac_objext
2185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2186 (eval $ac_compile) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2202 rm -f conftest.$ac_objext conftest.$ac_ext
2203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2206 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2208 GCC=`test $ac_compiler_gnu = yes && echo yes`
2209 ac_test_CFLAGS=${CFLAGS+set}
2210 ac_save_CFLAGS=$CFLAGS
2212 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2213 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2214 if test "${ac_cv_prog_cc_g+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2221 #ifdef F77_DUMMY_MAIN
2225 int F77_DUMMY_MAIN() { return 1; }
2235 rm -f conftest.$ac_objext
2236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 echo "$as_me: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2253 rm -f conftest.$ac_objext conftest.$ac_ext
2255 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2256 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2257 if test "$ac_test_CFLAGS" = set; then
2258 CFLAGS=$ac_save_CFLAGS
2259 elif test $ac_cv_prog_cc_g = yes; then
2260 if test "$GCC" = yes; then
2266 if test "$GCC" = yes; then
2272 # Some people use a C++ compiler to compile C. Since we use `exit',
2273 # in C++ we need to declare it. In case someone uses the same compiler
2274 # for both compiling C and C++ we need to have the C++ compiler decide
2275 # the declaration of exit, since it's the most demanding environment.
2276 cat >conftest.$ac_ext <<_ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2293 for ac_declaration in \
2295 '#include <stdlib.h>' \
2296 'extern "C" void std::exit (int) throw (); using std::exit;' \
2297 'extern "C" void std::exit (int); using std::exit;' \
2298 'extern "C" void exit (int) throw ();' \
2299 'extern "C" void exit (int);' \
2302 cat >conftest.$ac_ext <<_ACEOF
2303 #line $LINENO "configure"
2304 #include "confdefs.h"
2307 #ifdef F77_DUMMY_MAIN
2311 int F77_DUMMY_MAIN() { return 1; }
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2335 echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2340 cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 #include "confdefs.h"
2344 #ifdef F77_DUMMY_MAIN
2348 int F77_DUMMY_MAIN() { return 1; }
2358 rm -f conftest.$ac_objext
2359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360 (eval $ac_compile) 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 rm -f conftest.$ac_objext conftest.$ac_ext
2378 if test -n "$ac_declaration"; then
2379 echo '#ifdef __cplusplus' >>confdefs.h
2380 echo $ac_declaration >>confdefs.h
2381 echo '#endif' >>confdefs.h
2385 echo "$as_me: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 rm -f conftest.$ac_objext conftest.$ac_ext
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2396 . "$srcdir/src/template/$template" || exit
2398 if test "$ac_env_CFLAGS_set" = set; then
2399 CFLAGS=$ac_env_CFLAGS_value
2401 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2404 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2405 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2407 # Check if the compiler still works with the template settings
2408 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2409 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2411 cat >conftest.$ac_ext <<_ACEOF
2412 #line $LINENO "configure"
2413 #include "confdefs.h"
2415 #ifdef F77_DUMMY_MAIN
2419 int F77_DUMMY_MAIN() { return 1; }
2429 rm -f conftest.$ac_objext conftest$ac_exeext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431 (eval $ac_link) 2>&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -s conftest$ac_exeext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6
2444 echo "$as_me: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2449 echo "$as_me: error: cannot proceed" >&2;}
2450 { (exit 1); exit 1; }; }
2452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2454 # Defend against gcc -ffastmath
2455 if test "$GCC" = yes; then
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line $LINENO "configure"
2458 #include "confdefs.h"
2460 #ifdef F77_DUMMY_MAIN
2464 int F77_DUMMY_MAIN() { return 1; }
2469 #ifdef __FAST_MATH__
2476 rm -f conftest.$ac_objext
2477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478 (eval $ac_compile) 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2490 echo "$as_me: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2493 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2494 { (exit 1); exit 1; }; }
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2505 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2506 # On Suns, sometimes $CPP names a directory.
2507 if test -n "$CPP" && test -d "$CPP"; then
2510 if test -z "$CPP"; then
2511 if test "${ac_cv_prog_CPP+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 # Double quotes because CPP needs to be expanded
2515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2518 for ac_c_preproc_warn_flag in '' yes
2520 # Use a header file that comes with gcc, so configuring glibc
2521 # with a fresh cross-compiler works.
2522 # On the NeXT, cc -E runs the code through the compiler's parser,
2523 # not just through cpp. "Syntax error" is here to catch this case.
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 #include "confdefs.h"
2530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2533 egrep -v '^ *\+' conftest.er1 >conftest.err
2535 cat conftest.err >&5
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); } >/dev/null; then
2538 if test -s conftest.err; then
2539 ac_cpp_err=$ac_c_preproc_warn_flag
2546 if test -z "$ac_cpp_err"; then
2549 echo "$as_me: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2551 # Broken: fails on valid input.
2554 rm -f conftest.err conftest.$ac_ext
2556 # OK, works on sane cases. Now check whether non-existent headers
2557 # can be detected and how.
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2561 #include <ac_nonexistent.h>
2563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2566 egrep -v '^ *\+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } >/dev/null; then
2571 if test -s conftest.err; then
2572 ac_cpp_err=$ac_c_preproc_warn_flag
2579 if test -z "$ac_cpp_err"; then
2580 # Broken: success on invalid input.
2583 echo "$as_me: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2585 # Passes both tests.
2589 rm -f conftest.err conftest.$ac_ext
2592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2593 rm -f conftest.err conftest.$ac_ext
2594 if $ac_preproc_ok; then
2606 echo "$as_me:$LINENO: result: $CPP" >&5
2607 echo "${ECHO_T}$CPP" >&6
2609 for ac_c_preproc_warn_flag in '' yes
2611 # Use a header file that comes with gcc, so configuring glibc
2612 # with a fresh cross-compiler works.
2613 # On the NeXT, cc -E runs the code through the compiler's parser,
2614 # not just through cpp. "Syntax error" is here to catch this case.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #line $LINENO "configure"
2617 #include "confdefs.h"
2621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2624 egrep -v '^ *\+' conftest.er1 >conftest.err
2626 cat conftest.err >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } >/dev/null; then
2629 if test -s conftest.err; then
2630 ac_cpp_err=$ac_c_preproc_warn_flag
2637 if test -z "$ac_cpp_err"; then
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 # Broken: fails on valid input.
2645 rm -f conftest.err conftest.$ac_ext
2647 # OK, works on sane cases. Now check whether non-existent headers
2648 # can be detected and how.
2649 cat >conftest.$ac_ext <<_ACEOF
2650 #line $LINENO "configure"
2651 #include "confdefs.h"
2652 #include <ac_nonexistent.h>
2654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2657 egrep -v '^ *\+' conftest.er1 >conftest.err
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } >/dev/null; then
2662 if test -s conftest.err; then
2663 ac_cpp_err=$ac_c_preproc_warn_flag
2670 if test -z "$ac_cpp_err"; then
2671 # Broken: success on invalid input.
2674 echo "$as_me: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2676 # Passes both tests.
2680 rm -f conftest.err conftest.$ac_ext
2683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684 rm -f conftest.err conftest.$ac_ext
2685 if $ac_preproc_ok; then
2688 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2689 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2690 { (exit 1); exit 1; }; }
2694 ac_cpp='$CPP $CPPFLAGS'
2695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701 # Create compiler version string
2702 if test x"$GCC" = x"yes" ; then
2703 cc_string="GCC `${CC} --version | sed q`"
2708 cat >>confdefs.h <<_ACEOF
2709 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2715 # Automatic dependency tracking
2719 # Check whether --enable-depend or --disable-depend was given.
2720 if test "${enable_depend+set}" = set; then
2721 enableval="$enable_depend"
2731 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2732 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2733 { (exit 1); exit 1; }; }
2746 # Enable assert checks
2750 # Check whether --enable-cassert or --disable-cassert was given.
2751 if test "${enable_cassert+set}" = set; then
2752 enableval="$enable_cassert"
2757 cat >>confdefs.h <<\_ACEOF
2758 #define USE_ASSERT_CHECKING 1
2766 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2767 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2768 { (exit 1); exit 1; }; }
2780 # Include directories
2784 # SRCH_INC comes from the template file
2785 for dir in $with_includes $SRCH_INC; do
2786 if test -d "$dir"; then
2787 INCLUDES="$INCLUDES -I$dir"
2789 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2790 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2798 # Library directories
2802 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2803 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2804 if test -d "$dir"; then
2805 LIBDIRS="$LIBDIRS -L$dir"
2807 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2808 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2814 # Enable libpq to be thread-safe
2816 echo "$as_me:$LINENO: checking allow threaded libpq" >&5
2817 echo $ECHO_N "checking allow threaded libpq... $ECHO_C" >&6
2821 # Check whether --with-threads or --without-threads was given.
2822 if test "${with_threads+set}" = set; then
2823 withval="$with_threads"
2833 { { echo "$as_me:$LINENO: error: no argument expected for --with-threads option" >&5
2834 echo "$as_me: error: no argument expected for --with-threads option" >&2;}
2835 { (exit 1); exit 1; }; }
2844 echo "$as_me:$LINENO: result: $with_threads" >&5
2845 echo "${ECHO_T}$with_threads" >&6
2851 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2852 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2856 # Check whether --with-tcl or --without-tcl was given.
2857 if test "${with_tcl+set}" = set; then
2868 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2869 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2870 { (exit 1); exit 1; }; }
2879 echo "$as_me:$LINENO: result: $with_tcl" >&5
2880 echo "${ECHO_T}$with_tcl" >&6
2883 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2884 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2885 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2886 if test "$with_tcl" = yes; then
2890 # Check whether --with-tk or --without-tk was given.
2891 if test "${with_tk+set}" = set; then
2902 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2903 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2904 { (exit 1); exit 1; }; }
2916 echo "$as_me:$LINENO: result: $with_tk" >&5
2917 echo "${ECHO_T}$with_tk" >&6
2921 # We see if the path to the Tcl/Tk configuration scripts is specified.
2922 # This will override the use of tclsh to find the paths to search.
2927 # Check whether --with-tclconfig or --without-tclconfig was given.
2928 if test "${with_tclconfig+set}" = set; then
2929 withval="$with_tclconfig"
2933 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2934 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2935 { (exit 1); exit 1; }; }
2938 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2939 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2940 { (exit 1); exit 1; }; }
2950 # We see if the path to the Tk configuration scripts is specified.
2951 # This will override the use of tclsh to find the paths to search.
2956 # Check whether --with-tkconfig or --without-tkconfig was given.
2957 if test "${with_tkconfig+set}" = set; then
2958 withval="$with_tkconfig"
2962 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2963 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2964 { (exit 1); exit 1; }; }
2967 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2968 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2969 { (exit 1); exit 1; }; }
2980 # Optionally build Perl modules (PL/Perl)
2982 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2983 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2987 # Check whether --with-perl or --without-perl was given.
2988 if test "${with_perl+set}" = set; then
2989 withval="$with_perl"
2999 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3000 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3001 { (exit 1); exit 1; }; }
3010 echo "$as_me:$LINENO: result: $with_perl" >&5
3011 echo "${ECHO_T}$with_perl" >&6
3015 # Optionally build Python interface module
3017 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3018 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3022 # Check whether --with-python or --without-python was given.
3023 if test "${with_python+set}" = set; then
3024 withval="$with_python"
3034 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3035 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3036 { (exit 1); exit 1; }; }
3045 echo "$as_me:$LINENO: result: $with_python" >&5
3046 echo "${ECHO_T}$with_python" >&6
3050 # Optionally build the Java/JDBC tools
3052 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3053 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3057 # Check whether --with-java or --without-java was given.
3058 if test "${with_java+set}" = set; then
3059 withval="$with_java"
3063 echo "$as_me:$LINENO: result: yes" >&5
3064 echo "${ECHO_T}yes" >&6
3066 for ac_prog in jakarta-ant ant ant.sh ant.bat
3068 # Extract the first word of "$ac_prog", so it can be a program name with args.
3069 set dummy $ac_prog; ac_word=$2
3070 echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3072 if test "${ac_cv_path_ANT+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 if test -n "$ANT"; then
3100 echo "$as_me:$LINENO: result: $ANT" >&5
3101 echo "${ECHO_T}$ANT" >&6
3103 echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3107 test -n "$ANT" && break
3111 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3112 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3113 if test "${pgac_cv_prog_ant_works+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 cat > conftest.java << EOF
3118 public class conftest {
3119 int testmethod(int a, int b) {
3125 cat > conftest.xml << EOF
3126 <project name="conftest" default="conftest">
3127 <target name="conftest">
3128 <javac srcdir="." includes="conftest.java">
3134 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3135 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3136 (eval $pgac_cmd) 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }
3141 if test $? = 0 && test -f ./conftest.class ; then
3142 pgac_cv_prog_ant_works=yes
3144 echo "configure: failed java program was:" >&5
3145 cat conftest.java >&5
3146 echo "configure: failed build file was:" >&5
3147 cat conftest.xml >&5
3148 pgac_cv_prog_ant_works=no
3151 rm -f conftest* core core.* *.core
3154 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3155 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3157 if test "$pgac_cv_prog_ant_works" != yes; then
3158 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3159 echo "$as_me: error: ant does not work" >&2;}
3160 { (exit 1); exit 1; }; }
3164 if test -z "$ANT"; then
3165 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3166 If you have Ant already installed, see config.log for details on the failure." >&5
3167 echo "$as_me: error: Ant is required to build Java components
3168 If you have Ant already installed, see config.log for details on the failure." >&2;}
3169 { (exit 1); exit 1; }; }
3171 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3172 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3173 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3174 { (exit 1); exit 1; }; }
3178 echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6
3182 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3183 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3184 { (exit 1); exit 1; }; }
3190 echo "$as_me:$LINENO: result: no" >&5
3191 echo "${ECHO_T}no" >&6
3200 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3201 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3205 # Check whether --with-krb4 or --without-krb4 was given.
3206 if test "${with_krb4+set}" = set; then
3207 withval="$with_krb4"
3211 krb4_prefix=/usr/athena
3218 krb4_prefix=$withval
3227 if test "$with_krb4" = yes; then
3229 echo "$as_me:$LINENO: result: yes" >&5
3230 echo "${ECHO_T}yes" >&6
3232 cat >>confdefs.h <<\_ACEOF
3237 if test -d "$krb4_prefix/include"; then
3238 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3240 if test -d "$krb4_prefix/lib"; then
3241 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3244 krb_srvtab="/etc/srvtab"
3247 echo "$as_me:$LINENO: result: no" >&5
3248 echo "${ECHO_T}no" >&6
3258 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3259 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3263 # Check whether --with-krb5 or --without-krb5 was given.
3264 if test "${with_krb5+set}" = set; then
3265 withval="$with_krb5"
3269 krb5_prefix=/usr/athena
3276 krb5_prefix=$withval
3285 if test "$with_krb5" = yes; then
3287 echo "$as_me:$LINENO: result: yes" >&5
3288 echo "${ECHO_T}yes" >&6
3290 cat >>confdefs.h <<\_ACEOF
3295 if test -d "$krb5_prefix/include"; then
3296 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3298 if test -d "$krb5_prefix/lib"; then
3299 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3302 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3305 echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3313 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3314 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3315 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3316 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3317 { (exit 1); exit 1; }; }
3324 # Kerberos configuration parameters
3329 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3330 if test "${with_krb_srvnam+set}" = set; then
3331 withval="$with_krb_srvnam"
3335 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3336 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3337 { (exit 1); exit 1; }; }
3340 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3341 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3342 { (exit 1); exit 1; }; }
3350 with_krb_srvnam="postgres"
3354 cat >>confdefs.h <<_ACEOF
3355 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3363 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3364 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3368 # Check whether --with-pam or --without-pam was given.
3369 if test "${with_pam+set}" = set; then
3375 cat >>confdefs.h <<\_ACEOF
3384 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3385 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3386 { (exit 1); exit 1; }; }
3395 echo "$as_me:$LINENO: result: $with_pam" >&5
3396 echo "${ECHO_T}$with_pam" >&6
3403 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3404 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3408 # Check whether --with-rendezvous or --without-rendezvous was given.
3409 if test "${with_rendezvous+set}" = set; then
3410 withval="$with_rendezvous"
3415 cat >>confdefs.h <<\_ACEOF
3416 #define USE_RENDEZVOUS 1
3424 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3425 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3426 { (exit 1); exit 1; }; }
3435 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3436 echo "${ECHO_T}$with_rendezvous" >&6
3446 # Check whether --with-openssl or --without-openssl was given.
3447 if test "${with_openssl+set}" = set; then
3448 withval="$with_openssl"
3452 openssl_prefix=/usr/local/ssl
3459 openssl_prefix=$withval
3468 if test "$with_openssl" = yes; then
3470 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3471 echo "${ECHO_T}building with OpenSSL support" >&6
3473 cat >>confdefs.h <<\_ACEOF
3478 if test -d "${openssl_prefix}/include" ; then
3479 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3481 if test -d "${openssl_prefix}/lib" ; then
3482 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3497 # Check whether --with-readline or --without-readline was given.
3498 if test "${with_readline+set}" = set; then
3499 withval="$with_readline"
3509 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3510 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3511 { (exit 1); exit 1; }; }
3527 # Check whether --with-zlib or --without-zlib was given.
3528 if test "${with_zlib+set}" = set; then
3529 withval="$with_zlib"
3539 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3540 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3541 { (exit 1); exit 1; }; }
3556 # Assume system is ELF if it predefines __ELF__ as 1,
3557 # otherwise believe host_os based default.
3559 freebsd1*|freebsd2*) elf=no;;
3560 freebsd3*|freebsd4*) elf=yes;;
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line $LINENO "configure"
3566 #include "confdefs.h"
3572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3573 egrep "yes" >/dev/null 2>&1; then
3576 if test "X$elf" = "Xyes" ; then
3589 if test "$with_threads" = yes; then
3590 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3592 if test "${ac_cv_header_stdc+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 cat >conftest.$ac_ext <<_ACEOF
3596 #line $LINENO "configure"
3597 #include "confdefs.h"
3604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3607 egrep -v '^ *\+' conftest.er1 >conftest.err
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } >/dev/null; then
3612 if test -s conftest.err; then
3613 ac_cpp_err=$ac_c_preproc_warn_flag
3620 if test -z "$ac_cpp_err"; then
3621 ac_cv_header_stdc=yes
3623 echo "$as_me: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3625 ac_cv_header_stdc=no
3627 rm -f conftest.err conftest.$ac_ext
3629 if test $ac_cv_header_stdc = yes; then
3630 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3631 cat >conftest.$ac_ext <<_ACEOF
3632 #line $LINENO "configure"
3633 #include "confdefs.h"
3637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3638 egrep "memchr" >/dev/null 2>&1; then
3641 ac_cv_header_stdc=no
3647 if test $ac_cv_header_stdc = yes; then
3648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3649 cat >conftest.$ac_ext <<_ACEOF
3650 #line $LINENO "configure"
3651 #include "confdefs.h"
3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3656 egrep "free" >/dev/null 2>&1; then
3659 ac_cv_header_stdc=no
3665 if test $ac_cv_header_stdc = yes; then
3666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3667 if test "$cross_compiling" = yes; then
3670 cat >conftest.$ac_ext <<_ACEOF
3671 #line $LINENO "configure"
3672 #include "confdefs.h"
3674 #if ((' ' & 0x0FF) == 0x020)
3675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3678 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3679 || ('j' <= (c) && (c) <= 'r') \
3680 || ('s' <= (c) && (c) <= 'z'))
3681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3689 for (i = 0; i < 256; i++)
3690 if (XOR (islower (i), ISLOWER (i))
3691 || toupper (i) != TOUPPER (i))
3696 rm -f conftest$ac_exeext
3697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698 (eval $ac_link) 2>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3709 echo "$as_me: program exited with status $ac_status" >&5
3710 echo "$as_me: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3713 ac_cv_header_stdc=no
3715 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3721 if test $ac_cv_header_stdc = yes; then
3723 cat >>confdefs.h <<\_ACEOF
3724 #define STDC_HEADERS 1
3729 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3739 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3740 inttypes.h stdint.h unistd.h
3742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3743 echo "$as_me:$LINENO: checking for $ac_header" >&5
3744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 cat >conftest.$ac_ext <<_ACEOF
3749 #line $LINENO "configure"
3750 #include "confdefs.h"
3751 $ac_includes_default
3753 #include <$ac_header>
3755 rm -f conftest.$ac_objext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757 (eval $ac_compile) 2>&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -s conftest.$ac_objext'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
3767 eval "$as_ac_Header=yes"
3769 echo "$as_me: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3771 eval "$as_ac_Header=no"
3773 rm -f conftest.$ac_objext conftest.$ac_ext
3775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3778 cat >>confdefs.h <<_ACEOF
3779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3787 if test "${ac_cv_header_pthread_h+set}" = set; then
3788 echo "$as_me:$LINENO: checking for pthread.h" >&5
3789 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3790 if test "${ac_cv_header_pthread_h+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3794 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3796 # Is the header compilable?
3797 echo "$as_me:$LINENO: checking pthread.h usability" >&5
3798 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
3799 cat >conftest.$ac_ext <<_ACEOF
3800 #line $LINENO "configure"
3801 #include "confdefs.h"
3802 $ac_includes_default
3803 #include <pthread.h>
3805 rm -f conftest.$ac_objext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -s conftest.$ac_objext'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3817 ac_header_compiler=yes
3819 echo "$as_me: failed program was:" >&5
3820 cat conftest.$ac_ext >&5
3821 ac_header_compiler=no
3823 rm -f conftest.$ac_objext conftest.$ac_ext
3824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3825 echo "${ECHO_T}$ac_header_compiler" >&6
3827 # Is the header present?
3828 echo "$as_me:$LINENO: checking pthread.h presence" >&5
3829 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
3830 cat >conftest.$ac_ext <<_ACEOF
3831 #line $LINENO "configure"
3832 #include "confdefs.h"
3833 #include <pthread.h>
3835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3838 egrep -v '^ *\+' conftest.er1 >conftest.err
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } >/dev/null; then
3843 if test -s conftest.err; then
3844 ac_cpp_err=$ac_c_preproc_warn_flag
3851 if test -z "$ac_cpp_err"; then
3852 ac_header_preproc=yes
3854 echo "$as_me: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3856 ac_header_preproc=no
3858 rm -f conftest.err conftest.$ac_ext
3859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3860 echo "${ECHO_T}$ac_header_preproc" >&6
3862 # So? What about this header?
3863 case $ac_header_compiler:$ac_header_preproc in
3865 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
3866 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3867 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3868 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3870 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
3871 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
3872 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
3873 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
3874 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
3875 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
3877 echo "$as_me:$LINENO: checking for pthread.h" >&5
3878 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
3879 if test "${ac_cv_header_pthread_h+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 ac_cv_header_pthread_h=$ac_header_preproc
3884 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
3885 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
3888 if test $ac_cv_header_pthread_h = yes; then
3891 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --with-threads" >&5
3892 echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
3893 { (exit 1); exit 1; }; }
3899 # these require no special flags or libraries
3901 freebsd2*|freebsd3*|freebsd4*) THREAD_CFLAGS="-pthread" ;;
3902 freebsd*) THREAD_LIBS="-lc_r" ;;
3903 linux*) THREAD_LIBS="-lpthread"
3904 THREAD_CFLAGS="-D_REENTRANT" ;;
3906 # other operating systems might fail because they have pthread.h but need
3907 # special libs we don't know about yet.
3908 { { echo "$as_me:$LINENO: error:
3909 Cannot enable threads on your platform.
3910 Please report your platform threading info to the PostgreSQL mailing lists
3911 so it can be added to the next release. Report any compile or link flags,
3912 or libraries required for threading support.
3914 echo "$as_me: error:
3915 Cannot enable threads on your platform.
3916 Please report your platform threading info to the PostgreSQL mailing lists
3917 so it can be added to the next release. Report any compile or link flags,
3918 or libraries required for threading support.
3920 { (exit 1); exit 1; }; }
3930 CPPFLAGS="$CPPFLAGS $INCLUDES"
3931 LDFLAGS="$LDFLAGS $LIBDIRS"
3933 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3934 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3935 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3936 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3939 for ac_prog in gawk mawk nawk awk
3941 # Extract the first word of "$ac_prog", so it can be a program name with args.
3942 set dummy $ac_prog; ac_word=$2
3943 echo "$as_me:$LINENO: checking for $ac_word" >&5
3944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945 if test "${ac_cv_prog_AWK+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 if test -n "$AWK"; then
3949 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958 ac_cv_prog_AWK="$ac_prog"
3959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 if test -n "$AWK"; then
3969 echo "$as_me:$LINENO: result: $AWK" >&5
3970 echo "${ECHO_T}$AWK" >&6
3972 echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3976 test -n "$AWK" && break
3979 echo "$as_me:$LINENO: checking for flex" >&5
3980 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3981 if test "${pgac_cv_path_flex+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 # Let the user override the test
3985 if test -n "$FLEX"; then
3986 pgac_cv_path_flex=$FLEX
3990 for pgac_dir in $PATH; do
3991 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3994 for pgac_prog in flex lex; do
3995 pgac_candidate="$pgac_dir/$pgac_prog"
3996 if test -f "$pgac_candidate" \
3997 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3999 echo '%%' > conftest.l
4000 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
4001 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
4002 pgac_broken_flex=$pgac_candidate
4006 pgac_cv_path_flex=$pgac_candidate
4014 : ${pgac_cv_path_flex=no}
4018 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
4019 echo "${ECHO_T}$pgac_cv_path_flex" >&6
4020 if test x"$pgac_cv_path_flex" = x"no"; then
4021 if test -n "$pgac_broken_flex"; then
4022 { echo "$as_me:$LINENO: WARNING:
4023 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4024 *** should get version 2.5.4 or later." >&5
4025 echo "$as_me: WARNING:
4026 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
4027 *** should get version 2.5.4 or later." >&2;}
4030 { echo "$as_me:$LINENO: WARNING:
4031 *** Without Flex you will not be able to build PostgreSQL from CVS or
4032 *** change any of the scanner definition files. You can obtain Flex from
4033 *** a GNU mirror site. (If you are using the official distribution of
4034 *** PostgreSQL then you do not need to worry about this because the Flex
4035 *** output is pre-generated.)" >&5
4036 echo "$as_me: WARNING:
4037 *** Without Flex you will not be able to build PostgreSQL from CVS or
4038 *** change any of the scanner definition files. You can obtain Flex from
4039 *** a GNU mirror site. (If you are using the official distribution of
4040 *** PostgreSQL then you do not need to worry about this because the Flex
4041 *** output is pre-generated.)" >&2;}
4044 if test x"$pgac_cv_path_flex" = x"no"; then
4047 FLEX=$pgac_cv_path_flex
4053 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4054 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4056 if test "$LN_S" = "ln -s"; then
4057 echo "$as_me:$LINENO: result: yes" >&5
4058 echo "${ECHO_T}yes" >&6
4060 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4061 echo "${ECHO_T}no, using $LN_S" >&6
4065 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4066 if test "${with_gnu_ld+set}" = set; then
4067 withval="$with_gnu_ld"
4068 test "$withval" = no || with_gnu_ld=yes
4073 if test "$GCC" = yes; then
4074 # Check if gcc -print-prog-name=ld gives a path.
4075 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4076 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4079 # gcc leaves a trailing carriage return which upsets mingw
4080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4085 # Accept absolute paths.
4086 [\\/]* | [A-Za-z]:[\\/]*)
4087 re_direlt='/[^/][^/]*/\.\./'
4088 # Canonicalize the path of ld
4089 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4090 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4091 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4093 test -z "$LD" && LD="$ac_prog"
4096 # If it fails, then pretend we aren't using GCC.
4100 # If it is relative, then search for the first ld in PATH.
4104 elif test "$with_gnu_ld" = yes; then
4105 echo "$as_me:$LINENO: checking for GNU ld" >&5
4106 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4108 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4109 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4111 if test "${ac_cv_path_LD+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 if test -z "$LD"; then
4115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4116 for ac_dir in $PATH; do
4117 test -z "$ac_dir" && ac_dir=.
4118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4119 ac_cv_path_LD="$ac_dir/$ac_prog"
4120 # Check to see if the program is GNU ld. I'd rather use --version,
4121 # but apparently some GNU ld's only accept -v.
4122 # Break only if it was the GNU/non-GNU ld that we prefer.
4123 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4124 test "$with_gnu_ld" != no && break
4126 test "$with_gnu_ld" != yes && break
4132 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4137 if test -n "$LD"; then
4138 echo "$as_me:$LINENO: result: $LD" >&5
4139 echo "${ECHO_T}$LD" >&6
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4144 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4145 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4146 { (exit 1); exit 1; }; }
4147 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4148 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4149 if test "${ac_cv_prog_gnu_ld+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4153 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4154 ac_cv_prog_gnu_ld=yes
4156 ac_cv_prog_gnu_ld=no
4159 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
4160 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
4161 with_gnu_ld=$ac_cv_prog_gnu_ld
4166 case $host_os in sysv5*)
4167 echo "$as_me:$LINENO: checking whether ld -R works" >&5
4168 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
4169 if test "${pgac_cv_prog_ld_R+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 #include "confdefs.h"
4178 #ifdef F77_DUMMY_MAIN
4182 int F77_DUMMY_MAIN() { return 1; }
4192 rm -f conftest.$ac_objext conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194 (eval $ac_link) 2>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -s conftest$ac_exeext'
4199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4204 pgac_cv_prog_ld_R=yes
4206 echo "$as_me: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4208 pgac_cv_prog_ld_R=no
4210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4211 LDFLAGS=$pgac_save_LDFLAGS
4214 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
4215 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
4216 ld_R_works=$pgac_cv_prog_ld_R
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4221 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4222 echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224 if test "${ac_cv_prog_RANLIB+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 if test -n "$RANLIB"; then
4228 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 RANLIB=$ac_cv_prog_RANLIB
4247 if test -n "$RANLIB"; then
4248 echo "$as_me:$LINENO: result: $RANLIB" >&5
4249 echo "${ECHO_T}$RANLIB" >&6
4251 echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6
4256 if test -z "$ac_cv_prog_RANLIB"; then
4257 ac_ct_RANLIB=$RANLIB
4258 # Extract the first word of "ranlib", so it can be a program name with args.
4259 set dummy ranlib; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$ac_ct_RANLIB"; then
4266 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_ac_ct_RANLIB="ranlib"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4285 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4286 if test -n "$ac_ct_RANLIB"; then
4287 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4288 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4290 echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6
4294 RANLIB=$ac_ct_RANLIB
4296 RANLIB="$ac_cv_prog_RANLIB"
4299 for ac_prog in lorder
4301 # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy $ac_prog; ac_word=$2
4303 echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4305 if test "${ac_cv_prog_LORDER+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 if test -n "$LORDER"; then
4309 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318 ac_cv_prog_LORDER="$ac_prog"
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 LORDER=$ac_cv_prog_LORDER
4328 if test -n "$LORDER"; then
4329 echo "$as_me:$LINENO: result: $LORDER" >&5
4330 echo "${ECHO_T}$LORDER" >&6
4332 echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6
4336 test -n "$LORDER" && break
4339 # Extract the first word of "tar", so it can be a program name with args.
4340 set dummy tar; 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_path_TAR+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 if test -n "$TAR"; then
4371 echo "$as_me:$LINENO: result: $TAR" >&5
4372 echo "${ECHO_T}$TAR" >&6
4374 echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6
4379 if test -n "$ac_tool_prefix"; then
4380 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4381 set dummy ${ac_tool_prefix}strip; ac_word=$2
4382 echo "$as_me:$LINENO: checking for $ac_word" >&5
4383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4384 if test "${ac_cv_prog_STRIP+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 if test -n "$STRIP"; then
4388 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 STRIP=$ac_cv_prog_STRIP
4407 if test -n "$STRIP"; then
4408 echo "$as_me:$LINENO: result: $STRIP" >&5
4409 echo "${ECHO_T}$STRIP" >&6
4411 echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6
4416 if test -z "$ac_cv_prog_STRIP"; then
4418 # Extract the first word of "strip", so it can be a program name with args.
4419 set dummy strip; ac_word=$2
4420 echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 if test -n "$ac_ct_STRIP"; then
4426 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_prog_ac_ct_STRIP="strip"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4446 if test -n "$ac_ct_STRIP"; then
4447 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4448 echo "${ECHO_T}$ac_ct_STRIP" >&6
4450 echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6
4456 STRIP="$ac_cv_prog_STRIP"
4460 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4461 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4462 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4463 STRIP_STATIC_LIB="$STRIP -x"
4464 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4465 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4470 echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4477 for ac_prog in 'bison -y'
4479 # Extract the first word of "$ac_prog", so it can be a program name with args.
4480 set dummy $ac_prog; ac_word=$2
4481 echo "$as_me:$LINENO: checking for $ac_word" >&5
4482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483 if test "${ac_cv_prog_YACC+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 if test -n "$YACC"; then
4487 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496 ac_cv_prog_YACC="$ac_prog"
4497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 YACC=$ac_cv_prog_YACC
4506 if test -n "$YACC"; then
4507 echo "$as_me:$LINENO: result: $YACC" >&5
4508 echo "${ECHO_T}$YACC" >&6
4510 echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6
4514 test -n "$YACC" && break
4518 if test "$YACC"; then
4519 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4520 { echo "$as_me:$LINENO: WARNING:
4521 *** The installed version of Bison is too old. PostgreSQL needs
4522 *** Bison version 1.875 or later." >&5
4523 echo "$as_me: WARNING:
4524 *** The installed version of Bison is too old. PostgreSQL needs
4525 *** Bison version 1.875 or later." >&2;}
4529 if test -z "$YACC"; then
4530 { echo "$as_me:$LINENO: WARNING:
4531 *** Without Bison you will not be able to build PostgreSQL from CVS or
4532 *** change any of the parser definition files. You can obtain Bison from
4533 *** a GNU mirror site. (If you are using the official distribution of
4534 *** PostgreSQL then you do not need to worry about this because the Bison
4535 *** output is pre-generated.) To use a different yacc program (possible,
4536 *** but not recommended), set the environment variable YACC before running
4537 *** 'configure'." >&5
4538 echo "$as_me: WARNING:
4539 *** Without Bison you will not be able to build PostgreSQL from CVS or
4540 *** change any of the parser definition files. You can obtain Bison from
4541 *** a GNU mirror site. (If you are using the official distribution of
4542 *** PostgreSQL then you do not need to worry about this because the Bison
4543 *** output is pre-generated.) To use a different yacc program (possible,
4544 *** but not recommended), set the environment variable YACC before running
4545 *** 'configure'." >&2;}
4549 # Extract the first word of "perl", so it can be a program name with args.
4550 set dummy perl; ac_word=$2
4551 echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4553 if test "${ac_cv_path_PERL+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 PERL=$ac_cv_path_PERL
4580 if test -n "$PERL"; then
4581 echo "$as_me:$LINENO: result: $PERL" >&5
4582 echo "${ECHO_T}$PERL" >&6
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4588 if test "$with_perl" = yes; then
4590 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4591 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4592 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4593 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4594 echo "${ECHO_T}$perl_archlibexp" >&6
4595 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4596 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4597 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4598 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4599 echo "${ECHO_T}$perl_privlibexp" >&6
4600 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4601 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4602 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4603 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4604 echo "${ECHO_T}$perl_useshrplib" >&6
4606 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4607 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4608 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4609 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4610 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4611 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4612 echo "${ECHO_T}$perl_embed_ldflags" >&6
4615 if test "$with_python" = yes; then
4616 # Extract the first word of "python", so it can be a program name with args.
4617 set dummy python; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_path_PYTHON+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
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_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 PYTHON=$ac_cv_path_PYTHON
4647 if test -n "$PYTHON"; then
4648 echo "$as_me:$LINENO: result: $PYTHON" >&5
4649 echo "${ECHO_T}$PYTHON" >&6
4651 echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6
4655 if test x"$PYTHON" = x""; then
4656 { { echo "$as_me:$LINENO: error: Python not found" >&5
4657 echo "$as_me: error: Python not found" >&2;}
4658 { (exit 1); exit 1; }; }
4662 echo "$as_me:$LINENO: checking Python installation directories" >&5
4663 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4664 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4665 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4666 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4667 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4668 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4669 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4670 python_includespec="-I${python_prefix}/include/python${python_version}"
4671 if test "$python_prefix" != "$python_execprefix"; then
4672 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4675 # This should be enough of a message.
4676 if test "$python_prefix" != "$python_execprefix"; then
4677 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4678 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4680 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4681 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4688 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4689 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4691 if test ! -f "$python_configdir/Makefile"; then
4692 echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4694 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4695 echo "$as_me: error: Python Makefile not found" >&2;}
4696 { (exit 1); exit 1; }; }
4699 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4700 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4701 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4702 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4703 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4705 pgac_tab=" " # tab character
4706 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"`
4708 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4709 echo "${ECHO_T}${python_libspec}" >&6
4719 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4722 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4723 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4724 if test "${ac_cv_lib_bsd_main+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 ac_check_lib_save_LIBS=$LIBS
4729 cat >conftest.$ac_ext <<_ACEOF
4730 #line $LINENO "configure"
4731 #include "confdefs.h"
4734 #ifdef F77_DUMMY_MAIN
4738 int F77_DUMMY_MAIN() { return 1; }
4748 rm -f conftest.$ac_objext conftest$ac_exeext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4750 (eval $ac_link) 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } &&
4754 { ac_try='test -s conftest$ac_exeext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_cv_lib_bsd_main=yes
4762 echo "$as_me: failed program was:" >&5
4763 cat conftest.$ac_ext >&5
4764 ac_cv_lib_bsd_main=no
4766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_check_lib_save_LIBS
4769 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4770 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4771 if test $ac_cv_lib_bsd_main = yes; then
4772 cat >>confdefs.h <<_ACEOF
4773 #define HAVE_LIBBSD 1
4782 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4783 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4784 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 ac_check_lib_save_LIBS=$LIBS
4789 cat >conftest.$ac_ext <<_ACEOF
4790 #line $LINENO "configure"
4791 #include "confdefs.h"
4793 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */
4799 char setproctitle ();
4800 #ifdef F77_DUMMY_MAIN
4804 int F77_DUMMY_MAIN() { return 1; }
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4816 (eval $ac_link) 2>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -s conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_cv_lib_util_setproctitle=yes
4828 echo "$as_me: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4830 ac_cv_lib_util_setproctitle=no
4832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4833 LIBS=$ac_check_lib_save_LIBS
4835 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4836 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4837 if test $ac_cv_lib_util_setproctitle = yes; then
4838 cat >>confdefs.h <<_ACEOF
4839 #define HAVE_LIBUTIL 1
4847 echo "$as_me:$LINENO: checking for main in -lm" >&5
4848 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4849 if test "${ac_cv_lib_m_main+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 ac_check_lib_save_LIBS=$LIBS
4854 cat >conftest.$ac_ext <<_ACEOF
4855 #line $LINENO "configure"
4856 #include "confdefs.h"
4859 #ifdef F77_DUMMY_MAIN
4863 int F77_DUMMY_MAIN() { return 1; }
4873 rm -f conftest.$ac_objext conftest$ac_exeext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4875 (eval $ac_link) 2>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try='test -s conftest$ac_exeext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_cv_lib_m_main=yes
4887 echo "$as_me: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4892 LIBS=$ac_check_lib_save_LIBS
4894 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4895 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4896 if test $ac_cv_lib_m_main = yes; then
4897 cat >>confdefs.h <<_ACEOF
4906 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4907 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4908 if test "${ac_cv_lib_dl_main+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 ac_check_lib_save_LIBS=$LIBS
4913 cat >conftest.$ac_ext <<_ACEOF
4914 #line $LINENO "configure"
4915 #include "confdefs.h"
4918 #ifdef F77_DUMMY_MAIN
4922 int F77_DUMMY_MAIN() { return 1; }
4932 rm -f conftest.$ac_objext conftest$ac_exeext
4933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4934 (eval $ac_link) 2>&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } &&
4938 { ac_try='test -s conftest$ac_exeext'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; }; then
4944 ac_cv_lib_dl_main=yes
4946 echo "$as_me: failed program was:" >&5
4947 cat conftest.$ac_ext >&5
4948 ac_cv_lib_dl_main=no
4950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4951 LIBS=$ac_check_lib_save_LIBS
4953 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4954 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4955 if test $ac_cv_lib_dl_main = yes; then
4956 cat >>confdefs.h <<_ACEOF
4957 #define HAVE_LIBDL 1
4965 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4966 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4967 if test "${ac_cv_lib_nsl_main+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 ac_check_lib_save_LIBS=$LIBS
4972 cat >conftest.$ac_ext <<_ACEOF
4973 #line $LINENO "configure"
4974 #include "confdefs.h"
4977 #ifdef F77_DUMMY_MAIN
4981 int F77_DUMMY_MAIN() { return 1; }
4991 rm -f conftest.$ac_objext conftest$ac_exeext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -s conftest$ac_exeext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_cv_lib_nsl_main=yes
5005 echo "$as_me: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5007 ac_cv_lib_nsl_main=no
5009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5010 LIBS=$ac_check_lib_save_LIBS
5012 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5013 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5014 if test $ac_cv_lib_nsl_main = yes; then
5015 cat >>confdefs.h <<_ACEOF
5016 #define HAVE_LIBNSL 1
5024 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5025 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5026 if test "${ac_cv_lib_socket_main+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 ac_check_lib_save_LIBS=$LIBS
5030 LIBS="-lsocket $LIBS"
5031 cat >conftest.$ac_ext <<_ACEOF
5032 #line $LINENO "configure"
5033 #include "confdefs.h"
5036 #ifdef F77_DUMMY_MAIN
5040 int F77_DUMMY_MAIN() { return 1; }
5050 rm -f conftest.$ac_objext conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052 (eval $ac_link) 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try='test -s conftest$ac_exeext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_lib_socket_main=yes
5064 echo "$as_me: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 ac_cv_lib_socket_main=no
5068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5069 LIBS=$ac_check_lib_save_LIBS
5071 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5072 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5073 if test $ac_cv_lib_socket_main = yes; then
5074 cat >>confdefs.h <<_ACEOF
5075 #define HAVE_LIBSOCKET 1
5078 LIBS="-lsocket $LIBS"
5083 echo "$as_me:$LINENO: checking for main in -lipc" >&5
5084 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
5085 if test "${ac_cv_lib_ipc_main+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 ac_check_lib_save_LIBS=$LIBS
5090 cat >conftest.$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5092 #include "confdefs.h"
5095 #ifdef F77_DUMMY_MAIN
5099 int F77_DUMMY_MAIN() { return 1; }
5109 rm -f conftest.$ac_objext conftest$ac_exeext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111 (eval $ac_link) 2>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -s conftest$ac_exeext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 ac_cv_lib_ipc_main=yes
5123 echo "$as_me: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5125 ac_cv_lib_ipc_main=no
5127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5128 LIBS=$ac_check_lib_save_LIBS
5130 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
5131 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
5132 if test $ac_cv_lib_ipc_main = yes; then
5133 cat >>confdefs.h <<_ACEOF
5134 #define HAVE_LIBIPC 1
5142 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
5143 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
5144 if test "${ac_cv_lib_IPC_main+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 ac_check_lib_save_LIBS=$LIBS
5149 cat >conftest.$ac_ext <<_ACEOF
5150 #line $LINENO "configure"
5151 #include "confdefs.h"
5154 #ifdef F77_DUMMY_MAIN
5158 int F77_DUMMY_MAIN() { return 1; }
5168 rm -f conftest.$ac_objext conftest$ac_exeext
5169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5170 (eval $ac_link) 2>&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -s conftest$ac_exeext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 ac_cv_lib_IPC_main=yes
5182 echo "$as_me: failed program was:" >&5
5183 cat conftest.$ac_ext >&5
5184 ac_cv_lib_IPC_main=no
5186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5187 LIBS=$ac_check_lib_save_LIBS
5189 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
5190 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
5191 if test $ac_cv_lib_IPC_main = yes; then
5192 cat >>confdefs.h <<_ACEOF
5193 #define HAVE_LIBIPC 1
5201 echo "$as_me:$LINENO: checking for main in -llc" >&5
5202 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
5203 if test "${ac_cv_lib_lc_main+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 ac_check_lib_save_LIBS=$LIBS
5208 cat >conftest.$ac_ext <<_ACEOF
5209 #line $LINENO "configure"
5210 #include "confdefs.h"
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_lc_main=yes
5241 echo "$as_me: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 ac_cv_lib_lc_main=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_lc_main" >&5
5249 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5250 if test $ac_cv_lib_lc_main = yes; then
5251 cat >>confdefs.h <<_ACEOF
5252 #define HAVE_LIBLC 1
5260 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5261 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5262 if test "${ac_cv_lib_dld_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_dld_main=yes
5300 echo "$as_me: failed program was:" >&5
5301 cat conftest.$ac_ext >&5
5302 ac_cv_lib_dld_main=no
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_dld_main" >&5
5308 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5309 if test $ac_cv_lib_dld_main = yes; then
5310 cat >>confdefs.h <<_ACEOF
5311 #define HAVE_LIBDLD 1
5319 echo "$as_me:$LINENO: checking for main in -lld" >&5
5320 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5321 if test "${ac_cv_lib_ld_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_ld_main=yes
5359 echo "$as_me: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 ac_cv_lib_ld_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_ld_main" >&5
5367 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5368 if test $ac_cv_lib_ld_main = yes; then
5369 cat >>confdefs.h <<_ACEOF
5370 #define HAVE_LIBLD 1
5378 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5379 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5380 if test "${ac_cv_lib_compat_main+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 ac_check_lib_save_LIBS=$LIBS
5384 LIBS="-lcompat $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_compat_main=yes
5418 echo "$as_me: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5420 ac_cv_lib_compat_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_compat_main" >&5
5426 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5427 if test $ac_cv_lib_compat_main = yes; then
5428 cat >>confdefs.h <<_ACEOF
5429 #define HAVE_LIBCOMPAT 1
5432 LIBS="-lcompat $LIBS"
5437 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5438 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5439 if test "${ac_cv_lib_BSD_main+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 ac_check_lib_save_LIBS=$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_BSD_main=yes
5477 echo "$as_me: failed program was:" >&5
5478 cat conftest.$ac_ext >&5
5479 ac_cv_lib_BSD_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_BSD_main" >&5
5485 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5486 if test $ac_cv_lib_BSD_main = yes; then
5487 cat >>confdefs.h <<_ACEOF
5488 #define HAVE_LIBBSD 1
5496 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5497 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5498 if test "${ac_cv_lib_gen_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_gen_main=yes
5536 echo "$as_me: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5538 ac_cv_lib_gen_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_gen_main" >&5
5544 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5545 if test $ac_cv_lib_gen_main = yes; then
5546 cat >>confdefs.h <<_ACEOF
5547 #define HAVE_LIBGEN 1
5555 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5556 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5557 if test "${ac_cv_lib_PW_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_PW_main=yes
5595 echo "$as_me: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5597 ac_cv_lib_PW_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_PW_main" >&5
5603 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5604 if test $ac_cv_lib_PW_main = yes; then
5605 cat >>confdefs.h <<_ACEOF
5606 #define HAVE_LIBPW 1
5614 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5615 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5616 if test "${ac_cv_lib_resolv_main+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5619 ac_check_lib_save_LIBS=$LIBS
5620 LIBS="-lresolv $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_resolv_main=yes
5654 echo "$as_me: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5656 ac_cv_lib_resolv_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_resolv_main" >&5
5662 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5663 if test $ac_cv_lib_resolv_main = yes; then
5664 cat >>confdefs.h <<_ACEOF
5665 #define HAVE_LIBRESOLV 1
5668 LIBS="-lresolv $LIBS"
5673 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5674 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5675 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 ac_check_lib_save_LIBS=$LIBS
5679 LIBS="-lwsock32 $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_wsock32_main=yes
5713 echo "$as_me: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5715 ac_cv_lib_wsock32_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_wsock32_main" >&5
5721 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5722 if test $ac_cv_lib_wsock32_main = yes; then
5723 cat >>confdefs.h <<_ACEOF
5724 #define HAVE_LIBWSOCK32 1
5727 LIBS="-lwsock32 $LIBS"
5731 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5732 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5733 if test "${ac_cv_search_getopt_long+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 ac_func_search_save_LIBS=$LIBS
5737 ac_cv_search_getopt_long=no
5738 cat >conftest.$ac_ext <<_ACEOF
5739 #line $LINENO "configure"
5740 #include "confdefs.h"
5742 /* Override any gcc2 internal prototype to avoid an error. */
5746 /* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5748 char getopt_long ();
5749 #ifdef F77_DUMMY_MAIN
5753 int F77_DUMMY_MAIN() { return 1; }
5763 rm -f conftest.$ac_objext conftest$ac_exeext
5764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5765 (eval $ac_link) 2>&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } &&
5769 { ac_try='test -s conftest$ac_exeext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5775 ac_cv_search_getopt_long="none required"
5777 echo "$as_me: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5781 if test "$ac_cv_search_getopt_long" = no; then
5782 for ac_lib in getopt gnugetopt; do
5783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5784 cat >conftest.$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5786 #include "confdefs.h"
5788 /* Override any gcc2 internal prototype to avoid an error. */
5792 /* We use char because int might match the return type of a gcc2
5793 builtin and then its argument prototype would still apply. */
5794 char getopt_long ();
5795 #ifdef F77_DUMMY_MAIN
5799 int F77_DUMMY_MAIN() { return 1; }
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -s conftest$ac_exeext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 ac_cv_search_getopt_long="-l$ac_lib"
5824 echo "$as_me: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5830 LIBS=$ac_func_search_save_LIBS
5832 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5833 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5834 if test "$ac_cv_search_getopt_long" != no; then
5835 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5841 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5842 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5843 if test "${ac_cv_lib_unix_main+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 ac_check_lib_save_LIBS=$LIBS
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 #include "confdefs.h"
5853 #ifdef F77_DUMMY_MAIN
5857 int F77_DUMMY_MAIN() { return 1; }
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5869 (eval $ac_link) 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -s conftest$ac_exeext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_lib_unix_main=yes
5881 echo "$as_me: failed program was:" >&5
5882 cat conftest.$ac_ext >&5
5883 ac_cv_lib_unix_main=no
5885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5886 LIBS=$ac_check_lib_save_LIBS
5888 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5889 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5890 if test $ac_cv_lib_unix_main = yes; then
5891 cat >>confdefs.h <<_ACEOF
5892 #define HAVE_LIBUNIX 1
5899 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5900 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5901 if test "${ac_cv_search_crypt+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 ac_func_search_save_LIBS=$LIBS
5905 ac_cv_search_crypt=no
5906 cat >conftest.$ac_ext <<_ACEOF
5907 #line $LINENO "configure"
5908 #include "confdefs.h"
5910 /* Override any gcc2 internal prototype to avoid an error. */
5914 /* We use char because int might match the return type of a gcc2
5915 builtin and then its argument prototype would still apply. */
5917 #ifdef F77_DUMMY_MAIN
5921 int F77_DUMMY_MAIN() { return 1; }
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5933 (eval $ac_link) 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -s conftest$ac_exeext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_search_crypt="none required"
5945 echo "$as_me: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 if test "$ac_cv_search_crypt" = no; then
5950 for ac_lib in crypt; do
5951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5952 cat >conftest.$ac_ext <<_ACEOF
5953 #line $LINENO "configure"
5954 #include "confdefs.h"
5956 /* Override any gcc2 internal prototype to avoid an error. */
5960 /* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5963 #ifdef F77_DUMMY_MAIN
5967 int F77_DUMMY_MAIN() { return 1; }
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979 (eval $ac_link) 2>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -s conftest$ac_exeext'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; }; then
5989 ac_cv_search_crypt="-l$ac_lib"
5992 echo "$as_me: failed program was:" >&5
5993 cat conftest.$ac_ext >&5
5995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998 LIBS=$ac_func_search_save_LIBS
6000 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
6001 echo "${ECHO_T}$ac_cv_search_crypt" >&6
6002 if test "$ac_cv_search_crypt" != no; then
6003 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
6009 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
6010 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
6011 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 ac_check_lib_save_LIBS=$LIBS
6016 cat >conftest.$ac_ext <<_ACEOF
6017 #line $LINENO "configure"
6018 #include "confdefs.h"
6020 /* Override any gcc2 internal prototype to avoid an error. */
6024 /* We use char because int might match the return type of a gcc2
6025 builtin and then its argument prototype would still apply. */
6026 char __inet_ntoa ();
6027 #ifdef F77_DUMMY_MAIN
6031 int F77_DUMMY_MAIN() { return 1; }
6041 rm -f conftest.$ac_objext conftest$ac_exeext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6043 (eval $ac_link) 2>&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -s conftest$ac_exeext'
6048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }; }; then
6053 ac_cv_lib_bind___inet_ntoa=yes
6055 echo "$as_me: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6057 ac_cv_lib_bind___inet_ntoa=no
6059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6060 LIBS=$ac_check_lib_save_LIBS
6062 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
6063 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
6064 if test $ac_cv_lib_bind___inet_ntoa = yes; then
6065 cat >>confdefs.h <<_ACEOF
6066 #define HAVE_LIBBIND 1
6074 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
6075 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
6076 if test "${ac_cv_search_fdatasync+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 ac_func_search_save_LIBS=$LIBS
6080 ac_cv_search_fdatasync=no
6081 cat >conftest.$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6083 #include "confdefs.h"
6085 /* Override any gcc2 internal prototype to avoid an error. */
6089 /* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */
6092 #ifdef F77_DUMMY_MAIN
6096 int F77_DUMMY_MAIN() { return 1; }
6106 rm -f conftest.$ac_objext conftest$ac_exeext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6108 (eval $ac_link) 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -s conftest$ac_exeext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_search_fdatasync="none required"
6120 echo "$as_me: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6124 if test "$ac_cv_search_fdatasync" = no; then
6125 for ac_lib in rt posix4; do
6126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6127 cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6129 #include "confdefs.h"
6131 /* Override any gcc2 internal prototype to avoid an error. */
6135 /* We use char because int might match the return type of a gcc2
6136 builtin and then its argument prototype would still apply. */
6138 #ifdef F77_DUMMY_MAIN
6142 int F77_DUMMY_MAIN() { return 1; }
6152 rm -f conftest.$ac_objext conftest$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154 (eval $ac_link) 2>&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } &&
6158 { ac_try='test -s conftest$ac_exeext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 ac_cv_search_fdatasync="-l$ac_lib"
6167 echo "$as_me: failed program was:" >&5
6168 cat conftest.$ac_ext >&5
6170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6173 LIBS=$ac_func_search_save_LIBS
6175 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
6176 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
6177 if test "$ac_cv_search_fdatasync" != no; then
6178 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
6184 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
6185 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
6186 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 ac_check_lib_save_LIBS=$LIBS
6190 LIBS="-lcygipc $LIBS"
6191 cat >conftest.$ac_ext <<_ACEOF
6192 #line $LINENO "configure"
6193 #include "confdefs.h"
6195 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6202 #ifdef F77_DUMMY_MAIN
6206 int F77_DUMMY_MAIN() { return 1; }
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_lib_cygipc_shmget=yes
6230 echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6232 ac_cv_lib_cygipc_shmget=no
6234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6235 LIBS=$ac_check_lib_save_LIBS
6237 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
6238 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
6239 if test $ac_cv_lib_cygipc_shmget = yes; then
6240 cat >>confdefs.h <<_ACEOF
6241 #define HAVE_LIBCYGIPC 1
6244 LIBS="-lcygipc $LIBS"
6249 if test "$with_readline" = yes; then
6251 echo "$as_me:$LINENO: checking for readline" >&5
6252 echo $ECHO_N "checking for readline... $ECHO_C" >&6
6254 if test "${pgac_cv_check_readline+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 pgac_cv_check_readline=no
6258 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
6259 for pgac_rllib in -lreadline -ledit ; do
6260 pgac_save_LIBS=$LIBS
6261 LIBS="${pgac_rllib}${pgac_lib} $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. */
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
6300 # NetBSD and OpenBSD have a broken linker that does not
6301 # recognize dependent libraries
6302 case $host_os in netbsd* | openbsd* )
6305 *) pgac_lib=" -lcurses" ;;
6309 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6313 echo "$as_me: failed program was:" >&5
6314 cat conftest.$ac_ext >&5
6316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6317 LIBS=$pgac_save_LIBS
6320 LIBS=$pgac_save_LIBS
6324 if test "$pgac_cv_check_readline" != no ; then
6326 cat >>confdefs.h <<\_ACEOF
6327 #define HAVE_LIBREADLINE 1
6330 LIBS="$pgac_cv_check_readline $LIBS"
6331 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6332 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6334 echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6
6337 if test x"$pgac_cv_check_readline" = x"no"; then
6338 { { echo "$as_me:$LINENO: error: readline library not found
6339 If you have readline already installed, see config.log for details on the
6340 failure. It is possible the compiler isn't looking in the proper directory.
6341 Use --without-readline to disable readline support." >&5
6342 echo "$as_me: error: readline library not found
6343 If you have readline already installed, see config.log for details on the
6344 failure. It is possible the compiler isn't looking in the proper directory.
6345 Use --without-readline to disable readline support." >&2;}
6346 { (exit 1); exit 1; }; }
6350 if test "$with_zlib" = yes; then
6352 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6353 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6354 if test "${ac_cv_lib_z_inflate+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_check_lib_save_LIBS=$LIBS
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line $LINENO "configure"
6361 #include "confdefs.h"
6363 /* Override any gcc2 internal prototype to avoid an error. */
6367 /* We use char because int might match the return type of a gcc2
6368 builtin and then its argument prototype would still apply. */
6370 #ifdef F77_DUMMY_MAIN
6374 int F77_DUMMY_MAIN() { return 1; }
6384 rm -f conftest.$ac_objext conftest$ac_exeext
6385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6386 (eval $ac_link) 2>&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } &&
6390 { ac_try='test -s conftest$ac_exeext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6396 ac_cv_lib_z_inflate=yes
6398 echo "$as_me: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6400 ac_cv_lib_z_inflate=no
6402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6403 LIBS=$ac_check_lib_save_LIBS
6405 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6406 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6407 if test $ac_cv_lib_z_inflate = yes; then
6408 cat >>confdefs.h <<_ACEOF
6415 { { echo "$as_me:$LINENO: error: zlib library not found
6416 If you have zlib already installed, see config.log for details on the
6417 failure. It is possible the compiler isn't looking in the proper directory.
6418 Use --without-zlib to disable zlib support." >&5
6419 echo "$as_me: error: zlib library not found
6420 If you have zlib already installed, see config.log for details on the
6421 failure. It is possible the compiler isn't looking in the proper directory.
6422 Use --without-zlib to disable zlib support." >&2;}
6423 { (exit 1); exit 1; }; }
6428 if test "$with_krb4" = yes ; then
6430 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6431 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6432 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 ac_check_lib_save_LIBS=$LIBS
6437 cat >conftest.$ac_ext <<_ACEOF
6438 #line $LINENO "configure"
6439 #include "confdefs.h"
6441 /* Override any gcc2 internal prototype to avoid an error. */
6445 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6447 char des_encrypt ();
6448 #ifdef F77_DUMMY_MAIN
6452 int F77_DUMMY_MAIN() { return 1; }
6462 rm -f conftest.$ac_objext conftest$ac_exeext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6464 (eval $ac_link) 2>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -s conftest$ac_exeext'
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; }; then
6474 ac_cv_lib_des_des_encrypt=yes
6476 echo "$as_me: failed program was:" >&5
6477 cat conftest.$ac_ext >&5
6478 ac_cv_lib_des_des_encrypt=no
6480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6481 LIBS=$ac_check_lib_save_LIBS
6483 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6484 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6485 if test $ac_cv_lib_des_des_encrypt = yes; then
6486 cat >>confdefs.h <<_ACEOF
6487 #define HAVE_LIBDES 1
6493 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6494 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6495 { (exit 1); exit 1; }; }
6499 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6500 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6501 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 ac_check_lib_save_LIBS=$LIBS
6506 cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 #include "confdefs.h"
6510 /* Override any gcc2 internal prototype to avoid an error. */
6514 /* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6516 char krb_sendauth ();
6517 #ifdef F77_DUMMY_MAIN
6521 int F77_DUMMY_MAIN() { return 1; }
6531 rm -f conftest.$ac_objext conftest$ac_exeext
6532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6533 (eval $ac_link) 2>&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -s conftest$ac_exeext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_cv_lib_krb_krb_sendauth=yes
6545 echo "$as_me: failed program was:" >&5
6546 cat conftest.$ac_ext >&5
6547 ac_cv_lib_krb_krb_sendauth=no
6549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6550 LIBS=$ac_check_lib_save_LIBS
6552 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6553 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6554 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6555 cat >>confdefs.h <<_ACEOF
6556 #define HAVE_LIBKRB 1
6562 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6563 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6564 { (exit 1); exit 1; }; }
6568 for ac_func in gethostname
6570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6571 echo "$as_me:$LINENO: checking for $ac_func" >&5
6572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6573 if eval "test \"\${$as_ac_var+set}\" = set"; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6578 #include "confdefs.h"
6579 /* System header to define __stub macros and hopefully few prototypes,
6580 which can conflict with char $ac_func (); below. */
6582 /* Override any gcc2 internal prototype to avoid an error. */
6586 /* We use char because int might match the return type of a gcc2
6587 builtin and then its argument prototype would still apply. */
6591 #ifdef F77_DUMMY_MAIN
6595 int F77_DUMMY_MAIN() { return 1; }
6600 /* The GNU C library defines this for functions which it implements
6601 to always fail with ENOSYS. Some functions are actually named
6602 something starting with __ and the normal name is an alias. */
6603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6613 rm -f conftest.$ac_objext conftest$ac_exeext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615 (eval $ac_link) 2>&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -s conftest$ac_exeext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 eval "$as_ac_var=yes"
6627 echo "$as_me: failed program was:" >&5
6628 cat conftest.$ac_ext >&5
6629 eval "$as_ac_var=no"
6631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6635 if test `eval echo '${'$as_ac_var'}'` = yes; then
6636 cat >>confdefs.h <<_ACEOF
6637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6641 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6648 if test "$with_krb5" = yes ; then
6649 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6650 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6651 if test "${ac_cv_search_com_err+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 ac_func_search_save_LIBS=$LIBS
6655 ac_cv_search_com_err=no
6656 cat >conftest.$ac_ext <<_ACEOF
6657 #line $LINENO "configure"
6658 #include "confdefs.h"
6660 /* Override any gcc2 internal prototype to avoid an error. */
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6667 #ifdef F77_DUMMY_MAIN
6671 int F77_DUMMY_MAIN() { return 1; }
6681 rm -f conftest.$ac_objext conftest$ac_exeext
6682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6683 (eval $ac_link) 2>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -s conftest$ac_exeext'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; }; then
6693 ac_cv_search_com_err="none required"
6695 echo "$as_me: failed program was:" >&5
6696 cat conftest.$ac_ext >&5
6698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6699 if test "$ac_cv_search_com_err" = no; then
6700 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6701 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6704 #include "confdefs.h"
6706 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6713 #ifdef F77_DUMMY_MAIN
6717 int F77_DUMMY_MAIN() { return 1; }
6727 rm -f conftest.$ac_objext conftest$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729 (eval $ac_link) 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -s conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_search_com_err="-l$ac_lib"
6742 echo "$as_me: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6748 LIBS=$ac_func_search_save_LIBS
6750 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6751 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6752 if test "$ac_cv_search_com_err" != no; then
6753 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6756 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6757 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6758 { (exit 1); exit 1; }; }
6761 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6762 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6763 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 ac_func_search_save_LIBS=$LIBS
6767 ac_cv_search_krb5_encrypt=no
6768 cat >conftest.$ac_ext <<_ACEOF
6769 #line $LINENO "configure"
6770 #include "confdefs.h"
6772 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6778 char krb5_encrypt ();
6779 #ifdef F77_DUMMY_MAIN
6783 int F77_DUMMY_MAIN() { return 1; }
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } &&
6799 { ac_try='test -s conftest$ac_exeext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 ac_cv_search_krb5_encrypt="none required"
6807 echo "$as_me: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6811 if test "$ac_cv_search_krb5_encrypt" = no; then
6812 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6814 cat >conftest.$ac_ext <<_ACEOF
6815 #line $LINENO "configure"
6816 #include "confdefs.h"
6818 /* Override any gcc2 internal prototype to avoid an error. */
6822 /* We use char because int might match the return type of a gcc2
6823 builtin and then its argument prototype would still apply. */
6824 char krb5_encrypt ();
6825 #ifdef F77_DUMMY_MAIN
6829 int F77_DUMMY_MAIN() { return 1; }
6839 rm -f conftest.$ac_objext conftest$ac_exeext
6840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6841 (eval $ac_link) 2>&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try='test -s conftest$ac_exeext'
6846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 ac_cv_search_krb5_encrypt="-l$ac_lib"
6854 echo "$as_me: failed program was:" >&5
6855 cat conftest.$ac_ext >&5
6857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6860 LIBS=$ac_func_search_save_LIBS
6862 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6863 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6864 if test "$ac_cv_search_krb5_encrypt" != no; then
6865 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6868 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6869 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6870 { (exit 1); exit 1; }; }
6873 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6874 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6875 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 ac_func_search_save_LIBS=$LIBS
6879 ac_cv_search_krb5_sendauth=no
6880 cat >conftest.$ac_ext <<_ACEOF
6881 #line $LINENO "configure"
6882 #include "confdefs.h"
6884 /* Override any gcc2 internal prototype to avoid an error. */
6888 /* We use char because int might match the return type of a gcc2
6889 builtin and then its argument prototype would still apply. */
6890 char krb5_sendauth ();
6891 #ifdef F77_DUMMY_MAIN
6895 int F77_DUMMY_MAIN() { return 1; }
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907 (eval $ac_link) 2>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -s conftest$ac_exeext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_cv_search_krb5_sendauth="none required"
6919 echo "$as_me: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6923 if test "$ac_cv_search_krb5_sendauth" = no; then
6924 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6926 cat >conftest.$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6928 #include "confdefs.h"
6930 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6936 char krb5_sendauth ();
6937 #ifdef F77_DUMMY_MAIN
6941 int F77_DUMMY_MAIN() { return 1; }
6951 rm -f conftest.$ac_objext conftest$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 ac_cv_search_krb5_sendauth="-l$ac_lib"
6966 echo "$as_me: failed program was:" >&5
6967 cat conftest.$ac_ext >&5
6969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6972 LIBS=$ac_func_search_save_LIBS
6974 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6975 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6976 if test "$ac_cv_search_krb5_sendauth" != no; then
6977 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6980 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6981 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6982 { (exit 1); exit 1; }; }
6987 if test "$with_openssl" = yes ; then
6989 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6990 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6991 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 ac_check_lib_save_LIBS=$LIBS
6995 LIBS="-lcrypto $LIBS"
6996 cat >conftest.$ac_ext <<_ACEOF
6997 #line $LINENO "configure"
6998 #include "confdefs.h"
7000 /* Override any gcc2 internal prototype to avoid an error. */
7004 /* We use char because int might match the return type of a gcc2
7005 builtin and then its argument prototype would still apply. */
7006 char CRYPTO_new_ex_data ();
7007 #ifdef F77_DUMMY_MAIN
7011 int F77_DUMMY_MAIN() { return 1; }
7016 CRYPTO_new_ex_data ();
7021 rm -f conftest.$ac_objext conftest$ac_exeext
7022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7023 (eval $ac_link) 2>&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } &&
7027 { ac_try='test -s conftest$ac_exeext'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; }; then
7033 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
7035 echo "$as_me: failed program was:" >&5
7036 cat conftest.$ac_ext >&5
7037 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
7039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7040 LIBS=$ac_check_lib_save_LIBS
7042 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
7043 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
7044 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
7045 cat >>confdefs.h <<_ACEOF
7046 #define HAVE_LIBCRYPTO 1
7049 LIBS="-lcrypto $LIBS"
7052 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
7053 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
7054 { (exit 1); exit 1; }; }
7058 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
7059 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
7060 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 ac_check_lib_save_LIBS=$LIBS
7065 cat >conftest.$ac_ext <<_ACEOF
7066 #line $LINENO "configure"
7067 #include "confdefs.h"
7069 /* Override any gcc2 internal prototype to avoid an error. */
7073 /* We use char because int might match the return type of a gcc2
7074 builtin and then its argument prototype would still apply. */
7075 char SSL_library_init ();
7076 #ifdef F77_DUMMY_MAIN
7080 int F77_DUMMY_MAIN() { return 1; }
7085 SSL_library_init ();
7090 rm -f conftest.$ac_objext conftest$ac_exeext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7092 (eval $ac_link) 2>&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
7096 { ac_try='test -s conftest$ac_exeext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_cv_lib_ssl_SSL_library_init=yes
7104 echo "$as_me: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7106 ac_cv_lib_ssl_SSL_library_init=no
7108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7109 LIBS=$ac_check_lib_save_LIBS
7111 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
7112 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
7113 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
7114 cat >>confdefs.h <<_ACEOF
7115 #define HAVE_LIBSSL 1
7121 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
7122 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
7123 { (exit 1); exit 1; }; }
7128 if test "$with_pam" = yes ; then
7130 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
7131 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
7132 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 ac_check_lib_save_LIBS=$LIBS
7137 cat >conftest.$ac_ext <<_ACEOF
7138 #line $LINENO "configure"
7139 #include "confdefs.h"
7141 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7148 #ifdef F77_DUMMY_MAIN
7152 int F77_DUMMY_MAIN() { return 1; }
7162 rm -f conftest.$ac_objext conftest$ac_exeext
7163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7164 (eval $ac_link) 2>&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); } &&
7168 { ac_try='test -s conftest$ac_exeext'
7169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_lib_pam_pam_start=yes
7176 echo "$as_me: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7178 ac_cv_lib_pam_pam_start=no
7180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7181 LIBS=$ac_check_lib_save_LIBS
7183 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
7184 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
7185 if test $ac_cv_lib_pam_pam_start = yes; then
7186 cat >>confdefs.h <<_ACEOF
7187 #define HAVE_LIBPAM 1
7193 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
7194 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
7195 { (exit 1); exit 1; }; }
7226 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
7228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7230 echo "$as_me:$LINENO: checking for $ac_header" >&5
7231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7238 # Is the header compilable?
7239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7241 cat >conftest.$ac_ext <<_ACEOF
7242 #line $LINENO "configure"
7243 #include "confdefs.h"
7244 $ac_includes_default
7245 #include <$ac_header>
7247 rm -f conftest.$ac_objext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7249 (eval $ac_compile) 2>&5
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 ac_header_compiler=yes
7261 echo "$as_me: failed program was:" >&5
7262 cat conftest.$ac_ext >&5
7263 ac_header_compiler=no
7265 rm -f conftest.$ac_objext conftest.$ac_ext
7266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7267 echo "${ECHO_T}$ac_header_compiler" >&6
7269 # Is the header present?
7270 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7272 cat >conftest.$ac_ext <<_ACEOF
7273 #line $LINENO "configure"
7274 #include "confdefs.h"
7275 #include <$ac_header>
7277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7280 egrep -v '^ *\+' conftest.er1 >conftest.err
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } >/dev/null; then
7285 if test -s conftest.err; then
7286 ac_cpp_err=$ac_c_preproc_warn_flag
7293 if test -z "$ac_cpp_err"; then
7294 ac_header_preproc=yes
7296 echo "$as_me: failed program was:" >&5
7297 cat conftest.$ac_ext >&5
7298 ac_header_preproc=no
7300 rm -f conftest.err conftest.$ac_ext
7301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7302 echo "${ECHO_T}$ac_header_preproc" >&6
7304 # So? What about this header?
7305 case $ac_header_compiler:$ac_header_preproc in
7307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7319 echo "$as_me:$LINENO: checking for $ac_header" >&5
7320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 eval "$as_ac_Header=$ac_header_preproc"
7326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7331 cat >>confdefs.h <<_ACEOF
7332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7340 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7341 # netinet/in.h is included first.
7343 for ac_header in netinet/in.h
7345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7347 echo "$as_me:$LINENO: checking for $ac_header" >&5
7348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7355 # Is the header compilable?
7356 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7358 cat >conftest.$ac_ext <<_ACEOF
7359 #line $LINENO "configure"
7360 #include "confdefs.h"
7361 $ac_includes_default
7362 #include <$ac_header>
7364 rm -f conftest.$ac_objext
7365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7366 (eval $ac_compile) 2>&5
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
7370 { ac_try='test -s conftest.$ac_objext'
7371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); }; }; then
7376 ac_header_compiler=yes
7378 echo "$as_me: failed program was:" >&5
7379 cat conftest.$ac_ext >&5
7380 ac_header_compiler=no
7382 rm -f conftest.$ac_objext conftest.$ac_ext
7383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7384 echo "${ECHO_T}$ac_header_compiler" >&6
7386 # Is the header present?
7387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7389 cat >conftest.$ac_ext <<_ACEOF
7390 #line $LINENO "configure"
7391 #include "confdefs.h"
7392 #include <$ac_header>
7394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7397 egrep -v '^ *\+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } >/dev/null; then
7402 if test -s conftest.err; then
7403 ac_cpp_err=$ac_c_preproc_warn_flag
7410 if test -z "$ac_cpp_err"; then
7411 ac_header_preproc=yes
7413 echo "$as_me: failed program was:" >&5
7414 cat conftest.$ac_ext >&5
7415 ac_header_preproc=no
7417 rm -f conftest.err conftest.$ac_ext
7418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7419 echo "${ECHO_T}$ac_header_preproc" >&6
7421 # So? What about this header?
7422 case $ac_header_compiler:$ac_header_preproc in
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7436 echo "$as_me:$LINENO: checking for $ac_header" >&5
7437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 eval "$as_ac_Header=$ac_header_preproc"
7443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7448 cat >>confdefs.h <<_ACEOF
7449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7457 for ac_header in netinet/tcp.h
7459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7460 echo "$as_me:$LINENO: checking for $ac_header" >&5
7461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 cat >conftest.$ac_ext <<_ACEOF
7466 #line $LINENO "configure"
7467 #include "confdefs.h"
7468 $ac_includes_default
7469 #ifdef HAVE_NETINET_IN_H
7470 #include <netinet/in.h>
7474 #include <$ac_header>
7476 rm -f conftest.$ac_objext
7477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7478 (eval $ac_compile) 2>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } &&
7482 { ac_try='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 eval "$as_ac_Header=yes"
7490 echo "$as_me: failed program was:" >&5
7491 cat conftest.$ac_ext >&5
7492 eval "$as_ac_Header=no"
7494 rm -f conftest.$ac_objext conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499 cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7508 if test "$with_readline" = yes; then
7510 for ac_header in readline/readline.h
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7514 echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7522 # Is the header compilable?
7523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 #include "confdefs.h"
7528 $ac_includes_default
7529 #include <$ac_header>
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_header_compiler=yes
7545 echo "$as_me: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7547 ac_header_compiler=no
7549 rm -f conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7551 echo "${ECHO_T}$ac_header_compiler" >&6
7553 # Is the header present?
7554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7557 #line $LINENO "configure"
7558 #include "confdefs.h"
7559 #include <$ac_header>
7561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7564 egrep -v '^ *\+' conftest.er1 >conftest.err
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } >/dev/null; then
7569 if test -s conftest.err; then
7570 ac_cpp_err=$ac_c_preproc_warn_flag
7577 if test -z "$ac_cpp_err"; then
7578 ac_header_preproc=yes
7580 echo "$as_me: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7582 ac_header_preproc=no
7584 rm -f conftest.err conftest.$ac_ext
7585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7586 echo "${ECHO_T}$ac_header_preproc" >&6
7588 # So? What about this header?
7589 case $ac_header_compiler:$ac_header_preproc in
7591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7603 echo "$as_me:$LINENO: checking for $ac_header" >&5
7604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 eval "$as_ac_Header=$ac_header_preproc"
7610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7615 cat >>confdefs.h <<_ACEOF
7616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7621 for ac_header in editline/readline.h
7623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7625 echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7633 # Is the header compilable?
7634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7636 cat >conftest.$ac_ext <<_ACEOF
7637 #line $LINENO "configure"
7638 #include "confdefs.h"
7639 $ac_includes_default
7640 #include <$ac_header>
7642 rm -f conftest.$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644 (eval $ac_compile) 2>&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } &&
7648 { ac_try='test -s conftest.$ac_objext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_header_compiler=yes
7656 echo "$as_me: failed program was:" >&5
7657 cat conftest.$ac_ext >&5
7658 ac_header_compiler=no
7660 rm -f conftest.$ac_objext conftest.$ac_ext
7661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7662 echo "${ECHO_T}$ac_header_compiler" >&6
7664 # Is the header present?
7665 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7667 cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7669 #include "confdefs.h"
7670 #include <$ac_header>
7672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7675 egrep -v '^ *\+' conftest.er1 >conftest.err
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } >/dev/null; then
7680 if test -s conftest.err; then
7681 ac_cpp_err=$ac_c_preproc_warn_flag
7688 if test -z "$ac_cpp_err"; then
7689 ac_header_preproc=yes
7691 echo "$as_me: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 ac_header_preproc=no
7695 rm -f conftest.err conftest.$ac_ext
7696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7697 echo "${ECHO_T}$ac_header_preproc" >&6
7699 # So? What about this header?
7700 case $ac_header_compiler:$ac_header_preproc in
7702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7714 echo "$as_me:$LINENO: checking for $ac_header" >&5
7715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 eval "$as_ac_Header=$ac_header_preproc"
7721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7726 cat >>confdefs.h <<_ACEOF
7727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7732 for ac_header in readline.h
7734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7736 echo "$as_me:$LINENO: checking for $ac_header" >&5
7737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7744 # Is the header compilable?
7745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7747 cat >conftest.$ac_ext <<_ACEOF
7748 #line $LINENO "configure"
7749 #include "confdefs.h"
7750 $ac_includes_default
7751 #include <$ac_header>
7753 rm -f conftest.$ac_objext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try='test -s conftest.$ac_objext'
7760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 ac_header_compiler=yes
7767 echo "$as_me: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7769 ac_header_compiler=no
7771 rm -f conftest.$ac_objext conftest.$ac_ext
7772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7773 echo "${ECHO_T}$ac_header_compiler" >&6
7775 # Is the header present?
7776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7778 cat >conftest.$ac_ext <<_ACEOF
7779 #line $LINENO "configure"
7780 #include "confdefs.h"
7781 #include <$ac_header>
7783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7786 egrep -v '^ *\+' conftest.er1 >conftest.err
7788 cat conftest.err >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } >/dev/null; then
7791 if test -s conftest.err; then
7792 ac_cpp_err=$ac_c_preproc_warn_flag
7799 if test -z "$ac_cpp_err"; then
7800 ac_header_preproc=yes
7802 echo "$as_me: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7804 ac_header_preproc=no
7806 rm -f conftest.err conftest.$ac_ext
7807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7808 echo "${ECHO_T}$ac_header_preproc" >&6
7810 # So? What about this header?
7811 case $ac_header_compiler:$ac_header_preproc in
7813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7825 echo "$as_me:$LINENO: checking for $ac_header" >&5
7826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 eval "$as_ac_Header=$ac_header_preproc"
7832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7842 { { echo "$as_me:$LINENO: error: readline header not found
7843 If you have readline already installed, see config.log for details on the
7844 failure. It is possible the compiler isn't looking in the proper directory.
7845 Use --without-readline to disable readline support." >&5
7846 echo "$as_me: error: readline header not found
7847 If you have readline already installed, see config.log for details on the
7848 failure. It is possible the compiler isn't looking in the proper directory.
7849 Use --without-readline to disable readline support." >&2;}
7850 { (exit 1); exit 1; }; }
7864 for ac_header in readline/history.h
7866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7868 echo "$as_me:$LINENO: checking for $ac_header" >&5
7869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 # Is the header compilable?
7877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882 $ac_includes_default
7883 #include <$ac_header>
7885 rm -f conftest.$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887 (eval $ac_compile) 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_header_compiler=yes
7899 echo "$as_me: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 ac_header_compiler=no
7903 rm -f conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7905 echo "${ECHO_T}$ac_header_compiler" >&6
7907 # Is the header present?
7908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 #include "confdefs.h"
7913 #include <$ac_header>
7915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7918 egrep -v '^ *\+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } >/dev/null; then
7923 if test -s conftest.err; then
7924 ac_cpp_err=$ac_c_preproc_warn_flag
7931 if test -z "$ac_cpp_err"; then
7932 ac_header_preproc=yes
7934 echo "$as_me: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7936 ac_header_preproc=no
7938 rm -f conftest.err conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7940 echo "${ECHO_T}$ac_header_preproc" >&6
7942 # So? What about this header?
7943 case $ac_header_compiler:$ac_header_preproc in
7945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7957 echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 eval "$as_ac_Header=$ac_header_preproc"
7964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7969 cat >>confdefs.h <<_ACEOF
7970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7975 for ac_header in editline/history.h
7977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7979 echo "$as_me:$LINENO: checking for $ac_header" >&5
7980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7987 # Is the header compilable?
7988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7990 cat >conftest.$ac_ext <<_ACEOF
7991 #line $LINENO "configure"
7992 #include "confdefs.h"
7993 $ac_includes_default
7994 #include <$ac_header>
7996 rm -f conftest.$ac_objext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998 (eval $ac_compile) 2>&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8008 ac_header_compiler=yes
8010 echo "$as_me: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8012 ac_header_compiler=no
8014 rm -f conftest.$ac_objext conftest.$ac_ext
8015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8016 echo "${ECHO_T}$ac_header_compiler" >&6
8018 # Is the header present?
8019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8021 cat >conftest.$ac_ext <<_ACEOF
8022 #line $LINENO "configure"
8023 #include "confdefs.h"
8024 #include <$ac_header>
8026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8029 egrep -v '^ *\+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } >/dev/null; then
8034 if test -s conftest.err; then
8035 ac_cpp_err=$ac_c_preproc_warn_flag
8042 if test -z "$ac_cpp_err"; then
8043 ac_header_preproc=yes
8045 echo "$as_me: failed program was:" >&5
8046 cat conftest.$ac_ext >&5
8047 ac_header_preproc=no
8049 rm -f conftest.err conftest.$ac_ext
8050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8051 echo "${ECHO_T}$ac_header_preproc" >&6
8053 # So? What about this header?
8054 case $ac_header_compiler:$ac_header_preproc in
8056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8064 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8068 echo "$as_me:$LINENO: checking for $ac_header" >&5
8069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 eval "$as_ac_Header=$ac_header_preproc"
8075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8080 cat >>confdefs.h <<_ACEOF
8081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8086 for ac_header in history.h
8088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090 echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8098 # Is the header compilable?
8099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8102 #line $LINENO "configure"
8103 #include "confdefs.h"
8104 $ac_includes_default
8105 #include <$ac_header>
8107 rm -f conftest.$ac_objext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8109 (eval $ac_compile) 2>&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try='test -s conftest.$ac_objext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 ac_header_compiler=yes
8121 echo "$as_me: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8123 ac_header_compiler=no
8125 rm -f conftest.$ac_objext conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8127 echo "${ECHO_T}$ac_header_compiler" >&6
8129 # Is the header present?
8130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8132 cat >conftest.$ac_ext <<_ACEOF
8133 #line $LINENO "configure"
8134 #include "confdefs.h"
8135 #include <$ac_header>
8137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8140 egrep -v '^ *\+' conftest.er1 >conftest.err
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } >/dev/null; then
8145 if test -s conftest.err; then
8146 ac_cpp_err=$ac_c_preproc_warn_flag
8153 if test -z "$ac_cpp_err"; then
8154 ac_header_preproc=yes
8156 echo "$as_me: failed program was:" >&5
8157 cat conftest.$ac_ext >&5
8158 ac_header_preproc=no
8160 rm -f conftest.err conftest.$ac_ext
8161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8162 echo "${ECHO_T}$ac_header_preproc" >&6
8164 # So? What about this header?
8165 case $ac_header_compiler:$ac_header_preproc in
8167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8179 echo "$as_me:$LINENO: checking for $ac_header" >&5
8180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 eval "$as_ac_Header=$ac_header_preproc"
8186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8191 cat >>confdefs.h <<_ACEOF
8192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8196 { { echo "$as_me:$LINENO: error: history header not found
8197 If you have readline already installed, see config.log for details on the
8198 failure. It is possible the compiler isn't looking in the proper directory.
8199 Use --without-readline to disable readline support." >&5
8200 echo "$as_me: error: history header not found
8201 If you have readline already installed, see config.log for details on the
8202 failure. It is possible the compiler isn't looking in the proper directory.
8203 Use --without-readline to disable readline support." >&2;}
8204 { (exit 1); exit 1; }; }
8219 if test "$with_zlib" = yes; then
8220 if test "${ac_cv_header_zlib_h+set}" = set; then
8221 echo "$as_me:$LINENO: checking for zlib.h" >&5
8222 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8223 if test "${ac_cv_header_zlib_h+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8227 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8229 # Is the header compilable?
8230 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8231 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8233 #line $LINENO "configure"
8234 #include "confdefs.h"
8235 $ac_includes_default
8238 rm -f conftest.$ac_objext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8240 (eval $ac_compile) 2>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -s conftest.$ac_objext'
8245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8250 ac_header_compiler=yes
8252 echo "$as_me: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8254 ac_header_compiler=no
8256 rm -f conftest.$ac_objext conftest.$ac_ext
8257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8258 echo "${ECHO_T}$ac_header_compiler" >&6
8260 # Is the header present?
8261 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8262 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8263 cat >conftest.$ac_ext <<_ACEOF
8264 #line $LINENO "configure"
8265 #include "confdefs.h"
8268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8271 egrep -v '^ *\+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } >/dev/null; then
8276 if test -s conftest.err; then
8277 ac_cpp_err=$ac_c_preproc_warn_flag
8284 if test -z "$ac_cpp_err"; then
8285 ac_header_preproc=yes
8287 echo "$as_me: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8289 ac_header_preproc=no
8291 rm -f conftest.err conftest.$ac_ext
8292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8293 echo "${ECHO_T}$ac_header_preproc" >&6
8295 # So? What about this header?
8296 case $ac_header_compiler:$ac_header_preproc in
8298 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8299 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8300 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8301 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8303 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8304 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8305 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8306 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8307 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8308 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8310 echo "$as_me:$LINENO: checking for zlib.h" >&5
8311 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8312 if test "${ac_cv_header_zlib_h+set}" = set; then
8313 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 ac_cv_header_zlib_h=$ac_header_preproc
8317 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8318 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8321 if test $ac_cv_header_zlib_h = yes; then
8324 { { echo "$as_me:$LINENO: error: zlib header not found
8325 If you have zlib already installed, see config.log for details on the
8326 failure. It is possible the compiler isn't looking in the proper directory.
8327 Use --without-zlib to disable zlib support." >&5
8328 echo "$as_me: error: zlib header not found
8329 If you have zlib already installed, see config.log for details on the
8330 failure. It is possible the compiler isn't looking in the proper directory.
8331 Use --without-zlib to disable zlib support." >&2;}
8332 { (exit 1); exit 1; }; }
8338 if test "$with_krb4" = yes ; then
8339 if test "${ac_cv_header_krb_h+set}" = set; then
8340 echo "$as_me:$LINENO: checking for krb.h" >&5
8341 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8342 if test "${ac_cv_header_krb_h+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8346 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8348 # Is the header compilable?
8349 echo "$as_me:$LINENO: checking krb.h usability" >&5
8350 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8351 cat >conftest.$ac_ext <<_ACEOF
8352 #line $LINENO "configure"
8353 #include "confdefs.h"
8354 $ac_includes_default
8357 rm -f conftest.$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359 (eval $ac_compile) 2>&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try='test -s conftest.$ac_objext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 ac_header_compiler=yes
8371 echo "$as_me: failed program was:" >&5
8372 cat conftest.$ac_ext >&5
8373 ac_header_compiler=no
8375 rm -f conftest.$ac_objext conftest.$ac_ext
8376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8377 echo "${ECHO_T}$ac_header_compiler" >&6
8379 # Is the header present?
8380 echo "$as_me:$LINENO: checking krb.h presence" >&5
8381 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8382 cat >conftest.$ac_ext <<_ACEOF
8383 #line $LINENO "configure"
8384 #include "confdefs.h"
8387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8390 egrep -v '^ *\+' conftest.er1 >conftest.err
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } >/dev/null; then
8395 if test -s conftest.err; then
8396 ac_cpp_err=$ac_c_preproc_warn_flag
8403 if test -z "$ac_cpp_err"; then
8404 ac_header_preproc=yes
8406 echo "$as_me: failed program was:" >&5
8407 cat conftest.$ac_ext >&5
8408 ac_header_preproc=no
8410 rm -f conftest.err conftest.$ac_ext
8411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412 echo "${ECHO_T}$ac_header_preproc" >&6
8414 # So? What about this header?
8415 case $ac_header_compiler:$ac_header_preproc in
8417 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8418 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8420 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8422 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8423 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8424 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8425 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8427 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8429 echo "$as_me:$LINENO: checking for krb.h" >&5
8430 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8431 if test "${ac_cv_header_krb_h+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 ac_cv_header_krb_h=$ac_header_preproc
8436 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8437 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8440 if test $ac_cv_header_krb_h = yes; then
8443 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8444 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8445 { (exit 1); exit 1; }; }
8451 if test "$with_krb5" = yes ; then
8452 if test "${ac_cv_header_krb5_h+set}" = set; then
8453 echo "$as_me:$LINENO: checking for krb5.h" >&5
8454 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8455 if test "${ac_cv_header_krb5_h+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8459 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8461 # Is the header compilable?
8462 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8463 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8466 #include "confdefs.h"
8467 $ac_includes_default
8470 rm -f conftest.$ac_objext
8471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8472 (eval $ac_compile) 2>&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } &&
8476 { ac_try='test -s conftest.$ac_objext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
8482 ac_header_compiler=yes
8484 echo "$as_me: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8486 ac_header_compiler=no
8488 rm -f conftest.$ac_objext conftest.$ac_ext
8489 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8490 echo "${ECHO_T}$ac_header_compiler" >&6
8492 # Is the header present?
8493 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8494 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line $LINENO "configure"
8497 #include "confdefs.h"
8500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8503 egrep -v '^ *\+' conftest.er1 >conftest.err
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } >/dev/null; then
8508 if test -s conftest.err; then
8509 ac_cpp_err=$ac_c_preproc_warn_flag
8516 if test -z "$ac_cpp_err"; then
8517 ac_header_preproc=yes
8519 echo "$as_me: failed program was:" >&5
8520 cat conftest.$ac_ext >&5
8521 ac_header_preproc=no
8523 rm -f conftest.err conftest.$ac_ext
8524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8525 echo "${ECHO_T}$ac_header_preproc" >&6
8527 # So? What about this header?
8528 case $ac_header_compiler:$ac_header_preproc in
8530 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8531 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8533 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8535 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8540 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8542 echo "$as_me:$LINENO: checking for krb5.h" >&5
8543 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8544 if test "${ac_cv_header_krb5_h+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_cv_header_krb5_h=$ac_header_preproc
8549 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8550 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8553 if test $ac_cv_header_krb5_h = yes; then
8556 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8557 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8558 { (exit 1); exit 1; }; }
8562 if test "${ac_cv_header_com_err_h+set}" = set; then
8563 echo "$as_me:$LINENO: checking for com_err.h" >&5
8564 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8565 if test "${ac_cv_header_com_err_h+set}" = set; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8569 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8571 # Is the header compilable?
8572 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8573 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8574 cat >conftest.$ac_ext <<_ACEOF
8575 #line $LINENO "configure"
8576 #include "confdefs.h"
8577 $ac_includes_default
8578 #include <com_err.h>
8580 rm -f conftest.$ac_objext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8582 (eval $ac_compile) 2>&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -s conftest.$ac_objext'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 ac_header_compiler=yes
8594 echo "$as_me: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8596 ac_header_compiler=no
8598 rm -f conftest.$ac_objext conftest.$ac_ext
8599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8600 echo "${ECHO_T}$ac_header_compiler" >&6
8602 # Is the header present?
8603 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8604 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8605 cat >conftest.$ac_ext <<_ACEOF
8606 #line $LINENO "configure"
8607 #include "confdefs.h"
8608 #include <com_err.h>
8610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8613 egrep -v '^ *\+' conftest.er1 >conftest.err
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } >/dev/null; then
8618 if test -s conftest.err; then
8619 ac_cpp_err=$ac_c_preproc_warn_flag
8626 if test -z "$ac_cpp_err"; then
8627 ac_header_preproc=yes
8629 echo "$as_me: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8631 ac_header_preproc=no
8633 rm -f conftest.err conftest.$ac_ext
8634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8635 echo "${ECHO_T}$ac_header_preproc" >&6
8637 # So? What about this header?
8638 case $ac_header_compiler:$ac_header_preproc in
8640 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8641 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8642 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8643 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8645 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8646 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8648 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8649 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8652 echo "$as_me:$LINENO: checking for com_err.h" >&5
8653 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8654 if test "${ac_cv_header_com_err_h+set}" = set; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 ac_cv_header_com_err_h=$ac_header_preproc
8659 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8660 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8663 if test $ac_cv_header_com_err_h = yes; then
8666 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8667 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8668 { (exit 1); exit 1; }; }
8674 if test "$with_openssl" = yes ; then
8675 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8676 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8677 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8678 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8682 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8684 # Is the header compilable?
8685 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8686 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8687 cat >conftest.$ac_ext <<_ACEOF
8688 #line $LINENO "configure"
8689 #include "confdefs.h"
8690 $ac_includes_default
8691 #include <openssl/ssl.h>
8693 rm -f conftest.$ac_objext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695 (eval $ac_compile) 2>&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -s conftest.$ac_objext'
8700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); }; }; then
8705 ac_header_compiler=yes
8707 echo "$as_me: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8709 ac_header_compiler=no
8711 rm -f conftest.$ac_objext conftest.$ac_ext
8712 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8713 echo "${ECHO_T}$ac_header_compiler" >&6
8715 # Is the header present?
8716 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8717 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8718 cat >conftest.$ac_ext <<_ACEOF
8719 #line $LINENO "configure"
8720 #include "confdefs.h"
8721 #include <openssl/ssl.h>
8723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8726 egrep -v '^ *\+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } >/dev/null; then
8731 if test -s conftest.err; then
8732 ac_cpp_err=$ac_c_preproc_warn_flag
8739 if test -z "$ac_cpp_err"; then
8740 ac_header_preproc=yes
8742 echo "$as_me: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8744 ac_header_preproc=no
8746 rm -f conftest.err conftest.$ac_ext
8747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748 echo "${ECHO_T}$ac_header_preproc" >&6
8750 # So? What about this header?
8751 case $ac_header_compiler:$ac_header_preproc in
8753 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8754 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8756 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8758 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8759 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8761 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8763 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8765 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8766 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8767 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8772 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8773 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8776 if test $ac_cv_header_openssl_ssl_h = yes; then
8779 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8780 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8781 { (exit 1); exit 1; }; }
8785 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8786 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8787 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8788 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8792 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8794 # Is the header compilable?
8795 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8796 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 #line $LINENO "configure"
8799 #include "confdefs.h"
8800 $ac_includes_default
8801 #include <openssl/err.h>
8803 rm -f conftest.$ac_objext
8804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8805 (eval $ac_compile) 2>&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } &&
8809 { ac_try='test -s conftest.$ac_objext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_header_compiler=yes
8817 echo "$as_me: failed program was:" >&5
8818 cat conftest.$ac_ext >&5
8819 ac_header_compiler=no
8821 rm -f conftest.$ac_objext conftest.$ac_ext
8822 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8823 echo "${ECHO_T}$ac_header_compiler" >&6
8825 # Is the header present?
8826 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8827 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8828 cat >conftest.$ac_ext <<_ACEOF
8829 #line $LINENO "configure"
8830 #include "confdefs.h"
8831 #include <openssl/err.h>
8833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8836 egrep -v '^ *\+' conftest.er1 >conftest.err
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } >/dev/null; then
8841 if test -s conftest.err; then
8842 ac_cpp_err=$ac_c_preproc_warn_flag
8849 if test -z "$ac_cpp_err"; then
8850 ac_header_preproc=yes
8852 echo "$as_me: failed program was:" >&5
8853 cat conftest.$ac_ext >&5
8854 ac_header_preproc=no
8856 rm -f conftest.err conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8858 echo "${ECHO_T}$ac_header_preproc" >&6
8860 # So? What about this header?
8861 case $ac_header_compiler:$ac_header_preproc in
8863 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8864 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8865 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8866 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8868 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8869 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8871 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8873 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8875 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8876 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8877 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 ac_cv_header_openssl_err_h=$ac_header_preproc
8882 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8883 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8886 if test $ac_cv_header_openssl_err_h = yes; then
8889 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8890 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8891 { (exit 1); exit 1; }; }
8897 if test "$with_pam" = yes ; then
8899 for ac_header in security/pam_appl.h
8901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8903 echo "$as_me:$LINENO: checking for $ac_header" >&5
8904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8911 # Is the header compilable?
8912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8914 cat >conftest.$ac_ext <<_ACEOF
8915 #line $LINENO "configure"
8916 #include "confdefs.h"
8917 $ac_includes_default
8918 #include <$ac_header>
8920 rm -f conftest.$ac_objext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8922 (eval $ac_compile) 2>&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -s conftest.$ac_objext'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8932 ac_header_compiler=yes
8934 echo "$as_me: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8936 ac_header_compiler=no
8938 rm -f conftest.$ac_objext conftest.$ac_ext
8939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8940 echo "${ECHO_T}$ac_header_compiler" >&6
8942 # Is the header present?
8943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8945 cat >conftest.$ac_ext <<_ACEOF
8946 #line $LINENO "configure"
8947 #include "confdefs.h"
8948 #include <$ac_header>
8950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8953 egrep -v '^ *\+' conftest.er1 >conftest.err
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } >/dev/null; then
8958 if test -s conftest.err; then
8959 ac_cpp_err=$ac_c_preproc_warn_flag
8966 if test -z "$ac_cpp_err"; then
8967 ac_header_preproc=yes
8969 echo "$as_me: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8971 ac_header_preproc=no
8973 rm -f conftest.err conftest.$ac_ext
8974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8975 echo "${ECHO_T}$ac_header_preproc" >&6
8977 # So? What about this header?
8978 case $ac_header_compiler:$ac_header_preproc in
8980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8992 echo "$as_me:$LINENO: checking for $ac_header" >&5
8993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 eval "$as_ac_Header=$ac_header_preproc"
8999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9004 cat >>confdefs.h <<_ACEOF
9005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9010 for ac_header in pam/pam_appl.h
9012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9014 echo "$as_me:$LINENO: checking for $ac_header" >&5
9015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9022 # Is the header compilable?
9023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9025 cat >conftest.$ac_ext <<_ACEOF
9026 #line $LINENO "configure"
9027 #include "confdefs.h"
9028 $ac_includes_default
9029 #include <$ac_header>
9031 rm -f conftest.$ac_objext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9033 (eval $ac_compile) 2>&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try='test -s conftest.$ac_objext'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 ac_header_compiler=yes
9045 echo "$as_me: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9047 ac_header_compiler=no
9049 rm -f conftest.$ac_objext conftest.$ac_ext
9050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9051 echo "${ECHO_T}$ac_header_compiler" >&6
9053 # Is the header present?
9054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9056 cat >conftest.$ac_ext <<_ACEOF
9057 #line $LINENO "configure"
9058 #include "confdefs.h"
9059 #include <$ac_header>
9061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9064 egrep -v '^ *\+' conftest.er1 >conftest.err
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } >/dev/null; then
9069 if test -s conftest.err; then
9070 ac_cpp_err=$ac_c_preproc_warn_flag
9077 if test -z "$ac_cpp_err"; then
9078 ac_header_preproc=yes
9080 echo "$as_me: failed program was:" >&5
9081 cat conftest.$ac_ext >&5
9082 ac_header_preproc=no
9084 rm -f conftest.err conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9086 echo "${ECHO_T}$ac_header_preproc" >&6
9088 # So? What about this header?
9089 case $ac_header_compiler:$ac_header_preproc in
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9103 echo "$as_me:$LINENO: checking for $ac_header" >&5
9104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 eval "$as_ac_Header=$ac_header_preproc"
9110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9115 cat >>confdefs.h <<_ACEOF
9116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9120 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9121 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9122 { (exit 1); exit 1; }; }
9133 if test "$with_rendezvous" = yes ; then
9134 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9135 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9136 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9137 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9141 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9143 # Is the header compilable?
9144 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9145 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9146 cat >conftest.$ac_ext <<_ACEOF
9147 #line $LINENO "configure"
9148 #include "confdefs.h"
9149 $ac_includes_default
9150 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9152 rm -f conftest.$ac_objext
9153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9154 (eval $ac_compile) 2>&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } &&
9158 { ac_try='test -s conftest.$ac_objext'
9159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); }; }; then
9164 ac_header_compiler=yes
9166 echo "$as_me: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9168 ac_header_compiler=no
9170 rm -f conftest.$ac_objext conftest.$ac_ext
9171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9172 echo "${ECHO_T}$ac_header_compiler" >&6
9174 # Is the header present?
9175 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9176 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9177 cat >conftest.$ac_ext <<_ACEOF
9178 #line $LINENO "configure"
9179 #include "confdefs.h"
9180 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9185 egrep -v '^ *\+' conftest.er1 >conftest.err
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } >/dev/null; then
9190 if test -s conftest.err; then
9191 ac_cpp_err=$ac_c_preproc_warn_flag
9198 if test -z "$ac_cpp_err"; then
9199 ac_header_preproc=yes
9201 echo "$as_me: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9203 ac_header_preproc=no
9205 rm -f conftest.err conftest.$ac_ext
9206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9207 echo "${ECHO_T}$ac_header_preproc" >&6
9209 # So? What about this header?
9210 case $ac_header_compiler:$ac_header_preproc in
9212 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9213 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9215 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9217 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9218 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9220 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9221 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9222 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9224 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9225 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9226 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9231 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9232 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9235 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9238 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9239 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9240 { (exit 1); exit 1; }; }
9248 ## Types, structures, compiler characteristics
9252 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9253 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9254 if test "${ac_cv_c_const+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9257 cat >conftest.$ac_ext <<_ACEOF
9258 #line $LINENO "configure"
9259 #include "confdefs.h"
9261 #ifdef F77_DUMMY_MAIN
9265 int F77_DUMMY_MAIN() { return 1; }
9270 /* FIXME: Include the comments suggested by Paul. */
9272 /* Ultrix mips cc rejects this. */
9273 typedef int charset[2];
9275 /* SunOS 4.1.1 cc rejects this. */
9276 char const *const *ccp;
9278 /* NEC SVR4.0.2 mips cc rejects this. */
9279 struct point {int x, y;};
9280 static struct point const zero = {0,0};
9281 /* AIX XL C 1.02.0.0 rejects this.
9282 It does not let you subtract one const X* pointer from another in
9283 an arm of an if-expression whose if-part is not a constant
9285 const char *g = "string";
9286 ccp = &g + (g ? g-g : 0);
9287 /* HPUX 7.0 cc rejects these. */
9290 ccp = (char const *const *) p;
9291 { /* SCO 3.2v4 cc rejects this. */
9293 char const *s = 0 ? (char *) 0 : (char const *) 0;
9297 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9299 const int *foo = &x[0];
9302 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9303 typedef const int *iptr;
9307 { /* AIX XL C 1.02.0.0 rejects this saying
9308 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9309 struct s { int j; const int *ap[3]; };
9310 struct s *b; b->j = 5;
9312 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9321 rm -f conftest.$ac_objext
9322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9323 (eval $ac_compile) 2>&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try='test -s conftest.$ac_objext'
9328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); }; }; then
9335 echo "$as_me: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9339 rm -f conftest.$ac_objext conftest.$ac_ext
9341 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9342 echo "${ECHO_T}$ac_cv_c_const" >&6
9343 if test $ac_cv_c_const = no; then
9345 cat >>confdefs.h <<\_ACEOF
9351 echo "$as_me:$LINENO: checking for inline" >&5
9352 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9353 if test "${ac_cv_c_inline+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 for ac_kw in inline __inline__ __inline; do
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9360 #include "confdefs.h"
9362 static $ac_kw int static_foo () {return 0; }
9363 $ac_kw int foo () {return 0; }
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369 (eval $ac_compile) 2>&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } &&
9373 { ac_try='test -s conftest.$ac_objext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 ac_cv_c_inline=$ac_kw; break
9381 echo "$as_me: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9384 rm -f conftest.$ac_objext conftest.$ac_ext
9388 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9389 echo "${ECHO_T}$ac_cv_c_inline" >&6
9390 case $ac_cv_c_inline in
9393 cat >>confdefs.h <<\_ACEOF
9397 *) cat >>confdefs.h <<_ACEOF
9398 #define inline $ac_cv_c_inline
9403 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9404 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9405 if test "${ac_cv_c_stringize+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"
9413 char *s = x(teststring);
9415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9416 egrep "#teststring" >/dev/null 2>&1; then
9417 ac_cv_c_stringize=no
9419 ac_cv_c_stringize=yes
9424 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9425 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9426 if test $ac_cv_c_stringize = yes; then
9428 cat >>confdefs.h <<\_ACEOF
9429 #define HAVE_STRINGIZE 1
9434 echo "$as_me:$LINENO: checking for signed types" >&5
9435 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9436 if test "${pgac_cv_c_signed+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 cat >conftest.$ac_ext <<_ACEOF
9440 #line $LINENO "configure"
9441 #include "confdefs.h"
9443 #ifdef F77_DUMMY_MAIN
9447 int F77_DUMMY_MAIN() { return 1; }
9452 signed char c; signed short s; signed int i;
9457 rm -f conftest.$ac_objext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9459 (eval $ac_compile) 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
9463 { ac_try='test -s conftest.$ac_objext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 pgac_cv_c_signed=yes
9471 echo "$as_me: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9475 rm -f conftest.$ac_objext conftest.$ac_ext
9477 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9478 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9479 if test x"$pgac_cv_c_signed" = xno ; then
9481 cat >>confdefs.h <<\_ACEOF
9486 echo "$as_me:$LINENO: checking for working volatile" >&5
9487 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9488 if test "${ac_cv_c_volatile+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 cat >conftest.$ac_ext <<_ACEOF
9492 #line $LINENO "configure"
9493 #include "confdefs.h"
9495 #ifdef F77_DUMMY_MAIN
9499 int F77_DUMMY_MAIN() { return 1; }
9511 rm -f conftest.$ac_objext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513 (eval $ac_compile) 2>&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -s conftest.$ac_objext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_cv_c_volatile=yes
9525 echo "$as_me: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9529 rm -f conftest.$ac_objext conftest.$ac_ext
9531 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9532 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9533 if test $ac_cv_c_volatile = no; then
9535 cat >>confdefs.h <<\_ACEOF
9541 echo "$as_me:$LINENO: checking for __func__" >&5
9542 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9543 if test "${pgac_cv_funcname_func_support+set}" = set; then
9544 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 cat >conftest.$ac_ext <<_ACEOF
9547 #line $LINENO "configure"
9548 #include "confdefs.h"
9550 #ifdef F77_DUMMY_MAIN
9554 int F77_DUMMY_MAIN() { return 1; }
9559 printf("%s\n", __func__);
9564 rm -f conftest.$ac_objext
9565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9566 (eval $ac_compile) 2>&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } &&
9570 { ac_try='test -s conftest.$ac_objext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 pgac_cv_funcname_func_support=yes
9578 echo "$as_me: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9580 pgac_cv_funcname_func_support=no
9582 rm -f conftest.$ac_objext conftest.$ac_ext
9584 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9585 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9586 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9588 cat >>confdefs.h <<\_ACEOF
9589 #define HAVE_FUNCNAME__FUNC 1
9593 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9594 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9595 if test "${pgac_cv_funcname_function_support+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9600 #include "confdefs.h"
9602 #ifdef F77_DUMMY_MAIN
9606 int F77_DUMMY_MAIN() { return 1; }
9611 printf("%s\n", __FUNCTION__);
9616 rm -f conftest.$ac_objext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9618 (eval $ac_compile) 2>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
9622 { ac_try='test -s conftest.$ac_objext'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; }; then
9628 pgac_cv_funcname_function_support=yes
9630 echo "$as_me: failed program was:" >&5
9631 cat conftest.$ac_ext >&5
9632 pgac_cv_funcname_function_support=no
9634 rm -f conftest.$ac_objext conftest.$ac_ext
9636 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9637 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9638 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9640 cat >>confdefs.h <<\_ACEOF
9641 #define HAVE_FUNCNAME__FUNCTION 1
9646 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9647 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9648 if test "${ac_cv_struct_tm+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 cat >conftest.$ac_ext <<_ACEOF
9652 #line $LINENO "configure"
9653 #include "confdefs.h"
9654 #include <sys/types.h>
9657 #ifdef F77_DUMMY_MAIN
9661 int F77_DUMMY_MAIN() { return 1; }
9666 struct tm *tp; tp->tm_sec;
9671 rm -f conftest.$ac_objext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9673 (eval $ac_compile) 2>&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -s conftest.$ac_objext'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; }; then
9683 ac_cv_struct_tm=time.h
9685 echo "$as_me: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9687 ac_cv_struct_tm=sys/time.h
9689 rm -f conftest.$ac_objext conftest.$ac_ext
9691 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9692 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9693 if test $ac_cv_struct_tm = sys/time.h; then
9695 cat >>confdefs.h <<\_ACEOF
9696 #define TM_IN_SYS_TIME 1
9701 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9702 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9703 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 cat >conftest.$ac_ext <<_ACEOF
9707 #line $LINENO "configure"
9708 #include "confdefs.h"
9709 #include <sys/types.h>
9710 #include <$ac_cv_struct_tm>
9713 #ifdef F77_DUMMY_MAIN
9717 int F77_DUMMY_MAIN() { return 1; }
9722 static struct tm ac_aggr;
9723 if (ac_aggr.tm_zone)
9729 rm -f conftest.$ac_objext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9731 (eval $ac_compile) 2>&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -s conftest.$ac_objext'
9736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_cv_member_struct_tm_tm_zone=yes
9743 echo "$as_me: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 ac_cv_member_struct_tm_tm_zone=no
9747 rm -f conftest.$ac_objext conftest.$ac_ext
9749 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9750 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9751 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9753 cat >>confdefs.h <<_ACEOF
9754 #define HAVE_STRUCT_TM_TM_ZONE 1
9760 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9762 cat >>confdefs.h <<\_ACEOF
9763 #define HAVE_TM_ZONE 1
9767 echo "$as_me:$LINENO: checking for tzname" >&5
9768 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9769 if test "${ac_cv_var_tzname+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 cat >conftest.$ac_ext <<_ACEOF
9773 #line $LINENO "configure"
9774 #include "confdefs.h"
9776 #ifndef tzname /* For SGI. */
9777 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9780 #ifdef F77_DUMMY_MAIN
9784 int F77_DUMMY_MAIN() { return 1; }
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9796 (eval $ac_link) 2>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_var_tzname=yes
9808 echo "$as_me: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9814 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9815 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9816 if test $ac_cv_var_tzname = yes; then
9818 cat >>confdefs.h <<\_ACEOF
9819 #define HAVE_TZNAME 1
9824 echo "$as_me:$LINENO: checking for union semun" >&5
9825 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9826 if test "${ac_cv_type_union_semun+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 cat >conftest.$ac_ext <<_ACEOF
9830 #line $LINENO "configure"
9831 #include "confdefs.h"
9832 #include <sys/types.h>
9833 #include <sys/ipc.h>
9834 #include <sys/sem.h>
9836 #ifdef F77_DUMMY_MAIN
9840 int F77_DUMMY_MAIN() { return 1; }
9845 if ((union semun *) 0)
9847 if (sizeof (union semun))
9853 rm -f conftest.$ac_objext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_type_union_semun=yes
9867 echo "$as_me: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 ac_cv_type_union_semun=no
9871 rm -f conftest.$ac_objext conftest.$ac_ext
9873 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9874 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9875 if test $ac_cv_type_union_semun = yes; then
9877 cat >>confdefs.h <<_ACEOF
9878 #define HAVE_UNION_SEMUN 1
9884 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9885 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9886 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9890 #line $LINENO "configure"
9891 #include "confdefs.h"
9892 #include <sys/types.h>
9893 #ifdef HAVE_SYS_UN_H
9898 #ifdef F77_DUMMY_MAIN
9902 int F77_DUMMY_MAIN() { return 1; }
9907 if ((struct sockaddr_un *) 0)
9909 if (sizeof (struct sockaddr_un))
9915 rm -f conftest.$ac_objext
9916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try='test -s conftest.$ac_objext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_type_struct_sockaddr_un=yes
9929 echo "$as_me: failed program was:" >&5
9930 cat conftest.$ac_ext >&5
9931 ac_cv_type_struct_sockaddr_un=no
9933 rm -f conftest.$ac_objext conftest.$ac_ext
9935 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9936 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9937 if test $ac_cv_type_struct_sockaddr_un = yes; then
9939 cat >>confdefs.h <<_ACEOF
9940 #define HAVE_STRUCT_SOCKADDR_UN 1
9944 cat >>confdefs.h <<\_ACEOF
9945 #define HAVE_UNIX_SOCKETS 1
9950 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9951 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9952 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 cat >conftest.$ac_ext <<_ACEOF
9956 #line $LINENO "configure"
9957 #include "confdefs.h"
9958 #include <sys/types.h>
9959 #ifdef HAVE_SYS_SOCKET_H
9960 #include <sys/socket.h>
9964 #ifdef F77_DUMMY_MAIN
9968 int F77_DUMMY_MAIN() { return 1; }
9973 if ((struct sockaddr_storage *) 0)
9975 if (sizeof (struct sockaddr_storage))
9981 rm -f conftest.$ac_objext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9983 (eval $ac_compile) 2>&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -s conftest.$ac_objext'
9988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); }; }; then
9993 ac_cv_type_struct_sockaddr_storage=yes
9995 echo "$as_me: failed program was:" >&5
9996 cat conftest.$ac_ext >&5
9997 ac_cv_type_struct_sockaddr_storage=no
9999 rm -f conftest.$ac_objext conftest.$ac_ext
10001 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10002 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
10003 if test $ac_cv_type_struct_sockaddr_storage = yes; then
10005 cat >>confdefs.h <<_ACEOF
10006 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10012 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10013 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10014 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 cat >conftest.$ac_ext <<_ACEOF
10018 #line $LINENO "configure"
10019 #include "confdefs.h"
10020 #include <sys/types.h>
10021 #include <sys/socket.h>
10025 #ifdef F77_DUMMY_MAIN
10026 # ifdef __cplusplus
10029 int F77_DUMMY_MAIN() { return 1; }
10034 if ((struct addrinfo *) 0)
10036 if (sizeof (struct addrinfo))
10042 rm -f conftest.$ac_objext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10044 (eval $ac_compile) 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -s conftest.$ac_objext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_type_struct_addrinfo=yes
10056 echo "$as_me: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10058 ac_cv_type_struct_addrinfo=no
10060 rm -f conftest.$ac_objext conftest.$ac_ext
10062 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10063 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10064 if test $ac_cv_type_struct_addrinfo = yes; then
10066 cat >>confdefs.h <<_ACEOF
10067 #define HAVE_STRUCT_ADDRINFO 1
10074 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10075 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10076 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
10079 cat >conftest.$ac_ext <<_ACEOF
10080 #line $LINENO "configure"
10081 #include "confdefs.h"
10082 #include <sys/param.h>
10083 #include <sys/types.h>
10084 #include <sys/socket.h>
10085 #include <sys/ucred.h>
10087 #ifdef F77_DUMMY_MAIN
10088 # ifdef __cplusplus
10091 int F77_DUMMY_MAIN() { return 1; }
10096 if ((struct cmsgcred *) 0)
10098 if (sizeof (struct cmsgcred))
10104 rm -f conftest.$ac_objext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106 (eval $ac_compile) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -s conftest.$ac_objext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10116 ac_cv_type_struct_cmsgcred=yes
10118 echo "$as_me: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10120 ac_cv_type_struct_cmsgcred=no
10122 rm -f conftest.$ac_objext conftest.$ac_ext
10124 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10125 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10126 if test $ac_cv_type_struct_cmsgcred = yes; then
10128 cat >>confdefs.h <<_ACEOF
10129 #define HAVE_STRUCT_CMSGCRED 1
10134 echo "$as_me:$LINENO: checking for struct fcred" >&5
10135 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10136 if test "${ac_cv_type_struct_fcred+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10139 cat >conftest.$ac_ext <<_ACEOF
10140 #line $LINENO "configure"
10141 #include "confdefs.h"
10142 #include <sys/param.h>
10143 #include <sys/types.h>
10144 #include <sys/socket.h>
10145 #include <sys/ucred.h>
10147 #ifdef F77_DUMMY_MAIN
10148 # ifdef __cplusplus
10151 int F77_DUMMY_MAIN() { return 1; }
10156 if ((struct fcred *) 0)
10158 if (sizeof (struct fcred))
10164 rm -f conftest.$ac_objext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
10170 { ac_try='test -s conftest.$ac_objext'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 ac_cv_type_struct_fcred=yes
10178 echo "$as_me: failed program was:" >&5
10179 cat conftest.$ac_ext >&5
10180 ac_cv_type_struct_fcred=no
10182 rm -f conftest.$ac_objext conftest.$ac_ext
10184 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10185 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10186 if test $ac_cv_type_struct_fcred = yes; then
10188 cat >>confdefs.h <<_ACEOF
10189 #define HAVE_STRUCT_FCRED 1
10194 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10195 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10196 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 cat >conftest.$ac_ext <<_ACEOF
10200 #line $LINENO "configure"
10201 #include "confdefs.h"
10202 #include <sys/param.h>
10203 #include <sys/types.h>
10204 #include <sys/socket.h>
10205 #include <sys/ucred.h>
10207 #ifdef F77_DUMMY_MAIN
10208 # ifdef __cplusplus
10211 int F77_DUMMY_MAIN() { return 1; }
10216 if ((struct sockcred *) 0)
10218 if (sizeof (struct sockcred))
10224 rm -f conftest.$ac_objext
10225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10226 (eval $ac_compile) 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } &&
10230 { ac_try='test -s conftest.$ac_objext'
10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232 (eval $ac_try) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; }; then
10236 ac_cv_type_struct_sockcred=yes
10238 echo "$as_me: failed program was:" >&5
10239 cat conftest.$ac_ext >&5
10240 ac_cv_type_struct_sockcred=no
10242 rm -f conftest.$ac_objext conftest.$ac_ext
10244 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10245 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10246 if test $ac_cv_type_struct_sockcred = yes; then
10248 cat >>confdefs.h <<_ACEOF
10249 #define HAVE_STRUCT_SOCKCRED 1
10256 if test "$with_zlib" = yes; then
10257 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10258 # did not). While we could work around the lack of z_streamp, it
10259 # seems unwise to encourage people to use such old zlib versions...
10260 echo "$as_me:$LINENO: checking for z_streamp" >&5
10261 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10262 if test "${ac_cv_type_z_streamp+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 cat >conftest.$ac_ext <<_ACEOF
10266 #line $LINENO "configure"
10267 #include "confdefs.h"
10270 #ifdef F77_DUMMY_MAIN
10271 # ifdef __cplusplus
10274 int F77_DUMMY_MAIN() { return 1; }
10279 if ((z_streamp *) 0)
10281 if (sizeof (z_streamp))
10287 rm -f conftest.$ac_objext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289 (eval $ac_compile) 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
10293 { ac_try='test -s conftest.$ac_objext'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
10299 ac_cv_type_z_streamp=yes
10301 echo "$as_me: failed program was:" >&5
10302 cat conftest.$ac_ext >&5
10303 ac_cv_type_z_streamp=no
10305 rm -f conftest.$ac_objext conftest.$ac_ext
10307 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10308 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10309 if test $ac_cv_type_z_streamp = yes; then
10312 { { echo "$as_me:$LINENO: error: zlib version is too old
10313 Use --without-zlib to disable zlib support." >&5
10314 echo "$as_me: error: zlib version is too old
10315 Use --without-zlib to disable zlib support." >&2;}
10316 { (exit 1); exit 1; }; }
10321 if test "$with_krb5" = yes; then
10322 # Check for differences between MIT and Heimdal (KTH) releases
10323 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10324 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10325 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 cat >conftest.$ac_ext <<_ACEOF
10329 #line $LINENO "configure"
10330 #include "confdefs.h"
10333 #ifdef F77_DUMMY_MAIN
10334 # ifdef __cplusplus
10337 int F77_DUMMY_MAIN() { return 1; }
10342 static krb5_ticket ac_aggr;
10343 if (ac_aggr.enc_part2)
10349 rm -f conftest.$ac_objext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10351 (eval $ac_compile) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } &&
10355 { ac_try='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 ac_cv_member_krb5_ticket_enc_part2=yes
10363 echo "$as_me: failed program was:" >&5
10364 cat conftest.$ac_ext >&5
10365 ac_cv_member_krb5_ticket_enc_part2=no
10367 rm -f conftest.$ac_objext conftest.$ac_ext
10369 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10370 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10371 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10373 cat >>confdefs.h <<_ACEOF
10374 #define HAVE_KRB5_TICKET_ENC_PART2 1
10379 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10380 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10381 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 cat >conftest.$ac_ext <<_ACEOF
10385 #line $LINENO "configure"
10386 #include "confdefs.h"
10389 #ifdef F77_DUMMY_MAIN
10390 # ifdef __cplusplus
10393 int F77_DUMMY_MAIN() { return 1; }
10398 static krb5_ticket ac_aggr;
10399 if (ac_aggr.client)
10405 rm -f conftest.$ac_objext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10407 (eval $ac_compile) 2>&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } &&
10411 { ac_try='test -s conftest.$ac_objext'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; }; then
10417 ac_cv_member_krb5_ticket_client=yes
10419 echo "$as_me: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10421 ac_cv_member_krb5_ticket_client=no
10423 rm -f conftest.$ac_objext conftest.$ac_ext
10425 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10426 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10427 if test $ac_cv_member_krb5_ticket_client = yes; then
10429 cat >>confdefs.h <<_ACEOF
10430 #define HAVE_KRB5_TICKET_CLIENT 1
10435 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10436 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10437 { (exit 1); exit 1; }; }
10442 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10443 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10444 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 cat >conftest.$ac_ext <<_ACEOF
10448 #line $LINENO "configure"
10449 #include "confdefs.h"
10452 #ifdef F77_DUMMY_MAIN
10453 # ifdef __cplusplus
10456 int F77_DUMMY_MAIN() { return 1; }
10461 static krb5_error ac_aggr;
10462 if (ac_aggr.text.data)
10468 rm -f conftest.$ac_objext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10470 (eval $ac_compile) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } &&
10474 { ac_try='test -s conftest.$ac_objext'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; }; then
10480 ac_cv_member_krb5_error_text_data=yes
10482 echo "$as_me: failed program was:" >&5
10483 cat conftest.$ac_ext >&5
10484 ac_cv_member_krb5_error_text_data=no
10486 rm -f conftest.$ac_objext conftest.$ac_ext
10488 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10489 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10490 if test $ac_cv_member_krb5_error_text_data = yes; then
10492 cat >>confdefs.h <<_ACEOF
10493 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10498 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10499 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10500 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 cat >conftest.$ac_ext <<_ACEOF
10504 #line $LINENO "configure"
10505 #include "confdefs.h"
10508 #ifdef F77_DUMMY_MAIN
10509 # ifdef __cplusplus
10512 int F77_DUMMY_MAIN() { return 1; }
10517 static krb5_error ac_aggr;
10518 if (ac_aggr.e_data)
10524 rm -f conftest.$ac_objext
10525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } &&
10530 { ac_try='test -s conftest.$ac_objext'
10531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532 (eval $ac_try) 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }; then
10536 ac_cv_member_krb5_error_e_data=yes
10538 echo "$as_me: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10540 ac_cv_member_krb5_error_e_data=no
10542 rm -f conftest.$ac_objext conftest.$ac_ext
10544 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10545 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10546 if test $ac_cv_member_krb5_error_e_data = yes; then
10548 cat >>confdefs.h <<_ACEOF
10549 #define HAVE_KRB5_ERROR_E_DATA 1
10554 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10555 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10556 { (exit 1); exit 1; }; }
10565 ## Functions, global variables
10568 echo "$as_me:$LINENO: checking for int timezone" >&5
10569 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10570 if test "${pgac_cv_var_int_timezone+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 cat >conftest.$ac_ext <<_ACEOF
10574 #line $LINENO "configure"
10575 #include "confdefs.h"
10578 #ifdef F77_DUMMY_MAIN
10579 # ifdef __cplusplus
10582 int F77_DUMMY_MAIN() { return 1; }
10587 res = timezone / 60;
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10594 (eval $ac_link) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -s conftest$ac_exeext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 pgac_cv_var_int_timezone=yes
10606 echo "$as_me: failed program was:" >&5
10607 cat conftest.$ac_ext >&5
10608 pgac_cv_var_int_timezone=no
10610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10612 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10613 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10614 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10616 cat >>confdefs.h <<\_ACEOF
10617 #define HAVE_INT_TIMEZONE
10621 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10622 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10623 if test "${ac_cv_func_accept_arg1+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 if test "${ac_cv_func_accept_arg2+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 if test "${ac_cv_func_accept_arg3+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10633 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10634 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10635 cat >conftest.$ac_ext <<_ACEOF
10636 #line $LINENO "configure"
10637 #include "confdefs.h"
10638 #ifdef HAVE_SYS_TYPES_H
10639 #include <sys/types.h>
10641 #ifdef HAVE_SYS_SOCKET_H
10642 #include <sys/socket.h>
10644 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10645 #ifdef F77_DUMMY_MAIN
10646 # ifdef __cplusplus
10649 int F77_DUMMY_MAIN() { return 1; }
10659 rm -f conftest.$ac_objext
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } &&
10665 { ac_try='test -s conftest.$ac_objext'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 ac_not_found=no; break 3
10673 echo "$as_me: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10677 rm -f conftest.$ac_objext conftest.$ac_ext
10681 if test "$ac_not_found" = yes; then
10682 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10683 echo "$as_me: error: could not determine argument types" >&2;}
10684 { (exit 1); exit 1; }; }
10686 if test "$ac_cv_func_accept_arg3" = "void"; then
10687 ac_cv_func_accept_arg3=int
10695 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10696 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10698 cat >>confdefs.h <<_ACEOF
10699 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10703 cat >>confdefs.h <<_ACEOF
10704 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10708 cat >>confdefs.h <<_ACEOF
10709 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10713 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10714 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10715 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 cat >conftest.$ac_ext <<_ACEOF
10719 #line $LINENO "configure"
10720 #include "confdefs.h"
10721 #include <sys/time.h>
10722 #ifdef F77_DUMMY_MAIN
10723 # ifdef __cplusplus
10726 int F77_DUMMY_MAIN() { return 1; }
10731 struct timeval *tp;
10732 struct timezone *tzp;
10733 gettimeofday(tp,tzp);
10738 rm -f conftest.$ac_objext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740 (eval $ac_compile) 2>&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -s conftest.$ac_objext'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 pgac_cv_func_gettimeofday_1arg=no
10752 echo "$as_me: failed program was:" >&5
10753 cat conftest.$ac_ext >&5
10754 pgac_cv_func_gettimeofday_1arg=yes
10756 rm -f conftest.$ac_objext conftest.$ac_ext
10758 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10759 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10760 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10762 cat >>confdefs.h <<\_ACEOF
10763 #define GETTIMEOFDAY_1ARG
10770 # SunOS doesn't handle negative byte comparisons properly with +/- return
10771 echo "$as_me:$LINENO: checking for working memcmp" >&5
10772 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10773 if test "${ac_cv_func_memcmp_working+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 if test "$cross_compiling" = yes; then
10777 ac_cv_func_memcmp_working=no
10779 cat >conftest.$ac_ext <<_ACEOF
10780 #line $LINENO "configure"
10781 #include "confdefs.h"
10783 #ifdef F77_DUMMY_MAIN
10784 # ifdef __cplusplus
10787 int F77_DUMMY_MAIN() { return 1; }
10793 /* Some versions of memcmp are not 8-bit clean. */
10794 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10795 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10798 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10799 or more and with at least one buffer not starting on a 4-byte boundary.
10800 William Lewis provided this test program. */
10805 for (i = 0; i < 4; i++)
10809 strcpy (a, "--------01111111");
10810 strcpy (b, "--------10000000");
10811 if (memcmp (a, b, 16) >= 0)
10821 rm -f conftest$ac_exeext
10822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10823 (eval $ac_link) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
10832 ac_cv_func_memcmp_working=yes
10834 echo "$as_me: program exited with status $ac_status" >&5
10835 echo "$as_me: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10837 ( exit $ac_status )
10838 ac_cv_func_memcmp_working=no
10840 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10843 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10844 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10845 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10864 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10867 echo "$as_me:$LINENO: checking for $ac_func" >&5
10868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10869 if eval "test \"\${$as_ac_var+set}\" = set"; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 cat >conftest.$ac_ext <<_ACEOF
10873 #line $LINENO "configure"
10874 #include "confdefs.h"
10875 /* System header to define __stub macros and hopefully few prototypes,
10876 which can conflict with char $ac_func (); below. */
10877 #include <assert.h>
10878 /* Override any gcc2 internal prototype to avoid an error. */
10882 /* We use char because int might match the return type of a gcc2
10883 builtin and then its argument prototype would still apply. */
10887 #ifdef F77_DUMMY_MAIN
10888 # ifdef __cplusplus
10891 int F77_DUMMY_MAIN() { return 1; }
10896 /* The GNU C library defines this for functions which it implements
10897 to always fail with ENOSYS. Some functions are actually named
10898 something starting with __ and the normal name is an alias. */
10899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10909 rm -f conftest.$ac_objext conftest$ac_exeext
10910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10911 (eval $ac_link) 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); } &&
10915 { ac_try='test -s conftest$ac_exeext'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 eval "$as_ac_var=yes"
10923 echo "$as_me: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10925 eval "$as_ac_var=no"
10927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10931 if test `eval echo '${'$as_ac_var'}'` = yes; then
10932 cat >>confdefs.h <<_ACEOF
10933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10940 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10941 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10942 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10945 cat >conftest.$ac_ext <<_ACEOF
10946 #line $LINENO "configure"
10947 #include "confdefs.h"
10948 #include <unistd.h>
10950 #ifdef F77_DUMMY_MAIN
10951 # ifdef __cplusplus
10954 int F77_DUMMY_MAIN() { return 1; }
10960 char *p = (char *) fdatasync;
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969 (eval $ac_compile) 2>&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -s conftest.$ac_objext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_have_decl_fdatasync=yes
10981 echo "$as_me: failed program was:" >&5
10982 cat conftest.$ac_ext >&5
10983 ac_cv_have_decl_fdatasync=no
10985 rm -f conftest.$ac_objext conftest.$ac_ext
10987 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10988 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10989 if test $ac_cv_have_decl_fdatasync = yes; then
10991 cat >>confdefs.h <<_ACEOF
10992 #define HAVE_DECL_FDATASYNC 1
10997 cat >>confdefs.h <<_ACEOF
10998 #define HAVE_DECL_FDATASYNC 0
11006 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11007 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11008 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11011 cat >conftest.$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11013 #include "confdefs.h"
11014 $ac_includes_default
11015 #include <netinet/in.h>
11017 #ifdef F77_DUMMY_MAIN
11018 # ifdef __cplusplus
11021 int F77_DUMMY_MAIN() { return 1; }
11026 if ((struct sockaddr_in6 *) 0)
11028 if (sizeof (struct sockaddr_in6))
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036 (eval $ac_compile) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -s conftest.$ac_objext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 ac_cv_type_struct_sockaddr_in6=yes
11048 echo "$as_me: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11050 ac_cv_type_struct_sockaddr_in6=no
11052 rm -f conftest.$ac_objext conftest.$ac_ext
11054 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11055 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11056 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11057 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11058 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11059 if test "${ac_cv_func_inet_ntop+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 cat >conftest.$ac_ext <<_ACEOF
11063 #line $LINENO "configure"
11064 #include "confdefs.h"
11065 /* System header to define __stub macros and hopefully few prototypes,
11066 which can conflict with char inet_ntop (); below. */
11067 #include <assert.h>
11068 /* Override any gcc2 internal prototype to avoid an error. */
11072 /* We use char because int might match the return type of a gcc2
11073 builtin and then its argument prototype would still apply. */
11077 #ifdef F77_DUMMY_MAIN
11078 # ifdef __cplusplus
11081 int F77_DUMMY_MAIN() { return 1; }
11086 /* The GNU C library defines this for functions which it implements
11087 to always fail with ENOSYS. Some functions are actually named
11088 something starting with __ and the normal name is an alias. */
11089 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11101 (eval $ac_link) 2>&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -s conftest$ac_exeext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_cv_func_inet_ntop=yes
11113 echo "$as_me: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11115 ac_cv_func_inet_ntop=no
11117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11119 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11120 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11121 if test $ac_cv_func_inet_ntop = yes; then
11123 cat >>confdefs.h <<\_ACEOF
11124 #define HAVE_IPV6 1
11132 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11133 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11134 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 cat >conftest.$ac_ext <<_ACEOF
11138 #line $LINENO "configure"
11139 #include "confdefs.h"
11140 #include <machine/vmparam.h>
11141 #include <sys/exec.h>
11143 #ifdef F77_DUMMY_MAIN
11144 # ifdef __cplusplus
11147 int F77_DUMMY_MAIN() { return 1; }
11152 PS_STRINGS->ps_nargvstr = 1;
11153 PS_STRINGS->ps_argvstr = "foo";
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try='test -s conftest$ac_exeext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 pgac_cv_var_PS_STRINGS=yes
11172 echo "$as_me: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11174 pgac_cv_var_PS_STRINGS=no
11176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11178 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11179 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11180 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11182 cat >>confdefs.h <<\_ACEOF
11183 #define HAVE_PS_STRINGS
11189 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11190 # is missing. Yes, there are machines that have only one. We may
11191 # also decide to use snprintf.c if snprintf() is present but does not
11192 # have working "long long int" support -- see below.
11194 pgac_need_repl_snprintf=no
11196 for ac_func in snprintf
11198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11199 echo "$as_me:$LINENO: checking for $ac_func" >&5
11200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11201 if eval "test \"\${$as_ac_var+set}\" = set"; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 cat >conftest.$ac_ext <<_ACEOF
11205 #line $LINENO "configure"
11206 #include "confdefs.h"
11207 /* System header to define __stub macros and hopefully few prototypes,
11208 which can conflict with char $ac_func (); below. */
11209 #include <assert.h>
11210 /* Override any gcc2 internal prototype to avoid an error. */
11214 /* We use char because int might match the return type of a gcc2
11215 builtin and then its argument prototype would still apply. */
11219 #ifdef F77_DUMMY_MAIN
11220 # ifdef __cplusplus
11223 int F77_DUMMY_MAIN() { return 1; }
11228 /* The GNU C library defines this for functions which it implements
11229 to always fail with ENOSYS. Some functions are actually named
11230 something starting with __ and the normal name is an alias. */
11231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243 (eval $ac_link) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -s conftest$ac_exeext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 eval "$as_ac_var=yes"
11255 echo "$as_me: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11257 eval "$as_ac_var=no"
11259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11263 if test `eval echo '${'$as_ac_var'}'` = yes; then
11264 cat >>confdefs.h <<_ACEOF
11265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11269 pgac_need_repl_snprintf=yes
11274 for ac_func in vsnprintf
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 pgac_need_repl_snprintf=yes
11353 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11354 # include/c.h will provide declarations. Note this is a separate test
11355 # from whether the functions exist in the C library --- there are
11356 # systems that have the functions but don't bother to declare them :-(
11358 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11359 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11360 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 cat >conftest.$ac_ext <<_ACEOF
11364 #line $LINENO "configure"
11365 #include "confdefs.h"
11366 $ac_includes_default
11367 #ifdef F77_DUMMY_MAIN
11368 # ifdef __cplusplus
11371 int F77_DUMMY_MAIN() { return 1; }
11377 char *p = (char *) snprintf;
11384 rm -f conftest.$ac_objext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386 (eval $ac_compile) 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_cv_have_decl_snprintf=yes
11398 echo "$as_me: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11400 ac_cv_have_decl_snprintf=no
11402 rm -f conftest.$ac_objext conftest.$ac_ext
11404 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11405 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11406 if test $ac_cv_have_decl_snprintf = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define HAVE_DECL_SNPRINTF 1
11414 cat >>confdefs.h <<_ACEOF
11415 #define HAVE_DECL_SNPRINTF 0
11420 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11421 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11422 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11426 #line $LINENO "configure"
11427 #include "confdefs.h"
11428 $ac_includes_default
11429 #ifdef F77_DUMMY_MAIN
11430 # ifdef __cplusplus
11433 int F77_DUMMY_MAIN() { return 1; }
11439 char *p = (char *) vsnprintf;
11446 rm -f conftest.$ac_objext
11447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11448 (eval $ac_compile) 2>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } &&
11452 { ac_try='test -s conftest.$ac_objext'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_cv_have_decl_vsnprintf=yes
11460 echo "$as_me: failed program was:" >&5
11461 cat conftest.$ac_ext >&5
11462 ac_cv_have_decl_vsnprintf=no
11464 rm -f conftest.$ac_objext conftest.$ac_ext
11466 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11467 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11468 if test $ac_cv_have_decl_vsnprintf = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define HAVE_DECL_VSNPRINTF 1
11476 cat >>confdefs.h <<_ACEOF
11477 #define HAVE_DECL_VSNPRINTF 0
11486 # do this one the hard way in case isinf() is a macro
11487 echo "$as_me:$LINENO: checking for isinf" >&5
11488 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11489 if test "${ac_cv_func_isinf+set}" = set; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 cat >conftest.$ac_ext <<_ACEOF
11493 #line $LINENO "configure"
11494 #include "confdefs.h"
11497 #ifdef F77_DUMMY_MAIN
11498 # ifdef __cplusplus
11501 int F77_DUMMY_MAIN() { return 1; }
11506 double x = 0.0; int res = isinf(x);
11511 rm -f conftest.$ac_objext conftest$ac_exeext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -s conftest$ac_exeext'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }; then
11523 ac_cv_func_isinf=yes
11525 echo "$as_me: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 ac_cv_func_isinf=no
11529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11531 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11532 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11534 if test $ac_cv_func_isinf = yes ; then
11536 cat >>confdefs.h <<\_ACEOF
11537 #define HAVE_ISINF 1
11541 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11542 # Look for a way to implement a substitute for isinf()
11547 for ac_func in fpclass fp_class fp_class_d class
11549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11550 echo "$as_me:$LINENO: checking for $ac_func" >&5
11551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11552 if eval "test \"\${$as_ac_var+set}\" = set"; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 cat >conftest.$ac_ext <<_ACEOF
11556 #line $LINENO "configure"
11557 #include "confdefs.h"
11558 /* System header to define __stub macros and hopefully few prototypes,
11559 which can conflict with char $ac_func (); below. */
11560 #include <assert.h>
11561 /* Override any gcc2 internal prototype to avoid an error. */
11565 /* We use char because int might match the return type of a gcc2
11566 builtin and then its argument prototype would still apply. */
11570 #ifdef F77_DUMMY_MAIN
11571 # ifdef __cplusplus
11574 int F77_DUMMY_MAIN() { return 1; }
11579 /* The GNU C library defines this for functions which it implements
11580 to always fail with ENOSYS. Some functions are actually named
11581 something starting with __ and the normal name is an alias. */
11582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594 (eval $ac_link) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -s conftest$ac_exeext'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 eval "$as_ac_var=yes"
11606 echo "$as_me: failed program was:" >&5
11607 cat conftest.$ac_ext >&5
11608 eval "$as_ac_var=no"
11610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11614 if test `eval echo '${'$as_ac_var'}'` = yes; then
11615 cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11638 for ac_func in crypt fseeko getopt getopt_long getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641 echo "$as_me:$LINENO: checking for $ac_func" >&5
11642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11643 if eval "test \"\${$as_ac_var+set}\" = set"; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 cat >conftest.$ac_ext <<_ACEOF
11647 #line $LINENO "configure"
11648 #include "confdefs.h"
11649 /* System header to define __stub macros and hopefully few prototypes,
11650 which can conflict with char $ac_func (); below. */
11651 #include <assert.h>
11652 /* Override any gcc2 internal prototype to avoid an error. */
11656 /* We use char because int might match the return type of a gcc2
11657 builtin and then its argument prototype would still apply. */
11661 #ifdef F77_DUMMY_MAIN
11662 # ifdef __cplusplus
11665 int F77_DUMMY_MAIN() { return 1; }
11670 /* The GNU C library defines this for functions which it implements
11671 to always fail with ENOSYS. Some functions are actually named
11672 something starting with __ and the normal name is an alias. */
11673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685 (eval $ac_link) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } &&
11689 { ac_try='test -s conftest$ac_exeext'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 eval "$as_ac_var=yes"
11697 echo "$as_me: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11699 eval "$as_ac_var=no"
11701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706 cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11717 # system's version of getaddrinfo(), if any, may be used only if we found
11718 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11719 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11721 for ac_func in getaddrinfo
11723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11724 echo "$as_me:$LINENO: checking for $ac_func" >&5
11725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11726 if eval "test \"\${$as_ac_var+set}\" = set"; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11729 cat >conftest.$ac_ext <<_ACEOF
11730 #line $LINENO "configure"
11731 #include "confdefs.h"
11732 /* System header to define __stub macros and hopefully few prototypes,
11733 which can conflict with char $ac_func (); below. */
11734 #include <assert.h>
11735 /* Override any gcc2 internal prototype to avoid an error. */
11739 /* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11744 #ifdef F77_DUMMY_MAIN
11745 # ifdef __cplusplus
11748 int F77_DUMMY_MAIN() { return 1; }
11753 /* The GNU C library defines this for functions which it implements
11754 to always fail with ENOSYS. Some functions are actually named
11755 something starting with __ and the normal name is an alias. */
11756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768 (eval $ac_link) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 eval "$as_ac_var=yes"
11780 echo "$as_me: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11782 eval "$as_ac_var=no"
11784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11788 if test `eval echo '${'$as_ac_var'}'` = yes; then
11789 cat >>confdefs.h <<_ACEOF
11790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11794 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11800 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11803 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11804 # We override the previous test that said fseeko/ftello didn't exist
11805 # OS tests are also done in include/c.h and port/fseeko.c
11806 case $host_os in bsdi*|netbsd*)
11807 ac_cv_func_fseeko=yes
11810 # Solaris has a very slow qsort in certain cases, so we replace it.
11811 case $host_os in solaris*)
11812 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11815 # Win32 can't to rename or unlink on an open file
11816 case $host_os in mingw*)
11817 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
11818 LIBOBJS="$LIBOBJS copydir.$ac_objext"
11819 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
11822 if test "$with_readline" = yes; then
11823 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11824 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11825 cat >conftest.$ac_ext <<_ACEOF
11826 #line $LINENO "configure"
11827 #include "confdefs.h"
11829 #ifdef HAVE_READLINE_READLINE_H
11830 # include <readline/readline.h>
11831 #elif defined(HAVE_READLINE_H)
11832 # include <readline.h>
11835 #ifdef F77_DUMMY_MAIN
11836 # ifdef __cplusplus
11839 int F77_DUMMY_MAIN() { return 1; }
11844 rl_completion_append_character = 'x';
11849 rm -f conftest.$ac_objext conftest$ac_exeext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851 (eval $ac_link) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
11855 { ac_try='test -s conftest$ac_exeext'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 echo "$as_me:$LINENO: result: yes" >&5
11862 echo "${ECHO_T}yes" >&6
11864 cat >>confdefs.h <<\_ACEOF
11865 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11869 echo "$as_me: failed program was:" >&5
11870 cat conftest.$ac_ext >&5
11871 echo "$as_me:$LINENO: result: no" >&5
11872 echo "${ECHO_T}no" >&6
11874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11877 for ac_func in rl_completion_matches rl_filename_completion_function
11879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11880 echo "$as_me:$LINENO: checking for $ac_func" >&5
11881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11882 if eval "test \"\${$as_ac_var+set}\" = set"; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 cat >conftest.$ac_ext <<_ACEOF
11886 #line $LINENO "configure"
11887 #include "confdefs.h"
11888 /* System header to define __stub macros and hopefully few prototypes,
11889 which can conflict with char $ac_func (); below. */
11890 #include <assert.h>
11891 /* Override any gcc2 internal prototype to avoid an error. */
11895 /* We use char because int might match the return type of a gcc2
11896 builtin and then its argument prototype would still apply. */
11900 #ifdef F77_DUMMY_MAIN
11901 # ifdef __cplusplus
11904 int F77_DUMMY_MAIN() { return 1; }
11909 /* The GNU C library defines this for functions which it implements
11910 to always fail with ENOSYS. Some functions are actually named
11911 something starting with __ and the normal name is an alias. */
11912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 eval "$as_ac_var=yes"
11936 echo "$as_me: failed program was:" >&5
11937 cat conftest.$ac_ext >&5
11938 eval "$as_ac_var=no"
11940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11944 if test `eval echo '${'$as_ac_var'}'` = yes; then
11945 cat >>confdefs.h <<_ACEOF
11946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953 for ac_func in replace_history_entry
11955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11956 echo "$as_me:$LINENO: checking for $ac_func" >&5
11957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11958 if eval "test \"\${$as_ac_var+set}\" = set"; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 cat >conftest.$ac_ext <<_ACEOF
11962 #line $LINENO "configure"
11963 #include "confdefs.h"
11964 /* System header to define __stub macros and hopefully few prototypes,
11965 which can conflict with char $ac_func (); below. */
11966 #include <assert.h>
11967 /* Override any gcc2 internal prototype to avoid an error. */
11971 /* We use char because int might match the return type of a gcc2
11972 builtin and then its argument prototype would still apply. */
11976 #ifdef F77_DUMMY_MAIN
11977 # ifdef __cplusplus
11980 int F77_DUMMY_MAIN() { return 1; }
11985 /* The GNU C library defines this for functions which it implements
11986 to always fail with ENOSYS. Some functions are actually named
11987 something starting with __ and the normal name is an alias. */
11988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12000 (eval $ac_link) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -s conftest$ac_exeext'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 eval "$as_ac_var=yes"
12012 echo "$as_me: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 eval "$as_ac_var=no"
12016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12020 if test `eval echo '${'$as_ac_var'}'` = yes; then
12021 cat >>confdefs.h <<_ACEOF
12022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12031 echo "$as_me:$LINENO: checking for finite" >&5
12032 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12033 cat >conftest.$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12035 #include "confdefs.h"
12037 #ifdef F77_DUMMY_MAIN
12038 # ifdef __cplusplus
12041 int F77_DUMMY_MAIN() { return 1; }
12046 int dummy=finite(1.0);
12051 rm -f conftest.$ac_objext conftest$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053 (eval $ac_link) 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
12057 { ac_try='test -s conftest$ac_exeext'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; }; then
12064 cat >>confdefs.h <<\_ACEOF
12065 #define HAVE_FINITE 1
12068 echo "$as_me:$LINENO: result: yes" >&5
12069 echo "${ECHO_T}yes" >&6
12071 echo "$as_me: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 echo "$as_me:$LINENO: result: no" >&5
12074 echo "${ECHO_T}no" >&6
12076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12078 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12079 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12080 cat >conftest.$ac_ext <<_ACEOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12083 #include <setjmp.h>
12084 #ifdef F77_DUMMY_MAIN
12085 # ifdef __cplusplus
12088 int F77_DUMMY_MAIN() { return 1; }
12093 sigjmp_buf x; sigsetjmp(x, 1);
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12100 (eval $ac_link) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } &&
12104 { ac_try='test -s conftest$ac_exeext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12111 cat >>confdefs.h <<\_ACEOF
12112 #define HAVE_SIGSETJMP 1
12115 echo "$as_me:$LINENO: result: yes" >&5
12116 echo "${ECHO_T}yes" >&6
12118 echo "$as_me: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12120 echo "$as_me:$LINENO: result: no" >&5
12121 echo "${ECHO_T}no" >&6
12123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12125 echo "$as_me:$LINENO: checking for syslog" >&5
12126 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12127 if test "${ac_cv_func_syslog+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12130 cat >conftest.$ac_ext <<_ACEOF
12131 #line $LINENO "configure"
12132 #include "confdefs.h"
12133 /* System header to define __stub macros and hopefully few prototypes,
12134 which can conflict with char syslog (); below. */
12135 #include <assert.h>
12136 /* Override any gcc2 internal prototype to avoid an error. */
12140 /* We use char because int might match the return type of a gcc2
12141 builtin and then its argument prototype would still apply. */
12145 #ifdef F77_DUMMY_MAIN
12146 # ifdef __cplusplus
12149 int F77_DUMMY_MAIN() { return 1; }
12154 /* The GNU C library defines this for functions which it implements
12155 to always fail with ENOSYS. Some functions are actually named
12156 something starting with __ and the normal name is an alias. */
12157 #if defined (__stub_syslog) || defined (__stub___syslog)
12167 rm -f conftest.$ac_objext conftest$ac_exeext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12169 (eval $ac_link) 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 ac_cv_func_syslog=yes
12181 echo "$as_me: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 ac_cv_func_syslog=no
12185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12187 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12188 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12189 if test $ac_cv_func_syslog = yes; then
12190 if test "${ac_cv_header_syslog_h+set}" = set; then
12191 echo "$as_me:$LINENO: checking for syslog.h" >&5
12192 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12193 if test "${ac_cv_header_syslog_h+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12197 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12199 # Is the header compilable?
12200 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12201 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12202 cat >conftest.$ac_ext <<_ACEOF
12203 #line $LINENO "configure"
12204 #include "confdefs.h"
12205 $ac_includes_default
12206 #include <syslog.h>
12208 rm -f conftest.$ac_objext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210 (eval $ac_compile) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -s conftest.$ac_objext'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_header_compiler=yes
12222 echo "$as_me: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12224 ac_header_compiler=no
12226 rm -f conftest.$ac_objext conftest.$ac_ext
12227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12228 echo "${ECHO_T}$ac_header_compiler" >&6
12230 # Is the header present?
12231 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12232 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12233 cat >conftest.$ac_ext <<_ACEOF
12234 #line $LINENO "configure"
12235 #include "confdefs.h"
12236 #include <syslog.h>
12238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12241 egrep -v '^ *\+' conftest.er1 >conftest.err
12243 cat conftest.err >&5
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); } >/dev/null; then
12246 if test -s conftest.err; then
12247 ac_cpp_err=$ac_c_preproc_warn_flag
12254 if test -z "$ac_cpp_err"; then
12255 ac_header_preproc=yes
12257 echo "$as_me: failed program was:" >&5
12258 cat conftest.$ac_ext >&5
12259 ac_header_preproc=no
12261 rm -f conftest.err conftest.$ac_ext
12262 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12263 echo "${ECHO_T}$ac_header_preproc" >&6
12265 # So? What about this header?
12266 case $ac_header_compiler:$ac_header_preproc in
12268 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12269 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12270 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12271 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12273 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12274 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12276 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12278 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12280 echo "$as_me:$LINENO: checking for syslog.h" >&5
12281 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12282 if test "${ac_cv_header_syslog_h+set}" = set; then
12283 echo $ECHO_N "(cached) $ECHO_C" >&6
12285 ac_cv_header_syslog_h=$ac_header_preproc
12287 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12288 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12291 if test $ac_cv_header_syslog_h = yes; then
12293 cat >>confdefs.h <<\_ACEOF
12294 #define HAVE_SYSLOG 1
12303 echo "$as_me:$LINENO: checking for optreset" >&5
12304 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12305 if test "${pgac_cv_var_int_optreset+set}" = set; then
12306 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 cat >conftest.$ac_ext <<_ACEOF
12309 #line $LINENO "configure"
12310 #include "confdefs.h"
12311 #include <unistd.h>
12312 #ifdef F77_DUMMY_MAIN
12313 # ifdef __cplusplus
12316 int F77_DUMMY_MAIN() { return 1; }
12321 extern int optreset; optreset = 1;
12326 rm -f conftest.$ac_objext conftest$ac_exeext
12327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12328 (eval $ac_link) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } &&
12332 { ac_try='test -s conftest$ac_exeext'
12333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12334 (eval $ac_try) 2>&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12338 pgac_cv_var_int_optreset=yes
12340 echo "$as_me: failed program was:" >&5
12341 cat conftest.$ac_ext >&5
12342 pgac_cv_var_int_optreset=no
12344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12346 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12347 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12348 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12350 cat >>confdefs.h <<\_ACEOF
12351 #define HAVE_INT_OPTRESET 1
12358 for ac_func in strtoll strtoq
12360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12361 echo "$as_me:$LINENO: checking for $ac_func" >&5
12362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12363 if eval "test \"\${$as_ac_var+set}\" = set"; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 cat >conftest.$ac_ext <<_ACEOF
12367 #line $LINENO "configure"
12368 #include "confdefs.h"
12369 /* System header to define __stub macros and hopefully few prototypes,
12370 which can conflict with char $ac_func (); below. */
12371 #include <assert.h>
12372 /* Override any gcc2 internal prototype to avoid an error. */
12376 /* We use char because int might match the return type of a gcc2
12377 builtin and then its argument prototype would still apply. */
12381 #ifdef F77_DUMMY_MAIN
12382 # ifdef __cplusplus
12385 int F77_DUMMY_MAIN() { return 1; }
12390 /* The GNU C library defines this for functions which it implements
12391 to always fail with ENOSYS. Some functions are actually named
12392 something starting with __ and the normal name is an alias. */
12393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -s conftest$ac_exeext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 eval "$as_ac_var=yes"
12417 echo "$as_me: failed program was:" >&5
12418 cat conftest.$ac_ext >&5
12419 eval "$as_ac_var=no"
12421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12425 if test `eval echo '${'$as_ac_var'}'` = yes; then
12426 cat >>confdefs.h <<_ACEOF
12427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12435 for ac_func in strtoull strtouq
12437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12438 echo "$as_me:$LINENO: checking for $ac_func" >&5
12439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12440 if eval "test \"\${$as_ac_var+set}\" = set"; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 cat >conftest.$ac_ext <<_ACEOF
12444 #line $LINENO "configure"
12445 #include "confdefs.h"
12446 /* System header to define __stub macros and hopefully few prototypes,
12447 which can conflict with char $ac_func (); below. */
12448 #include <assert.h>
12449 /* Override any gcc2 internal prototype to avoid an error. */
12453 /* We use char because int might match the return type of a gcc2
12454 builtin and then its argument prototype would still apply. */
12458 #ifdef F77_DUMMY_MAIN
12459 # ifdef __cplusplus
12462 int F77_DUMMY_MAIN() { return 1; }
12467 /* The GNU C library defines this for functions which it implements
12468 to always fail with ENOSYS. Some functions are actually named
12469 something starting with __ and the normal name is an alias. */
12470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12480 rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482 (eval $ac_link) 2>&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
12486 { ac_try='test -s conftest$ac_exeext'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
12492 eval "$as_ac_var=yes"
12494 echo "$as_me: failed program was:" >&5
12495 cat conftest.$ac_ext >&5
12496 eval "$as_ac_var=no"
12498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12502 if test `eval echo '${'$as_ac_var'}'` = yes; then
12503 cat >>confdefs.h <<_ACEOF
12504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12511 # Check for one of atexit() or on_exit()
12513 for ac_func in atexit
12515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12516 echo "$as_me:$LINENO: checking for $ac_func" >&5
12517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12518 if eval "test \"\${$as_ac_var+set}\" = set"; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 cat >conftest.$ac_ext <<_ACEOF
12522 #line $LINENO "configure"
12523 #include "confdefs.h"
12524 /* System header to define __stub macros and hopefully few prototypes,
12525 which can conflict with char $ac_func (); below. */
12526 #include <assert.h>
12527 /* Override any gcc2 internal prototype to avoid an error. */
12531 /* We use char because int might match the return type of a gcc2
12532 builtin and then its argument prototype would still apply. */
12536 #ifdef F77_DUMMY_MAIN
12537 # ifdef __cplusplus
12540 int F77_DUMMY_MAIN() { return 1; }
12545 /* The GNU C library defines this for functions which it implements
12546 to always fail with ENOSYS. Some functions are actually named
12547 something starting with __ and the normal name is an alias. */
12548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12560 (eval $ac_link) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try='test -s conftest$ac_exeext'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
12570 eval "$as_ac_var=yes"
12572 echo "$as_me: failed program was:" >&5
12573 cat conftest.$ac_ext >&5
12574 eval "$as_ac_var=no"
12576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12580 if test `eval echo '${'$as_ac_var'}'` = yes; then
12581 cat >>confdefs.h <<_ACEOF
12582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12587 for ac_func in on_exit
12589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12590 echo "$as_me:$LINENO: checking for $ac_func" >&5
12591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12592 if eval "test \"\${$as_ac_var+set}\" = set"; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12596 #line $LINENO "configure"
12597 #include "confdefs.h"
12598 /* System header to define __stub macros and hopefully few prototypes,
12599 which can conflict with char $ac_func (); below. */
12600 #include <assert.h>
12601 /* Override any gcc2 internal prototype to avoid an error. */
12605 /* We use char because int might match the return type of a gcc2
12606 builtin and then its argument prototype would still apply. */
12610 #ifdef F77_DUMMY_MAIN
12611 # ifdef __cplusplus
12614 int F77_DUMMY_MAIN() { return 1; }
12619 /* The GNU C library defines this for functions which it implements
12620 to always fail with ENOSYS. Some functions are actually named
12621 something starting with __ and the normal name is an alias. */
12622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12632 rm -f conftest.$ac_objext conftest$ac_exeext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12634 (eval $ac_link) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -s conftest$ac_exeext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 eval "$as_ac_var=yes"
12646 echo "$as_me: failed program was:" >&5
12647 cat conftest.$ac_ext >&5
12648 eval "$as_ac_var=no"
12650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12654 if test `eval echo '${'$as_ac_var'}'` = yes; then
12655 cat >>confdefs.h <<_ACEOF
12656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12660 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12661 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12662 { (exit 1); exit 1; }; }
12670 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12671 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12672 if test "${ac_cv_sys_largefile_source+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 ac_cv_sys_largefile_source=no
12677 cat >conftest.$ac_ext <<_ACEOF
12678 #line $LINENO "configure"
12679 #include "confdefs.h"
12681 #ifdef F77_DUMMY_MAIN
12682 # ifdef __cplusplus
12685 int F77_DUMMY_MAIN() { return 1; }
12695 rm -f conftest.$ac_objext
12696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12697 (eval $ac_compile) 2>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } &&
12701 { ac_try='test -s conftest.$ac_objext'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; }; then
12709 echo "$as_me: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12712 rm -f conftest.$ac_objext conftest.$ac_ext
12713 cat >conftest.$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12715 #include "confdefs.h"
12716 #define _LARGEFILE_SOURCE 1
12718 #ifdef F77_DUMMY_MAIN
12719 # ifdef __cplusplus
12722 int F77_DUMMY_MAIN() { return 1; }
12732 rm -f conftest.$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734 (eval $ac_compile) 2>&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } &&
12738 { ac_try='test -s conftest.$ac_objext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 ac_cv_sys_largefile_source=1; break
12746 echo "$as_me: failed program was:" >&5
12747 cat conftest.$ac_ext >&5
12749 rm -f conftest.$ac_objext conftest.$ac_ext
12753 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12754 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12755 if test "$ac_cv_sys_largefile_source" != no; then
12757 cat >>confdefs.h <<_ACEOF
12758 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12764 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12765 # in glibc 2.1.3, but that breaks too many other things.
12766 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12767 echo "$as_me:$LINENO: checking for fseeko" >&5
12768 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12769 if test "${ac_cv_func_fseeko+set}" = set; then
12770 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 cat >conftest.$ac_ext <<_ACEOF
12773 #line $LINENO "configure"
12774 #include "confdefs.h"
12776 #ifdef F77_DUMMY_MAIN
12777 # ifdef __cplusplus
12780 int F77_DUMMY_MAIN() { return 1; }
12785 return fseeko && fseeko (stdin, 0, 0);
12790 rm -f conftest.$ac_objext conftest$ac_exeext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792 (eval $ac_link) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_func_fseeko=yes
12804 echo "$as_me: failed program was:" >&5
12805 cat conftest.$ac_ext >&5
12806 ac_cv_func_fseeko=no
12808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12810 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12811 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12812 if test $ac_cv_func_fseeko = yes; then
12814 cat >>confdefs.h <<\_ACEOF
12815 #define HAVE_FSEEKO 1
12822 # This test makes sure that run tests work at all. Sometimes a shared
12823 # library is found by the linker, but the runtime linker can't find it.
12824 # This check should come after all modifications of compiler or linker
12825 # variables, and before any other run tests.
12826 echo "$as_me:$LINENO: checking test program" >&5
12827 echo $ECHO_N "checking test program... $ECHO_C" >&6
12828 if test "$cross_compiling" = yes; then
12829 echo "$as_me:$LINENO: result: cross-compiling" >&5
12830 echo "${ECHO_T}cross-compiling" >&6
12832 cat >conftest.$ac_ext <<_ACEOF
12833 #line $LINENO "configure"
12834 #include "confdefs.h"
12835 int main() { return 0; }
12837 rm -f conftest$ac_exeext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839 (eval $ac_link) 2>&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 echo "$as_me:$LINENO: result: ok" >&5
12849 echo "${ECHO_T}ok" >&6
12851 echo "$as_me: program exited with status $ac_status" >&5
12852 echo "$as_me: failed program was:" >&5
12853 cat conftest.$ac_ext >&5
12854 ( exit $ac_status )
12855 echo "$as_me:$LINENO: result: failed" >&5
12856 echo "${ECHO_T}failed" >&6
12857 { { echo "$as_me:$LINENO: error:
12858 *** Could not execute a simple test program. This may be a problem
12859 *** related to locating shared libraries. Check the file 'config.log'
12860 *** for the exact reason." >&5
12861 echo "$as_me: error:
12862 *** Could not execute a simple test program. This may be a problem
12863 *** related to locating shared libraries. Check the file 'config.log'
12864 *** for the exact reason." >&2;}
12865 { (exit 1); exit 1; }; }
12867 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12872 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12873 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12874 if test "${pgac_cv_type_long_int_64+set}" = set; then
12875 echo $ECHO_N "(cached) $ECHO_C" >&6
12877 if test "$cross_compiling" = yes; then
12878 # If cross-compiling, check the size reported by the compiler and
12879 # trust that the arithmetic works.
12880 cat >conftest.$ac_ext <<_ACEOF
12881 #line $LINENO "configure"
12882 #include "confdefs.h"
12884 #ifdef F77_DUMMY_MAIN
12885 # ifdef __cplusplus
12888 int F77_DUMMY_MAIN() { return 1; }
12893 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12900 rm -f conftest.$ac_objext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12902 (eval $ac_compile) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
12906 { ac_try='test -s conftest.$ac_objext'
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 pgac_cv_type_long_int_64=yes
12914 echo "$as_me: failed program was:" >&5
12915 cat conftest.$ac_ext >&5
12916 pgac_cv_type_long_int_64=no
12918 rm -f conftest.$ac_objext conftest.$ac_ext
12920 cat >conftest.$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12922 #include "confdefs.h"
12923 typedef long int int64;
12926 * These are globals to discourage the compiler from folding all the
12927 * arithmetic tests down to compile-time constants.
12929 int64 a = 20000001;
12930 int64 b = 40000005;
12932 int does_int64_work()
12936 if (sizeof(int64) != 8)
12937 return 0; /* definitely not the right size */
12939 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12947 exit(! does_int64_work());
12950 rm -f conftest$ac_exeext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952 (eval $ac_link) 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; }; then
12961 pgac_cv_type_long_int_64=yes
12963 echo "$as_me: program exited with status $ac_status" >&5
12964 echo "$as_me: failed program was:" >&5
12965 cat conftest.$ac_ext >&5
12966 ( exit $ac_status )
12967 pgac_cv_type_long_int_64=no
12969 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12972 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12973 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12975 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12976 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12978 cat >>confdefs.h <<\_ACEOF
12979 #define HAVE_LONG_INT_64
12985 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12986 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12987 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12988 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 if test "$cross_compiling" = yes; then
12992 # If cross-compiling, check the size reported by the compiler and
12993 # trust that the arithmetic works.
12994 cat >conftest.$ac_ext <<_ACEOF
12995 #line $LINENO "configure"
12996 #include "confdefs.h"
12998 #ifdef F77_DUMMY_MAIN
12999 # ifdef __cplusplus
13002 int F77_DUMMY_MAIN() { return 1; }
13007 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13014 rm -f conftest.$ac_objext
13015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13016 (eval $ac_compile) 2>&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -s conftest.$ac_objext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 pgac_cv_type_long_long_int_64=yes
13028 echo "$as_me: failed program was:" >&5
13029 cat conftest.$ac_ext >&5
13030 pgac_cv_type_long_long_int_64=no
13032 rm -f conftest.$ac_objext conftest.$ac_ext
13034 cat >conftest.$ac_ext <<_ACEOF
13035 #line $LINENO "configure"
13036 #include "confdefs.h"
13037 typedef long long int int64;
13040 * These are globals to discourage the compiler from folding all the
13041 * arithmetic tests down to compile-time constants.
13043 int64 a = 20000001;
13044 int64 b = 40000005;
13046 int does_int64_work()
13050 if (sizeof(int64) != 8)
13051 return 0; /* definitely not the right size */
13053 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13061 exit(! does_int64_work());
13064 rm -f conftest$ac_exeext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13066 (eval $ac_link) 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 pgac_cv_type_long_long_int_64=yes
13077 echo "$as_me: program exited with status $ac_status" >&5
13078 echo "$as_me: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13080 ( exit $ac_status )
13081 pgac_cv_type_long_long_int_64=no
13083 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13086 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13087 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13089 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13090 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13092 cat >>confdefs.h <<\_ACEOF
13093 #define HAVE_LONG_LONG_INT_64
13102 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13103 cat >conftest.$ac_ext <<_ACEOF
13104 #line $LINENO "configure"
13105 #include "confdefs.h"
13107 #define INT64CONST(x) x##LL
13108 long long int foo = INT64CONST(0x1234567890123456);
13110 #ifdef F77_DUMMY_MAIN
13111 # ifdef __cplusplus
13114 int F77_DUMMY_MAIN() { return 1; }
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -s conftest.$ac_objext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13137 cat >>confdefs.h <<\_ACEOF
13138 #define HAVE_LL_CONSTANTS 1
13142 echo "$as_me: failed program was:" >&5
13143 cat conftest.$ac_ext >&5
13145 rm -f conftest.$ac_objext conftest.$ac_ext
13149 # If we found "long int" is 64 bits, assume snprintf handles it. If
13150 # we found we need to use "long long int", better check. We cope with
13151 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13152 # neither works, fall back to our own snprintf emulation (which we
13155 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13156 if test $pgac_need_repl_snprintf = no; then
13157 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13158 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13159 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 for pgac_format in '%lld' '%qd' '%I64d'; do
13163 if test "$cross_compiling" = yes; then
13164 pgac_cv_snprintf_long_long_int_format=cross; break
13166 cat >conftest.$ac_ext <<_ACEOF
13167 #line $LINENO "configure"
13168 #include "confdefs.h"
13170 typedef long long int int64;
13171 #define INT64_FORMAT "$pgac_format"
13173 int64 a = 20000001;
13174 int64 b = 40000005;
13176 int does_int64_snprintf_work()
13181 if (sizeof(int64) != 8)
13182 return 0; /* doesn't look like the right size */
13185 snprintf(buf, 100, INT64_FORMAT, c);
13186 if (strcmp(buf, "800000140000005") != 0)
13187 return 0; /* either multiply or snprintf is busted */
13191 exit(! does_int64_snprintf_work());
13194 rm -f conftest$ac_exeext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13196 (eval $ac_link) 2>&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }; then
13205 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13207 echo "$as_me: program exited with status $ac_status" >&5
13208 echo "$as_me: failed program was:" >&5
13209 cat conftest.$ac_ext >&5
13211 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13216 LONG_LONG_INT_FORMAT=''
13218 case $pgac_cv_snprintf_long_long_int_format in
13219 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13220 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13221 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13222 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13223 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13224 *) echo "$as_me:$LINENO: result: none" >&5
13225 echo "${ECHO_T}none" >&6;;
13227 if test "$LONG_LONG_INT_FORMAT" = ""; then
13228 # Force usage of our own snprintf, since system snprintf is broken
13229 pgac_need_repl_snprintf=yes
13230 LONG_LONG_INT_FORMAT='%lld'
13233 # Here if we previously decided we needed to use our own snprintf
13234 LONG_LONG_INT_FORMAT='%lld'
13236 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13238 # Here if we are not using 'long long int' at all
13239 INT64_FORMAT='"%ld"'
13243 cat >>confdefs.h <<_ACEOF
13244 #define INT64_FORMAT $INT64_FORMAT
13248 if test $pgac_need_repl_snprintf = yes; then
13249 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13252 # Need a #define for the size of Datum (unsigned long)
13253 echo "$as_me:$LINENO: checking for unsigned long" >&5
13254 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13255 if test "${ac_cv_type_unsigned_long+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 cat >conftest.$ac_ext <<_ACEOF
13259 #line $LINENO "configure"
13260 #include "confdefs.h"
13261 $ac_includes_default
13262 #ifdef F77_DUMMY_MAIN
13263 # ifdef __cplusplus
13266 int F77_DUMMY_MAIN() { return 1; }
13271 if ((unsigned long *) 0)
13273 if (sizeof (unsigned long))
13279 rm -f conftest.$ac_objext
13280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13281 (eval $ac_compile) 2>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); } &&
13285 { ac_try='test -s conftest.$ac_objext'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13291 ac_cv_type_unsigned_long=yes
13293 echo "$as_me: failed program was:" >&5
13294 cat conftest.$ac_ext >&5
13295 ac_cv_type_unsigned_long=no
13297 rm -f conftest.$ac_objext conftest.$ac_ext
13299 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13300 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13302 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13303 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13304 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 if test "$ac_cv_type_unsigned_long" = yes; then
13308 # The cast to unsigned long works around a bug in the HP C Compiler
13309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13311 # This bug is HP SR number 8606223364.
13312 if test "$cross_compiling" = yes; then
13313 # Depending upon the size, compute the lo and hi bounds.
13314 cat >conftest.$ac_ext <<_ACEOF
13315 #line $LINENO "configure"
13316 #include "confdefs.h"
13317 $ac_includes_default
13318 #ifdef F77_DUMMY_MAIN
13319 # ifdef __cplusplus
13322 int F77_DUMMY_MAIN() { return 1; }
13327 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13334 rm -f conftest.$ac_objext
13335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13336 (eval $ac_compile) 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try='test -s conftest.$ac_objext'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; }; then
13348 cat >conftest.$ac_ext <<_ACEOF
13349 #line $LINENO "configure"
13350 #include "confdefs.h"
13351 $ac_includes_default
13352 #ifdef F77_DUMMY_MAIN
13353 # ifdef __cplusplus
13356 int F77_DUMMY_MAIN() { return 1; }
13361 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13368 rm -f conftest.$ac_objext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13370 (eval $ac_compile) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -s conftest.$ac_objext'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 ac_hi=$ac_mid; break
13382 echo "$as_me: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13384 ac_lo=`expr $ac_mid + 1`
13385 if test $ac_lo -le $ac_mid; then
13389 ac_mid=`expr 2 '*' $ac_mid + 1`
13391 rm -f conftest.$ac_objext conftest.$ac_ext
13394 echo "$as_me: failed program was:" >&5
13395 cat conftest.$ac_ext >&5
13396 cat >conftest.$ac_ext <<_ACEOF
13397 #line $LINENO "configure"
13398 #include "confdefs.h"
13399 $ac_includes_default
13400 #ifdef F77_DUMMY_MAIN
13401 # ifdef __cplusplus
13404 int F77_DUMMY_MAIN() { return 1; }
13409 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
13416 rm -f conftest.$ac_objext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418 (eval $ac_compile) 2>&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; }; then
13430 cat >conftest.$ac_ext <<_ACEOF
13431 #line $LINENO "configure"
13432 #include "confdefs.h"
13433 $ac_includes_default
13434 #ifdef F77_DUMMY_MAIN
13435 # ifdef __cplusplus
13438 int F77_DUMMY_MAIN() { return 1; }
13443 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
13450 rm -f conftest.$ac_objext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452 (eval $ac_compile) 2>&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } &&
13456 { ac_try='test -s conftest.$ac_objext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_lo=$ac_mid; break
13464 echo "$as_me: failed program was:" >&5
13465 cat conftest.$ac_ext >&5
13466 ac_hi=`expr '(' $ac_mid ')' - 1`
13467 if test $ac_mid -le $ac_hi; then
13471 ac_mid=`expr 2 '*' $ac_mid`
13473 rm -f conftest.$ac_objext conftest.$ac_ext
13476 echo "$as_me: failed program was:" >&5
13477 cat conftest.$ac_ext >&5
13480 rm -f conftest.$ac_objext conftest.$ac_ext
13482 rm -f conftest.$ac_objext conftest.$ac_ext
13483 # Binary search between lo and hi bounds.
13484 while test "x$ac_lo" != "x$ac_hi"; do
13485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13486 cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 #include "confdefs.h"
13489 $ac_includes_default
13490 #ifdef F77_DUMMY_MAIN
13491 # ifdef __cplusplus
13494 int F77_DUMMY_MAIN() { return 1; }
13499 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -s conftest.$ac_objext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13520 echo "$as_me: failed program was:" >&5
13521 cat conftest.$ac_ext >&5
13522 ac_lo=`expr '(' $ac_mid ')' + 1`
13524 rm -f conftest.$ac_objext conftest.$ac_ext
13527 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
13528 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13529 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13530 { (exit 1); exit 1; }; } ;;
13533 if test "$cross_compiling" = yes; then
13534 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13535 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13536 { (exit 1); exit 1; }; }
13538 cat >conftest.$ac_ext <<_ACEOF
13539 #line $LINENO "configure"
13540 #include "confdefs.h"
13541 $ac_includes_default
13542 long longval () { return (long) (sizeof (unsigned long)); }
13543 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
13545 #include <stdlib.h>
13546 #ifdef F77_DUMMY_MAIN
13547 # ifdef __cplusplus
13550 int F77_DUMMY_MAIN() { return 1; }
13556 FILE *f = fopen ("conftest.val", "w");
13559 if (((long) (sizeof (unsigned long))) < 0)
13561 long i = longval ();
13562 if (i != ((long) (sizeof (unsigned long))))
13564 fprintf (f, "%ld\n", i);
13568 unsigned long i = ulongval ();
13569 if (i != ((long) (sizeof (unsigned long))))
13571 fprintf (f, "%lu\n", i);
13573 exit (ferror (f) || fclose (f) != 0);
13579 rm -f conftest$ac_exeext
13580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13581 (eval $ac_link) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_cv_sizeof_unsigned_long=`cat conftest.val`
13592 echo "$as_me: program exited with status $ac_status" >&5
13593 echo "$as_me: failed program was:" >&5
13594 cat conftest.$ac_ext >&5
13595 ( exit $ac_status )
13596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
13597 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
13598 { (exit 1); exit 1; }; }
13600 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13605 ac_cv_sizeof_unsigned_long=0
13608 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
13609 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
13610 cat >>confdefs.h <<_ACEOF
13611 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13616 # Determine memory alignment requirements for the basic C data types.
13618 echo "$as_me:$LINENO: checking for short" >&5
13619 echo $ECHO_N "checking for short... $ECHO_C" >&6
13620 if test "${ac_cv_type_short+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 cat >conftest.$ac_ext <<_ACEOF
13624 #line $LINENO "configure"
13625 #include "confdefs.h"
13626 $ac_includes_default
13627 #ifdef F77_DUMMY_MAIN
13628 # ifdef __cplusplus
13631 int F77_DUMMY_MAIN() { return 1; }
13638 if (sizeof (short))
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -s conftest.$ac_objext'
13651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_type_short=yes
13658 echo "$as_me: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 ac_cv_type_short=no
13662 rm -f conftest.$ac_objext conftest.$ac_ext
13664 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13665 echo "${ECHO_T}$ac_cv_type_short" >&6
13667 echo "$as_me:$LINENO: checking alignment of short" >&5
13668 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13669 if test "${pgac_cv_alignof_short+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13672 if test "$ac_cv_type_short" = yes; then
13673 if test "$cross_compiling" = yes; then
13674 # Depending upon the size, compute the lo and hi bounds.
13675 cat >conftest.$ac_ext <<_ACEOF
13676 #line $LINENO "configure"
13677 #include "confdefs.h"
13678 $ac_includes_default
13679 struct { char filler; short field; } pgac_struct;
13680 #ifdef F77_DUMMY_MAIN
13681 # ifdef __cplusplus
13684 int F77_DUMMY_MAIN() { return 1; }
13689 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13696 rm -f conftest.$ac_objext
13697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13698 (eval $ac_compile) 2>&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } &&
13702 { ac_try='test -s conftest.$ac_objext'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; }; then
13710 cat >conftest.$ac_ext <<_ACEOF
13711 #line $LINENO "configure"
13712 #include "confdefs.h"
13713 $ac_includes_default
13714 struct { char filler; short field; } pgac_struct;
13715 #ifdef F77_DUMMY_MAIN
13716 # ifdef __cplusplus
13719 int F77_DUMMY_MAIN() { return 1; }
13724 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
13737 { ac_try='test -s conftest.$ac_objext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 ac_hi=$ac_mid; break
13745 echo "$as_me: failed program was:" >&5
13746 cat conftest.$ac_ext >&5
13747 ac_lo=`expr $ac_mid + 1`
13748 if test $ac_lo -le $ac_mid; then
13752 ac_mid=`expr 2 '*' $ac_mid + 1`
13754 rm -f conftest.$ac_objext conftest.$ac_ext
13757 echo "$as_me: failed program was:" >&5
13758 cat conftest.$ac_ext >&5
13759 cat >conftest.$ac_ext <<_ACEOF
13760 #line $LINENO "configure"
13761 #include "confdefs.h"
13762 $ac_includes_default
13763 struct { char filler; short field; } pgac_struct;
13764 #ifdef F77_DUMMY_MAIN
13765 # ifdef __cplusplus
13768 int F77_DUMMY_MAIN() { return 1; }
13773 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13780 rm -f conftest.$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -s conftest.$ac_objext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13794 cat >conftest.$ac_ext <<_ACEOF
13795 #line $LINENO "configure"
13796 #include "confdefs.h"
13797 $ac_includes_default
13798 struct { char filler; short field; } pgac_struct;
13799 #ifdef F77_DUMMY_MAIN
13800 # ifdef __cplusplus
13803 int F77_DUMMY_MAIN() { return 1; }
13808 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } &&
13821 { ac_try='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_lo=$ac_mid; break
13829 echo "$as_me: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13831 ac_hi=`expr '(' $ac_mid ')' - 1`
13832 if test $ac_mid -le $ac_hi; then
13836 ac_mid=`expr 2 '*' $ac_mid`
13838 rm -f conftest.$ac_objext conftest.$ac_ext
13841 echo "$as_me: failed program was:" >&5
13842 cat conftest.$ac_ext >&5
13845 rm -f conftest.$ac_objext conftest.$ac_ext
13847 rm -f conftest.$ac_objext conftest.$ac_ext
13848 # Binary search between lo and hi bounds.
13849 while test "x$ac_lo" != "x$ac_hi"; do
13850 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13851 cat >conftest.$ac_ext <<_ACEOF
13852 #line $LINENO "configure"
13853 #include "confdefs.h"
13854 $ac_includes_default
13855 struct { char filler; short field; } pgac_struct;
13856 #ifdef F77_DUMMY_MAIN
13857 # ifdef __cplusplus
13860 int F77_DUMMY_MAIN() { return 1; }
13865 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13872 rm -f conftest.$ac_objext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874 (eval $ac_compile) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -s conftest.$ac_objext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13886 echo "$as_me: failed program was:" >&5
13887 cat conftest.$ac_ext >&5
13888 ac_lo=`expr '(' $ac_mid ')' + 1`
13890 rm -f conftest.$ac_objext conftest.$ac_ext
13893 ?*) pgac_cv_alignof_short=$ac_lo;;
13894 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13895 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13896 { (exit 1); exit 1; }; } ;;
13899 if test "$cross_compiling" = yes; then
13900 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13901 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13902 { (exit 1); exit 1; }; }
13904 cat >conftest.$ac_ext <<_ACEOF
13905 #line $LINENO "configure"
13906 #include "confdefs.h"
13907 $ac_includes_default
13908 struct { char filler; short field; } pgac_struct;
13909 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13910 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13912 #include <stdlib.h>
13913 #ifdef F77_DUMMY_MAIN
13914 # ifdef __cplusplus
13917 int F77_DUMMY_MAIN() { return 1; }
13923 FILE *f = fopen ("conftest.val", "w");
13926 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13928 long i = longval ();
13929 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13931 fprintf (f, "%ld\n", i);
13935 unsigned long i = ulongval ();
13936 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13938 fprintf (f, "%lu\n", i);
13940 exit (ferror (f) || fclose (f) != 0);
13946 rm -f conftest$ac_exeext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13948 (eval $ac_link) 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 pgac_cv_alignof_short=`cat conftest.val`
13959 echo "$as_me: program exited with status $ac_status" >&5
13960 echo "$as_me: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13962 ( exit $ac_status )
13963 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13964 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13965 { (exit 1); exit 1; }; }
13967 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13972 pgac_cv_alignof_short=0
13975 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13976 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13977 cat >>confdefs.h <<_ACEOF
13978 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13982 echo "$as_me:$LINENO: checking for int" >&5
13983 echo $ECHO_N "checking for int... $ECHO_C" >&6
13984 if test "${ac_cv_type_int+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 cat >conftest.$ac_ext <<_ACEOF
13988 #line $LINENO "configure"
13989 #include "confdefs.h"
13990 $ac_includes_default
13991 #ifdef F77_DUMMY_MAIN
13992 # ifdef __cplusplus
13995 int F77_DUMMY_MAIN() { return 1; }
14008 rm -f conftest.$ac_objext
14009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14010 (eval $ac_compile) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -s conftest.$ac_objext'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14022 echo "$as_me: failed program was:" >&5
14023 cat conftest.$ac_ext >&5
14026 rm -f conftest.$ac_objext conftest.$ac_ext
14028 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14029 echo "${ECHO_T}$ac_cv_type_int" >&6
14031 echo "$as_me:$LINENO: checking alignment of int" >&5
14032 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14033 if test "${pgac_cv_alignof_int+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 if test "$ac_cv_type_int" = yes; then
14037 if test "$cross_compiling" = yes; then
14038 # Depending upon the size, compute the lo and hi bounds.
14039 cat >conftest.$ac_ext <<_ACEOF
14040 #line $LINENO "configure"
14041 #include "confdefs.h"
14042 $ac_includes_default
14043 struct { char filler; int field; } pgac_struct;
14044 #ifdef F77_DUMMY_MAIN
14045 # ifdef __cplusplus
14048 int F77_DUMMY_MAIN() { return 1; }
14053 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062 (eval $ac_compile) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -s conftest.$ac_objext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14074 cat >conftest.$ac_ext <<_ACEOF
14075 #line $LINENO "configure"
14076 #include "confdefs.h"
14077 $ac_includes_default
14078 struct { char filler; int field; } pgac_struct;
14079 #ifdef F77_DUMMY_MAIN
14080 # ifdef __cplusplus
14083 int F77_DUMMY_MAIN() { return 1; }
14088 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097 (eval $ac_compile) 2>&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -s conftest.$ac_objext'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_hi=$ac_mid; break
14109 echo "$as_me: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14111 ac_lo=`expr $ac_mid + 1`
14112 if test $ac_lo -le $ac_mid; then
14116 ac_mid=`expr 2 '*' $ac_mid + 1`
14118 rm -f conftest.$ac_objext conftest.$ac_ext
14121 echo "$as_me: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14123 cat >conftest.$ac_ext <<_ACEOF
14124 #line $LINENO "configure"
14125 #include "confdefs.h"
14126 $ac_includes_default
14127 struct { char filler; int field; } pgac_struct;
14128 #ifdef F77_DUMMY_MAIN
14129 # ifdef __cplusplus
14132 int F77_DUMMY_MAIN() { return 1; }
14137 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14144 rm -f conftest.$ac_objext
14145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14146 (eval $ac_compile) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } &&
14150 { ac_try='test -s conftest.$ac_objext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14158 cat >conftest.$ac_ext <<_ACEOF
14159 #line $LINENO "configure"
14160 #include "confdefs.h"
14161 $ac_includes_default
14162 struct { char filler; int field; } pgac_struct;
14163 #ifdef F77_DUMMY_MAIN
14164 # ifdef __cplusplus
14167 int F77_DUMMY_MAIN() { return 1; }
14172 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14179 rm -f conftest.$ac_objext
14180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181 (eval $ac_compile) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14191 ac_lo=$ac_mid; break
14193 echo "$as_me: failed program was:" >&5
14194 cat conftest.$ac_ext >&5
14195 ac_hi=`expr '(' $ac_mid ')' - 1`
14196 if test $ac_mid -le $ac_hi; then
14200 ac_mid=`expr 2 '*' $ac_mid`
14202 rm -f conftest.$ac_objext conftest.$ac_ext
14205 echo "$as_me: failed program was:" >&5
14206 cat conftest.$ac_ext >&5
14209 rm -f conftest.$ac_objext conftest.$ac_ext
14211 rm -f conftest.$ac_objext conftest.$ac_ext
14212 # Binary search between lo and hi bounds.
14213 while test "x$ac_lo" != "x$ac_hi"; do
14214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14215 cat >conftest.$ac_ext <<_ACEOF
14216 #line $LINENO "configure"
14217 #include "confdefs.h"
14218 $ac_includes_default
14219 struct { char filler; int field; } pgac_struct;
14220 #ifdef F77_DUMMY_MAIN
14221 # ifdef __cplusplus
14224 int F77_DUMMY_MAIN() { return 1; }
14229 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14236 rm -f conftest.$ac_objext
14237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14238 (eval $ac_compile) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -s conftest.$ac_objext'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; }; then
14250 echo "$as_me: failed program was:" >&5
14251 cat conftest.$ac_ext >&5
14252 ac_lo=`expr '(' $ac_mid ')' + 1`
14254 rm -f conftest.$ac_objext conftest.$ac_ext
14257 ?*) pgac_cv_alignof_int=$ac_lo;;
14258 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14259 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14260 { (exit 1); exit 1; }; } ;;
14263 if test "$cross_compiling" = yes; then
14264 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14265 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14266 { (exit 1); exit 1; }; }
14268 cat >conftest.$ac_ext <<_ACEOF
14269 #line $LINENO "configure"
14270 #include "confdefs.h"
14271 $ac_includes_default
14272 struct { char filler; int field; } pgac_struct;
14273 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14274 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14276 #include <stdlib.h>
14277 #ifdef F77_DUMMY_MAIN
14278 # ifdef __cplusplus
14281 int F77_DUMMY_MAIN() { return 1; }
14287 FILE *f = fopen ("conftest.val", "w");
14290 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14292 long i = longval ();
14293 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14295 fprintf (f, "%ld\n", i);
14299 unsigned long i = ulongval ();
14300 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14302 fprintf (f, "%lu\n", i);
14304 exit (ferror (f) || fclose (f) != 0);
14310 rm -f conftest$ac_exeext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14312 (eval $ac_link) 2>&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 pgac_cv_alignof_int=`cat conftest.val`
14323 echo "$as_me: program exited with status $ac_status" >&5
14324 echo "$as_me: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 ( exit $ac_status )
14327 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14328 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14329 { (exit 1); exit 1; }; }
14331 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14336 pgac_cv_alignof_int=0
14339 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14340 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14341 cat >>confdefs.h <<_ACEOF
14342 #define ALIGNOF_INT $pgac_cv_alignof_int
14346 echo "$as_me:$LINENO: checking for long" >&5
14347 echo $ECHO_N "checking for long... $ECHO_C" >&6
14348 if test "${ac_cv_type_long+set}" = set; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 cat >conftest.$ac_ext <<_ACEOF
14352 #line $LINENO "configure"
14353 #include "confdefs.h"
14354 $ac_includes_default
14355 #ifdef F77_DUMMY_MAIN
14356 # ifdef __cplusplus
14359 int F77_DUMMY_MAIN() { return 1; }
14372 rm -f conftest.$ac_objext
14373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14374 (eval $ac_compile) 2>&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try='test -s conftest.$ac_objext'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 ac_cv_type_long=yes
14386 echo "$as_me: failed program was:" >&5
14387 cat conftest.$ac_ext >&5
14390 rm -f conftest.$ac_objext conftest.$ac_ext
14392 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
14393 echo "${ECHO_T}$ac_cv_type_long" >&6
14395 echo "$as_me:$LINENO: checking alignment of long" >&5
14396 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
14397 if test "${pgac_cv_alignof_long+set}" = set; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 if test "$ac_cv_type_long" = yes; then
14401 if test "$cross_compiling" = yes; then
14402 # Depending upon the size, compute the lo and hi bounds.
14403 cat >conftest.$ac_ext <<_ACEOF
14404 #line $LINENO "configure"
14405 #include "confdefs.h"
14406 $ac_includes_default
14407 struct { char filler; long field; } pgac_struct;
14408 #ifdef F77_DUMMY_MAIN
14409 # ifdef __cplusplus
14412 int F77_DUMMY_MAIN() { return 1; }
14417 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14424 rm -f conftest.$ac_objext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14426 (eval $ac_compile) 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14438 cat >conftest.$ac_ext <<_ACEOF
14439 #line $LINENO "configure"
14440 #include "confdefs.h"
14441 $ac_includes_default
14442 struct { char filler; long field; } pgac_struct;
14443 #ifdef F77_DUMMY_MAIN
14444 # ifdef __cplusplus
14447 int F77_DUMMY_MAIN() { return 1; }
14452 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
14465 { ac_try='test -s conftest.$ac_objext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_hi=$ac_mid; break
14473 echo "$as_me: failed program was:" >&5
14474 cat conftest.$ac_ext >&5
14475 ac_lo=`expr $ac_mid + 1`
14476 if test $ac_lo -le $ac_mid; then
14480 ac_mid=`expr 2 '*' $ac_mid + 1`
14482 rm -f conftest.$ac_objext conftest.$ac_ext
14485 echo "$as_me: failed program was:" >&5
14486 cat conftest.$ac_ext >&5
14487 cat >conftest.$ac_ext <<_ACEOF
14488 #line $LINENO "configure"
14489 #include "confdefs.h"
14490 $ac_includes_default
14491 struct { char filler; long field; } pgac_struct;
14492 #ifdef F77_DUMMY_MAIN
14493 # ifdef __cplusplus
14496 int F77_DUMMY_MAIN() { return 1; }
14501 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -s conftest.$ac_objext'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14522 cat >conftest.$ac_ext <<_ACEOF
14523 #line $LINENO "configure"
14524 #include "confdefs.h"
14525 $ac_includes_default
14526 struct { char filler; long field; } pgac_struct;
14527 #ifdef F77_DUMMY_MAIN
14528 # ifdef __cplusplus
14531 int F77_DUMMY_MAIN() { return 1; }
14536 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14543 rm -f conftest.$ac_objext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545 (eval $ac_compile) 2>&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_lo=$ac_mid; break
14557 echo "$as_me: failed program was:" >&5
14558 cat conftest.$ac_ext >&5
14559 ac_hi=`expr '(' $ac_mid ')' - 1`
14560 if test $ac_mid -le $ac_hi; then
14564 ac_mid=`expr 2 '*' $ac_mid`
14566 rm -f conftest.$ac_objext conftest.$ac_ext
14569 echo "$as_me: failed program was:" >&5
14570 cat conftest.$ac_ext >&5
14573 rm -f conftest.$ac_objext conftest.$ac_ext
14575 rm -f conftest.$ac_objext conftest.$ac_ext
14576 # Binary search between lo and hi bounds.
14577 while test "x$ac_lo" != "x$ac_hi"; do
14578 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14579 cat >conftest.$ac_ext <<_ACEOF
14580 #line $LINENO "configure"
14581 #include "confdefs.h"
14582 $ac_includes_default
14583 struct { char filler; long field; } pgac_struct;
14584 #ifdef F77_DUMMY_MAIN
14585 # ifdef __cplusplus
14588 int F77_DUMMY_MAIN() { return 1; }
14593 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14600 rm -f conftest.$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602 (eval $ac_compile) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
14606 { ac_try='test -s conftest.$ac_objext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14614 echo "$as_me: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 ac_lo=`expr '(' $ac_mid ')' + 1`
14618 rm -f conftest.$ac_objext conftest.$ac_ext
14621 ?*) pgac_cv_alignof_long=$ac_lo;;
14622 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14623 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14624 { (exit 1); exit 1; }; } ;;
14627 if test "$cross_compiling" = yes; then
14628 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14629 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14630 { (exit 1); exit 1; }; }
14632 cat >conftest.$ac_ext <<_ACEOF
14633 #line $LINENO "configure"
14634 #include "confdefs.h"
14635 $ac_includes_default
14636 struct { char filler; long field; } pgac_struct;
14637 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14638 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14640 #include <stdlib.h>
14641 #ifdef F77_DUMMY_MAIN
14642 # ifdef __cplusplus
14645 int F77_DUMMY_MAIN() { return 1; }
14651 FILE *f = fopen ("conftest.val", "w");
14654 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14656 long i = longval ();
14657 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14659 fprintf (f, "%ld\n", i);
14663 unsigned long i = ulongval ();
14664 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14666 fprintf (f, "%lu\n", i);
14668 exit (ferror (f) || fclose (f) != 0);
14674 rm -f conftest$ac_exeext
14675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14676 (eval $ac_link) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 pgac_cv_alignof_long=`cat conftest.val`
14687 echo "$as_me: program exited with status $ac_status" >&5
14688 echo "$as_me: failed program was:" >&5
14689 cat conftest.$ac_ext >&5
14690 ( exit $ac_status )
14691 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14692 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14693 { (exit 1); exit 1; }; }
14695 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14700 pgac_cv_alignof_long=0
14703 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14704 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14705 cat >>confdefs.h <<_ACEOF
14706 #define ALIGNOF_LONG $pgac_cv_alignof_long
14710 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14711 echo "$as_me:$LINENO: checking for long long int" >&5
14712 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14713 if test "${ac_cv_type_long_long_int+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 cat >conftest.$ac_ext <<_ACEOF
14717 #line $LINENO "configure"
14718 #include "confdefs.h"
14719 $ac_includes_default
14720 #ifdef F77_DUMMY_MAIN
14721 # ifdef __cplusplus
14724 int F77_DUMMY_MAIN() { return 1; }
14729 if ((long long int *) 0)
14731 if (sizeof (long long int))
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739 (eval $ac_compile) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } &&
14743 { ac_try='test -s conftest.$ac_objext'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14749 ac_cv_type_long_long_int=yes
14751 echo "$as_me: failed program was:" >&5
14752 cat conftest.$ac_ext >&5
14753 ac_cv_type_long_long_int=no
14755 rm -f conftest.$ac_objext conftest.$ac_ext
14757 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14758 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14760 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14761 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14762 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 if test "$ac_cv_type_long_long_int" = yes; then
14766 if test "$cross_compiling" = yes; then
14767 # Depending upon the size, compute the lo and hi bounds.
14768 cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14770 #include "confdefs.h"
14771 $ac_includes_default
14772 struct { char filler; long long int field; } pgac_struct;
14773 #ifdef F77_DUMMY_MAIN
14774 # ifdef __cplusplus
14777 int F77_DUMMY_MAIN() { return 1; }
14782 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14789 rm -f conftest.$ac_objext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791 (eval $ac_compile) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -s conftest.$ac_objext'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14803 cat >conftest.$ac_ext <<_ACEOF
14804 #line $LINENO "configure"
14805 #include "confdefs.h"
14806 $ac_includes_default
14807 struct { char filler; long long int field; } pgac_struct;
14808 #ifdef F77_DUMMY_MAIN
14809 # ifdef __cplusplus
14812 int F77_DUMMY_MAIN() { return 1; }
14817 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14824 rm -f conftest.$ac_objext
14825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826 (eval $ac_compile) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_hi=$ac_mid; break
14838 echo "$as_me: failed program was:" >&5
14839 cat conftest.$ac_ext >&5
14840 ac_lo=`expr $ac_mid + 1`
14841 if test $ac_lo -le $ac_mid; then
14845 ac_mid=`expr 2 '*' $ac_mid + 1`
14847 rm -f conftest.$ac_objext conftest.$ac_ext
14850 echo "$as_me: failed program was:" >&5
14851 cat conftest.$ac_ext >&5
14852 cat >conftest.$ac_ext <<_ACEOF
14853 #line $LINENO "configure"
14854 #include "confdefs.h"
14855 $ac_includes_default
14856 struct { char filler; long long int field; } pgac_struct;
14857 #ifdef F77_DUMMY_MAIN
14858 # ifdef __cplusplus
14861 int F77_DUMMY_MAIN() { return 1; }
14866 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14873 rm -f conftest.$ac_objext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875 (eval $ac_compile) 2>&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14887 cat >conftest.$ac_ext <<_ACEOF
14888 #line $LINENO "configure"
14889 #include "confdefs.h"
14890 $ac_includes_default
14891 struct { char filler; long long int field; } pgac_struct;
14892 #ifdef F77_DUMMY_MAIN
14893 # ifdef __cplusplus
14896 int F77_DUMMY_MAIN() { return 1; }
14901 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14908 rm -f conftest.$ac_objext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14910 (eval $ac_compile) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_lo=$ac_mid; break
14922 echo "$as_me: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 ac_hi=`expr '(' $ac_mid ')' - 1`
14925 if test $ac_mid -le $ac_hi; then
14929 ac_mid=`expr 2 '*' $ac_mid`
14931 rm -f conftest.$ac_objext conftest.$ac_ext
14934 echo "$as_me: failed program was:" >&5
14935 cat conftest.$ac_ext >&5
14938 rm -f conftest.$ac_objext conftest.$ac_ext
14940 rm -f conftest.$ac_objext conftest.$ac_ext
14941 # Binary search between lo and hi bounds.
14942 while test "x$ac_lo" != "x$ac_hi"; do
14943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14944 cat >conftest.$ac_ext <<_ACEOF
14945 #line $LINENO "configure"
14946 #include "confdefs.h"
14947 $ac_includes_default
14948 struct { char filler; long long int field; } pgac_struct;
14949 #ifdef F77_DUMMY_MAIN
14950 # ifdef __cplusplus
14953 int F77_DUMMY_MAIN() { return 1; }
14958 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14965 rm -f conftest.$ac_objext
14966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -s conftest.$ac_objext'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; }; then
14979 echo "$as_me: failed program was:" >&5
14980 cat conftest.$ac_ext >&5
14981 ac_lo=`expr '(' $ac_mid ')' + 1`
14983 rm -f conftest.$ac_objext conftest.$ac_ext
14986 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14987 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14988 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14989 { (exit 1); exit 1; }; } ;;
14992 if test "$cross_compiling" = yes; then
14993 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14994 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14995 { (exit 1); exit 1; }; }
14997 cat >conftest.$ac_ext <<_ACEOF
14998 #line $LINENO "configure"
14999 #include "confdefs.h"
15000 $ac_includes_default
15001 struct { char filler; long long int field; } pgac_struct;
15002 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15003 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15005 #include <stdlib.h>
15006 #ifdef F77_DUMMY_MAIN
15007 # ifdef __cplusplus
15010 int F77_DUMMY_MAIN() { return 1; }
15016 FILE *f = fopen ("conftest.val", "w");
15019 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15021 long i = longval ();
15022 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15024 fprintf (f, "%ld\n", i);
15028 unsigned long i = ulongval ();
15029 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15031 fprintf (f, "%lu\n", i);
15033 exit (ferror (f) || fclose (f) != 0);
15039 rm -f conftest$ac_exeext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>&5
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 pgac_cv_alignof_long_long_int=`cat conftest.val`
15052 echo "$as_me: program exited with status $ac_status" >&5
15053 echo "$as_me: failed program was:" >&5
15054 cat conftest.$ac_ext >&5
15055 ( exit $ac_status )
15056 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15057 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15058 { (exit 1); exit 1; }; }
15060 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15065 pgac_cv_alignof_long_long_int=0
15068 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15069 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15070 cat >>confdefs.h <<_ACEOF
15071 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15076 echo "$as_me:$LINENO: checking for double" >&5
15077 echo $ECHO_N "checking for double... $ECHO_C" >&6
15078 if test "${ac_cv_type_double+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 cat >conftest.$ac_ext <<_ACEOF
15082 #line $LINENO "configure"
15083 #include "confdefs.h"
15084 $ac_includes_default
15085 #ifdef F77_DUMMY_MAIN
15086 # ifdef __cplusplus
15089 int F77_DUMMY_MAIN() { return 1; }
15096 if (sizeof (double))
15102 rm -f conftest.$ac_objext
15103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15104 (eval $ac_compile) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -s conftest.$ac_objext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_cv_type_double=yes
15116 echo "$as_me: failed program was:" >&5
15117 cat conftest.$ac_ext >&5
15118 ac_cv_type_double=no
15120 rm -f conftest.$ac_objext conftest.$ac_ext
15122 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15123 echo "${ECHO_T}$ac_cv_type_double" >&6
15125 echo "$as_me:$LINENO: checking alignment of double" >&5
15126 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15127 if test "${pgac_cv_alignof_double+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 if test "$ac_cv_type_double" = yes; then
15131 if test "$cross_compiling" = yes; then
15132 # Depending upon the size, compute the lo and hi bounds.
15133 cat >conftest.$ac_ext <<_ACEOF
15134 #line $LINENO "configure"
15135 #include "confdefs.h"
15136 $ac_includes_default
15137 struct { char filler; double field; } pgac_struct;
15138 #ifdef F77_DUMMY_MAIN
15139 # ifdef __cplusplus
15142 int F77_DUMMY_MAIN() { return 1; }
15147 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15154 rm -f conftest.$ac_objext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15156 (eval $ac_compile) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -s conftest.$ac_objext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15168 cat >conftest.$ac_ext <<_ACEOF
15169 #line $LINENO "configure"
15170 #include "confdefs.h"
15171 $ac_includes_default
15172 struct { char filler; double field; } pgac_struct;
15173 #ifdef F77_DUMMY_MAIN
15174 # ifdef __cplusplus
15177 int F77_DUMMY_MAIN() { return 1; }
15182 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15189 rm -f conftest.$ac_objext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15191 (eval $ac_compile) 2>&5
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); } &&
15195 { ac_try='test -s conftest.$ac_objext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 ac_hi=$ac_mid; break
15203 echo "$as_me: failed program was:" >&5
15204 cat conftest.$ac_ext >&5
15205 ac_lo=`expr $ac_mid + 1`
15206 if test $ac_lo -le $ac_mid; then
15210 ac_mid=`expr 2 '*' $ac_mid + 1`
15212 rm -f conftest.$ac_objext conftest.$ac_ext
15215 echo "$as_me: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15217 cat >conftest.$ac_ext <<_ACEOF
15218 #line $LINENO "configure"
15219 #include "confdefs.h"
15220 $ac_includes_default
15221 struct { char filler; double field; } pgac_struct;
15222 #ifdef F77_DUMMY_MAIN
15223 # ifdef __cplusplus
15226 int F77_DUMMY_MAIN() { return 1; }
15231 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15238 rm -f conftest.$ac_objext
15239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15240 (eval $ac_compile) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15252 cat >conftest.$ac_ext <<_ACEOF
15253 #line $LINENO "configure"
15254 #include "confdefs.h"
15255 $ac_includes_default
15256 struct { char filler; double field; } pgac_struct;
15257 #ifdef F77_DUMMY_MAIN
15258 # ifdef __cplusplus
15261 int F77_DUMMY_MAIN() { return 1; }
15266 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15273 rm -f conftest.$ac_objext
15274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15275 (eval $ac_compile) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } &&
15279 { ac_try='test -s conftest.$ac_objext'
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then
15285 ac_lo=$ac_mid; break
15287 echo "$as_me: failed program was:" >&5
15288 cat conftest.$ac_ext >&5
15289 ac_hi=`expr '(' $ac_mid ')' - 1`
15290 if test $ac_mid -le $ac_hi; then
15294 ac_mid=`expr 2 '*' $ac_mid`
15296 rm -f conftest.$ac_objext conftest.$ac_ext
15299 echo "$as_me: failed program was:" >&5
15300 cat conftest.$ac_ext >&5
15303 rm -f conftest.$ac_objext conftest.$ac_ext
15305 rm -f conftest.$ac_objext conftest.$ac_ext
15306 # Binary search between lo and hi bounds.
15307 while test "x$ac_lo" != "x$ac_hi"; do
15308 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15309 cat >conftest.$ac_ext <<_ACEOF
15310 #line $LINENO "configure"
15311 #include "confdefs.h"
15312 $ac_includes_default
15313 struct { char filler; double field; } pgac_struct;
15314 #ifdef F77_DUMMY_MAIN
15315 # ifdef __cplusplus
15318 int F77_DUMMY_MAIN() { return 1; }
15323 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15330 rm -f conftest.$ac_objext
15331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15332 (eval $ac_compile) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try='test -s conftest.$ac_objext'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15344 echo "$as_me: failed program was:" >&5
15345 cat conftest.$ac_ext >&5
15346 ac_lo=`expr '(' $ac_mid ')' + 1`
15348 rm -f conftest.$ac_objext conftest.$ac_ext
15351 ?*) pgac_cv_alignof_double=$ac_lo;;
15352 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15353 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15354 { (exit 1); exit 1; }; } ;;
15357 if test "$cross_compiling" = yes; then
15358 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15359 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15360 { (exit 1); exit 1; }; }
15362 cat >conftest.$ac_ext <<_ACEOF
15363 #line $LINENO "configure"
15364 #include "confdefs.h"
15365 $ac_includes_default
15366 struct { char filler; double field; } pgac_struct;
15367 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15368 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15370 #include <stdlib.h>
15371 #ifdef F77_DUMMY_MAIN
15372 # ifdef __cplusplus
15375 int F77_DUMMY_MAIN() { return 1; }
15381 FILE *f = fopen ("conftest.val", "w");
15384 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15386 long i = longval ();
15387 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15389 fprintf (f, "%ld\n", i);
15393 unsigned long i = ulongval ();
15394 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15396 fprintf (f, "%lu\n", i);
15398 exit (ferror (f) || fclose (f) != 0);
15404 rm -f conftest$ac_exeext
15405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15406 (eval $ac_link) 2>&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
15415 pgac_cv_alignof_double=`cat conftest.val`
15417 echo "$as_me: program exited with status $ac_status" >&5
15418 echo "$as_me: failed program was:" >&5
15419 cat conftest.$ac_ext >&5
15420 ( exit $ac_status )
15421 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
15422 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
15423 { (exit 1); exit 1; }; }
15425 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15430 pgac_cv_alignof_double=0
15433 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
15434 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
15435 cat >>confdefs.h <<_ACEOF
15436 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
15441 # Compute maximum alignment of any basic type.
15442 # We assume long's alignment is at least as strong as char, short, or int;
15443 # but we must check long long (if it exists) and double.
15445 MAX_ALIGNOF=$pgac_cv_alignof_long
15446 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
15447 MAX_ALIGNOF=$pgac_cv_alignof_double
15449 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
15450 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
15453 cat >>confdefs.h <<_ACEOF
15454 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
15459 # Some platforms predefine the types int8, int16, etc. Only check
15460 # a (hopefully) representative subset.
15461 echo "$as_me:$LINENO: checking for int8" >&5
15462 echo $ECHO_N "checking for int8... $ECHO_C" >&6
15463 if test "${ac_cv_type_int8+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 cat >conftest.$ac_ext <<_ACEOF
15467 #line $LINENO "configure"
15468 #include "confdefs.h"
15470 #ifdef HAVE_SUPPORTDEFS_H
15471 #include <SupportDefs.h>
15474 #ifdef F77_DUMMY_MAIN
15475 # ifdef __cplusplus
15478 int F77_DUMMY_MAIN() { return 1; }
15491 rm -f conftest.$ac_objext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
15497 { ac_try='test -s conftest.$ac_objext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_cv_type_int8=yes
15505 echo "$as_me: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15509 rm -f conftest.$ac_objext conftest.$ac_ext
15511 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
15512 echo "${ECHO_T}$ac_cv_type_int8" >&6
15513 if test $ac_cv_type_int8 = yes; then
15515 cat >>confdefs.h <<_ACEOF
15516 #define HAVE_INT8 1
15521 echo "$as_me:$LINENO: checking for uint8" >&5
15522 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
15523 if test "${ac_cv_type_uint8+set}" = set; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15526 cat >conftest.$ac_ext <<_ACEOF
15527 #line $LINENO "configure"
15528 #include "confdefs.h"
15530 #ifdef HAVE_SUPPORTDEFS_H
15531 #include <SupportDefs.h>
15534 #ifdef F77_DUMMY_MAIN
15535 # ifdef __cplusplus
15538 int F77_DUMMY_MAIN() { return 1; }
15545 if (sizeof (uint8))
15551 rm -f conftest.$ac_objext
15552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15553 (eval $ac_compile) 2>&5
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } &&
15557 { ac_try='test -s conftest.$ac_objext'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; }; then
15563 ac_cv_type_uint8=yes
15565 echo "$as_me: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15567 ac_cv_type_uint8=no
15569 rm -f conftest.$ac_objext conftest.$ac_ext
15571 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
15572 echo "${ECHO_T}$ac_cv_type_uint8" >&6
15573 if test $ac_cv_type_uint8 = yes; then
15575 cat >>confdefs.h <<_ACEOF
15576 #define HAVE_UINT8 1
15581 echo "$as_me:$LINENO: checking for int64" >&5
15582 echo $ECHO_N "checking for int64... $ECHO_C" >&6
15583 if test "${ac_cv_type_int64+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 cat >conftest.$ac_ext <<_ACEOF
15587 #line $LINENO "configure"
15588 #include "confdefs.h"
15590 #ifdef HAVE_SUPPORTDEFS_H
15591 #include <SupportDefs.h>
15594 #ifdef F77_DUMMY_MAIN
15595 # ifdef __cplusplus
15598 int F77_DUMMY_MAIN() { return 1; }
15605 if (sizeof (int64))
15611 rm -f conftest.$ac_objext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613 (eval $ac_compile) 2>&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); } &&
15617 { ac_try='test -s conftest.$ac_objext'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; }; then
15623 ac_cv_type_int64=yes
15625 echo "$as_me: failed program was:" >&5
15626 cat conftest.$ac_ext >&5
15627 ac_cv_type_int64=no
15629 rm -f conftest.$ac_objext conftest.$ac_ext
15631 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15632 echo "${ECHO_T}$ac_cv_type_int64" >&6
15633 if test $ac_cv_type_int64 = yes; then
15635 cat >>confdefs.h <<_ACEOF
15636 #define HAVE_INT64 1
15641 echo "$as_me:$LINENO: checking for uint64" >&5
15642 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15643 if test "${ac_cv_type_uint64+set}" = set; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 cat >conftest.$ac_ext <<_ACEOF
15647 #line $LINENO "configure"
15648 #include "confdefs.h"
15650 #ifdef HAVE_SUPPORTDEFS_H
15651 #include <SupportDefs.h>
15654 #ifdef F77_DUMMY_MAIN
15655 # ifdef __cplusplus
15658 int F77_DUMMY_MAIN() { return 1; }
15665 if (sizeof (uint64))
15671 rm -f conftest.$ac_objext
15672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673 (eval $ac_compile) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
15677 { ac_try='test -s conftest.$ac_objext'
15678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679 (eval $ac_try) 2>&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); }; }; then
15683 ac_cv_type_uint64=yes
15685 echo "$as_me: failed program was:" >&5
15686 cat conftest.$ac_ext >&5
15687 ac_cv_type_uint64=no
15689 rm -f conftest.$ac_objext conftest.$ac_ext
15691 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15692 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15693 if test $ac_cv_type_uint64 = yes; then
15695 cat >>confdefs.h <<_ACEOF
15696 #define HAVE_UINT64 1
15703 # We also check for sig_atomic_t, which *should* be defined per ANSI
15704 # C, but is missing on some old platforms.
15705 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15706 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15707 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 cat >conftest.$ac_ext <<_ACEOF
15711 #line $LINENO "configure"
15712 #include "confdefs.h"
15713 #include <signal.h>
15715 #ifdef F77_DUMMY_MAIN
15716 # ifdef __cplusplus
15719 int F77_DUMMY_MAIN() { return 1; }
15724 if ((sig_atomic_t *) 0)
15726 if (sizeof (sig_atomic_t))
15732 rm -f conftest.$ac_objext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15734 (eval $ac_compile) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_cv_type_sig_atomic_t=yes
15746 echo "$as_me: failed program was:" >&5
15747 cat conftest.$ac_ext >&5
15748 ac_cv_type_sig_atomic_t=no
15750 rm -f conftest.$ac_objext conftest.$ac_ext
15752 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15753 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15754 if test $ac_cv_type_sig_atomic_t = yes; then
15756 cat >>confdefs.h <<_ACEOF
15757 #define HAVE_SIG_ATOMIC_T 1
15765 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15766 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15767 if test "${pgac_cv_func_posix_signals+set}" = set; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 cat >conftest.$ac_ext <<_ACEOF
15771 #line $LINENO "configure"
15772 #include "confdefs.h"
15773 #include <signal.h>
15775 #ifdef F77_DUMMY_MAIN
15776 # ifdef __cplusplus
15779 int F77_DUMMY_MAIN() { return 1; }
15784 struct sigaction act, oact;
15785 sigemptyset(&act.sa_mask);
15786 act.sa_flags = SA_RESTART;
15787 sigaction(0, &act, &oact);
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15794 (eval $ac_link) 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
15798 { ac_try='test -s conftest$ac_exeext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 pgac_cv_func_posix_signals=yes
15806 echo "$as_me: failed program was:" >&5
15807 cat conftest.$ac_ext >&5
15808 pgac_cv_func_posix_signals=no
15810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15812 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15813 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15814 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_POSIX_SIGNALS
15821 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15823 if test $ac_cv_func_fseeko = yes; then
15824 # Check whether --enable-largefile or --disable-largefile was given.
15825 if test "${enable_largefile+set}" = set; then
15826 enableval="$enable_largefile"
15829 if test "$enable_largefile" != no; then
15831 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15832 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15833 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 ac_cv_sys_largefile_CC=no
15837 if test "$GCC" != yes; then
15840 # IRIX 6.2 and later do not support large files by default,
15841 # so use the C compiler's -n32 option if that helps.
15842 cat >conftest.$ac_ext <<_ACEOF
15843 #line $LINENO "configure"
15844 #include "confdefs.h"
15845 #include <sys/types.h>
15846 /* Check that off_t can represent 2**63 - 1 correctly.
15847 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15848 since some C++ compilers masquerading as C compilers
15849 incorrectly reject 9223372036854775807. */
15850 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15851 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15852 && LARGE_OFF_T % 2147483647 == 1)
15854 #ifdef F77_DUMMY_MAIN
15855 # ifdef __cplusplus
15858 int F77_DUMMY_MAIN() { return 1; }
15868 rm -f conftest.$ac_objext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15870 (eval $ac_compile) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
15874 { ac_try='test -s conftest.$ac_objext'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; }; then
15882 echo "$as_me: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15885 rm -f conftest.$ac_objext
15887 rm -f conftest.$ac_objext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889 (eval $ac_compile) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_cv_sys_largefile_CC=' -n32'; break
15901 echo "$as_me: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15904 rm -f conftest.$ac_objext
15908 rm -f conftest.$ac_ext
15911 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
15912 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
15913 if test "$ac_cv_sys_largefile_CC" != no; then
15914 CC=$CC$ac_cv_sys_largefile_CC
15917 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15918 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
15919 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 ac_cv_sys_file_offset_bits=no
15924 cat >conftest.$ac_ext <<_ACEOF
15925 #line $LINENO "configure"
15926 #include "confdefs.h"
15927 #include <sys/types.h>
15928 /* Check that off_t can represent 2**63 - 1 correctly.
15929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15930 since some C++ compilers masquerading as C compilers
15931 incorrectly reject 9223372036854775807. */
15932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15934 && LARGE_OFF_T % 2147483647 == 1)
15936 #ifdef F77_DUMMY_MAIN
15937 # ifdef __cplusplus
15940 int F77_DUMMY_MAIN() { return 1; }
15950 rm -f conftest.$ac_objext
15951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15952 (eval $ac_compile) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } &&
15956 { ac_try='test -s conftest.$ac_objext'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15964 echo "$as_me: failed program was:" >&5
15965 cat conftest.$ac_ext >&5
15967 rm -f conftest.$ac_objext conftest.$ac_ext
15968 cat >conftest.$ac_ext <<_ACEOF
15969 #line $LINENO "configure"
15970 #include "confdefs.h"
15971 #define _FILE_OFFSET_BITS 64
15972 #include <sys/types.h>
15973 /* Check that off_t can represent 2**63 - 1 correctly.
15974 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15975 since some C++ compilers masquerading as C compilers
15976 incorrectly reject 9223372036854775807. */
15977 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15978 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15979 && LARGE_OFF_T % 2147483647 == 1)
15981 #ifdef F77_DUMMY_MAIN
15982 # ifdef __cplusplus
15985 int F77_DUMMY_MAIN() { return 1; }
15995 rm -f conftest.$ac_objext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15997 (eval $ac_compile) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_cv_sys_file_offset_bits=64; break
16009 echo "$as_me: failed program was:" >&5
16010 cat conftest.$ac_ext >&5
16012 rm -f conftest.$ac_objext conftest.$ac_ext
16016 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16017 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16018 if test "$ac_cv_sys_file_offset_bits" != no; then
16020 cat >>confdefs.h <<_ACEOF
16021 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16026 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16027 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16028 if test "${ac_cv_sys_large_files+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 ac_cv_sys_large_files=no
16033 cat >conftest.$ac_ext <<_ACEOF
16034 #line $LINENO "configure"
16035 #include "confdefs.h"
16036 #include <sys/types.h>
16037 /* Check that off_t can represent 2**63 - 1 correctly.
16038 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16039 since some C++ compilers masquerading as C compilers
16040 incorrectly reject 9223372036854775807. */
16041 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16043 && LARGE_OFF_T % 2147483647 == 1)
16045 #ifdef F77_DUMMY_MAIN
16046 # ifdef __cplusplus
16049 int F77_DUMMY_MAIN() { return 1; }
16059 rm -f conftest.$ac_objext
16060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16061 (eval $ac_compile) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -s conftest.$ac_objext'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16073 echo "$as_me: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16076 rm -f conftest.$ac_objext conftest.$ac_ext
16077 cat >conftest.$ac_ext <<_ACEOF
16078 #line $LINENO "configure"
16079 #include "confdefs.h"
16080 #define _LARGE_FILES 1
16081 #include <sys/types.h>
16082 /* Check that off_t can represent 2**63 - 1 correctly.
16083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16084 since some C++ compilers masquerading as C compilers
16085 incorrectly reject 9223372036854775807. */
16086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16088 && LARGE_OFF_T % 2147483647 == 1)
16090 #ifdef F77_DUMMY_MAIN
16091 # ifdef __cplusplus
16094 int F77_DUMMY_MAIN() { return 1; }
16104 rm -f conftest.$ac_objext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16106 (eval $ac_compile) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -s conftest.$ac_objext'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 ac_cv_sys_large_files=1; break
16118 echo "$as_me: failed program was:" >&5
16119 cat conftest.$ac_ext >&5
16121 rm -f conftest.$ac_objext conftest.$ac_ext
16125 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16126 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16127 if test "$ac_cv_sys_large_files" != no; then
16129 cat >>confdefs.h <<_ACEOF
16130 #define _LARGE_FILES $ac_cv_sys_large_files
16140 # Select semaphore implementation type.
16141 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16143 cat >>confdefs.h <<\_ACEOF
16144 #define USE_NAMED_POSIX_SEMAPHORES 1
16147 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16149 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16151 cat >>confdefs.h <<\_ACEOF
16152 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16155 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16158 cat >>confdefs.h <<\_ACEOF
16159 #define USE_SYSV_SEMAPHORES 1
16162 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16167 # Select shared-memory implementation type.
16169 cat >>confdefs.h <<\_ACEOF
16170 #define USE_SYSV_SHARED_MEMORY 1
16173 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16176 if test "$enable_nls" = yes ; then
16178 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16179 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16180 if test "${ac_cv_search_gettext+set}" = set; then
16181 echo $ECHO_N "(cached) $ECHO_C" >&6
16183 ac_func_search_save_LIBS=$LIBS
16184 ac_cv_search_gettext=no
16185 cat >conftest.$ac_ext <<_ACEOF
16186 #line $LINENO "configure"
16187 #include "confdefs.h"
16189 /* Override any gcc2 internal prototype to avoid an error. */
16193 /* We use char because int might match the return type of a gcc2
16194 builtin and then its argument prototype would still apply. */
16196 #ifdef F77_DUMMY_MAIN
16197 # ifdef __cplusplus
16200 int F77_DUMMY_MAIN() { return 1; }
16210 rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16212 (eval $ac_link) 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } &&
16216 { ac_try='test -s conftest$ac_exeext'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222 ac_cv_search_gettext="none required"
16224 echo "$as_me: failed program was:" >&5
16225 cat conftest.$ac_ext >&5
16227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16228 if test "$ac_cv_search_gettext" = no; then
16229 for ac_lib in intl; do
16230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16231 cat >conftest.$ac_ext <<_ACEOF
16232 #line $LINENO "configure"
16233 #include "confdefs.h"
16235 /* Override any gcc2 internal prototype to avoid an error. */
16239 /* We use char because int might match the return type of a gcc2
16240 builtin and then its argument prototype would still apply. */
16242 #ifdef F77_DUMMY_MAIN
16243 # ifdef __cplusplus
16246 int F77_DUMMY_MAIN() { return 1; }
16256 rm -f conftest.$ac_objext conftest$ac_exeext
16257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16258 (eval $ac_link) 2>&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } &&
16262 { ac_try='test -s conftest$ac_exeext'
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16268 ac_cv_search_gettext="-l$ac_lib"
16271 echo "$as_me: failed program was:" >&5
16272 cat conftest.$ac_ext >&5
16274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16277 LIBS=$ac_func_search_save_LIBS
16279 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16280 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16281 if test "$ac_cv_search_gettext" != no; then
16282 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16285 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16286 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16287 { (exit 1); exit 1; }; }
16290 if test "${ac_cv_header_libintl_h+set}" = set; then
16291 echo "$as_me:$LINENO: checking for libintl.h" >&5
16292 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16293 if test "${ac_cv_header_libintl_h+set}" = set; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16297 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16299 # Is the header compilable?
16300 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16301 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16302 cat >conftest.$ac_ext <<_ACEOF
16303 #line $LINENO "configure"
16304 #include "confdefs.h"
16305 $ac_includes_default
16306 #include <libintl.h>
16308 rm -f conftest.$ac_objext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
16314 { ac_try='test -s conftest.$ac_objext'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320 ac_header_compiler=yes
16322 echo "$as_me: failed program was:" >&5
16323 cat conftest.$ac_ext >&5
16324 ac_header_compiler=no
16326 rm -f conftest.$ac_objext conftest.$ac_ext
16327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16328 echo "${ECHO_T}$ac_header_compiler" >&6
16330 # Is the header present?
16331 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16332 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16333 cat >conftest.$ac_ext <<_ACEOF
16334 #line $LINENO "configure"
16335 #include "confdefs.h"
16336 #include <libintl.h>
16338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16341 egrep -v '^ *\+' conftest.er1 >conftest.err
16343 cat conftest.err >&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } >/dev/null; then
16346 if test -s conftest.err; then
16347 ac_cpp_err=$ac_c_preproc_warn_flag
16354 if test -z "$ac_cpp_err"; then
16355 ac_header_preproc=yes
16357 echo "$as_me: failed program was:" >&5
16358 cat conftest.$ac_ext >&5
16359 ac_header_preproc=no
16361 rm -f conftest.err conftest.$ac_ext
16362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16363 echo "${ECHO_T}$ac_header_preproc" >&6
16365 # So? What about this header?
16366 case $ac_header_compiler:$ac_header_preproc in
16368 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16369 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16370 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16371 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16373 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
16374 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
16375 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
16376 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
16377 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
16378 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
16380 echo "$as_me:$LINENO: checking for libintl.h" >&5
16381 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16382 if test "${ac_cv_header_libintl_h+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 ac_cv_header_libintl_h=$ac_header_preproc
16387 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16388 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16391 if test $ac_cv_header_libintl_h = yes; then
16394 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
16395 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
16396 { (exit 1); exit 1; }; }
16400 for ac_prog in msgfmt
16402 # Extract the first word of "$ac_prog", so it can be a program name with args.
16403 set dummy $ac_prog; ac_word=$2
16404 echo "$as_me:$LINENO: checking for $ac_word" >&5
16405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16406 if test "${ac_cv_prog_MSGFMT+set}" = set; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
16409 if test -n "$MSGFMT"; then
16410 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
16412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16413 for as_dir in $PATH
16416 test -z "$as_dir" && as_dir=.
16417 for ac_exec_ext in '' $ac_executable_extensions; do
16418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16419 ac_cv_prog_MSGFMT="$ac_prog"
16420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16428 MSGFMT=$ac_cv_prog_MSGFMT
16429 if test -n "$MSGFMT"; then
16430 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16431 echo "${ECHO_T}$MSGFMT" >&6
16433 echo "$as_me:$LINENO: result: no" >&5
16434 echo "${ECHO_T}no" >&6
16437 test -n "$MSGFMT" && break
16440 if test -z "$MSGFMT"; then
16441 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
16442 echo "$as_me: error: msgfmt is required for NLS" >&2;}
16443 { (exit 1); exit 1; }; }
16445 for ac_prog in msgmerge
16447 # Extract the first word of "$ac_prog", so it can be a program name with args.
16448 set dummy $ac_prog; ac_word=$2
16449 echo "$as_me:$LINENO: checking for $ac_word" >&5
16450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16451 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 if test -n "$MSGMERGE"; then
16455 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
16457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16458 for as_dir in $PATH
16461 test -z "$as_dir" && as_dir=.
16462 for ac_exec_ext in '' $ac_executable_extensions; do
16463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16464 ac_cv_prog_MSGMERGE="$ac_prog"
16465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16473 MSGMERGE=$ac_cv_prog_MSGMERGE
16474 if test -n "$MSGMERGE"; then
16475 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16476 echo "${ECHO_T}$MSGMERGE" >&6
16478 echo "$as_me:$LINENO: result: no" >&5
16479 echo "${ECHO_T}no" >&6
16482 test -n "$MSGMERGE" && break
16485 for ac_prog in xgettext
16487 # Extract the first word of "$ac_prog", so it can be a program name with args.
16488 set dummy $ac_prog; ac_word=$2
16489 echo "$as_me:$LINENO: checking for $ac_word" >&5
16490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16491 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
16492 echo $ECHO_N "(cached) $ECHO_C" >&6
16494 if test -n "$XGETTEXT"; then
16495 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
16497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16498 for as_dir in $PATH
16501 test -z "$as_dir" && as_dir=.
16502 for ac_exec_ext in '' $ac_executable_extensions; do
16503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16504 ac_cv_prog_XGETTEXT="$ac_prog"
16505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16513 XGETTEXT=$ac_cv_prog_XGETTEXT
16514 if test -n "$XGETTEXT"; then
16515 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16516 echo "${ECHO_T}$XGETTEXT" >&6
16518 echo "$as_me:$LINENO: result: no" >&5
16519 echo "${ECHO_T}no" >&6
16522 test -n "$XGETTEXT" && break
16526 # Note: share/locale is always the default, independent of $datadir
16527 localedir='${prefix}/share/locale'
16528 if test x"$prefix" = x"NONE"; then
16529 exp_localedir="$ac_default_prefix/share/locale"
16531 exp_localedir="$prefix/share/locale"
16536 cat >>confdefs.h <<_ACEOF
16537 #define LOCALEDIR "$exp_localedir"
16543 # Check for Tcl configuration script tclConfig.sh
16544 if test "$with_tcl" = yes; then
16545 for ac_prog in tclsh tcl
16547 # Extract the first word of "$ac_prog", so it can be a program name with args.
16548 set dummy $ac_prog; ac_word=$2
16549 echo "$as_me:$LINENO: checking for $ac_word" >&5
16550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16551 if test "${ac_cv_path_TCLSH+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16556 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16560 for as_dir in $PATH
16563 test -z "$as_dir" && as_dir=.
16564 for ac_exec_ext in '' $ac_executable_extensions; do
16565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16566 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16576 TCLSH=$ac_cv_path_TCLSH
16578 if test -n "$TCLSH"; then
16579 echo "$as_me:$LINENO: result: $TCLSH" >&5
16580 echo "${ECHO_T}$TCLSH" >&6
16582 echo "$as_me:$LINENO: result: no" >&5
16583 echo "${ECHO_T}no" >&6
16586 test -n "$TCLSH" && break
16589 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
16590 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
16591 # Let user override test
16592 if test -z "$TCL_CONFIG_SH"; then
16593 pgac_test_dirs="$with_tclconfig"
16595 set X $pgac_test_dirs; shift
16596 if test $# -eq 0; then
16597 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
16598 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
16599 { (exit 1); exit 1; }; }
16600 set X `echo 'puts $auto_path' | $TCLSH`; shift
16604 if test -r "$pgac_dir/tclConfig.sh"; then
16605 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16611 if test -z "$TCL_CONFIG_SH"; then
16612 echo "$as_me:$LINENO: result: no" >&5
16613 echo "${ECHO_T}no" >&6
16614 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
16615 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
16616 { (exit 1); exit 1; }; }
16618 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
16619 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16625 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16626 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16627 eval TCL_LIBS=\"$TCL_LIBS\"
16628 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16629 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16633 # Check for Tk configuration script tkConfig.sh
16634 if test "$with_tk" = yes; then
16635 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16636 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16637 # Let user override test
16638 if test -z "$TK_CONFIG_SH"; then
16639 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16641 set X $pgac_test_dirs; shift
16642 if test $# -eq 0; then
16643 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16644 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16645 { (exit 1); exit 1; }; }
16646 set X `echo 'puts $auto_path' | $TCLSH`; shift
16650 if test -r "$pgac_dir/tkConfig.sh"; then
16651 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16657 if test -z "$TK_CONFIG_SH"; then
16658 echo "$as_me:$LINENO: result: no" >&5
16659 echo "${ECHO_T}no" >&6
16660 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16661 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16662 { (exit 1); exit 1; }; }
16664 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16665 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16671 eval TK_LIBS=\"$TK_LIBS\"
16672 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16673 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16679 # Check for DocBook and tools
16681 for ac_prog in onsgmls nsgmls
16683 # Extract the first word of "$ac_prog", so it can be a program name with args.
16684 set dummy $ac_prog; ac_word=$2
16685 echo "$as_me:$LINENO: checking for $ac_word" >&5
16686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16687 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 if test -n "$NSGMLS"; then
16691 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16694 for as_dir in $PATH
16697 test -z "$as_dir" && as_dir=.
16698 for ac_exec_ext in '' $ac_executable_extensions; do
16699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16700 ac_cv_prog_NSGMLS="$ac_prog"
16701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16709 NSGMLS=$ac_cv_prog_NSGMLS
16710 if test -n "$NSGMLS"; then
16711 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16712 echo "${ECHO_T}$NSGMLS" >&6
16714 echo "$as_me:$LINENO: result: no" >&5
16715 echo "${ECHO_T}no" >&6
16718 test -n "$NSGMLS" && break
16721 for ac_prog in openjade jade
16723 # Extract the first word of "$ac_prog", so it can be a program name with args.
16724 set dummy $ac_prog; ac_word=$2
16725 echo "$as_me:$LINENO: checking for $ac_word" >&5
16726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16727 if test "${ac_cv_prog_JADE+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16730 if test -n "$JADE"; then
16731 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16734 for as_dir in $PATH
16737 test -z "$as_dir" && as_dir=.
16738 for ac_exec_ext in '' $ac_executable_extensions; do
16739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16740 ac_cv_prog_JADE="$ac_prog"
16741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16749 JADE=$ac_cv_prog_JADE
16750 if test -n "$JADE"; then
16751 echo "$as_me:$LINENO: result: $JADE" >&5
16752 echo "${ECHO_T}$JADE" >&6
16754 echo "$as_me:$LINENO: result: no" >&5
16755 echo "${ECHO_T}no" >&6
16758 test -n "$JADE" && break
16762 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16763 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16764 if test "${pgac_cv_check_docbook+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 cat >conftest.sgml <<EOF
16768 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16770 <title>test</title>
16772 <title>random</title>
16774 <title>testsect</title>
16781 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16782 if test $? -eq 0; then
16783 pgac_cv_check_docbook=yes
16785 pgac_cv_check_docbook=no
16787 rm -f conftest.sgml
16789 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16790 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16792 have_docbook=$pgac_cv_check_docbook
16795 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16796 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16797 if test "${pgac_cv_path_stylesheets+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 if test -n "$DOCBOOKSTYLE"; then
16801 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16803 for pgac_prefix in /usr /usr/local /opt; do
16804 for pgac_infix in share lib; do
16805 for pgac_postfix in \
16806 sgml/stylesheets/nwalsh-modular \
16807 sgml/stylesheets/docbook \
16808 sgml/docbook/dsssl/modular \
16809 sgml/docbook/stylesheet/dsssl/modular \
16810 sgml/docbook/dsssl-stylesheets
16812 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16813 if test -r "$pgac_candidate/html/docbook.dsl" \
16814 && test -r "$pgac_candidate/print/docbook.dsl"
16816 pgac_cv_path_stylesheets=$pgac_candidate
16825 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16827 if test -n "$DOCBOOKSTYLE"; then
16828 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16829 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16831 echo "$as_me:$LINENO: result: no" >&5
16832 echo "${ECHO_T}no" >&6
16834 if test -n "$DOCBOOKSTYLE"; then
16835 for ac_prog in collateindex.pl
16837 # Extract the first word of "$ac_prog", so it can be a program name with args.
16838 set dummy $ac_prog; ac_word=$2
16839 echo "$as_me:$LINENO: checking for $ac_word" >&5
16840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16841 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 case $COLLATEINDEX in
16846 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16850 for as_dir in $DOCBOOKSTYLE/bin $PATH
16853 test -z "$as_dir" && as_dir=.
16854 for ac_exec_ext in '' $ac_executable_extensions; do
16855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16856 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16866 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16868 if test -n "$COLLATEINDEX"; then
16869 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16870 echo "${ECHO_T}$COLLATEINDEX" >&6
16872 echo "$as_me:$LINENO: result: no" >&5
16873 echo "${ECHO_T}no" >&6
16876 test -n "$COLLATEINDEX" && break
16880 for ac_prog in collateindex.pl
16882 # Extract the first word of "$ac_prog", so it can be a program name with args.
16883 set dummy $ac_prog; ac_word=$2
16884 echo "$as_me:$LINENO: checking for $ac_word" >&5
16885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16886 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16887 echo $ECHO_N "(cached) $ECHO_C" >&6
16889 case $COLLATEINDEX in
16891 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16895 for as_dir in $PATH
16898 test -z "$as_dir" && as_dir=.
16899 for ac_exec_ext in '' $ac_executable_extensions; do
16900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16901 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16911 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16913 if test -n "$COLLATEINDEX"; then
16914 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16915 echo "${ECHO_T}$COLLATEINDEX" >&6
16917 echo "$as_me:$LINENO: result: no" >&5
16918 echo "${ECHO_T}no" >&6
16921 test -n "$COLLATEINDEX" && break
16925 for ac_prog in sgmlspl
16927 # Extract the first word of "$ac_prog", so it can be a program name with args.
16928 set dummy $ac_prog; ac_word=$2
16929 echo "$as_me:$LINENO: checking for $ac_word" >&5
16930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16931 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 if test -n "$SGMLSPL"; then
16935 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16938 for as_dir in $PATH
16941 test -z "$as_dir" && as_dir=.
16942 for ac_exec_ext in '' $ac_executable_extensions; do
16943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16944 ac_cv_prog_SGMLSPL="$ac_prog"
16945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16953 SGMLSPL=$ac_cv_prog_SGMLSPL
16954 if test -n "$SGMLSPL"; then
16955 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16956 echo "${ECHO_T}$SGMLSPL" >&6
16958 echo "$as_me:$LINENO: result: no" >&5
16959 echo "${ECHO_T}no" >&6
16962 test -n "$SGMLSPL" && break
16967 # prepare build tree if outside source tree
16968 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16969 # Note 2: /bin/pwd might be better than shell's built-in at getting
16970 # a symlink-free name.
16971 if test "$no_create" != yes; then
16972 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16977 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16978 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16979 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16980 || { { echo "$as_me:$LINENO: error: failed" >&5
16981 echo "$as_me: error: failed" >&2;}
16982 { (exit 1); exit 1; }; }
16983 echo "$as_me:$LINENO: result: done" >&5
16984 echo "${ECHO_T}done" >&6
16989 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16992 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
16995 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16998 cat >confcache <<\_ACEOF
16999 # This file is a shell script that caches the results of configure
17000 # tests run on this system so they can be shared between configure
17001 # scripts and configure runs, see configure's option --config-cache.
17002 # It is not useful on other systems. If it contains results you don't
17003 # want to keep, you may remove or edit it.
17005 # config.status only pays attention to the cache file if you give it
17006 # the --recheck option to rerun configure.
17008 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17010 # following values.
17014 # The following way of writing the cache mishandles newlines in values,
17015 # but we know of no workaround that is simple, portable, and efficient.
17016 # So, don't put newlines in cache variables' values.
17017 # Ultrix sh set writes to stderr and can't be redirected directly,
17018 # and sets the high bit in the cache file unless we assign to the vars.
17021 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17023 # `set' does not quote correctly, so add quotes (double-quote
17024 # substitution turns \\\\ into \\, and sed turns \\ into \).
17027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17030 # `set' quotes correctly as required by POSIX, so do not add quotes.
17032 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17039 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17041 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17043 if cmp -s $cache_file confcache; then :; else
17044 if test -w $cache_file; then
17045 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17046 cat confcache >$cache_file
17048 echo "not updating unwritable cache $cache_file"
17053 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17054 # Let make expand exec_prefix.
17055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17059 # trailing colons and then remove the whole line if VPATH becomes empty
17060 # (actually we leave an empty line to preserve line numbers).
17061 if test "x$srcdir" = x.; then
17062 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17063 s/:*\$(srcdir):*/:/;
17064 s/:*\${srcdir}:*/:/;
17066 s/^\([^=]*=[ ]*\):*/\1/;
17072 DEFS=-DHAVE_CONFIG_H
17075 : ${CONFIG_STATUS=./config.status}
17076 ac_clean_files_save=$ac_clean_files
17077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17078 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17079 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17080 cat >$CONFIG_STATUS <<_ACEOF
17082 # Generated by $as_me.
17083 # Run this file to recreate the current configuration.
17084 # Compiler output produced by configure, useful for debugging
17085 # configure, is in config.log if it exists.
17088 SHELL=\${CONFIG_SHELL-$SHELL}
17091 cat >>$CONFIG_STATUS <<\_ACEOF
17093 ## --------------------- ##
17094 ## M4sh Initialization. ##
17095 ## --------------------- ##
17097 # Be Bourne compatible
17098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17101 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17106 # Support unset when possible.
17107 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17113 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17114 { $as_unset LANG || test "${LANG+set}" != set; } ||
17115 { LANG=C; export LANG; }
17116 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17117 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17118 { LC_ALL=C; export LC_ALL; }
17119 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17120 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17121 { LC_TIME=C; export LC_TIME; }
17122 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17123 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17124 { LC_CTYPE=C; export LC_CTYPE; }
17125 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17126 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17127 { LANGUAGE=C; export LANGUAGE; }
17128 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17129 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17130 { LC_COLLATE=C; export LC_COLLATE; }
17131 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17132 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17133 { LC_NUMERIC=C; export LC_NUMERIC; }
17134 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17135 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17136 { LC_MESSAGES=C; export LC_MESSAGES; }
17139 # Name of the executable.
17140 as_me=`(basename "$0") 2>/dev/null ||
17141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17142 X"$0" : 'X\(//\)$' \| \
17143 X"$0" : 'X\(/\)$' \| \
17144 . : '\(.\)' 2>/dev/null ||
17146 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17147 /^X\/\(\/\/\)$/{ s//\1/; q; }
17148 /^X\/\(\/\).*/{ s//\1/; q; }
17151 # PATH needs CR, and LINENO needs CR and PATH.
17152 # Avoid depending upon Character Ranges.
17153 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17154 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17155 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17156 as_cr_digits='0123456789'
17157 as_cr_alnum=$as_cr_Letters$as_cr_digits
17159 # The user is always right.
17160 if test "${PATH_SEPARATOR+set}" != set; then
17161 echo "#! /bin/sh" >conftest.sh
17162 echo "exit 0" >>conftest.sh
17163 chmod +x conftest.sh
17164 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17173 as_lineno_1=$LINENO
17174 as_lineno_2=$LINENO
17175 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17176 test "x$as_lineno_1" != "x$as_lineno_2" &&
17177 test "x$as_lineno_3" = "x$as_lineno_2" || {
17178 # Find who we are. Look in the path if we contain no path at all
17181 *[\\/]* ) as_myself=$0 ;;
17182 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17183 for as_dir in $PATH
17186 test -z "$as_dir" && as_dir=.
17187 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17192 # We did not find ourselves, most probably we were run as `sh COMMAND'
17193 # in which case we are not to be found in the path.
17194 if test "x$as_myself" = x; then
17197 if test ! -f "$as_myself"; then
17198 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17199 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17200 { (exit 1); exit 1; }; }
17202 case $CONFIG_SHELL in
17204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17208 test -z "$as_dir" && as_dir=.
17209 for as_base in sh bash ksh sh5; do
17212 if ("$as_dir/$as_base" -c '
17213 as_lineno_1=$LINENO
17214 as_lineno_2=$LINENO
17215 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17216 test "x$as_lineno_1" != "x$as_lineno_2" &&
17217 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17218 CONFIG_SHELL=$as_dir/$as_base
17219 export CONFIG_SHELL
17220 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17228 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17229 # uniformly replaced by the line number. The first 'sed' inserts a
17230 # line-number line before each line; the second 'sed' does the real
17231 # work. The second script uses 'N' to pair each line-number line
17232 # with the numbered line, and appends trailing '-' during
17233 # substitution so that $LINENO is not a special case at line end.
17234 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17235 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17236 sed '=' <$as_myself |
17241 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17244 s,^['$as_cr_digits']*\n,,
17245 ' >$as_me.lineno &&
17246 chmod +x $as_me.lineno ||
17247 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17248 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17249 { (exit 1); exit 1; }; }
17251 # Don't try to exec as it changes $[0], causing all sort of problems
17252 # (the dirname of $[0] is not the place where we might find the
17253 # original and so on. Autoconf is especially sensible to this).
17255 # Exit status is that of the last command.
17260 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17261 *c*,-n*) ECHO_N= ECHO_C='
17263 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17264 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17267 if expr a : '\(a\)' >/dev/null 2>&1; then
17273 rm -f conf$$ conf$$.exe conf$$.file
17275 if ln -s conf$$.file conf$$ 2>/dev/null; then
17276 # We could just check for DJGPP; but this test a) works b) is more generic
17277 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17278 if test -f conf$$.exe; then
17279 # Don't use ln at all; we don't have any links
17284 elif ln conf$$.file conf$$ 2>/dev/null; then
17289 rm -f conf$$ conf$$.exe conf$$.file
17291 as_executable_p="test -f"
17293 # Sed expression to map a string onto a valid CPP name.
17294 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17296 # Sed expression to map a string onto a valid variable name.
17297 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17301 # We need space, tab and new line, in precisely that order.
17307 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17311 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17312 # report actual input values of CONFIG_FILES etc. instead of their
17313 # values after options handling. Logging --version etc. is OK.
17317 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17318 ## Running $as_me. ##
17323 This file was extended by PostgreSQL $as_me 7.4devel, which was
17324 generated by GNU Autoconf 2.53. Invocation command line was
17326 CONFIG_FILES = $CONFIG_FILES
17327 CONFIG_HEADERS = $CONFIG_HEADERS
17328 CONFIG_LINKS = $CONFIG_LINKS
17329 CONFIG_COMMANDS = $CONFIG_COMMANDS
17333 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17337 # Files that config.status was made for.
17338 if test -n "$ac_config_files"; then
17339 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17342 if test -n "$ac_config_headers"; then
17343 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17346 if test -n "$ac_config_links"; then
17347 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17350 if test -n "$ac_config_commands"; then
17351 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17354 cat >>$CONFIG_STATUS <<\_ACEOF
17357 \`$as_me' instantiates files from templates according to the
17358 current configuration.
17360 Usage: $0 [OPTIONS] [FILE]...
17362 -h, --help print this help, then exit
17363 -V, --version print version number, then exit
17364 -d, --debug don't remove temporary files
17365 --recheck update $as_me by reconfiguring in the same conditions
17366 --file=FILE[:TEMPLATE]
17367 instantiate the configuration file FILE
17368 --header=FILE[:TEMPLATE]
17369 instantiate the configuration header FILE
17371 Configuration files:
17374 Configuration headers:
17377 Configuration links:
17380 Report bugs to <bug-autoconf@gnu.org>."
17383 cat >>$CONFIG_STATUS <<_ACEOF
17385 PostgreSQL config.status 7.4devel
17386 configured by $0, generated by GNU Autoconf 2.53,
17387 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17389 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17390 Free Software Foundation, Inc.
17391 This config.status script is free software; the Free Software Foundation
17392 gives unlimited permission to copy, distribute and modify it."
17396 cat >>$CONFIG_STATUS <<\_ACEOF
17397 # If no file are specified by the user, then we need to provide default
17398 # value. By we need to know if files were specified by the user.
17404 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17405 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17407 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17411 *) # This is not an option, so the user has probably given explicit
17413 ac_need_defaults=false;;
17417 # Handling of the options.
17419 cat >>$CONFIG_STATUS <<_ACEOF
17420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17421 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17422 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17424 cat >>$CONFIG_STATUS <<\_ACEOF
17425 --version | --vers* | -V )
17426 echo "$ac_cs_version"; exit 0 ;;
17428 # Conflict between --help and --header
17429 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17430 Try \`$0 --help' for more information." >&5
17431 echo "$as_me: error: ambiguous option: $1
17432 Try \`$0 --help' for more information." >&2;}
17433 { (exit 1); exit 1; }; };;
17434 --help | --hel | -h )
17435 echo "$ac_cs_usage"; exit 0 ;;
17436 --debug | --d* | -d )
17438 --file | --fil | --fi | --f )
17440 CONFIG_FILES="$CONFIG_FILES $1"
17441 ac_need_defaults=false;;
17442 --header | --heade | --head | --hea )
17444 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17445 ac_need_defaults=false;;
17447 # This is an error.
17448 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17449 Try \`$0 --help' for more information." >&5
17450 echo "$as_me: error: unrecognized option: $1
17451 Try \`$0 --help' for more information." >&2;}
17452 { (exit 1); exit 1; }; } ;;
17454 *) ac_config_targets="$ac_config_targets $1" ;;
17466 cat >>$CONFIG_STATUS <<\_ACEOF
17467 for ac_config_target in $ac_config_targets
17469 case "$ac_config_target" in
17470 # Handling of arguments.
17471 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17472 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17473 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17474 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17475 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17476 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17477 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17478 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17479 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17480 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17481 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17482 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17483 { (exit 1); exit 1; }; };;
17487 # If the user did not use the arguments to specify the items to instantiate,
17488 # then the envvar interface is used. Set only those that are not.
17489 # We use the long form for the default assignment because of an extremely
17490 # bizarre bug on SunOS 4.1.3.
17491 if $ac_need_defaults; then
17492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17493 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17494 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17497 # Create a temporary directory, and hook for its removal unless debugging.
17500 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17501 trap '{ (exit 1); exit 1; }' 1 2 13 15
17504 # Create a (secure) tmp directory for tmp files.
17507 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17508 test -n "$tmp" && test -d "$tmp"
17511 tmp=$TMPDIR/cs$$-$RANDOM
17512 (umask 077 && mkdir $tmp)
17515 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17516 { (exit 1); exit 1; }
17521 cat >>$CONFIG_STATUS <<_ACEOF
17524 # CONFIG_FILES section.
17527 # No need to generate the scripts if there are no CONFIG_FILES.
17528 # This happens for instance when ./config.status config.h
17529 if test -n "\$CONFIG_FILES"; then
17530 # Protect against being on the right side of a sed subst in config.status.
17531 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17532 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17533 s,@SHELL@,$SHELL,;t t
17534 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17535 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17536 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17537 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17538 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17539 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17540 s,@exec_prefix@,$exec_prefix,;t t
17541 s,@prefix@,$prefix,;t t
17542 s,@program_transform_name@,$program_transform_name,;t t
17543 s,@bindir@,$bindir,;t t
17544 s,@sbindir@,$sbindir,;t t
17545 s,@libexecdir@,$libexecdir,;t t
17546 s,@datadir@,$datadir,;t t
17547 s,@sysconfdir@,$sysconfdir,;t t
17548 s,@sharedstatedir@,$sharedstatedir,;t t
17549 s,@localstatedir@,$localstatedir,;t t
17550 s,@libdir@,$libdir,;t t
17551 s,@includedir@,$includedir,;t t
17552 s,@oldincludedir@,$oldincludedir,;t t
17553 s,@infodir@,$infodir,;t t
17554 s,@mandir@,$mandir,;t t
17555 s,@build_alias@,$build_alias,;t t
17556 s,@host_alias@,$host_alias,;t t
17557 s,@target_alias@,$target_alias,;t t
17558 s,@DEFS@,$DEFS,;t t
17559 s,@ECHO_C@,$ECHO_C,;t t
17560 s,@ECHO_N@,$ECHO_N,;t t
17561 s,@ECHO_T@,$ECHO_T,;t t
17562 s,@LIBS@,$LIBS,;t t
17563 s,@docdir@,$docdir,;t t
17564 s,@configure_args@,$configure_args,;t t
17565 s,@build@,$build,;t t
17566 s,@build_cpu@,$build_cpu,;t t
17567 s,@build_vendor@,$build_vendor,;t t
17568 s,@build_os@,$build_os,;t t
17569 s,@host@,$host,;t t
17570 s,@host_cpu@,$host_cpu,;t t
17571 s,@host_vendor@,$host_vendor,;t t
17572 s,@host_os@,$host_os,;t t
17573 s,@PORTNAME@,$PORTNAME,;t t
17575 s,@enable_nls@,$enable_nls,;t t
17576 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
17577 s,@default_port@,$default_port,;t t
17578 s,@enable_shared@,$enable_shared,;t t
17579 s,@enable_rpath@,$enable_rpath,;t t
17580 s,@enable_debug@,$enable_debug,;t t
17582 s,@CFLAGS@,$CFLAGS,;t t
17583 s,@LDFLAGS@,$LDFLAGS,;t t
17584 s,@CPPFLAGS@,$CPPFLAGS,;t t
17585 s,@ac_ct_CC@,$ac_ct_CC,;t t
17586 s,@EXEEXT@,$EXEEXT,;t t
17587 s,@OBJEXT@,$OBJEXT,;t t
17590 s,@autodepend@,$autodepend,;t t
17591 s,@INCLUDES@,$INCLUDES,;t t
17592 s,@with_threads@,$with_threads,;t t
17593 s,@with_tcl@,$with_tcl,;t t
17594 s,@with_tk@,$with_tk,;t t
17595 s,@with_perl@,$with_perl,;t t
17596 s,@with_python@,$with_python,;t t
17598 s,@with_java@,$with_java,;t t
17599 s,@with_krb4@,$with_krb4,;t t
17600 s,@with_krb5@,$with_krb5,;t t
17601 s,@krb_srvtab@,$krb_srvtab,;t t
17602 s,@with_pam@,$with_pam,;t t
17603 s,@with_rendezvous@,$with_rendezvous,;t t
17604 s,@with_openssl@,$with_openssl,;t t
17605 s,@ELF_SYS@,$ELF_SYS,;t t
17606 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
17607 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
17609 s,@FLEX@,$FLEX,;t t
17610 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
17611 s,@LN_S@,$LN_S,;t t
17613 s,@with_gnu_ld@,$with_gnu_ld,;t t
17614 s,@ld_R_works@,$ld_R_works,;t t
17615 s,@RANLIB@,$RANLIB,;t t
17616 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17617 s,@LORDER@,$LORDER,;t t
17619 s,@STRIP@,$STRIP,;t t
17620 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17621 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
17622 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
17623 s,@YACC@,$YACC,;t t
17624 s,@YFLAGS@,$YFLAGS,;t t
17625 s,@PERL@,$PERL,;t t
17626 s,@perl_archlibexp@,$perl_archlibexp,;t t
17627 s,@perl_privlibexp@,$perl_privlibexp,;t t
17628 s,@perl_useshrplib@,$perl_useshrplib,;t t
17629 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17630 s,@PYTHON@,$PYTHON,;t t
17631 s,@python_version@,$python_version,;t t
17632 s,@python_prefix@,$python_prefix,;t t
17633 s,@python_execprefix@,$python_execprefix,;t t
17634 s,@python_configdir@,$python_configdir,;t t
17635 s,@python_moduledir@,$python_moduledir,;t t
17636 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17637 s,@python_includespec@,$python_includespec,;t t
17638 s,@python_libspec@,$python_libspec,;t t
17639 s,@LIBOBJS@,$LIBOBJS,;t t
17640 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17641 s,@MSGFMT@,$MSGFMT,;t t
17642 s,@MSGMERGE@,$MSGMERGE,;t t
17643 s,@XGETTEXT@,$XGETTEXT,;t t
17644 s,@localedir@,$localedir,;t t
17645 s,@TCLSH@,$TCLSH,;t t
17646 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17647 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17648 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17649 s,@TCL_LIBS@,$TCL_LIBS,;t t
17650 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17651 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17652 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17653 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17654 s,@TK_LIBS@,$TK_LIBS,;t t
17655 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17656 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17657 s,@NSGMLS@,$NSGMLS,;t t
17658 s,@JADE@,$JADE,;t t
17659 s,@have_docbook@,$have_docbook,;t t
17660 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17661 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17662 s,@SGMLSPL@,$SGMLSPL,;t t
17663 s,@vpath_build@,$vpath_build,;t t
17668 cat >>$CONFIG_STATUS <<\_ACEOF
17669 # Split the substitutions into bite-sized pieces for seds with
17670 # small command number limits, like on Digital OSF/1 and HP-UX.
17671 ac_max_sed_lines=48
17672 ac_sed_frag=1 # Number of current file.
17673 ac_beg=1 # First line for current file.
17674 ac_end=$ac_max_sed_lines # Line after last line for current file.
17677 while $ac_more_lines; do
17678 if test $ac_beg -gt 1; then
17679 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17681 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17683 if test ! -s $tmp/subs.frag; then
17684 ac_more_lines=false
17686 # The purpose of the label and of the branching condition is to
17687 # speed up the sed processing (if there are no `@' at all, there
17688 # is no need to browse any of the substitutions).
17689 # These are the two extra sed commands mentioned above.
17691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17692 if test -z "$ac_sed_cmds"; then
17693 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17695 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17697 ac_sed_frag=`expr $ac_sed_frag + 1`
17699 ac_end=`expr $ac_end + $ac_max_sed_lines`
17702 if test -z "$ac_sed_cmds"; then
17705 fi # test -n "$CONFIG_FILES"
17708 cat >>$CONFIG_STATUS <<\_ACEOF
17709 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17710 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17712 - | *:- | *:-:* ) # input from stdin
17714 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17715 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17716 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17717 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17718 * ) ac_file_in=$ac_file.in ;;
17721 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17722 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17724 X"$ac_file" : 'X\(//\)[^/]' \| \
17725 X"$ac_file" : 'X\(//\)$' \| \
17726 X"$ac_file" : 'X\(/\)' \| \
17727 . : '\(.\)' 2>/dev/null ||
17729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17731 /^X\(\/\/\)$/{ s//\1/; q; }
17732 /^X\(\/\).*/{ s//\1/; q; }
17734 { case "$ac_dir" in
17735 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17739 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17740 case $as_mkdir_dir in
17741 # Skip DOS drivespec
17742 ?:) as_incr_dir=$as_mkdir_dir ;;
17744 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17745 test -d "$as_incr_dir" ||
17746 mkdir "$as_incr_dir" ||
17747 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17748 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17749 { (exit 1); exit 1; }; }
17756 if test "$ac_dir" != .; then
17757 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17758 # A "../" for each directory in $ac_dir_suffix.
17759 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17761 ac_dir_suffix= ac_top_builddir=
17765 .) # No --srcdir option. We are building in place.
17767 if test -z "$ac_top_builddir"; then
17770 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17772 [\\/]* | ?:[\\/]* ) # Absolute path.
17773 ac_srcdir=$srcdir$ac_dir_suffix;
17774 ac_top_srcdir=$srcdir ;;
17775 *) # Relative path.
17776 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17777 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17779 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17781 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17782 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17783 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17784 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17788 if test x"$ac_file" != x-; then
17789 { echo "$as_me:$LINENO: creating $ac_file" >&5
17790 echo "$as_me: creating $ac_file" >&6;}
17793 # Let's still pretend it is `configure' which instantiates (i.e., don't
17794 # use $as_me), people would be surprised to read:
17795 # /* config.h. Generated by config.status. */
17796 if test x"$ac_file" = x-; then
17799 configure_input="$ac_file. "
17801 configure_input=$configure_input"Generated from `echo $ac_file_in |
17802 sed 's,.*/,,'` by configure."
17804 # First look for the input files in the build tree, otherwise in the
17806 ac_file_inputs=`IFS=:
17807 for f in $ac_file_in; do
17809 -) echo $tmp/stdin ;;
17811 # Absolute (can't be DOS-style, as IFS=:)
17812 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17813 echo "$as_me: error: cannot find input file: $f" >&2;}
17814 { (exit 1); exit 1; }; }
17817 if test -f "$f"; then
17820 elif test -f "$srcdir/$f"; then
17825 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17826 echo "$as_me: error: cannot find input file: $f" >&2;}
17827 { (exit 1); exit 1; }; }
17830 done` || { (exit 1); exit 1; }
17832 cat >>$CONFIG_STATUS <<_ACEOF
17836 cat >>$CONFIG_STATUS <<\_ACEOF
17838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17839 s,@configure_input@,$configure_input,;t t
17840 s,@srcdir@,$ac_srcdir,;t t
17841 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17842 s,@top_srcdir@,$ac_top_srcdir,;t t
17843 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17844 s,@builddir@,$ac_builddir,;t t
17845 s,@abs_builddir@,$ac_abs_builddir,;t t
17846 s,@top_builddir@,$ac_top_builddir,;t t
17847 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17848 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17850 if test x"$ac_file" != x-; then
17851 mv $tmp/out $ac_file
17859 cat >>$CONFIG_STATUS <<\_ACEOF
17862 # CONFIG_HEADER section.
17865 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17866 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17868 # ac_d sets the value in "#define NAME VALUE" lines.
17869 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17870 ac_dB='[ ].*$,\1#\2'
17873 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17874 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17875 ac_uB='$,\1#\2define\3'
17879 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17880 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17882 - | *:- | *:-:* ) # input from stdin
17884 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17885 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17886 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17887 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17888 * ) ac_file_in=$ac_file.in ;;
17891 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17892 echo "$as_me: creating $ac_file" >&6;}
17894 # First look for the input files in the build tree, otherwise in the
17896 ac_file_inputs=`IFS=:
17897 for f in $ac_file_in; do
17899 -) echo $tmp/stdin ;;
17901 # Absolute (can't be DOS-style, as IFS=:)
17902 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17903 echo "$as_me: error: cannot find input file: $f" >&2;}
17904 { (exit 1); exit 1; }; }
17907 if test -f "$f"; then
17910 elif test -f "$srcdir/$f"; then
17915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17916 echo "$as_me: error: cannot find input file: $f" >&2;}
17917 { (exit 1); exit 1; }; }
17920 done` || { (exit 1); exit 1; }
17921 # Remove the trailing spaces.
17922 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17926 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17927 # `conftest.undefs', that substitutes the proper values into
17928 # config.h.in to produce config.h. The first handles `#define'
17929 # templates, and the second `#undef' templates.
17930 # And first: Protect against being on the right side of a sed subst in
17931 # config.status. Protect against being in an unquoted here document
17932 # in config.status.
17933 rm -f conftest.defines conftest.undefs
17934 # Using a here document instead of a string reduces the quoting nightmare.
17935 # Putting comments in sed scripts is not portable.
17937 # `end' is used to avoid that the second main sed command (meant for
17938 # 0-ary CPP macros) applies to n-ary macro definitions.
17939 # See the Autoconf documentation for `clear'.
17940 cat >confdef2sed.sed <<\_ACEOF
17945 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17947 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17950 # If some macros were called several times there might be several times
17951 # the same #defines, which is useless. Nevertheless, we may not want to
17952 # sort them, since we want the *last* AC-DEFINE to be honored.
17953 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17954 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17955 rm -f confdef2sed.sed
17957 # This sed command replaces #undef with comments. This is necessary, for
17958 # example, in the case of _POSIX_SOURCE, which is predefined and required
17959 # on some systems where configure will not decide to define it.
17960 cat >>conftest.undefs <<\_ACEOF
17961 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17964 # Break up conftest.defines because some shells have a limit on the size
17965 # of here documents, and old seds have small limits too (100 cmds).
17966 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17967 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17968 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17969 echo ' :' >>$CONFIG_STATUS
17970 rm -f conftest.tail
17971 while grep . conftest.defines >/dev/null
17973 # Write a limited-size here document to $tmp/defines.sed.
17974 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17975 # Speed up: don't consider the non `#define' lines.
17976 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17977 # Work around the forget-to-reset-the-flag bug.
17978 echo 't clr' >>$CONFIG_STATUS
17979 echo ': clr' >>$CONFIG_STATUS
17980 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17982 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17984 mv $tmp/out $tmp/in
17986 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17987 rm -f conftest.defines
17988 mv conftest.tail conftest.defines
17990 rm -f conftest.defines
17991 echo ' fi # egrep' >>$CONFIG_STATUS
17992 echo >>$CONFIG_STATUS
17994 # Break up conftest.undefs because some shells have a limit on the size
17995 # of here documents, and old seds have small limits too (100 cmds).
17996 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17997 rm -f conftest.tail
17998 while grep . conftest.undefs >/dev/null
18000 # Write a limited-size here document to $tmp/undefs.sed.
18001 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18002 # Speed up: don't consider the non `#undef'
18003 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18004 # Work around the forget-to-reset-the-flag bug.
18005 echo 't clr' >>$CONFIG_STATUS
18006 echo ': clr' >>$CONFIG_STATUS
18007 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18009 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18011 mv $tmp/out $tmp/in
18013 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18014 rm -f conftest.undefs
18015 mv conftest.tail conftest.undefs
18017 rm -f conftest.undefs
18019 cat >>$CONFIG_STATUS <<\_ACEOF
18020 # Let's still pretend it is `configure' which instantiates (i.e., don't
18021 # use $as_me), people would be surprised to read:
18022 # /* config.h. Generated by config.status. */
18023 if test x"$ac_file" = x-; then
18024 echo "/* Generated by configure. */" >$tmp/config.h
18026 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18028 cat $tmp/in >>$tmp/config.h
18030 if test x"$ac_file" != x-; then
18031 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18032 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18033 echo "$as_me: $ac_file is unchanged" >&6;}
18035 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18037 X"$ac_file" : 'X\(//\)[^/]' \| \
18038 X"$ac_file" : 'X\(//\)$' \| \
18039 X"$ac_file" : 'X\(/\)' \| \
18040 . : '\(.\)' 2>/dev/null ||
18042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18044 /^X\(\/\/\)$/{ s//\1/; q; }
18045 /^X\(\/\).*/{ s//\1/; q; }
18047 { case "$ac_dir" in
18048 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18052 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18053 case $as_mkdir_dir in
18054 # Skip DOS drivespec
18055 ?:) as_incr_dir=$as_mkdir_dir ;;
18057 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18058 test -d "$as_incr_dir" ||
18059 mkdir "$as_incr_dir" ||
18060 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18061 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18062 { (exit 1); exit 1; }; }
18068 mv $tmp/config.h $ac_file
18072 rm -f $tmp/config.h
18074 # Run the commands associated with the file.
18076 src/include/pg_config.h )
18077 # Update timestamp for pg_config.h (see Makefile.global)
18078 echo >src/include/stamp-h
18083 cat >>$CONFIG_STATUS <<\_ACEOF
18086 # CONFIG_LINKS section.
18089 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18090 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18091 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18093 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18094 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18096 if test ! -r $srcdir/$ac_source; then
18097 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18098 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18099 { (exit 1); exit 1; }; }
18103 # Make relative symlinks.
18104 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18105 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18106 X"$ac_dest" : 'X\(//\)[^/]' \| \
18107 X"$ac_dest" : 'X\(//\)$' \| \
18108 X"$ac_dest" : 'X\(/\)' \| \
18109 . : '\(.\)' 2>/dev/null ||
18111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18113 /^X\(\/\/\)$/{ s//\1/; q; }
18114 /^X\(\/\).*/{ s//\1/; q; }
18116 { case "$ac_dest_dir" in
18117 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18120 as_dummy="$ac_dest_dir"
18121 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18122 case $as_mkdir_dir in
18123 # Skip DOS drivespec
18124 ?:) as_incr_dir=$as_mkdir_dir ;;
18126 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18127 test -d "$as_incr_dir" ||
18128 mkdir "$as_incr_dir" ||
18129 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18130 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18131 { (exit 1); exit 1; }; }
18138 if test "$ac_dest_dir" != .; then
18139 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18140 # A "../" for each directory in $ac_dir_suffix.
18141 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18143 ac_dir_suffix= ac_top_builddir=
18147 .) # No --srcdir option. We are building in place.
18149 if test -z "$ac_top_builddir"; then
18152 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18154 [\\/]* | ?:[\\/]* ) # Absolute path.
18155 ac_srcdir=$srcdir$ac_dir_suffix;
18156 ac_top_srcdir=$srcdir ;;
18157 *) # Relative path.
18158 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18159 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18161 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18163 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18164 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18165 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18166 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18170 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18171 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18174 # Make a symlink if possible; otherwise try a hard link.
18175 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18176 ln $srcdir/$ac_source $ac_dest ||
18177 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18178 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18179 { (exit 1); exit 1; }; }
18183 cat >>$CONFIG_STATUS <<\_ACEOF
18185 { (exit 0); exit 0; }
18187 chmod +x $CONFIG_STATUS
18188 ac_clean_files=$ac_clean_files_save
18191 # configure is writing to config.log, and then calls config.status.
18192 # config.status does its own redirection, appending to config.log.
18193 # Unfortunately, on DOS this fails, as config.log is still kept open
18194 # by configure, so config.status won't be able to write to it; its
18195 # output is simply discarded. So we exec the FD to /dev/null,
18196 # effectively closing config.log, so it can be properly (re)opened and
18197 # appended to by config.status. When coming back to configure, we
18198 # need to make the FD available again.
18199 if test "$no_create" != yes; then
18202 $SHELL $CONFIG_STATUS || ac_cs_success=false
18204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18205 # would make configure fail if this is the last instruction.
18206 $ac_cs_success || { (exit 1); exit 1; }