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-maxbackends=N set default maximum number of connections 32
859 --with-tcl build Tcl and Tk interfaces
860 --without-tk do not build Tk interfaces if Tcl is enabled
861 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862 --with-tkconfig=DIR tkConfig.sh is in DIR
863 --with-perl build Perl 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-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
871 --without-readline do not use Readline
872 --without-zlib do not use Zlib
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 location of DocBook stylesheets
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <pgsql-bugs@postgresql.org>.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 ac_dir_suffix= ac_top_builddir=
909 .) # No --srcdir option. We are building in place.
911 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
952 PostgreSQL configure 7.4devel
953 generated by GNU Autoconf 2.53
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
960 Copyright 2002 PostgreSQL Global Development Group
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by PostgreSQL $as_me 7.4devel, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 if test -s confdefs.h; then
1082 sed "/^$/d" confdefs.h
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1255 for ac_dir in config $srcdir/config; do
1256 if test -f $ac_dir/install-sh; then
1258 ac_install_sh="$ac_aux_dir/install-sh -c"
1260 elif test -f $ac_dir/install.sh; then
1262 ac_install_sh="$ac_aux_dir/install.sh -c"
1264 elif test -f $ac_dir/shtool; then
1266 ac_install_sh="$ac_aux_dir/shtool install -c"
1270 if test -z "$ac_aux_dir"; then
1271 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273 { (exit 1); exit 1; }; }
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1280 configure_args=$ac_configure_args
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293 { (exit 1); exit 1; }; }
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302 ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306 { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310 { (exit 1); exit 1; }; }
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328 ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353 withval="$with_template"
1357 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359 { (exit 1); exit 1; }; }
1362 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364 { (exit 1); exit 1; }; }
1369 list) echo; ls "$srcdir/src/template"; exit;;
1370 *) if test -f "$srcdir/src/template/$with_template" ; then
1373 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375 { (exit 1); exit 1; }; }
1384 # --with-template not given
1387 aix*) template=aix ;;
1388 beos*) template=beos ;;
1389 bsdi*) template=bsdi ;;
1390 cygwin*) template=cygwin ;;
1391 darwin*) template=darwin ;;
1392 dgux*) template=dgux ;;
1393 freebsd*) template=freebsd ;;
1394 hpux*) template=hpux ;;
1395 irix*) template=irix5 ;;
1396 linux*) template=linux ;;
1397 mingw*) template=win ;;
1398 netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400 openbsd*) template=openbsd ;;
1401 osf*) template=osf ;;
1402 qnx*) template=qnx4 ;;
1403 sco*) template=sco ;;
1404 solaris*) template=solaris ;;
1405 sunos*) template=sunos4 ;;
1407 case $host_vendor in
1408 univel) template=univel ;;
1410 sysv4*) template=svr4 ;;
1411 sysv5*) template=unixware ;;
1412 ultrix*) template=ultrix4 ;;
1415 if test x"$template" = x"" ; then
1416 { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this. Include the above 'checking host system type...'
1425 *******************************************************************
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this. Include the above 'checking host system type...'
1436 *******************************************************************
1438 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1451 # Pick right test-and-set (TAS) code. Most platforms have inline
1452 # assembler code in src/include/storage/s_lock.h, so we just use
1453 # a dummy file here.
1455 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1456 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1457 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1458 *) need_tas=no; tas_file=dummy.s ;;
1460 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1463 if test "$need_tas" = yes ; then
1471 ## Command line options
1476 # Add non-standard directories to the include path
1481 # Check whether --with-includes or --without-includes was given.
1482 if test "${with_includes+set}" = set; then
1483 withval="$with_includes"
1487 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1488 echo "$as_me: error: argument required for --with-includes option" >&2;}
1489 { (exit 1); exit 1; }; }
1492 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1493 echo "$as_me: error: argument required for --with-includes option" >&2;}
1494 { (exit 1); exit 1; }; }
1506 # Add non-standard directories to the library search path
1511 # Check whether --with-libraries or --without-libraries was given.
1512 if test "${with_libraries+set}" = set; then
1513 withval="$with_libraries"
1517 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1518 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1519 { (exit 1); exit 1; }; }
1522 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1523 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1524 { (exit 1); exit 1; }; }
1527 LIBRARY_DIRS=$withval
1537 # Check whether --with-libs or --without-libs was given.
1538 if test "${with_libs+set}" = set; then
1539 withval="$with_libs"
1543 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1544 echo "$as_me: error: argument required for --with-libs option" >&2;}
1545 { (exit 1); exit 1; }; }
1548 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1549 echo "$as_me: error: argument required for --with-libs option" >&2;}
1550 { (exit 1); exit 1; }; }
1553 LIBRARY_DIRS=$withval
1562 # 64-bit integer date/time storage (--enable-integer-datetimes)
1564 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1565 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1568 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1569 if test "${enable_integer_datetimes+set}" = set; then
1570 enableval="$enable_integer_datetimes"
1575 cat >>confdefs.h <<\_ACEOF
1576 #define USE_INTEGER_DATETIMES 1
1584 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1585 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1586 { (exit 1); exit 1; }; }
1591 enable_integer_datetimes=no
1595 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1596 echo "${ECHO_T}$enable_integer_datetimes" >&6
1599 # Character set recode (--enable-recode)
1601 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1602 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1605 # Check whether --enable-recode or --disable-recode was given.
1606 if test "${enable_recode+set}" = set; then
1607 enableval="$enable_recode"
1612 cat >>confdefs.h <<\_ACEOF
1613 #define CYR_RECODE 1
1621 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1622 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1623 { (exit 1); exit 1; }; }
1632 echo "$as_me:$LINENO: result: $enable_recode" >&5
1633 echo "${ECHO_T}$enable_recode" >&6
1639 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1640 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1643 # Check whether --enable-nls or --disable-nls was given.
1644 if test "${enable_nls+set}" = set; then
1645 enableval="$enable_nls"
1656 WANTED_LANGUAGES=$enableval
1665 if test "$enable_nls" = yes; then
1667 cat >>confdefs.h <<\_ACEOF
1668 #define ENABLE_NLS 1
1673 echo "$as_me:$LINENO: result: $enable_nls" >&5
1674 echo "${ECHO_T}$enable_nls" >&6
1679 # Default port number (--with-pgport), default 5432
1681 echo "$as_me:$LINENO: checking for default port number" >&5
1682 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1686 # Check whether --with-pgport or --without-pgport was given.
1687 if test "${with_pgport+set}" = set; then
1688 withval="$with_pgport"
1692 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1693 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1694 { (exit 1); exit 1; }; }
1697 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1698 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1699 { (exit 1); exit 1; }; }
1702 default_port=$withval
1710 echo "$as_me:$LINENO: result: $default_port" >&5
1711 echo "${ECHO_T}$default_port" >&6
1712 # Need both of these because some places want an integer and some a string
1714 cat >>confdefs.h <<_ACEOF
1715 #define DEF_PGPORT ${default_port}
1719 cat >>confdefs.h <<_ACEOF
1720 #define DEF_PGPORT_STR "${default_port}"
1726 # Maximum number of allowed connections (--with-maxbackends), default 32
1728 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1729 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1733 # Check whether --with-maxbackends or --without-maxbackends was given.
1734 if test "${with_maxbackends+set}" = set; then
1735 withval="$with_maxbackends"
1739 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1740 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1741 { (exit 1); exit 1; }; }
1744 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1745 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1746 { (exit 1); exit 1; }; }
1757 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1758 echo "${ECHO_T}$with_maxbackends" >&6
1760 cat >>confdefs.h <<_ACEOF
1761 #define DEF_MAXBACKENDS $with_maxbackends
1767 # Option to disable shared libraries
1771 # Check whether --enable-shared or --disable-shared was given.
1772 if test "${enable_shared+set}" = set; then
1773 enableval="$enable_shared"
1783 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1784 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1785 { (exit 1); exit 1; }; }
1797 # '-rpath'-like feature can be disabled
1801 # Check whether --enable-rpath or --disable-rpath was given.
1802 if test "${enable_rpath+set}" = set; then
1803 enableval="$enable_rpath"
1813 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1814 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1815 { (exit 1); exit 1; }; }
1828 # --enable-debug adds -g to compiler flags
1832 # Check whether --enable-debug or --disable-debug was given.
1833 if test "${enable_debug+set}" = set; then
1834 enableval="$enable_debug"
1844 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1845 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1846 { (exit 1); exit 1; }; }
1861 # For historical reasons you can also use --with-CC to specify the C compiler
1862 # to use, although the standard way to do this is to set the CC environment
1867 # Check whether --with-CC or --without-CC was given.
1868 if test "${with_CC+set}" = set; then
1873 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1874 echo "$as_me: error: argument required for --with-CC option" >&2;}
1875 { (exit 1); exit 1; }; }
1878 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1879 echo "$as_me: error: argument required for --with-CC option" >&2;}
1880 { (exit 1); exit 1; }; }
1891 aix) pgac_cc_list="gcc xlc";;
1892 irix) pgac_cc_list="cc";; # no gcc
1893 *) pgac_cc_list="gcc cc";;
1897 ac_cpp='$CPP $CPPFLAGS'
1898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901 if test -n "$ac_tool_prefix"; then
1902 for ac_prog in $pgac_cc_list
1904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1906 echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1908 if test "${ac_cv_prog_CC+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 if test -n "$CC"; then
1912 ac_cv_prog_CC="$CC" # Let the user override the test.
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 test -z "$as_dir" && as_dir=.
1919 for ac_exec_ext in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 if test -n "$CC"; then
1932 echo "$as_me:$LINENO: result: $CC" >&5
1933 echo "${ECHO_T}$CC" >&6
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1939 test -n "$CC" && break
1942 if test -z "$CC"; then
1944 for ac_prog in $pgac_cc_list
1946 # Extract the first word of "$ac_prog", so it can be a program name with args.
1947 set dummy $ac_prog; ac_word=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 if test -n "$ac_ct_CC"; then
1954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 test -z "$as_dir" && as_dir=.
1961 for ac_exec_ext in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CC="$ac_prog"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1973 if test -n "$ac_ct_CC"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1975 echo "${ECHO_T}$ac_ct_CC" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1981 test -n "$ac_ct_CC" && break
1988 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1989 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1990 { (exit 1); exit 1; }; }
1992 # Provide some information about the compiler.
1993 echo "$as_me:$LINENO:" \
1994 "checking for C compiler version" >&5
1995 ac_compiler=`set X $ac_compile; echo $2`
1996 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1997 (eval $ac_compiler --version </dev/null >&5) 2>&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }
2001 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2002 (eval $ac_compiler -v </dev/null >&5) 2>&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }
2006 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2007 (eval $ac_compiler -V </dev/null >&5) 2>&5
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2014 #include "confdefs.h"
2016 #ifdef F77_DUMMY_MAIN
2020 int F77_DUMMY_MAIN() { return 1; }
2030 ac_clean_files_save=$ac_clean_files
2031 ac_clean_files="$ac_clean_files a.out a.exe"
2032 # Try to create an executable without -o first, disregard a.out.
2033 # It will help us diagnose broken compilers, and finding out an intuition
2035 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2036 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2037 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2038 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2039 (eval $ac_link_default) 2>&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); }; then
2043 # Find the output, starting from the most likely. This scheme is
2044 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2047 # Be careful to initialize this variable, since it used to be cached.
2048 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2050 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2051 ls a.out conftest 2>/dev/null;
2052 ls a.* conftest.* 2>/dev/null`; do
2054 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2055 a.out ) # We found the default executable, but exeext='' is most
2058 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2066 echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2069 echo "$as_me: error: C compiler cannot create executables" >&2;}
2070 { (exit 77); exit 77; }; }
2073 ac_exeext=$ac_cv_exeext
2074 echo "$as_me:$LINENO: result: $ac_file" >&5
2075 echo "${ECHO_T}$ac_file" >&6
2077 # Check the compiler produces executables we can run. If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2080 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2081 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2082 # If not cross compiling, check that we can run a simple program.
2083 if test "$cross_compiling" != yes; then
2084 if { ac_try='./$ac_file'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2092 if test "$cross_compiling" = maybe; then
2095 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2096 If you meant to cross compile, use \`--host'." >&5
2097 echo "$as_me: error: cannot run C compiled programs.
2098 If you meant to cross compile, use \`--host'." >&2;}
2099 { (exit 1); exit 1; }; }
2103 echo "$as_me:$LINENO: result: yes" >&5
2104 echo "${ECHO_T}yes" >&6
2106 rm -f a.out a.exe conftest$ac_cv_exeext
2107 ac_clean_files=$ac_clean_files_save
2108 # Check the compiler produces executables we can run. If not, either
2109 # the compiler is broken, or we cross compile.
2110 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2111 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2112 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2113 echo "${ECHO_T}$cross_compiling" >&6
2115 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2116 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2118 (eval $ac_link) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; then
2122 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2123 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2124 # work properly (i.e., refer to `conftest.exe'), while it won't with
2126 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2128 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2129 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2136 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2138 { (exit 1); exit 1; }; }
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2148 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2149 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2150 if test "${ac_cv_objext+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 cat >conftest.$ac_ext <<_ACEOF
2154 #line $LINENO "configure"
2155 #include "confdefs.h"
2157 #ifdef F77_DUMMY_MAIN
2161 int F77_DUMMY_MAIN() { return 1; }
2171 rm -f conftest.o conftest.obj
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2180 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.$ac_ext >&5
2187 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2189 { (exit 1); exit 1; }; }
2192 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2194 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2195 echo "${ECHO_T}$ac_cv_objext" >&6
2196 OBJEXT=$ac_cv_objext
2198 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2199 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2200 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 cat >conftest.$ac_ext <<_ACEOF
2204 #line $LINENO "configure"
2205 #include "confdefs.h"
2207 #ifdef F77_DUMMY_MAIN
2211 int F77_DUMMY_MAIN() { return 1; }
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
2230 { ac_try='test -s conftest.$ac_objext'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; }; then
2238 echo "$as_me: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2242 rm -f conftest.$ac_objext conftest.$ac_ext
2243 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2246 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2247 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2248 GCC=`test $ac_compiler_gnu = yes && echo yes`
2249 ac_test_CFLAGS=${CFLAGS+set}
2250 ac_save_CFLAGS=$CFLAGS
2252 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2253 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2254 if test "${ac_cv_prog_cc_g+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 cat >conftest.$ac_ext <<_ACEOF
2258 #line $LINENO "configure"
2259 #include "confdefs.h"
2261 #ifdef F77_DUMMY_MAIN
2265 int F77_DUMMY_MAIN() { return 1; }
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2289 echo "$as_me: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2293 rm -f conftest.$ac_objext conftest.$ac_ext
2295 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2297 if test "$ac_test_CFLAGS" = set; then
2298 CFLAGS=$ac_save_CFLAGS
2299 elif test $ac_cv_prog_cc_g = yes; then
2300 if test "$GCC" = yes; then
2306 if test "$GCC" = yes; then
2312 # Some people use a C++ compiler to compile C. Since we use `exit',
2313 # in C++ we need to declare it. In case someone uses the same compiler
2314 # for both compiling C and C++ we need to have the C++ compiler decide
2315 # the declaration of exit, since it's the most demanding environment.
2316 cat >conftest.$ac_ext <<_ACEOF
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
2333 for ac_declaration in \
2335 '#include <stdlib.h>' \
2336 'extern "C" void std::exit (int) throw (); using std::exit;' \
2337 'extern "C" void std::exit (int); using std::exit;' \
2338 'extern "C" void exit (int) throw ();' \
2339 'extern "C" void exit (int);' \
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line $LINENO "configure"
2344 #include "confdefs.h"
2347 #ifdef F77_DUMMY_MAIN
2351 int F77_DUMMY_MAIN() { return 1; }
2361 rm -f conftest.$ac_objext
2362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363 (eval $ac_compile) 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); } &&
2367 { ac_try='test -s conftest.$ac_objext'
2368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; }; then
2375 echo "$as_me: failed program was:" >&5
2376 cat conftest.$ac_ext >&5
2379 rm -f conftest.$ac_objext conftest.$ac_ext
2380 cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2382 #include "confdefs.h"
2384 #ifdef F77_DUMMY_MAIN
2388 int F77_DUMMY_MAIN() { return 1; }
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2412 echo "$as_me: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2415 rm -f conftest.$ac_objext conftest.$ac_ext
2418 if test -n "$ac_declaration"; then
2419 echo '#ifdef __cplusplus' >>confdefs.h
2420 echo $ac_declaration >>confdefs.h
2421 echo '#endif' >>confdefs.h
2425 echo "$as_me: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2428 rm -f conftest.$ac_objext conftest.$ac_ext
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436 . "$srcdir/src/template/$template" || exit
2438 if test "$ac_env_CFLAGS_set" = set; then
2439 CFLAGS=$ac_env_CFLAGS_value
2441 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2444 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2445 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2447 # Check if the compiler still works with the template settings
2448 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2449 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 #include "confdefs.h"
2455 #ifdef F77_DUMMY_MAIN
2459 int F77_DUMMY_MAIN() { return 1; }
2469 rm -f conftest.$ac_objext conftest$ac_exeext
2470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2471 (eval $ac_link) 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -s conftest$ac_exeext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2481 echo "$as_me:$LINENO: result: yes" >&5
2482 echo "${ECHO_T}yes" >&6
2484 echo "$as_me: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2486 echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6
2488 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2489 echo "$as_me: error: cannot proceed" >&2;}
2490 { (exit 1); exit 1; }; }
2492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2494 # Defend against gcc -ffastmath
2495 if test "$GCC" = yes; then
2496 cat >conftest.$ac_ext <<_ACEOF
2497 #line $LINENO "configure"
2498 #include "confdefs.h"
2500 #ifdef F77_DUMMY_MAIN
2504 int F77_DUMMY_MAIN() { return 1; }
2509 #ifdef __FAST_MATH__
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2530 echo "$as_me: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2532 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2533 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2534 { (exit 1); exit 1; }; }
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2545 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2546 # On Suns, sometimes $CPP names a directory.
2547 if test -n "$CPP" && test -d "$CPP"; then
2550 if test -z "$CPP"; then
2551 if test "${ac_cv_prog_CPP+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 # Double quotes because CPP needs to be expanded
2555 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2558 for ac_c_preproc_warn_flag in '' yes
2560 # Use a header file that comes with gcc, so configuring glibc
2561 # with a fresh cross-compiler works.
2562 # On the NeXT, cc -E runs the code through the compiler's parser,
2563 # not just through cpp. "Syntax error" is here to catch this case.
2564 cat >conftest.$ac_ext <<_ACEOF
2565 #line $LINENO "configure"
2566 #include "confdefs.h"
2570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2573 egrep -v '^ *\+' conftest.er1 >conftest.err
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } >/dev/null; then
2578 if test -s conftest.err; then
2579 ac_cpp_err=$ac_c_preproc_warn_flag
2586 if test -z "$ac_cpp_err"; then
2589 echo "$as_me: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2591 # Broken: fails on valid input.
2594 rm -f conftest.err conftest.$ac_ext
2596 # OK, works on sane cases. Now check whether non-existent headers
2597 # can be detected and how.
2598 cat >conftest.$ac_ext <<_ACEOF
2599 #line $LINENO "configure"
2600 #include "confdefs.h"
2601 #include <ac_nonexistent.h>
2603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2606 egrep -v '^ *\+' conftest.er1 >conftest.err
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } >/dev/null; then
2611 if test -s conftest.err; then
2612 ac_cpp_err=$ac_c_preproc_warn_flag
2619 if test -z "$ac_cpp_err"; then
2620 # Broken: success on invalid input.
2623 echo "$as_me: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 # Passes both tests.
2629 rm -f conftest.err conftest.$ac_ext
2632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2633 rm -f conftest.err conftest.$ac_ext
2634 if $ac_preproc_ok; then
2646 echo "$as_me:$LINENO: result: $CPP" >&5
2647 echo "${ECHO_T}$CPP" >&6
2649 for ac_c_preproc_warn_flag in '' yes
2651 # Use a header file that comes with gcc, so configuring glibc
2652 # with a fresh cross-compiler works.
2653 # On the NeXT, cc -E runs the code through the compiler's parser,
2654 # not just through cpp. "Syntax error" is here to catch this case.
2655 cat >conftest.$ac_ext <<_ACEOF
2656 #line $LINENO "configure"
2657 #include "confdefs.h"
2661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2664 egrep -v '^ *\+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } >/dev/null; then
2669 if test -s conftest.err; then
2670 ac_cpp_err=$ac_c_preproc_warn_flag
2677 if test -z "$ac_cpp_err"; then
2680 echo "$as_me: failed program was:" >&5
2681 cat conftest.$ac_ext >&5
2682 # Broken: fails on valid input.
2685 rm -f conftest.err conftest.$ac_ext
2687 # OK, works on sane cases. Now check whether non-existent headers
2688 # can be detected and how.
2689 cat >conftest.$ac_ext <<_ACEOF
2690 #line $LINENO "configure"
2691 #include "confdefs.h"
2692 #include <ac_nonexistent.h>
2694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2697 egrep -v '^ *\+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } >/dev/null; then
2702 if test -s conftest.err; then
2703 ac_cpp_err=$ac_c_preproc_warn_flag
2710 if test -z "$ac_cpp_err"; then
2711 # Broken: success on invalid input.
2714 echo "$as_me: failed program was:" >&5
2715 cat conftest.$ac_ext >&5
2716 # Passes both tests.
2720 rm -f conftest.err conftest.$ac_ext
2723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2724 rm -f conftest.err conftest.$ac_ext
2725 if $ac_preproc_ok; then
2728 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2729 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2730 { (exit 1); exit 1; }; }
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741 # Create compiler version string
2742 if test x"$GCC" = x"yes" ; then
2743 cc_string="GCC `${CC} --version | sed q`"
2748 cat >>confdefs.h <<_ACEOF
2749 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2755 # Automatic dependency tracking
2759 # Check whether --enable-depend or --disable-depend was given.
2760 if test "${enable_depend+set}" = set; then
2761 enableval="$enable_depend"
2771 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2772 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2773 { (exit 1); exit 1; }; }
2786 # Enable assert checks
2790 # Check whether --enable-cassert or --disable-cassert was given.
2791 if test "${enable_cassert+set}" = set; then
2792 enableval="$enable_cassert"
2797 cat >>confdefs.h <<\_ACEOF
2798 #define USE_ASSERT_CHECKING 1
2806 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2807 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2808 { (exit 1); exit 1; }; }
2820 # Include directories
2824 # SRCH_INC comes from the template file
2825 for dir in $with_includes $SRCH_INC; do
2826 if test -d "$dir"; then
2827 INCLUDES="$INCLUDES -I$dir"
2829 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2830 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2838 # Library directories
2842 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2843 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2844 if test -d "$dir"; then
2845 LIBDIRS="$LIBDIRS -L$dir"
2847 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2848 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2857 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2858 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2862 # Check whether --with-tcl or --without-tcl was given.
2863 if test "${with_tcl+set}" = set; then
2874 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2875 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2876 { (exit 1); exit 1; }; }
2885 echo "$as_me:$LINENO: result: $with_tcl" >&5
2886 echo "${ECHO_T}$with_tcl" >&6
2889 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2890 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2891 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2892 if test "$with_tcl" = yes; then
2896 # Check whether --with-tk or --without-tk was given.
2897 if test "${with_tk+set}" = set; then
2908 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2909 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2910 { (exit 1); exit 1; }; }
2922 echo "$as_me:$LINENO: result: $with_tk" >&5
2923 echo "${ECHO_T}$with_tk" >&6
2927 # We see if the path to the Tcl/Tk configuration scripts is specified.
2928 # This will override the use of tclsh to find the paths to search.
2933 # Check whether --with-tclconfig or --without-tclconfig was given.
2934 if test "${with_tclconfig+set}" = set; then
2935 withval="$with_tclconfig"
2939 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2940 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2941 { (exit 1); exit 1; }; }
2944 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2945 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2946 { (exit 1); exit 1; }; }
2956 # We see if the path to the Tk configuration scripts is specified.
2957 # This will override the use of tclsh to find the paths to search.
2962 # Check whether --with-tkconfig or --without-tkconfig was given.
2963 if test "${with_tkconfig+set}" = set; then
2964 withval="$with_tkconfig"
2968 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2969 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2970 { (exit 1); exit 1; }; }
2973 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2974 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2975 { (exit 1); exit 1; }; }
2986 # Optionally build Perl modules (PL/Perl)
2988 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2989 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2993 # Check whether --with-perl or --without-perl was given.
2994 if test "${with_perl+set}" = set; then
2995 withval="$with_perl"
3005 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3006 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3007 { (exit 1); exit 1; }; }
3016 echo "$as_me:$LINENO: result: $with_perl" >&5
3017 echo "${ECHO_T}$with_perl" >&6
3021 # Optionally build Python interface module
3023 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3024 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3028 # Check whether --with-python or --without-python was given.
3029 if test "${with_python+set}" = set; then
3030 withval="$with_python"
3040 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3041 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3042 { (exit 1); exit 1; }; }
3051 echo "$as_me:$LINENO: result: $with_python" >&5
3052 echo "${ECHO_T}$with_python" >&6
3056 # Optionally build the Java/JDBC tools
3058 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3059 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3063 # Check whether --with-java or --without-java was given.
3064 if test "${with_java+set}" = set; then
3065 withval="$with_java"
3069 echo "$as_me:$LINENO: result: yes" >&5
3070 echo "${ECHO_T}yes" >&6
3072 for ac_prog in jakarta-ant ant ant.sh ant.bat
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_path_ANT+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 if test -n "$ANT"; then
3106 echo "$as_me:$LINENO: result: $ANT" >&5
3107 echo "${ECHO_T}$ANT" >&6
3109 echo "$as_me:$LINENO: result: no" >&5
3110 echo "${ECHO_T}no" >&6
3113 test -n "$ANT" && break
3117 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3118 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3119 if test "${pgac_cv_prog_ant_works+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 cat > conftest.java << EOF
3124 public class conftest {
3125 int testmethod(int a, int b) {
3131 cat > conftest.xml << EOF
3132 <project name="conftest" default="conftest">
3133 <target name="conftest">
3134 <javac srcdir="." includes="conftest.java">
3140 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3141 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3142 (eval $pgac_cmd) 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }
3147 if test $? = 0 && test -f ./conftest.class ; then
3148 pgac_cv_prog_ant_works=yes
3150 echo "configure: failed java program was:" >&5
3151 cat conftest.java >&5
3152 echo "configure: failed build file was:" >&5
3153 cat conftest.xml >&5
3154 pgac_cv_prog_ant_works=no
3157 rm -f conftest* core core.* *.core
3160 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3161 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3163 if test "$pgac_cv_prog_ant_works" != yes; then
3164 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3165 echo "$as_me: error: ant does not work" >&2;}
3166 { (exit 1); exit 1; }; }
3170 if test -z "$ANT"; then
3171 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3172 If you have Ant already installed, see config.log for details on the failure." >&5
3173 echo "$as_me: error: Ant is required to build Java components
3174 If you have Ant already installed, see config.log for details on the failure." >&2;}
3175 { (exit 1); exit 1; }; }
3177 if "$ANT" -version | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3178 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3179 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3180 { (exit 1); exit 1; }; }
3184 echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3188 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3189 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3190 { (exit 1); exit 1; }; }
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3206 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3207 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3211 # Check whether --with-krb4 or --without-krb4 was given.
3212 if test "${with_krb4+set}" = set; then
3213 withval="$with_krb4"
3217 krb4_prefix=/usr/athena
3224 krb4_prefix=$withval
3233 if test "$with_krb4" = yes; then
3235 echo "$as_me:$LINENO: result: yes" >&5
3236 echo "${ECHO_T}yes" >&6
3238 cat >>confdefs.h <<\_ACEOF
3243 if test -d "$krb4_prefix/include"; then
3244 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3246 if test -d "$krb4_prefix/lib"; then
3247 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3250 krb_srvtab="/etc/srvtab"
3253 echo "$as_me:$LINENO: result: no" >&5
3254 echo "${ECHO_T}no" >&6
3264 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3265 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3269 # Check whether --with-krb5 or --without-krb5 was given.
3270 if test "${with_krb5+set}" = set; then
3271 withval="$with_krb5"
3275 krb5_prefix=/usr/athena
3282 krb5_prefix=$withval
3291 if test "$with_krb5" = yes; then
3293 echo "$as_me:$LINENO: result: yes" >&5
3294 echo "${ECHO_T}yes" >&6
3296 cat >>confdefs.h <<\_ACEOF
3301 if test -d "$krb5_prefix/include"; then
3302 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3304 if test -d "$krb5_prefix/lib"; then
3305 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3308 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3311 echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3319 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3320 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3321 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3322 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3323 { (exit 1); exit 1; }; }
3330 # Kerberos configuration parameters
3335 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3336 if test "${with_krb_srvnam+set}" = set; then
3337 withval="$with_krb_srvnam"
3341 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3342 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3343 { (exit 1); exit 1; }; }
3346 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3347 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3348 { (exit 1); exit 1; }; }
3356 with_krb_srvnam="postgres"
3360 cat >>confdefs.h <<_ACEOF
3361 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3369 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3370 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3374 # Check whether --with-pam or --without-pam was given.
3375 if test "${with_pam+set}" = set; then
3381 cat >>confdefs.h <<\_ACEOF
3390 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3391 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3392 { (exit 1); exit 1; }; }
3401 echo "$as_me:$LINENO: result: $with_pam" >&5
3402 echo "${ECHO_T}$with_pam" >&6
3412 # Check whether --with-openssl or --without-openssl was given.
3413 if test "${with_openssl+set}" = set; then
3414 withval="$with_openssl"
3418 openssl_prefix=/usr/local/ssl
3425 openssl_prefix=$withval
3434 if test "$with_openssl" = yes; then
3436 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3437 echo "${ECHO_T}building with OpenSSL support" >&6
3439 cat >>confdefs.h <<\_ACEOF
3444 if test -d "${openssl_prefix}/include" ; then
3445 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3447 if test -d "${openssl_prefix}/lib" ; then
3448 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3463 # Check whether --with-readline or --without-readline was given.
3464 if test "${with_readline+set}" = set; then
3465 withval="$with_readline"
3475 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3476 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3477 { (exit 1); exit 1; }; }
3493 # Check whether --with-zlib or --without-zlib was given.
3494 if test "${with_zlib+set}" = set; then
3495 withval="$with_zlib"
3505 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3506 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3507 { (exit 1); exit 1; }; }
3519 # Assume system is ELF if it predefines __ELF__ as 1,
3520 # otherwise believe host_os based default.
3522 freebsd1*|freebsd2*) elf=no;;
3523 freebsd3*|freebsd4*) elf=yes;;
3527 cat >conftest.$ac_ext <<_ACEOF
3528 #line $LINENO "configure"
3529 #include "confdefs.h"
3535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3536 egrep "yes" >/dev/null 2>&1; then
3539 if test "X$elf" = "Xyes" ; then
3551 CPPFLAGS="$CPPFLAGS $INCLUDES"
3552 LDFLAGS="$LDFLAGS $LIBDIRS"
3554 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3555 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3556 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3557 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3560 for ac_prog in gawk mawk nawk awk
3562 # Extract the first word of "$ac_prog", so it can be a program name with args.
3563 set dummy $ac_prog; ac_word=$2
3564 echo "$as_me:$LINENO: checking for $ac_word" >&5
3565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566 if test "${ac_cv_prog_AWK+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 if test -n "$AWK"; then
3570 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_AWK="$ac_prog"
3580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 if test -n "$AWK"; then
3590 echo "$as_me:$LINENO: result: $AWK" >&5
3591 echo "${ECHO_T}$AWK" >&6
3593 echo "$as_me:$LINENO: result: no" >&5
3594 echo "${ECHO_T}no" >&6
3597 test -n "$AWK" && break
3600 echo "$as_me:$LINENO: checking for flex" >&5
3601 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3602 if test "${pgac_cv_path_flex+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 # Let the user override the test
3606 if test -n "$FLEX"; then
3607 pgac_cv_path_flex=$FLEX
3611 for pgac_dir in $PATH; do
3612 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3615 for pgac_prog in flex lex; do
3616 pgac_candidate="$pgac_dir/$pgac_prog"
3617 if test -f "$pgac_candidate" \
3618 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3620 echo '%%' > conftest.l
3621 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3622 if $pgac_candidate --version | grep '2\.5\.3' >/dev/null 2>&1; then
3623 pgac_broken_flex=$pgac_candidate
3627 pgac_cv_path_flex=$pgac_candidate
3635 : ${pgac_cv_path_flex=no}
3639 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3640 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3641 if test x"$pgac_cv_path_flex" = x"no"; then
3642 if test -n "$pgac_broken_flex"; then
3643 { echo "$as_me:$LINENO: WARNING:
3644 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3645 *** should get version 2.5.4 or later." >&5
3646 echo "$as_me: WARNING:
3647 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3648 *** should get version 2.5.4 or later." >&2;}
3651 { echo "$as_me:$LINENO: WARNING:
3652 *** Without Flex you will not be able to build PostgreSQL from CVS or
3653 *** change any of the scanner definition files. You can obtain Flex from
3654 *** a GNU mirror site. (If you are using the official distribution of
3655 *** PostgreSQL then you do not need to worry about this because the Flex
3656 *** output is pre-generated.)" >&5
3657 echo "$as_me: WARNING:
3658 *** Without Flex you will not be able to build PostgreSQL from CVS or
3659 *** change any of the scanner definition files. You can obtain Flex from
3660 *** a GNU mirror site. (If you are using the official distribution of
3661 *** PostgreSQL then you do not need to worry about this because the Flex
3662 *** output is pre-generated.)" >&2;}
3665 if test x"$pgac_cv_path_flex" = x"no"; then
3668 FLEX=$pgac_cv_path_flex
3674 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3675 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3677 if test "$LN_S" = "ln -s"; then
3678 echo "$as_me:$LINENO: result: yes" >&5
3679 echo "${ECHO_T}yes" >&6
3681 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3682 echo "${ECHO_T}no, using $LN_S" >&6
3686 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3687 if test "${with_gnu_ld+set}" = set; then
3688 withval="$with_gnu_ld"
3689 test "$withval" = no || with_gnu_ld=yes
3694 if test "$GCC" = yes; then
3695 # Check if gcc -print-prog-name=ld gives a path.
3696 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3697 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3700 # gcc leaves a trailing carriage return which upsets mingw
3701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3706 # Accept absolute paths.
3707 [\\/]* | [A-Za-z]:[\\/]*)
3708 re_direlt='/[^/][^/]*/\.\./'
3709 # Canonicalize the path of ld
3710 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3711 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3712 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3714 test -z "$LD" && LD="$ac_prog"
3717 # If it fails, then pretend we aren't using GCC.
3721 # If it is relative, then search for the first ld in PATH.
3725 elif test "$with_gnu_ld" = yes; then
3726 echo "$as_me:$LINENO: checking for GNU ld" >&5
3727 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3729 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3730 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3732 if test "${ac_cv_path_LD+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if test -z "$LD"; then
3736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3737 for ac_dir in $PATH; do
3738 test -z "$ac_dir" && ac_dir=.
3739 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3740 ac_cv_path_LD="$ac_dir/$ac_prog"
3741 # Check to see if the program is GNU ld. I'd rather use --version,
3742 # but apparently some GNU ld's only accept -v.
3743 # Break only if it was the GNU/non-GNU ld that we prefer.
3744 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3745 test "$with_gnu_ld" != no && break
3747 test "$with_gnu_ld" != yes && break
3753 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3758 if test -n "$LD"; then
3759 echo "$as_me:$LINENO: result: $LD" >&5
3760 echo "${ECHO_T}$LD" >&6
3762 echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3765 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3766 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3767 { (exit 1); exit 1; }; }
3768 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3769 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3770 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3774 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3775 ac_cv_prog_gnu_ld=yes
3777 ac_cv_prog_gnu_ld=no
3780 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3781 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3782 with_gnu_ld=$ac_cv_prog_gnu_ld
3787 case $host_os in sysv5*)
3788 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3789 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3790 if test "${pgac_cv_prog_ld_R+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3795 cat >conftest.$ac_ext <<_ACEOF
3796 #line $LINENO "configure"
3797 #include "confdefs.h"
3799 #ifdef F77_DUMMY_MAIN
3803 int F77_DUMMY_MAIN() { return 1; }
3813 rm -f conftest.$ac_objext conftest$ac_exeext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815 (eval $ac_link) 2>&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -s conftest$ac_exeext'
3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); }; }; then
3825 pgac_cv_prog_ld_R=yes
3827 echo "$as_me: failed program was:" >&5
3828 cat conftest.$ac_ext >&5
3829 pgac_cv_prog_ld_R=no
3831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3832 LDFLAGS=$pgac_save_LDFLAGS
3835 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3836 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3837 ld_R_works=$pgac_cv_prog_ld_R
3840 if test -n "$ac_tool_prefix"; then
3841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_RANLIB+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3848 if test -n "$RANLIB"; then
3849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 RANLIB=$ac_cv_prog_RANLIB
3868 if test -n "$RANLIB"; then
3869 echo "$as_me:$LINENO: result: $RANLIB" >&5
3870 echo "${ECHO_T}$RANLIB" >&6
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3877 if test -z "$ac_cv_prog_RANLIB"; then
3878 ac_ct_RANLIB=$RANLIB
3879 # Extract the first word of "ranlib", so it can be a program name with args.
3880 set dummy ranlib; ac_word=$2
3881 echo "$as_me:$LINENO: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 if test -n "$ac_ct_RANLIB"; then
3887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_ac_ct_RANLIB="ranlib"
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3907 if test -n "$ac_ct_RANLIB"; then
3908 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3909 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3911 echo "$as_me:$LINENO: result: no" >&5
3912 echo "${ECHO_T}no" >&6
3915 RANLIB=$ac_ct_RANLIB
3917 RANLIB="$ac_cv_prog_RANLIB"
3920 for ac_prog in lorder
3922 # Extract the first word of "$ac_prog", so it can be a program name with args.
3923 set dummy $ac_prog; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_LORDER+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if test -n "$LORDER"; then
3930 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_LORDER="$ac_prog"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 LORDER=$ac_cv_prog_LORDER
3949 if test -n "$LORDER"; then
3950 echo "$as_me:$LINENO: result: $LORDER" >&5
3951 echo "${ECHO_T}$LORDER" >&6
3953 echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3957 test -n "$LORDER" && break
3960 # Extract the first word of "tar", so it can be a program name with args.
3961 set dummy tar; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_path_TAR+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 if test -n "$TAR"; then
3992 echo "$as_me:$LINENO: result: $TAR" >&5
3993 echo "${ECHO_T}$TAR" >&6
3995 echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
4000 if test -n "$ac_tool_prefix"; then
4001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4002 set dummy ${ac_tool_prefix}strip; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_prog_STRIP+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 if test -n "$STRIP"; then
4009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 test -z "$as_dir" && as_dir=.
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 STRIP=$ac_cv_prog_STRIP
4028 if test -n "$STRIP"; then
4029 echo "$as_me:$LINENO: result: $STRIP" >&5
4030 echo "${ECHO_T}$STRIP" >&6
4032 echo "$as_me:$LINENO: result: no" >&5
4033 echo "${ECHO_T}no" >&6
4037 if test -z "$ac_cv_prog_STRIP"; then
4039 # Extract the first word of "strip", so it can be a program name with args.
4040 set dummy strip; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if test -n "$ac_ct_STRIP"; then
4047 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056 ac_cv_prog_ac_ct_STRIP="strip"
4057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4067 if test -n "$ac_ct_STRIP"; then
4068 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4069 echo "${ECHO_T}$ac_ct_STRIP" >&6
4071 echo "$as_me:$LINENO: result: no" >&5
4072 echo "${ECHO_T}no" >&6
4077 STRIP="$ac_cv_prog_STRIP"
4081 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4082 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4083 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4084 STRIP_STATIC_LIB="$STRIP -x"
4085 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4086 echo "$as_me:$LINENO: result: yes" >&5
4087 echo "${ECHO_T}yes" >&6
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4098 for ac_prog in 'bison -y'
4100 # Extract the first word of "$ac_prog", so it can be a program name with args.
4101 set dummy $ac_prog; ac_word=$2
4102 echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_prog_YACC+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 if test -n "$YACC"; then
4108 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_YACC="$ac_prog"
4118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 YACC=$ac_cv_prog_YACC
4127 if test -n "$YACC"; then
4128 echo "$as_me:$LINENO: result: $YACC" >&5
4129 echo "${ECHO_T}$YACC" >&6
4131 echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6
4135 test -n "$YACC" && break
4138 if test -z "$YACC"; then
4139 { echo "$as_me:$LINENO: WARNING:
4140 *** Without Bison you will not be able to build PostgreSQL from CVS or
4141 *** change any of the parser definition files. You can obtain Bison from
4142 *** a GNU mirror site. (If you are using the official distribution of
4143 *** PostgreSQL then you do not need to worry about this because the Bison
4144 *** output is pre-generated.) To use a different yacc program (possible,
4145 *** but not recommended), set the environment variable YACC before running
4146 *** 'configure'." >&5
4147 echo "$as_me: WARNING:
4148 *** Without Bison you will not be able to build PostgreSQL from CVS or
4149 *** change any of the parser definition files. You can obtain Bison from
4150 *** a GNU mirror site. (If you are using the official distribution of
4151 *** PostgreSQL then you do not need to worry about this because the Bison
4152 *** output is pre-generated.) To use a different yacc program (possible,
4153 *** but not recommended), set the environment variable YACC before running
4154 *** 'configure'." >&2;}
4158 # Extract the first word of "perl", so it can be a program name with args.
4159 set dummy perl; ac_word=$2
4160 echo "$as_me:$LINENO: checking for $ac_word" >&5
4161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4162 if test "${ac_cv_path_PERL+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 PERL=$ac_cv_path_PERL
4189 if test -n "$PERL"; then
4190 echo "$as_me:$LINENO: result: $PERL" >&5
4191 echo "${ECHO_T}$PERL" >&6
4193 echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4197 if test "$with_perl" = yes; then
4199 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4200 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4201 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4202 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4203 echo "${ECHO_T}$perl_archlibexp" >&6
4204 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4205 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4206 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4207 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4208 echo "${ECHO_T}$perl_privlibexp" >&6
4209 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4210 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4211 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4212 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4213 echo "${ECHO_T}$perl_useshrplib" >&6
4215 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4216 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4217 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4218 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4219 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4220 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4221 echo "${ECHO_T}$perl_embed_ldflags" >&6
4224 if test "$with_python" = yes; then
4225 # Extract the first word of "python", so it can be a program name with args.
4226 set dummy python; ac_word=$2
4227 echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229 if test "${ac_cv_path_PYTHON+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 PYTHON=$ac_cv_path_PYTHON
4256 if test -n "$PYTHON"; then
4257 echo "$as_me:$LINENO: result: $PYTHON" >&5
4258 echo "${ECHO_T}$PYTHON" >&6
4260 echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6
4264 if test x"$PYTHON" = x""; then
4265 { { echo "$as_me:$LINENO: error: Python not found" >&5
4266 echo "$as_me: error: Python not found" >&2;}
4267 { (exit 1); exit 1; }; }
4271 echo "$as_me:$LINENO: checking Python installation directories" >&5
4272 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4273 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4274 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4275 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4276 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4277 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4278 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4279 python_includespec="-I${python_prefix}/include/python${python_version}"
4280 if test "$python_prefix" != "$python_execprefix"; then
4281 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4284 # This should be enough of a message.
4285 if test "$python_prefix" != "$python_execprefix"; then
4286 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4287 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4289 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4290 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4297 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4298 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4300 if test ! -f "$python_configdir/Makefile"; then
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4304 echo "$as_me: error: Python Makefile not found" >&2;}
4305 { (exit 1); exit 1; }; }
4308 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4309 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4310 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4311 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4312 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4314 pgac_tab=" " # tab character
4315 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"`
4317 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4318 echo "${ECHO_T}${python_libspec}" >&6
4328 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4331 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4332 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4333 if test "${ac_cv_lib_bsd_main+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 ac_check_lib_save_LIBS=$LIBS
4338 cat >conftest.$ac_ext <<_ACEOF
4339 #line $LINENO "configure"
4340 #include "confdefs.h"
4343 #ifdef F77_DUMMY_MAIN
4347 int F77_DUMMY_MAIN() { return 1; }
4357 rm -f conftest.$ac_objext conftest$ac_exeext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4359 (eval $ac_link) 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -s conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 ac_cv_lib_bsd_main=yes
4371 echo "$as_me: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4373 ac_cv_lib_bsd_main=no
4375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4376 LIBS=$ac_check_lib_save_LIBS
4378 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4379 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4380 if test $ac_cv_lib_bsd_main = yes; then
4381 cat >>confdefs.h <<_ACEOF
4382 #define HAVE_LIBBSD 1
4391 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4392 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4393 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 ac_check_lib_save_LIBS=$LIBS
4398 cat >conftest.$ac_ext <<_ACEOF
4399 #line $LINENO "configure"
4400 #include "confdefs.h"
4402 /* Override any gcc2 internal prototype to avoid an error. */
4406 /* We use char because int might match the return type of a gcc2
4407 builtin and then its argument prototype would still apply. */
4408 char setproctitle ();
4409 #ifdef F77_DUMMY_MAIN
4413 int F77_DUMMY_MAIN() { return 1; }
4423 rm -f conftest.$ac_objext conftest$ac_exeext
4424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4425 (eval $ac_link) 2>&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } &&
4429 { ac_try='test -s conftest$ac_exeext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_lib_util_setproctitle=yes
4437 echo "$as_me: failed program was:" >&5
4438 cat conftest.$ac_ext >&5
4439 ac_cv_lib_util_setproctitle=no
4441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4442 LIBS=$ac_check_lib_save_LIBS
4444 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4445 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4446 if test $ac_cv_lib_util_setproctitle = yes; then
4447 cat >>confdefs.h <<_ACEOF
4448 #define HAVE_LIBUTIL 1
4456 echo "$as_me:$LINENO: checking for main in -lm" >&5
4457 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4458 if test "${ac_cv_lib_m_main+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 ac_check_lib_save_LIBS=$LIBS
4463 cat >conftest.$ac_ext <<_ACEOF
4464 #line $LINENO "configure"
4465 #include "confdefs.h"
4468 #ifdef F77_DUMMY_MAIN
4472 int F77_DUMMY_MAIN() { return 1; }
4482 rm -f conftest.$ac_objext conftest$ac_exeext
4483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4484 (eval $ac_link) 2>&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
4488 { ac_try='test -s conftest$ac_exeext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_cv_lib_m_main=yes
4496 echo "$as_me: failed program was:" >&5
4497 cat conftest.$ac_ext >&5
4500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4501 LIBS=$ac_check_lib_save_LIBS
4503 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4504 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4505 if test $ac_cv_lib_m_main = yes; then
4506 cat >>confdefs.h <<_ACEOF
4515 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4516 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4517 if test "${ac_cv_lib_dl_main+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 ac_check_lib_save_LIBS=$LIBS
4522 cat >conftest.$ac_ext <<_ACEOF
4523 #line $LINENO "configure"
4524 #include "confdefs.h"
4527 #ifdef F77_DUMMY_MAIN
4531 int F77_DUMMY_MAIN() { return 1; }
4541 rm -f conftest.$ac_objext conftest$ac_exeext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4543 (eval $ac_link) 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -s conftest$ac_exeext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_cv_lib_dl_main=yes
4555 echo "$as_me: failed program was:" >&5
4556 cat conftest.$ac_ext >&5
4557 ac_cv_lib_dl_main=no
4559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4560 LIBS=$ac_check_lib_save_LIBS
4562 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4563 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4564 if test $ac_cv_lib_dl_main = yes; then
4565 cat >>confdefs.h <<_ACEOF
4566 #define HAVE_LIBDL 1
4574 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4575 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4576 if test "${ac_cv_lib_nsl_main+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_check_lib_save_LIBS=$LIBS
4581 cat >conftest.$ac_ext <<_ACEOF
4582 #line $LINENO "configure"
4583 #include "confdefs.h"
4586 #ifdef F77_DUMMY_MAIN
4590 int F77_DUMMY_MAIN() { return 1; }
4600 rm -f conftest.$ac_objext conftest$ac_exeext
4601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4602 (eval $ac_link) 2>&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -s conftest$ac_exeext'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4612 ac_cv_lib_nsl_main=yes
4614 echo "$as_me: failed program was:" >&5
4615 cat conftest.$ac_ext >&5
4616 ac_cv_lib_nsl_main=no
4618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4619 LIBS=$ac_check_lib_save_LIBS
4621 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4622 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4623 if test $ac_cv_lib_nsl_main = yes; then
4624 cat >>confdefs.h <<_ACEOF
4625 #define HAVE_LIBNSL 1
4633 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4634 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4635 if test "${ac_cv_lib_socket_main+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 ac_check_lib_save_LIBS=$LIBS
4639 LIBS="-lsocket $LIBS"
4640 cat >conftest.$ac_ext <<_ACEOF
4641 #line $LINENO "configure"
4642 #include "confdefs.h"
4645 #ifdef F77_DUMMY_MAIN
4649 int F77_DUMMY_MAIN() { return 1; }
4659 rm -f conftest.$ac_objext conftest$ac_exeext
4660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4661 (eval $ac_link) 2>&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -s conftest$ac_exeext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_cv_lib_socket_main=yes
4673 echo "$as_me: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 ac_cv_lib_socket_main=no
4677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4678 LIBS=$ac_check_lib_save_LIBS
4680 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4681 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4682 if test $ac_cv_lib_socket_main = yes; then
4683 cat >>confdefs.h <<_ACEOF
4684 #define HAVE_LIBSOCKET 1
4687 LIBS="-lsocket $LIBS"
4692 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4693 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4694 if test "${ac_cv_lib_ipc_main+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 ac_check_lib_save_LIBS=$LIBS
4699 cat >conftest.$ac_ext <<_ACEOF
4700 #line $LINENO "configure"
4701 #include "confdefs.h"
4704 #ifdef F77_DUMMY_MAIN
4708 int F77_DUMMY_MAIN() { return 1; }
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4720 (eval $ac_link) 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } &&
4724 { ac_try='test -s conftest$ac_exeext'
4725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); }; }; then
4730 ac_cv_lib_ipc_main=yes
4732 echo "$as_me: failed program was:" >&5
4733 cat conftest.$ac_ext >&5
4734 ac_cv_lib_ipc_main=no
4736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4737 LIBS=$ac_check_lib_save_LIBS
4739 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4740 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4741 if test $ac_cv_lib_ipc_main = yes; then
4742 cat >>confdefs.h <<_ACEOF
4743 #define HAVE_LIBIPC 1
4751 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4752 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4753 if test "${ac_cv_lib_IPC_main+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 ac_check_lib_save_LIBS=$LIBS
4758 cat >conftest.$ac_ext <<_ACEOF
4759 #line $LINENO "configure"
4760 #include "confdefs.h"
4763 #ifdef F77_DUMMY_MAIN
4767 int F77_DUMMY_MAIN() { return 1; }
4777 rm -f conftest.$ac_objext conftest$ac_exeext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4779 (eval $ac_link) 2>&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -s conftest$ac_exeext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 ac_cv_lib_IPC_main=yes
4791 echo "$as_me: failed program was:" >&5
4792 cat conftest.$ac_ext >&5
4793 ac_cv_lib_IPC_main=no
4795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4796 LIBS=$ac_check_lib_save_LIBS
4798 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4799 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4800 if test $ac_cv_lib_IPC_main = yes; then
4801 cat >>confdefs.h <<_ACEOF
4802 #define HAVE_LIBIPC 1
4810 echo "$as_me:$LINENO: checking for main in -llc" >&5
4811 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4812 if test "${ac_cv_lib_lc_main+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 ac_check_lib_save_LIBS=$LIBS
4817 cat >conftest.$ac_ext <<_ACEOF
4818 #line $LINENO "configure"
4819 #include "confdefs.h"
4822 #ifdef F77_DUMMY_MAIN
4826 int F77_DUMMY_MAIN() { return 1; }
4836 rm -f conftest.$ac_objext conftest$ac_exeext
4837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4838 (eval $ac_link) 2>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -s conftest$ac_exeext'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 ac_cv_lib_lc_main=yes
4850 echo "$as_me: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4852 ac_cv_lib_lc_main=no
4854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4855 LIBS=$ac_check_lib_save_LIBS
4857 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4858 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4859 if test $ac_cv_lib_lc_main = yes; then
4860 cat >>confdefs.h <<_ACEOF
4861 #define HAVE_LIBLC 1
4869 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4870 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4871 if test "${ac_cv_lib_dld_main+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 ac_check_lib_save_LIBS=$LIBS
4876 cat >conftest.$ac_ext <<_ACEOF
4877 #line $LINENO "configure"
4878 #include "confdefs.h"
4881 #ifdef F77_DUMMY_MAIN
4885 int F77_DUMMY_MAIN() { return 1; }
4895 rm -f conftest.$ac_objext conftest$ac_exeext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4897 (eval $ac_link) 2>&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } &&
4901 { ac_try='test -s conftest$ac_exeext'
4902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4907 ac_cv_lib_dld_main=yes
4909 echo "$as_me: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4911 ac_cv_lib_dld_main=no
4913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4914 LIBS=$ac_check_lib_save_LIBS
4916 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4917 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4918 if test $ac_cv_lib_dld_main = yes; then
4919 cat >>confdefs.h <<_ACEOF
4920 #define HAVE_LIBDLD 1
4928 echo "$as_me:$LINENO: checking for main in -lld" >&5
4929 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4930 if test "${ac_cv_lib_ld_main+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 ac_check_lib_save_LIBS=$LIBS
4935 cat >conftest.$ac_ext <<_ACEOF
4936 #line $LINENO "configure"
4937 #include "confdefs.h"
4940 #ifdef F77_DUMMY_MAIN
4944 int F77_DUMMY_MAIN() { return 1; }
4954 rm -f conftest.$ac_objext conftest$ac_exeext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956 (eval $ac_link) 2>&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -s conftest$ac_exeext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 ac_cv_lib_ld_main=yes
4968 echo "$as_me: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 ac_cv_lib_ld_main=no
4972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4973 LIBS=$ac_check_lib_save_LIBS
4975 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4976 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4977 if test $ac_cv_lib_ld_main = yes; then
4978 cat >>confdefs.h <<_ACEOF
4979 #define HAVE_LIBLD 1
4987 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4988 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4989 if test "${ac_cv_lib_compat_main+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 ac_check_lib_save_LIBS=$LIBS
4993 LIBS="-lcompat $LIBS"
4994 cat >conftest.$ac_ext <<_ACEOF
4995 #line $LINENO "configure"
4996 #include "confdefs.h"
4999 #ifdef F77_DUMMY_MAIN
5003 int F77_DUMMY_MAIN() { return 1; }
5013 rm -f conftest.$ac_objext conftest$ac_exeext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5015 (eval $ac_link) 2>&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); } &&
5019 { ac_try='test -s conftest$ac_exeext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 ac_cv_lib_compat_main=yes
5027 echo "$as_me: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5029 ac_cv_lib_compat_main=no
5031 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5032 LIBS=$ac_check_lib_save_LIBS
5034 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5035 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5036 if test $ac_cv_lib_compat_main = yes; then
5037 cat >>confdefs.h <<_ACEOF
5038 #define HAVE_LIBCOMPAT 1
5041 LIBS="-lcompat $LIBS"
5046 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5047 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5048 if test "${ac_cv_lib_BSD_main+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 ac_check_lib_save_LIBS=$LIBS
5053 cat >conftest.$ac_ext <<_ACEOF
5054 #line $LINENO "configure"
5055 #include "confdefs.h"
5058 #ifdef F77_DUMMY_MAIN
5062 int F77_DUMMY_MAIN() { return 1; }
5072 rm -f conftest.$ac_objext conftest$ac_exeext
5073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5074 (eval $ac_link) 2>&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
5078 { ac_try='test -s conftest$ac_exeext'
5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; }; then
5084 ac_cv_lib_BSD_main=yes
5086 echo "$as_me: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5088 ac_cv_lib_BSD_main=no
5090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5091 LIBS=$ac_check_lib_save_LIBS
5093 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5094 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5095 if test $ac_cv_lib_BSD_main = yes; then
5096 cat >>confdefs.h <<_ACEOF
5097 #define HAVE_LIBBSD 1
5105 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5106 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5107 if test "${ac_cv_lib_gen_main+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 ac_check_lib_save_LIBS=$LIBS
5112 cat >conftest.$ac_ext <<_ACEOF
5113 #line $LINENO "configure"
5114 #include "confdefs.h"
5117 #ifdef F77_DUMMY_MAIN
5121 int F77_DUMMY_MAIN() { return 1; }
5131 rm -f conftest.$ac_objext conftest$ac_exeext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5133 (eval $ac_link) 2>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_lib_gen_main=yes
5145 echo "$as_me: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 ac_cv_lib_gen_main=no
5149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5150 LIBS=$ac_check_lib_save_LIBS
5152 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5153 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5154 if test $ac_cv_lib_gen_main = yes; then
5155 cat >>confdefs.h <<_ACEOF
5156 #define HAVE_LIBGEN 1
5164 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5165 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5166 if test "${ac_cv_lib_PW_main+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 ac_check_lib_save_LIBS=$LIBS
5171 cat >conftest.$ac_ext <<_ACEOF
5172 #line $LINENO "configure"
5173 #include "confdefs.h"
5176 #ifdef F77_DUMMY_MAIN
5180 int F77_DUMMY_MAIN() { return 1; }
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5192 (eval $ac_link) 2>&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } &&
5196 { ac_try='test -s conftest$ac_exeext'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; }; then
5202 ac_cv_lib_PW_main=yes
5204 echo "$as_me: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 ac_cv_lib_PW_main=no
5208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5209 LIBS=$ac_check_lib_save_LIBS
5211 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5212 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5213 if test $ac_cv_lib_PW_main = yes; then
5214 cat >>confdefs.h <<_ACEOF
5215 #define HAVE_LIBPW 1
5223 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5224 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5225 if test "${ac_cv_lib_resolv_main+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_check_lib_save_LIBS=$LIBS
5229 LIBS="-lresolv $LIBS"
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 #include "confdefs.h"
5235 #ifdef F77_DUMMY_MAIN
5239 int F77_DUMMY_MAIN() { return 1; }
5249 rm -f conftest.$ac_objext conftest$ac_exeext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5251 (eval $ac_link) 2>&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -s conftest$ac_exeext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_cv_lib_resolv_main=yes
5263 echo "$as_me: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5265 ac_cv_lib_resolv_main=no
5267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 LIBS=$ac_check_lib_save_LIBS
5270 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5271 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5272 if test $ac_cv_lib_resolv_main = yes; then
5273 cat >>confdefs.h <<_ACEOF
5274 #define HAVE_LIBRESOLV 1
5277 LIBS="-lresolv $LIBS"
5281 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5282 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5283 if test "${ac_cv_search_getopt_long+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 ac_func_search_save_LIBS=$LIBS
5287 ac_cv_search_getopt_long=no
5288 cat >conftest.$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5290 #include "confdefs.h"
5292 /* Override any gcc2 internal prototype to avoid an error. */
5296 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5298 char getopt_long ();
5299 #ifdef F77_DUMMY_MAIN
5303 int F77_DUMMY_MAIN() { return 1; }
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -s conftest$ac_exeext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_search_getopt_long="none required"
5327 echo "$as_me: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5331 if test "$ac_cv_search_getopt_long" = no; then
5332 for ac_lib in getopt gnugetopt; do
5333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5334 cat >conftest.$ac_ext <<_ACEOF
5335 #line $LINENO "configure"
5336 #include "confdefs.h"
5338 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5344 char getopt_long ();
5345 #ifdef F77_DUMMY_MAIN
5349 int F77_DUMMY_MAIN() { return 1; }
5359 rm -f conftest.$ac_objext conftest$ac_exeext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5361 (eval $ac_link) 2>&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest$ac_exeext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 ac_cv_search_getopt_long="-l$ac_lib"
5374 echo "$as_me: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5380 LIBS=$ac_func_search_save_LIBS
5382 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5383 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5384 if test "$ac_cv_search_getopt_long" != no; then
5385 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5391 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5392 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5393 if test "${ac_cv_lib_unix_main+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 ac_check_lib_save_LIBS=$LIBS
5398 cat >conftest.$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5400 #include "confdefs.h"
5403 #ifdef F77_DUMMY_MAIN
5407 int F77_DUMMY_MAIN() { return 1; }
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5419 (eval $ac_link) 2>&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } &&
5423 { ac_try='test -s conftest$ac_exeext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 ac_cv_lib_unix_main=yes
5431 echo "$as_me: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5433 ac_cv_lib_unix_main=no
5435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5436 LIBS=$ac_check_lib_save_LIBS
5438 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5439 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5440 if test $ac_cv_lib_unix_main = yes; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define HAVE_LIBUNIX 1
5449 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5450 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5451 if test "${ac_cv_search_crypt+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 ac_func_search_save_LIBS=$LIBS
5455 ac_cv_search_crypt=no
5456 cat >conftest.$ac_ext <<_ACEOF
5457 #line $LINENO "configure"
5458 #include "confdefs.h"
5460 /* Override any gcc2 internal prototype to avoid an error. */
5464 /* We use char because int might match the return type of a gcc2
5465 builtin and then its argument prototype would still apply. */
5467 #ifdef F77_DUMMY_MAIN
5471 int F77_DUMMY_MAIN() { return 1; }
5481 rm -f conftest.$ac_objext conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483 (eval $ac_link) 2>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_search_crypt="none required"
5495 echo "$as_me: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5499 if test "$ac_cv_search_crypt" = no; then
5500 for ac_lib in crypt; do
5501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5502 cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 #include "confdefs.h"
5506 /* Override any gcc2 internal prototype to avoid an error. */
5510 /* We use char because int might match the return type of a gcc2
5511 builtin and then its argument prototype would still apply. */
5513 #ifdef F77_DUMMY_MAIN
5517 int F77_DUMMY_MAIN() { return 1; }
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -s conftest$ac_exeext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 ac_cv_search_crypt="-l$ac_lib"
5542 echo "$as_me: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5548 LIBS=$ac_func_search_save_LIBS
5550 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5551 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5552 if test "$ac_cv_search_crypt" != no; then
5553 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5559 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5560 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5561 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 ac_check_lib_save_LIBS=$LIBS
5566 cat >conftest.$ac_ext <<_ACEOF
5567 #line $LINENO "configure"
5568 #include "confdefs.h"
5570 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5576 char __inet_ntoa ();
5577 #ifdef F77_DUMMY_MAIN
5581 int F77_DUMMY_MAIN() { return 1; }
5591 rm -f conftest.$ac_objext conftest$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try='test -s conftest$ac_exeext'
5598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_lib_bind___inet_ntoa=yes
5605 echo "$as_me: failed program was:" >&5
5606 cat conftest.$ac_ext >&5
5607 ac_cv_lib_bind___inet_ntoa=no
5609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5610 LIBS=$ac_check_lib_save_LIBS
5612 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5613 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5614 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5615 cat >>confdefs.h <<_ACEOF
5616 #define HAVE_LIBBIND 1
5624 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5625 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5626 if test "${ac_cv_search_fdatasync+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 ac_func_search_save_LIBS=$LIBS
5630 ac_cv_search_fdatasync=no
5631 cat >conftest.$ac_ext <<_ACEOF
5632 #line $LINENO "configure"
5633 #include "confdefs.h"
5635 /* Override any gcc2 internal prototype to avoid an error. */
5639 /* We use char because int might match the return type of a gcc2
5640 builtin and then its argument prototype would still apply. */
5642 #ifdef F77_DUMMY_MAIN
5646 int F77_DUMMY_MAIN() { return 1; }
5656 rm -f conftest.$ac_objext conftest$ac_exeext
5657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5658 (eval $ac_link) 2>&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } &&
5662 { ac_try='test -s conftest$ac_exeext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_search_fdatasync="none required"
5670 echo "$as_me: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5674 if test "$ac_cv_search_fdatasync" = no; then
5675 for ac_lib in rt posix4; do
5676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5677 cat >conftest.$ac_ext <<_ACEOF
5678 #line $LINENO "configure"
5679 #include "confdefs.h"
5681 /* Override any gcc2 internal prototype to avoid an error. */
5685 /* We use char because int might match the return type of a gcc2
5686 builtin and then its argument prototype would still apply. */
5688 #ifdef F77_DUMMY_MAIN
5692 int F77_DUMMY_MAIN() { return 1; }
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5704 (eval $ac_link) 2>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -s conftest$ac_exeext'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then
5714 ac_cv_search_fdatasync="-l$ac_lib"
5717 echo "$as_me: failed program was:" >&5
5718 cat conftest.$ac_ext >&5
5720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5723 LIBS=$ac_func_search_save_LIBS
5725 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5726 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5727 if test "$ac_cv_search_fdatasync" != no; then
5728 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5734 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5735 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5736 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 ac_check_lib_save_LIBS=$LIBS
5740 LIBS="-lcygipc $LIBS"
5741 cat >conftest.$ac_ext <<_ACEOF
5742 #line $LINENO "configure"
5743 #include "confdefs.h"
5745 /* Override any gcc2 internal prototype to avoid an error. */
5749 /* We use char because int might match the return type of a gcc2
5750 builtin and then its argument prototype would still apply. */
5752 #ifdef F77_DUMMY_MAIN
5756 int F77_DUMMY_MAIN() { return 1; }
5766 rm -f conftest.$ac_objext conftest$ac_exeext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5768 (eval $ac_link) 2>&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -s conftest$ac_exeext'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; }; then
5778 ac_cv_lib_cygipc_shmget=yes
5780 echo "$as_me: failed program was:" >&5
5781 cat conftest.$ac_ext >&5
5782 ac_cv_lib_cygipc_shmget=no
5784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5785 LIBS=$ac_check_lib_save_LIBS
5787 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5788 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5789 if test $ac_cv_lib_cygipc_shmget = yes; then
5790 cat >>confdefs.h <<_ACEOF
5791 #define HAVE_LIBCYGIPC 1
5794 LIBS="-lcygipc $LIBS"
5799 if test "$with_readline" = yes; then
5801 echo "$as_me:$LINENO: checking for readline" >&5
5802 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5804 if test "${pgac_cv_check_readline+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 pgac_cv_check_readline=no
5808 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5809 for pgac_rllib in -lreadline -ledit ; do
5810 pgac_save_LIBS=$LIBS
5811 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5812 cat >conftest.$ac_ext <<_ACEOF
5813 #line $LINENO "configure"
5814 #include "confdefs.h"
5816 /* Override any gcc2 internal prototype to avoid an error. */
5820 /* We use char because int might match the return type of a gcc2
5821 builtin and then its argument prototype would still apply. */
5823 #ifdef F77_DUMMY_MAIN
5827 int F77_DUMMY_MAIN() { return 1; }
5837 rm -f conftest.$ac_objext conftest$ac_exeext
5838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5839 (eval $ac_link) 2>&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } &&
5843 { ac_try='test -s conftest$ac_exeext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5850 # NetBSD and OpenBSD have a broken linker that does not
5851 # recognize dependent libraries
5852 case $host_os in netbsd* | openbsd* )
5855 *) pgac_lib=" -lcurses" ;;
5859 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5863 echo "$as_me: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5867 LIBS=$pgac_save_LIBS
5870 LIBS=$pgac_save_LIBS
5874 if test "$pgac_cv_check_readline" != no ; then
5876 cat >>confdefs.h <<\_ACEOF
5877 #define HAVE_LIBREADLINE 1
5880 LIBS="$pgac_cv_check_readline $LIBS"
5881 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5882 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5884 echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6
5887 if test x"$pgac_cv_check_readline" = x"no"; then
5888 { { echo "$as_me:$LINENO: error: readline library not found
5889 If you have readline already installed, see config.log for details on the
5890 failure. It is possible the compiler isn't looking in the proper directory.
5891 Use --without-readline to disable readline support." >&5
5892 echo "$as_me: error: readline library not found
5893 If you have readline already installed, see config.log for details on the
5894 failure. It is possible the compiler isn't looking in the proper directory.
5895 Use --without-readline to disable readline support." >&2;}
5896 { (exit 1); exit 1; }; }
5900 if test "$with_zlib" = yes; then
5902 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5903 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5904 if test "${ac_cv_lib_z_inflate+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 ac_check_lib_save_LIBS=$LIBS
5909 cat >conftest.$ac_ext <<_ACEOF
5910 #line $LINENO "configure"
5911 #include "confdefs.h"
5913 /* Override any gcc2 internal prototype to avoid an error. */
5917 /* We use char because int might match the return type of a gcc2
5918 builtin and then its argument prototype would still apply. */
5920 #ifdef F77_DUMMY_MAIN
5924 int F77_DUMMY_MAIN() { return 1; }
5934 rm -f conftest.$ac_objext conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -s conftest$ac_exeext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 ac_cv_lib_z_inflate=yes
5948 echo "$as_me: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5950 ac_cv_lib_z_inflate=no
5952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5953 LIBS=$ac_check_lib_save_LIBS
5955 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5956 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5957 if test $ac_cv_lib_z_inflate = yes; then
5958 cat >>confdefs.h <<_ACEOF
5965 { { echo "$as_me:$LINENO: error: zlib library not found
5966 If you have zlib already installed, see config.log for details on the
5967 failure. It is possible the compiler isn't looking in the proper directory.
5968 Use --without-zlib to disable zlib support." >&5
5969 echo "$as_me: error: zlib library not found
5970 If you have zlib already installed, see config.log for details on the
5971 failure. It is possible the compiler isn't looking in the proper directory.
5972 Use --without-zlib to disable zlib support." >&2;}
5973 { (exit 1); exit 1; }; }
5978 if test "$with_krb4" = yes ; then
5980 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5981 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5982 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 ac_check_lib_save_LIBS=$LIBS
5987 cat >conftest.$ac_ext <<_ACEOF
5988 #line $LINENO "configure"
5989 #include "confdefs.h"
5991 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
5997 char des_encrypt ();
5998 #ifdef F77_DUMMY_MAIN
6002 int F77_DUMMY_MAIN() { return 1; }
6012 rm -f conftest.$ac_objext conftest$ac_exeext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014 (eval $ac_link) 2>&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -s conftest$ac_exeext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_lib_des_des_encrypt=yes
6026 echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6028 ac_cv_lib_des_des_encrypt=no
6030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6031 LIBS=$ac_check_lib_save_LIBS
6033 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6034 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6035 if test $ac_cv_lib_des_des_encrypt = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define HAVE_LIBDES 1
6043 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6044 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6045 { (exit 1); exit 1; }; }
6049 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6050 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6051 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 ac_check_lib_save_LIBS=$LIBS
6056 cat >conftest.$ac_ext <<_ACEOF
6057 #line $LINENO "configure"
6058 #include "confdefs.h"
6060 /* Override any gcc2 internal prototype to avoid an error. */
6064 /* We use char because int might match the return type of a gcc2
6065 builtin and then its argument prototype would still apply. */
6066 char krb_sendauth ();
6067 #ifdef F77_DUMMY_MAIN
6071 int F77_DUMMY_MAIN() { return 1; }
6081 rm -f conftest.$ac_objext conftest$ac_exeext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6083 (eval $ac_link) 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try='test -s conftest$ac_exeext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_cv_lib_krb_krb_sendauth=yes
6095 echo "$as_me: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6097 ac_cv_lib_krb_krb_sendauth=no
6099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6100 LIBS=$ac_check_lib_save_LIBS
6102 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6103 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6104 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6105 cat >>confdefs.h <<_ACEOF
6106 #define HAVE_LIBKRB 1
6112 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6113 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6114 { (exit 1); exit 1; }; }
6119 if test "$with_krb5" = yes ; then
6120 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6121 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6122 if test "${ac_cv_search_com_err+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 ac_func_search_save_LIBS=$LIBS
6126 ac_cv_search_com_err=no
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_com_err="none required"
6166 echo "$as_me: failed program was:" >&5
6167 cat conftest.$ac_ext >&5
6169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6170 if test "$ac_cv_search_com_err" = no; then
6171 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6173 cat >conftest.$ac_ext <<_ACEOF
6174 #line $LINENO "configure"
6175 #include "confdefs.h"
6177 /* Override any gcc2 internal prototype to avoid an error. */
6181 /* We use char because int might match the return type of a gcc2
6182 builtin and then its argument prototype would still apply. */
6184 #ifdef F77_DUMMY_MAIN
6188 int F77_DUMMY_MAIN() { return 1; }
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6200 (eval $ac_link) 2>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -s conftest$ac_exeext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 ac_cv_search_com_err="-l$ac_lib"
6213 echo "$as_me: failed program was:" >&5
6214 cat conftest.$ac_ext >&5
6216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6219 LIBS=$ac_func_search_save_LIBS
6221 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6222 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6223 if test "$ac_cv_search_com_err" != no; then
6224 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6227 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6228 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6229 { (exit 1); exit 1; }; }
6232 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6233 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6234 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 ac_func_search_save_LIBS=$LIBS
6238 ac_cv_search_krb5_encrypt=no
6239 cat >conftest.$ac_ext <<_ACEOF
6240 #line $LINENO "configure"
6241 #include "confdefs.h"
6243 /* Override any gcc2 internal prototype to avoid an error. */
6247 /* We use char because int might match the return type of a gcc2
6248 builtin and then its argument prototype would still apply. */
6249 char krb5_encrypt ();
6250 #ifdef F77_DUMMY_MAIN
6254 int F77_DUMMY_MAIN() { return 1; }
6264 rm -f conftest.$ac_objext conftest$ac_exeext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6266 (eval $ac_link) 2>&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try='test -s conftest$ac_exeext'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_search_krb5_encrypt="none required"
6278 echo "$as_me: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6282 if test "$ac_cv_search_krb5_encrypt" = no; then
6283 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6285 cat >conftest.$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6287 #include "confdefs.h"
6289 /* Override any gcc2 internal prototype to avoid an error. */
6293 /* We use char because int might match the return type of a gcc2
6294 builtin and then its argument prototype would still apply. */
6295 char krb5_encrypt ();
6296 #ifdef F77_DUMMY_MAIN
6300 int F77_DUMMY_MAIN() { return 1; }
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6312 (eval $ac_link) 2>&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -s conftest$ac_exeext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_search_krb5_encrypt="-l$ac_lib"
6325 echo "$as_me: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6331 LIBS=$ac_func_search_save_LIBS
6333 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6334 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6335 if test "$ac_cv_search_krb5_encrypt" != no; then
6336 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6339 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6340 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6341 { (exit 1); exit 1; }; }
6344 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6345 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6346 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 ac_func_search_save_LIBS=$LIBS
6350 ac_cv_search_krb5_sendauth=no
6351 cat >conftest.$ac_ext <<_ACEOF
6352 #line $LINENO "configure"
6353 #include "confdefs.h"
6355 /* Override any gcc2 internal prototype to avoid an error. */
6359 /* We use char because int might match the return type of a gcc2
6360 builtin and then its argument prototype would still apply. */
6361 char krb5_sendauth ();
6362 #ifdef F77_DUMMY_MAIN
6366 int F77_DUMMY_MAIN() { return 1; }
6376 rm -f conftest.$ac_objext conftest$ac_exeext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378 (eval $ac_link) 2>&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); } &&
6382 { ac_try='test -s conftest$ac_exeext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6388 ac_cv_search_krb5_sendauth="none required"
6390 echo "$as_me: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6394 if test "$ac_cv_search_krb5_sendauth" = no; then
6395 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6397 cat >conftest.$ac_ext <<_ACEOF
6398 #line $LINENO "configure"
6399 #include "confdefs.h"
6401 /* Override any gcc2 internal prototype to avoid an error. */
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6407 char krb5_sendauth ();
6408 #ifdef F77_DUMMY_MAIN
6412 int F77_DUMMY_MAIN() { return 1; }
6422 rm -f conftest.$ac_objext conftest$ac_exeext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424 (eval $ac_link) 2>&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -s conftest$ac_exeext'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_cv_search_krb5_sendauth="-l$ac_lib"
6437 echo "$as_me: failed program was:" >&5
6438 cat conftest.$ac_ext >&5
6440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6443 LIBS=$ac_func_search_save_LIBS
6445 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6446 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6447 if test "$ac_cv_search_krb5_sendauth" != no; then
6448 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6451 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6452 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6453 { (exit 1); exit 1; }; }
6458 if test "$with_openssl" = yes ; then
6460 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6461 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6462 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 ac_check_lib_save_LIBS=$LIBS
6466 LIBS="-lcrypto $LIBS"
6467 cat >conftest.$ac_ext <<_ACEOF
6468 #line $LINENO "configure"
6469 #include "confdefs.h"
6471 /* Override any gcc2 internal prototype to avoid an error. */
6475 /* We use char because int might match the return type of a gcc2
6476 builtin and then its argument prototype would still apply. */
6477 char CRYPTO_new_ex_data ();
6478 #ifdef F77_DUMMY_MAIN
6482 int F77_DUMMY_MAIN() { return 1; }
6487 CRYPTO_new_ex_data ();
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494 (eval $ac_link) 2>&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -s conftest$ac_exeext'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; }; then
6504 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6506 echo "$as_me: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6511 LIBS=$ac_check_lib_save_LIBS
6513 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6514 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6515 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6516 cat >>confdefs.h <<_ACEOF
6517 #define HAVE_LIBCRYPTO 1
6520 LIBS="-lcrypto $LIBS"
6523 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6524 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6525 { (exit 1); exit 1; }; }
6529 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6530 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6531 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6534 ac_check_lib_save_LIBS=$LIBS
6536 cat >conftest.$ac_ext <<_ACEOF
6537 #line $LINENO "configure"
6538 #include "confdefs.h"
6540 /* Override any gcc2 internal prototype to avoid an error. */
6544 /* We use char because int might match the return type of a gcc2
6545 builtin and then its argument prototype would still apply. */
6546 char SSL_library_init ();
6547 #ifdef F77_DUMMY_MAIN
6551 int F77_DUMMY_MAIN() { return 1; }
6556 SSL_library_init ();
6561 rm -f conftest.$ac_objext conftest$ac_exeext
6562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6563 (eval $ac_link) 2>&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 ac_cv_lib_ssl_SSL_library_init=yes
6575 echo "$as_me: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6577 ac_cv_lib_ssl_SSL_library_init=no
6579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6580 LIBS=$ac_check_lib_save_LIBS
6582 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6583 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6584 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6585 cat >>confdefs.h <<_ACEOF
6586 #define HAVE_LIBSSL 1
6592 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6593 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6594 { (exit 1); exit 1; }; }
6599 if test "$with_pam" = yes ; then
6601 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6602 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6603 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 ac_check_lib_save_LIBS=$LIBS
6608 cat >conftest.$ac_ext <<_ACEOF
6609 #line $LINENO "configure"
6610 #include "confdefs.h"
6612 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6619 #ifdef F77_DUMMY_MAIN
6623 int F77_DUMMY_MAIN() { return 1; }
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635 (eval $ac_link) 2>&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } &&
6639 { ac_try='test -s conftest$ac_exeext'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
6645 ac_cv_lib_pam_pam_start=yes
6647 echo "$as_me: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6649 ac_cv_lib_pam_pam_start=no
6651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6652 LIBS=$ac_check_lib_save_LIBS
6654 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6655 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6656 if test $ac_cv_lib_pam_pam_start = yes; then
6657 cat >>confdefs.h <<_ACEOF
6658 #define HAVE_LIBPAM 1
6664 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6665 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6666 { (exit 1); exit 1; }; }
6676 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6677 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6678 if test "${ac_cv_header_stdc+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 cat >conftest.$ac_ext <<_ACEOF
6682 #line $LINENO "configure"
6683 #include "confdefs.h"
6690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6693 egrep -v '^ *\+' conftest.er1 >conftest.err
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } >/dev/null; then
6698 if test -s conftest.err; then
6699 ac_cpp_err=$ac_c_preproc_warn_flag
6706 if test -z "$ac_cpp_err"; then
6707 ac_cv_header_stdc=yes
6709 echo "$as_me: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6711 ac_cv_header_stdc=no
6713 rm -f conftest.err conftest.$ac_ext
6715 if test $ac_cv_header_stdc = yes; then
6716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6717 cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 #include "confdefs.h"
6723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6724 egrep "memchr" >/dev/null 2>&1; then
6727 ac_cv_header_stdc=no
6733 if test $ac_cv_header_stdc = yes; then
6734 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6735 cat >conftest.$ac_ext <<_ACEOF
6736 #line $LINENO "configure"
6737 #include "confdefs.h"
6741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6742 egrep "free" >/dev/null 2>&1; then
6745 ac_cv_header_stdc=no
6751 if test $ac_cv_header_stdc = yes; then
6752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6753 if test "$cross_compiling" = yes; then
6756 cat >conftest.$ac_ext <<_ACEOF
6757 #line $LINENO "configure"
6758 #include "confdefs.h"
6760 #if ((' ' & 0x0FF) == 0x020)
6761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6764 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6765 || ('j' <= (c) && (c) <= 'r') \
6766 || ('s' <= (c) && (c) <= 'z'))
6767 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6770 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6775 for (i = 0; i < 256; i++)
6776 if (XOR (islower (i), ISLOWER (i))
6777 || toupper (i) != TOUPPER (i))
6782 rm -f conftest$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784 (eval $ac_link) 2>&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }; then
6795 echo "$as_me: program exited with status $ac_status" >&5
6796 echo "$as_me: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6799 ac_cv_header_stdc=no
6801 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6805 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6806 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6807 if test $ac_cv_header_stdc = yes; then
6809 cat >>confdefs.h <<\_ACEOF
6810 #define STDC_HEADERS 1
6815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6826 inttypes.h stdint.h unistd.h
6828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6829 echo "$as_me:$LINENO: checking for $ac_header" >&5
6830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 cat >conftest.$ac_ext <<_ACEOF
6835 #line $LINENO "configure"
6836 #include "confdefs.h"
6837 $ac_includes_default
6839 #include <$ac_header>
6841 rm -f conftest.$ac_objext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6843 (eval $ac_compile) 2>&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try='test -s conftest.$ac_objext'
6848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); }; }; then
6853 eval "$as_ac_Header=yes"
6855 echo "$as_me: failed program was:" >&5
6856 cat conftest.$ac_ext >&5
6857 eval "$as_ac_Header=no"
6859 rm -f conftest.$ac_objext conftest.$ac_ext
6861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6864 cat >>confdefs.h <<_ACEOF
6865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6894 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
6896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6898 echo "$as_me:$LINENO: checking for $ac_header" >&5
6899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6906 # Is the header compilable?
6907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6909 cat >conftest.$ac_ext <<_ACEOF
6910 #line $LINENO "configure"
6911 #include "confdefs.h"
6912 $ac_includes_default
6913 #include <$ac_header>
6915 rm -f conftest.$ac_objext
6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6917 (eval $ac_compile) 2>&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -s conftest.$ac_objext'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6927 ac_header_compiler=yes
6929 echo "$as_me: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6931 ac_header_compiler=no
6933 rm -f conftest.$ac_objext conftest.$ac_ext
6934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6935 echo "${ECHO_T}$ac_header_compiler" >&6
6937 # Is the header present?
6938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6940 cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 #include "confdefs.h"
6943 #include <$ac_header>
6945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6948 egrep -v '^ *\+' conftest.er1 >conftest.err
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } >/dev/null; then
6953 if test -s conftest.err; then
6954 ac_cpp_err=$ac_c_preproc_warn_flag
6961 if test -z "$ac_cpp_err"; then
6962 ac_header_preproc=yes
6964 echo "$as_me: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6966 ac_header_preproc=no
6968 rm -f conftest.err conftest.$ac_ext
6969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6970 echo "${ECHO_T}$ac_header_preproc" >&6
6972 # So? What about this header?
6973 case $ac_header_compiler:$ac_header_preproc in
6975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6987 echo "$as_me:$LINENO: checking for $ac_header" >&5
6988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 eval "$as_ac_Header=$ac_header_preproc"
6994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6999 cat >>confdefs.h <<_ACEOF
7000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7008 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7009 # netinet/in.h is included first.
7011 for ac_header in netinet/in.h
7013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7015 echo "$as_me:$LINENO: checking for $ac_header" >&5
7016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7023 # Is the header compilable?
7024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7026 cat >conftest.$ac_ext <<_ACEOF
7027 #line $LINENO "configure"
7028 #include "confdefs.h"
7029 $ac_includes_default
7030 #include <$ac_header>
7032 rm -f conftest.$ac_objext
7033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034 (eval $ac_compile) 2>&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try='test -s conftest.$ac_objext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_header_compiler=yes
7046 echo "$as_me: failed program was:" >&5
7047 cat conftest.$ac_ext >&5
7048 ac_header_compiler=no
7050 rm -f conftest.$ac_objext conftest.$ac_ext
7051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7052 echo "${ECHO_T}$ac_header_compiler" >&6
7054 # Is the header present?
7055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7057 cat >conftest.$ac_ext <<_ACEOF
7058 #line $LINENO "configure"
7059 #include "confdefs.h"
7060 #include <$ac_header>
7062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7065 egrep -v '^ *\+' conftest.er1 >conftest.err
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } >/dev/null; then
7070 if test -s conftest.err; then
7071 ac_cpp_err=$ac_c_preproc_warn_flag
7078 if test -z "$ac_cpp_err"; then
7079 ac_header_preproc=yes
7081 echo "$as_me: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7083 ac_header_preproc=no
7085 rm -f conftest.err conftest.$ac_ext
7086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7087 echo "${ECHO_T}$ac_header_preproc" >&6
7089 # So? What about this header?
7090 case $ac_header_compiler:$ac_header_preproc in
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7104 echo "$as_me:$LINENO: checking for $ac_header" >&5
7105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 eval "$as_ac_Header=$ac_header_preproc"
7111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7116 cat >>confdefs.h <<_ACEOF
7117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7125 for ac_header in netinet/tcp.h
7127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7128 echo "$as_me:$LINENO: checking for $ac_header" >&5
7129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 cat >conftest.$ac_ext <<_ACEOF
7134 #line $LINENO "configure"
7135 #include "confdefs.h"
7136 $ac_includes_default
7137 #ifdef HAVE_NETINET_IN_H
7138 #include <netinet/in.h>
7142 #include <$ac_header>
7144 rm -f conftest.$ac_objext
7145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146 (eval $ac_compile) 2>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -s conftest.$ac_objext'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; }; then
7156 eval "$as_ac_Header=yes"
7158 echo "$as_me: failed program was:" >&5
7159 cat conftest.$ac_ext >&5
7160 eval "$as_ac_Header=no"
7162 rm -f conftest.$ac_objext conftest.$ac_ext
7164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7167 cat >>confdefs.h <<_ACEOF
7168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7176 if test "$with_readline" = yes; then
7178 for ac_header in readline/readline.h
7180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7182 echo "$as_me:$LINENO: checking for $ac_header" >&5
7183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7190 # Is the header compilable?
7191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7193 cat >conftest.$ac_ext <<_ACEOF
7194 #line $LINENO "configure"
7195 #include "confdefs.h"
7196 $ac_includes_default
7197 #include <$ac_header>
7199 rm -f conftest.$ac_objext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7201 (eval $ac_compile) 2>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -s conftest.$ac_objext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_header_compiler=yes
7213 echo "$as_me: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7215 ac_header_compiler=no
7217 rm -f conftest.$ac_objext conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7219 echo "${ECHO_T}$ac_header_compiler" >&6
7221 # Is the header present?
7222 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7224 cat >conftest.$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7226 #include "confdefs.h"
7227 #include <$ac_header>
7229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7232 egrep -v '^ *\+' conftest.er1 >conftest.err
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } >/dev/null; then
7237 if test -s conftest.err; then
7238 ac_cpp_err=$ac_c_preproc_warn_flag
7245 if test -z "$ac_cpp_err"; then
7246 ac_header_preproc=yes
7248 echo "$as_me: failed program was:" >&5
7249 cat conftest.$ac_ext >&5
7250 ac_header_preproc=no
7252 rm -f conftest.err conftest.$ac_ext
7253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7254 echo "${ECHO_T}$ac_header_preproc" >&6
7256 # So? What about this header?
7257 case $ac_header_compiler:$ac_header_preproc in
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7265 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7267 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7271 echo "$as_me:$LINENO: checking for $ac_header" >&5
7272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 eval "$as_ac_Header=$ac_header_preproc"
7278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7283 cat >>confdefs.h <<_ACEOF
7284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7289 for ac_header in editline/readline.h
7291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7293 echo "$as_me:$LINENO: checking for $ac_header" >&5
7294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7301 # Is the header compilable?
7302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7304 cat >conftest.$ac_ext <<_ACEOF
7305 #line $LINENO "configure"
7306 #include "confdefs.h"
7307 $ac_includes_default
7308 #include <$ac_header>
7310 rm -f conftest.$ac_objext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7312 (eval $ac_compile) 2>&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_header_compiler=yes
7324 echo "$as_me: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7326 ac_header_compiler=no
7328 rm -f conftest.$ac_objext conftest.$ac_ext
7329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7330 echo "${ECHO_T}$ac_header_compiler" >&6
7332 # Is the header present?
7333 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7335 cat >conftest.$ac_ext <<_ACEOF
7336 #line $LINENO "configure"
7337 #include "confdefs.h"
7338 #include <$ac_header>
7340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7343 egrep -v '^ *\+' conftest.er1 >conftest.err
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } >/dev/null; then
7348 if test -s conftest.err; then
7349 ac_cpp_err=$ac_c_preproc_warn_flag
7356 if test -z "$ac_cpp_err"; then
7357 ac_header_preproc=yes
7359 echo "$as_me: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7361 ac_header_preproc=no
7363 rm -f conftest.err conftest.$ac_ext
7364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7365 echo "${ECHO_T}$ac_header_preproc" >&6
7367 # So? What about this header?
7368 case $ac_header_compiler:$ac_header_preproc in
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7382 echo "$as_me:$LINENO: checking for $ac_header" >&5
7383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 eval "$as_ac_Header=$ac_header_preproc"
7389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7394 cat >>confdefs.h <<_ACEOF
7395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7400 for ac_header in readline.h
7402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7404 echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7412 # Is the header compilable?
7413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7415 cat >conftest.$ac_ext <<_ACEOF
7416 #line $LINENO "configure"
7417 #include "confdefs.h"
7418 $ac_includes_default
7419 #include <$ac_header>
7421 rm -f conftest.$ac_objext
7422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423 (eval $ac_compile) 2>&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } &&
7427 { ac_try='test -s conftest.$ac_objext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 ac_header_compiler=yes
7435 echo "$as_me: failed program was:" >&5
7436 cat conftest.$ac_ext >&5
7437 ac_header_compiler=no
7439 rm -f conftest.$ac_objext conftest.$ac_ext
7440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7441 echo "${ECHO_T}$ac_header_compiler" >&6
7443 # Is the header present?
7444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7446 cat >conftest.$ac_ext <<_ACEOF
7447 #line $LINENO "configure"
7448 #include "confdefs.h"
7449 #include <$ac_header>
7451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7454 egrep -v '^ *\+' conftest.er1 >conftest.err
7456 cat conftest.err >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } >/dev/null; then
7459 if test -s conftest.err; then
7460 ac_cpp_err=$ac_c_preproc_warn_flag
7467 if test -z "$ac_cpp_err"; then
7468 ac_header_preproc=yes
7470 echo "$as_me: failed program was:" >&5
7471 cat conftest.$ac_ext >&5
7472 ac_header_preproc=no
7474 rm -f conftest.err conftest.$ac_ext
7475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7476 echo "${ECHO_T}$ac_header_preproc" >&6
7478 # So? What about this header?
7479 case $ac_header_compiler:$ac_header_preproc in
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7493 echo "$as_me:$LINENO: checking for $ac_header" >&5
7494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 eval "$as_ac_Header=$ac_header_preproc"
7500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7505 cat >>confdefs.h <<_ACEOF
7506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7510 { { echo "$as_me:$LINENO: error: readline header not found
7511 If you have readline already installed, see config.log for details on the
7512 failure. It is possible the compiler isn't looking in the proper directory.
7513 Use --without-readline to disable readline support." >&5
7514 echo "$as_me: error: readline header not found
7515 If you have readline already installed, see config.log for details on the
7516 failure. It is possible the compiler isn't looking in the proper directory.
7517 Use --without-readline to disable readline support." >&2;}
7518 { (exit 1); exit 1; }; }
7532 for ac_header in readline/history.h
7534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7536 echo "$as_me:$LINENO: checking for $ac_header" >&5
7537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7544 # Is the header compilable?
7545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 #include "confdefs.h"
7550 $ac_includes_default
7551 #include <$ac_header>
7553 rm -f conftest.$ac_objext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555 (eval $ac_compile) 2>&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -s conftest.$ac_objext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_header_compiler=yes
7567 echo "$as_me: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7569 ac_header_compiler=no
7571 rm -f conftest.$ac_objext conftest.$ac_ext
7572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7573 echo "${ECHO_T}$ac_header_compiler" >&6
7575 # Is the header present?
7576 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7578 cat >conftest.$ac_ext <<_ACEOF
7579 #line $LINENO "configure"
7580 #include "confdefs.h"
7581 #include <$ac_header>
7583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7586 egrep -v '^ *\+' conftest.er1 >conftest.err
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } >/dev/null; then
7591 if test -s conftest.err; then
7592 ac_cpp_err=$ac_c_preproc_warn_flag
7599 if test -z "$ac_cpp_err"; then
7600 ac_header_preproc=yes
7602 echo "$as_me: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7604 ac_header_preproc=no
7606 rm -f conftest.err conftest.$ac_ext
7607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7608 echo "${ECHO_T}$ac_header_preproc" >&6
7610 # So? What about this header?
7611 case $ac_header_compiler:$ac_header_preproc in
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
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 eval "$as_ac_Header=$ac_header_preproc"
7632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7637 cat >>confdefs.h <<_ACEOF
7638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7643 for ac_header in editline/history.h
7645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7647 echo "$as_me:$LINENO: checking for $ac_header" >&5
7648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7655 # Is the header compilable?
7656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7658 cat >conftest.$ac_ext <<_ACEOF
7659 #line $LINENO "configure"
7660 #include "confdefs.h"
7661 $ac_includes_default
7662 #include <$ac_header>
7664 rm -f conftest.$ac_objext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7666 (eval $ac_compile) 2>&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } &&
7670 { ac_try='test -s conftest.$ac_objext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_header_compiler=yes
7678 echo "$as_me: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7680 ac_header_compiler=no
7682 rm -f conftest.$ac_objext conftest.$ac_ext
7683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684 echo "${ECHO_T}$ac_header_compiler" >&6
7686 # Is the header present?
7687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7689 cat >conftest.$ac_ext <<_ACEOF
7690 #line $LINENO "configure"
7691 #include "confdefs.h"
7692 #include <$ac_header>
7694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7697 egrep -v '^ *\+' conftest.er1 >conftest.err
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } >/dev/null; then
7702 if test -s conftest.err; then
7703 ac_cpp_err=$ac_c_preproc_warn_flag
7710 if test -z "$ac_cpp_err"; then
7711 ac_header_preproc=yes
7713 echo "$as_me: failed program was:" >&5
7714 cat conftest.$ac_ext >&5
7715 ac_header_preproc=no
7717 rm -f conftest.err conftest.$ac_ext
7718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7719 echo "${ECHO_T}$ac_header_preproc" >&6
7721 # So? What about this header?
7722 case $ac_header_compiler:$ac_header_preproc in
7724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
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 eval "$as_ac_Header=$ac_header_preproc"
7743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7748 cat >>confdefs.h <<_ACEOF
7749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7754 for ac_header in history.h
7756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7758 echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7766 # Is the header compilable?
7767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7772 $ac_includes_default
7773 #include <$ac_header>
7775 rm -f conftest.$ac_objext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777 (eval $ac_compile) 2>&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -s conftest.$ac_objext'
7782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); }; }; then
7787 ac_header_compiler=yes
7789 echo "$as_me: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7791 ac_header_compiler=no
7793 rm -f conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 echo "${ECHO_T}$ac_header_compiler" >&6
7797 # Is the header present?
7798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 #include "confdefs.h"
7803 #include <$ac_header>
7805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7808 egrep -v '^ *\+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } >/dev/null; then
7813 if test -s conftest.err; then
7814 ac_cpp_err=$ac_c_preproc_warn_flag
7821 if test -z "$ac_cpp_err"; then
7822 ac_header_preproc=yes
7824 echo "$as_me: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7826 ac_header_preproc=no
7828 rm -f conftest.err conftest.$ac_ext
7829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7830 echo "${ECHO_T}$ac_header_preproc" >&6
7832 # So? What about this header?
7833 case $ac_header_compiler:$ac_header_preproc in
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7847 echo "$as_me:$LINENO: checking for $ac_header" >&5
7848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 eval "$as_ac_Header=$ac_header_preproc"
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7859 cat >>confdefs.h <<_ACEOF
7860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7864 { { echo "$as_me:$LINENO: error: history header not found
7865 If you have readline already installed, see config.log for details on the
7866 failure. It is possible the compiler isn't looking in the proper directory.
7867 Use --without-readline to disable readline support." >&5
7868 echo "$as_me: error: history header not found
7869 If you have readline already installed, see config.log for details on the
7870 failure. It is possible the compiler isn't looking in the proper directory.
7871 Use --without-readline to disable readline support." >&2;}
7872 { (exit 1); exit 1; }; }
7887 if test "$with_zlib" = yes; then
7888 if test "${ac_cv_header_zlib_h+set}" = set; then
7889 echo "$as_me:$LINENO: checking for zlib.h" >&5
7890 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7891 if test "${ac_cv_header_zlib_h+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7894 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7895 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7897 # Is the header compilable?
7898 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7899 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7900 cat >conftest.$ac_ext <<_ACEOF
7901 #line $LINENO "configure"
7902 #include "confdefs.h"
7903 $ac_includes_default
7906 rm -f conftest.$ac_objext
7907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7908 (eval $ac_compile) 2>&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try='test -s conftest.$ac_objext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_header_compiler=yes
7920 echo "$as_me: failed program was:" >&5
7921 cat conftest.$ac_ext >&5
7922 ac_header_compiler=no
7924 rm -f conftest.$ac_objext conftest.$ac_ext
7925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7926 echo "${ECHO_T}$ac_header_compiler" >&6
7928 # Is the header present?
7929 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7930 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 #include "confdefs.h"
7936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7939 egrep -v '^ *\+' conftest.er1 >conftest.err
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } >/dev/null; then
7944 if test -s conftest.err; then
7945 ac_cpp_err=$ac_c_preproc_warn_flag
7952 if test -z "$ac_cpp_err"; then
7953 ac_header_preproc=yes
7955 echo "$as_me: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 ac_header_preproc=no
7959 rm -f conftest.err conftest.$ac_ext
7960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7961 echo "${ECHO_T}$ac_header_preproc" >&6
7963 # So? What about this header?
7964 case $ac_header_compiler:$ac_header_preproc in
7966 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7967 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7968 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7969 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7971 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7972 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7973 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7974 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7975 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7976 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7978 echo "$as_me:$LINENO: checking for zlib.h" >&5
7979 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7980 if test "${ac_cv_header_zlib_h+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 ac_cv_header_zlib_h=$ac_header_preproc
7985 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7986 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7989 if test $ac_cv_header_zlib_h = yes; then
7992 { { echo "$as_me:$LINENO: error: zlib header not found
7993 If you have zlib already installed, see config.log for details on the
7994 failure. It is possible the compiler isn't looking in the proper directory.
7995 Use --without-zlib to disable zlib support." >&5
7996 echo "$as_me: error: zlib header not found
7997 If you have zlib already installed, see config.log for details on the
7998 failure. It is possible the compiler isn't looking in the proper directory.
7999 Use --without-zlib to disable zlib support." >&2;}
8000 { (exit 1); exit 1; }; }
8006 if test "$with_krb4" = yes ; then
8007 if test "${ac_cv_header_krb_h+set}" = set; then
8008 echo "$as_me:$LINENO: checking for krb.h" >&5
8009 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8010 if test "${ac_cv_header_krb_h+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8014 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8016 # Is the header compilable?
8017 echo "$as_me:$LINENO: checking krb.h usability" >&5
8018 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8020 #line $LINENO "configure"
8021 #include "confdefs.h"
8022 $ac_includes_default
8025 rm -f conftest.$ac_objext
8026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8027 (eval $ac_compile) 2>&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -s conftest.$ac_objext'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_header_compiler=yes
8039 echo "$as_me: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 ac_header_compiler=no
8043 rm -f conftest.$ac_objext conftest.$ac_ext
8044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8045 echo "${ECHO_T}$ac_header_compiler" >&6
8047 # Is the header present?
8048 echo "$as_me:$LINENO: checking krb.h presence" >&5
8049 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 #include "confdefs.h"
8055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8058 egrep -v '^ *\+' conftest.er1 >conftest.err
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } >/dev/null; then
8063 if test -s conftest.err; then
8064 ac_cpp_err=$ac_c_preproc_warn_flag
8071 if test -z "$ac_cpp_err"; then
8072 ac_header_preproc=yes
8074 echo "$as_me: failed program was:" >&5
8075 cat conftest.$ac_ext >&5
8076 ac_header_preproc=no
8078 rm -f conftest.err conftest.$ac_ext
8079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8080 echo "${ECHO_T}$ac_header_preproc" >&6
8082 # So? What about this header?
8083 case $ac_header_compiler:$ac_header_preproc in
8085 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8086 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8088 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8090 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8091 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8092 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8093 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8095 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8097 echo "$as_me:$LINENO: checking for krb.h" >&5
8098 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8099 if test "${ac_cv_header_krb_h+set}" = set; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 ac_cv_header_krb_h=$ac_header_preproc
8104 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8105 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8108 if test $ac_cv_header_krb_h = yes; then
8111 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8112 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8113 { (exit 1); exit 1; }; }
8119 if test "$with_krb5" = yes ; then
8120 if test "${ac_cv_header_krb5_h+set}" = set; then
8121 echo "$as_me:$LINENO: checking for krb5.h" >&5
8122 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8123 if test "${ac_cv_header_krb5_h+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8127 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8129 # Is the header compilable?
8130 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8131 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8132 cat >conftest.$ac_ext <<_ACEOF
8133 #line $LINENO "configure"
8134 #include "confdefs.h"
8135 $ac_includes_default
8138 rm -f conftest.$ac_objext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8140 (eval $ac_compile) 2>&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try='test -s conftest.$ac_objext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_header_compiler=yes
8152 echo "$as_me: failed program was:" >&5
8153 cat conftest.$ac_ext >&5
8154 ac_header_compiler=no
8156 rm -f conftest.$ac_objext conftest.$ac_ext
8157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8158 echo "${ECHO_T}$ac_header_compiler" >&6
8160 # Is the header present?
8161 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8162 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8163 cat >conftest.$ac_ext <<_ACEOF
8164 #line $LINENO "configure"
8165 #include "confdefs.h"
8168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8171 egrep -v '^ *\+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } >/dev/null; then
8176 if test -s conftest.err; then
8177 ac_cpp_err=$ac_c_preproc_warn_flag
8184 if test -z "$ac_cpp_err"; then
8185 ac_header_preproc=yes
8187 echo "$as_me: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8189 ac_header_preproc=no
8191 rm -f conftest.err conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193 echo "${ECHO_T}$ac_header_preproc" >&6
8195 # So? What about this header?
8196 case $ac_header_compiler:$ac_header_preproc in
8198 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8199 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8201 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8203 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8204 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8206 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8208 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8210 echo "$as_me:$LINENO: checking for krb5.h" >&5
8211 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8212 if test "${ac_cv_header_krb5_h+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 ac_cv_header_krb5_h=$ac_header_preproc
8217 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8218 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8221 if test $ac_cv_header_krb5_h = yes; then
8224 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8225 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8226 { (exit 1); exit 1; }; }
8230 if test "${ac_cv_header_com_err_h+set}" = set; then
8231 echo "$as_me:$LINENO: checking for com_err.h" >&5
8232 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8233 if test "${ac_cv_header_com_err_h+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8237 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8239 # Is the header compilable?
8240 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8241 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line $LINENO "configure"
8244 #include "confdefs.h"
8245 $ac_includes_default
8246 #include <com_err.h>
8248 rm -f conftest.$ac_objext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250 (eval $ac_compile) 2>&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_header_compiler=yes
8262 echo "$as_me: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 ac_header_compiler=no
8266 rm -f conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 echo "${ECHO_T}$ac_header_compiler" >&6
8270 # Is the header present?
8271 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8272 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 #include "confdefs.h"
8276 #include <com_err.h>
8278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8281 egrep -v '^ *\+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } >/dev/null; then
8286 if test -s conftest.err; then
8287 ac_cpp_err=$ac_c_preproc_warn_flag
8294 if test -z "$ac_cpp_err"; then
8295 ac_header_preproc=yes
8297 echo "$as_me: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8299 ac_header_preproc=no
8301 rm -f conftest.err conftest.$ac_ext
8302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8303 echo "${ECHO_T}$ac_header_preproc" >&6
8305 # So? What about this header?
8306 case $ac_header_compiler:$ac_header_preproc in
8308 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8309 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8311 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8313 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8314 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8316 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8320 echo "$as_me:$LINENO: checking for com_err.h" >&5
8321 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_com_err_h+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 ac_cv_header_com_err_h=$ac_header_preproc
8327 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8331 if test $ac_cv_header_com_err_h = yes; then
8334 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8335 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8336 { (exit 1); exit 1; }; }
8342 if test "$with_openssl" = yes ; then
8343 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8344 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8345 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8346 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8350 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8352 # Is the header compilable?
8353 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8354 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8357 #include "confdefs.h"
8358 $ac_includes_default
8359 #include <openssl/ssl.h>
8361 rm -f conftest.$ac_objext
8362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8363 (eval $ac_compile) 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_header_compiler=yes
8375 echo "$as_me: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8377 ac_header_compiler=no
8379 rm -f conftest.$ac_objext conftest.$ac_ext
8380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8381 echo "${ECHO_T}$ac_header_compiler" >&6
8383 # Is the header present?
8384 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8385 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8386 cat >conftest.$ac_ext <<_ACEOF
8387 #line $LINENO "configure"
8388 #include "confdefs.h"
8389 #include <openssl/ssl.h>
8391 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8394 egrep -v '^ *\+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } >/dev/null; then
8399 if test -s conftest.err; then
8400 ac_cpp_err=$ac_c_preproc_warn_flag
8407 if test -z "$ac_cpp_err"; then
8408 ac_header_preproc=yes
8410 echo "$as_me: failed program was:" >&5
8411 cat conftest.$ac_ext >&5
8412 ac_header_preproc=no
8414 rm -f conftest.err conftest.$ac_ext
8415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8416 echo "${ECHO_T}$ac_header_preproc" >&6
8418 # So? What about this header?
8419 case $ac_header_compiler:$ac_header_preproc in
8421 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8422 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8424 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8426 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8427 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8429 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8431 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8433 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8434 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8435 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8440 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8441 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8444 if test $ac_cv_header_openssl_ssl_h = yes; then
8447 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8448 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8449 { (exit 1); exit 1; }; }
8453 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8454 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8455 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8456 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8460 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8462 # Is the header compilable?
8463 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8464 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 #include "confdefs.h"
8468 $ac_includes_default
8469 #include <openssl/err.h>
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_header_compiler=yes
8485 echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 ac_header_compiler=no
8489 rm -f conftest.$ac_objext conftest.$ac_ext
8490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8491 echo "${ECHO_T}$ac_header_compiler" >&6
8493 # Is the header present?
8494 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8495 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8499 #include <openssl/err.h>
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8504 egrep -v '^ *\+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } >/dev/null; then
8509 if test -s conftest.err; then
8510 ac_cpp_err=$ac_c_preproc_warn_flag
8517 if test -z "$ac_cpp_err"; then
8518 ac_header_preproc=yes
8520 echo "$as_me: failed program was:" >&5
8521 cat conftest.$ac_ext >&5
8522 ac_header_preproc=no
8524 rm -f conftest.err conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8526 echo "${ECHO_T}$ac_header_preproc" >&6
8528 # So? What about this header?
8529 case $ac_header_compiler:$ac_header_preproc in
8531 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8532 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8536 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8541 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8543 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8544 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8545 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_cv_header_openssl_err_h=$ac_header_preproc
8550 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8554 if test $ac_cv_header_openssl_err_h = yes; then
8557 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8558 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8559 { (exit 1); exit 1; }; }
8565 if test "$with_pam" = yes ; then
8567 for ac_header in security/pam_appl.h
8569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8571 echo "$as_me:$LINENO: checking for $ac_header" >&5
8572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8579 # Is the header compilable?
8580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8582 cat >conftest.$ac_ext <<_ACEOF
8583 #line $LINENO "configure"
8584 #include "confdefs.h"
8585 $ac_includes_default
8586 #include <$ac_header>
8588 rm -f conftest.$ac_objext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590 (eval $ac_compile) 2>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_header_compiler=yes
8602 echo "$as_me: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8604 ac_header_compiler=no
8606 rm -f conftest.$ac_objext conftest.$ac_ext
8607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6
8610 # Is the header present?
8611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8614 #line $LINENO "configure"
8615 #include "confdefs.h"
8616 #include <$ac_header>
8618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8621 egrep -v '^ *\+' conftest.er1 >conftest.err
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } >/dev/null; then
8626 if test -s conftest.err; then
8627 ac_cpp_err=$ac_c_preproc_warn_flag
8634 if test -z "$ac_cpp_err"; then
8635 ac_header_preproc=yes
8637 echo "$as_me: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8639 ac_header_preproc=no
8641 rm -f conftest.err conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 echo "${ECHO_T}$ac_header_preproc" >&6
8645 # So? What about this header?
8646 case $ac_header_compiler:$ac_header_preproc in
8648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8660 echo "$as_me:$LINENO: checking for $ac_header" >&5
8661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 eval "$as_ac_Header=$ac_header_preproc"
8667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8672 cat >>confdefs.h <<_ACEOF
8673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8678 for ac_header in pam/pam_appl.h
8680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8682 echo "$as_me:$LINENO: checking for $ac_header" >&5
8683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8690 # Is the header compilable?
8691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8693 cat >conftest.$ac_ext <<_ACEOF
8694 #line $LINENO "configure"
8695 #include "confdefs.h"
8696 $ac_includes_default
8697 #include <$ac_header>
8699 rm -f conftest.$ac_objext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8701 (eval $ac_compile) 2>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try='test -s conftest.$ac_objext'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; }; then
8711 ac_header_compiler=yes
8713 echo "$as_me: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 ac_header_compiler=no
8717 rm -f conftest.$ac_objext conftest.$ac_ext
8718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8719 echo "${ECHO_T}$ac_header_compiler" >&6
8721 # Is the header present?
8722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8724 cat >conftest.$ac_ext <<_ACEOF
8725 #line $LINENO "configure"
8726 #include "confdefs.h"
8727 #include <$ac_header>
8729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8732 egrep -v '^ *\+' conftest.er1 >conftest.err
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } >/dev/null; then
8737 if test -s conftest.err; then
8738 ac_cpp_err=$ac_c_preproc_warn_flag
8745 if test -z "$ac_cpp_err"; then
8746 ac_header_preproc=yes
8748 echo "$as_me: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8750 ac_header_preproc=no
8752 rm -f conftest.err conftest.$ac_ext
8753 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8754 echo "${ECHO_T}$ac_header_preproc" >&6
8756 # So? What about this header?
8757 case $ac_header_compiler:$ac_header_preproc in
8759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8771 echo "$as_me:$LINENO: checking for $ac_header" >&5
8772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 eval "$as_ac_Header=$ac_header_preproc"
8778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8783 cat >>confdefs.h <<_ACEOF
8784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8789 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8790 { (exit 1); exit 1; }; }
8803 ## Types, structures, compiler characteristics
8807 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8808 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8809 if test "${ac_cv_c_const+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 cat >conftest.$ac_ext <<_ACEOF
8813 #line $LINENO "configure"
8814 #include "confdefs.h"
8816 #ifdef F77_DUMMY_MAIN
8820 int F77_DUMMY_MAIN() { return 1; }
8825 /* FIXME: Include the comments suggested by Paul. */
8827 /* Ultrix mips cc rejects this. */
8828 typedef int charset[2];
8830 /* SunOS 4.1.1 cc rejects this. */
8831 char const *const *ccp;
8833 /* NEC SVR4.0.2 mips cc rejects this. */
8834 struct point {int x, y;};
8835 static struct point const zero = {0,0};
8836 /* AIX XL C 1.02.0.0 rejects this.
8837 It does not let you subtract one const X* pointer from another in
8838 an arm of an if-expression whose if-part is not a constant
8840 const char *g = "string";
8841 ccp = &g + (g ? g-g : 0);
8842 /* HPUX 7.0 cc rejects these. */
8845 ccp = (char const *const *) p;
8846 { /* SCO 3.2v4 cc rejects this. */
8848 char const *s = 0 ? (char *) 0 : (char const *) 0;
8852 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8854 const int *foo = &x[0];
8857 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8858 typedef const int *iptr;
8862 { /* AIX XL C 1.02.0.0 rejects this saying
8863 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8864 struct s { int j; const int *ap[3]; };
8865 struct s *b; b->j = 5;
8867 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8876 rm -f conftest.$ac_objext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8890 echo "$as_me: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8894 rm -f conftest.$ac_objext conftest.$ac_ext
8896 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8897 echo "${ECHO_T}$ac_cv_c_const" >&6
8898 if test $ac_cv_c_const = no; then
8900 cat >>confdefs.h <<\_ACEOF
8906 echo "$as_me:$LINENO: checking for inline" >&5
8907 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8908 if test "${ac_cv_c_inline+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 for ac_kw in inline __inline__ __inline; do
8913 cat >conftest.$ac_ext <<_ACEOF
8914 #line $LINENO "configure"
8915 #include "confdefs.h"
8917 static $ac_kw int static_foo () {return 0; }
8918 $ac_kw int foo () {return 0; }
8922 rm -f conftest.$ac_objext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8924 (eval $ac_compile) 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_cv_c_inline=$ac_kw; break
8936 echo "$as_me: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8939 rm -f conftest.$ac_objext conftest.$ac_ext
8943 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8944 echo "${ECHO_T}$ac_cv_c_inline" >&6
8945 case $ac_cv_c_inline in
8948 cat >>confdefs.h <<\_ACEOF
8952 *) cat >>confdefs.h <<_ACEOF
8953 #define inline $ac_cv_c_inline
8958 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8959 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8960 if test "${ac_cv_c_stringize+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 cat >conftest.$ac_ext <<_ACEOF
8964 #line $LINENO "configure"
8965 #include "confdefs.h"
8968 char *s = x(teststring);
8970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8971 egrep "#teststring" >/dev/null 2>&1; then
8972 ac_cv_c_stringize=no
8974 ac_cv_c_stringize=yes
8979 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8980 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8981 if test $ac_cv_c_stringize = yes; then
8983 cat >>confdefs.h <<\_ACEOF
8984 #define HAVE_STRINGIZE 1
8989 echo "$as_me:$LINENO: checking for signed types" >&5
8990 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8991 if test "${pgac_cv_c_signed+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 cat >conftest.$ac_ext <<_ACEOF
8995 #line $LINENO "configure"
8996 #include "confdefs.h"
8998 #ifdef F77_DUMMY_MAIN
9002 int F77_DUMMY_MAIN() { return 1; }
9007 signed char c; signed short s; signed int i;
9012 rm -f conftest.$ac_objext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9014 (eval $ac_compile) 2>&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -s conftest.$ac_objext'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 pgac_cv_c_signed=yes
9026 echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9030 rm -f conftest.$ac_objext conftest.$ac_ext
9032 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9033 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9034 if test x"$pgac_cv_c_signed" = xno ; then
9036 cat >>confdefs.h <<\_ACEOF
9041 echo "$as_me:$LINENO: checking for working volatile" >&5
9042 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9043 if test "${ac_cv_c_volatile+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9047 #line $LINENO "configure"
9048 #include "confdefs.h"
9050 #ifdef F77_DUMMY_MAIN
9054 int F77_DUMMY_MAIN() { return 1; }
9066 rm -f conftest.$ac_objext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9068 (eval $ac_compile) 2>&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -s conftest.$ac_objext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ac_cv_c_volatile=yes
9080 echo "$as_me: failed program was:" >&5
9081 cat conftest.$ac_ext >&5
9084 rm -f conftest.$ac_objext conftest.$ac_ext
9086 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9087 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9088 if test $ac_cv_c_volatile = no; then
9090 cat >>confdefs.h <<\_ACEOF
9096 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9097 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9098 if test "${ac_cv_struct_tm+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 cat >conftest.$ac_ext <<_ACEOF
9102 #line $LINENO "configure"
9103 #include "confdefs.h"
9104 #include <sys/types.h>
9107 #ifdef F77_DUMMY_MAIN
9111 int F77_DUMMY_MAIN() { return 1; }
9116 struct tm *tp; tp->tm_sec;
9121 rm -f conftest.$ac_objext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123 (eval $ac_compile) 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -s conftest.$ac_objext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_struct_tm=time.h
9135 echo "$as_me: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9137 ac_cv_struct_tm=sys/time.h
9139 rm -f conftest.$ac_objext conftest.$ac_ext
9141 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9142 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9143 if test $ac_cv_struct_tm = sys/time.h; then
9145 cat >>confdefs.h <<\_ACEOF
9146 #define TM_IN_SYS_TIME 1
9151 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9152 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9153 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 cat >conftest.$ac_ext <<_ACEOF
9157 #line $LINENO "configure"
9158 #include "confdefs.h"
9159 #include <sys/types.h>
9160 #include <$ac_cv_struct_tm>
9163 #ifdef F77_DUMMY_MAIN
9167 int F77_DUMMY_MAIN() { return 1; }
9172 static struct tm ac_aggr;
9173 if (ac_aggr.tm_zone)
9179 rm -f conftest.$ac_objext
9180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9181 (eval $ac_compile) 2>&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } &&
9185 { ac_try='test -s conftest.$ac_objext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 ac_cv_member_struct_tm_tm_zone=yes
9193 echo "$as_me: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 ac_cv_member_struct_tm_tm_zone=no
9197 rm -f conftest.$ac_objext conftest.$ac_ext
9199 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9200 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9201 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9203 cat >>confdefs.h <<_ACEOF
9204 #define HAVE_STRUCT_TM_TM_ZONE 1
9210 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9212 cat >>confdefs.h <<\_ACEOF
9213 #define HAVE_TM_ZONE 1
9217 echo "$as_me:$LINENO: checking for tzname" >&5
9218 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9219 if test "${ac_cv_var_tzname+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 cat >conftest.$ac_ext <<_ACEOF
9223 #line $LINENO "configure"
9224 #include "confdefs.h"
9226 #ifndef tzname /* For SGI. */
9227 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9230 #ifdef F77_DUMMY_MAIN
9234 int F77_DUMMY_MAIN() { return 1; }
9244 rm -f conftest.$ac_objext conftest$ac_exeext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246 (eval $ac_link) 2>&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try='test -s conftest$ac_exeext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ac_cv_var_tzname=yes
9258 echo "$as_me: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9264 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9265 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9266 if test $ac_cv_var_tzname = yes; then
9268 cat >>confdefs.h <<\_ACEOF
9269 #define HAVE_TZNAME 1
9275 echo "$as_me:$LINENO: checking for union semun" >&5
9276 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9277 if test "${ac_cv_type_union_semun+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 cat >conftest.$ac_ext <<_ACEOF
9281 #line $LINENO "configure"
9282 #include "confdefs.h"
9283 #include <sys/types.h>
9284 #include <sys/ipc.h>
9285 #include <sys/sem.h>
9287 #ifdef F77_DUMMY_MAIN
9291 int F77_DUMMY_MAIN() { return 1; }
9296 if ((union semun *) 0)
9298 if (sizeof (union semun))
9304 rm -f conftest.$ac_objext
9305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9306 (eval $ac_compile) 2>&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } &&
9310 { ac_try='test -s conftest.$ac_objext'
9311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); }; }; then
9316 ac_cv_type_union_semun=yes
9318 echo "$as_me: failed program was:" >&5
9319 cat conftest.$ac_ext >&5
9320 ac_cv_type_union_semun=no
9322 rm -f conftest.$ac_objext conftest.$ac_ext
9324 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9325 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9326 if test $ac_cv_type_union_semun = yes; then
9328 cat >>confdefs.h <<_ACEOF
9329 #define HAVE_UNION_SEMUN 1
9335 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9336 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9337 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9341 #line $LINENO "configure"
9342 #include "confdefs.h"
9343 #include <sys/types.h>
9344 #ifdef HAVE_SYS_UN_H
9349 #ifdef F77_DUMMY_MAIN
9353 int F77_DUMMY_MAIN() { return 1; }
9358 if ((struct sockaddr_un *) 0)
9360 if (sizeof (struct sockaddr_un))
9366 rm -f conftest.$ac_objext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9368 (eval $ac_compile) 2>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try='test -s conftest.$ac_objext'
9373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; }; then
9378 ac_cv_type_struct_sockaddr_un=yes
9380 echo "$as_me: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9382 ac_cv_type_struct_sockaddr_un=no
9384 rm -f conftest.$ac_objext conftest.$ac_ext
9386 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9387 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9388 if test $ac_cv_type_struct_sockaddr_un = yes; then
9390 cat >>confdefs.h <<_ACEOF
9391 #define HAVE_STRUCT_SOCKADDR_UN 1
9398 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9399 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9400 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 #include "confdefs.h"
9406 #include <sys/param.h>
9407 #include <sys/socket.h>
9408 #include <sys/ucred.h>
9410 #ifdef F77_DUMMY_MAIN
9414 int F77_DUMMY_MAIN() { return 1; }
9419 if ((struct cmsgcred *) 0)
9421 if (sizeof (struct cmsgcred))
9427 rm -f conftest.$ac_objext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9429 (eval $ac_compile) 2>&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -s conftest.$ac_objext'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
9439 ac_cv_type_struct_cmsgcred=yes
9441 echo "$as_me: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9443 ac_cv_type_struct_cmsgcred=no
9445 rm -f conftest.$ac_objext conftest.$ac_ext
9447 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9448 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9449 if test $ac_cv_type_struct_cmsgcred = yes; then
9451 cat >>confdefs.h <<_ACEOF
9452 #define HAVE_STRUCT_CMSGCRED 1
9457 echo "$as_me:$LINENO: checking for struct fcred" >&5
9458 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9459 if test "${ac_cv_type_struct_fcred+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 cat >conftest.$ac_ext <<_ACEOF
9463 #line $LINENO "configure"
9464 #include "confdefs.h"
9465 #include <sys/param.h>
9466 #include <sys/socket.h>
9467 #include <sys/ucred.h>
9469 #ifdef F77_DUMMY_MAIN
9473 int F77_DUMMY_MAIN() { return 1; }
9478 if ((struct fcred *) 0)
9480 if (sizeof (struct fcred))
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -s conftest.$ac_objext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_cv_type_struct_fcred=yes
9500 echo "$as_me: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 ac_cv_type_struct_fcred=no
9504 rm -f conftest.$ac_objext conftest.$ac_ext
9506 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9507 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9508 if test $ac_cv_type_struct_fcred = yes; then
9510 cat >>confdefs.h <<_ACEOF
9511 #define HAVE_STRUCT_FCRED 1
9516 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9517 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9518 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 cat >conftest.$ac_ext <<_ACEOF
9522 #line $LINENO "configure"
9523 #include "confdefs.h"
9524 #include <sys/param.h>
9525 #include <sys/socket.h>
9526 #include <sys/ucred.h>
9528 #ifdef F77_DUMMY_MAIN
9532 int F77_DUMMY_MAIN() { return 1; }
9537 if ((struct sockcred *) 0)
9539 if (sizeof (struct sockcred))
9545 rm -f conftest.$ac_objext
9546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9547 (eval $ac_compile) 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } &&
9551 { ac_try='test -s conftest.$ac_objext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_cv_type_struct_sockcred=yes
9559 echo "$as_me: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9561 ac_cv_type_struct_sockcred=no
9563 rm -f conftest.$ac_objext conftest.$ac_ext
9565 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9566 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9567 if test $ac_cv_type_struct_sockcred = yes; then
9569 cat >>confdefs.h <<_ACEOF
9570 #define HAVE_STRUCT_SOCKCRED 1
9577 if test "$with_zlib" = yes; then
9578 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9579 # did not). While we could work around the lack of z_streamp, it
9580 # seems unwise to encourage people to use such old zlib versions...
9581 echo "$as_me:$LINENO: checking for z_streamp" >&5
9582 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9583 if test "${ac_cv_type_z_streamp+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 cat >conftest.$ac_ext <<_ACEOF
9587 #line $LINENO "configure"
9588 #include "confdefs.h"
9591 #ifdef F77_DUMMY_MAIN
9595 int F77_DUMMY_MAIN() { return 1; }
9600 if ((z_streamp *) 0)
9602 if (sizeof (z_streamp))
9608 rm -f conftest.$ac_objext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9610 (eval $ac_compile) 2>&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } &&
9614 { ac_try='test -s conftest.$ac_objext'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; }; then
9620 ac_cv_type_z_streamp=yes
9622 echo "$as_me: failed program was:" >&5
9623 cat conftest.$ac_ext >&5
9624 ac_cv_type_z_streamp=no
9626 rm -f conftest.$ac_objext conftest.$ac_ext
9628 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9629 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9630 if test $ac_cv_type_z_streamp = yes; then
9633 { { echo "$as_me:$LINENO: error: zlib version is too old
9634 Use --without-zlib to disable zlib support." >&5
9635 echo "$as_me: error: zlib version is too old
9636 Use --without-zlib to disable zlib support." >&2;}
9637 { (exit 1); exit 1; }; }
9642 if test "$with_krb5" = yes; then
9643 # Check for differences between MIT and Heimdal (KTH) releases
9644 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9645 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9646 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 cat >conftest.$ac_ext <<_ACEOF
9650 #line $LINENO "configure"
9651 #include "confdefs.h"
9654 #ifdef F77_DUMMY_MAIN
9658 int F77_DUMMY_MAIN() { return 1; }
9663 static krb5_ticket ac_aggr;
9664 if (ac_aggr.enc_part2)
9670 rm -f conftest.$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672 (eval $ac_compile) 2>&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -s conftest.$ac_objext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 ac_cv_member_krb5_ticket_enc_part2=yes
9684 echo "$as_me: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9686 ac_cv_member_krb5_ticket_enc_part2=no
9688 rm -f conftest.$ac_objext conftest.$ac_ext
9690 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9691 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9692 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9694 cat >>confdefs.h <<_ACEOF
9695 #define HAVE_KRB5_TICKET_ENC_PART2 1
9700 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9701 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9702 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9705 cat >conftest.$ac_ext <<_ACEOF
9706 #line $LINENO "configure"
9707 #include "confdefs.h"
9710 #ifdef F77_DUMMY_MAIN
9714 int F77_DUMMY_MAIN() { return 1; }
9719 static krb5_ticket ac_aggr;
9726 rm -f conftest.$ac_objext
9727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9728 (eval $ac_compile) 2>&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
9732 { ac_try='test -s conftest.$ac_objext'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; }; then
9738 ac_cv_member_krb5_ticket_client=yes
9740 echo "$as_me: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9742 ac_cv_member_krb5_ticket_client=no
9744 rm -f conftest.$ac_objext conftest.$ac_ext
9746 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9747 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9748 if test $ac_cv_member_krb5_ticket_client = yes; then
9750 cat >>confdefs.h <<_ACEOF
9751 #define HAVE_KRB5_TICKET_CLIENT 1
9756 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9757 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9758 { (exit 1); exit 1; }; }
9763 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9764 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9765 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 cat >conftest.$ac_ext <<_ACEOF
9769 #line $LINENO "configure"
9770 #include "confdefs.h"
9773 #ifdef F77_DUMMY_MAIN
9777 int F77_DUMMY_MAIN() { return 1; }
9782 static krb5_error ac_aggr;
9783 if (ac_aggr.text.data)
9789 rm -f conftest.$ac_objext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9791 (eval $ac_compile) 2>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } &&
9795 { ac_try='test -s conftest.$ac_objext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 ac_cv_member_krb5_error_text_data=yes
9803 echo "$as_me: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9805 ac_cv_member_krb5_error_text_data=no
9807 rm -f conftest.$ac_objext conftest.$ac_ext
9809 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9810 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9811 if test $ac_cv_member_krb5_error_text_data = yes; then
9813 cat >>confdefs.h <<_ACEOF
9814 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9819 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9820 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9821 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 cat >conftest.$ac_ext <<_ACEOF
9825 #line $LINENO "configure"
9826 #include "confdefs.h"
9829 #ifdef F77_DUMMY_MAIN
9833 int F77_DUMMY_MAIN() { return 1; }
9838 static krb5_error ac_aggr;
9845 rm -f conftest.$ac_objext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9847 (eval $ac_compile) 2>&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -s conftest.$ac_objext'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_cv_member_krb5_error_e_data=yes
9859 echo "$as_me: failed program was:" >&5
9860 cat conftest.$ac_ext >&5
9861 ac_cv_member_krb5_error_e_data=no
9863 rm -f conftest.$ac_objext conftest.$ac_ext
9865 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9866 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9867 if test $ac_cv_member_krb5_error_e_data = yes; then
9869 cat >>confdefs.h <<_ACEOF
9870 #define HAVE_KRB5_ERROR_E_DATA 1
9875 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9876 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9877 { (exit 1); exit 1; }; }
9886 ## Functions, global variables
9889 echo "$as_me:$LINENO: checking for int timezone" >&5
9890 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9891 if test "${pgac_cv_var_int_timezone+set}" = set; then
9892 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 cat >conftest.$ac_ext <<_ACEOF
9895 #line $LINENO "configure"
9896 #include "confdefs.h"
9899 #ifdef F77_DUMMY_MAIN
9903 int F77_DUMMY_MAIN() { return 1; }
9908 res = timezone / 60;
9913 rm -f conftest.$ac_objext conftest$ac_exeext
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } &&
9919 { ac_try='test -s conftest$ac_exeext'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 pgac_cv_var_int_timezone=yes
9927 echo "$as_me: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 pgac_cv_var_int_timezone=no
9931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9933 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9934 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9935 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9937 cat >>confdefs.h <<\_ACEOF
9938 #define HAVE_INT_TIMEZONE
9942 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9943 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9944 if test "${ac_cv_func_accept_arg1+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 if test "${ac_cv_func_accept_arg2+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 if test "${ac_cv_func_accept_arg3+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9953 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9954 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9955 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9956 cat >conftest.$ac_ext <<_ACEOF
9957 #line $LINENO "configure"
9958 #include "confdefs.h"
9959 #ifdef HAVE_SYS_TYPES_H
9960 #include <sys/types.h>
9962 #ifdef HAVE_SYS_SOCKET_H
9963 #include <sys/socket.h>
9965 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9966 #ifdef F77_DUMMY_MAIN
9970 int F77_DUMMY_MAIN() { return 1; }
9980 rm -f conftest.$ac_objext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982 (eval $ac_compile) 2>&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } &&
9986 { ac_try='test -s conftest.$ac_objext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_not_found=no; break 3
9994 echo "$as_me: failed program was:" >&5
9995 cat conftest.$ac_ext >&5
9998 rm -f conftest.$ac_objext conftest.$ac_ext
10002 if test "$ac_not_found" = yes; then
10003 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10004 echo "$as_me: error: could not determine argument types" >&2;}
10005 { (exit 1); exit 1; }; }
10007 if test "$ac_cv_func_accept_arg3" = "void"; then
10008 ac_cv_func_accept_arg3=int
10016 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10017 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10019 cat >>confdefs.h <<_ACEOF
10020 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10024 cat >>confdefs.h <<_ACEOF
10025 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10029 cat >>confdefs.h <<_ACEOF
10030 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10034 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10035 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10036 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 cat >conftest.$ac_ext <<_ACEOF
10040 #line $LINENO "configure"
10041 #include "confdefs.h"
10042 #include <sys/time.h>
10043 #ifdef F77_DUMMY_MAIN
10044 # ifdef __cplusplus
10047 int F77_DUMMY_MAIN() { return 1; }
10052 struct timeval *tp;
10053 struct timezone *tzp;
10054 gettimeofday(tp,tzp);
10059 rm -f conftest.$ac_objext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061 (eval $ac_compile) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -s conftest.$ac_objext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 pgac_cv_func_gettimeofday_1arg=no
10073 echo "$as_me: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10075 pgac_cv_func_gettimeofday_1arg=yes
10077 rm -f conftest.$ac_objext conftest.$ac_ext
10079 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10080 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10081 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10083 cat >>confdefs.h <<\_ACEOF
10084 #define GETTIMEOFDAY_1ARG
10089 # SunOS doesn't handle negative byte comparisons properly with +/- return
10090 echo "$as_me:$LINENO: checking for working memcmp" >&5
10091 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10092 if test "${ac_cv_func_memcmp_working+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 if test "$cross_compiling" = yes; then
10096 ac_cv_func_memcmp_working=no
10098 cat >conftest.$ac_ext <<_ACEOF
10099 #line $LINENO "configure"
10100 #include "confdefs.h"
10102 #ifdef F77_DUMMY_MAIN
10103 # ifdef __cplusplus
10106 int F77_DUMMY_MAIN() { return 1; }
10112 /* Some versions of memcmp are not 8-bit clean. */
10113 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10114 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10117 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10118 or more and with at least one buffer not starting on a 4-byte boundary.
10119 William Lewis provided this test program. */
10124 for (i = 0; i < 4; i++)
10128 strcpy (a, "--------01111111");
10129 strcpy (b, "--------10000000");
10130 if (memcmp (a, b, 16) >= 0)
10140 rm -f conftest$ac_exeext
10141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10151 ac_cv_func_memcmp_working=yes
10153 echo "$as_me: program exited with status $ac_status" >&5
10154 echo "$as_me: failed program was:" >&5
10155 cat conftest.$ac_ext >&5
10156 ( exit $ac_status )
10157 ac_cv_func_memcmp_working=no
10159 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10162 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10163 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10164 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10182 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask sysconf utime utimes waitpid
10184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10185 echo "$as_me:$LINENO: checking for $ac_func" >&5
10186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10187 if eval "test \"\${$as_ac_var+set}\" = set"; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 cat >conftest.$ac_ext <<_ACEOF
10191 #line $LINENO "configure"
10192 #include "confdefs.h"
10193 /* System header to define __stub macros and hopefully few prototypes,
10194 which can conflict with char $ac_func (); below. */
10195 #include <assert.h>
10196 /* Override any gcc2 internal prototype to avoid an error. */
10200 /* We use char because int might match the return type of a gcc2
10201 builtin and then its argument prototype would still apply. */
10205 #ifdef F77_DUMMY_MAIN
10206 # ifdef __cplusplus
10209 int F77_DUMMY_MAIN() { return 1; }
10214 /* The GNU C library defines this for functions which it implements
10215 to always fail with ENOSYS. Some functions are actually named
10216 something starting with __ and the normal name is an alias. */
10217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } &&
10233 { ac_try='test -s conftest$ac_exeext'
10234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235 (eval $ac_try) 2>&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); }; }; then
10239 eval "$as_ac_var=yes"
10241 echo "$as_me: failed program was:" >&5
10242 cat conftest.$ac_ext >&5
10243 eval "$as_ac_var=no"
10245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10249 if test `eval echo '${'$as_ac_var'}'` = yes; then
10250 cat >>confdefs.h <<_ACEOF
10251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10258 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
10259 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
10260 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 cat >conftest.$ac_ext <<_ACEOF
10264 #line $LINENO "configure"
10265 #include "confdefs.h"
10266 #include <unistd.h>
10268 #ifdef F77_DUMMY_MAIN
10269 # ifdef __cplusplus
10272 int F77_DUMMY_MAIN() { return 1; }
10278 char *p = (char *) fdatasync;
10285 rm -f conftest.$ac_objext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287 (eval $ac_compile) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -s conftest.$ac_objext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 ac_cv_have_decl_fdatasync=yes
10299 echo "$as_me: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10301 ac_cv_have_decl_fdatasync=no
10303 rm -f conftest.$ac_objext conftest.$ac_ext
10305 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10306 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10307 if test $ac_cv_have_decl_fdatasync = yes; then
10309 cat >>confdefs.h <<_ACEOF
10310 #define HAVE_DECL_FDATASYNC 1
10315 cat >>confdefs.h <<_ACEOF
10316 #define HAVE_DECL_FDATASYNC 0
10324 # This exports HAVE_IPV6 to both C files and Makefiles
10325 echo "$as_me:$LINENO: checking for getaddrinfo" >&5
10326 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
10327 if test "${ac_cv_func_getaddrinfo+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10332 #include "confdefs.h"
10333 /* System header to define __stub macros and hopefully few prototypes,
10334 which can conflict with char getaddrinfo (); below. */
10335 #include <assert.h>
10336 /* Override any gcc2 internal prototype to avoid an error. */
10340 /* We use char because int might match the return type of a gcc2
10341 builtin and then its argument prototype would still apply. */
10342 char getaddrinfo ();
10345 #ifdef F77_DUMMY_MAIN
10346 # ifdef __cplusplus
10349 int F77_DUMMY_MAIN() { return 1; }
10354 /* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10369 (eval $ac_link) 2>&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } &&
10373 { ac_try='test -s conftest$ac_exeext'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 ac_cv_func_getaddrinfo=yes
10381 echo "$as_me: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10383 ac_cv_func_getaddrinfo=no
10385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10387 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
10388 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
10389 if test $ac_cv_func_getaddrinfo = yes; then
10390 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
10391 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
10392 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 cat >conftest.$ac_ext <<_ACEOF
10396 #line $LINENO "configure"
10397 #include "confdefs.h"
10398 $ac_includes_default
10399 #include <netinet/in.h>
10401 #ifdef F77_DUMMY_MAIN
10402 # ifdef __cplusplus
10405 int F77_DUMMY_MAIN() { return 1; }
10410 if ((struct sockaddr_in6 *) 0)
10412 if (sizeof (struct sockaddr_in6))
10418 rm -f conftest.$ac_objext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420 (eval $ac_compile) 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } &&
10424 { ac_try='test -s conftest.$ac_objext'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }; then
10430 ac_cv_type_struct_sockaddr_in6=yes
10432 echo "$as_me: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10434 ac_cv_type_struct_sockaddr_in6=no
10436 rm -f conftest.$ac_objext conftest.$ac_ext
10438 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
10439 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
10440 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
10441 HAVE_IPV6="yes"; cat >>confdefs.h <<\_ACEOF
10442 #define HAVE_IPV6 1
10451 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10452 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10453 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 #include "confdefs.h"
10459 #include <machine/vmparam.h>
10460 #include <sys/exec.h>
10462 #ifdef F77_DUMMY_MAIN
10463 # ifdef __cplusplus
10466 int F77_DUMMY_MAIN() { return 1; }
10471 PS_STRINGS->ps_nargvstr = 1;
10472 PS_STRINGS->ps_argvstr = "foo";
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479 (eval $ac_link) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -s conftest$ac_exeext'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then
10489 pgac_cv_var_PS_STRINGS=yes
10491 echo "$as_me: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 pgac_cv_var_PS_STRINGS=no
10495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10497 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10498 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10499 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10501 cat >>confdefs.h <<\_ACEOF
10502 #define HAVE_PS_STRINGS
10508 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10509 # is missing. Yes, there are machines that have only one. We may
10510 # also decide to use snprintf.c if snprintf() is present but does not
10511 # have working "long long int" support -- see below.
10513 pgac_need_repl_snprintf=no
10515 for ac_func in snprintf
10517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10518 echo "$as_me:$LINENO: checking for $ac_func" >&5
10519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10520 if eval "test \"\${$as_ac_var+set}\" = set"; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 cat >conftest.$ac_ext <<_ACEOF
10524 #line $LINENO "configure"
10525 #include "confdefs.h"
10526 /* System header to define __stub macros and hopefully few prototypes,
10527 which can conflict with char $ac_func (); below. */
10528 #include <assert.h>
10529 /* Override any gcc2 internal prototype to avoid an error. */
10533 /* We use char because int might match the return type of a gcc2
10534 builtin and then its argument prototype would still apply. */
10538 #ifdef F77_DUMMY_MAIN
10539 # ifdef __cplusplus
10542 int F77_DUMMY_MAIN() { return 1; }
10547 /* The GNU C library defines this for functions which it implements
10548 to always fail with ENOSYS. Some functions are actually named
10549 something starting with __ and the normal name is an alias. */
10550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -s conftest$ac_exeext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 eval "$as_ac_var=yes"
10574 echo "$as_me: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10576 eval "$as_ac_var=no"
10578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10582 if test `eval echo '${'$as_ac_var'}'` = yes; then
10583 cat >>confdefs.h <<_ACEOF
10584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10588 pgac_need_repl_snprintf=yes
10593 for ac_func in vsnprintf
10595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10596 echo "$as_me:$LINENO: checking for $ac_func" >&5
10597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10598 if eval "test \"\${$as_ac_var+set}\" = set"; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 cat >conftest.$ac_ext <<_ACEOF
10602 #line $LINENO "configure"
10603 #include "confdefs.h"
10604 /* System header to define __stub macros and hopefully few prototypes,
10605 which can conflict with char $ac_func (); below. */
10606 #include <assert.h>
10607 /* Override any gcc2 internal prototype to avoid an error. */
10611 /* We use char because int might match the return type of a gcc2
10612 builtin and then its argument prototype would still apply. */
10616 #ifdef F77_DUMMY_MAIN
10617 # ifdef __cplusplus
10620 int F77_DUMMY_MAIN() { return 1; }
10625 /* The GNU C library defines this for functions which it implements
10626 to always fail with ENOSYS. Some functions are actually named
10627 something starting with __ and the normal name is an alias. */
10628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10638 rm -f conftest.$ac_objext conftest$ac_exeext
10639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10640 (eval $ac_link) 2>&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try='test -s conftest$ac_exeext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 eval "$as_ac_var=yes"
10652 echo "$as_me: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10654 eval "$as_ac_var=no"
10656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10660 if test `eval echo '${'$as_ac_var'}'` = yes; then
10661 cat >>confdefs.h <<_ACEOF
10662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10666 pgac_need_repl_snprintf=yes
10672 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10673 # include/c.h will provide declarations. Note this is a separate test
10674 # from whether the functions exist in the C library --- there are
10675 # systems that have the functions but don't bother to declare them :-(
10677 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10678 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10679 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10683 #line $LINENO "configure"
10684 #include "confdefs.h"
10685 $ac_includes_default
10686 #ifdef F77_DUMMY_MAIN
10687 # ifdef __cplusplus
10690 int F77_DUMMY_MAIN() { return 1; }
10696 char *p = (char *) snprintf;
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } &&
10709 { ac_try='test -s conftest.$ac_objext'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; }; then
10715 ac_cv_have_decl_snprintf=yes
10717 echo "$as_me: failed program was:" >&5
10718 cat conftest.$ac_ext >&5
10719 ac_cv_have_decl_snprintf=no
10721 rm -f conftest.$ac_objext conftest.$ac_ext
10723 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10724 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10725 if test $ac_cv_have_decl_snprintf = yes; then
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_DECL_SNPRINTF 1
10733 cat >>confdefs.h <<_ACEOF
10734 #define HAVE_DECL_SNPRINTF 0
10739 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10740 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10741 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 cat >conftest.$ac_ext <<_ACEOF
10745 #line $LINENO "configure"
10746 #include "confdefs.h"
10747 $ac_includes_default
10748 #ifdef F77_DUMMY_MAIN
10749 # ifdef __cplusplus
10752 int F77_DUMMY_MAIN() { return 1; }
10758 char *p = (char *) vsnprintf;
10765 rm -f conftest.$ac_objext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10767 (eval $ac_compile) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -s conftest.$ac_objext'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then
10777 ac_cv_have_decl_vsnprintf=yes
10779 echo "$as_me: failed program was:" >&5
10780 cat conftest.$ac_ext >&5
10781 ac_cv_have_decl_vsnprintf=no
10783 rm -f conftest.$ac_objext conftest.$ac_ext
10785 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10786 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10787 if test $ac_cv_have_decl_vsnprintf = yes; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define HAVE_DECL_VSNPRINTF 1
10795 cat >>confdefs.h <<_ACEOF
10796 #define HAVE_DECL_VSNPRINTF 0
10805 # do this one the hard way in case isinf() is a macro
10806 echo "$as_me:$LINENO: checking for isinf" >&5
10807 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10808 if test "${ac_cv_func_isinf+set}" = set; then
10809 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 cat >conftest.$ac_ext <<_ACEOF
10812 #line $LINENO "configure"
10813 #include "confdefs.h"
10816 #ifdef F77_DUMMY_MAIN
10817 # ifdef __cplusplus
10820 int F77_DUMMY_MAIN() { return 1; }
10825 double x = 0.0; int res = isinf(x);
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -s conftest$ac_exeext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_func_isinf=yes
10844 echo "$as_me: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 ac_cv_func_isinf=no
10848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10850 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10851 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10853 if test $ac_cv_func_isinf = yes ; then
10855 cat >>confdefs.h <<\_ACEOF
10856 #define HAVE_ISINF 1
10860 LIBOBJS="$LIBOBJS isinf.$ac_objext"
10861 # Look for a way to implement a substitute for isinf()
10866 for ac_func in fpclass fp_class fp_class_d class
10868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10869 echo "$as_me:$LINENO: checking for $ac_func" >&5
10870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10871 if eval "test \"\${$as_ac_var+set}\" = set"; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 cat >conftest.$ac_ext <<_ACEOF
10875 #line $LINENO "configure"
10876 #include "confdefs.h"
10877 /* System header to define __stub macros and hopefully few prototypes,
10878 which can conflict with char $ac_func (); below. */
10879 #include <assert.h>
10880 /* Override any gcc2 internal prototype to avoid an error. */
10884 /* We use char because int might match the return type of a gcc2
10885 builtin and then its argument prototype would still apply. */
10889 #ifdef F77_DUMMY_MAIN
10890 # ifdef __cplusplus
10893 int F77_DUMMY_MAIN() { return 1; }
10898 /* The GNU C library defines this for functions which it implements
10899 to always fail with ENOSYS. Some functions are actually named
10900 something starting with __ and the normal name is an alias. */
10901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913 (eval $ac_link) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -s conftest$ac_exeext'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 eval "$as_ac_var=yes"
10925 echo "$as_me: failed program was:" >&5
10926 cat conftest.$ac_ext >&5
10927 eval "$as_ac_var=no"
10929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10933 if test `eval echo '${'$as_ac_var'}'` = yes; then
10934 cat >>confdefs.h <<_ACEOF
10935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10955 for ac_func in fseeko gethostname getopt_long getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10958 echo "$as_me:$LINENO: checking for $ac_func" >&5
10959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10960 if eval "test \"\${$as_ac_var+set}\" = set"; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10964 #line $LINENO "configure"
10965 #include "confdefs.h"
10966 /* System header to define __stub macros and hopefully few prototypes,
10967 which can conflict with char $ac_func (); below. */
10968 #include <assert.h>
10969 /* Override any gcc2 internal prototype to avoid an error. */
10973 /* We use char because int might match the return type of a gcc2
10974 builtin and then its argument prototype would still apply. */
10978 #ifdef F77_DUMMY_MAIN
10979 # ifdef __cplusplus
10982 int F77_DUMMY_MAIN() { return 1; }
10987 /* The GNU C library defines this for functions which it implements
10988 to always fail with ENOSYS. Some functions are actually named
10989 something starting with __ and the normal name is an alias. */
10990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11002 (eval $ac_link) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } &&
11006 { ac_try='test -s conftest$ac_exeext'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
11012 eval "$as_ac_var=yes"
11014 echo "$as_me: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11016 eval "$as_ac_var=no"
11018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11022 if test `eval echo '${'$as_ac_var'}'` = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11028 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11034 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11035 # We override the previous test that said fseeko/ftello didn't exist
11036 # OS tests are also done in include/c.h and port/fseeko.c
11037 case $host_os in bsdi*|netbsd*)
11038 ac_cv_func_fseeko=yes
11041 # Solaris has a very slow qsort in certain cases, so we replace it.
11043 solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
11046 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
11047 # this hackery with HPUXMATHLIB allows us to cope.
11051 if test -r /lib/pa1.1/libm.a ; then
11052 HPUXMATHLIB="-L /lib/pa1.1 -lm"
11058 for ac_func in rint
11060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11061 echo "$as_me:$LINENO: checking for $ac_func" >&5
11062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11063 if eval "test \"\${$as_ac_var+set}\" = set"; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 cat >conftest.$ac_ext <<_ACEOF
11067 #line $LINENO "configure"
11068 #include "confdefs.h"
11069 /* System header to define __stub macros and hopefully few prototypes,
11070 which can conflict with char $ac_func (); below. */
11071 #include <assert.h>
11072 /* Override any gcc2 internal prototype to avoid an error. */
11076 /* We use char because int might match the return type of a gcc2
11077 builtin and then its argument prototype would still apply. */
11081 #ifdef F77_DUMMY_MAIN
11082 # ifdef __cplusplus
11085 int F77_DUMMY_MAIN() { return 1; }
11090 /* The GNU C library defines this for functions which it implements
11091 to always fail with ENOSYS. Some functions are actually named
11092 something starting with __ and the normal name is an alias. */
11093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11103 rm -f conftest.$ac_objext conftest$ac_exeext
11104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105 (eval $ac_link) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 eval "$as_ac_var=yes"
11117 echo "$as_me: failed program was:" >&5
11118 cat conftest.$ac_ext >&5
11119 eval "$as_ac_var=no"
11121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11125 if test `eval echo '${'$as_ac_var'}'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11131 echo "$as_me:$LINENO: checking for rint in -lm" >&5
11132 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
11133 if test "${ac_cv_lib_m_rint+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 ac_check_lib_save_LIBS=$LIBS
11137 LIBS="-lm $HPUXMATHLIB $LIBS"
11138 cat >conftest.$ac_ext <<_ACEOF
11139 #line $LINENO "configure"
11140 #include "confdefs.h"
11142 /* Override any gcc2 internal prototype to avoid an error. */
11146 /* We use char because int might match the return type of a gcc2
11147 builtin and then its argument prototype would still apply. */
11149 #ifdef F77_DUMMY_MAIN
11150 # ifdef __cplusplus
11153 int F77_DUMMY_MAIN() { return 1; }
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11165 (eval $ac_link) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
11169 { ac_try='test -s conftest$ac_exeext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 ac_cv_lib_m_rint=yes
11177 echo "$as_me: failed program was:" >&5
11178 cat conftest.$ac_ext >&5
11179 ac_cv_lib_m_rint=no
11181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11184 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
11185 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
11186 if test $ac_cv_lib_m_rint = yes; then
11187 cat >>confdefs.h <<\_ACEOF
11188 #define HAVE_RINT 1
11198 if test "$with_readline" = yes; then
11199 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
11200 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
11201 cat >conftest.$ac_ext <<_ACEOF
11202 #line $LINENO "configure"
11203 #include "confdefs.h"
11205 #ifdef HAVE_READLINE_READLINE_H
11206 # include <readline/readline.h>
11207 #elif defined(HAVE_READLINE_H)
11208 # include <readline.h>
11211 #ifdef F77_DUMMY_MAIN
11212 # ifdef __cplusplus
11215 int F77_DUMMY_MAIN() { return 1; }
11220 rl_completion_append_character = 'x';
11225 rm -f conftest.$ac_objext conftest$ac_exeext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11227 (eval $ac_link) 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -s conftest$ac_exeext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 echo "$as_me:$LINENO: result: yes" >&5
11238 echo "${ECHO_T}yes" >&6
11240 cat >>confdefs.h <<\_ACEOF
11241 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
11245 echo "$as_me: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11247 echo "$as_me:$LINENO: result: no" >&5
11248 echo "${ECHO_T}no" >&6
11250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11253 for ac_func in rl_completion_matches rl_filename_completion_function
11255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11256 echo "$as_me:$LINENO: checking for $ac_func" >&5
11257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11258 if eval "test \"\${$as_ac_var+set}\" = set"; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 cat >conftest.$ac_ext <<_ACEOF
11262 #line $LINENO "configure"
11263 #include "confdefs.h"
11264 /* System header to define __stub macros and hopefully few prototypes,
11265 which can conflict with char $ac_func (); below. */
11266 #include <assert.h>
11267 /* Override any gcc2 internal prototype to avoid an error. */
11271 /* We use char because int might match the return type of a gcc2
11272 builtin and then its argument prototype would still apply. */
11276 #ifdef F77_DUMMY_MAIN
11277 # ifdef __cplusplus
11280 int F77_DUMMY_MAIN() { return 1; }
11285 /* The GNU C library defines this for functions which it implements
11286 to always fail with ENOSYS. Some functions are actually named
11287 something starting with __ and the normal name is an alias. */
11288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11298 rm -f conftest.$ac_objext conftest$ac_exeext
11299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300 (eval $ac_link) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -s conftest$ac_exeext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 eval "$as_ac_var=yes"
11312 echo "$as_me: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11314 eval "$as_ac_var=no"
11316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11320 if test `eval echo '${'$as_ac_var'}'` = yes; then
11321 cat >>confdefs.h <<_ACEOF
11322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11329 for ac_func in replace_history_entry
11331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11332 echo "$as_me:$LINENO: checking for $ac_func" >&5
11333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11334 if eval "test \"\${$as_ac_var+set}\" = set"; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 cat >conftest.$ac_ext <<_ACEOF
11338 #line $LINENO "configure"
11339 #include "confdefs.h"
11340 /* System header to define __stub macros and hopefully few prototypes,
11341 which can conflict with char $ac_func (); below. */
11342 #include <assert.h>
11343 /* Override any gcc2 internal prototype to avoid an error. */
11347 /* We use char because int might match the return type of a gcc2
11348 builtin and then its argument prototype would still apply. */
11352 #ifdef F77_DUMMY_MAIN
11353 # ifdef __cplusplus
11356 int F77_DUMMY_MAIN() { return 1; }
11361 /* The GNU C library defines this for functions which it implements
11362 to always fail with ENOSYS. Some functions are actually named
11363 something starting with __ and the normal name is an alias. */
11364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11376 (eval $ac_link) 2>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -s conftest$ac_exeext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 eval "$as_ac_var=yes"
11388 echo "$as_me: failed program was:" >&5
11389 cat conftest.$ac_ext >&5
11390 eval "$as_ac_var=no"
11392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11396 if test `eval echo '${'$as_ac_var'}'` = yes; then
11397 cat >>confdefs.h <<_ACEOF
11398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11407 echo "$as_me:$LINENO: checking for finite" >&5
11408 echo $ECHO_N "checking for finite... $ECHO_C" >&6
11409 cat >conftest.$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11411 #include "confdefs.h"
11413 #ifdef F77_DUMMY_MAIN
11414 # ifdef __cplusplus
11417 int F77_DUMMY_MAIN() { return 1; }
11422 int dummy=finite(1.0);
11427 rm -f conftest.$ac_objext conftest$ac_exeext
11428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11429 (eval $ac_link) 2>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -s conftest$ac_exeext'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11440 cat >>confdefs.h <<\_ACEOF
11441 #define HAVE_FINITE 1
11444 echo "$as_me:$LINENO: result: yes" >&5
11445 echo "${ECHO_T}yes" >&6
11447 echo "$as_me: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 echo "$as_me:$LINENO: result: no" >&5
11450 echo "${ECHO_T}no" >&6
11452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11454 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
11455 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
11456 cat >conftest.$ac_ext <<_ACEOF
11457 #line $LINENO "configure"
11458 #include "confdefs.h"
11459 #include <setjmp.h>
11460 #ifdef F77_DUMMY_MAIN
11461 # ifdef __cplusplus
11464 int F77_DUMMY_MAIN() { return 1; }
11469 sigjmp_buf x; sigsetjmp(x, 1);
11474 rm -f conftest.$ac_objext conftest$ac_exeext
11475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11476 (eval $ac_link) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); } &&
11480 { ac_try='test -s conftest$ac_exeext'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11487 cat >>confdefs.h <<\_ACEOF
11488 #define HAVE_SIGSETJMP 1
11491 echo "$as_me:$LINENO: result: yes" >&5
11492 echo "${ECHO_T}yes" >&6
11494 echo "$as_me: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11496 echo "$as_me:$LINENO: result: no" >&5
11497 echo "${ECHO_T}no" >&6
11499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11501 echo "$as_me:$LINENO: checking for syslog" >&5
11502 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11503 if test "${ac_cv_func_syslog+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11506 cat >conftest.$ac_ext <<_ACEOF
11507 #line $LINENO "configure"
11508 #include "confdefs.h"
11509 /* System header to define __stub macros and hopefully few prototypes,
11510 which can conflict with char syslog (); below. */
11511 #include <assert.h>
11512 /* Override any gcc2 internal prototype to avoid an error. */
11516 /* We use char because int might match the return type of a gcc2
11517 builtin and then its argument prototype would still apply. */
11521 #ifdef F77_DUMMY_MAIN
11522 # ifdef __cplusplus
11525 int F77_DUMMY_MAIN() { return 1; }
11530 /* The GNU C library defines this for functions which it implements
11531 to always fail with ENOSYS. Some functions are actually named
11532 something starting with __ and the normal name is an alias. */
11533 #if defined (__stub_syslog) || defined (__stub___syslog)
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545 (eval $ac_link) 2>&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } &&
11549 { ac_try='test -s conftest$ac_exeext'
11550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551 (eval $ac_try) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 ac_cv_func_syslog=yes
11557 echo "$as_me: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11559 ac_cv_func_syslog=no
11561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11563 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11564 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11565 if test $ac_cv_func_syslog = yes; then
11566 if test "${ac_cv_header_syslog_h+set}" = set; then
11567 echo "$as_me:$LINENO: checking for syslog.h" >&5
11568 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11569 if test "${ac_cv_header_syslog_h+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11573 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11575 # Is the header compilable?
11576 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11577 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11578 cat >conftest.$ac_ext <<_ACEOF
11579 #line $LINENO "configure"
11580 #include "confdefs.h"
11581 $ac_includes_default
11582 #include <syslog.h>
11584 rm -f conftest.$ac_objext
11585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11586 (eval $ac_compile) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try='test -s conftest.$ac_objext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_header_compiler=yes
11598 echo "$as_me: failed program was:" >&5
11599 cat conftest.$ac_ext >&5
11600 ac_header_compiler=no
11602 rm -f conftest.$ac_objext conftest.$ac_ext
11603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11604 echo "${ECHO_T}$ac_header_compiler" >&6
11606 # Is the header present?
11607 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11608 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11609 cat >conftest.$ac_ext <<_ACEOF
11610 #line $LINENO "configure"
11611 #include "confdefs.h"
11612 #include <syslog.h>
11614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11617 egrep -v '^ *\+' conftest.er1 >conftest.err
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } >/dev/null; then
11622 if test -s conftest.err; then
11623 ac_cpp_err=$ac_c_preproc_warn_flag
11630 if test -z "$ac_cpp_err"; then
11631 ac_header_preproc=yes
11633 echo "$as_me: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11635 ac_header_preproc=no
11637 rm -f conftest.err conftest.$ac_ext
11638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11639 echo "${ECHO_T}$ac_header_preproc" >&6
11641 # So? What about this header?
11642 case $ac_header_compiler:$ac_header_preproc in
11644 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11645 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11647 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11649 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11650 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11652 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11654 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11656 echo "$as_me:$LINENO: checking for syslog.h" >&5
11657 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11658 if test "${ac_cv_header_syslog_h+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 ac_cv_header_syslog_h=$ac_header_preproc
11663 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11664 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11667 if test $ac_cv_header_syslog_h = yes; then
11668 cat >>confdefs.h <<\_ACEOF
11669 #define HAVE_SYSLOG 1
11678 echo "$as_me:$LINENO: checking for optreset" >&5
11679 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11680 if test "${pgac_cv_var_int_optreset+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 cat >conftest.$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11685 #include "confdefs.h"
11686 #include <unistd.h>
11687 #ifdef F77_DUMMY_MAIN
11688 # ifdef __cplusplus
11691 int F77_DUMMY_MAIN() { return 1; }
11696 extern int optreset; optreset = 1;
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11703 (eval $ac_link) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -s conftest$ac_exeext'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 pgac_cv_var_int_optreset=yes
11715 echo "$as_me: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11717 pgac_cv_var_int_optreset=no
11719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11721 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11722 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11723 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11725 cat >>confdefs.h <<\_ACEOF
11726 #define HAVE_INT_OPTRESET 1
11733 for ac_func in strtoll strtoq
11735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11736 echo "$as_me:$LINENO: checking for $ac_func" >&5
11737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11738 if eval "test \"\${$as_ac_var+set}\" = set"; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 cat >conftest.$ac_ext <<_ACEOF
11742 #line $LINENO "configure"
11743 #include "confdefs.h"
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below. */
11746 #include <assert.h>
11747 /* Override any gcc2 internal prototype to avoid an error. */
11751 /* We use char because int might match the return type of a gcc2
11752 builtin and then its argument prototype would still apply. */
11756 #ifdef F77_DUMMY_MAIN
11757 # ifdef __cplusplus
11760 int F77_DUMMY_MAIN() { return 1; }
11765 /* The GNU C library defines this for functions which it implements
11766 to always fail with ENOSYS. Some functions are actually named
11767 something starting with __ and the normal name is an alias. */
11768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -s conftest$ac_exeext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 eval "$as_ac_var=yes"
11792 echo "$as_me: failed program was:" >&5
11793 cat conftest.$ac_ext >&5
11794 eval "$as_ac_var=no"
11796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11800 if test `eval echo '${'$as_ac_var'}'` = yes; then
11801 cat >>confdefs.h <<_ACEOF
11802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11810 for ac_func in strtoull strtouq
11812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11813 echo "$as_me:$LINENO: checking for $ac_func" >&5
11814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11815 if eval "test \"\${$as_ac_var+set}\" = set"; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 cat >conftest.$ac_ext <<_ACEOF
11819 #line $LINENO "configure"
11820 #include "confdefs.h"
11821 /* System header to define __stub macros and hopefully few prototypes,
11822 which can conflict with char $ac_func (); below. */
11823 #include <assert.h>
11824 /* Override any gcc2 internal prototype to avoid an error. */
11828 /* We use char because int might match the return type of a gcc2
11829 builtin and then its argument prototype would still apply. */
11833 #ifdef F77_DUMMY_MAIN
11834 # ifdef __cplusplus
11837 int F77_DUMMY_MAIN() { return 1; }
11842 /* The GNU C library defines this for functions which it implements
11843 to always fail with ENOSYS. Some functions are actually named
11844 something starting with __ and the normal name is an alias. */
11845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11855 rm -f conftest.$ac_objext conftest$ac_exeext
11856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11857 (eval $ac_link) 2>&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } &&
11861 { ac_try='test -s conftest$ac_exeext'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 eval "$as_ac_var=yes"
11869 echo "$as_me: failed program was:" >&5
11870 cat conftest.$ac_ext >&5
11871 eval "$as_ac_var=no"
11873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11877 if test `eval echo '${'$as_ac_var'}'` = yes; then
11878 cat >>confdefs.h <<_ACEOF
11879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11886 # Check for one of atexit() or on_exit()
11888 for ac_func in atexit
11890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11891 echo "$as_me:$LINENO: checking for $ac_func" >&5
11892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11893 if eval "test \"\${$as_ac_var+set}\" = set"; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 #include "confdefs.h"
11899 /* System header to define __stub macros and hopefully few prototypes,
11900 which can conflict with char $ac_func (); below. */
11901 #include <assert.h>
11902 /* Override any gcc2 internal prototype to avoid an error. */
11906 /* We use char because int might match the return type of a gcc2
11907 builtin and then its argument prototype would still apply. */
11911 #ifdef F77_DUMMY_MAIN
11912 # ifdef __cplusplus
11915 int F77_DUMMY_MAIN() { return 1; }
11920 /* The GNU C library defines this for functions which it implements
11921 to always fail with ENOSYS. Some functions are actually named
11922 something starting with __ and the normal name is an alias. */
11923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11933 rm -f conftest.$ac_objext conftest$ac_exeext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -s conftest$ac_exeext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 eval "$as_ac_var=yes"
11947 echo "$as_me: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11949 eval "$as_ac_var=no"
11951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11955 if test `eval echo '${'$as_ac_var'}'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11962 for ac_func in on_exit
11964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11965 echo "$as_me:$LINENO: checking for $ac_func" >&5
11966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11967 if eval "test \"\${$as_ac_var+set}\" = set"; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 cat >conftest.$ac_ext <<_ACEOF
11971 #line $LINENO "configure"
11972 #include "confdefs.h"
11973 /* System header to define __stub macros and hopefully few prototypes,
11974 which can conflict with char $ac_func (); below. */
11975 #include <assert.h>
11976 /* Override any gcc2 internal prototype to avoid an error. */
11980 /* We use char because int might match the return type of a gcc2
11981 builtin and then its argument prototype would still apply. */
11985 #ifdef F77_DUMMY_MAIN
11986 # ifdef __cplusplus
11989 int F77_DUMMY_MAIN() { return 1; }
11994 /* The GNU C library defines this for functions which it implements
11995 to always fail with ENOSYS. Some functions are actually named
11996 something starting with __ and the normal name is an alias. */
11997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12009 (eval $ac_link) 2>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try='test -s conftest$ac_exeext'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; }; then
12019 eval "$as_ac_var=yes"
12021 echo "$as_me: failed program was:" >&5
12022 cat conftest.$ac_ext >&5
12023 eval "$as_ac_var=no"
12025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12029 if test `eval echo '${'$as_ac_var'}'` = yes; then
12030 cat >>confdefs.h <<_ACEOF
12031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12035 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12036 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12037 { (exit 1); exit 1; }; }
12045 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12046 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12047 if test "${ac_cv_sys_largefile_source+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 ac_cv_sys_largefile_source=no
12052 cat >conftest.$ac_ext <<_ACEOF
12053 #line $LINENO "configure"
12054 #include "confdefs.h"
12056 #ifdef F77_DUMMY_MAIN
12057 # ifdef __cplusplus
12060 int F77_DUMMY_MAIN() { return 1; }
12070 rm -f conftest.$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072 (eval $ac_compile) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12084 echo "$as_me: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12087 rm -f conftest.$ac_objext conftest.$ac_ext
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 #include "confdefs.h"
12091 #define _LARGEFILE_SOURCE 1
12093 #ifdef F77_DUMMY_MAIN
12094 # ifdef __cplusplus
12097 int F77_DUMMY_MAIN() { return 1; }
12107 rm -f conftest.$ac_objext
12108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12109 (eval $ac_compile) 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -s conftest.$ac_objext'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 ac_cv_sys_largefile_source=1; break
12121 echo "$as_me: failed program was:" >&5
12122 cat conftest.$ac_ext >&5
12124 rm -f conftest.$ac_objext conftest.$ac_ext
12128 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12129 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12130 if test "$ac_cv_sys_largefile_source" != no; then
12132 cat >>confdefs.h <<_ACEOF
12133 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12139 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12140 # in glibc 2.1.3, but that breaks too many other things.
12141 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12142 echo "$as_me:$LINENO: checking for fseeko" >&5
12143 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12144 if test "${ac_cv_func_fseeko+set}" = set; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 cat >conftest.$ac_ext <<_ACEOF
12148 #line $LINENO "configure"
12149 #include "confdefs.h"
12151 #ifdef F77_DUMMY_MAIN
12152 # ifdef __cplusplus
12155 int F77_DUMMY_MAIN() { return 1; }
12160 return fseeko && fseeko (stdin, 0, 0);
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167 (eval $ac_link) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
12171 { ac_try='test -s conftest$ac_exeext'
12172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173 (eval $ac_try) 2>&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; }; then
12177 ac_cv_func_fseeko=yes
12179 echo "$as_me: failed program was:" >&5
12180 cat conftest.$ac_ext >&5
12181 ac_cv_func_fseeko=no
12183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12185 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12186 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12187 if test $ac_cv_func_fseeko = yes; then
12189 cat >>confdefs.h <<\_ACEOF
12190 #define HAVE_FSEEKO 1
12197 # This test makes sure that run tests work at all. Sometimes a shared
12198 # library is found by the linker, but the runtime linker can't find it.
12199 # This check should come after all modifications of compiler or linker
12200 # variables, and before any other run tests.
12201 echo "$as_me:$LINENO: checking test program" >&5
12202 echo $ECHO_N "checking test program... $ECHO_C" >&6
12203 if test "$cross_compiling" = yes; then
12204 echo "$as_me:$LINENO: result: cross-compiling" >&5
12205 echo "${ECHO_T}cross-compiling" >&6
12207 cat >conftest.$ac_ext <<_ACEOF
12208 #line $LINENO "configure"
12209 #include "confdefs.h"
12210 int main() { return 0; }
12212 rm -f conftest$ac_exeext
12213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12214 (eval $ac_link) 2>&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 echo "$as_me:$LINENO: result: ok" >&5
12224 echo "${ECHO_T}ok" >&6
12226 echo "$as_me: program exited with status $ac_status" >&5
12227 echo "$as_me: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12229 ( exit $ac_status )
12230 echo "$as_me:$LINENO: result: failed" >&5
12231 echo "${ECHO_T}failed" >&6
12232 { { echo "$as_me:$LINENO: error:
12233 *** Could not execute a simple test program. This may be a problem
12234 *** related to locating shared libraries. Check the file 'config.log'
12235 *** for the exact reason." >&5
12236 echo "$as_me: error:
12237 *** Could not execute a simple test program. This may be a problem
12238 *** related to locating shared libraries. Check the file 'config.log'
12239 *** for the exact reason." >&2;}
12240 { (exit 1); exit 1; }; }
12242 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12247 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
12248 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
12249 if test "${pgac_cv_type_long_int_64+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 if test "$cross_compiling" = yes; then
12253 # If cross-compiling, check the size reported by the compiler and
12254 # trust that the arithmetic works.
12255 cat >conftest.$ac_ext <<_ACEOF
12256 #line $LINENO "configure"
12257 #include "confdefs.h"
12259 #ifdef F77_DUMMY_MAIN
12260 # ifdef __cplusplus
12263 int F77_DUMMY_MAIN() { return 1; }
12268 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12275 rm -f conftest.$ac_objext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -s conftest.$ac_objext'
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
12287 pgac_cv_type_long_int_64=yes
12289 echo "$as_me: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12291 pgac_cv_type_long_int_64=no
12293 rm -f conftest.$ac_objext conftest.$ac_ext
12295 cat >conftest.$ac_ext <<_ACEOF
12296 #line $LINENO "configure"
12297 #include "confdefs.h"
12298 typedef long int int64;
12301 * These are globals to discourage the compiler from folding all the
12302 * arithmetic tests down to compile-time constants.
12304 int64 a = 20000001;
12305 int64 b = 40000005;
12307 int does_int64_work()
12311 if (sizeof(int64) != 8)
12312 return 0; /* definitely not the right size */
12314 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12322 exit(! does_int64_work());
12325 rm -f conftest$ac_exeext
12326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12327 (eval $ac_link) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 pgac_cv_type_long_int_64=yes
12338 echo "$as_me: program exited with status $ac_status" >&5
12339 echo "$as_me: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12341 ( exit $ac_status )
12342 pgac_cv_type_long_int_64=no
12344 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12347 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
12348 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
12350 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12351 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12353 cat >>confdefs.h <<\_ACEOF
12354 #define HAVE_LONG_INT_64
12360 if test x"$HAVE_LONG_INT_64" = x"no" ; then
12361 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
12362 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
12363 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 if test "$cross_compiling" = yes; then
12367 # If cross-compiling, check the size reported by the compiler and
12368 # trust that the arithmetic works.
12369 cat >conftest.$ac_ext <<_ACEOF
12370 #line $LINENO "configure"
12371 #include "confdefs.h"
12373 #ifdef F77_DUMMY_MAIN
12374 # ifdef __cplusplus
12377 int F77_DUMMY_MAIN() { return 1; }
12382 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 pgac_cv_type_long_long_int_64=yes
12403 echo "$as_me: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12405 pgac_cv_type_long_long_int_64=no
12407 rm -f conftest.$ac_objext conftest.$ac_ext
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412 typedef long long int int64;
12415 * These are globals to discourage the compiler from folding all the
12416 * arithmetic tests down to compile-time constants.
12418 int64 a = 20000001;
12419 int64 b = 40000005;
12421 int does_int64_work()
12425 if (sizeof(int64) != 8)
12426 return 0; /* definitely not the right size */
12428 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12436 exit(! does_int64_work());
12439 rm -f conftest$ac_exeext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 pgac_cv_type_long_long_int_64=yes
12452 echo "$as_me: program exited with status $ac_status" >&5
12453 echo "$as_me: failed program was:" >&5
12454 cat conftest.$ac_ext >&5
12455 ( exit $ac_status )
12456 pgac_cv_type_long_long_int_64=no
12458 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12461 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
12462 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
12464 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12465 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12467 cat >>confdefs.h <<\_ACEOF
12468 #define HAVE_LONG_LONG_INT_64
12477 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12478 cat >conftest.$ac_ext <<_ACEOF
12479 #line $LINENO "configure"
12480 #include "confdefs.h"
12482 #define INT64CONST(x) x##LL
12483 long long int foo = INT64CONST(0x1234567890123456);
12485 #ifdef F77_DUMMY_MAIN
12486 # ifdef __cplusplus
12489 int F77_DUMMY_MAIN() { return 1; }
12499 rm -f conftest.$ac_objext
12500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12501 (eval $ac_compile) 2>&5
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -s conftest.$ac_objext'
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; }; then
12512 cat >>confdefs.h <<\_ACEOF
12513 #define HAVE_LL_CONSTANTS 1
12517 echo "$as_me: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12520 rm -f conftest.$ac_objext conftest.$ac_ext
12524 # If we found "long int" is 64 bits, assume snprintf handles it. If
12525 # we found we need to use "long long int", better check. We cope with
12526 # snprintfs that use either %lld, %qd, or %I64d as the format. If
12527 # neither works, fall back to our own snprintf emulation (which we
12530 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
12531 if test $pgac_need_repl_snprintf = no; then
12532 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
12533 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
12534 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 for pgac_format in '%lld' '%qd' '%I64d'; do
12538 if test "$cross_compiling" = yes; then
12539 pgac_cv_snprintf_long_long_int_format=cross; break
12541 cat >conftest.$ac_ext <<_ACEOF
12542 #line $LINENO "configure"
12543 #include "confdefs.h"
12545 typedef long long int int64;
12546 #define INT64_FORMAT "$pgac_format"
12548 int64 a = 20000001;
12549 int64 b = 40000005;
12551 int does_int64_snprintf_work()
12556 if (sizeof(int64) != 8)
12557 return 0; /* doesn't look like the right size */
12560 snprintf(buf, 100, INT64_FORMAT, c);
12561 if (strcmp(buf, "800000140000005") != 0)
12562 return 0; /* either multiply or snprintf is busted */
12566 exit(! does_int64_snprintf_work());
12569 rm -f conftest$ac_exeext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571 (eval $ac_link) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
12582 echo "$as_me: program exited with status $ac_status" >&5
12583 echo "$as_me: failed program was:" >&5
12584 cat conftest.$ac_ext >&5
12586 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12591 LONG_LONG_INT_FORMAT=''
12593 case $pgac_cv_snprintf_long_long_int_format in
12594 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12595 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
12596 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
12597 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
12598 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
12599 *) echo "$as_me:$LINENO: result: none" >&5
12600 echo "${ECHO_T}none" >&6;;
12602 if test "$LONG_LONG_INT_FORMAT" = ""; then
12603 # Force usage of our own snprintf, since system snprintf is broken
12604 pgac_need_repl_snprintf=yes
12605 LONG_LONG_INT_FORMAT='%lld'
12608 # Here if we previously decided we needed to use our own snprintf
12609 LONG_LONG_INT_FORMAT='%lld'
12611 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
12613 # Here if we are not using 'long long int' at all
12614 INT64_FORMAT='"%ld"'
12618 cat >>confdefs.h <<_ACEOF
12619 #define INT64_FORMAT $INT64_FORMAT
12623 if test $pgac_need_repl_snprintf = yes; then
12624 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12628 echo "$as_me:$LINENO: checking for unsigned long" >&5
12629 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12630 if test "${ac_cv_type_unsigned_long+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 cat >conftest.$ac_ext <<_ACEOF
12634 #line $LINENO "configure"
12635 #include "confdefs.h"
12636 $ac_includes_default
12637 #ifdef F77_DUMMY_MAIN
12638 # ifdef __cplusplus
12641 int F77_DUMMY_MAIN() { return 1; }
12646 if ((unsigned long *) 0)
12648 if (sizeof (unsigned long))
12654 rm -f conftest.$ac_objext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12656 (eval $ac_compile) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
12660 { ac_try='test -s conftest.$ac_objext'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 ac_cv_type_unsigned_long=yes
12668 echo "$as_me: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12670 ac_cv_type_unsigned_long=no
12672 rm -f conftest.$ac_objext conftest.$ac_ext
12674 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12675 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12677 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12678 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12679 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 if test "$ac_cv_type_unsigned_long" = yes; then
12683 # The cast to unsigned long works around a bug in the HP C Compiler
12684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12686 # This bug is HP SR number 8606223364.
12687 if test "$cross_compiling" = yes; then
12688 # Depending upon the size, compute the lo and hi bounds.
12689 cat >conftest.$ac_ext <<_ACEOF
12690 #line $LINENO "configure"
12691 #include "confdefs.h"
12692 $ac_includes_default
12693 #ifdef F77_DUMMY_MAIN
12694 # ifdef __cplusplus
12697 int F77_DUMMY_MAIN() { return 1; }
12702 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12709 rm -f conftest.$ac_objext
12710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12711 (eval $ac_compile) 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
12715 { ac_try='test -s conftest.$ac_objext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12723 cat >conftest.$ac_ext <<_ACEOF
12724 #line $LINENO "configure"
12725 #include "confdefs.h"
12726 $ac_includes_default
12727 #ifdef F77_DUMMY_MAIN
12728 # ifdef __cplusplus
12731 int F77_DUMMY_MAIN() { return 1; }
12736 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
12749 { ac_try='test -s conftest.$ac_objext'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 ac_hi=$ac_mid; break
12757 echo "$as_me: failed program was:" >&5
12758 cat conftest.$ac_ext >&5
12759 ac_lo=`expr $ac_mid + 1`
12760 if test $ac_lo -le $ac_mid; then
12764 ac_mid=`expr 2 '*' $ac_mid + 1`
12766 rm -f conftest.$ac_objext conftest.$ac_ext
12769 echo "$as_me: failed program was:" >&5
12770 cat conftest.$ac_ext >&5
12771 cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12773 #include "confdefs.h"
12774 $ac_includes_default
12775 #ifdef F77_DUMMY_MAIN
12776 # ifdef __cplusplus
12779 int F77_DUMMY_MAIN() { return 1; }
12784 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12791 rm -f conftest.$ac_objext
12792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12793 (eval $ac_compile) 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } &&
12797 { ac_try='test -s conftest.$ac_objext'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12805 cat >conftest.$ac_ext <<_ACEOF
12806 #line $LINENO "configure"
12807 #include "confdefs.h"
12808 $ac_includes_default
12809 #ifdef F77_DUMMY_MAIN
12810 # ifdef __cplusplus
12813 int F77_DUMMY_MAIN() { return 1; }
12818 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12825 rm -f conftest.$ac_objext
12826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12827 (eval $ac_compile) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -s conftest.$ac_objext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_lo=$ac_mid; break
12839 echo "$as_me: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12841 ac_hi=`expr '(' $ac_mid ')' - 1`
12842 if test $ac_mid -le $ac_hi; then
12846 ac_mid=`expr 2 '*' $ac_mid`
12848 rm -f conftest.$ac_objext conftest.$ac_ext
12851 echo "$as_me: failed program was:" >&5
12852 cat conftest.$ac_ext >&5
12855 rm -f conftest.$ac_objext conftest.$ac_ext
12857 rm -f conftest.$ac_objext conftest.$ac_ext
12858 # Binary search between lo and hi bounds.
12859 while test "x$ac_lo" != "x$ac_hi"; do
12860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12861 cat >conftest.$ac_ext <<_ACEOF
12862 #line $LINENO "configure"
12863 #include "confdefs.h"
12864 $ac_includes_default
12865 #ifdef F77_DUMMY_MAIN
12866 # ifdef __cplusplus
12869 int F77_DUMMY_MAIN() { return 1; }
12874 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12881 rm -f conftest.$ac_objext
12882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12883 (eval $ac_compile) 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -s conftest.$ac_objext'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; }; then
12895 echo "$as_me: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 ac_lo=`expr '(' $ac_mid ')' + 1`
12899 rm -f conftest.$ac_objext conftest.$ac_ext
12902 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12904 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12905 { (exit 1); exit 1; }; } ;;
12908 if test "$cross_compiling" = yes; then
12909 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12910 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12911 { (exit 1); exit 1; }; }
12913 cat >conftest.$ac_ext <<_ACEOF
12914 #line $LINENO "configure"
12915 #include "confdefs.h"
12916 $ac_includes_default
12917 long longval () { return (long) (sizeof (unsigned long)); }
12918 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12920 #include <stdlib.h>
12921 #ifdef F77_DUMMY_MAIN
12922 # ifdef __cplusplus
12925 int F77_DUMMY_MAIN() { return 1; }
12931 FILE *f = fopen ("conftest.val", "w");
12934 if (((long) (sizeof (unsigned long))) < 0)
12936 long i = longval ();
12937 if (i != ((long) (sizeof (unsigned long))))
12939 fprintf (f, "%ld\n", i);
12943 unsigned long i = ulongval ();
12944 if (i != ((long) (sizeof (unsigned long))))
12946 fprintf (f, "%lu\n", i);
12948 exit (ferror (f) || fclose (f) != 0);
12954 rm -f conftest$ac_exeext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12956 (eval $ac_link) 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_cv_sizeof_unsigned_long=`cat conftest.val`
12967 echo "$as_me: program exited with status $ac_status" >&5
12968 echo "$as_me: failed program was:" >&5
12969 cat conftest.$ac_ext >&5
12970 ( exit $ac_status )
12971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12972 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12973 { (exit 1); exit 1; }; }
12975 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12980 ac_cv_sizeof_unsigned_long=0
12983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12984 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12985 cat >>confdefs.h <<_ACEOF
12986 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12991 cat >>confdefs.h <<_ACEOF
12992 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12996 # Determine memory alignment requirements for the basic C data types.
12998 echo "$as_me:$LINENO: checking for short" >&5
12999 echo $ECHO_N "checking for short... $ECHO_C" >&6
13000 if test "${ac_cv_type_short+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 cat >conftest.$ac_ext <<_ACEOF
13004 #line $LINENO "configure"
13005 #include "confdefs.h"
13006 $ac_includes_default
13007 #ifdef F77_DUMMY_MAIN
13008 # ifdef __cplusplus
13011 int F77_DUMMY_MAIN() { return 1; }
13018 if (sizeof (short))
13024 rm -f conftest.$ac_objext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026 (eval $ac_compile) 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -s conftest.$ac_objext'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_cv_type_short=yes
13038 echo "$as_me: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13040 ac_cv_type_short=no
13042 rm -f conftest.$ac_objext conftest.$ac_ext
13044 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13045 echo "${ECHO_T}$ac_cv_type_short" >&6
13047 echo "$as_me:$LINENO: checking alignment of short" >&5
13048 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
13049 if test "${pgac_cv_alignof_short+set}" = set; then
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13052 if test "$ac_cv_type_short" = yes; then
13053 if test "$cross_compiling" = yes; then
13054 # Depending upon the size, compute the lo and hi bounds.
13055 cat >conftest.$ac_ext <<_ACEOF
13056 #line $LINENO "configure"
13057 #include "confdefs.h"
13058 $ac_includes_default
13059 struct { char filler; short field; } pgac_struct;
13060 #ifdef F77_DUMMY_MAIN
13061 # ifdef __cplusplus
13064 int F77_DUMMY_MAIN() { return 1; }
13069 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13076 rm -f conftest.$ac_objext
13077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13078 (eval $ac_compile) 2>&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -s conftest.$ac_objext'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13090 cat >conftest.$ac_ext <<_ACEOF
13091 #line $LINENO "configure"
13092 #include "confdefs.h"
13093 $ac_includes_default
13094 struct { char filler; short field; } pgac_struct;
13095 #ifdef F77_DUMMY_MAIN
13096 # ifdef __cplusplus
13099 int F77_DUMMY_MAIN() { return 1; }
13104 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13111 rm -f conftest.$ac_objext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13113 (eval $ac_compile) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -s conftest.$ac_objext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_hi=$ac_mid; break
13125 echo "$as_me: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13127 ac_lo=`expr $ac_mid + 1`
13128 if test $ac_lo -le $ac_mid; then
13132 ac_mid=`expr 2 '*' $ac_mid + 1`
13134 rm -f conftest.$ac_objext conftest.$ac_ext
13137 echo "$as_me: failed program was:" >&5
13138 cat conftest.$ac_ext >&5
13139 cat >conftest.$ac_ext <<_ACEOF
13140 #line $LINENO "configure"
13141 #include "confdefs.h"
13142 $ac_includes_default
13143 struct { char filler; short field; } pgac_struct;
13144 #ifdef F77_DUMMY_MAIN
13145 # ifdef __cplusplus
13148 int F77_DUMMY_MAIN() { return 1; }
13153 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13160 rm -f conftest.$ac_objext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13162 (eval $ac_compile) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } &&
13166 { ac_try='test -s conftest.$ac_objext'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13174 cat >conftest.$ac_ext <<_ACEOF
13175 #line $LINENO "configure"
13176 #include "confdefs.h"
13177 $ac_includes_default
13178 struct { char filler; short field; } pgac_struct;
13179 #ifdef F77_DUMMY_MAIN
13180 # ifdef __cplusplus
13183 int F77_DUMMY_MAIN() { return 1; }
13188 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13195 rm -f conftest.$ac_objext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } &&
13201 { ac_try='test -s conftest.$ac_objext'
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_lo=$ac_mid; break
13209 echo "$as_me: failed program was:" >&5
13210 cat conftest.$ac_ext >&5
13211 ac_hi=`expr '(' $ac_mid ')' - 1`
13212 if test $ac_mid -le $ac_hi; then
13216 ac_mid=`expr 2 '*' $ac_mid`
13218 rm -f conftest.$ac_objext conftest.$ac_ext
13221 echo "$as_me: failed program was:" >&5
13222 cat conftest.$ac_ext >&5
13225 rm -f conftest.$ac_objext conftest.$ac_ext
13227 rm -f conftest.$ac_objext conftest.$ac_ext
13228 # Binary search between lo and hi bounds.
13229 while test "x$ac_lo" != "x$ac_hi"; do
13230 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13231 cat >conftest.$ac_ext <<_ACEOF
13232 #line $LINENO "configure"
13233 #include "confdefs.h"
13234 $ac_includes_default
13235 struct { char filler; short field; } pgac_struct;
13236 #ifdef F77_DUMMY_MAIN
13237 # ifdef __cplusplus
13240 int F77_DUMMY_MAIN() { return 1; }
13245 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } &&
13258 { ac_try='test -s conftest.$ac_objext'
13259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13260 (eval $ac_try) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; }; then
13266 echo "$as_me: failed program was:" >&5
13267 cat conftest.$ac_ext >&5
13268 ac_lo=`expr '(' $ac_mid ')' + 1`
13270 rm -f conftest.$ac_objext conftest.$ac_ext
13273 ?*) pgac_cv_alignof_short=$ac_lo;;
13274 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13275 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13276 { (exit 1); exit 1; }; } ;;
13279 if test "$cross_compiling" = yes; then
13280 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13281 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13282 { (exit 1); exit 1; }; }
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 #include "confdefs.h"
13287 $ac_includes_default
13288 struct { char filler; short field; } pgac_struct;
13289 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13290 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13292 #include <stdlib.h>
13293 #ifdef F77_DUMMY_MAIN
13294 # ifdef __cplusplus
13297 int F77_DUMMY_MAIN() { return 1; }
13303 FILE *f = fopen ("conftest.val", "w");
13306 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13308 long i = longval ();
13309 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13311 fprintf (f, "%ld\n", i);
13315 unsigned long i = ulongval ();
13316 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13318 fprintf (f, "%lu\n", i);
13320 exit (ferror (f) || fclose (f) != 0);
13326 rm -f conftest$ac_exeext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13328 (eval $ac_link) 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 pgac_cv_alignof_short=`cat conftest.val`
13339 echo "$as_me: program exited with status $ac_status" >&5
13340 echo "$as_me: failed program was:" >&5
13341 cat conftest.$ac_ext >&5
13342 ( exit $ac_status )
13343 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
13344 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
13345 { (exit 1); exit 1; }; }
13347 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13352 pgac_cv_alignof_short=0
13355 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
13356 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
13357 cat >>confdefs.h <<_ACEOF
13358 #define ALIGNOF_SHORT $pgac_cv_alignof_short
13362 echo "$as_me:$LINENO: checking for int" >&5
13363 echo $ECHO_N "checking for int... $ECHO_C" >&6
13364 if test "${ac_cv_type_int+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13369 #include "confdefs.h"
13370 $ac_includes_default
13371 #ifdef F77_DUMMY_MAIN
13372 # ifdef __cplusplus
13375 int F77_DUMMY_MAIN() { return 1; }
13388 rm -f conftest.$ac_objext
13389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13390 (eval $ac_compile) 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -s conftest.$ac_objext'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13402 echo "$as_me: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13406 rm -f conftest.$ac_objext conftest.$ac_ext
13408 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13409 echo "${ECHO_T}$ac_cv_type_int" >&6
13411 echo "$as_me:$LINENO: checking alignment of int" >&5
13412 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
13413 if test "${pgac_cv_alignof_int+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 if test "$ac_cv_type_int" = yes; then
13417 if test "$cross_compiling" = yes; then
13418 # Depending upon the size, compute the lo and hi bounds.
13419 cat >conftest.$ac_ext <<_ACEOF
13420 #line $LINENO "configure"
13421 #include "confdefs.h"
13422 $ac_includes_default
13423 struct { char filler; int field; } pgac_struct;
13424 #ifdef F77_DUMMY_MAIN
13425 # ifdef __cplusplus
13428 int F77_DUMMY_MAIN() { return 1; }
13433 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13440 rm -f conftest.$ac_objext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442 (eval $ac_compile) 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
13446 { ac_try='test -s conftest.$ac_objext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13454 cat >conftest.$ac_ext <<_ACEOF
13455 #line $LINENO "configure"
13456 #include "confdefs.h"
13457 $ac_includes_default
13458 struct { char filler; int field; } pgac_struct;
13459 #ifdef F77_DUMMY_MAIN
13460 # ifdef __cplusplus
13463 int F77_DUMMY_MAIN() { return 1; }
13468 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13475 rm -f conftest.$ac_objext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13477 (eval $ac_compile) 2>&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -s conftest.$ac_objext'
13482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; }; then
13487 ac_hi=$ac_mid; break
13489 echo "$as_me: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13491 ac_lo=`expr $ac_mid + 1`
13492 if test $ac_lo -le $ac_mid; then
13496 ac_mid=`expr 2 '*' $ac_mid + 1`
13498 rm -f conftest.$ac_objext conftest.$ac_ext
13501 echo "$as_me: failed program was:" >&5
13502 cat conftest.$ac_ext >&5
13503 cat >conftest.$ac_ext <<_ACEOF
13504 #line $LINENO "configure"
13505 #include "confdefs.h"
13506 $ac_includes_default
13507 struct { char filler; int field; } pgac_struct;
13508 #ifdef F77_DUMMY_MAIN
13509 # ifdef __cplusplus
13512 int F77_DUMMY_MAIN() { return 1; }
13517 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526 (eval $ac_compile) 2>&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } &&
13530 { ac_try='test -s conftest.$ac_objext'
13531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532 (eval $ac_try) 2>&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; }; then
13538 cat >conftest.$ac_ext <<_ACEOF
13539 #line $LINENO "configure"
13540 #include "confdefs.h"
13541 $ac_includes_default
13542 struct { char filler; int field; } pgac_struct;
13543 #ifdef F77_DUMMY_MAIN
13544 # ifdef __cplusplus
13547 int F77_DUMMY_MAIN() { return 1; }
13552 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13559 rm -f conftest.$ac_objext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561 (eval $ac_compile) 2>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -s conftest.$ac_objext'
13566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567 (eval $ac_try) 2>&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); }; }; then
13571 ac_lo=$ac_mid; break
13573 echo "$as_me: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 ac_hi=`expr '(' $ac_mid ')' - 1`
13576 if test $ac_mid -le $ac_hi; then
13580 ac_mid=`expr 2 '*' $ac_mid`
13582 rm -f conftest.$ac_objext conftest.$ac_ext
13585 echo "$as_me: failed program was:" >&5
13586 cat conftest.$ac_ext >&5
13589 rm -f conftest.$ac_objext conftest.$ac_ext
13591 rm -f conftest.$ac_objext conftest.$ac_ext
13592 # Binary search between lo and hi bounds.
13593 while test "x$ac_lo" != "x$ac_hi"; do
13594 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13595 cat >conftest.$ac_ext <<_ACEOF
13596 #line $LINENO "configure"
13597 #include "confdefs.h"
13598 $ac_includes_default
13599 struct { char filler; int field; } pgac_struct;
13600 #ifdef F77_DUMMY_MAIN
13601 # ifdef __cplusplus
13604 int F77_DUMMY_MAIN() { return 1; }
13609 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13616 rm -f conftest.$ac_objext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13618 (eval $ac_compile) 2>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -s conftest.$ac_objext'
13623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624 (eval $ac_try) 2>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; }; then
13630 echo "$as_me: failed program was:" >&5
13631 cat conftest.$ac_ext >&5
13632 ac_lo=`expr '(' $ac_mid ')' + 1`
13634 rm -f conftest.$ac_objext conftest.$ac_ext
13637 ?*) pgac_cv_alignof_int=$ac_lo;;
13638 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13639 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13640 { (exit 1); exit 1; }; } ;;
13643 if test "$cross_compiling" = yes; then
13644 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13645 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13646 { (exit 1); exit 1; }; }
13648 cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 #include "confdefs.h"
13651 $ac_includes_default
13652 struct { char filler; int field; } pgac_struct;
13653 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13654 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13656 #include <stdlib.h>
13657 #ifdef F77_DUMMY_MAIN
13658 # ifdef __cplusplus
13661 int F77_DUMMY_MAIN() { return 1; }
13667 FILE *f = fopen ("conftest.val", "w");
13670 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13672 long i = longval ();
13673 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13675 fprintf (f, "%ld\n", i);
13679 unsigned long i = ulongval ();
13680 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13682 fprintf (f, "%lu\n", i);
13684 exit (ferror (f) || fclose (f) != 0);
13690 rm -f conftest$ac_exeext
13691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13692 (eval $ac_link) 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 pgac_cv_alignof_int=`cat conftest.val`
13703 echo "$as_me: program exited with status $ac_status" >&5
13704 echo "$as_me: failed program was:" >&5
13705 cat conftest.$ac_ext >&5
13706 ( exit $ac_status )
13707 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13708 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13709 { (exit 1); exit 1; }; }
13711 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13716 pgac_cv_alignof_int=0
13719 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13720 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13721 cat >>confdefs.h <<_ACEOF
13722 #define ALIGNOF_INT $pgac_cv_alignof_int
13726 echo "$as_me:$LINENO: checking for long" >&5
13727 echo $ECHO_N "checking for long... $ECHO_C" >&6
13728 if test "${ac_cv_type_long+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 cat >conftest.$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13733 #include "confdefs.h"
13734 $ac_includes_default
13735 #ifdef F77_DUMMY_MAIN
13736 # ifdef __cplusplus
13739 int F77_DUMMY_MAIN() { return 1; }
13752 rm -f conftest.$ac_objext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13754 (eval $ac_compile) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } &&
13758 { ac_try='test -s conftest.$ac_objext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_cv_type_long=yes
13766 echo "$as_me: failed program was:" >&5
13767 cat conftest.$ac_ext >&5
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13772 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13773 echo "${ECHO_T}$ac_cv_type_long" >&6
13775 echo "$as_me:$LINENO: checking alignment of long" >&5
13776 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13777 if test "${pgac_cv_alignof_long+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 if test "$ac_cv_type_long" = yes; then
13781 if test "$cross_compiling" = yes; then
13782 # Depending upon the size, compute the lo and hi bounds.
13783 cat >conftest.$ac_ext <<_ACEOF
13784 #line $LINENO "configure"
13785 #include "confdefs.h"
13786 $ac_includes_default
13787 struct { char filler; long field; } pgac_struct;
13788 #ifdef F77_DUMMY_MAIN
13789 # ifdef __cplusplus
13792 int F77_DUMMY_MAIN() { return 1; }
13797 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13804 rm -f conftest.$ac_objext
13805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13806 (eval $ac_compile) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
13810 { ac_try='test -s conftest.$ac_objext'
13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812 (eval $ac_try) 2>&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; }; then
13818 cat >conftest.$ac_ext <<_ACEOF
13819 #line $LINENO "configure"
13820 #include "confdefs.h"
13821 $ac_includes_default
13822 struct { char filler; long field; } pgac_struct;
13823 #ifdef F77_DUMMY_MAIN
13824 # ifdef __cplusplus
13827 int F77_DUMMY_MAIN() { return 1; }
13832 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841 (eval $ac_compile) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -s conftest.$ac_objext'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851 ac_hi=$ac_mid; break
13853 echo "$as_me: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13855 ac_lo=`expr $ac_mid + 1`
13856 if test $ac_lo -le $ac_mid; then
13860 ac_mid=`expr 2 '*' $ac_mid + 1`
13862 rm -f conftest.$ac_objext conftest.$ac_ext
13865 echo "$as_me: failed program was:" >&5
13866 cat conftest.$ac_ext >&5
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13869 #include "confdefs.h"
13870 $ac_includes_default
13871 struct { char filler; long field; } pgac_struct;
13872 #ifdef F77_DUMMY_MAIN
13873 # ifdef __cplusplus
13876 int F77_DUMMY_MAIN() { return 1; }
13881 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13902 cat >conftest.$ac_ext <<_ACEOF
13903 #line $LINENO "configure"
13904 #include "confdefs.h"
13905 $ac_includes_default
13906 struct { char filler; long field; } pgac_struct;
13907 #ifdef F77_DUMMY_MAIN
13908 # ifdef __cplusplus
13911 int F77_DUMMY_MAIN() { return 1; }
13916 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13923 rm -f conftest.$ac_objext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13925 (eval $ac_compile) 2>&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); } &&
13929 { ac_try='test -s conftest.$ac_objext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 ac_lo=$ac_mid; break
13937 echo "$as_me: failed program was:" >&5
13938 cat conftest.$ac_ext >&5
13939 ac_hi=`expr '(' $ac_mid ')' - 1`
13940 if test $ac_mid -le $ac_hi; then
13944 ac_mid=`expr 2 '*' $ac_mid`
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13949 echo "$as_me: failed program was:" >&5
13950 cat conftest.$ac_ext >&5
13953 rm -f conftest.$ac_objext conftest.$ac_ext
13955 rm -f conftest.$ac_objext conftest.$ac_ext
13956 # Binary search between lo and hi bounds.
13957 while test "x$ac_lo" != "x$ac_hi"; do
13958 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13959 cat >conftest.$ac_ext <<_ACEOF
13960 #line $LINENO "configure"
13961 #include "confdefs.h"
13962 $ac_includes_default
13963 struct { char filler; long field; } pgac_struct;
13964 #ifdef F77_DUMMY_MAIN
13965 # ifdef __cplusplus
13968 int F77_DUMMY_MAIN() { return 1; }
13973 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13980 rm -f conftest.$ac_objext
13981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13982 (eval $ac_compile) 2>&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } &&
13986 { ac_try='test -s conftest.$ac_objext'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }; then
13994 echo "$as_me: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13996 ac_lo=`expr '(' $ac_mid ')' + 1`
13998 rm -f conftest.$ac_objext conftest.$ac_ext
14001 ?*) pgac_cv_alignof_long=$ac_lo;;
14002 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14003 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14004 { (exit 1); exit 1; }; } ;;
14007 if test "$cross_compiling" = yes; then
14008 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14009 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14010 { (exit 1); exit 1; }; }
14012 cat >conftest.$ac_ext <<_ACEOF
14013 #line $LINENO "configure"
14014 #include "confdefs.h"
14015 $ac_includes_default
14016 struct { char filler; long field; } pgac_struct;
14017 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14018 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14020 #include <stdlib.h>
14021 #ifdef F77_DUMMY_MAIN
14022 # ifdef __cplusplus
14025 int F77_DUMMY_MAIN() { return 1; }
14031 FILE *f = fopen ("conftest.val", "w");
14034 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14036 long i = longval ();
14037 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14039 fprintf (f, "%ld\n", i);
14043 unsigned long i = ulongval ();
14044 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14046 fprintf (f, "%lu\n", i);
14048 exit (ferror (f) || fclose (f) != 0);
14054 rm -f conftest$ac_exeext
14055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14056 (eval $ac_link) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14065 pgac_cv_alignof_long=`cat conftest.val`
14067 echo "$as_me: program exited with status $ac_status" >&5
14068 echo "$as_me: failed program was:" >&5
14069 cat conftest.$ac_ext >&5
14070 ( exit $ac_status )
14071 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
14072 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
14073 { (exit 1); exit 1; }; }
14075 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14080 pgac_cv_alignof_long=0
14083 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
14084 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
14085 cat >>confdefs.h <<_ACEOF
14086 #define ALIGNOF_LONG $pgac_cv_alignof_long
14090 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14091 echo "$as_me:$LINENO: checking for long long int" >&5
14092 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14093 if test "${ac_cv_type_long_long_int+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 cat >conftest.$ac_ext <<_ACEOF
14097 #line $LINENO "configure"
14098 #include "confdefs.h"
14099 $ac_includes_default
14100 #ifdef F77_DUMMY_MAIN
14101 # ifdef __cplusplus
14104 int F77_DUMMY_MAIN() { return 1; }
14109 if ((long long int *) 0)
14111 if (sizeof (long long int))
14117 rm -f conftest.$ac_objext
14118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14119 (eval $ac_compile) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
14123 { ac_try='test -s conftest.$ac_objext'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 ac_cv_type_long_long_int=yes
14131 echo "$as_me: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 ac_cv_type_long_long_int=no
14135 rm -f conftest.$ac_objext conftest.$ac_ext
14137 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14138 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14140 echo "$as_me:$LINENO: checking alignment of long long int" >&5
14141 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
14142 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 if test "$ac_cv_type_long_long_int" = yes; then
14146 if test "$cross_compiling" = yes; then
14147 # Depending upon the size, compute the lo and hi bounds.
14148 cat >conftest.$ac_ext <<_ACEOF
14149 #line $LINENO "configure"
14150 #include "confdefs.h"
14151 $ac_includes_default
14152 struct { char filler; long long int field; } pgac_struct;
14153 #ifdef F77_DUMMY_MAIN
14154 # ifdef __cplusplus
14157 int F77_DUMMY_MAIN() { return 1; }
14162 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14169 rm -f conftest.$ac_objext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171 (eval $ac_compile) 2>&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -s conftest.$ac_objext'
14176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14183 cat >conftest.$ac_ext <<_ACEOF
14184 #line $LINENO "configure"
14185 #include "confdefs.h"
14186 $ac_includes_default
14187 struct { char filler; long long int field; } pgac_struct;
14188 #ifdef F77_DUMMY_MAIN
14189 # ifdef __cplusplus
14192 int F77_DUMMY_MAIN() { return 1; }
14197 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14204 rm -f conftest.$ac_objext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14206 (eval $ac_compile) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -s conftest.$ac_objext'
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; }; then
14216 ac_hi=$ac_mid; break
14218 echo "$as_me: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14220 ac_lo=`expr $ac_mid + 1`
14221 if test $ac_lo -le $ac_mid; then
14225 ac_mid=`expr 2 '*' $ac_mid + 1`
14227 rm -f conftest.$ac_objext conftest.$ac_ext
14230 echo "$as_me: failed program was:" >&5
14231 cat conftest.$ac_ext >&5
14232 cat >conftest.$ac_ext <<_ACEOF
14233 #line $LINENO "configure"
14234 #include "confdefs.h"
14235 $ac_includes_default
14236 struct { char filler; long long int field; } pgac_struct;
14237 #ifdef F77_DUMMY_MAIN
14238 # ifdef __cplusplus
14241 int F77_DUMMY_MAIN() { return 1; }
14246 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -s conftest.$ac_objext'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; }; then
14267 cat >conftest.$ac_ext <<_ACEOF
14268 #line $LINENO "configure"
14269 #include "confdefs.h"
14270 $ac_includes_default
14271 struct { char filler; long long int field; } pgac_struct;
14272 #ifdef F77_DUMMY_MAIN
14273 # ifdef __cplusplus
14276 int F77_DUMMY_MAIN() { return 1; }
14281 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14288 rm -f conftest.$ac_objext
14289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14290 (eval $ac_compile) 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try='test -s conftest.$ac_objext'
14295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 ac_lo=$ac_mid; break
14302 echo "$as_me: failed program was:" >&5
14303 cat conftest.$ac_ext >&5
14304 ac_hi=`expr '(' $ac_mid ')' - 1`
14305 if test $ac_mid -le $ac_hi; then
14309 ac_mid=`expr 2 '*' $ac_mid`
14311 rm -f conftest.$ac_objext conftest.$ac_ext
14314 echo "$as_me: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14318 rm -f conftest.$ac_objext conftest.$ac_ext
14320 rm -f conftest.$ac_objext conftest.$ac_ext
14321 # Binary search between lo and hi bounds.
14322 while test "x$ac_lo" != "x$ac_hi"; do
14323 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14324 cat >conftest.$ac_ext <<_ACEOF
14325 #line $LINENO "configure"
14326 #include "confdefs.h"
14327 $ac_includes_default
14328 struct { char filler; long long int field; } pgac_struct;
14329 #ifdef F77_DUMMY_MAIN
14330 # ifdef __cplusplus
14333 int F77_DUMMY_MAIN() { return 1; }
14338 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14345 rm -f conftest.$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347 (eval $ac_compile) 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -s conftest.$ac_objext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14359 echo "$as_me: failed program was:" >&5
14360 cat conftest.$ac_ext >&5
14361 ac_lo=`expr '(' $ac_mid ')' + 1`
14363 rm -f conftest.$ac_objext conftest.$ac_ext
14366 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
14367 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14368 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14369 { (exit 1); exit 1; }; } ;;
14372 if test "$cross_compiling" = yes; then
14373 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14374 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14375 { (exit 1); exit 1; }; }
14377 cat >conftest.$ac_ext <<_ACEOF
14378 #line $LINENO "configure"
14379 #include "confdefs.h"
14380 $ac_includes_default
14381 struct { char filler; long long int field; } pgac_struct;
14382 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14383 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14385 #include <stdlib.h>
14386 #ifdef F77_DUMMY_MAIN
14387 # ifdef __cplusplus
14390 int F77_DUMMY_MAIN() { return 1; }
14396 FILE *f = fopen ("conftest.val", "w");
14399 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14401 long i = longval ();
14402 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14404 fprintf (f, "%ld\n", i);
14408 unsigned long i = ulongval ();
14409 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14411 fprintf (f, "%lu\n", i);
14413 exit (ferror (f) || fclose (f) != 0);
14419 rm -f conftest$ac_exeext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14421 (eval $ac_link) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 pgac_cv_alignof_long_long_int=`cat conftest.val`
14432 echo "$as_me: program exited with status $ac_status" >&5
14433 echo "$as_me: failed program was:" >&5
14434 cat conftest.$ac_ext >&5
14435 ( exit $ac_status )
14436 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
14437 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
14438 { (exit 1); exit 1; }; }
14440 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14445 pgac_cv_alignof_long_long_int=0
14448 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
14449 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
14450 cat >>confdefs.h <<_ACEOF
14451 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
14456 echo "$as_me:$LINENO: checking for double" >&5
14457 echo $ECHO_N "checking for double... $ECHO_C" >&6
14458 if test "${ac_cv_type_double+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 cat >conftest.$ac_ext <<_ACEOF
14462 #line $LINENO "configure"
14463 #include "confdefs.h"
14464 $ac_includes_default
14465 #ifdef F77_DUMMY_MAIN
14466 # ifdef __cplusplus
14469 int F77_DUMMY_MAIN() { return 1; }
14476 if (sizeof (double))
14482 rm -f conftest.$ac_objext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14484 (eval $ac_compile) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } &&
14488 { ac_try='test -s conftest.$ac_objext'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then
14494 ac_cv_type_double=yes
14496 echo "$as_me: failed program was:" >&5
14497 cat conftest.$ac_ext >&5
14498 ac_cv_type_double=no
14500 rm -f conftest.$ac_objext conftest.$ac_ext
14502 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
14503 echo "${ECHO_T}$ac_cv_type_double" >&6
14505 echo "$as_me:$LINENO: checking alignment of double" >&5
14506 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
14507 if test "${pgac_cv_alignof_double+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 if test "$ac_cv_type_double" = yes; then
14511 if test "$cross_compiling" = yes; then
14512 # Depending upon the size, compute the lo and hi bounds.
14513 cat >conftest.$ac_ext <<_ACEOF
14514 #line $LINENO "configure"
14515 #include "confdefs.h"
14516 $ac_includes_default
14517 struct { char filler; double field; } pgac_struct;
14518 #ifdef F77_DUMMY_MAIN
14519 # ifdef __cplusplus
14522 int F77_DUMMY_MAIN() { return 1; }
14527 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14534 rm -f conftest.$ac_objext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14536 (eval $ac_compile) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); } &&
14540 { ac_try='test -s conftest.$ac_objext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14548 cat >conftest.$ac_ext <<_ACEOF
14549 #line $LINENO "configure"
14550 #include "confdefs.h"
14551 $ac_includes_default
14552 struct { char filler; double field; } pgac_struct;
14553 #ifdef F77_DUMMY_MAIN
14554 # ifdef __cplusplus
14557 int F77_DUMMY_MAIN() { return 1; }
14562 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -s conftest.$ac_objext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 ac_hi=$ac_mid; break
14583 echo "$as_me: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 ac_lo=`expr $ac_mid + 1`
14586 if test $ac_lo -le $ac_mid; then
14590 ac_mid=`expr 2 '*' $ac_mid + 1`
14592 rm -f conftest.$ac_objext conftest.$ac_ext
14595 echo "$as_me: failed program was:" >&5
14596 cat conftest.$ac_ext >&5
14597 cat >conftest.$ac_ext <<_ACEOF
14598 #line $LINENO "configure"
14599 #include "confdefs.h"
14600 $ac_includes_default
14601 struct { char filler; double field; } pgac_struct;
14602 #ifdef F77_DUMMY_MAIN
14603 # ifdef __cplusplus
14606 int F77_DUMMY_MAIN() { return 1; }
14611 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14618 rm -f conftest.$ac_objext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620 (eval $ac_compile) 2>&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -s conftest.$ac_objext'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14632 cat >conftest.$ac_ext <<_ACEOF
14633 #line $LINENO "configure"
14634 #include "confdefs.h"
14635 $ac_includes_default
14636 struct { char filler; double field; } pgac_struct;
14637 #ifdef F77_DUMMY_MAIN
14638 # ifdef __cplusplus
14641 int F77_DUMMY_MAIN() { return 1; }
14646 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14653 rm -f conftest.$ac_objext
14654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14655 (eval $ac_compile) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -s conftest.$ac_objext'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 ac_lo=$ac_mid; break
14667 echo "$as_me: failed program was:" >&5
14668 cat conftest.$ac_ext >&5
14669 ac_hi=`expr '(' $ac_mid ')' - 1`
14670 if test $ac_mid -le $ac_hi; then
14674 ac_mid=`expr 2 '*' $ac_mid`
14676 rm -f conftest.$ac_objext conftest.$ac_ext
14679 echo "$as_me: failed program was:" >&5
14680 cat conftest.$ac_ext >&5
14683 rm -f conftest.$ac_objext conftest.$ac_ext
14685 rm -f conftest.$ac_objext conftest.$ac_ext
14686 # Binary search between lo and hi bounds.
14687 while test "x$ac_lo" != "x$ac_hi"; do
14688 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14689 cat >conftest.$ac_ext <<_ACEOF
14690 #line $LINENO "configure"
14691 #include "confdefs.h"
14692 $ac_includes_default
14693 struct { char filler; double field; } pgac_struct;
14694 #ifdef F77_DUMMY_MAIN
14695 # ifdef __cplusplus
14698 int F77_DUMMY_MAIN() { return 1; }
14703 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712 (eval $ac_compile) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); } &&
14716 { ac_try='test -s conftest.$ac_objext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14724 echo "$as_me: failed program was:" >&5
14725 cat conftest.$ac_ext >&5
14726 ac_lo=`expr '(' $ac_mid ')' + 1`
14728 rm -f conftest.$ac_objext conftest.$ac_ext
14731 ?*) pgac_cv_alignof_double=$ac_lo;;
14732 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14733 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14734 { (exit 1); exit 1; }; } ;;
14737 if test "$cross_compiling" = yes; then
14738 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14739 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14740 { (exit 1); exit 1; }; }
14742 cat >conftest.$ac_ext <<_ACEOF
14743 #line $LINENO "configure"
14744 #include "confdefs.h"
14745 $ac_includes_default
14746 struct { char filler; double field; } pgac_struct;
14747 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14748 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14750 #include <stdlib.h>
14751 #ifdef F77_DUMMY_MAIN
14752 # ifdef __cplusplus
14755 int F77_DUMMY_MAIN() { return 1; }
14761 FILE *f = fopen ("conftest.val", "w");
14764 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14766 long i = longval ();
14767 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14769 fprintf (f, "%ld\n", i);
14773 unsigned long i = ulongval ();
14774 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14776 fprintf (f, "%lu\n", i);
14778 exit (ferror (f) || fclose (f) != 0);
14784 rm -f conftest$ac_exeext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14786 (eval $ac_link) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 pgac_cv_alignof_double=`cat conftest.val`
14797 echo "$as_me: program exited with status $ac_status" >&5
14798 echo "$as_me: failed program was:" >&5
14799 cat conftest.$ac_ext >&5
14800 ( exit $ac_status )
14801 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14802 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14803 { (exit 1); exit 1; }; }
14805 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14810 pgac_cv_alignof_double=0
14813 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14814 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14815 cat >>confdefs.h <<_ACEOF
14816 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14821 # Compute maximum alignment of any basic type.
14822 # We assume long's alignment is at least as strong as char, short, or int;
14823 # but we must check long long (if it exists) and double.
14825 MAX_ALIGNOF=$pgac_cv_alignof_long
14826 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14827 MAX_ALIGNOF=$pgac_cv_alignof_double
14829 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14830 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14833 cat >>confdefs.h <<_ACEOF
14834 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14839 # Some platforms predefine the types int8, int16, etc. Only check
14840 # a (hopefully) representative subset.
14841 echo "$as_me:$LINENO: checking for int8" >&5
14842 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14843 if test "${ac_cv_type_int8+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14848 #include "confdefs.h"
14850 #ifdef HAVE_SUPPORTDEFS_H
14851 #include <SupportDefs.h>
14854 #ifdef F77_DUMMY_MAIN
14855 # ifdef __cplusplus
14858 int F77_DUMMY_MAIN() { return 1; }
14871 rm -f conftest.$ac_objext
14872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14873 (eval $ac_compile) 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
14877 { ac_try='test -s conftest.$ac_objext'
14878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879 (eval $ac_try) 2>&5
14881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882 (exit $ac_status); }; }; then
14883 ac_cv_type_int8=yes
14885 echo "$as_me: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14889 rm -f conftest.$ac_objext conftest.$ac_ext
14891 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14892 echo "${ECHO_T}$ac_cv_type_int8" >&6
14893 if test $ac_cv_type_int8 = yes; then
14895 cat >>confdefs.h <<_ACEOF
14896 #define HAVE_INT8 1
14901 echo "$as_me:$LINENO: checking for uint8" >&5
14902 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14903 if test "${ac_cv_type_uint8+set}" = set; then
14904 echo $ECHO_N "(cached) $ECHO_C" >&6
14906 cat >conftest.$ac_ext <<_ACEOF
14907 #line $LINENO "configure"
14908 #include "confdefs.h"
14910 #ifdef HAVE_SUPPORTDEFS_H
14911 #include <SupportDefs.h>
14914 #ifdef F77_DUMMY_MAIN
14915 # ifdef __cplusplus
14918 int F77_DUMMY_MAIN() { return 1; }
14925 if (sizeof (uint8))
14931 rm -f conftest.$ac_objext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14933 (eval $ac_compile) 2>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -s conftest.$ac_objext'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_cv_type_uint8=yes
14945 echo "$as_me: failed program was:" >&5
14946 cat conftest.$ac_ext >&5
14947 ac_cv_type_uint8=no
14949 rm -f conftest.$ac_objext conftest.$ac_ext
14951 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14952 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14953 if test $ac_cv_type_uint8 = yes; then
14955 cat >>confdefs.h <<_ACEOF
14956 #define HAVE_UINT8 1
14961 echo "$as_me:$LINENO: checking for int64" >&5
14962 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14963 if test "${ac_cv_type_int64+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14966 cat >conftest.$ac_ext <<_ACEOF
14967 #line $LINENO "configure"
14968 #include "confdefs.h"
14970 #ifdef HAVE_SUPPORTDEFS_H
14971 #include <SupportDefs.h>
14974 #ifdef F77_DUMMY_MAIN
14975 # ifdef __cplusplus
14978 int F77_DUMMY_MAIN() { return 1; }
14985 if (sizeof (int64))
14991 rm -f conftest.$ac_objext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14993 (eval $ac_compile) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -s conftest.$ac_objext'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 ac_cv_type_int64=yes
15005 echo "$as_me: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15007 ac_cv_type_int64=no
15009 rm -f conftest.$ac_objext conftest.$ac_ext
15011 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
15012 echo "${ECHO_T}$ac_cv_type_int64" >&6
15013 if test $ac_cv_type_int64 = yes; then
15015 cat >>confdefs.h <<_ACEOF
15016 #define HAVE_INT64 1
15021 echo "$as_me:$LINENO: checking for uint64" >&5
15022 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
15023 if test "${ac_cv_type_uint64+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 cat >conftest.$ac_ext <<_ACEOF
15027 #line $LINENO "configure"
15028 #include "confdefs.h"
15030 #ifdef HAVE_SUPPORTDEFS_H
15031 #include <SupportDefs.h>
15034 #ifdef F77_DUMMY_MAIN
15035 # ifdef __cplusplus
15038 int F77_DUMMY_MAIN() { return 1; }
15045 if (sizeof (uint64))
15051 rm -f conftest.$ac_objext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15053 (eval $ac_compile) 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -s conftest.$ac_objext'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_cv_type_uint64=yes
15065 echo "$as_me: failed program was:" >&5
15066 cat conftest.$ac_ext >&5
15067 ac_cv_type_uint64=no
15069 rm -f conftest.$ac_objext conftest.$ac_ext
15071 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
15072 echo "${ECHO_T}$ac_cv_type_uint64" >&6
15073 if test $ac_cv_type_uint64 = yes; then
15075 cat >>confdefs.h <<_ACEOF
15076 #define HAVE_UINT64 1
15083 # We also check for sig_atomic_t, which *should* be defined per ANSI
15084 # C, but is missing on some old platforms.
15085 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
15086 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
15087 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15091 #line $LINENO "configure"
15092 #include "confdefs.h"
15093 #include <signal.h>
15095 #ifdef F77_DUMMY_MAIN
15096 # ifdef __cplusplus
15099 int F77_DUMMY_MAIN() { return 1; }
15104 if ((sig_atomic_t *) 0)
15106 if (sizeof (sig_atomic_t))
15112 rm -f conftest.$ac_objext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15114 (eval $ac_compile) 2>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } &&
15118 { ac_try='test -s conftest.$ac_objext'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; }; then
15124 ac_cv_type_sig_atomic_t=yes
15126 echo "$as_me: failed program was:" >&5
15127 cat conftest.$ac_ext >&5
15128 ac_cv_type_sig_atomic_t=no
15130 rm -f conftest.$ac_objext conftest.$ac_ext
15132 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
15133 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
15134 if test $ac_cv_type_sig_atomic_t = yes; then
15136 cat >>confdefs.h <<_ACEOF
15137 #define HAVE_SIG_ATOMIC_T 1
15145 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
15146 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
15147 if test "${pgac_cv_func_posix_signals+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 cat >conftest.$ac_ext <<_ACEOF
15151 #line $LINENO "configure"
15152 #include "confdefs.h"
15153 #include <signal.h>
15155 #ifdef F77_DUMMY_MAIN
15156 # ifdef __cplusplus
15159 int F77_DUMMY_MAIN() { return 1; }
15164 struct sigaction act, oact;
15165 sigemptyset(&act.sa_mask);
15166 act.sa_flags = SA_RESTART;
15167 sigaction(0, &act, &oact);
15172 rm -f conftest.$ac_objext conftest$ac_exeext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15174 (eval $ac_link) 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } &&
15178 { ac_try='test -s conftest$ac_exeext'
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 pgac_cv_func_posix_signals=yes
15186 echo "$as_me: failed program was:" >&5
15187 cat conftest.$ac_ext >&5
15188 pgac_cv_func_posix_signals=no
15190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15192 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
15193 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
15194 if test x"$pgac_cv_func_posix_signals" = xyes ; then
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_POSIX_SIGNALS
15201 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
15203 if test $ac_cv_func_fseeko = yes; then
15204 # Check whether --enable-largefile or --disable-largefile was given.
15205 if test "${enable_largefile+set}" = set; then
15206 enableval="$enable_largefile"
15209 if test "$enable_largefile" != no; then
15211 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15212 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
15213 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 ac_cv_sys_largefile_CC=no
15217 if test "$GCC" != yes; then
15220 # IRIX 6.2 and later do not support large files by default,
15221 # so use the C compiler's -n32 option if that helps.
15222 cat >conftest.$ac_ext <<_ACEOF
15223 #line $LINENO "configure"
15224 #include "confdefs.h"
15225 #include <sys/types.h>
15226 /* Check that off_t can represent 2**63 - 1 correctly.
15227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15228 since some C++ compilers masquerading as C compilers
15229 incorrectly reject 9223372036854775807. */
15230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15232 && LARGE_OFF_T % 2147483647 == 1)
15234 #ifdef F77_DUMMY_MAIN
15235 # ifdef __cplusplus
15238 int F77_DUMMY_MAIN() { return 1; }
15248 rm -f conftest.$ac_objext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15250 (eval $ac_compile) 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } &&
15254 { ac_try='test -s conftest.$ac_objext'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; }; then
15262 echo "$as_me: failed program was:" >&5
15263 cat conftest.$ac_ext >&5
15265 rm -f conftest.$ac_objext
15267 rm -f conftest.$ac_objext
15268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15269 (eval $ac_compile) 2>&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -s conftest.$ac_objext'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 ac_cv_sys_largefile_CC=' -n32'; break
15281 echo "$as_me: failed program was:" >&5
15282 cat conftest.$ac_ext >&5
15284 rm -f conftest.$ac_objext
15288 rm -f conftest.$ac_ext
15291 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
15292 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
15293 if test "$ac_cv_sys_largefile_CC" != no; then
15294 CC=$CC$ac_cv_sys_largefile_CC
15297 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15298 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
15299 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 ac_cv_sys_file_offset_bits=no
15304 cat >conftest.$ac_ext <<_ACEOF
15305 #line $LINENO "configure"
15306 #include "confdefs.h"
15307 #include <sys/types.h>
15308 /* Check that off_t can represent 2**63 - 1 correctly.
15309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15310 since some C++ compilers masquerading as C compilers
15311 incorrectly reject 9223372036854775807. */
15312 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15314 && LARGE_OFF_T % 2147483647 == 1)
15316 #ifdef F77_DUMMY_MAIN
15317 # ifdef __cplusplus
15320 int F77_DUMMY_MAIN() { return 1; }
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
15347 rm -f conftest.$ac_objext conftest.$ac_ext
15348 cat >conftest.$ac_ext <<_ACEOF
15349 #line $LINENO "configure"
15350 #include "confdefs.h"
15351 #define _FILE_OFFSET_BITS 64
15352 #include <sys/types.h>
15353 /* Check that off_t can represent 2**63 - 1 correctly.
15354 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15355 since some C++ compilers masquerading as C compilers
15356 incorrectly reject 9223372036854775807. */
15357 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15358 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15359 && LARGE_OFF_T % 2147483647 == 1)
15361 #ifdef F77_DUMMY_MAIN
15362 # ifdef __cplusplus
15365 int F77_DUMMY_MAIN() { return 1; }
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_cv_sys_file_offset_bits=64; break
15389 echo "$as_me: failed program was:" >&5
15390 cat conftest.$ac_ext >&5
15392 rm -f conftest.$ac_objext conftest.$ac_ext
15396 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
15397 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
15398 if test "$ac_cv_sys_file_offset_bits" != no; then
15400 cat >>confdefs.h <<_ACEOF
15401 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15406 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
15407 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
15408 if test "${ac_cv_sys_large_files+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 ac_cv_sys_large_files=no
15413 cat >conftest.$ac_ext <<_ACEOF
15414 #line $LINENO "configure"
15415 #include "confdefs.h"
15416 #include <sys/types.h>
15417 /* Check that off_t can represent 2**63 - 1 correctly.
15418 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15419 since some C++ compilers masquerading as C compilers
15420 incorrectly reject 9223372036854775807. */
15421 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15422 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15423 && LARGE_OFF_T % 2147483647 == 1)
15425 #ifdef F77_DUMMY_MAIN
15426 # ifdef __cplusplus
15429 int F77_DUMMY_MAIN() { return 1; }
15439 rm -f conftest.$ac_objext
15440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15441 (eval $ac_compile) 2>&5
15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444 (exit $ac_status); } &&
15445 { ac_try='test -s conftest.$ac_objext'
15446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447 (eval $ac_try) 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; }; then
15453 echo "$as_me: failed program was:" >&5
15454 cat conftest.$ac_ext >&5
15456 rm -f conftest.$ac_objext conftest.$ac_ext
15457 cat >conftest.$ac_ext <<_ACEOF
15458 #line $LINENO "configure"
15459 #include "confdefs.h"
15460 #define _LARGE_FILES 1
15461 #include <sys/types.h>
15462 /* Check that off_t can represent 2**63 - 1 correctly.
15463 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15464 since some C++ compilers masquerading as C compilers
15465 incorrectly reject 9223372036854775807. */
15466 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15467 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15468 && LARGE_OFF_T % 2147483647 == 1)
15470 #ifdef F77_DUMMY_MAIN
15471 # ifdef __cplusplus
15474 int F77_DUMMY_MAIN() { return 1; }
15484 rm -f conftest.$ac_objext
15485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15486 (eval $ac_compile) 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try='test -s conftest.$ac_objext'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
15496 ac_cv_sys_large_files=1; break
15498 echo "$as_me: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15501 rm -f conftest.$ac_objext conftest.$ac_ext
15505 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15506 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
15507 if test "$ac_cv_sys_large_files" != no; then
15509 cat >>confdefs.h <<_ACEOF
15510 #define _LARGE_FILES $ac_cv_sys_large_files
15520 # Select semaphore implementation type.
15521 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15523 cat >>confdefs.h <<\_ACEOF
15524 #define USE_NAMED_POSIX_SEMAPHORES 1
15527 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15529 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15531 cat >>confdefs.h <<\_ACEOF
15532 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15535 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15538 cat >>confdefs.h <<\_ACEOF
15539 #define USE_SYSV_SEMAPHORES 1
15542 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15547 # Select shared-memory implementation type.
15549 cat >>confdefs.h <<\_ACEOF
15550 #define USE_SYSV_SHARED_MEMORY 1
15553 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15556 if test "$enable_nls" = yes ; then
15558 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15559 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15560 if test "${ac_cv_search_gettext+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 ac_func_search_save_LIBS=$LIBS
15564 ac_cv_search_gettext=no
15565 cat >conftest.$ac_ext <<_ACEOF
15566 #line $LINENO "configure"
15567 #include "confdefs.h"
15569 /* Override any gcc2 internal prototype to avoid an error. */
15573 /* We use char because int might match the return type of a gcc2
15574 builtin and then its argument prototype would still apply. */
15576 #ifdef F77_DUMMY_MAIN
15577 # ifdef __cplusplus
15580 int F77_DUMMY_MAIN() { return 1; }
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15592 (eval $ac_link) 2>&5
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } &&
15596 { ac_try='test -s conftest$ac_exeext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_search_gettext="none required"
15604 echo "$as_me: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15608 if test "$ac_cv_search_gettext" = no; then
15609 for ac_lib in intl; do
15610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15611 cat >conftest.$ac_ext <<_ACEOF
15612 #line $LINENO "configure"
15613 #include "confdefs.h"
15615 /* Override any gcc2 internal prototype to avoid an error. */
15619 /* We use char because int might match the return type of a gcc2
15620 builtin and then its argument prototype would still apply. */
15622 #ifdef F77_DUMMY_MAIN
15623 # ifdef __cplusplus
15626 int F77_DUMMY_MAIN() { return 1; }
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15638 (eval $ac_link) 2>&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } &&
15642 { ac_try='test -s conftest$ac_exeext'
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 ac_cv_search_gettext="-l$ac_lib"
15651 echo "$as_me: failed program was:" >&5
15652 cat conftest.$ac_ext >&5
15654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15657 LIBS=$ac_func_search_save_LIBS
15659 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15660 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15661 if test "$ac_cv_search_gettext" != no; then
15662 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15665 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15666 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15667 { (exit 1); exit 1; }; }
15670 if test "${ac_cv_header_libintl_h+set}" = set; then
15671 echo "$as_me:$LINENO: checking for libintl.h" >&5
15672 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15673 if test "${ac_cv_header_libintl_h+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15677 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15679 # Is the header compilable?
15680 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15681 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15682 cat >conftest.$ac_ext <<_ACEOF
15683 #line $LINENO "configure"
15684 #include "confdefs.h"
15685 $ac_includes_default
15686 #include <libintl.h>
15688 rm -f conftest.$ac_objext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15690 (eval $ac_compile) 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -s conftest.$ac_objext'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_header_compiler=yes
15702 echo "$as_me: failed program was:" >&5
15703 cat conftest.$ac_ext >&5
15704 ac_header_compiler=no
15706 rm -f conftest.$ac_objext conftest.$ac_ext
15707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15708 echo "${ECHO_T}$ac_header_compiler" >&6
15710 # Is the header present?
15711 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15712 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15713 cat >conftest.$ac_ext <<_ACEOF
15714 #line $LINENO "configure"
15715 #include "confdefs.h"
15716 #include <libintl.h>
15718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15721 egrep -v '^ *\+' conftest.er1 >conftest.err
15723 cat conftest.err >&5
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } >/dev/null; then
15726 if test -s conftest.err; then
15727 ac_cpp_err=$ac_c_preproc_warn_flag
15734 if test -z "$ac_cpp_err"; then
15735 ac_header_preproc=yes
15737 echo "$as_me: failed program was:" >&5
15738 cat conftest.$ac_ext >&5
15739 ac_header_preproc=no
15741 rm -f conftest.err conftest.$ac_ext
15742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15743 echo "${ECHO_T}$ac_header_preproc" >&6
15745 # So? What about this header?
15746 case $ac_header_compiler:$ac_header_preproc in
15748 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15749 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15751 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15753 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15754 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15756 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15758 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15760 echo "$as_me:$LINENO: checking for libintl.h" >&5
15761 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15762 if test "${ac_cv_header_libintl_h+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 ac_cv_header_libintl_h=$ac_header_preproc
15767 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15768 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15771 if test $ac_cv_header_libintl_h = yes; then
15774 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15775 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15776 { (exit 1); exit 1; }; }
15780 for ac_prog in msgfmt
15782 # Extract the first word of "$ac_prog", so it can be a program name with args.
15783 set dummy $ac_prog; ac_word=$2
15784 echo "$as_me:$LINENO: checking for $ac_word" >&5
15785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15786 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 if test -n "$MSGFMT"; then
15790 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793 for as_dir in $PATH
15796 test -z "$as_dir" && as_dir=.
15797 for ac_exec_ext in '' $ac_executable_extensions; do
15798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799 ac_cv_prog_MSGFMT="$ac_prog"
15800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15808 MSGFMT=$ac_cv_prog_MSGFMT
15809 if test -n "$MSGFMT"; then
15810 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15811 echo "${ECHO_T}$MSGFMT" >&6
15813 echo "$as_me:$LINENO: result: no" >&5
15814 echo "${ECHO_T}no" >&6
15817 test -n "$MSGFMT" && break
15820 if test -z "$MSGFMT"; then
15821 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15822 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15823 { (exit 1); exit 1; }; }
15825 for ac_prog in msgmerge
15827 # Extract the first word of "$ac_prog", so it can be a program name with args.
15828 set dummy $ac_prog; ac_word=$2
15829 echo "$as_me:$LINENO: checking for $ac_word" >&5
15830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15831 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 if test -n "$MSGMERGE"; then
15835 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15838 for as_dir in $PATH
15841 test -z "$as_dir" && as_dir=.
15842 for ac_exec_ext in '' $ac_executable_extensions; do
15843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15844 ac_cv_prog_MSGMERGE="$ac_prog"
15845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15853 MSGMERGE=$ac_cv_prog_MSGMERGE
15854 if test -n "$MSGMERGE"; then
15855 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15856 echo "${ECHO_T}$MSGMERGE" >&6
15858 echo "$as_me:$LINENO: result: no" >&5
15859 echo "${ECHO_T}no" >&6
15862 test -n "$MSGMERGE" && break
15865 for ac_prog in xgettext
15867 # Extract the first word of "$ac_prog", so it can be a program name with args.
15868 set dummy $ac_prog; ac_word=$2
15869 echo "$as_me:$LINENO: checking for $ac_word" >&5
15870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15871 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15874 if test -n "$XGETTEXT"; then
15875 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15878 for as_dir in $PATH
15881 test -z "$as_dir" && as_dir=.
15882 for ac_exec_ext in '' $ac_executable_extensions; do
15883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15884 ac_cv_prog_XGETTEXT="$ac_prog"
15885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15893 XGETTEXT=$ac_cv_prog_XGETTEXT
15894 if test -n "$XGETTEXT"; then
15895 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15896 echo "${ECHO_T}$XGETTEXT" >&6
15898 echo "$as_me:$LINENO: result: no" >&5
15899 echo "${ECHO_T}no" >&6
15902 test -n "$XGETTEXT" && break
15906 # Note: share/locale is always the default, independent of $datadir
15907 localedir='${prefix}/share/locale'
15908 if test x"$prefix" = x"NONE"; then
15909 exp_localedir="$ac_default_prefix/share/locale"
15911 exp_localedir="$prefix/share/locale"
15916 cat >>confdefs.h <<_ACEOF
15917 #define LOCALEDIR "$exp_localedir"
15923 # Check for Tcl configuration script tclConfig.sh
15924 if test "$with_tcl" = yes; then
15925 for ac_prog in tclsh tcl
15927 # Extract the first word of "$ac_prog", so it can be a program name with args.
15928 set dummy $ac_prog; ac_word=$2
15929 echo "$as_me:$LINENO: checking for $ac_word" >&5
15930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15931 if test "${ac_cv_path_TCLSH+set}" = set; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15940 for as_dir in $PATH
15943 test -z "$as_dir" && as_dir=.
15944 for ac_exec_ext in '' $ac_executable_extensions; do
15945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15946 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15956 TCLSH=$ac_cv_path_TCLSH
15958 if test -n "$TCLSH"; then
15959 echo "$as_me:$LINENO: result: $TCLSH" >&5
15960 echo "${ECHO_T}$TCLSH" >&6
15962 echo "$as_me:$LINENO: result: no" >&5
15963 echo "${ECHO_T}no" >&6
15966 test -n "$TCLSH" && break
15969 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15970 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15971 # Let user override test
15972 if test -z "$TCL_CONFIG_SH"; then
15973 pgac_test_dirs="$with_tclconfig"
15975 set X $pgac_test_dirs; shift
15976 if test $# -eq 0; then
15977 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15978 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15979 { (exit 1); exit 1; }; }
15980 set X `echo 'puts $auto_path' | $TCLSH`; shift
15984 if test -r "$pgac_dir/tclConfig.sh"; then
15985 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15991 if test -z "$TCL_CONFIG_SH"; then
15992 echo "$as_me:$LINENO: result: no" >&5
15993 echo "${ECHO_T}no" >&6
15994 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15995 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15996 { (exit 1); exit 1; }; }
15998 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15999 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
16005 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16006 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
16007 eval TCL_LIBS=\"$TCL_LIBS\"
16008 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16009 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16013 # Check for Tk configuration script tkConfig.sh
16014 if test "$with_tk" = yes; then
16015 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
16016 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
16017 # Let user override test
16018 if test -z "$TK_CONFIG_SH"; then
16019 pgac_test_dirs="$with_tkconfig $with_tclconfig"
16021 set X $pgac_test_dirs; shift
16022 if test $# -eq 0; then
16023 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
16024 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
16025 { (exit 1); exit 1; }; }
16026 set X `echo 'puts $auto_path' | $TCLSH`; shift
16030 if test -r "$pgac_dir/tkConfig.sh"; then
16031 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
16037 if test -z "$TK_CONFIG_SH"; then
16038 echo "$as_me:$LINENO: result: no" >&5
16039 echo "${ECHO_T}no" >&6
16040 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
16041 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
16042 { (exit 1); exit 1; }; }
16044 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
16045 echo "${ECHO_T}$TK_CONFIG_SH" >&6
16051 eval TK_LIBS=\"$TK_LIBS\"
16052 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
16053 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
16059 # Check for DocBook and tools
16061 for ac_prog in onsgmls nsgmls
16063 # Extract the first word of "$ac_prog", so it can be a program name with args.
16064 set dummy $ac_prog; ac_word=$2
16065 echo "$as_me:$LINENO: checking for $ac_word" >&5
16066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16067 if test "${ac_cv_prog_NSGMLS+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 if test -n "$NSGMLS"; then
16071 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
16073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16074 for as_dir in $PATH
16077 test -z "$as_dir" && as_dir=.
16078 for ac_exec_ext in '' $ac_executable_extensions; do
16079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16080 ac_cv_prog_NSGMLS="$ac_prog"
16081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16089 NSGMLS=$ac_cv_prog_NSGMLS
16090 if test -n "$NSGMLS"; then
16091 echo "$as_me:$LINENO: result: $NSGMLS" >&5
16092 echo "${ECHO_T}$NSGMLS" >&6
16094 echo "$as_me:$LINENO: result: no" >&5
16095 echo "${ECHO_T}no" >&6
16098 test -n "$NSGMLS" && break
16101 for ac_prog in openjade jade
16103 # Extract the first word of "$ac_prog", so it can be a program name with args.
16104 set dummy $ac_prog; ac_word=$2
16105 echo "$as_me:$LINENO: checking for $ac_word" >&5
16106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16107 if test "${ac_cv_prog_JADE+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 if test -n "$JADE"; then
16111 ac_cv_prog_JADE="$JADE" # Let the user override the test.
16113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16114 for as_dir in $PATH
16117 test -z "$as_dir" && as_dir=.
16118 for ac_exec_ext in '' $ac_executable_extensions; do
16119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16120 ac_cv_prog_JADE="$ac_prog"
16121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16129 JADE=$ac_cv_prog_JADE
16130 if test -n "$JADE"; then
16131 echo "$as_me:$LINENO: result: $JADE" >&5
16132 echo "${ECHO_T}$JADE" >&6
16134 echo "$as_me:$LINENO: result: no" >&5
16135 echo "${ECHO_T}no" >&6
16138 test -n "$JADE" && break
16142 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
16143 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
16144 if test "${pgac_cv_check_docbook+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 cat >conftest.sgml <<EOF
16148 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
16150 <title>test</title>
16152 <title>random</title>
16154 <title>testsect</title>
16161 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
16162 if test $? -eq 0; then
16163 pgac_cv_check_docbook=yes
16165 pgac_cv_check_docbook=no
16167 rm -f conftest.sgml
16169 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
16170 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
16172 have_docbook=$pgac_cv_check_docbook
16175 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
16176 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
16177 if test "${pgac_cv_path_stylesheets+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16180 if test -n "$DOCBOOKSTYLE"; then
16181 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
16183 for pgac_prefix in /usr /usr/local /opt; do
16184 for pgac_infix in share lib; do
16185 for pgac_postfix in \
16186 sgml/stylesheets/nwalsh-modular \
16187 sgml/stylesheets/docbook \
16188 sgml/docbook/dsssl/modular \
16189 sgml/docbook/stylesheet/dsssl/modular \
16190 sgml/docbook/dsssl-stylesheets
16192 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
16193 if test -r "$pgac_candidate/html/docbook.dsl" \
16194 && test -r "$pgac_candidate/print/docbook.dsl"
16196 pgac_cv_path_stylesheets=$pgac_candidate
16205 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
16207 if test -n "$DOCBOOKSTYLE"; then
16208 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
16209 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
16211 echo "$as_me:$LINENO: result: no" >&5
16212 echo "${ECHO_T}no" >&6
16214 if test -n "$DOCBOOKSTYLE"; then
16215 for ac_prog in collateindex.pl
16217 # Extract the first word of "$ac_prog", so it can be a program name with args.
16218 set dummy $ac_prog; ac_word=$2
16219 echo "$as_me:$LINENO: checking for $ac_word" >&5
16220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16221 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 case $COLLATEINDEX in
16226 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16230 for as_dir in $DOCBOOKSTYLE/bin $PATH
16233 test -z "$as_dir" && as_dir=.
16234 for ac_exec_ext in '' $ac_executable_extensions; do
16235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16236 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16246 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16248 if test -n "$COLLATEINDEX"; then
16249 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16250 echo "${ECHO_T}$COLLATEINDEX" >&6
16252 echo "$as_me:$LINENO: result: no" >&5
16253 echo "${ECHO_T}no" >&6
16256 test -n "$COLLATEINDEX" && break
16260 for ac_prog in collateindex.pl
16262 # Extract the first word of "$ac_prog", so it can be a program name with args.
16263 set dummy $ac_prog; ac_word=$2
16264 echo "$as_me:$LINENO: checking for $ac_word" >&5
16265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16266 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16269 case $COLLATEINDEX in
16271 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
16274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16275 for as_dir in $PATH
16278 test -z "$as_dir" && as_dir=.
16279 for ac_exec_ext in '' $ac_executable_extensions; do
16280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16281 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
16282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16291 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
16293 if test -n "$COLLATEINDEX"; then
16294 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
16295 echo "${ECHO_T}$COLLATEINDEX" >&6
16297 echo "$as_me:$LINENO: result: no" >&5
16298 echo "${ECHO_T}no" >&6
16301 test -n "$COLLATEINDEX" && break
16305 for ac_prog in sgmlspl
16307 # Extract the first word of "$ac_prog", so it can be a program name with args.
16308 set dummy $ac_prog; ac_word=$2
16309 echo "$as_me:$LINENO: checking for $ac_word" >&5
16310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16311 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 if test -n "$SGMLSPL"; then
16315 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
16317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16318 for as_dir in $PATH
16321 test -z "$as_dir" && as_dir=.
16322 for ac_exec_ext in '' $ac_executable_extensions; do
16323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16324 ac_cv_prog_SGMLSPL="$ac_prog"
16325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16333 SGMLSPL=$ac_cv_prog_SGMLSPL
16334 if test -n "$SGMLSPL"; then
16335 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
16336 echo "${ECHO_T}$SGMLSPL" >&6
16338 echo "$as_me:$LINENO: result: no" >&5
16339 echo "${ECHO_T}no" >&6
16342 test -n "$SGMLSPL" && break
16347 # prepare build tree if outside source tree
16348 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16349 # Note 2: /bin/pwd might be better than shell's built-in at getting
16350 # a symlink-free name.
16351 if test "$no_create" != yes; then
16352 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16357 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
16358 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16359 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16360 || { { echo "$as_me:$LINENO: error: failed" >&5
16361 echo "$as_me: error: failed" >&2;}
16362 { (exit 1); exit 1; }; }
16363 echo "$as_me:$LINENO: result: done" >&5
16364 echo "${ECHO_T}done" >&6
16369 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16372 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}"
16375 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16378 cat >confcache <<\_ACEOF
16379 # This file is a shell script that caches the results of configure
16380 # tests run on this system so they can be shared between configure
16381 # scripts and configure runs, see configure's option --config-cache.
16382 # It is not useful on other systems. If it contains results you don't
16383 # want to keep, you may remove or edit it.
16385 # config.status only pays attention to the cache file if you give it
16386 # the --recheck option to rerun configure.
16388 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16389 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16390 # following values.
16394 # The following way of writing the cache mishandles newlines in values,
16395 # but we know of no workaround that is simple, portable, and efficient.
16396 # So, don't put newlines in cache variables' values.
16397 # Ultrix sh set writes to stderr and can't be redirected directly,
16398 # and sets the high bit in the cache file unless we assign to the vars.
16401 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16403 # `set' does not quote correctly, so add quotes (double-quote
16404 # substitution turns \\\\ into \\, and sed turns \\ into \).
16407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16410 # `set' quotes correctly as required by POSIX, so do not add quotes.
16412 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16419 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16421 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16423 if cmp -s $cache_file confcache; then :; else
16424 if test -w $cache_file; then
16425 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16426 cat confcache >$cache_file
16428 echo "not updating unwritable cache $cache_file"
16433 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16434 # Let make expand exec_prefix.
16435 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16437 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16438 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16439 # trailing colons and then remove the whole line if VPATH becomes empty
16440 # (actually we leave an empty line to preserve line numbers).
16441 if test "x$srcdir" = x.; then
16442 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16443 s/:*\$(srcdir):*/:/;
16444 s/:*\${srcdir}:*/:/;
16446 s/^\([^=]*=[ ]*\):*/\1/;
16452 DEFS=-DHAVE_CONFIG_H
16455 : ${CONFIG_STATUS=./config.status}
16456 ac_clean_files_save=$ac_clean_files
16457 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16458 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16459 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16460 cat >$CONFIG_STATUS <<_ACEOF
16462 # Generated by $as_me.
16463 # Run this file to recreate the current configuration.
16464 # Compiler output produced by configure, useful for debugging
16465 # configure, is in config.log if it exists.
16468 SHELL=\${CONFIG_SHELL-$SHELL}
16471 cat >>$CONFIG_STATUS <<\_ACEOF
16473 ## --------------------- ##
16474 ## M4sh Initialization. ##
16475 ## --------------------- ##
16477 # Be Bourne compatible
16478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16481 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16486 # Support unset when possible.
16487 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16493 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16494 { $as_unset LANG || test "${LANG+set}" != set; } ||
16495 { LANG=C; export LANG; }
16496 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16497 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16498 { LC_ALL=C; export LC_ALL; }
16499 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16500 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16501 { LC_TIME=C; export LC_TIME; }
16502 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16503 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16504 { LC_CTYPE=C; export LC_CTYPE; }
16505 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16506 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16507 { LANGUAGE=C; export LANGUAGE; }
16508 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16509 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16510 { LC_COLLATE=C; export LC_COLLATE; }
16511 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16512 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16513 { LC_NUMERIC=C; export LC_NUMERIC; }
16514 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16515 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16516 { LC_MESSAGES=C; export LC_MESSAGES; }
16519 # Name of the executable.
16520 as_me=`(basename "$0") 2>/dev/null ||
16521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16522 X"$0" : 'X\(//\)$' \| \
16523 X"$0" : 'X\(/\)$' \| \
16524 . : '\(.\)' 2>/dev/null ||
16526 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16527 /^X\/\(\/\/\)$/{ s//\1/; q; }
16528 /^X\/\(\/\).*/{ s//\1/; q; }
16531 # PATH needs CR, and LINENO needs CR and PATH.
16532 # Avoid depending upon Character Ranges.
16533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16536 as_cr_digits='0123456789'
16537 as_cr_alnum=$as_cr_Letters$as_cr_digits
16539 # The user is always right.
16540 if test "${PATH_SEPARATOR+set}" != set; then
16541 echo "#! /bin/sh" >conftest.sh
16542 echo "exit 0" >>conftest.sh
16543 chmod +x conftest.sh
16544 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16553 as_lineno_1=$LINENO
16554 as_lineno_2=$LINENO
16555 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16556 test "x$as_lineno_1" != "x$as_lineno_2" &&
16557 test "x$as_lineno_3" = "x$as_lineno_2" || {
16558 # Find who we are. Look in the path if we contain no path at all
16561 *[\\/]* ) as_myself=$0 ;;
16562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16563 for as_dir in $PATH
16566 test -z "$as_dir" && as_dir=.
16567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16572 # We did not find ourselves, most probably we were run as `sh COMMAND'
16573 # in which case we are not to be found in the path.
16574 if test "x$as_myself" = x; then
16577 if test ! -f "$as_myself"; then
16578 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16579 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16580 { (exit 1); exit 1; }; }
16582 case $CONFIG_SHELL in
16584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16585 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16588 test -z "$as_dir" && as_dir=.
16589 for as_base in sh bash ksh sh5; do
16592 if ("$as_dir/$as_base" -c '
16593 as_lineno_1=$LINENO
16594 as_lineno_2=$LINENO
16595 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16596 test "x$as_lineno_1" != "x$as_lineno_2" &&
16597 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16598 CONFIG_SHELL=$as_dir/$as_base
16599 export CONFIG_SHELL
16600 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16608 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16609 # uniformly replaced by the line number. The first 'sed' inserts a
16610 # line-number line before each line; the second 'sed' does the real
16611 # work. The second script uses 'N' to pair each line-number line
16612 # with the numbered line, and appends trailing '-' during
16613 # substitution so that $LINENO is not a special case at line end.
16614 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16615 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16616 sed '=' <$as_myself |
16621 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16624 s,^['$as_cr_digits']*\n,,
16625 ' >$as_me.lineno &&
16626 chmod +x $as_me.lineno ||
16627 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16628 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16629 { (exit 1); exit 1; }; }
16631 # Don't try to exec as it changes $[0], causing all sort of problems
16632 # (the dirname of $[0] is not the place where we might find the
16633 # original and so on. Autoconf is especially sensible to this).
16635 # Exit status is that of the last command.
16640 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16641 *c*,-n*) ECHO_N= ECHO_C='
16643 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16644 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16647 if expr a : '\(a\)' >/dev/null 2>&1; then
16653 rm -f conf$$ conf$$.exe conf$$.file
16655 if ln -s conf$$.file conf$$ 2>/dev/null; then
16656 # We could just check for DJGPP; but this test a) works b) is more generic
16657 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16658 if test -f conf$$.exe; then
16659 # Don't use ln at all; we don't have any links
16664 elif ln conf$$.file conf$$ 2>/dev/null; then
16669 rm -f conf$$ conf$$.exe conf$$.file
16671 as_executable_p="test -f"
16673 # Sed expression to map a string onto a valid CPP name.
16674 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16676 # Sed expression to map a string onto a valid variable name.
16677 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16681 # We need space, tab and new line, in precisely that order.
16687 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16691 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16692 # report actual input values of CONFIG_FILES etc. instead of their
16693 # values after options handling. Logging --version etc. is OK.
16697 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16698 ## Running $as_me. ##
16703 This file was extended by PostgreSQL $as_me 7.4devel, which was
16704 generated by GNU Autoconf 2.53. Invocation command line was
16706 CONFIG_FILES = $CONFIG_FILES
16707 CONFIG_HEADERS = $CONFIG_HEADERS
16708 CONFIG_LINKS = $CONFIG_LINKS
16709 CONFIG_COMMANDS = $CONFIG_COMMANDS
16713 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16717 # Files that config.status was made for.
16718 if test -n "$ac_config_files"; then
16719 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16722 if test -n "$ac_config_headers"; then
16723 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16726 if test -n "$ac_config_links"; then
16727 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16730 if test -n "$ac_config_commands"; then
16731 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16734 cat >>$CONFIG_STATUS <<\_ACEOF
16737 \`$as_me' instantiates files from templates according to the
16738 current configuration.
16740 Usage: $0 [OPTIONS] [FILE]...
16742 -h, --help print this help, then exit
16743 -V, --version print version number, then exit
16744 -d, --debug don't remove temporary files
16745 --recheck update $as_me by reconfiguring in the same conditions
16746 --file=FILE[:TEMPLATE]
16747 instantiate the configuration file FILE
16748 --header=FILE[:TEMPLATE]
16749 instantiate the configuration header FILE
16751 Configuration files:
16754 Configuration headers:
16757 Configuration links:
16760 Report bugs to <bug-autoconf@gnu.org>."
16763 cat >>$CONFIG_STATUS <<_ACEOF
16765 PostgreSQL config.status 7.4devel
16766 configured by $0, generated by GNU Autoconf 2.53,
16767 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16769 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16770 Free Software Foundation, Inc.
16771 This config.status script is free software; the Free Software Foundation
16772 gives unlimited permission to copy, distribute and modify it."
16776 cat >>$CONFIG_STATUS <<\_ACEOF
16777 # If no file are specified by the user, then we need to provide default
16778 # value. By we need to know if files were specified by the user.
16784 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16785 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16787 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16791 *) # This is not an option, so the user has probably given explicit
16793 ac_need_defaults=false;;
16797 # Handling of the options.
16799 cat >>$CONFIG_STATUS <<_ACEOF
16800 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16801 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16802 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16804 cat >>$CONFIG_STATUS <<\_ACEOF
16805 --version | --vers* | -V )
16806 echo "$ac_cs_version"; exit 0 ;;
16808 # Conflict between --help and --header
16809 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16810 Try \`$0 --help' for more information." >&5
16811 echo "$as_me: error: ambiguous option: $1
16812 Try \`$0 --help' for more information." >&2;}
16813 { (exit 1); exit 1; }; };;
16814 --help | --hel | -h )
16815 echo "$ac_cs_usage"; exit 0 ;;
16816 --debug | --d* | -d )
16818 --file | --fil | --fi | --f )
16820 CONFIG_FILES="$CONFIG_FILES $1"
16821 ac_need_defaults=false;;
16822 --header | --heade | --head | --hea )
16824 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16825 ac_need_defaults=false;;
16827 # This is an error.
16828 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16829 Try \`$0 --help' for more information." >&5
16830 echo "$as_me: error: unrecognized option: $1
16831 Try \`$0 --help' for more information." >&2;}
16832 { (exit 1); exit 1; }; } ;;
16834 *) ac_config_targets="$ac_config_targets $1" ;;
16846 cat >>$CONFIG_STATUS <<\_ACEOF
16847 for ac_config_target in $ac_config_targets
16849 case "$ac_config_target" in
16850 # Handling of arguments.
16851 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16852 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16853 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16854 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16855 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16856 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16857 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16858 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16859 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16860 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16861 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16862 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16863 { (exit 1); exit 1; }; };;
16867 # If the user did not use the arguments to specify the items to instantiate,
16868 # then the envvar interface is used. Set only those that are not.
16869 # We use the long form for the default assignment because of an extremely
16870 # bizarre bug on SunOS 4.1.3.
16871 if $ac_need_defaults; then
16872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16873 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16874 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16877 # Create a temporary directory, and hook for its removal unless debugging.
16880 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16881 trap '{ (exit 1); exit 1; }' 1 2 13 15
16884 # Create a (secure) tmp directory for tmp files.
16887 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16888 test -n "$tmp" && test -d "$tmp"
16891 tmp=$TMPDIR/cs$$-$RANDOM
16892 (umask 077 && mkdir $tmp)
16895 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16896 { (exit 1); exit 1; }
16901 cat >>$CONFIG_STATUS <<_ACEOF
16904 # CONFIG_FILES section.
16907 # No need to generate the scripts if there are no CONFIG_FILES.
16908 # This happens for instance when ./config.status config.h
16909 if test -n "\$CONFIG_FILES"; then
16910 # Protect against being on the right side of a sed subst in config.status.
16911 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16912 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16913 s,@SHELL@,$SHELL,;t t
16914 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16915 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16916 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16917 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16918 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16919 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16920 s,@exec_prefix@,$exec_prefix,;t t
16921 s,@prefix@,$prefix,;t t
16922 s,@program_transform_name@,$program_transform_name,;t t
16923 s,@bindir@,$bindir,;t t
16924 s,@sbindir@,$sbindir,;t t
16925 s,@libexecdir@,$libexecdir,;t t
16926 s,@datadir@,$datadir,;t t
16927 s,@sysconfdir@,$sysconfdir,;t t
16928 s,@sharedstatedir@,$sharedstatedir,;t t
16929 s,@localstatedir@,$localstatedir,;t t
16930 s,@libdir@,$libdir,;t t
16931 s,@includedir@,$includedir,;t t
16932 s,@oldincludedir@,$oldincludedir,;t t
16933 s,@infodir@,$infodir,;t t
16934 s,@mandir@,$mandir,;t t
16935 s,@build_alias@,$build_alias,;t t
16936 s,@host_alias@,$host_alias,;t t
16937 s,@target_alias@,$target_alias,;t t
16938 s,@DEFS@,$DEFS,;t t
16939 s,@ECHO_C@,$ECHO_C,;t t
16940 s,@ECHO_N@,$ECHO_N,;t t
16941 s,@ECHO_T@,$ECHO_T,;t t
16942 s,@LIBS@,$LIBS,;t t
16943 s,@docdir@,$docdir,;t t
16944 s,@configure_args@,$configure_args,;t t
16945 s,@build@,$build,;t t
16946 s,@build_cpu@,$build_cpu,;t t
16947 s,@build_vendor@,$build_vendor,;t t
16948 s,@build_os@,$build_os,;t t
16949 s,@host@,$host,;t t
16950 s,@host_cpu@,$host_cpu,;t t
16951 s,@host_vendor@,$host_vendor,;t t
16952 s,@host_os@,$host_os,;t t
16953 s,@PORTNAME@,$PORTNAME,;t t
16955 s,@enable_nls@,$enable_nls,;t t
16956 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16957 s,@default_port@,$default_port,;t t
16958 s,@enable_shared@,$enable_shared,;t t
16959 s,@enable_rpath@,$enable_rpath,;t t
16960 s,@enable_debug@,$enable_debug,;t t
16962 s,@CFLAGS@,$CFLAGS,;t t
16963 s,@LDFLAGS@,$LDFLAGS,;t t
16964 s,@CPPFLAGS@,$CPPFLAGS,;t t
16965 s,@ac_ct_CC@,$ac_ct_CC,;t t
16966 s,@EXEEXT@,$EXEEXT,;t t
16967 s,@OBJEXT@,$OBJEXT,;t t
16970 s,@autodepend@,$autodepend,;t t
16971 s,@INCLUDES@,$INCLUDES,;t t
16972 s,@with_tcl@,$with_tcl,;t t
16973 s,@with_tk@,$with_tk,;t t
16974 s,@with_perl@,$with_perl,;t t
16975 s,@with_python@,$with_python,;t t
16977 s,@with_java@,$with_java,;t t
16978 s,@with_krb4@,$with_krb4,;t t
16979 s,@with_krb5@,$with_krb5,;t t
16980 s,@krb_srvtab@,$krb_srvtab,;t t
16981 s,@with_pam@,$with_pam,;t t
16982 s,@with_openssl@,$with_openssl,;t t
16983 s,@ELF_SYS@,$ELF_SYS,;t t
16985 s,@FLEX@,$FLEX,;t t
16986 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16987 s,@LN_S@,$LN_S,;t t
16989 s,@with_gnu_ld@,$with_gnu_ld,;t t
16990 s,@ld_R_works@,$ld_R_works,;t t
16991 s,@RANLIB@,$RANLIB,;t t
16992 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16993 s,@LORDER@,$LORDER,;t t
16995 s,@STRIP@,$STRIP,;t t
16996 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16997 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16998 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16999 s,@YACC@,$YACC,;t t
17000 s,@YFLAGS@,$YFLAGS,;t t
17001 s,@PERL@,$PERL,;t t
17002 s,@perl_archlibexp@,$perl_archlibexp,;t t
17003 s,@perl_privlibexp@,$perl_privlibexp,;t t
17004 s,@perl_useshrplib@,$perl_useshrplib,;t t
17005 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
17006 s,@PYTHON@,$PYTHON,;t t
17007 s,@python_version@,$python_version,;t t
17008 s,@python_prefix@,$python_prefix,;t t
17009 s,@python_execprefix@,$python_execprefix,;t t
17010 s,@python_configdir@,$python_configdir,;t t
17011 s,@python_moduledir@,$python_moduledir,;t t
17012 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
17013 s,@python_includespec@,$python_includespec,;t t
17014 s,@python_libspec@,$python_libspec,;t t
17015 s,@LIBOBJS@,$LIBOBJS,;t t
17016 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
17017 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
17018 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
17019 s,@MSGFMT@,$MSGFMT,;t t
17020 s,@MSGMERGE@,$MSGMERGE,;t t
17021 s,@XGETTEXT@,$XGETTEXT,;t t
17022 s,@localedir@,$localedir,;t t
17023 s,@TCLSH@,$TCLSH,;t t
17024 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
17025 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
17026 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
17027 s,@TCL_LIBS@,$TCL_LIBS,;t t
17028 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
17029 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
17030 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
17031 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
17032 s,@TK_LIBS@,$TK_LIBS,;t t
17033 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
17034 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
17035 s,@NSGMLS@,$NSGMLS,;t t
17036 s,@JADE@,$JADE,;t t
17037 s,@have_docbook@,$have_docbook,;t t
17038 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
17039 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
17040 s,@SGMLSPL@,$SGMLSPL,;t t
17041 s,@vpath_build@,$vpath_build,;t t
17046 cat >>$CONFIG_STATUS <<\_ACEOF
17047 # Split the substitutions into bite-sized pieces for seds with
17048 # small command number limits, like on Digital OSF/1 and HP-UX.
17049 ac_max_sed_lines=48
17050 ac_sed_frag=1 # Number of current file.
17051 ac_beg=1 # First line for current file.
17052 ac_end=$ac_max_sed_lines # Line after last line for current file.
17055 while $ac_more_lines; do
17056 if test $ac_beg -gt 1; then
17057 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17059 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17061 if test ! -s $tmp/subs.frag; then
17062 ac_more_lines=false
17064 # The purpose of the label and of the branching condition is to
17065 # speed up the sed processing (if there are no `@' at all, there
17066 # is no need to browse any of the substitutions).
17067 # These are the two extra sed commands mentioned above.
17069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17070 if test -z "$ac_sed_cmds"; then
17071 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17073 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17075 ac_sed_frag=`expr $ac_sed_frag + 1`
17077 ac_end=`expr $ac_end + $ac_max_sed_lines`
17080 if test -z "$ac_sed_cmds"; then
17083 fi # test -n "$CONFIG_FILES"
17086 cat >>$CONFIG_STATUS <<\_ACEOF
17087 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17088 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17090 - | *:- | *:-:* ) # input from stdin
17092 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17093 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17094 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17095 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17096 * ) ac_file_in=$ac_file.in ;;
17099 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17100 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17102 X"$ac_file" : 'X\(//\)[^/]' \| \
17103 X"$ac_file" : 'X\(//\)$' \| \
17104 X"$ac_file" : 'X\(/\)' \| \
17105 . : '\(.\)' 2>/dev/null ||
17107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17109 /^X\(\/\/\)$/{ s//\1/; q; }
17110 /^X\(\/\).*/{ s//\1/; q; }
17112 { case "$ac_dir" in
17113 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17117 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17118 case $as_mkdir_dir in
17119 # Skip DOS drivespec
17120 ?:) as_incr_dir=$as_mkdir_dir ;;
17122 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17123 test -d "$as_incr_dir" ||
17124 mkdir "$as_incr_dir" ||
17125 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17126 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17127 { (exit 1); exit 1; }; }
17134 if test "$ac_dir" != .; then
17135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17136 # A "../" for each directory in $ac_dir_suffix.
17137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17139 ac_dir_suffix= ac_top_builddir=
17143 .) # No --srcdir option. We are building in place.
17145 if test -z "$ac_top_builddir"; then
17148 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17150 [\\/]* | ?:[\\/]* ) # Absolute path.
17151 ac_srcdir=$srcdir$ac_dir_suffix;
17152 ac_top_srcdir=$srcdir ;;
17153 *) # Relative path.
17154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17157 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17159 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17160 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17161 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17162 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17166 if test x"$ac_file" != x-; then
17167 { echo "$as_me:$LINENO: creating $ac_file" >&5
17168 echo "$as_me: creating $ac_file" >&6;}
17171 # Let's still pretend it is `configure' which instantiates (i.e., don't
17172 # use $as_me), people would be surprised to read:
17173 # /* config.h. Generated by config.status. */
17174 if test x"$ac_file" = x-; then
17177 configure_input="$ac_file. "
17179 configure_input=$configure_input"Generated from `echo $ac_file_in |
17180 sed 's,.*/,,'` by configure."
17182 # First look for the input files in the build tree, otherwise in the
17184 ac_file_inputs=`IFS=:
17185 for f in $ac_file_in; do
17187 -) echo $tmp/stdin ;;
17189 # Absolute (can't be DOS-style, as IFS=:)
17190 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17191 echo "$as_me: error: cannot find input file: $f" >&2;}
17192 { (exit 1); exit 1; }; }
17195 if test -f "$f"; then
17198 elif test -f "$srcdir/$f"; then
17203 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17204 echo "$as_me: error: cannot find input file: $f" >&2;}
17205 { (exit 1); exit 1; }; }
17208 done` || { (exit 1); exit 1; }
17210 cat >>$CONFIG_STATUS <<_ACEOF
17214 cat >>$CONFIG_STATUS <<\_ACEOF
17216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17217 s,@configure_input@,$configure_input,;t t
17218 s,@srcdir@,$ac_srcdir,;t t
17219 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17220 s,@top_srcdir@,$ac_top_srcdir,;t t
17221 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17222 s,@builddir@,$ac_builddir,;t t
17223 s,@abs_builddir@,$ac_abs_builddir,;t t
17224 s,@top_builddir@,$ac_top_builddir,;t t
17225 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17226 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17228 if test x"$ac_file" != x-; then
17229 mv $tmp/out $ac_file
17237 cat >>$CONFIG_STATUS <<\_ACEOF
17240 # CONFIG_HEADER section.
17243 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17244 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17246 # ac_d sets the value in "#define NAME VALUE" lines.
17247 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17248 ac_dB='[ ].*$,\1#\2'
17251 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17252 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17253 ac_uB='$,\1#\2define\3'
17257 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17260 - | *:- | *:-:* ) # input from stdin
17262 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17263 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17264 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17266 * ) ac_file_in=$ac_file.in ;;
17269 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17270 echo "$as_me: creating $ac_file" >&6;}
17272 # First look for the input files in the build tree, otherwise in the
17274 ac_file_inputs=`IFS=:
17275 for f in $ac_file_in; do
17277 -) echo $tmp/stdin ;;
17279 # Absolute (can't be DOS-style, as IFS=:)
17280 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17281 echo "$as_me: error: cannot find input file: $f" >&2;}
17282 { (exit 1); exit 1; }; }
17285 if test -f "$f"; then
17288 elif test -f "$srcdir/$f"; then
17293 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17294 echo "$as_me: error: cannot find input file: $f" >&2;}
17295 { (exit 1); exit 1; }; }
17298 done` || { (exit 1); exit 1; }
17299 # Remove the trailing spaces.
17300 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17304 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17305 # `conftest.undefs', that substitutes the proper values into
17306 # config.h.in to produce config.h. The first handles `#define'
17307 # templates, and the second `#undef' templates.
17308 # And first: Protect against being on the right side of a sed subst in
17309 # config.status. Protect against being in an unquoted here document
17310 # in config.status.
17311 rm -f conftest.defines conftest.undefs
17312 # Using a here document instead of a string reduces the quoting nightmare.
17313 # Putting comments in sed scripts is not portable.
17315 # `end' is used to avoid that the second main sed command (meant for
17316 # 0-ary CPP macros) applies to n-ary macro definitions.
17317 # See the Autoconf documentation for `clear'.
17318 cat >confdef2sed.sed <<\_ACEOF
17323 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17325 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17328 # If some macros were called several times there might be several times
17329 # the same #defines, which is useless. Nevertheless, we may not want to
17330 # sort them, since we want the *last* AC-DEFINE to be honored.
17331 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17332 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17333 rm -f confdef2sed.sed
17335 # This sed command replaces #undef with comments. This is necessary, for
17336 # example, in the case of _POSIX_SOURCE, which is predefined and required
17337 # on some systems where configure will not decide to define it.
17338 cat >>conftest.undefs <<\_ACEOF
17339 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17342 # Break up conftest.defines because some shells have a limit on the size
17343 # of here documents, and old seds have small limits too (100 cmds).
17344 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17345 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17346 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17347 echo ' :' >>$CONFIG_STATUS
17348 rm -f conftest.tail
17349 while grep . conftest.defines >/dev/null
17351 # Write a limited-size here document to $tmp/defines.sed.
17352 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17353 # Speed up: don't consider the non `#define' lines.
17354 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17355 # Work around the forget-to-reset-the-flag bug.
17356 echo 't clr' >>$CONFIG_STATUS
17357 echo ': clr' >>$CONFIG_STATUS
17358 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17360 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17362 mv $tmp/out $tmp/in
17364 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17365 rm -f conftest.defines
17366 mv conftest.tail conftest.defines
17368 rm -f conftest.defines
17369 echo ' fi # egrep' >>$CONFIG_STATUS
17370 echo >>$CONFIG_STATUS
17372 # Break up conftest.undefs because some shells have a limit on the size
17373 # of here documents, and old seds have small limits too (100 cmds).
17374 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17375 rm -f conftest.tail
17376 while grep . conftest.undefs >/dev/null
17378 # Write a limited-size here document to $tmp/undefs.sed.
17379 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17380 # Speed up: don't consider the non `#undef'
17381 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17382 # Work around the forget-to-reset-the-flag bug.
17383 echo 't clr' >>$CONFIG_STATUS
17384 echo ': clr' >>$CONFIG_STATUS
17385 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17387 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17389 mv $tmp/out $tmp/in
17391 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17392 rm -f conftest.undefs
17393 mv conftest.tail conftest.undefs
17395 rm -f conftest.undefs
17397 cat >>$CONFIG_STATUS <<\_ACEOF
17398 # Let's still pretend it is `configure' which instantiates (i.e., don't
17399 # use $as_me), people would be surprised to read:
17400 # /* config.h. Generated by config.status. */
17401 if test x"$ac_file" = x-; then
17402 echo "/* Generated by configure. */" >$tmp/config.h
17404 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17406 cat $tmp/in >>$tmp/config.h
17408 if test x"$ac_file" != x-; then
17409 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17410 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17411 echo "$as_me: $ac_file is unchanged" >&6;}
17413 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17415 X"$ac_file" : 'X\(//\)[^/]' \| \
17416 X"$ac_file" : 'X\(//\)$' \| \
17417 X"$ac_file" : 'X\(/\)' \| \
17418 . : '\(.\)' 2>/dev/null ||
17420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17422 /^X\(\/\/\)$/{ s//\1/; q; }
17423 /^X\(\/\).*/{ s//\1/; q; }
17425 { case "$ac_dir" in
17426 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17430 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17431 case $as_mkdir_dir in
17432 # Skip DOS drivespec
17433 ?:) as_incr_dir=$as_mkdir_dir ;;
17435 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17436 test -d "$as_incr_dir" ||
17437 mkdir "$as_incr_dir" ||
17438 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17439 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17440 { (exit 1); exit 1; }; }
17446 mv $tmp/config.h $ac_file
17450 rm -f $tmp/config.h
17452 # Run the commands associated with the file.
17454 src/include/pg_config.h )
17455 # Update timestamp for pg_config.h (see Makefile.global)
17456 echo >src/include/stamp-h
17461 cat >>$CONFIG_STATUS <<\_ACEOF
17464 # CONFIG_LINKS section.
17467 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17468 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17469 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17471 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17472 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17474 if test ! -r $srcdir/$ac_source; then
17475 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17476 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17477 { (exit 1); exit 1; }; }
17481 # Make relative symlinks.
17482 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17483 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17484 X"$ac_dest" : 'X\(//\)[^/]' \| \
17485 X"$ac_dest" : 'X\(//\)$' \| \
17486 X"$ac_dest" : 'X\(/\)' \| \
17487 . : '\(.\)' 2>/dev/null ||
17489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17491 /^X\(\/\/\)$/{ s//\1/; q; }
17492 /^X\(\/\).*/{ s//\1/; q; }
17494 { case "$ac_dest_dir" in
17495 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17498 as_dummy="$ac_dest_dir"
17499 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17500 case $as_mkdir_dir in
17501 # Skip DOS drivespec
17502 ?:) as_incr_dir=$as_mkdir_dir ;;
17504 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17505 test -d "$as_incr_dir" ||
17506 mkdir "$as_incr_dir" ||
17507 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
17508 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
17509 { (exit 1); exit 1; }; }
17516 if test "$ac_dest_dir" != .; then
17517 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17518 # A "../" for each directory in $ac_dir_suffix.
17519 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17521 ac_dir_suffix= ac_top_builddir=
17525 .) # No --srcdir option. We are building in place.
17527 if test -z "$ac_top_builddir"; then
17530 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17532 [\\/]* | ?:[\\/]* ) # Absolute path.
17533 ac_srcdir=$srcdir$ac_dir_suffix;
17534 ac_top_srcdir=$srcdir ;;
17535 *) # Relative path.
17536 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17537 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17539 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17541 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17542 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17543 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17544 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17548 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17549 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17552 # Make a symlink if possible; otherwise try a hard link.
17553 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17554 ln $srcdir/$ac_source $ac_dest ||
17555 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17556 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17557 { (exit 1); exit 1; }; }
17561 cat >>$CONFIG_STATUS <<\_ACEOF
17563 { (exit 0); exit 0; }
17565 chmod +x $CONFIG_STATUS
17566 ac_clean_files=$ac_clean_files_save
17569 # configure is writing to config.log, and then calls config.status.
17570 # config.status does its own redirection, appending to config.log.
17571 # Unfortunately, on DOS this fails, as config.log is still kept open
17572 # by configure, so config.status won't be able to write to it; its
17573 # output is simply discarded. So we exec the FD to /dev/null,
17574 # effectively closing config.log, so it can be properly (re)opened and
17575 # appended to by config.status. When coming back to configure, we
17576 # need to make the FD available again.
17577 if test "$no_create" != yes; then
17580 $SHELL $CONFIG_STATUS || ac_cs_success=false
17582 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17583 # would make configure fail if this is the last instruction.
17584 $ac_cs_success || { (exit 1); exit 1; }