2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 8.0.0beta1.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2003 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='8.0.0beta1'
262 PACKAGE_STRING='PostgreSQL 8.0.0beta1'
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 infodir='${prefix}/info'
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 -infodir | --infodir | --infodi | --infod | --info | --inf)
441 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442 infodir=$ac_optarg ;;
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 infodir 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 8.0.0beta1 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 8.0.0beta1:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-nls[=LANGUAGES] enable Native Language Support
842 --disable-shared do not build shared libraries
843 --disable-rpath do not embed shared library search path in executables
844 --disable-spinlocks do not use spinlocks
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 --enable-thread-safety make client libraries thread-safe
849 --enable-thread-safety-force force thread-safety in spite of thread test failure
850 --disable-largefile omit support for large files
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
857 --without-docdir do not install the documentation
858 --with-includes=DIRS look for additional header files in DIRS
859 --with-libraries=DIRS look for additional libraries in DIRS
860 --with-libs=DIRS alternative spelling of --with-libraries
861 --with-pgport=PORTNUM change default port number 5432
862 --with-tcl build Tcl and Tk interfaces
863 --with-tclconfig=DIR tclConfig.sh is in DIR
864 --with-perl build Perl modules (PL/Perl)
865 --with-python build Python modules (PL/Python)
866 --with-krb4 build with Kerberos 4 support
867 --with-krb5 build with Kerberos 5 support
868 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]
869 --with-pam build with PAM support
870 --with-rendezvous build with Rendezvous support
871 --with-openssl build with OpenSSL support
872 --without-readline do not use Readline
873 --without-zlib do not use Zlib
874 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 location of DocBook stylesheets
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 Report bugs to <pgsql-bugs@postgresql.org>.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
953 PostgreSQL configure 8.0.0beta1
954 generated by GNU Autoconf 2.53
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
961 Copyright 2003 PostgreSQL Global Development Group
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by PostgreSQL $as_me 8.0.0beta1, which was
971 generated by GNU Autoconf 2.53. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n ) continue ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 case " $ac_configure_args " in
1038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1039 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log. We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1060 # The following way of writing the cache mishandles newlines in values,
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076 if test -s confdefs.h; then
1083 sed "/^$/d" confdefs.h
1086 test "$ac_signal" != 0 &&
1087 echo "$as_me: caught signal $ac_signal"
1088 echo "$as_me: exit $exit_status"
1090 rm -f core core.* *.core &&
1091 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094 for ac_signal in 1 2 13 15; do
1095 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 # Predefined preprocessor variables.
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134 if test "x$prefix" != xNONE; then
1135 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140 for ac_site_file in $CONFIG_SITE; do
1141 if test -r "$ac_site_file"; then
1142 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144 sed 's/^/| /' "$ac_site_file" >&5
1149 if test -r "$cache_file"; then
1150 # Some versions of bash will fail to source /dev/null (special
1151 # files actually), so we avoid doing that.
1152 if test -f "$cache_file"; then
1153 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1156 [\\/]* | ?:[\\/]* ) . $cache_file;;
1157 *) . ./$cache_file;;
1161 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1166 # Check that the precious variables saved in the cache have kept the same
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172 eval ac_new_set=\$ac_env_${ac_var}_set
1173 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174 eval ac_new_val="\$ac_env_${ac_var}_value"
1175 case $ac_old_set,$ac_new_set in
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1186 if test "x$ac_old_val" != "x$ac_new_val"; then
1187 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1190 echo "$as_me: former value: $ac_old_val" >&2;}
1191 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1192 echo "$as_me: current value: $ac_new_val" >&2;}
1193 ac_cache_corrupted=:
1196 # Pass precious variables to config.status.
1197 if test "$ac_new_set" = set; then
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 *) ac_arg=$ac_var=$ac_new_val ;;
1203 case " $ac_configure_args " in
1204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1205 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1209 if $ac_cache_corrupted; then
1210 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214 { (exit 1); exit 1; }; }
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1253 for ac_dir in config $srcdir/config; do
1254 if test -f $ac_dir/install-sh; then
1256 ac_install_sh="$ac_aux_dir/install-sh -c"
1258 elif test -f $ac_dir/install.sh; then
1260 ac_install_sh="$ac_aux_dir/install.sh -c"
1262 elif test -f $ac_dir/shtool; then
1264 ac_install_sh="$ac_aux_dir/shtool install -c"
1268 if test -z "$ac_aux_dir"; then
1269 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1270 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1271 { (exit 1); exit 1; }; }
1273 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1274 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1275 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278 configure_args=$ac_configure_args
1282 cat >>confdefs.h <<_ACEOF
1283 #define PG_VERSION "$PACKAGE_VERSION"
1287 # Make sure we can run config.sub.
1288 $ac_config_sub sun4 >/dev/null 2>&1 ||
1289 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1290 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1291 { (exit 1); exit 1; }; }
1293 echo "$as_me:$LINENO: checking build system type" >&5
1294 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1295 if test "${ac_cv_build+set}" = set; then
1296 echo $ECHO_N "(cached) $ECHO_C" >&6
1298 ac_cv_build_alias=$build_alias
1299 test -z "$ac_cv_build_alias" &&
1300 ac_cv_build_alias=`$ac_config_guess`
1301 test -z "$ac_cv_build_alias" &&
1302 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1303 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1304 { (exit 1); exit 1; }; }
1305 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1306 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1307 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1308 { (exit 1); exit 1; }; }
1311 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1312 echo "${ECHO_T}$ac_cv_build" >&6
1314 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 echo "$as_me:$LINENO: checking host system type" >&5
1320 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1321 if test "${ac_cv_host+set}" = set; then
1322 echo $ECHO_N "(cached) $ECHO_C" >&6
1324 ac_cv_host_alias=$host_alias
1325 test -z "$ac_cv_host_alias" &&
1326 ac_cv_host_alias=$ac_cv_build_alias
1327 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1334 echo "${ECHO_T}$ac_cv_host" >&6
1336 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1343 echo "$as_me:$LINENO: checking which template to use" >&5
1344 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1349 # Check whether --with-template or --without-template was given.
1350 if test "${with_template+set}" = set; then
1351 withval="$with_template"
1355 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1356 echo "$as_me: error: argument required for --with-template option" >&2;}
1357 { (exit 1); exit 1; }; }
1360 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1361 echo "$as_me: error: argument required for --with-template option" >&2;}
1362 { (exit 1); exit 1; }; }
1367 list) echo; ls "$srcdir/src/template"; exit;;
1368 *) if test -f "$srcdir/src/template/$with_template" ; then
1371 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1372 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1373 { (exit 1); exit 1; }; }
1382 # --with-template not given
1385 aix*) template=aix ;;
1386 beos*) template=beos ;;
1387 bsdi*) template=bsdi ;;
1388 cygwin*) template=cygwin ;;
1389 darwin*) template=darwin ;;
1390 dgux*) template=dgux ;;
1391 freebsd*) template=freebsd ;;
1392 hpux*) template=hpux ;;
1393 irix*) template=irix ;;
1394 linux*) template=linux ;;
1395 mingw*) template=win32 ;;
1396 netbsd*) template=netbsd ;;
1397 nextstep*) template=nextstep ;;
1398 openbsd*) template=openbsd ;;
1399 osf*) template=osf ;;
1400 qnx*) template=qnx4 ;;
1401 sco*) template=sco ;;
1402 solaris*) template=solaris ;;
1403 sunos*) template=sunos4 ;;
1405 case $host_vendor in
1406 univel) template=univel ;;
1408 sysv4*) template=svr4 ;;
1409 sysv5*) template=unixware ;;
1410 ultrix*) template=ultrix4 ;;
1413 if test x"$template" = x"" ; then
1414 { { echo "$as_me:$LINENO: error:
1415 *******************************************************************
1416 PostgreSQL has apparently not been ported to your platform yet.
1417 To try a manual configuration, look into the src/template directory
1418 for a similar platform and use the '--with-template=' option.
1420 Please also contact <pgsql-ports@postgresql.org> to see about
1421 rectifying this. Include the above 'checking host system type...'
1423 *******************************************************************
1425 echo "$as_me: error:
1426 *******************************************************************
1427 PostgreSQL has apparently not been ported to your platform yet.
1428 To try a manual configuration, look into the src/template directory
1429 for a similar platform and use the '--with-template=' option.
1431 Please also contact <pgsql-ports@postgresql.org> to see about
1432 rectifying this. Include the above 'checking host system type...'
1434 *******************************************************************
1436 { (exit 1); exit 1; }; }
1443 echo "$as_me:$LINENO: result: $template" >&5
1444 echo "${ECHO_T}$template" >&6
1449 # Initialize default assumption that we do not need separate assembly code
1450 # for TAS (test-and-set). This can be overridden by the template file
1451 # when it's executed.
1458 ## Command line options
1462 # Installation directory for documentation
1467 # Check whether --with-docdir or --without-docdir was given.
1468 if test "${with_docdir+set}" = set; then
1469 withval="$with_docdir"
1473 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1474 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1475 { (exit 1); exit 1; }; }
1486 docdir='${prefix}/doc'
1493 # Add non-standard directories to the include path
1498 # Check whether --with-includes or --without-includes was given.
1499 if test "${with_includes+set}" = set; then
1500 withval="$with_includes"
1504 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1505 echo "$as_me: error: argument required for --with-includes option" >&2;}
1506 { (exit 1); exit 1; }; }
1509 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1510 echo "$as_me: error: argument required for --with-includes option" >&2;}
1511 { (exit 1); exit 1; }; }
1523 # Add non-standard directories to the library search path
1528 # Check whether --with-libraries or --without-libraries was given.
1529 if test "${with_libraries+set}" = set; then
1530 withval="$with_libraries"
1534 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1535 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1536 { (exit 1); exit 1; }; }
1539 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1540 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1541 { (exit 1); exit 1; }; }
1544 LIBRARY_DIRS=$withval
1554 # Check whether --with-libs or --without-libs was given.
1555 if test "${with_libs+set}" = set; then
1556 withval="$with_libs"
1560 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1561 echo "$as_me: error: argument required for --with-libs option" >&2;}
1562 { (exit 1); exit 1; }; }
1565 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1566 echo "$as_me: error: argument required for --with-libs option" >&2;}
1567 { (exit 1); exit 1; }; }
1570 LIBRARY_DIRS=$withval
1579 # 64-bit integer date/time storage (--enable-integer-datetimes)
1581 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1582 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1585 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1586 if test "${enable_integer_datetimes+set}" = set; then
1587 enableval="$enable_integer_datetimes"
1592 cat >>confdefs.h <<\_ACEOF
1593 #define USE_INTEGER_DATETIMES 1
1601 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1602 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1603 { (exit 1); exit 1; }; }
1608 enable_integer_datetimes=no
1612 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1613 echo "${ECHO_T}$enable_integer_datetimes" >&6
1619 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1620 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1623 # Check whether --enable-nls or --disable-nls was given.
1624 if test "${enable_nls+set}" = set; then
1625 enableval="$enable_nls"
1636 WANTED_LANGUAGES=$enableval
1645 if test "$enable_nls" = yes; then
1647 cat >>confdefs.h <<\_ACEOF
1648 #define ENABLE_NLS 1
1653 echo "$as_me:$LINENO: result: $enable_nls" >&5
1654 echo "${ECHO_T}$enable_nls" >&6
1659 # Default port number (--with-pgport), default 5432
1661 echo "$as_me:$LINENO: checking for default port number" >&5
1662 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1666 # Check whether --with-pgport or --without-pgport was given.
1667 if test "${with_pgport+set}" = set; then
1668 withval="$with_pgport"
1672 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1673 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1674 { (exit 1); exit 1; }; }
1677 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1678 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1679 { (exit 1); exit 1; }; }
1682 default_port=$withval
1690 echo "$as_me:$LINENO: result: $default_port" >&5
1691 echo "${ECHO_T}$default_port" >&6
1692 # Need both of these because some places want an integer and some a string
1694 cat >>confdefs.h <<_ACEOF
1695 #define DEF_PGPORT ${default_port}
1699 cat >>confdefs.h <<_ACEOF
1700 #define DEF_PGPORT_STR "${default_port}"
1706 # Option to disable shared libraries
1710 # Check whether --enable-shared or --disable-shared was given.
1711 if test "${enable_shared+set}" = set; then
1712 enableval="$enable_shared"
1722 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1723 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1724 { (exit 1); exit 1; }; }
1736 # '-rpath'-like feature can be disabled
1740 # Check whether --enable-rpath or --disable-rpath was given.
1741 if test "${enable_rpath+set}" = set; then
1742 enableval="$enable_rpath"
1752 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1753 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1754 { (exit 1); exit 1; }; }
1770 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1771 if test "${enable_spinlocks+set}" = set; then
1772 enableval="$enable_spinlocks"
1782 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1783 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1784 { (exit 1); exit 1; }; }
1789 enable_spinlocks=yes
1795 # --enable-debug adds -g to compiler flags
1799 # Check whether --enable-debug or --disable-debug was given.
1800 if test "${enable_debug+set}" = set; then
1801 enableval="$enable_debug"
1811 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1812 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1813 { (exit 1); exit 1; }; }
1828 # For historical reasons you can also use --with-CC to specify the C compiler
1829 # to use, although the standard way to do this is to set the CC environment
1834 # Check whether --with-CC or --without-CC was given.
1835 if test "${with_CC+set}" = set; then
1840 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1841 echo "$as_me: error: argument required for --with-CC option" >&2;}
1842 { (exit 1); exit 1; }; }
1845 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1846 echo "$as_me: error: argument required for --with-CC option" >&2;}
1847 { (exit 1); exit 1; }; }
1858 aix) pgac_cc_list="gcc xlc";;
1859 irix) pgac_cc_list="cc";; # no gcc
1860 *) pgac_cc_list="gcc cc";;
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868 if test -n "$ac_tool_prefix"; then
1869 for ac_prog in $pgac_cc_list
1871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 if test -n "$CC"; then
1899 echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1906 test -n "$CC" && break
1909 if test -z "$CC"; then
1911 for ac_prog in $pgac_cc_list
1913 # Extract the first word of "$ac_prog", so it can be a program name with args.
1914 set dummy $ac_prog; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$ac_ct_CC"; then
1921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 ac_cv_prog_ac_ct_CC="$ac_prog"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1940 if test -n "$ac_ct_CC"; then
1941 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1942 echo "${ECHO_T}$ac_ct_CC" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1948 test -n "$ac_ct_CC" && break
1955 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1956 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1957 { (exit 1); exit 1; }; }
1959 # Provide some information about the compiler.
1960 echo "$as_me:$LINENO:" \
1961 "checking for C compiler version" >&5
1962 ac_compiler=`set X $ac_compile; echo $2`
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964 (eval $ac_compiler --version </dev/null >&5) 2>&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1969 (eval $ac_compiler -v </dev/null >&5) 2>&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974 (eval $ac_compiler -V </dev/null >&5) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
1979 cat >conftest.$ac_ext <<_ACEOF
1980 #line $LINENO "configure"
1981 #include "confdefs.h"
1983 #ifdef F77_DUMMY_MAIN
1987 int F77_DUMMY_MAIN() { return 1; }
1997 ac_clean_files_save=$ac_clean_files
1998 ac_clean_files="$ac_clean_files a.out a.exe"
1999 # Try to create an executable without -o first, disregard a.out.
2000 # It will help us diagnose broken compilers, and finding out an intuition
2002 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2003 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2004 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2005 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2006 (eval $ac_link_default) 2>&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; then
2010 # Find the output, starting from the most likely. This scheme is
2011 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2014 # Be careful to initialize this variable, since it used to be cached.
2015 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2017 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2018 ls a.out conftest 2>/dev/null;
2019 ls a.* conftest.* 2>/dev/null`; do
2021 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2022 a.out ) # We found the default executable, but exeext='' is most
2025 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2026 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2033 echo "$as_me: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2036 echo "$as_me: error: C compiler cannot create executables" >&2;}
2037 { (exit 77); exit 77; }; }
2040 ac_exeext=$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_file" >&5
2042 echo "${ECHO_T}$ac_file" >&6
2044 # Check the compiler produces executables we can run. If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2049 # If not cross compiling, check that we can run a simple program.
2050 if test "$cross_compiling" != yes; then
2051 if { ac_try='./$ac_file'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2059 if test "$cross_compiling" = maybe; then
2062 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'." >&5
2064 echo "$as_me: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'." >&2;}
2066 { (exit 1); exit 1; }; }
2070 echo "$as_me:$LINENO: result: yes" >&5
2071 echo "${ECHO_T}yes" >&6
2073 rm -f a.out a.exe conftest$ac_cv_exeext
2074 ac_clean_files=$ac_clean_files_save
2075 # Check the compiler produces executables we can run. If not, either
2076 # the compiler is broken, or we cross compile.
2077 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2078 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2079 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2080 echo "${ECHO_T}$cross_compiling" >&6
2082 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2083 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2085 (eval $ac_link) 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; then
2089 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2090 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2091 # work properly (i.e., refer to `conftest.exe'), while it won't with
2093 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2095 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2096 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2103 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2104 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2105 { (exit 1); exit 1; }; }
2108 rm -f conftest$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2110 echo "${ECHO_T}$ac_cv_exeext" >&6
2112 rm -f conftest.$ac_ext
2113 EXEEXT=$ac_cv_exeext
2115 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2116 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2117 if test "${ac_cv_objext+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #line $LINENO "configure"
2122 #include "confdefs.h"
2124 #ifdef F77_DUMMY_MAIN
2128 int F77_DUMMY_MAIN() { return 1; }
2138 rm -f conftest.o conftest.obj
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }; then
2144 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2147 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2152 echo "$as_me: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2155 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2156 { (exit 1); exit 1; }; }
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #line $LINENO "configure"
2172 #include "confdefs.h"
2174 #ifdef F77_DUMMY_MAIN
2178 int F77_DUMMY_MAIN() { return 1; }
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2205 echo "$as_me: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2209 rm -f conftest.$ac_objext conftest.$ac_ext
2210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2213 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2215 GCC=`test $ac_compiler_gnu = yes && echo yes`
2216 ac_test_CFLAGS=${CFLAGS+set}
2217 ac_save_CFLAGS=$CFLAGS
2219 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2220 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2221 if test "${ac_cv_prog_cc_g+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 cat >conftest.$ac_ext <<_ACEOF
2225 #line $LINENO "configure"
2226 #include "confdefs.h"
2228 #ifdef F77_DUMMY_MAIN
2232 int F77_DUMMY_MAIN() { return 1; }
2242 rm -f conftest.$ac_objext
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try='test -s conftest.$ac_objext'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2256 echo "$as_me: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2260 rm -f conftest.$ac_objext conftest.$ac_ext
2262 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2263 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2264 if test "$ac_test_CFLAGS" = set; then
2265 CFLAGS=$ac_save_CFLAGS
2266 elif test $ac_cv_prog_cc_g = yes; then
2267 if test "$GCC" = yes; then
2273 if test "$GCC" = yes; then
2279 # Some people use a C++ compiler to compile C. Since we use `exit',
2280 # in C++ we need to declare it. In case someone uses the same compiler
2281 # for both compiling C and C++ we need to have the C++ compiler decide
2282 # the declaration of exit, since it's the most demanding environment.
2283 cat >conftest.$ac_ext <<_ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -s conftest.$ac_objext'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2300 for ac_declaration in \
2302 '#include <stdlib.h>' \
2303 'extern "C" void std::exit (int) throw (); using std::exit;' \
2304 'extern "C" void std::exit (int); using std::exit;' \
2305 'extern "C" void exit (int) throw ();' \
2306 'extern "C" void exit (int);' \
2309 cat >conftest.$ac_ext <<_ACEOF
2310 #line $LINENO "configure"
2311 #include "confdefs.h"
2314 #ifdef F77_DUMMY_MAIN
2318 int F77_DUMMY_MAIN() { return 1; }
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2342 echo "$as_me: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2347 cat >conftest.$ac_ext <<_ACEOF
2348 #line $LINENO "configure"
2349 #include "confdefs.h"
2351 #ifdef F77_DUMMY_MAIN
2355 int F77_DUMMY_MAIN() { return 1; }
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2382 rm -f conftest.$ac_objext conftest.$ac_ext
2385 if test -n "$ac_declaration"; then
2386 echo '#ifdef __cplusplus' >>confdefs.h
2387 echo $ac_declaration >>confdefs.h
2388 echo '#endif' >>confdefs.h
2392 echo "$as_me: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 rm -f conftest.$ac_objext conftest.$ac_ext
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408 . "$srcdir/src/template/$template" || exit
2410 # CFLAGS are selected so:
2411 # If the user specifies something in the environment, that is used.
2412 # else: If the template file set something, that is used.
2413 # else: If the compiler is GCC, then we use -O2.
2414 # else: If the compiler is something else, then we use -0.
2416 if test "$ac_env_CFLAGS_set" = set; then
2417 CFLAGS=$ac_env_CFLAGS_value
2418 elif test "${CFLAGS+set}" = set; then
2419 : # (keep what template set)
2420 elif test "$GCC" = yes; then
2423 # if the user selected debug mode, don't use -O
2424 if test "$enable_debug" != yes; then
2429 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2430 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2431 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2432 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 pgac_save_CFLAGS=$CFLAGS
2436 if test "$GCC" = yes; then
2437 pgac_try="-fno-strict-aliasing"
2439 # Maybe fill in later...
2443 for pgac_flag in $pgac_try; do
2444 CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #line $LINENO "configure"
2447 #include "confdefs.h"
2449 #ifdef F77_DUMMY_MAIN
2453 int F77_DUMMY_MAIN() { return 1; }
2463 rm -f conftest.$ac_objext
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 rm -f conftest.$ac_objext conftest.$ac_ext
2484 CFLAGS=$pgac_save_CFLAGS
2487 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2488 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2490 if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then
2491 CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2494 # supply -g if --enable-debug
2495 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2499 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2500 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2502 # We already have this in Makefile.win32, but configure needs it too
2503 if test "$PORTNAME" = "win32"; then
2504 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2507 # Check if the compiler still works with the template settings
2508 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2509 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2511 cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 #include "confdefs.h"
2515 #ifdef F77_DUMMY_MAIN
2519 int F77_DUMMY_MAIN() { return 1; }
2529 rm -f conftest.$ac_objext conftest$ac_exeext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2531 (eval $ac_link) 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -s conftest$ac_exeext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 echo "$as_me:$LINENO: result: yes" >&5
2542 echo "${ECHO_T}yes" >&6
2544 echo "$as_me: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6
2548 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2549 echo "$as_me: error: cannot proceed" >&2;}
2550 { (exit 1); exit 1; }; }
2552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2554 # Defend against gcc -ffast-math
2555 if test "$GCC" = yes; then
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 #include "confdefs.h"
2560 #ifdef F77_DUMMY_MAIN
2564 int F77_DUMMY_MAIN() { return 1; }
2569 #ifdef __FAST_MATH__
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2590 echo "$as_me: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2593 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2594 { (exit 1); exit 1; }; }
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2600 ac_cpp='$CPP $CPPFLAGS'
2601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2605 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2606 # On Suns, sometimes $CPP names a directory.
2607 if test -n "$CPP" && test -d "$CPP"; then
2610 if test -z "$CPP"; then
2611 if test "${ac_cv_prog_CPP+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 # Double quotes because CPP needs to be expanded
2615 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2618 for ac_c_preproc_warn_flag in '' yes
2620 # Use a header file that comes with gcc, so configuring glibc
2621 # with a fresh cross-compiler works.
2622 # On the NeXT, cc -E runs the code through the compiler's parser,
2623 # not just through cpp. "Syntax error" is here to catch this case.
2624 cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2626 #include "confdefs.h"
2630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2633 egrep -v '^ *\+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } >/dev/null; then
2638 if test -s conftest.err; then
2639 ac_cpp_err=$ac_c_preproc_warn_flag
2646 if test -z "$ac_cpp_err"; then
2649 echo "$as_me: failed program was:" >&5
2650 cat conftest.$ac_ext >&5
2651 # Broken: fails on valid input.
2654 rm -f conftest.err conftest.$ac_ext
2656 # OK, works on sane cases. Now check whether non-existent headers
2657 # can be detected and how.
2658 cat >conftest.$ac_ext <<_ACEOF
2659 #line $LINENO "configure"
2660 #include "confdefs.h"
2661 #include <ac_nonexistent.h>
2663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2666 egrep -v '^ *\+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } >/dev/null; then
2671 if test -s conftest.err; then
2672 ac_cpp_err=$ac_c_preproc_warn_flag
2679 if test -z "$ac_cpp_err"; then
2680 # Broken: success on invalid input.
2683 echo "$as_me: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2685 # Passes both tests.
2689 rm -f conftest.err conftest.$ac_ext
2692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2693 rm -f conftest.err conftest.$ac_ext
2694 if $ac_preproc_ok; then
2706 echo "$as_me:$LINENO: result: $CPP" >&5
2707 echo "${ECHO_T}$CPP" >&6
2709 for ac_c_preproc_warn_flag in '' yes
2711 # Use a header file that comes with gcc, so configuring glibc
2712 # with a fresh cross-compiler works.
2713 # On the NeXT, cc -E runs the code through the compiler's parser,
2714 # not just through cpp. "Syntax error" is here to catch this case.
2715 cat >conftest.$ac_ext <<_ACEOF
2716 #line $LINENO "configure"
2717 #include "confdefs.h"
2721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2724 egrep -v '^ *\+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } >/dev/null; then
2729 if test -s conftest.err; then
2730 ac_cpp_err=$ac_c_preproc_warn_flag
2737 if test -z "$ac_cpp_err"; then
2740 echo "$as_me: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2742 # Broken: fails on valid input.
2745 rm -f conftest.err conftest.$ac_ext
2747 # OK, works on sane cases. Now check whether non-existent headers
2748 # can be detected and how.
2749 cat >conftest.$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 #include "confdefs.h"
2752 #include <ac_nonexistent.h>
2754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2757 egrep -v '^ *\+' conftest.er1 >conftest.err
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } >/dev/null; then
2762 if test -s conftest.err; then
2763 ac_cpp_err=$ac_c_preproc_warn_flag
2770 if test -z "$ac_cpp_err"; then
2771 # Broken: success on invalid input.
2774 echo "$as_me: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2776 # Passes both tests.
2780 rm -f conftest.err conftest.$ac_ext
2783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2784 rm -f conftest.err conftest.$ac_ext
2785 if $ac_preproc_ok; then
2788 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2789 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2790 { (exit 1); exit 1; }; }
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 # Create compiler version string
2802 if test x"$GCC" = x"yes" ; then
2803 cc_string="GCC `${CC} --version | sed q`"
2808 cat >>confdefs.h <<_ACEOF
2809 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2815 # Set up TAS assembly code if needed; the template file has now had its
2816 # chance to request this.
2818 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2821 if test "$need_tas" = yes ; then
2830 # Automatic dependency tracking
2834 # Check whether --enable-depend or --disable-depend was given.
2835 if test "${enable_depend+set}" = set; then
2836 enableval="$enable_depend"
2846 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2847 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2848 { (exit 1); exit 1; }; }
2861 # Enable assert checks
2865 # Check whether --enable-cassert or --disable-cassert was given.
2866 if test "${enable_cassert+set}" = set; then
2867 enableval="$enable_cassert"
2872 cat >>confdefs.h <<\_ACEOF
2873 #define USE_ASSERT_CHECKING 1
2881 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2882 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2883 { (exit 1); exit 1; }; }
2895 # Include directories
2899 # SRCH_INC comes from the template file
2900 for dir in $with_includes $SRCH_INC; do
2901 if test -d "$dir"; then
2902 INCLUDES="$INCLUDES -I$dir"
2904 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2905 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2913 # Library directories
2917 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2918 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2919 if test -d "$dir"; then
2920 LIBDIRS="$LIBDIRS -L$dir"
2922 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2923 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2929 # Enable thread-safe client libraries
2931 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2932 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2935 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2936 if test "${enable_thread_safety+set}" = set; then
2937 enableval="$enable_thread_safety"
2947 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2948 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2949 { (exit 1); exit 1; }; }
2954 enable_thread_safety=no
2960 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
2961 if test "${enable_thread_safety_force+set}" = set; then
2962 enableval="$enable_thread_safety_force"
2972 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
2973 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
2974 { (exit 1); exit 1; }; }
2979 enable_thread_safety_force=no
2983 if test "$enable_thread_safety" = yes -o \
2984 "$enable_thread_safety_force" = yes; then
2985 enable_thread_safety="yes" # for 'force'
2987 cat >>confdefs.h <<\_ACEOF
2988 #define ENABLE_THREAD_SAFETY 1
2992 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2993 echo "${ECHO_T}$enable_thread_safety" >&6
2999 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3000 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3004 # Check whether --with-tcl or --without-tcl was given.
3005 if test "${with_tcl+set}" = set; then
3016 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3017 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3018 { (exit 1); exit 1; }; }
3027 echo "$as_me:$LINENO: result: $with_tcl" >&5
3028 echo "${ECHO_T}$with_tcl" >&6
3031 # We see if the path to the Tcl/Tk configuration scripts is specified.
3032 # This will override the use of tclsh to find the paths to search.
3037 # Check whether --with-tclconfig or --without-tclconfig was given.
3038 if test "${with_tclconfig+set}" = set; then
3039 withval="$with_tclconfig"
3043 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3044 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3045 { (exit 1); exit 1; }; }
3048 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3049 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3050 { (exit 1); exit 1; }; }
3061 # Optionally build Perl modules (PL/Perl)
3063 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3064 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3068 # Check whether --with-perl or --without-perl was given.
3069 if test "${with_perl+set}" = set; then
3070 withval="$with_perl"
3080 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3081 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3082 { (exit 1); exit 1; }; }
3091 echo "$as_me:$LINENO: result: $with_perl" >&5
3092 echo "${ECHO_T}$with_perl" >&6
3096 # Optionally build Python modules (PL/Python)
3098 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3099 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3103 # Check whether --with-python or --without-python was given.
3104 if test "${with_python+set}" = set; then
3105 withval="$with_python"
3115 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3116 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3117 { (exit 1); exit 1; }; }
3126 echo "$as_me:$LINENO: result: $with_python" >&5
3127 echo "${ECHO_T}$with_python" >&6
3133 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3134 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3138 # Check whether --with-krb4 or --without-krb4 was given.
3139 if test "${with_krb4+set}" = set; then
3140 withval="$with_krb4"
3146 cat >>confdefs.h <<\_ACEOF
3150 krb_srvtab="/etc/srvtab"
3157 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3158 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3159 { (exit 1); exit 1; }; }
3168 echo "$as_me:$LINENO: result: $with_krb4" >&5
3169 echo "${ECHO_T}$with_krb4" >&6
3176 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3177 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3181 # Check whether --with-krb5 or --without-krb5 was given.
3182 if test "${with_krb5+set}" = set; then
3183 withval="$with_krb5"
3189 cat >>confdefs.h <<\_ACEOF
3193 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3200 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3201 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3202 { (exit 1); exit 1; }; }
3211 echo "$as_me:$LINENO: result: $with_krb5" >&5
3212 echo "${ECHO_T}$with_krb5" >&6
3216 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3217 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3218 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3219 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3220 { (exit 1); exit 1; }; }
3227 # Kerberos configuration parameters
3232 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3233 if test "${with_krb_srvnam+set}" = set; then
3234 withval="$with_krb_srvnam"
3238 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3239 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3240 { (exit 1); exit 1; }; }
3243 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3244 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3245 { (exit 1); exit 1; }; }
3253 with_krb_srvnam="postgres"
3257 cat >>confdefs.h <<_ACEOF
3258 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3266 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3267 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3271 # Check whether --with-pam or --without-pam was given.
3272 if test "${with_pam+set}" = set; then
3278 cat >>confdefs.h <<\_ACEOF
3287 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3288 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3289 { (exit 1); exit 1; }; }
3298 echo "$as_me:$LINENO: result: $with_pam" >&5
3299 echo "${ECHO_T}$with_pam" >&6
3306 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3307 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3311 # Check whether --with-rendezvous or --without-rendezvous was given.
3312 if test "${with_rendezvous+set}" = set; then
3313 withval="$with_rendezvous"
3318 cat >>confdefs.h <<\_ACEOF
3319 #define USE_RENDEZVOUS 1
3327 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3328 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3329 { (exit 1); exit 1; }; }
3338 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3339 echo "${ECHO_T}$with_rendezvous" >&6
3346 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3347 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3351 # Check whether --with-openssl or --without-openssl was given.
3352 if test "${with_openssl+set}" = set; then
3353 withval="$with_openssl"
3358 cat >>confdefs.h <<\_ACEOF
3367 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3368 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3369 { (exit 1); exit 1; }; }
3378 echo "$as_me:$LINENO: result: $with_openssl" >&5
3379 echo "${ECHO_T}$with_openssl" >&6
3389 # Check whether --with-readline or --without-readline was given.
3390 if test "${with_readline+set}" = set; then
3391 withval="$with_readline"
3401 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3402 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3403 { (exit 1); exit 1; }; }
3412 # readline on MinGW has problems with backslashes in psql and other bugs.
3413 # This is particularly a problem with non-US code pages.
3414 # Therefore disable its use until we understand the cause. 2004-07-20
3415 case $host_os in mingw*)
3416 if test "$with_readline" = yes; then
3417 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3418 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3430 # Check whether --with-zlib or --without-zlib was given.
3431 if test "${with_zlib+set}" = set; then
3432 withval="$with_zlib"
3442 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3443 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3444 { (exit 1); exit 1; }; }
3458 # Assume system is ELF if it predefines __ELF__ as 1,
3459 # otherwise believe host_os based default.
3461 freebsd1*|freebsd2*) elf=no;;
3462 freebsd3*|freebsd4*) elf=yes;;
3466 cat >conftest.$ac_ext <<_ACEOF
3467 #line $LINENO "configure"
3468 #include "confdefs.h"
3474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3475 egrep "yes" >/dev/null 2>&1; then
3478 if test "X$elf" = "Xyes" ; then
3492 CPPFLAGS="$CPPFLAGS $INCLUDES"
3493 LDFLAGS="$LDFLAGS $LIBDIRS"
3495 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3496 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3497 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3498 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3501 for ac_prog in gawk mawk nawk awk
3503 # Extract the first word of "$ac_prog", so it can be a program name with args.
3504 set dummy $ac_prog; ac_word=$2
3505 echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_prog_AWK+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 if test -n "$AWK"; then
3511 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_AWK="$ac_prog"
3521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 if test -n "$AWK"; then
3531 echo "$as_me:$LINENO: result: $AWK" >&5
3532 echo "${ECHO_T}$AWK" >&6
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3538 test -n "$AWK" && break
3541 echo "$as_me:$LINENO: checking for flex" >&5
3542 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3543 if test "${pgac_cv_path_flex+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 # Let the user override the test
3547 if test -n "$FLEX"; then
3548 pgac_cv_path_flex=$FLEX
3552 for pgac_dir in $PATH; do
3553 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3556 for pgac_prog in flex lex; do
3557 pgac_candidate="$pgac_dir/$pgac_prog"
3558 if test -f "$pgac_candidate" \
3559 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3561 echo '%%' > conftest.l
3562 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3563 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3564 pgac_broken_flex=$pgac_candidate
3568 pgac_cv_path_flex=$pgac_candidate
3576 : ${pgac_cv_path_flex=no}
3580 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3581 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3582 if test x"$pgac_cv_path_flex" = x"no"; then
3583 if test -n "$pgac_broken_flex"; then
3584 { echo "$as_me:$LINENO: WARNING:
3585 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3586 *** should get version 2.5.4 or later." >&5
3587 echo "$as_me: WARNING:
3588 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3589 *** should get version 2.5.4 or later." >&2;}
3592 { echo "$as_me:$LINENO: WARNING:
3593 *** Without Flex you will not be able to build PostgreSQL from CVS or
3594 *** change any of the scanner definition files. You can obtain Flex from
3595 *** a GNU mirror site. (If you are using the official distribution of
3596 *** PostgreSQL then you do not need to worry about this because the Flex
3597 *** output is pre-generated.)" >&5
3598 echo "$as_me: WARNING:
3599 *** Without Flex you will not be able to build PostgreSQL from CVS or
3600 *** change any of the scanner definition files. You can obtain Flex from
3601 *** a GNU mirror site. (If you are using the official distribution of
3602 *** PostgreSQL then you do not need to worry about this because the Flex
3603 *** output is pre-generated.)" >&2;}
3606 if test x"$pgac_cv_path_flex" = x"no"; then
3609 FLEX=$pgac_cv_path_flex
3615 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3616 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3618 if test "$LN_S" = "ln -s"; then
3619 echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6
3622 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3623 echo "${ECHO_T}no, using $LN_S" >&6
3627 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3628 if test "${with_gnu_ld+set}" = set; then
3629 withval="$with_gnu_ld"
3630 test "$withval" = no || with_gnu_ld=yes
3635 if test "$GCC" = yes; then
3636 # Check if gcc -print-prog-name=ld gives a path.
3637 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3638 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3641 # gcc leaves a trailing carriage return which upsets mingw
3642 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3644 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3647 # Accept absolute paths.
3648 [\\/]* | [A-Za-z]:[\\/]*)
3649 re_direlt='/[^/][^/]*/\.\./'
3650 # Canonicalize the path of ld
3651 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3652 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3653 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3655 test -z "$LD" && LD="$ac_prog"
3658 # If it fails, then pretend we aren't using GCC.
3662 # If it is relative, then search for the first ld in PATH.
3666 elif test "$with_gnu_ld" = yes; then
3667 echo "$as_me:$LINENO: checking for GNU ld" >&5
3668 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3670 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3671 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3673 if test "${ac_cv_path_LD+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 if test -z "$LD"; then
3677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3678 for ac_dir in $PATH; do
3679 test -z "$ac_dir" && ac_dir=.
3680 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3681 ac_cv_path_LD="$ac_dir/$ac_prog"
3682 # Check to see if the program is GNU ld. I'd rather use --version,
3683 # but apparently some GNU ld's only accept -v.
3684 # Break only if it was the GNU/non-GNU ld that we prefer.
3685 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3686 test "$with_gnu_ld" != no && break
3688 test "$with_gnu_ld" != yes && break
3694 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3699 if test -n "$LD"; then
3700 echo "$as_me:$LINENO: result: $LD" >&5
3701 echo "${ECHO_T}$LD" >&6
3703 echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3706 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3707 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3708 { (exit 1); exit 1; }; }
3709 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3710 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3711 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3715 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3716 ac_cv_prog_gnu_ld=yes
3718 ac_cv_prog_gnu_ld=no
3721 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3722 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3723 with_gnu_ld=$ac_cv_prog_gnu_ld
3728 case $host_os in sysv5*)
3729 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3730 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3731 if test "${pgac_cv_prog_ld_R+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3736 cat >conftest.$ac_ext <<_ACEOF
3737 #line $LINENO "configure"
3738 #include "confdefs.h"
3740 #ifdef F77_DUMMY_MAIN
3744 int F77_DUMMY_MAIN() { return 1; }
3754 rm -f conftest.$ac_objext conftest$ac_exeext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3756 (eval $ac_link) 2>&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -s conftest$ac_exeext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 pgac_cv_prog_ld_R=yes
3768 echo "$as_me: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 pgac_cv_prog_ld_R=no
3772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3773 LDFLAGS=$pgac_save_LDFLAGS
3776 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3777 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3778 ld_R_works=$pgac_cv_prog_ld_R
3781 if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3784 echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_RANLIB+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test -n "$RANLIB"; then
3790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 RANLIB=$ac_cv_prog_RANLIB
3809 if test -n "$RANLIB"; then
3810 echo "$as_me:$LINENO: result: $RANLIB" >&5
3811 echo "${ECHO_T}$RANLIB" >&6
3813 echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3818 if test -z "$ac_cv_prog_RANLIB"; then
3819 ac_ct_RANLIB=$RANLIB
3820 # Extract the first word of "ranlib", so it can be a program name with args.
3821 set dummy ranlib; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 if test -n "$ac_ct_RANLIB"; then
3828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_ac_ct_RANLIB="ranlib"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3848 if test -n "$ac_ct_RANLIB"; then
3849 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3850 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3852 echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3856 RANLIB=$ac_ct_RANLIB
3858 RANLIB="$ac_cv_prog_RANLIB"
3861 for ac_prog in lorder
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_prog_LORDER+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 if test -n "$LORDER"; then
3871 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_LORDER="$ac_prog"
3881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 LORDER=$ac_cv_prog_LORDER
3890 if test -n "$LORDER"; then
3891 echo "$as_me:$LINENO: result: $LORDER" >&5
3892 echo "${ECHO_T}$LORDER" >&6
3894 echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3898 test -n "$LORDER" && break
3901 # Extract the first word of "tar", so it can be a program name with args.
3902 set dummy tar; ac_word=$2
3903 echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 if test "${ac_cv_path_TAR+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 if test -n "$TAR"; then
3933 echo "$as_me:$LINENO: result: $TAR" >&5
3934 echo "${ECHO_T}$TAR" >&6
3936 echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3941 if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}strip; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_prog_STRIP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 if test -n "$STRIP"; then
3950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 STRIP=$ac_cv_prog_STRIP
3969 if test -n "$STRIP"; then
3970 echo "$as_me:$LINENO: result: $STRIP" >&5
3971 echo "${ECHO_T}$STRIP" >&6
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3978 if test -z "$ac_cv_prog_STRIP"; then
3980 # Extract the first word of "strip", so it can be a program name with args.
3981 set dummy strip; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -n "$ac_ct_STRIP"; then
3988 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_ac_ct_STRIP="strip"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4008 if test -n "$ac_ct_STRIP"; then
4009 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4010 echo "${ECHO_T}$ac_ct_STRIP" >&6
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4018 STRIP="$ac_cv_prog_STRIP"
4022 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4023 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4024 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4025 STRIP_STATIC_LIB="$STRIP -x"
4026 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4027 echo "$as_me:$LINENO: result: yes" >&5
4028 echo "${ECHO_T}yes" >&6
4032 echo "$as_me:$LINENO: result: no" >&5
4033 echo "${ECHO_T}no" >&6
4039 for ac_prog in 'bison -y'
4041 # Extract the first word of "$ac_prog", so it can be a program name with args.
4042 set dummy $ac_prog; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_YACC+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 if test -n "$YACC"; then
4049 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_YACC="$ac_prog"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 YACC=$ac_cv_prog_YACC
4068 if test -n "$YACC"; then
4069 echo "$as_me:$LINENO: result: $YACC" >&5
4070 echo "${ECHO_T}$YACC" >&6
4072 echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4076 test -n "$YACC" && break
4080 if test "$YACC"; then
4081 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4082 { echo "$as_me:$LINENO: WARNING:
4083 *** If you are going to modify the grammar files or build from CVS, the installed
4084 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4085 echo "$as_me: WARNING:
4086 *** If you are going to modify the grammar files or build from CVS, the installed
4087 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4091 if test -z "$YACC"; then
4092 { echo "$as_me:$LINENO: WARNING:
4093 *** Without Bison you will not be able to build PostgreSQL from CVS or
4094 *** change any of the parser definition files. You can obtain Bison from
4095 *** a GNU mirror site. (If you are using the official distribution of
4096 *** PostgreSQL then you do not need to worry about this because the Bison
4097 *** output is pre-generated.) To use a different yacc program (possible,
4098 *** but not recommended), set the environment variable YACC before running
4099 *** 'configure'." >&5
4100 echo "$as_me: WARNING:
4101 *** Without Bison you will not be able to build PostgreSQL from CVS or
4102 *** change any of the parser definition files. You can obtain Bison from
4103 *** a GNU mirror site. (If you are using the official distribution of
4104 *** PostgreSQL then you do not need to worry about this because the Bison
4105 *** output is pre-generated.) To use a different yacc program (possible,
4106 *** but not recommended), set the environment variable YACC before running
4107 *** 'configure'." >&2;}
4111 # Extract the first word of "perl", so it can be a program name with args.
4112 set dummy perl; ac_word=$2
4113 echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_path_PERL+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 PERL=$ac_cv_path_PERL
4142 if test -n "$PERL"; then
4143 echo "$as_me:$LINENO: result: $PERL" >&5
4144 echo "${ECHO_T}$PERL" >&6
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4150 if test "$with_perl" = yes; then
4152 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4153 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4154 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4155 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4156 echo "${ECHO_T}$perl_archlibexp" >&6
4157 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4158 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4159 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4160 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4161 echo "${ECHO_T}$perl_privlibexp" >&6
4162 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4163 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4164 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4165 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4166 echo "${ECHO_T}$perl_useshrplib" >&6
4168 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4169 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4170 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4171 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4172 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4173 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4174 echo "${ECHO_T}$perl_embed_ldflags" >&6
4177 if test "$with_python" = yes; then
4178 # Extract the first word of "python", so it can be a program name with args.
4179 set dummy python; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_path_PYTHON+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 PYTHON=$ac_cv_path_PYTHON
4209 if test -n "$PYTHON"; then
4210 echo "$as_me:$LINENO: result: $PYTHON" >&5
4211 echo "${ECHO_T}$PYTHON" >&6
4213 echo "$as_me:$LINENO: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4217 if test x"$PYTHON" = x""; then
4218 { { echo "$as_me:$LINENO: error: Python not found" >&5
4219 echo "$as_me: error: Python not found" >&2;}
4220 { (exit 1); exit 1; }; }
4224 echo "$as_me:$LINENO: checking Python installation directories" >&5
4225 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4226 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4227 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4228 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4229 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4230 python_includespec="-I${python_prefix}/include/python${python_version}"
4231 if test "$python_prefix" != "$python_execprefix"; then
4232 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4235 # This should be enough of a message.
4236 if test "$python_prefix" != "$python_execprefix"; then
4237 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4238 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4240 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4241 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4245 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4246 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4248 if test ! -f "$python_configdir/Makefile"; then
4249 echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4251 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4252 echo "$as_me: error: Python Makefile not found" >&2;}
4253 { (exit 1); exit 1; }; }
4256 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4257 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4258 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4259 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4260 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4262 pgac_tab=" " # tab character
4263 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"`
4265 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4266 echo "${ECHO_T}${python_libspec}" >&6
4276 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4279 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4280 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4281 if test "${ac_cv_lib_bsd_main+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 ac_check_lib_save_LIBS=$LIBS
4286 cat >conftest.$ac_ext <<_ACEOF
4287 #line $LINENO "configure"
4288 #include "confdefs.h"
4291 #ifdef F77_DUMMY_MAIN
4295 int F77_DUMMY_MAIN() { return 1; }
4305 rm -f conftest.$ac_objext conftest$ac_exeext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4307 (eval $ac_link) 2>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -s conftest$ac_exeext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_lib_bsd_main=yes
4319 echo "$as_me: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 ac_cv_lib_bsd_main=no
4323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4324 LIBS=$ac_check_lib_save_LIBS
4326 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4327 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4328 if test $ac_cv_lib_bsd_main = yes; then
4329 cat >>confdefs.h <<_ACEOF
4330 #define HAVE_LIBBSD 1
4339 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4340 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4341 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 ac_check_lib_save_LIBS=$LIBS
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4350 /* Override any gcc2 internal prototype to avoid an error. */
4354 /* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4356 char setproctitle ();
4357 #ifdef F77_DUMMY_MAIN
4361 int F77_DUMMY_MAIN() { return 1; }
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373 (eval $ac_link) 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -s conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_lib_util_setproctitle=yes
4385 echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_cv_lib_util_setproctitle=no
4389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4390 LIBS=$ac_check_lib_save_LIBS
4392 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4393 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4394 if test $ac_cv_lib_util_setproctitle = yes; then
4395 cat >>confdefs.h <<_ACEOF
4396 #define HAVE_LIBUTIL 1
4404 echo "$as_me:$LINENO: checking for main in -lm" >&5
4405 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4406 if test "${ac_cv_lib_m_main+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 ac_check_lib_save_LIBS=$LIBS
4411 cat >conftest.$ac_ext <<_ACEOF
4412 #line $LINENO "configure"
4413 #include "confdefs.h"
4416 #ifdef F77_DUMMY_MAIN
4420 int F77_DUMMY_MAIN() { return 1; }
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432 (eval $ac_link) 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -s conftest$ac_exeext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_lib_m_main=yes
4444 echo "$as_me: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4449 LIBS=$ac_check_lib_save_LIBS
4451 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4452 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4453 if test $ac_cv_lib_m_main = yes; then
4454 cat >>confdefs.h <<_ACEOF
4463 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4464 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4465 if test "${ac_cv_lib_dl_main+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 ac_check_lib_save_LIBS=$LIBS
4470 cat >conftest.$ac_ext <<_ACEOF
4471 #line $LINENO "configure"
4472 #include "confdefs.h"
4475 #ifdef F77_DUMMY_MAIN
4479 int F77_DUMMY_MAIN() { return 1; }
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491 (eval $ac_link) 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -s conftest$ac_exeext'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 ac_cv_lib_dl_main=yes
4503 echo "$as_me: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4505 ac_cv_lib_dl_main=no
4507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_check_lib_save_LIBS
4510 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4511 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4512 if test $ac_cv_lib_dl_main = yes; then
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_LIBDL 1
4522 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4523 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4524 if test "${ac_cv_lib_nsl_main+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 ac_check_lib_save_LIBS=$LIBS
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line $LINENO "configure"
4531 #include "confdefs.h"
4534 #ifdef F77_DUMMY_MAIN
4538 int F77_DUMMY_MAIN() { return 1; }
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550 (eval $ac_link) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -s conftest$ac_exeext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_lib_nsl_main=yes
4562 echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 ac_cv_lib_nsl_main=no
4566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4567 LIBS=$ac_check_lib_save_LIBS
4569 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4570 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4571 if test $ac_cv_lib_nsl_main = yes; then
4572 cat >>confdefs.h <<_ACEOF
4573 #define HAVE_LIBNSL 1
4581 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4582 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4583 if test "${ac_cv_lib_socket_main+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 ac_check_lib_save_LIBS=$LIBS
4587 LIBS="-lsocket $LIBS"
4588 cat >conftest.$ac_ext <<_ACEOF
4589 #line $LINENO "configure"
4590 #include "confdefs.h"
4593 #ifdef F77_DUMMY_MAIN
4597 int F77_DUMMY_MAIN() { return 1; }
4607 rm -f conftest.$ac_objext conftest$ac_exeext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4609 (eval $ac_link) 2>&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -s conftest$ac_exeext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_lib_socket_main=yes
4621 echo "$as_me: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4623 ac_cv_lib_socket_main=no
4625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4626 LIBS=$ac_check_lib_save_LIBS
4628 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4629 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4630 if test $ac_cv_lib_socket_main = yes; then
4631 cat >>confdefs.h <<_ACEOF
4632 #define HAVE_LIBSOCKET 1
4635 LIBS="-lsocket $LIBS"
4640 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4641 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4642 if test "${ac_cv_lib_ipc_main+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 ac_check_lib_save_LIBS=$LIBS
4647 cat >conftest.$ac_ext <<_ACEOF
4648 #line $LINENO "configure"
4649 #include "confdefs.h"
4652 #ifdef F77_DUMMY_MAIN
4656 int F77_DUMMY_MAIN() { return 1; }
4666 rm -f conftest.$ac_objext conftest$ac_exeext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4668 (eval $ac_link) 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -s conftest$ac_exeext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_cv_lib_ipc_main=yes
4680 echo "$as_me: failed program was:" >&5
4681 cat conftest.$ac_ext >&5
4682 ac_cv_lib_ipc_main=no
4684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4687 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4688 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4689 if test $ac_cv_lib_ipc_main = yes; then
4690 cat >>confdefs.h <<_ACEOF
4691 #define HAVE_LIBIPC 1
4699 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4700 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4701 if test "${ac_cv_lib_IPC_main+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 ac_check_lib_save_LIBS=$LIBS
4706 cat >conftest.$ac_ext <<_ACEOF
4707 #line $LINENO "configure"
4708 #include "confdefs.h"
4711 #ifdef F77_DUMMY_MAIN
4715 int F77_DUMMY_MAIN() { return 1; }
4725 rm -f conftest.$ac_objext conftest$ac_exeext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4727 (eval $ac_link) 2>&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -s conftest$ac_exeext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_cv_lib_IPC_main=yes
4739 echo "$as_me: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4741 ac_cv_lib_IPC_main=no
4743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4744 LIBS=$ac_check_lib_save_LIBS
4746 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4747 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4748 if test $ac_cv_lib_IPC_main = yes; then
4749 cat >>confdefs.h <<_ACEOF
4750 #define HAVE_LIBIPC 1
4758 echo "$as_me:$LINENO: checking for main in -llc" >&5
4759 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4760 if test "${ac_cv_lib_lc_main+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 ac_check_lib_save_LIBS=$LIBS
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4767 #include "confdefs.h"
4770 #ifdef F77_DUMMY_MAIN
4774 int F77_DUMMY_MAIN() { return 1; }
4784 rm -f conftest.$ac_objext conftest$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -s conftest$ac_exeext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_cv_lib_lc_main=yes
4798 echo "$as_me: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 ac_cv_lib_lc_main=no
4802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4803 LIBS=$ac_check_lib_save_LIBS
4805 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4806 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4807 if test $ac_cv_lib_lc_main = yes; then
4808 cat >>confdefs.h <<_ACEOF
4809 #define HAVE_LIBLC 1
4817 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4818 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4819 if test "${ac_cv_lib_dld_main+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 ac_check_lib_save_LIBS=$LIBS
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 #include "confdefs.h"
4829 #ifdef F77_DUMMY_MAIN
4833 int F77_DUMMY_MAIN() { return 1; }
4843 rm -f conftest.$ac_objext conftest$ac_exeext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4845 (eval $ac_link) 2>&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -s conftest$ac_exeext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_lib_dld_main=yes
4857 echo "$as_me: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 ac_cv_lib_dld_main=no
4861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4862 LIBS=$ac_check_lib_save_LIBS
4864 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4865 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4866 if test $ac_cv_lib_dld_main = yes; then
4867 cat >>confdefs.h <<_ACEOF
4868 #define HAVE_LIBDLD 1
4876 echo "$as_me:$LINENO: checking for main in -lld" >&5
4877 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4878 if test "${ac_cv_lib_ld_main+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 ac_check_lib_save_LIBS=$LIBS
4883 cat >conftest.$ac_ext <<_ACEOF
4884 #line $LINENO "configure"
4885 #include "confdefs.h"
4888 #ifdef F77_DUMMY_MAIN
4892 int F77_DUMMY_MAIN() { return 1; }
4902 rm -f conftest.$ac_objext conftest$ac_exeext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4904 (eval $ac_link) 2>&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -s conftest$ac_exeext'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4914 ac_cv_lib_ld_main=yes
4916 echo "$as_me: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 ac_cv_lib_ld_main=no
4920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4921 LIBS=$ac_check_lib_save_LIBS
4923 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4924 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4925 if test $ac_cv_lib_ld_main = yes; then
4926 cat >>confdefs.h <<_ACEOF
4927 #define HAVE_LIBLD 1
4935 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4936 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4937 if test "${ac_cv_lib_compat_main+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 ac_check_lib_save_LIBS=$LIBS
4941 LIBS="-lcompat $LIBS"
4942 cat >conftest.$ac_ext <<_ACEOF
4943 #line $LINENO "configure"
4944 #include "confdefs.h"
4947 #ifdef F77_DUMMY_MAIN
4951 int F77_DUMMY_MAIN() { return 1; }
4961 rm -f conftest.$ac_objext conftest$ac_exeext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4963 (eval $ac_link) 2>&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -s conftest$ac_exeext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 ac_cv_lib_compat_main=yes
4975 echo "$as_me: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4977 ac_cv_lib_compat_main=no
4979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
4983 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
4984 if test $ac_cv_lib_compat_main = yes; then
4985 cat >>confdefs.h <<_ACEOF
4986 #define HAVE_LIBCOMPAT 1
4989 LIBS="-lcompat $LIBS"
4994 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
4995 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
4996 if test "${ac_cv_lib_BSD_main+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 ac_check_lib_save_LIBS=$LIBS
5001 cat >conftest.$ac_ext <<_ACEOF
5002 #line $LINENO "configure"
5003 #include "confdefs.h"
5006 #ifdef F77_DUMMY_MAIN
5010 int F77_DUMMY_MAIN() { return 1; }
5020 rm -f conftest.$ac_objext conftest$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022 (eval $ac_link) 2>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -s conftest$ac_exeext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_lib_BSD_main=yes
5034 echo "$as_me: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 ac_cv_lib_BSD_main=no
5038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5039 LIBS=$ac_check_lib_save_LIBS
5041 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5042 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5043 if test $ac_cv_lib_BSD_main = yes; then
5044 cat >>confdefs.h <<_ACEOF
5045 #define HAVE_LIBBSD 1
5053 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5054 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5055 if test "${ac_cv_lib_gen_main+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_check_lib_save_LIBS=$LIBS
5060 cat >conftest.$ac_ext <<_ACEOF
5061 #line $LINENO "configure"
5062 #include "confdefs.h"
5065 #ifdef F77_DUMMY_MAIN
5069 int F77_DUMMY_MAIN() { return 1; }
5079 rm -f conftest.$ac_objext conftest$ac_exeext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081 (eval $ac_link) 2>&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -s conftest$ac_exeext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_cv_lib_gen_main=yes
5093 echo "$as_me: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5095 ac_cv_lib_gen_main=no
5097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5098 LIBS=$ac_check_lib_save_LIBS
5100 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5101 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5102 if test $ac_cv_lib_gen_main = yes; then
5103 cat >>confdefs.h <<_ACEOF
5104 #define HAVE_LIBGEN 1
5112 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5113 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5114 if test "${ac_cv_lib_PW_main+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 ac_check_lib_save_LIBS=$LIBS
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5121 #include "confdefs.h"
5124 #ifdef F77_DUMMY_MAIN
5128 int F77_DUMMY_MAIN() { return 1; }
5138 rm -f conftest.$ac_objext conftest$ac_exeext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5140 (eval $ac_link) 2>&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } &&
5144 { ac_try='test -s conftest$ac_exeext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_lib_PW_main=yes
5152 echo "$as_me: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5154 ac_cv_lib_PW_main=no
5156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5157 LIBS=$ac_check_lib_save_LIBS
5159 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5160 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5161 if test $ac_cv_lib_PW_main = yes; then
5162 cat >>confdefs.h <<_ACEOF
5163 #define HAVE_LIBPW 1
5171 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5172 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5173 if test "${ac_cv_lib_resolv_main+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 ac_check_lib_save_LIBS=$LIBS
5177 LIBS="-lresolv $LIBS"
5178 cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5183 #ifdef F77_DUMMY_MAIN
5187 int F77_DUMMY_MAIN() { return 1; }
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199 (eval $ac_link) 2>&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -s conftest$ac_exeext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_lib_resolv_main=yes
5211 echo "$as_me: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5213 ac_cv_lib_resolv_main=no
5215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5216 LIBS=$ac_check_lib_save_LIBS
5218 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5219 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5220 if test $ac_cv_lib_resolv_main = yes; then
5221 cat >>confdefs.h <<_ACEOF
5222 #define HAVE_LIBRESOLV 1
5225 LIBS="-lresolv $LIBS"
5229 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5230 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5231 if test "${ac_cv_search_getopt_long+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 ac_func_search_save_LIBS=$LIBS
5235 ac_cv_search_getopt_long=no
5236 cat >conftest.$ac_ext <<_ACEOF
5237 #line $LINENO "configure"
5238 #include "confdefs.h"
5240 /* Override any gcc2 internal prototype to avoid an error. */
5244 /* We use char because int might match the return type of a gcc2
5245 builtin and then its argument prototype would still apply. */
5246 char getopt_long ();
5247 #ifdef F77_DUMMY_MAIN
5251 int F77_DUMMY_MAIN() { return 1; }
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } &&
5267 { ac_try='test -s conftest$ac_exeext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_cv_search_getopt_long="none required"
5275 echo "$as_me: failed program was:" >&5
5276 cat conftest.$ac_ext >&5
5278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5279 if test "$ac_cv_search_getopt_long" = no; then
5280 for ac_lib in getopt gnugetopt; do
5281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5284 #include "confdefs.h"
5286 /* Override any gcc2 internal prototype to avoid an error. */
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5292 char getopt_long ();
5293 #ifdef F77_DUMMY_MAIN
5297 int F77_DUMMY_MAIN() { return 1; }
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -s conftest$ac_exeext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_cv_search_getopt_long="-l$ac_lib"
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 LIBS=$ac_func_search_save_LIBS
5330 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5331 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5332 if test "$ac_cv_search_getopt_long" != no; then
5333 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5339 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5340 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5341 if test "${ac_cv_lib_unix_main+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 ac_check_lib_save_LIBS=$LIBS
5346 cat >conftest.$ac_ext <<_ACEOF
5347 #line $LINENO "configure"
5348 #include "confdefs.h"
5351 #ifdef F77_DUMMY_MAIN
5355 int F77_DUMMY_MAIN() { return 1; }
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367 (eval $ac_link) 2>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -s conftest$ac_exeext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5377 ac_cv_lib_unix_main=yes
5379 echo "$as_me: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 ac_cv_lib_unix_main=no
5383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5384 LIBS=$ac_check_lib_save_LIBS
5386 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5387 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5388 if test $ac_cv_lib_unix_main = yes; then
5389 cat >>confdefs.h <<_ACEOF
5390 #define HAVE_LIBUNIX 1
5397 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5398 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5399 if test "${ac_cv_search_crypt+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 ac_func_search_save_LIBS=$LIBS
5403 ac_cv_search_crypt=no
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line $LINENO "configure"
5406 #include "confdefs.h"
5408 /* Override any gcc2 internal prototype to avoid an error. */
5412 /* We use char because int might match the return type of a gcc2
5413 builtin and then its argument prototype would still apply. */
5415 #ifdef F77_DUMMY_MAIN
5419 int F77_DUMMY_MAIN() { return 1; }
5429 rm -f conftest.$ac_objext conftest$ac_exeext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5431 (eval $ac_link) 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -s conftest$ac_exeext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_cv_search_crypt="none required"
5443 echo "$as_me: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5447 if test "$ac_cv_search_crypt" = no; then
5448 for ac_lib in crypt; do
5449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5450 cat >conftest.$ac_ext <<_ACEOF
5451 #line $LINENO "configure"
5452 #include "confdefs.h"
5454 /* Override any gcc2 internal prototype to avoid an error. */
5458 /* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
5461 #ifdef F77_DUMMY_MAIN
5465 int F77_DUMMY_MAIN() { return 1; }
5475 rm -f conftest.$ac_objext conftest$ac_exeext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5477 (eval $ac_link) 2>&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } &&
5481 { ac_try='test -s conftest$ac_exeext'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5487 ac_cv_search_crypt="-l$ac_lib"
5490 echo "$as_me: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5496 LIBS=$ac_func_search_save_LIBS
5498 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5499 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5500 if test "$ac_cv_search_crypt" != no; then
5501 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5506 if test "$PORTNAME" = "beos"
5509 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5510 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5511 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 ac_check_lib_save_LIBS=$LIBS
5516 cat >conftest.$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5518 #include "confdefs.h"
5520 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5526 char __inet_ntoa ();
5527 #ifdef F77_DUMMY_MAIN
5531 int F77_DUMMY_MAIN() { return 1; }
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try='test -s conftest$ac_exeext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_cv_lib_bind___inet_ntoa=yes
5555 echo "$as_me: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 ac_cv_lib_bind___inet_ntoa=no
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5562 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5563 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5564 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5565 cat >>confdefs.h <<_ACEOF
5566 #define HAVE_LIBBIND 1
5575 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5576 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5577 if test "${ac_cv_search_fdatasync+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 ac_func_search_save_LIBS=$LIBS
5581 ac_cv_search_fdatasync=no
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 #include "confdefs.h"
5586 /* Override any gcc2 internal prototype to avoid an error. */
5590 /* We use char because int might match the return type of a gcc2
5591 builtin and then its argument prototype would still apply. */
5593 #ifdef F77_DUMMY_MAIN
5597 int F77_DUMMY_MAIN() { return 1; }
5607 rm -f conftest.$ac_objext conftest$ac_exeext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5609 (eval $ac_link) 2>&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -s conftest$ac_exeext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_cv_search_fdatasync="none required"
5621 echo "$as_me: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5625 if test "$ac_cv_search_fdatasync" = no; then
5626 for ac_lib in rt posix4; do
5627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5628 cat >conftest.$ac_ext <<_ACEOF
5629 #line $LINENO "configure"
5630 #include "confdefs.h"
5632 /* Override any gcc2 internal prototype to avoid an error. */
5636 /* We use char because int might match the return type of a gcc2
5637 builtin and then its argument prototype would still apply. */
5639 #ifdef F77_DUMMY_MAIN
5643 int F77_DUMMY_MAIN() { return 1; }
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -s conftest$ac_exeext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 ac_cv_search_fdatasync="-l$ac_lib"
5668 echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5674 LIBS=$ac_func_search_save_LIBS
5676 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5677 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5678 if test "$ac_cv_search_fdatasync" != no; then
5679 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5685 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5686 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5687 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 ac_check_lib_save_LIBS=$LIBS
5691 LIBS="-lcygipc $LIBS"
5692 cat >conftest.$ac_ext <<_ACEOF
5693 #line $LINENO "configure"
5694 #include "confdefs.h"
5696 /* Override any gcc2 internal prototype to avoid an error. */
5700 /* We use char because int might match the return type of a gcc2
5701 builtin and then its argument prototype would still apply. */
5703 #ifdef F77_DUMMY_MAIN
5707 int F77_DUMMY_MAIN() { return 1; }
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -s conftest$ac_exeext'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5729 ac_cv_lib_cygipc_shmget=yes
5731 echo "$as_me: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5733 ac_cv_lib_cygipc_shmget=no
5735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736 LIBS=$ac_check_lib_save_LIBS
5738 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5739 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5740 if test $ac_cv_lib_cygipc_shmget = yes; then
5741 cat >>confdefs.h <<_ACEOF
5742 #define HAVE_LIBCYGIPC 1
5745 LIBS="-lcygipc $LIBS"
5750 if test "$PORTNAME" = "win32"
5753 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5754 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5755 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 ac_check_lib_save_LIBS=$LIBS
5759 LIBS="-lwsock32 $LIBS"
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 #include "confdefs.h"
5765 #ifdef F77_DUMMY_MAIN
5769 int F77_DUMMY_MAIN() { return 1; }
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_cv_lib_wsock32_main=yes
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 ac_cv_lib_wsock32_main=no
5797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5798 LIBS=$ac_check_lib_save_LIBS
5800 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5801 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5802 if test $ac_cv_lib_wsock32_main = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804 #define HAVE_LIBWSOCK32 1
5807 LIBS="-lwsock32 $LIBS"
5813 if test "$with_readline" = yes; then
5815 echo "$as_me:$LINENO: checking for readline" >&5
5816 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5818 if test "${pgac_cv_check_readline+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 pgac_cv_check_readline=no
5822 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5823 for pgac_rllib in -lreadline -ledit ; do
5824 pgac_save_LIBS=$LIBS
5825 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5826 cat >conftest.$ac_ext <<_ACEOF
5827 #line $LINENO "configure"
5828 #include "confdefs.h"
5830 /* Override any gcc2 internal prototype to avoid an error. */
5834 /* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5837 #ifdef F77_DUMMY_MAIN
5841 int F77_DUMMY_MAIN() { return 1; }
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -s conftest$ac_exeext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5864 # NetBSD, OpenBSD, and Irix have a broken linker that does not
5865 # recognize dependent libraries
5866 case $host_os in netbsd* | openbsd* | irix*)
5869 *) pgac_lib=" -lcurses" ;;
5873 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5877 echo "$as_me: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5881 LIBS=$pgac_save_LIBS
5884 LIBS=$pgac_save_LIBS
5888 if test "$pgac_cv_check_readline" != no ; then
5890 cat >>confdefs.h <<\_ACEOF
5891 #define HAVE_LIBREADLINE 1
5894 LIBS="$pgac_cv_check_readline $LIBS"
5895 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5896 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5898 echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5901 if test x"$pgac_cv_check_readline" = x"no"; then
5902 { { echo "$as_me:$LINENO: error: readline library not found
5903 If you have readline already installed, see config.log for details on the
5904 failure. It is possible the compiler isn't looking in the proper directory.
5905 Use --without-readline to disable readline support." >&5
5906 echo "$as_me: error: readline library not found
5907 If you have readline already installed, see config.log for details on the
5908 failure. It is possible the compiler isn't looking in the proper directory.
5909 Use --without-readline to disable readline support." >&2;}
5910 { (exit 1); exit 1; }; }
5914 if test "$with_zlib" = yes; then
5916 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5917 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5918 if test "${ac_cv_lib_z_inflate+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 ac_check_lib_save_LIBS=$LIBS
5923 cat >conftest.$ac_ext <<_ACEOF
5924 #line $LINENO "configure"
5925 #include "confdefs.h"
5927 /* Override any gcc2 internal prototype to avoid an error. */
5931 /* We use char because int might match the return type of a gcc2
5932 builtin and then its argument prototype would still apply. */
5934 #ifdef F77_DUMMY_MAIN
5938 int F77_DUMMY_MAIN() { return 1; }
5948 rm -f conftest.$ac_objext conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950 (eval $ac_link) 2>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -s conftest$ac_exeext'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 ac_cv_lib_z_inflate=yes
5962 echo "$as_me: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 ac_cv_lib_z_inflate=no
5966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5969 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5970 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5971 if test $ac_cv_lib_z_inflate = yes; then
5972 cat >>confdefs.h <<_ACEOF
5979 { { echo "$as_me:$LINENO: error: zlib library not found
5980 If you have zlib already installed, see config.log for details on the
5981 failure. It is possible the compiler isn't looking in the proper directory.
5982 Use --without-zlib to disable zlib support." >&5
5983 echo "$as_me: error: zlib library not found
5984 If you have zlib already installed, see config.log for details on the
5985 failure. It is possible the compiler isn't looking in the proper directory.
5986 Use --without-zlib to disable zlib support." >&2;}
5987 { (exit 1); exit 1; }; }
5992 if test "$enable_spinlocks" = yes; then
5994 cat >>confdefs.h <<\_ACEOF
5995 #define HAVE_SPINLOCKS 1
5999 { echo "$as_me:$LINENO: WARNING:
6000 *** Not using spinlocks will cause poor performance." >&5
6001 echo "$as_me: WARNING:
6002 *** Not using spinlocks will cause poor performance." >&2;}
6005 if test "$with_krb4" = yes ; then
6007 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6008 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6009 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 ac_check_lib_save_LIBS=$LIBS
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 #include "confdefs.h"
6018 /* Override any gcc2 internal prototype to avoid an error. */
6022 /* We use char because int might match the return type of a gcc2
6023 builtin and then its argument prototype would still apply. */
6024 char des_encrypt ();
6025 #ifdef F77_DUMMY_MAIN
6029 int F77_DUMMY_MAIN() { return 1; }
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041 (eval $ac_link) 2>&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -s conftest$ac_exeext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 ac_cv_lib_des_des_encrypt=yes
6053 echo "$as_me: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 ac_cv_lib_des_des_encrypt=no
6057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6058 LIBS=$ac_check_lib_save_LIBS
6060 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6061 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6062 if test $ac_cv_lib_des_des_encrypt = yes; then
6063 cat >>confdefs.h <<_ACEOF
6064 #define HAVE_LIBDES 1
6070 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6071 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6072 { (exit 1); exit 1; }; }
6076 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6077 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6078 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 ac_check_lib_save_LIBS=$LIBS
6083 cat >conftest.$ac_ext <<_ACEOF
6084 #line $LINENO "configure"
6085 #include "confdefs.h"
6087 /* Override any gcc2 internal prototype to avoid an error. */
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6093 char krb_sendauth ();
6094 #ifdef F77_DUMMY_MAIN
6098 int F77_DUMMY_MAIN() { return 1; }
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_lib_krb_krb_sendauth=yes
6122 echo "$as_me: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6124 ac_cv_lib_krb_krb_sendauth=no
6126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6127 LIBS=$ac_check_lib_save_LIBS
6129 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6130 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6131 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6132 cat >>confdefs.h <<_ACEOF
6133 #define HAVE_LIBKRB 1
6139 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6140 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6141 { (exit 1); exit 1; }; }
6145 for ac_func in gethostname
6147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6148 echo "$as_me:$LINENO: checking for $ac_func" >&5
6149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6150 if eval "test \"\${$as_ac_var+set}\" = set"; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157 which can conflict with char $ac_func (); below. */
6159 /* Override any gcc2 internal prototype to avoid an error. */
6163 /* We use char because int might match the return type of a gcc2
6164 builtin and then its argument prototype would still apply. */
6168 #ifdef F77_DUMMY_MAIN
6172 int F77_DUMMY_MAIN() { return 1; }
6177 /* The GNU C library defines this for functions which it implements
6178 to always fail with ENOSYS. Some functions are actually named
6179 something starting with __ and the normal name is an alias. */
6180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 eval "$as_ac_var=yes"
6204 echo "$as_me: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6206 eval "$as_ac_var=no"
6208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6212 if test `eval echo '${'$as_ac_var'}'` = yes; then
6213 cat >>confdefs.h <<_ACEOF
6214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6218 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6225 if test "$with_krb5" = yes ; then
6226 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6227 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6228 if test "${ac_cv_search_com_err+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 ac_func_search_save_LIBS=$LIBS
6232 ac_cv_search_com_err=no
6233 cat >conftest.$ac_ext <<_ACEOF
6234 #line $LINENO "configure"
6235 #include "confdefs.h"
6237 /* Override any gcc2 internal prototype to avoid an error. */
6241 /* We use char because int might match the return type of a gcc2
6242 builtin and then its argument prototype would still apply. */
6244 #ifdef F77_DUMMY_MAIN
6248 int F77_DUMMY_MAIN() { return 1; }
6258 rm -f conftest.$ac_objext conftest$ac_exeext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6260 (eval $ac_link) 2>&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_search_com_err="none required"
6272 echo "$as_me: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6276 if test "$ac_cv_search_com_err" = no; then
6277 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6279 cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 #include "confdefs.h"
6283 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6290 #ifdef F77_DUMMY_MAIN
6294 int F77_DUMMY_MAIN() { return 1; }
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -s conftest$ac_exeext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_cv_search_com_err="-l$ac_lib"
6319 echo "$as_me: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6325 LIBS=$ac_func_search_save_LIBS
6327 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6328 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6329 if test "$ac_cv_search_com_err" != no; then
6330 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6333 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6334 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6335 { (exit 1); exit 1; }; }
6338 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6339 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6340 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 ac_func_search_save_LIBS=$LIBS
6344 ac_cv_search_krb5_encrypt=no
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 #include "confdefs.h"
6349 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6355 char krb5_encrypt ();
6356 #ifdef F77_DUMMY_MAIN
6360 int F77_DUMMY_MAIN() { return 1; }
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372 (eval $ac_link) 2>&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -s conftest$ac_exeext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 ac_cv_search_krb5_encrypt="none required"
6384 echo "$as_me: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6388 if test "$ac_cv_search_krb5_encrypt" = no; then
6389 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6391 cat >conftest.$ac_ext <<_ACEOF
6392 #line $LINENO "configure"
6393 #include "confdefs.h"
6395 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6401 char krb5_encrypt ();
6402 #ifdef F77_DUMMY_MAIN
6406 int F77_DUMMY_MAIN() { return 1; }
6416 rm -f conftest.$ac_objext conftest$ac_exeext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418 (eval $ac_link) 2>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -s conftest$ac_exeext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_cv_search_krb5_encrypt="-l$ac_lib"
6431 echo "$as_me: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6437 LIBS=$ac_func_search_save_LIBS
6439 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6440 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6441 if test "$ac_cv_search_krb5_encrypt" != no; then
6442 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6445 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6446 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6447 { (exit 1); exit 1; }; }
6450 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6451 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6452 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 ac_func_search_save_LIBS=$LIBS
6456 ac_cv_search_krb5_sendauth=no
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 #include "confdefs.h"
6461 /* Override any gcc2 internal prototype to avoid an error. */
6465 /* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */
6467 char krb5_sendauth ();
6468 #ifdef F77_DUMMY_MAIN
6472 int F77_DUMMY_MAIN() { return 1; }
6482 rm -f conftest.$ac_objext conftest$ac_exeext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484 (eval $ac_link) 2>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -s conftest$ac_exeext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 ac_cv_search_krb5_sendauth="none required"
6496 echo "$as_me: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6500 if test "$ac_cv_search_krb5_sendauth" = no; then
6501 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6503 cat >conftest.$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
6505 #include "confdefs.h"
6507 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6513 char krb5_sendauth ();
6514 #ifdef F77_DUMMY_MAIN
6518 int F77_DUMMY_MAIN() { return 1; }
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -s conftest$ac_exeext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_search_krb5_sendauth="-l$ac_lib"
6543 echo "$as_me: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6549 LIBS=$ac_func_search_save_LIBS
6551 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6552 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6553 if test "$ac_cv_search_krb5_sendauth" != no; then
6554 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6557 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6558 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6559 { (exit 1); exit 1; }; }
6564 if test "$with_openssl" = yes ; then
6566 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6567 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6568 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 ac_check_lib_save_LIBS=$LIBS
6572 LIBS="-lcrypto $LIBS"
6573 cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6577 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6583 char CRYPTO_new_ex_data ();
6584 #ifdef F77_DUMMY_MAIN
6588 int F77_DUMMY_MAIN() { return 1; }
6593 CRYPTO_new_ex_data ();
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6612 echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6619 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6620 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6621 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6622 cat >>confdefs.h <<_ACEOF
6623 #define HAVE_LIBCRYPTO 1
6626 LIBS="-lcrypto $LIBS"
6629 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6630 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6631 { (exit 1); exit 1; }; }
6635 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6636 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6637 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 ac_check_lib_save_LIBS=$LIBS
6642 cat >conftest.$ac_ext <<_ACEOF
6643 #line $LINENO "configure"
6644 #include "confdefs.h"
6646 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6652 char SSL_library_init ();
6653 #ifdef F77_DUMMY_MAIN
6657 int F77_DUMMY_MAIN() { return 1; }
6662 SSL_library_init ();
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -s conftest$ac_exeext'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_cv_lib_ssl_SSL_library_init=yes
6681 echo "$as_me: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6683 ac_cv_lib_ssl_SSL_library_init=no
6685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6686 LIBS=$ac_check_lib_save_LIBS
6688 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6689 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6690 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6691 cat >>confdefs.h <<_ACEOF
6692 #define HAVE_LIBSSL 1
6698 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6699 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6700 { (exit 1); exit 1; }; }
6705 if test "$with_pam" = yes ; then
6707 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6708 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6709 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 ac_check_lib_save_LIBS=$LIBS
6714 cat >conftest.$ac_ext <<_ACEOF
6715 #line $LINENO "configure"
6716 #include "confdefs.h"
6718 /* Override any gcc2 internal prototype to avoid an error. */
6722 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */
6725 #ifdef F77_DUMMY_MAIN
6729 int F77_DUMMY_MAIN() { return 1; }
6739 rm -f conftest.$ac_objext conftest$ac_exeext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6741 (eval $ac_link) 2>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -s conftest$ac_exeext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 ac_cv_lib_pam_pam_start=yes
6753 echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6755 ac_cv_lib_pam_pam_start=no
6757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6758 LIBS=$ac_check_lib_save_LIBS
6760 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6761 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6762 if test $ac_cv_lib_pam_pam_start = yes; then
6763 cat >>confdefs.h <<_ACEOF
6764 #define HAVE_LIBPAM 1
6770 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6771 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6772 { (exit 1); exit 1; }; }
6782 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6784 if test "${ac_cv_header_stdc+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6788 #line $LINENO "configure"
6789 #include "confdefs.h"
6796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6799 egrep -v '^ *\+' conftest.er1 >conftest.err
6801 cat conftest.err >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } >/dev/null; then
6804 if test -s conftest.err; then
6805 ac_cpp_err=$ac_c_preproc_warn_flag
6812 if test -z "$ac_cpp_err"; then
6813 ac_cv_header_stdc=yes
6815 echo "$as_me: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6817 ac_cv_header_stdc=no
6819 rm -f conftest.err conftest.$ac_ext
6821 if test $ac_cv_header_stdc = yes; then
6822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6823 cat >conftest.$ac_ext <<_ACEOF
6824 #line $LINENO "configure"
6825 #include "confdefs.h"
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830 egrep "memchr" >/dev/null 2>&1; then
6833 ac_cv_header_stdc=no
6839 if test $ac_cv_header_stdc = yes; then
6840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 #include "confdefs.h"
6847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848 egrep "free" >/dev/null 2>&1; then
6851 ac_cv_header_stdc=no
6857 if test $ac_cv_header_stdc = yes; then
6858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6859 if test "$cross_compiling" = yes; then
6862 cat >conftest.$ac_ext <<_ACEOF
6863 #line $LINENO "configure"
6864 #include "confdefs.h"
6866 #if ((' ' & 0x0FF) == 0x020)
6867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6870 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6871 || ('j' <= (c) && (c) <= 'r') \
6872 || ('s' <= (c) && (c) <= 'z'))
6873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6881 for (i = 0; i < 256; i++)
6882 if (XOR (islower (i), ISLOWER (i))
6883 || toupper (i) != TOUPPER (i))
6888 rm -f conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6901 echo "$as_me: program exited with status $ac_status" >&5
6902 echo "$as_me: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6905 ac_cv_header_stdc=no
6907 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6911 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6912 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6913 if test $ac_cv_header_stdc = yes; then
6915 cat >>confdefs.h <<\_ACEOF
6916 #define STDC_HEADERS 1
6921 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6932 inttypes.h stdint.h unistd.h
6934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6935 echo "$as_me:$LINENO: checking for $ac_header" >&5
6936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 #include "confdefs.h"
6943 $ac_includes_default
6945 #include <$ac_header>
6947 rm -f conftest.$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949 (eval $ac_compile) 2>&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -s conftest.$ac_objext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 eval "$as_ac_Header=yes"
6961 echo "$as_me: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6963 eval "$as_ac_Header=no"
6965 rm -f conftest.$ac_objext conftest.$ac_ext
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6970 cat >>confdefs.h <<_ACEOF
6971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7004 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.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/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7008 echo "$as_me:$LINENO: checking for $ac_header" >&5
7009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7016 # Is the header compilable?
7017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7019 cat >conftest.$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7021 #include "confdefs.h"
7022 $ac_includes_default
7023 #include <$ac_header>
7025 rm -f conftest.$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -s conftest.$ac_objext'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; }; then
7037 ac_header_compiler=yes
7039 echo "$as_me: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7041 ac_header_compiler=no
7043 rm -f conftest.$ac_objext conftest.$ac_ext
7044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7045 echo "${ECHO_T}$ac_header_compiler" >&6
7047 # Is the header present?
7048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7050 cat >conftest.$ac_ext <<_ACEOF
7051 #line $LINENO "configure"
7052 #include "confdefs.h"
7053 #include <$ac_header>
7055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7058 egrep -v '^ *\+' conftest.er1 >conftest.err
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } >/dev/null; then
7063 if test -s conftest.err; then
7064 ac_cpp_err=$ac_c_preproc_warn_flag
7071 if test -z "$ac_cpp_err"; then
7072 ac_header_preproc=yes
7074 echo "$as_me: failed program was:" >&5
7075 cat conftest.$ac_ext >&5
7076 ac_header_preproc=no
7078 rm -f conftest.err conftest.$ac_ext
7079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7080 echo "${ECHO_T}$ac_header_preproc" >&6
7082 # So? What about this header?
7083 case $ac_header_compiler:$ac_header_preproc in
7085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&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: checking for $ac_header" >&5
7098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 eval "$as_ac_Header=$ac_header_preproc"
7104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7109 cat >>confdefs.h <<_ACEOF
7110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7118 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7119 # netinet/in.h is included first.
7121 for ac_header in netinet/in.h
7123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7125 echo "$as_me:$LINENO: checking for $ac_header" >&5
7126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7133 # Is the header compilable?
7134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7137 #line $LINENO "configure"
7138 #include "confdefs.h"
7139 $ac_includes_default
7140 #include <$ac_header>
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -s conftest.$ac_objext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 ac_header_compiler=yes
7156 echo "$as_me: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 ac_header_compiler=no
7160 rm -f conftest.$ac_objext conftest.$ac_ext
7161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7162 echo "${ECHO_T}$ac_header_compiler" >&6
7164 # Is the header present?
7165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7167 cat >conftest.$ac_ext <<_ACEOF
7168 #line $LINENO "configure"
7169 #include "confdefs.h"
7170 #include <$ac_header>
7172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7175 egrep -v '^ *\+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } >/dev/null; then
7180 if test -s conftest.err; then
7181 ac_cpp_err=$ac_c_preproc_warn_flag
7188 if test -z "$ac_cpp_err"; then
7189 ac_header_preproc=yes
7191 echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7193 ac_header_preproc=no
7195 rm -f conftest.err conftest.$ac_ext
7196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7197 echo "${ECHO_T}$ac_header_preproc" >&6
7199 # So? What about this header?
7200 case $ac_header_compiler:$ac_header_preproc in
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7214 echo "$as_me:$LINENO: checking for $ac_header" >&5
7215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 eval "$as_ac_Header=$ac_header_preproc"
7221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7226 cat >>confdefs.h <<_ACEOF
7227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7235 for ac_header in netinet/tcp.h
7237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7238 echo "$as_me:$LINENO: checking for $ac_header" >&5
7239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 cat >conftest.$ac_ext <<_ACEOF
7244 #line $LINENO "configure"
7245 #include "confdefs.h"
7246 $ac_includes_default
7247 #ifdef HAVE_NETINET_IN_H
7248 #include <netinet/in.h>
7252 #include <$ac_header>
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -s conftest.$ac_objext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 eval "$as_ac_Header=yes"
7268 echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 eval "$as_ac_Header=no"
7272 rm -f conftest.$ac_objext conftest.$ac_ext
7274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7277 cat >>confdefs.h <<_ACEOF
7278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7286 if test "$with_readline" = yes; then
7288 for ac_header in readline/readline.h
7290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292 echo "$as_me:$LINENO: checking for $ac_header" >&5
7293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7300 # Is the header compilable?
7301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7303 cat >conftest.$ac_ext <<_ACEOF
7304 #line $LINENO "configure"
7305 #include "confdefs.h"
7306 $ac_includes_default
7307 #include <$ac_header>
7309 rm -f conftest.$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311 (eval $ac_compile) 2>&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -s conftest.$ac_objext'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 ac_header_compiler=yes
7323 echo "$as_me: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 ac_header_compiler=no
7327 rm -f conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7329 echo "${ECHO_T}$ac_header_compiler" >&6
7331 # Is the header present?
7332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7336 #include "confdefs.h"
7337 #include <$ac_header>
7339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7342 egrep -v '^ *\+' conftest.er1 >conftest.err
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } >/dev/null; then
7347 if test -s conftest.err; then
7348 ac_cpp_err=$ac_c_preproc_warn_flag
7355 if test -z "$ac_cpp_err"; then
7356 ac_header_preproc=yes
7358 echo "$as_me: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7360 ac_header_preproc=no
7362 rm -f conftest.err conftest.$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7364 echo "${ECHO_T}$ac_header_preproc" >&6
7366 # So? What about this header?
7367 case $ac_header_compiler:$ac_header_preproc in
7369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7381 echo "$as_me:$LINENO: checking for $ac_header" >&5
7382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 eval "$as_ac_Header=$ac_header_preproc"
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7393 cat >>confdefs.h <<_ACEOF
7394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7399 for ac_header in editline/readline.h
7401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403 echo "$as_me:$LINENO: checking for $ac_header" >&5
7404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411 # Is the header compilable?
7412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7414 cat >conftest.$ac_ext <<_ACEOF
7415 #line $LINENO "configure"
7416 #include "confdefs.h"
7417 $ac_includes_default
7418 #include <$ac_header>
7420 rm -f conftest.$ac_objext
7421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7422 (eval $ac_compile) 2>&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } &&
7426 { ac_try='test -s conftest.$ac_objext'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; }; then
7432 ac_header_compiler=yes
7434 echo "$as_me: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7436 ac_header_compiler=no
7438 rm -f conftest.$ac_objext conftest.$ac_ext
7439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7440 echo "${ECHO_T}$ac_header_compiler" >&6
7442 # Is the header present?
7443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7445 cat >conftest.$ac_ext <<_ACEOF
7446 #line $LINENO "configure"
7447 #include "confdefs.h"
7448 #include <$ac_header>
7450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7453 egrep -v '^ *\+' conftest.er1 >conftest.err
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } >/dev/null; then
7458 if test -s conftest.err; then
7459 ac_cpp_err=$ac_c_preproc_warn_flag
7466 if test -z "$ac_cpp_err"; then
7467 ac_header_preproc=yes
7469 echo "$as_me: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7471 ac_header_preproc=no
7473 rm -f conftest.err conftest.$ac_ext
7474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7475 echo "${ECHO_T}$ac_header_preproc" >&6
7477 # So? What about this header?
7478 case $ac_header_compiler:$ac_header_preproc in
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7492 echo "$as_me:$LINENO: checking for $ac_header" >&5
7493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 eval "$as_ac_Header=$ac_header_preproc"
7499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7504 cat >>confdefs.h <<_ACEOF
7505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7510 for ac_header in readline.h
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7514 echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7522 # Is the header compilable?
7523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 #include "confdefs.h"
7528 $ac_includes_default
7529 #include <$ac_header>
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_header_compiler=yes
7545 echo "$as_me: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7547 ac_header_compiler=no
7549 rm -f conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7551 echo "${ECHO_T}$ac_header_compiler" >&6
7553 # Is the header present?
7554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7557 #line $LINENO "configure"
7558 #include "confdefs.h"
7559 #include <$ac_header>
7561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7564 egrep -v '^ *\+' conftest.er1 >conftest.err
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } >/dev/null; then
7569 if test -s conftest.err; then
7570 ac_cpp_err=$ac_c_preproc_warn_flag
7577 if test -z "$ac_cpp_err"; then
7578 ac_header_preproc=yes
7580 echo "$as_me: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7582 ac_header_preproc=no
7584 rm -f conftest.err conftest.$ac_ext
7585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7586 echo "${ECHO_T}$ac_header_preproc" >&6
7588 # So? What about this header?
7589 case $ac_header_compiler:$ac_header_preproc in
7591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7603 echo "$as_me:$LINENO: checking for $ac_header" >&5
7604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 eval "$as_ac_Header=$ac_header_preproc"
7610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7615 cat >>confdefs.h <<_ACEOF
7616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7620 { { echo "$as_me:$LINENO: error: readline header not found
7621 If you have readline already installed, see config.log for details on the
7622 failure. It is possible the compiler isn't looking in the proper directory.
7623 Use --without-readline to disable readline support." >&5
7624 echo "$as_me: error: readline header not found
7625 If you have readline already installed, see config.log for details on the
7626 failure. It is possible the compiler isn't looking in the proper directory.
7627 Use --without-readline to disable readline support." >&2;}
7628 { (exit 1); exit 1; }; }
7642 for ac_header in readline/history.h
7644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7646 echo "$as_me:$LINENO: checking for $ac_header" >&5
7647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7654 # Is the header compilable?
7655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7657 cat >conftest.$ac_ext <<_ACEOF
7658 #line $LINENO "configure"
7659 #include "confdefs.h"
7660 $ac_includes_default
7661 #include <$ac_header>
7663 rm -f conftest.$ac_objext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7665 (eval $ac_compile) 2>&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -s conftest.$ac_objext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_header_compiler=yes
7677 echo "$as_me: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7679 ac_header_compiler=no
7681 rm -f conftest.$ac_objext conftest.$ac_ext
7682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 echo "${ECHO_T}$ac_header_compiler" >&6
7685 # Is the header present?
7686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7688 cat >conftest.$ac_ext <<_ACEOF
7689 #line $LINENO "configure"
7690 #include "confdefs.h"
7691 #include <$ac_header>
7693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7696 egrep -v '^ *\+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } >/dev/null; then
7701 if test -s conftest.err; then
7702 ac_cpp_err=$ac_c_preproc_warn_flag
7709 if test -z "$ac_cpp_err"; then
7710 ac_header_preproc=yes
7712 echo "$as_me: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7714 ac_header_preproc=no
7716 rm -f conftest.err conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7718 echo "${ECHO_T}$ac_header_preproc" >&6
7720 # So? What about this header?
7721 case $ac_header_compiler:$ac_header_preproc in
7723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7735 echo "$as_me:$LINENO: checking for $ac_header" >&5
7736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 eval "$as_ac_Header=$ac_header_preproc"
7742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7747 cat >>confdefs.h <<_ACEOF
7748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7753 for ac_header in editline/history.h
7755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757 echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7765 # Is the header compilable?
7766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7771 $ac_includes_default
7772 #include <$ac_header>
7774 rm -f conftest.$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776 (eval $ac_compile) 2>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_header_compiler=yes
7788 echo "$as_me: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 ac_header_compiler=no
7792 rm -f conftest.$ac_objext conftest.$ac_ext
7793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7794 echo "${ECHO_T}$ac_header_compiler" >&6
7796 # Is the header present?
7797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7799 cat >conftest.$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7801 #include "confdefs.h"
7802 #include <$ac_header>
7804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7807 egrep -v '^ *\+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } >/dev/null; then
7812 if test -s conftest.err; then
7813 ac_cpp_err=$ac_c_preproc_warn_flag
7820 if test -z "$ac_cpp_err"; then
7821 ac_header_preproc=yes
7823 echo "$as_me: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7825 ac_header_preproc=no
7827 rm -f conftest.err conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7829 echo "${ECHO_T}$ac_header_preproc" >&6
7831 # So? What about this header?
7832 case $ac_header_compiler:$ac_header_preproc in
7834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7846 echo "$as_me:$LINENO: checking for $ac_header" >&5
7847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 eval "$as_ac_Header=$ac_header_preproc"
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7858 cat >>confdefs.h <<_ACEOF
7859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7864 for ac_header in history.h
7866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7868 echo "$as_me:$LINENO: checking for $ac_header" >&5
7869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 # Is the header compilable?
7877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882 $ac_includes_default
7883 #include <$ac_header>
7885 rm -f conftest.$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887 (eval $ac_compile) 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_header_compiler=yes
7899 echo "$as_me: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 ac_header_compiler=no
7903 rm -f conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7905 echo "${ECHO_T}$ac_header_compiler" >&6
7907 # Is the header present?
7908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 #include "confdefs.h"
7913 #include <$ac_header>
7915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7918 egrep -v '^ *\+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } >/dev/null; then
7923 if test -s conftest.err; then
7924 ac_cpp_err=$ac_c_preproc_warn_flag
7931 if test -z "$ac_cpp_err"; then
7932 ac_header_preproc=yes
7934 echo "$as_me: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7936 ac_header_preproc=no
7938 rm -f conftest.err conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7940 echo "${ECHO_T}$ac_header_preproc" >&6
7942 # So? What about this header?
7943 case $ac_header_compiler:$ac_header_preproc in
7945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7957 echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 eval "$as_ac_Header=$ac_header_preproc"
7964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7969 cat >>confdefs.h <<_ACEOF
7970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7974 { { echo "$as_me:$LINENO: error: history header not found
7975 If you have readline already installed, see config.log for details on the
7976 failure. It is possible the compiler isn't looking in the proper directory.
7977 Use --without-readline to disable readline support." >&5
7978 echo "$as_me: error: history header not found
7979 If you have readline already installed, see config.log for details on the
7980 failure. It is possible the compiler isn't looking in the proper directory.
7981 Use --without-readline to disable readline support." >&2;}
7982 { (exit 1); exit 1; }; }
7997 if test "$with_zlib" = yes; then
7998 if test "${ac_cv_header_zlib_h+set}" = set; then
7999 echo "$as_me:$LINENO: checking for zlib.h" >&5
8000 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8001 if test "${ac_cv_header_zlib_h+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8005 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8007 # Is the header compilable?
8008 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8009 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8010 cat >conftest.$ac_ext <<_ACEOF
8011 #line $LINENO "configure"
8012 #include "confdefs.h"
8013 $ac_includes_default
8016 rm -f conftest.$ac_objext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018 (eval $ac_compile) 2>&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -s conftest.$ac_objext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 ac_header_compiler=yes
8030 echo "$as_me: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8032 ac_header_compiler=no
8034 rm -f conftest.$ac_objext conftest.$ac_ext
8035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8036 echo "${ECHO_T}$ac_header_compiler" >&6
8038 # Is the header present?
8039 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8040 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8043 #include "confdefs.h"
8046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8049 egrep -v '^ *\+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } >/dev/null; then
8054 if test -s conftest.err; then
8055 ac_cpp_err=$ac_c_preproc_warn_flag
8062 if test -z "$ac_cpp_err"; then
8063 ac_header_preproc=yes
8065 echo "$as_me: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8067 ac_header_preproc=no
8069 rm -f conftest.err conftest.$ac_ext
8070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8071 echo "${ECHO_T}$ac_header_preproc" >&6
8073 # So? What about this header?
8074 case $ac_header_compiler:$ac_header_preproc in
8076 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8077 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8079 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8081 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8082 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8084 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8086 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8088 echo "$as_me:$LINENO: checking for zlib.h" >&5
8089 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8090 if test "${ac_cv_header_zlib_h+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 ac_cv_header_zlib_h=$ac_header_preproc
8095 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8096 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8099 if test $ac_cv_header_zlib_h = yes; then
8102 { { echo "$as_me:$LINENO: error: zlib header not found
8103 If you have zlib already installed, see config.log for details on the
8104 failure. It is possible the compiler isn't looking in the proper directory.
8105 Use --without-zlib to disable zlib support." >&5
8106 echo "$as_me: error: zlib header not found
8107 If you have zlib already installed, see config.log for details on the
8108 failure. It is possible the compiler isn't looking in the proper directory.
8109 Use --without-zlib to disable zlib support." >&2;}
8110 { (exit 1); exit 1; }; }
8116 if test "$with_krb4" = yes ; then
8117 if test "${ac_cv_header_krb_h+set}" = set; then
8118 echo "$as_me:$LINENO: checking for krb.h" >&5
8119 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8120 if test "${ac_cv_header_krb_h+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8124 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8126 # Is the header compilable?
8127 echo "$as_me:$LINENO: checking krb.h usability" >&5
8128 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8129 cat >conftest.$ac_ext <<_ACEOF
8130 #line $LINENO "configure"
8131 #include "confdefs.h"
8132 $ac_includes_default
8135 rm -f conftest.$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137 (eval $ac_compile) 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -s conftest.$ac_objext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_header_compiler=yes
8149 echo "$as_me: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 ac_header_compiler=no
8153 rm -f conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155 echo "${ECHO_T}$ac_header_compiler" >&6
8157 # Is the header present?
8158 echo "$as_me:$LINENO: checking krb.h presence" >&5
8159 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8161 #line $LINENO "configure"
8162 #include "confdefs.h"
8165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8168 egrep -v '^ *\+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } >/dev/null; then
8173 if test -s conftest.err; then
8174 ac_cpp_err=$ac_c_preproc_warn_flag
8181 if test -z "$ac_cpp_err"; then
8182 ac_header_preproc=yes
8184 echo "$as_me: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8186 ac_header_preproc=no
8188 rm -f conftest.err conftest.$ac_ext
8189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8190 echo "${ECHO_T}$ac_header_preproc" >&6
8192 # So? What about this header?
8193 case $ac_header_compiler:$ac_header_preproc in
8195 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8196 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8198 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8200 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8201 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8203 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8204 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8205 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8207 echo "$as_me:$LINENO: checking for krb.h" >&5
8208 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8209 if test "${ac_cv_header_krb_h+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 ac_cv_header_krb_h=$ac_header_preproc
8214 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8215 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8218 if test $ac_cv_header_krb_h = yes; then
8221 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8222 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8223 { (exit 1); exit 1; }; }
8229 if test "$with_krb5" = yes ; then
8230 if test "${ac_cv_header_krb5_h+set}" = set; then
8231 echo "$as_me:$LINENO: checking for krb5.h" >&5
8232 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8233 if test "${ac_cv_header_krb5_h+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8237 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8239 # Is the header compilable?
8240 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8241 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line $LINENO "configure"
8244 #include "confdefs.h"
8245 $ac_includes_default
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 krb5.h presence" >&5
8272 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 #include "confdefs.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: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8309 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8311 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8313 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8314 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8316 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8320 echo "$as_me:$LINENO: checking for krb5.h" >&5
8321 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_krb5_h+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 ac_cv_header_krb5_h=$ac_header_preproc
8327 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8331 if test $ac_cv_header_krb5_h = yes; then
8334 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8335 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8336 { (exit 1); exit 1; }; }
8340 if test "${ac_cv_header_com_err_h+set}" = set; then
8341 echo "$as_me:$LINENO: checking for com_err.h" >&5
8342 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8343 if test "${ac_cv_header_com_err_h+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8347 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8349 # Is the header compilable?
8350 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8351 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 #include "confdefs.h"
8355 $ac_includes_default
8356 #include <com_err.h>
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -s conftest.$ac_objext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_header_compiler=yes
8372 echo "$as_me: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8374 ac_header_compiler=no
8376 rm -f conftest.$ac_objext conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 echo "${ECHO_T}$ac_header_compiler" >&6
8380 # Is the header present?
8381 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8382 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8386 #include <com_err.h>
8388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8391 egrep -v '^ *\+' conftest.er1 >conftest.err
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } >/dev/null; then
8396 if test -s conftest.err; then
8397 ac_cpp_err=$ac_c_preproc_warn_flag
8404 if test -z "$ac_cpp_err"; then
8405 ac_header_preproc=yes
8407 echo "$as_me: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8409 ac_header_preproc=no
8411 rm -f conftest.err conftest.$ac_ext
8412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8413 echo "${ECHO_T}$ac_header_preproc" >&6
8415 # So? What about this header?
8416 case $ac_header_compiler:$ac_header_preproc in
8418 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8419 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8420 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8421 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8423 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8424 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8426 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8428 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8430 echo "$as_me:$LINENO: checking for com_err.h" >&5
8431 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8432 if test "${ac_cv_header_com_err_h+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 ac_cv_header_com_err_h=$ac_header_preproc
8437 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8438 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8441 if test $ac_cv_header_com_err_h = yes; then
8444 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8445 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8446 { (exit 1); exit 1; }; }
8452 if test "$with_openssl" = yes ; then
8453 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8454 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8455 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8456 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8460 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8462 # Is the header compilable?
8463 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8464 echo $ECHO_N "checking openssl/ssl.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/ssl.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/ssl.h presence" >&5
8495 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8499 #include <openssl/ssl.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/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8532 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8536 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8541 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8543 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8544 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8545 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8550 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8554 if test $ac_cv_header_openssl_ssl_h = yes; then
8557 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8558 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8559 { (exit 1); exit 1; }; }
8563 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8564 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8565 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8566 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8570 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8572 # Is the header compilable?
8573 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8574 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8577 #include "confdefs.h"
8578 $ac_includes_default
8579 #include <openssl/err.h>
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_header_compiler=yes
8595 echo "$as_me: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8597 ac_header_compiler=no
8599 rm -f conftest.$ac_objext conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8601 echo "${ECHO_T}$ac_header_compiler" >&6
8603 # Is the header present?
8604 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8605 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 #include "confdefs.h"
8609 #include <openssl/err.h>
8611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8614 egrep -v '^ *\+' conftest.er1 >conftest.err
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } >/dev/null; then
8619 if test -s conftest.err; then
8620 ac_cpp_err=$ac_c_preproc_warn_flag
8627 if test -z "$ac_cpp_err"; then
8628 ac_header_preproc=yes
8630 echo "$as_me: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 ac_header_preproc=no
8634 rm -f conftest.err conftest.$ac_ext
8635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8636 echo "${ECHO_T}$ac_header_preproc" >&6
8638 # So? What about this header?
8639 case $ac_header_compiler:$ac_header_preproc in
8641 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8642 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8644 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8646 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8647 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8649 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8653 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8654 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8655 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 ac_cv_header_openssl_err_h=$ac_header_preproc
8660 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8661 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8664 if test $ac_cv_header_openssl_err_h = yes; then
8667 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8668 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8669 { (exit 1); exit 1; }; }
8675 if test "$with_pam" = yes ; then
8677 for ac_header in security/pam_appl.h
8679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8681 echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8689 # Is the header compilable?
8690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8692 cat >conftest.$ac_ext <<_ACEOF
8693 #line $LINENO "configure"
8694 #include "confdefs.h"
8695 $ac_includes_default
8696 #include <$ac_header>
8698 rm -f conftest.$ac_objext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700 (eval $ac_compile) 2>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_header_compiler=yes
8712 echo "$as_me: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8714 ac_header_compiler=no
8716 rm -f conftest.$ac_objext conftest.$ac_ext
8717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8718 echo "${ECHO_T}$ac_header_compiler" >&6
8720 # Is the header present?
8721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8723 cat >conftest.$ac_ext <<_ACEOF
8724 #line $LINENO "configure"
8725 #include "confdefs.h"
8726 #include <$ac_header>
8728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8731 egrep -v '^ *\+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } >/dev/null; then
8736 if test -s conftest.err; then
8737 ac_cpp_err=$ac_c_preproc_warn_flag
8744 if test -z "$ac_cpp_err"; then
8745 ac_header_preproc=yes
8747 echo "$as_me: failed program was:" >&5
8748 cat conftest.$ac_ext >&5
8749 ac_header_preproc=no
8751 rm -f conftest.err conftest.$ac_ext
8752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8753 echo "${ECHO_T}$ac_header_preproc" >&6
8755 # So? What about this header?
8756 case $ac_header_compiler:$ac_header_preproc in
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8770 echo "$as_me:$LINENO: checking for $ac_header" >&5
8771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 eval "$as_ac_Header=$ac_header_preproc"
8777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8782 cat >>confdefs.h <<_ACEOF
8783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 for ac_header in pam/pam_appl.h
8790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8792 echo "$as_me:$LINENO: checking for $ac_header" >&5
8793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8800 # Is the header compilable?
8801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8806 $ac_includes_default
8807 #include <$ac_header>
8809 rm -f conftest.$ac_objext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8811 (eval $ac_compile) 2>&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -s conftest.$ac_objext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_header_compiler=yes
8823 echo "$as_me: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8825 ac_header_compiler=no
8827 rm -f conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8829 echo "${ECHO_T}$ac_header_compiler" >&6
8831 # Is the header present?
8832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line $LINENO "configure"
8836 #include "confdefs.h"
8837 #include <$ac_header>
8839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8842 egrep -v '^ *\+' conftest.er1 >conftest.err
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } >/dev/null; then
8847 if test -s conftest.err; then
8848 ac_cpp_err=$ac_c_preproc_warn_flag
8855 if test -z "$ac_cpp_err"; then
8856 ac_header_preproc=yes
8858 echo "$as_me: failed program was:" >&5
8859 cat conftest.$ac_ext >&5
8860 ac_header_preproc=no
8862 rm -f conftest.err conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864 echo "${ECHO_T}$ac_header_preproc" >&6
8866 # So? What about this header?
8867 case $ac_header_compiler:$ac_header_preproc in
8869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8881 echo "$as_me:$LINENO: checking for $ac_header" >&5
8882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 eval "$as_ac_Header=$ac_header_preproc"
8888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8893 cat >>confdefs.h <<_ACEOF
8894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8898 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8899 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8900 { (exit 1); exit 1; }; }
8911 if test "$with_rendezvous" = yes ; then
8912 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8913 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8914 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8915 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8919 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8921 # Is the header compilable?
8922 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8923 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8926 #include "confdefs.h"
8927 $ac_includes_default
8928 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8930 rm -f conftest.$ac_objext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932 (eval $ac_compile) 2>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -s conftest.$ac_objext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_header_compiler=yes
8944 echo "$as_me: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8946 ac_header_compiler=no
8948 rm -f conftest.$ac_objext conftest.$ac_ext
8949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950 echo "${ECHO_T}$ac_header_compiler" >&6
8952 # Is the header present?
8953 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
8954 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8957 #include "confdefs.h"
8958 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8963 egrep -v '^ *\+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev/null; then
8968 if test -s conftest.err; then
8969 ac_cpp_err=$ac_c_preproc_warn_flag
8976 if test -z "$ac_cpp_err"; then
8977 ac_header_preproc=yes
8979 echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_header_preproc=no
8983 rm -f conftest.err conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985 echo "${ECHO_T}$ac_header_preproc" >&6
8987 # So? What about this header?
8988 case $ac_header_compiler:$ac_header_preproc in
8990 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
8991 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
8993 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
8995 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9002 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9003 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9004 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9009 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9010 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9013 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9016 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9017 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9018 { (exit 1); exit 1; }; }
9026 ## Types, structures, compiler characteristics
9030 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9032 if test "${ac_cv_c_const+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 cat >conftest.$ac_ext <<_ACEOF
9036 #line $LINENO "configure"
9037 #include "confdefs.h"
9039 #ifdef F77_DUMMY_MAIN
9043 int F77_DUMMY_MAIN() { return 1; }
9048 /* FIXME: Include the comments suggested by Paul. */
9050 /* Ultrix mips cc rejects this. */
9051 typedef int charset[2];
9053 /* SunOS 4.1.1 cc rejects this. */
9054 char const *const *ccp;
9056 /* NEC SVR4.0.2 mips cc rejects this. */
9057 struct point {int x, y;};
9058 static struct point const zero = {0,0};
9059 /* AIX XL C 1.02.0.0 rejects this.
9060 It does not let you subtract one const X* pointer from another in
9061 an arm of an if-expression whose if-part is not a constant
9063 const char *g = "string";
9064 ccp = &g + (g ? g-g : 0);
9065 /* HPUX 7.0 cc rejects these. */
9068 ccp = (char const *const *) p;
9069 { /* SCO 3.2v4 cc rejects this. */
9071 char const *s = 0 ? (char *) 0 : (char const *) 0;
9075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9077 const int *foo = &x[0];
9080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9081 typedef const int *iptr;
9085 { /* AIX XL C 1.02.0.0 rejects this saying
9086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9087 struct s { int j; const int *ap[3]; };
9088 struct s *b; b->j = 5;
9090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101 (eval $ac_compile) 2>&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -s conftest.$ac_objext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9113 echo "$as_me: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9117 rm -f conftest.$ac_objext conftest.$ac_ext
9119 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9120 echo "${ECHO_T}$ac_cv_c_const" >&6
9121 if test $ac_cv_c_const = no; then
9123 cat >>confdefs.h <<\_ACEOF
9129 echo "$as_me:$LINENO: checking for inline" >&5
9130 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9131 if test "${ac_cv_c_inline+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 for ac_kw in inline __inline__ __inline; do
9136 cat >conftest.$ac_ext <<_ACEOF
9137 #line $LINENO "configure"
9138 #include "confdefs.h"
9141 static $ac_kw foo_t static_foo () {return 0; }
9142 $ac_kw int foo () {return 0; }
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148 (eval $ac_compile) 2>&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -s conftest.$ac_objext'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; }; then
9158 ac_cv_c_inline=$ac_kw; break
9160 echo "$as_me: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9163 rm -f conftest.$ac_objext conftest.$ac_ext
9167 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9168 echo "${ECHO_T}$ac_cv_c_inline" >&6
9169 case $ac_cv_c_inline in
9172 cat >>confdefs.h <<\_ACEOF
9176 *) cat >>confdefs.h <<_ACEOF
9177 #define inline $ac_cv_c_inline
9182 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9183 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9184 if test "${ac_cv_c_stringize+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 cat >conftest.$ac_ext <<_ACEOF
9188 #line $LINENO "configure"
9189 #include "confdefs.h"
9192 char *s = x(teststring);
9194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9195 egrep "#teststring" >/dev/null 2>&1; then
9196 ac_cv_c_stringize=no
9198 ac_cv_c_stringize=yes
9203 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9204 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9205 if test $ac_cv_c_stringize = yes; then
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_STRINGIZE 1
9213 echo "$as_me:$LINENO: checking for signed types" >&5
9214 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9215 if test "${pgac_cv_c_signed+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 #include "confdefs.h"
9222 #ifdef F77_DUMMY_MAIN
9226 int F77_DUMMY_MAIN() { return 1; }
9231 signed char c; signed short s; signed int i;
9236 rm -f conftest.$ac_objext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238 (eval $ac_compile) 2>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -s conftest.$ac_objext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 pgac_cv_c_signed=yes
9250 echo "$as_me: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9254 rm -f conftest.$ac_objext conftest.$ac_ext
9256 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9257 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9258 if test x"$pgac_cv_c_signed" = xno ; then
9260 cat >>confdefs.h <<\_ACEOF
9265 echo "$as_me:$LINENO: checking for working volatile" >&5
9266 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9267 if test "${ac_cv_c_volatile+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 cat >conftest.$ac_ext <<_ACEOF
9271 #line $LINENO "configure"
9272 #include "confdefs.h"
9274 #ifdef F77_DUMMY_MAIN
9278 int F77_DUMMY_MAIN() { return 1; }
9290 rm -f conftest.$ac_objext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9292 (eval $ac_compile) 2>&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } &&
9296 { ac_try='test -s conftest.$ac_objext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_cv_c_volatile=yes
9304 echo "$as_me: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9308 rm -f conftest.$ac_objext conftest.$ac_ext
9310 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9311 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9312 if test $ac_cv_c_volatile = no; then
9314 cat >>confdefs.h <<\_ACEOF
9320 echo "$as_me:$LINENO: checking for __func__" >&5
9321 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9322 if test "${pgac_cv_funcname_func_support+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9326 #line $LINENO "configure"
9327 #include "confdefs.h"
9329 #ifdef F77_DUMMY_MAIN
9333 int F77_DUMMY_MAIN() { return 1; }
9338 printf("%s\n", __func__);
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 pgac_cv_funcname_func_support=yes
9357 echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 pgac_cv_funcname_func_support=no
9361 rm -f conftest.$ac_objext conftest.$ac_ext
9363 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9364 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9365 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9367 cat >>confdefs.h <<\_ACEOF
9368 #define HAVE_FUNCNAME__FUNC 1
9372 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9373 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9374 if test "${pgac_cv_funcname_function_support+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 cat >conftest.$ac_ext <<_ACEOF
9378 #line $LINENO "configure"
9379 #include "confdefs.h"
9381 #ifdef F77_DUMMY_MAIN
9385 int F77_DUMMY_MAIN() { return 1; }
9390 printf("%s\n", __FUNCTION__);
9395 rm -f conftest.$ac_objext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -s conftest.$ac_objext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 pgac_cv_funcname_function_support=yes
9409 echo "$as_me: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 pgac_cv_funcname_function_support=no
9413 rm -f conftest.$ac_objext conftest.$ac_ext
9415 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9416 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9417 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9419 cat >>confdefs.h <<\_ACEOF
9420 #define HAVE_FUNCNAME__FUNCTION 1
9425 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9426 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9427 if test "${ac_cv_struct_tm+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 #include "confdefs.h"
9433 #include <sys/types.h>
9436 #ifdef F77_DUMMY_MAIN
9440 int F77_DUMMY_MAIN() { return 1; }
9445 struct tm *tp; tp->tm_sec;
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_struct_tm=time.h
9464 echo "$as_me: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 ac_cv_struct_tm=sys/time.h
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9470 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9471 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9472 if test $ac_cv_struct_tm = sys/time.h; then
9474 cat >>confdefs.h <<\_ACEOF
9475 #define TM_IN_SYS_TIME 1
9480 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9481 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9482 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 cat >conftest.$ac_ext <<_ACEOF
9486 #line $LINENO "configure"
9487 #include "confdefs.h"
9488 #include <sys/types.h>
9489 #include <$ac_cv_struct_tm>
9492 #ifdef F77_DUMMY_MAIN
9496 int F77_DUMMY_MAIN() { return 1; }
9501 static struct tm ac_aggr;
9502 if (ac_aggr.tm_zone)
9508 rm -f conftest.$ac_objext
9509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9510 (eval $ac_compile) 2>&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } &&
9514 { ac_try='test -s conftest.$ac_objext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_cv_member_struct_tm_tm_zone=yes
9522 echo "$as_me: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 ac_cv_member_struct_tm_tm_zone=no
9526 rm -f conftest.$ac_objext conftest.$ac_ext
9528 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9529 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9530 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9532 cat >>confdefs.h <<_ACEOF
9533 #define HAVE_STRUCT_TM_TM_ZONE 1
9539 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9541 cat >>confdefs.h <<\_ACEOF
9542 #define HAVE_TM_ZONE 1
9546 echo "$as_me:$LINENO: checking for tzname" >&5
9547 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9548 if test "${ac_cv_var_tzname+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 cat >conftest.$ac_ext <<_ACEOF
9552 #line $LINENO "configure"
9553 #include "confdefs.h"
9555 #ifndef tzname /* For SGI. */
9556 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9559 #ifdef F77_DUMMY_MAIN
9563 int F77_DUMMY_MAIN() { return 1; }
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 (eval $ac_link) 2>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -s conftest$ac_exeext'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9585 ac_cv_var_tzname=yes
9587 echo "$as_me: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9593 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9594 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9595 if test $ac_cv_var_tzname = yes; then
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_TZNAME 1
9603 echo "$as_me:$LINENO: checking for union semun" >&5
9604 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9605 if test "${ac_cv_type_union_semun+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 cat >conftest.$ac_ext <<_ACEOF
9609 #line $LINENO "configure"
9610 #include "confdefs.h"
9611 #include <sys/types.h>
9612 #include <sys/ipc.h>
9613 #include <sys/sem.h>
9615 #ifdef F77_DUMMY_MAIN
9619 int F77_DUMMY_MAIN() { return 1; }
9624 if ((union semun *) 0)
9626 if (sizeof (union semun))
9632 rm -f conftest.$ac_objext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9634 (eval $ac_compile) 2>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 ac_cv_type_union_semun=yes
9646 echo "$as_me: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9648 ac_cv_type_union_semun=no
9650 rm -f conftest.$ac_objext conftest.$ac_ext
9652 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9653 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9654 if test $ac_cv_type_union_semun = yes; then
9656 cat >>confdefs.h <<_ACEOF
9657 #define HAVE_UNION_SEMUN 1
9663 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9664 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9665 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 cat >conftest.$ac_ext <<_ACEOF
9669 #line $LINENO "configure"
9670 #include "confdefs.h"
9671 #include <sys/types.h>
9672 #ifdef HAVE_SYS_UN_H
9677 #ifdef F77_DUMMY_MAIN
9681 int F77_DUMMY_MAIN() { return 1; }
9686 if ((struct sockaddr_un *) 0)
9688 if (sizeof (struct sockaddr_un))
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696 (eval $ac_compile) 2>&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -s conftest.$ac_objext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_type_struct_sockaddr_un=yes
9708 echo "$as_me: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9710 ac_cv_type_struct_sockaddr_un=no
9712 rm -f conftest.$ac_objext conftest.$ac_ext
9714 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9715 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9716 if test $ac_cv_type_struct_sockaddr_un = yes; then
9718 cat >>confdefs.h <<_ACEOF
9719 #define HAVE_STRUCT_SOCKADDR_UN 1
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_UNIX_SOCKETS 1
9729 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9730 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9731 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 cat >conftest.$ac_ext <<_ACEOF
9735 #line $LINENO "configure"
9736 #include "confdefs.h"
9737 #include <sys/types.h>
9738 #ifdef HAVE_SYS_SOCKET_H
9739 #include <sys/socket.h>
9743 #ifdef F77_DUMMY_MAIN
9747 int F77_DUMMY_MAIN() { return 1; }
9752 if ((struct sockaddr_storage *) 0)
9754 if (sizeof (struct sockaddr_storage))
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762 (eval $ac_compile) 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -s conftest.$ac_objext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_type_struct_sockaddr_storage=yes
9774 echo "$as_me: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 ac_cv_type_struct_sockaddr_storage=no
9778 rm -f conftest.$ac_objext conftest.$ac_ext
9780 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9781 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9782 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9784 cat >>confdefs.h <<_ACEOF
9785 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9791 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9792 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9793 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 cat >conftest.$ac_ext <<_ACEOF
9797 #line $LINENO "configure"
9798 #include "confdefs.h"
9799 #include <sys/types.h>
9800 #ifdef HAVE_SYS_SOCKET_H
9801 #include <sys/socket.h>
9805 #ifdef F77_DUMMY_MAIN
9809 int F77_DUMMY_MAIN() { return 1; }
9814 static struct sockaddr_storage ac_aggr;
9815 if (ac_aggr.ss_family)
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -s conftest.$ac_objext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9835 echo "$as_me: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9837 ac_cv_member_struct_sockaddr_storage_ss_family=no
9839 rm -f conftest.$ac_objext conftest.$ac_ext
9841 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9842 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9843 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9845 cat >>confdefs.h <<_ACEOF
9846 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9851 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9852 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9853 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 cat >conftest.$ac_ext <<_ACEOF
9857 #line $LINENO "configure"
9858 #include "confdefs.h"
9859 #include <sys/types.h>
9860 #ifdef HAVE_SYS_SOCKET_H
9861 #include <sys/socket.h>
9865 #ifdef F77_DUMMY_MAIN
9869 int F77_DUMMY_MAIN() { return 1; }
9874 static struct sockaddr_storage ac_aggr;
9875 if (ac_aggr.__ss_family)
9881 rm -f conftest.$ac_objext
9882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883 (eval $ac_compile) 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -s conftest.$ac_objext'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_member_struct_sockaddr_storage___ss_family=yes
9895 echo "$as_me: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9897 ac_cv_member_struct_sockaddr_storage___ss_family=no
9899 rm -f conftest.$ac_objext conftest.$ac_ext
9901 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9902 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9903 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9905 cat >>confdefs.h <<_ACEOF
9906 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9911 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9912 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9913 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 cat >conftest.$ac_ext <<_ACEOF
9917 #line $LINENO "configure"
9918 #include "confdefs.h"
9919 #include <sys/types.h>
9920 #ifdef HAVE_SYS_SOCKET_H
9921 #include <sys/socket.h>
9925 #ifdef F77_DUMMY_MAIN
9929 int F77_DUMMY_MAIN() { return 1; }
9934 static struct sockaddr_storage ac_aggr;
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943 (eval $ac_compile) 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -s conftest.$ac_objext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 ac_cv_member_struct_sockaddr_storage_ss_len=yes
9955 echo "$as_me: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 ac_cv_member_struct_sockaddr_storage_ss_len=no
9959 rm -f conftest.$ac_objext conftest.$ac_ext
9961 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
9962 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
9963 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
9971 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
9972 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
9973 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9978 #include "confdefs.h"
9979 #include <sys/types.h>
9980 #ifdef HAVE_SYS_SOCKET_H
9981 #include <sys/socket.h>
9985 #ifdef F77_DUMMY_MAIN
9989 int F77_DUMMY_MAIN() { return 1; }
9994 static struct sockaddr_storage ac_aggr;
9995 if (ac_aggr.__ss_len)
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003 (eval $ac_compile) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -s conftest.$ac_objext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10015 echo "$as_me: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10017 ac_cv_member_struct_sockaddr_storage___ss_len=no
10019 rm -f conftest.$ac_objext conftest.$ac_ext
10021 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10022 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10023 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10031 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10032 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10033 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 cat >conftest.$ac_ext <<_ACEOF
10037 #line $LINENO "configure"
10038 #include "confdefs.h"
10039 #include <sys/types.h>
10040 #ifdef HAVE_SYS_SOCKET_H
10041 #include <sys/socket.h>
10045 #ifdef F77_DUMMY_MAIN
10046 # ifdef __cplusplus
10049 int F77_DUMMY_MAIN() { return 1; }
10054 static struct sockaddr ac_aggr;
10055 if (ac_aggr.sa_len)
10061 rm -f conftest.$ac_objext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063 (eval $ac_compile) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -s conftest.$ac_objext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_member_struct_sockaddr_sa_len=yes
10075 echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 ac_cv_member_struct_sockaddr_sa_len=no
10079 rm -f conftest.$ac_objext conftest.$ac_ext
10081 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10082 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10083 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10085 cat >>confdefs.h <<_ACEOF
10086 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10092 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10093 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10094 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 #include "confdefs.h"
10100 #include <sys/types.h>
10101 #include <sys/socket.h>
10105 #ifdef F77_DUMMY_MAIN
10106 # ifdef __cplusplus
10109 int F77_DUMMY_MAIN() { return 1; }
10114 if ((struct addrinfo *) 0)
10116 if (sizeof (struct addrinfo))
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -s conftest.$ac_objext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_type_struct_addrinfo=yes
10136 echo "$as_me: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 ac_cv_type_struct_addrinfo=no
10140 rm -f conftest.$ac_objext conftest.$ac_ext
10142 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10143 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10144 if test $ac_cv_type_struct_addrinfo = yes; then
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE_STRUCT_ADDRINFO 1
10154 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10155 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10156 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 #include "confdefs.h"
10162 #include <sys/param.h>
10163 #include <sys/types.h>
10164 #include <sys/socket.h>
10165 #include <sys/ucred.h>
10167 #ifdef F77_DUMMY_MAIN
10168 # ifdef __cplusplus
10171 int F77_DUMMY_MAIN() { return 1; }
10176 if ((struct cmsgcred *) 0)
10178 if (sizeof (struct cmsgcred))
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } &&
10190 { ac_try='test -s conftest.$ac_objext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 ac_cv_type_struct_cmsgcred=yes
10198 echo "$as_me: failed program was:" >&5
10199 cat conftest.$ac_ext >&5
10200 ac_cv_type_struct_cmsgcred=no
10202 rm -f conftest.$ac_objext conftest.$ac_ext
10204 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10205 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10206 if test $ac_cv_type_struct_cmsgcred = yes; then
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_STRUCT_CMSGCRED 1
10214 echo "$as_me:$LINENO: checking for struct fcred" >&5
10215 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10216 if test "${ac_cv_type_struct_fcred+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 #include "confdefs.h"
10222 #include <sys/param.h>
10223 #include <sys/types.h>
10224 #include <sys/socket.h>
10225 #include <sys/ucred.h>
10227 #ifdef F77_DUMMY_MAIN
10228 # ifdef __cplusplus
10231 int F77_DUMMY_MAIN() { return 1; }
10236 if ((struct fcred *) 0)
10238 if (sizeof (struct fcred))
10244 rm -f conftest.$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246 (eval $ac_compile) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try='test -s conftest.$ac_objext'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10256 ac_cv_type_struct_fcred=yes
10258 echo "$as_me: failed program was:" >&5
10259 cat conftest.$ac_ext >&5
10260 ac_cv_type_struct_fcred=no
10262 rm -f conftest.$ac_objext conftest.$ac_ext
10264 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10265 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10266 if test $ac_cv_type_struct_fcred = yes; then
10268 cat >>confdefs.h <<_ACEOF
10269 #define HAVE_STRUCT_FCRED 1
10274 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10275 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10276 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10281 #include "confdefs.h"
10282 #include <sys/param.h>
10283 #include <sys/types.h>
10284 #include <sys/socket.h>
10285 #include <sys/ucred.h>
10287 #ifdef F77_DUMMY_MAIN
10288 # ifdef __cplusplus
10291 int F77_DUMMY_MAIN() { return 1; }
10296 if ((struct sockcred *) 0)
10298 if (sizeof (struct sockcred))
10304 rm -f conftest.$ac_objext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306 (eval $ac_compile) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } &&
10310 { ac_try='test -s conftest.$ac_objext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 ac_cv_type_struct_sockcred=yes
10318 echo "$as_me: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 ac_cv_type_struct_sockcred=no
10322 rm -f conftest.$ac_objext conftest.$ac_ext
10324 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10325 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10326 if test $ac_cv_type_struct_sockcred = yes; then
10328 cat >>confdefs.h <<_ACEOF
10329 #define HAVE_STRUCT_SOCKCRED 1
10336 echo "$as_me:$LINENO: checking for struct option" >&5
10337 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10338 if test "${ac_cv_type_struct_option+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 cat >conftest.$ac_ext <<_ACEOF
10342 #line $LINENO "configure"
10343 #include "confdefs.h"
10344 #ifdef HAVE_GETOPT_H
10345 #include <getopt.h>
10348 #ifdef F77_DUMMY_MAIN
10349 # ifdef __cplusplus
10352 int F77_DUMMY_MAIN() { return 1; }
10357 if ((struct option *) 0)
10359 if (sizeof (struct option))
10365 rm -f conftest.$ac_objext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } &&
10371 { ac_try='test -s conftest.$ac_objext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 ac_cv_type_struct_option=yes
10379 echo "$as_me: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381 ac_cv_type_struct_option=no
10383 rm -f conftest.$ac_objext conftest.$ac_ext
10385 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10386 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10387 if test $ac_cv_type_struct_option = yes; then
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_STRUCT_OPTION 1
10397 if test "$with_zlib" = yes; then
10398 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10399 # did not). While we could work around the lack of z_streamp, it
10400 # seems unwise to encourage people to use such old zlib versions...
10401 echo "$as_me:$LINENO: checking for z_streamp" >&5
10402 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10403 if test "${ac_cv_type_z_streamp+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 cat >conftest.$ac_ext <<_ACEOF
10407 #line $LINENO "configure"
10408 #include "confdefs.h"
10411 #ifdef F77_DUMMY_MAIN
10412 # ifdef __cplusplus
10415 int F77_DUMMY_MAIN() { return 1; }
10420 if ((z_streamp *) 0)
10422 if (sizeof (z_streamp))
10428 rm -f conftest.$ac_objext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430 (eval $ac_compile) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -s conftest.$ac_objext'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 ac_cv_type_z_streamp=yes
10442 echo "$as_me: failed program was:" >&5
10443 cat conftest.$ac_ext >&5
10444 ac_cv_type_z_streamp=no
10446 rm -f conftest.$ac_objext conftest.$ac_ext
10448 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10449 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10450 if test $ac_cv_type_z_streamp = yes; then
10453 { { echo "$as_me:$LINENO: error: zlib version is too old
10454 Use --without-zlib to disable zlib support." >&5
10455 echo "$as_me: error: zlib version is too old
10456 Use --without-zlib to disable zlib support." >&2;}
10457 { (exit 1); exit 1; }; }
10462 if test "$with_krb5" = yes; then
10463 # Check for differences between MIT and Heimdal (KTH) releases
10464 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10465 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10466 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 cat >conftest.$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10471 #include "confdefs.h"
10474 #ifdef F77_DUMMY_MAIN
10475 # ifdef __cplusplus
10478 int F77_DUMMY_MAIN() { return 1; }
10483 static krb5_ticket ac_aggr;
10484 if (ac_aggr.enc_part2)
10490 rm -f conftest.$ac_objext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10492 (eval $ac_compile) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 { ac_try='test -s conftest.$ac_objext'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
10502 ac_cv_member_krb5_ticket_enc_part2=yes
10504 echo "$as_me: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10506 ac_cv_member_krb5_ticket_enc_part2=no
10508 rm -f conftest.$ac_objext conftest.$ac_ext
10510 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10511 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10512 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_KRB5_TICKET_ENC_PART2 1
10520 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10521 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10522 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 cat >conftest.$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10527 #include "confdefs.h"
10530 #ifdef F77_DUMMY_MAIN
10531 # ifdef __cplusplus
10534 int F77_DUMMY_MAIN() { return 1; }
10539 static krb5_ticket ac_aggr;
10540 if (ac_aggr.client)
10546 rm -f conftest.$ac_objext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548 (eval $ac_compile) 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try='test -s conftest.$ac_objext'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 ac_cv_member_krb5_ticket_client=yes
10560 echo "$as_me: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 ac_cv_member_krb5_ticket_client=no
10564 rm -f conftest.$ac_objext conftest.$ac_ext
10566 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10567 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10568 if test $ac_cv_member_krb5_ticket_client = yes; then
10570 cat >>confdefs.h <<_ACEOF
10571 #define HAVE_KRB5_TICKET_CLIENT 1
10576 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10577 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10578 { (exit 1); exit 1; }; }
10583 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10584 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10585 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 cat >conftest.$ac_ext <<_ACEOF
10589 #line $LINENO "configure"
10590 #include "confdefs.h"
10593 #ifdef F77_DUMMY_MAIN
10594 # ifdef __cplusplus
10597 int F77_DUMMY_MAIN() { return 1; }
10602 static krb5_error ac_aggr;
10603 if (ac_aggr.text.data)
10609 rm -f conftest.$ac_objext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611 (eval $ac_compile) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -s conftest.$ac_objext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_member_krb5_error_text_data=yes
10623 echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 ac_cv_member_krb5_error_text_data=no
10627 rm -f conftest.$ac_objext conftest.$ac_ext
10629 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10630 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10631 if test $ac_cv_member_krb5_error_text_data = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10639 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10640 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10641 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 #include "confdefs.h"
10649 #ifdef F77_DUMMY_MAIN
10650 # ifdef __cplusplus
10653 int F77_DUMMY_MAIN() { return 1; }
10658 static krb5_error ac_aggr;
10659 if (ac_aggr.e_data)
10665 rm -f conftest.$ac_objext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10667 (eval $ac_compile) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_member_krb5_error_e_data=yes
10679 echo "$as_me: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 ac_cv_member_krb5_error_e_data=no
10683 rm -f conftest.$ac_objext conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10686 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10687 if test $ac_cv_member_krb5_error_e_data = yes; then
10689 cat >>confdefs.h <<_ACEOF
10690 #define HAVE_KRB5_ERROR_E_DATA 1
10695 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10696 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10697 { (exit 1); exit 1; }; }
10706 ## Functions, global variables
10709 echo "$as_me:$LINENO: checking for int timezone" >&5
10710 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10711 if test "${pgac_cv_var_int_timezone+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 cat >conftest.$ac_ext <<_ACEOF
10715 #line $LINENO "configure"
10716 #include "confdefs.h"
10719 #ifdef F77_DUMMY_MAIN
10720 # ifdef __cplusplus
10723 int F77_DUMMY_MAIN() { return 1; }
10728 res = timezone / 60;
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735 (eval $ac_link) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } &&
10739 { ac_try='test -s conftest$ac_exeext'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 pgac_cv_var_int_timezone=yes
10747 echo "$as_me: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10749 pgac_cv_var_int_timezone=no
10751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10753 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10754 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10755 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10757 cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_INT_TIMEZONE
10762 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10763 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10764 if test "${ac_cv_func_accept_return+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 if test "${ac_cv_func_accept_arg1+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 if test "${ac_cv_func_accept_arg2+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 if test "${ac_cv_func_accept_arg3+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10777 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10778 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10779 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10780 cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10782 #include "confdefs.h"
10783 #ifdef HAVE_SYS_TYPES_H
10784 #include <sys/types.h>
10786 #ifdef HAVE_SYS_SOCKET_H
10787 #include <sys/socket.h>
10789 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10790 #ifdef F77_DUMMY_MAIN
10791 # ifdef __cplusplus
10794 int F77_DUMMY_MAIN() { return 1; }
10804 rm -f conftest.$ac_objext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10806 (eval $ac_compile) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -s conftest.$ac_objext'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_not_found=no; break 4
10818 echo "$as_me: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10822 rm -f conftest.$ac_objext conftest.$ac_ext
10827 if test "$ac_not_found" = yes; then
10828 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10829 echo "$as_me: error: could not determine argument types" >&2;}
10830 { (exit 1); exit 1; }; }
10832 if test "$ac_cv_func_accept_arg3" = "void"; then
10833 ac_cv_func_accept_arg3=int
10843 echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10844 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10846 cat >>confdefs.h <<_ACEOF
10847 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10851 cat >>confdefs.h <<_ACEOF
10852 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10856 cat >>confdefs.h <<_ACEOF
10857 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10861 cat >>confdefs.h <<_ACEOF
10862 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10866 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10867 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10868 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 cat >conftest.$ac_ext <<_ACEOF
10872 #line $LINENO "configure"
10873 #include "confdefs.h"
10874 #include <sys/time.h>
10875 #ifdef F77_DUMMY_MAIN
10876 # ifdef __cplusplus
10879 int F77_DUMMY_MAIN() { return 1; }
10884 struct timeval *tp;
10885 struct timezone *tzp;
10886 gettimeofday(tp,tzp);
10891 rm -f conftest.$ac_objext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10893 (eval $ac_compile) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -s conftest.$ac_objext'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 pgac_cv_func_gettimeofday_1arg=no
10905 echo "$as_me: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10907 pgac_cv_func_gettimeofday_1arg=yes
10909 rm -f conftest.$ac_objext conftest.$ac_ext
10911 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10912 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10913 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10915 cat >>confdefs.h <<\_ACEOF
10916 #define GETTIMEOFDAY_1ARG
10923 # SunOS doesn't handle negative byte comparisons properly with +/- return
10924 echo "$as_me:$LINENO: checking for working memcmp" >&5
10925 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10926 if test "${ac_cv_func_memcmp_working+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 if test "$cross_compiling" = yes; then
10930 ac_cv_func_memcmp_working=no
10932 cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10934 #include "confdefs.h"
10936 #ifdef F77_DUMMY_MAIN
10937 # ifdef __cplusplus
10940 int F77_DUMMY_MAIN() { return 1; }
10946 /* Some versions of memcmp are not 8-bit clean. */
10947 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10948 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10951 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10952 or more and with at least one buffer not starting on a 4-byte boundary.
10953 William Lewis provided this test program. */
10958 for (i = 0; i < 4; i++)
10962 strcpy (a, "--------01111111");
10963 strcpy (b, "--------10000000");
10964 if (memcmp (a, b, 16) >= 0)
10974 rm -f conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_func_memcmp_working=yes
10987 echo "$as_me: program exited with status $ac_status" >&5
10988 echo "$as_me: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10990 ( exit $ac_status )
10991 ac_cv_func_memcmp_working=no
10993 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10996 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10997 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10998 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11019 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
11021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11022 echo "$as_me:$LINENO: checking for $ac_func" >&5
11023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11024 if eval "test \"\${$as_ac_var+set}\" = set"; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 cat >conftest.$ac_ext <<_ACEOF
11028 #line $LINENO "configure"
11029 #include "confdefs.h"
11030 /* System header to define __stub macros and hopefully few prototypes,
11031 which can conflict with char $ac_func (); below. */
11032 #include <assert.h>
11033 /* Override any gcc2 internal prototype to avoid an error. */
11037 /* We use char because int might match the return type of a gcc2
11038 builtin and then its argument prototype would still apply. */
11042 #ifdef F77_DUMMY_MAIN
11043 # ifdef __cplusplus
11046 int F77_DUMMY_MAIN() { return 1; }
11051 /* The GNU C library defines this for functions which it implements
11052 to always fail with ENOSYS. Some functions are actually named
11053 something starting with __ and the normal name is an alias. */
11054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try='test -s conftest$ac_exeext'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }; then
11076 eval "$as_ac_var=yes"
11078 echo "$as_me: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 eval "$as_ac_var=no"
11082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11086 if test `eval echo '${'$as_ac_var'}'` = yes; then
11087 cat >>confdefs.h <<_ACEOF
11088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11095 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11096 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11097 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 cat >conftest.$ac_ext <<_ACEOF
11101 #line $LINENO "configure"
11102 #include "confdefs.h"
11103 #include <unistd.h>
11105 #ifdef F77_DUMMY_MAIN
11106 # ifdef __cplusplus
11109 int F77_DUMMY_MAIN() { return 1; }
11115 char *p = (char *) fdatasync;
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124 (eval $ac_compile) 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11134 ac_cv_have_decl_fdatasync=yes
11136 echo "$as_me: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 ac_cv_have_decl_fdatasync=no
11140 rm -f conftest.$ac_objext conftest.$ac_ext
11142 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11143 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11144 if test $ac_cv_have_decl_fdatasync = yes; then
11146 cat >>confdefs.h <<_ACEOF
11147 #define HAVE_DECL_FDATASYNC 1
11152 cat >>confdefs.h <<_ACEOF
11153 #define HAVE_DECL_FDATASYNC 0
11162 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11163 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11164 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 cat >conftest.$ac_ext <<_ACEOF
11168 #line $LINENO "configure"
11169 #include "confdefs.h"
11170 $ac_includes_default
11171 #include <netinet/in.h>
11173 #ifdef F77_DUMMY_MAIN
11174 # ifdef __cplusplus
11177 int F77_DUMMY_MAIN() { return 1; }
11182 if ((struct sockaddr_in6 *) 0)
11184 if (sizeof (struct sockaddr_in6))
11190 rm -f conftest.$ac_objext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192 (eval $ac_compile) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 ac_cv_type_struct_sockaddr_in6=yes
11204 echo "$as_me: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11206 ac_cv_type_struct_sockaddr_in6=no
11208 rm -f conftest.$ac_objext conftest.$ac_ext
11210 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11211 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11212 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11213 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11214 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11215 if test "${ac_cv_func_inet_ntop+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 cat >conftest.$ac_ext <<_ACEOF
11219 #line $LINENO "configure"
11220 #include "confdefs.h"
11221 /* System header to define __stub macros and hopefully few prototypes,
11222 which can conflict with char inet_ntop (); below. */
11223 #include <assert.h>
11224 /* Override any gcc2 internal prototype to avoid an error. */
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11233 #ifdef F77_DUMMY_MAIN
11234 # ifdef __cplusplus
11237 int F77_DUMMY_MAIN() { return 1; }
11242 /* The GNU C library defines this for functions which it implements
11243 to always fail with ENOSYS. Some functions are actually named
11244 something starting with __ and the normal name is an alias. */
11245 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11257 (eval $ac_link) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } &&
11261 { ac_try='test -s conftest$ac_exeext'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }; then
11267 ac_cv_func_inet_ntop=yes
11269 echo "$as_me: failed program was:" >&5
11270 cat conftest.$ac_ext >&5
11271 ac_cv_func_inet_ntop=no
11273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11275 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11276 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11277 if test $ac_cv_func_inet_ntop = yes; then
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_IPV6 1
11290 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11291 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11292 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 cat >conftest.$ac_ext <<_ACEOF
11296 #line $LINENO "configure"
11297 #include "confdefs.h"
11298 #include <machine/vmparam.h>
11299 #include <sys/exec.h>
11301 #ifdef F77_DUMMY_MAIN
11302 # ifdef __cplusplus
11305 int F77_DUMMY_MAIN() { return 1; }
11310 PS_STRINGS->ps_nargvstr = 1;
11311 PS_STRINGS->ps_argvstr = "foo";
11316 rm -f conftest.$ac_objext conftest$ac_exeext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 pgac_cv_var_PS_STRINGS=yes
11330 echo "$as_me: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11332 pgac_cv_var_PS_STRINGS=no
11334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11337 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11338 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11340 cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_PS_STRINGS
11347 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11348 # is missing. Yes, there are machines that have only one. We may
11349 # also decide to use snprintf.c if snprintf() is present but does not
11350 # have working "long long int" support -- see below.
11352 pgac_need_repl_snprintf=no
11354 for ac_func in snprintf
11356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11357 echo "$as_me:$LINENO: checking for $ac_func" >&5
11358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11359 if eval "test \"\${$as_ac_var+set}\" = set"; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 cat >conftest.$ac_ext <<_ACEOF
11363 #line $LINENO "configure"
11364 #include "confdefs.h"
11365 /* System header to define __stub macros and hopefully few prototypes,
11366 which can conflict with char $ac_func (); below. */
11367 #include <assert.h>
11368 /* Override any gcc2 internal prototype to avoid an error. */
11372 /* We use char because int might match the return type of a gcc2
11373 builtin and then its argument prototype would still apply. */
11377 #ifdef F77_DUMMY_MAIN
11378 # ifdef __cplusplus
11381 int F77_DUMMY_MAIN() { return 1; }
11386 /* The GNU C library defines this for functions which it implements
11387 to always fail with ENOSYS. Some functions are actually named
11388 something starting with __ and the normal name is an alias. */
11389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11399 rm -f conftest.$ac_objext conftest$ac_exeext
11400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11401 (eval $ac_link) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -s conftest$ac_exeext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 eval "$as_ac_var=yes"
11413 echo "$as_me: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11415 eval "$as_ac_var=no"
11417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11421 if test `eval echo '${'$as_ac_var'}'` = yes; then
11422 cat >>confdefs.h <<_ACEOF
11423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11427 pgac_need_repl_snprintf=yes
11432 for ac_func in vsnprintf
11434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11435 echo "$as_me:$LINENO: checking for $ac_func" >&5
11436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11437 if eval "test \"\${$as_ac_var+set}\" = set"; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 #include "confdefs.h"
11443 /* System header to define __stub macros and hopefully few prototypes,
11444 which can conflict with char $ac_func (); below. */
11445 #include <assert.h>
11446 /* Override any gcc2 internal prototype to avoid an error. */
11450 /* We use char because int might match the return type of a gcc2
11451 builtin and then its argument prototype would still apply. */
11455 #ifdef F77_DUMMY_MAIN
11456 # ifdef __cplusplus
11459 int F77_DUMMY_MAIN() { return 1; }
11464 /* The GNU C library defines this for functions which it implements
11465 to always fail with ENOSYS. Some functions are actually named
11466 something starting with __ and the normal name is an alias. */
11467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479 (eval $ac_link) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try='test -s conftest$ac_exeext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 eval "$as_ac_var=yes"
11491 echo "$as_me: failed program was:" >&5
11492 cat conftest.$ac_ext >&5
11493 eval "$as_ac_var=no"
11495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11499 if test `eval echo '${'$as_ac_var'}'` = yes; then
11500 cat >>confdefs.h <<_ACEOF
11501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11505 pgac_need_repl_snprintf=yes
11511 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11512 # include/c.h will provide declarations. Note this is a separate test
11513 # from whether the functions exist in the C library --- there are
11514 # systems that have the functions but don't bother to declare them :-(
11516 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11517 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11518 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 cat >conftest.$ac_ext <<_ACEOF
11522 #line $LINENO "configure"
11523 #include "confdefs.h"
11524 $ac_includes_default
11525 #ifdef F77_DUMMY_MAIN
11526 # ifdef __cplusplus
11529 int F77_DUMMY_MAIN() { return 1; }
11535 char *p = (char *) snprintf;
11542 rm -f conftest.$ac_objext
11543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11544 (eval $ac_compile) 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 ac_cv_have_decl_snprintf=yes
11556 echo "$as_me: failed program was:" >&5
11557 cat conftest.$ac_ext >&5
11558 ac_cv_have_decl_snprintf=no
11560 rm -f conftest.$ac_objext conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11563 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11564 if test $ac_cv_have_decl_snprintf = yes; then
11566 cat >>confdefs.h <<_ACEOF
11567 #define HAVE_DECL_SNPRINTF 1
11572 cat >>confdefs.h <<_ACEOF
11573 #define HAVE_DECL_SNPRINTF 0
11578 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11579 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11580 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 cat >conftest.$ac_ext <<_ACEOF
11584 #line $LINENO "configure"
11585 #include "confdefs.h"
11586 $ac_includes_default
11587 #ifdef F77_DUMMY_MAIN
11588 # ifdef __cplusplus
11591 int F77_DUMMY_MAIN() { return 1; }
11597 char *p = (char *) vsnprintf;
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } &&
11610 { ac_try='test -s conftest.$ac_objext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_have_decl_vsnprintf=yes
11618 echo "$as_me: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 ac_cv_have_decl_vsnprintf=no
11622 rm -f conftest.$ac_objext conftest.$ac_ext
11624 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11625 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11626 if test $ac_cv_have_decl_vsnprintf = yes; then
11628 cat >>confdefs.h <<_ACEOF
11629 #define HAVE_DECL_VSNPRINTF 1
11634 cat >>confdefs.h <<_ACEOF
11635 #define HAVE_DECL_VSNPRINTF 0
11644 # do this one the hard way in case isinf() is a macro
11645 echo "$as_me:$LINENO: checking for isinf" >&5
11646 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11647 if test "${ac_cv_func_isinf+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 cat >conftest.$ac_ext <<_ACEOF
11651 #line $LINENO "configure"
11652 #include "confdefs.h"
11655 #ifdef F77_DUMMY_MAIN
11656 # ifdef __cplusplus
11659 int F77_DUMMY_MAIN() { return 1; }
11664 double x = 0.0; int res = isinf(x);
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11671 (eval $ac_link) 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -s conftest$ac_exeext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_func_isinf=yes
11683 echo "$as_me: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11685 ac_cv_func_isinf=no
11687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11689 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11690 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11692 if test $ac_cv_func_isinf = yes ; then
11694 cat >>confdefs.h <<\_ACEOF
11695 #define HAVE_ISINF 1
11699 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11700 # Look for a way to implement a substitute for isinf()
11705 for ac_func in fpclass fp_class fp_class_d class
11707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708 echo "$as_me:$LINENO: checking for $ac_func" >&5
11709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_var+set}\" = set"; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 /* System header to define __stub macros and hopefully few prototypes,
11717 which can conflict with char $ac_func (); below. */
11718 #include <assert.h>
11719 /* Override any gcc2 internal prototype to avoid an error. */
11723 /* We use char because int might match the return type of a gcc2
11724 builtin and then its argument prototype would still apply. */
11728 #ifdef F77_DUMMY_MAIN
11729 # ifdef __cplusplus
11732 int F77_DUMMY_MAIN() { return 1; }
11737 /* The GNU C library defines this for functions which it implements
11738 to always fail with ENOSYS. Some functions are actually named
11739 something starting with __ and the normal name is an alias. */
11740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752 (eval $ac_link) 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -s conftest$ac_exeext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 eval "$as_ac_var=yes"
11764 echo "$as_me: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11766 eval "$as_ac_var=no"
11768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773 cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11795 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
11797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798 echo "$as_me:$LINENO: checking for $ac_func" >&5
11799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11800 if eval "test \"\${$as_ac_var+set}\" = set"; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11805 #include "confdefs.h"
11806 /* System header to define __stub macros and hopefully few prototypes,
11807 which can conflict with char $ac_func (); below. */
11808 #include <assert.h>
11809 /* Override any gcc2 internal prototype to avoid an error. */
11813 /* We use char because int might match the return type of a gcc2
11814 builtin and then its argument prototype would still apply. */
11818 #ifdef F77_DUMMY_MAIN
11819 # ifdef __cplusplus
11822 int F77_DUMMY_MAIN() { return 1; }
11827 /* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842 (eval $ac_link) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -s conftest$ac_exeext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 eval "$as_ac_var=yes"
11854 echo "$as_me: failed program was:" >&5
11855 cat conftest.$ac_ext >&5
11856 eval "$as_ac_var=no"
11858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11862 if test `eval echo '${'$as_ac_var'}'` = yes; then
11863 cat >>confdefs.h <<_ACEOF
11864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11868 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11874 # system's version of getaddrinfo(), if any, may be used only if we found
11875 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11876 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11878 for ac_func in getaddrinfo
11880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11881 echo "$as_me:$LINENO: checking for $ac_func" >&5
11882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11883 if eval "test \"\${$as_ac_var+set}\" = set"; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 cat >conftest.$ac_ext <<_ACEOF
11887 #line $LINENO "configure"
11888 #include "confdefs.h"
11889 /* System header to define __stub macros and hopefully few prototypes,
11890 which can conflict with char $ac_func (); below. */
11891 #include <assert.h>
11892 /* Override any gcc2 internal prototype to avoid an error. */
11896 /* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11901 #ifdef F77_DUMMY_MAIN
11902 # ifdef __cplusplus
11905 int F77_DUMMY_MAIN() { return 1; }
11910 /* The GNU C library defines this for functions which it implements
11911 to always fail with ENOSYS. Some functions are actually named
11912 something starting with __ and the normal name is an alias. */
11913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925 (eval $ac_link) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -s conftest$ac_exeext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 eval "$as_ac_var=yes"
11937 echo "$as_me: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11939 eval "$as_ac_var=no"
11941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11945 if test `eval echo '${'$as_ac_var'}'` = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11951 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11957 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11960 # similarly, use system's getopt_long() only if system provides struct option.
11961 if test x"$ac_cv_type_struct_option" = xyes ; then
11963 for ac_func in getopt_long
11965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 echo "$as_me:$LINENO: checking for $ac_func" >&5
11967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11968 if eval "test \"\${$as_ac_var+set}\" = set"; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 cat >conftest.$ac_ext <<_ACEOF
11972 #line $LINENO "configure"
11973 #include "confdefs.h"
11974 /* System header to define __stub macros and hopefully few prototypes,
11975 which can conflict with char $ac_func (); below. */
11976 #include <assert.h>
11977 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11986 #ifdef F77_DUMMY_MAIN
11987 # ifdef __cplusplus
11990 int F77_DUMMY_MAIN() { return 1; }
11995 /* The GNU C library defines this for functions which it implements
11996 to always fail with ENOSYS. Some functions are actually named
11997 something starting with __ and the normal name is an alias. */
11998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 eval "$as_ac_var=yes"
12022 echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 eval "$as_ac_var=no"
12026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031 cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12036 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12042 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12045 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12046 # We override the previous test that said fseeko/ftello didn't exist
12047 # OS tests are also done in include/c.h and port/fseeko.c
12048 case $host_os in bsdi*|netbsd*)
12049 ac_cv_func_fseeko=yes
12052 # Solaris has a very slow qsort in certain cases, so we replace it.
12053 case $host_os in solaris*)
12054 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12058 case $host_os in mingw*)
12059 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12060 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12061 LIBOBJS="$LIBOBJS kill.$ac_objext"
12062 LIBOBJS="$LIBOBJS open.$ac_objext"
12063 LIBOBJS="$LIBOBJS rand.$ac_objext"
12065 cat >>confdefs.h <<\_ACEOF
12066 #define HAVE_SYMLINK 1
12072 if test "$with_readline" = yes; then
12073 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12074 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12075 cat >conftest.$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12077 #include "confdefs.h"
12079 #ifdef HAVE_READLINE_READLINE_H
12080 # include <readline/readline.h>
12081 #elif defined(HAVE_READLINE_H)
12082 # include <readline.h>
12085 #ifdef F77_DUMMY_MAIN
12086 # ifdef __cplusplus
12089 int F77_DUMMY_MAIN() { return 1; }
12094 rl_completion_append_character = 'x';
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12101 (eval $ac_link) 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 echo "$as_me:$LINENO: result: yes" >&5
12112 echo "${ECHO_T}yes" >&6
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12119 echo "$as_me: failed program was:" >&5
12120 cat conftest.$ac_ext >&5
12121 echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12127 for ac_func in rl_completion_matches rl_filename_completion_function
12129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12130 echo "$as_me:$LINENO: checking for $ac_func" >&5
12131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12132 if eval "test \"\${$as_ac_var+set}\" = set"; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 #include "confdefs.h"
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func (); below. */
12140 #include <assert.h>
12141 /* Override any gcc2 internal prototype to avoid an error. */
12145 /* We use char because int might match the return type of a gcc2
12146 builtin and then its argument prototype would still apply. */
12150 #ifdef F77_DUMMY_MAIN
12151 # ifdef __cplusplus
12154 int F77_DUMMY_MAIN() { return 1; }
12159 /* The GNU C library defines this for functions which it implements
12160 to always fail with ENOSYS. Some functions are actually named
12161 something starting with __ and the normal name is an alias. */
12162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 eval "$as_ac_var=yes"
12186 echo "$as_me: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12188 eval "$as_ac_var=no"
12190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12194 if test `eval echo '${'$as_ac_var'}'` = yes; then
12195 cat >>confdefs.h <<_ACEOF
12196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12203 for ac_func in replace_history_entry
12205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12206 echo "$as_me:$LINENO: checking for $ac_func" >&5
12207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12208 if eval "test \"\${$as_ac_var+set}\" = set"; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12214 /* System header to define __stub macros and hopefully few prototypes,
12215 which can conflict with char $ac_func (); below. */
12216 #include <assert.h>
12217 /* Override any gcc2 internal prototype to avoid an error. */
12221 /* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12226 #ifdef F77_DUMMY_MAIN
12227 # ifdef __cplusplus
12230 int F77_DUMMY_MAIN() { return 1; }
12235 /* The GNU C library defines this for functions which it implements
12236 to always fail with ENOSYS. Some functions are actually named
12237 something starting with __ and the normal name is an alias. */
12238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try='test -s conftest$ac_exeext'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 eval "$as_ac_var=yes"
12262 echo "$as_me: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 eval "$as_ac_var=no"
12266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12270 if test `eval echo '${'$as_ac_var'}'` = yes; then
12271 cat >>confdefs.h <<_ACEOF
12272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12281 echo "$as_me:$LINENO: checking for finite" >&5
12282 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12283 cat >conftest.$ac_ext <<_ACEOF
12284 #line $LINENO "configure"
12285 #include "confdefs.h"
12287 #ifdef F77_DUMMY_MAIN
12288 # ifdef __cplusplus
12291 int F77_DUMMY_MAIN() { return 1; }
12296 int dummy=finite(1.0);
12301 rm -f conftest.$ac_objext conftest$ac_exeext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303 (eval $ac_link) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -s conftest$ac_exeext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12314 cat >>confdefs.h <<\_ACEOF
12315 #define HAVE_FINITE 1
12318 echo "$as_me:$LINENO: result: yes" >&5
12319 echo "${ECHO_T}yes" >&6
12321 echo "$as_me: failed program was:" >&5
12322 cat conftest.$ac_ext >&5
12323 echo "$as_me:$LINENO: result: no" >&5
12324 echo "${ECHO_T}no" >&6
12326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12328 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12329 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 #include "confdefs.h"
12333 #include <setjmp.h>
12334 #ifdef F77_DUMMY_MAIN
12335 # ifdef __cplusplus
12338 int F77_DUMMY_MAIN() { return 1; }
12343 sigjmp_buf x; sigsetjmp(x, 1);
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350 (eval $ac_link) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12361 cat >>confdefs.h <<\_ACEOF
12362 #define HAVE_SIGSETJMP 1
12365 echo "$as_me:$LINENO: result: yes" >&5
12366 echo "${ECHO_T}yes" >&6
12368 echo "$as_me: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 echo "$as_me:$LINENO: result: no" >&5
12371 echo "${ECHO_T}no" >&6
12373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12375 echo "$as_me:$LINENO: checking for syslog" >&5
12376 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12377 if test "${ac_cv_func_syslog+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 #include "confdefs.h"
12383 /* System header to define __stub macros and hopefully few prototypes,
12384 which can conflict with char syslog (); below. */
12385 #include <assert.h>
12386 /* Override any gcc2 internal prototype to avoid an error. */
12390 /* We use char because int might match the return type of a gcc2
12391 builtin and then its argument prototype would still apply. */
12395 #ifdef F77_DUMMY_MAIN
12396 # ifdef __cplusplus
12399 int F77_DUMMY_MAIN() { return 1; }
12404 /* The GNU C library defines this for functions which it implements
12405 to always fail with ENOSYS. Some functions are actually named
12406 something starting with __ and the normal name is an alias. */
12407 #if defined (__stub_syslog) || defined (__stub___syslog)
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419 (eval $ac_link) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_cv_func_syslog=yes
12431 echo "$as_me: failed program was:" >&5
12432 cat conftest.$ac_ext >&5
12433 ac_cv_func_syslog=no
12435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12437 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12438 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12439 if test $ac_cv_func_syslog = yes; then
12440 if test "${ac_cv_header_syslog_h+set}" = set; then
12441 echo "$as_me:$LINENO: checking for syslog.h" >&5
12442 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12443 if test "${ac_cv_header_syslog_h+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12447 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12449 # Is the header compilable?
12450 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12451 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12452 cat >conftest.$ac_ext <<_ACEOF
12453 #line $LINENO "configure"
12454 #include "confdefs.h"
12455 $ac_includes_default
12456 #include <syslog.h>
12458 rm -f conftest.$ac_objext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460 (eval $ac_compile) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -s conftest.$ac_objext'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12470 ac_header_compiler=yes
12472 echo "$as_me: failed program was:" >&5
12473 cat conftest.$ac_ext >&5
12474 ac_header_compiler=no
12476 rm -f conftest.$ac_objext conftest.$ac_ext
12477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12478 echo "${ECHO_T}$ac_header_compiler" >&6
12480 # Is the header present?
12481 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12482 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12483 cat >conftest.$ac_ext <<_ACEOF
12484 #line $LINENO "configure"
12485 #include "confdefs.h"
12486 #include <syslog.h>
12488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12491 egrep -v '^ *\+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } >/dev/null; then
12496 if test -s conftest.err; then
12497 ac_cpp_err=$ac_c_preproc_warn_flag
12504 if test -z "$ac_cpp_err"; then
12505 ac_header_preproc=yes
12507 echo "$as_me: failed program was:" >&5
12508 cat conftest.$ac_ext >&5
12509 ac_header_preproc=no
12511 rm -f conftest.err conftest.$ac_ext
12512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12513 echo "${ECHO_T}$ac_header_preproc" >&6
12515 # So? What about this header?
12516 case $ac_header_compiler:$ac_header_preproc in
12518 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12519 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12521 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12523 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12524 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12526 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12528 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12530 echo "$as_me:$LINENO: checking for syslog.h" >&5
12531 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12532 if test "${ac_cv_header_syslog_h+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 ac_cv_header_syslog_h=$ac_header_preproc
12537 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12538 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12541 if test $ac_cv_header_syslog_h = yes; then
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_SYSLOG 1
12553 echo "$as_me:$LINENO: checking for optreset" >&5
12554 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12555 if test "${pgac_cv_var_int_optreset+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12560 #include "confdefs.h"
12561 #include <unistd.h>
12562 #ifdef F77_DUMMY_MAIN
12563 # ifdef __cplusplus
12566 int F77_DUMMY_MAIN() { return 1; }
12571 extern int optreset; optreset = 1;
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12578 (eval $ac_link) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -s conftest$ac_exeext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 pgac_cv_var_int_optreset=yes
12590 echo "$as_me: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 pgac_cv_var_int_optreset=no
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12596 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12597 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12598 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12600 cat >>confdefs.h <<\_ACEOF
12601 #define HAVE_INT_OPTRESET 1
12608 for ac_func in strtoll strtoq
12610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12611 echo "$as_me:$LINENO: checking for $ac_func" >&5
12612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12613 if eval "test \"\${$as_ac_var+set}\" = set"; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 cat >conftest.$ac_ext <<_ACEOF
12617 #line $LINENO "configure"
12618 #include "confdefs.h"
12619 /* System header to define __stub macros and hopefully few prototypes,
12620 which can conflict with char $ac_func (); below. */
12621 #include <assert.h>
12622 /* Override any gcc2 internal prototype to avoid an error. */
12626 /* We use char because int might match the return type of a gcc2
12627 builtin and then its argument prototype would still apply. */
12631 #ifdef F77_DUMMY_MAIN
12632 # ifdef __cplusplus
12635 int F77_DUMMY_MAIN() { return 1; }
12640 /* The GNU C library defines this for functions which it implements
12641 to always fail with ENOSYS. Some functions are actually named
12642 something starting with __ and the normal name is an alias. */
12643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12653 rm -f conftest.$ac_objext conftest$ac_exeext
12654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12655 (eval $ac_link) 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try='test -s conftest$ac_exeext'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 eval "$as_ac_var=yes"
12667 echo "$as_me: failed program was:" >&5
12668 cat conftest.$ac_ext >&5
12669 eval "$as_ac_var=no"
12671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12675 if test `eval echo '${'$as_ac_var'}'` = yes; then
12676 cat >>confdefs.h <<_ACEOF
12677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12685 for ac_func in strtoull strtouq
12687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688 echo "$as_me:$LINENO: checking for $ac_func" >&5
12689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12690 if eval "test \"\${$as_ac_var+set}\" = set"; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12695 #include "confdefs.h"
12696 /* System header to define __stub macros and hopefully few prototypes,
12697 which can conflict with char $ac_func (); below. */
12698 #include <assert.h>
12699 /* Override any gcc2 internal prototype to avoid an error. */
12703 /* We use char because int might match the return type of a gcc2
12704 builtin and then its argument prototype would still apply. */
12708 #ifdef F77_DUMMY_MAIN
12709 # ifdef __cplusplus
12712 int F77_DUMMY_MAIN() { return 1; }
12717 /* The GNU C library defines this for functions which it implements
12718 to always fail with ENOSYS. Some functions are actually named
12719 something starting with __ and the normal name is an alias. */
12720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12732 (eval $ac_link) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -s conftest$ac_exeext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 eval "$as_ac_var=yes"
12744 echo "$as_me: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 eval "$as_ac_var=no"
12748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12752 if test `eval echo '${'$as_ac_var'}'` = yes; then
12753 cat >>confdefs.h <<_ACEOF
12754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12761 # Check for one of atexit() or on_exit()
12763 for ac_func in atexit
12765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12766 echo "$as_me:$LINENO: checking for $ac_func" >&5
12767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12768 if eval "test \"\${$as_ac_var+set}\" = set"; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12773 #include "confdefs.h"
12774 /* System header to define __stub macros and hopefully few prototypes,
12775 which can conflict with char $ac_func (); below. */
12776 #include <assert.h>
12777 /* Override any gcc2 internal prototype to avoid an error. */
12781 /* We use char because int might match the return type of a gcc2
12782 builtin and then its argument prototype would still apply. */
12786 #ifdef F77_DUMMY_MAIN
12787 # ifdef __cplusplus
12790 int F77_DUMMY_MAIN() { return 1; }
12795 /* The GNU C library defines this for functions which it implements
12796 to always fail with ENOSYS. Some functions are actually named
12797 something starting with __ and the normal name is an alias. */
12798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12808 rm -f conftest.$ac_objext conftest$ac_exeext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12810 (eval $ac_link) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -s conftest$ac_exeext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 eval "$as_ac_var=yes"
12822 echo "$as_me: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12824 eval "$as_ac_var=no"
12826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12830 if test `eval echo '${'$as_ac_var'}'` = yes; then
12831 cat >>confdefs.h <<_ACEOF
12832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12837 for ac_func in on_exit
12839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12840 echo "$as_me:$LINENO: checking for $ac_func" >&5
12841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12842 if eval "test \"\${$as_ac_var+set}\" = set"; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 cat >conftest.$ac_ext <<_ACEOF
12846 #line $LINENO "configure"
12847 #include "confdefs.h"
12848 /* System header to define __stub macros and hopefully few prototypes,
12849 which can conflict with char $ac_func (); below. */
12850 #include <assert.h>
12851 /* Override any gcc2 internal prototype to avoid an error. */
12855 /* We use char because int might match the return type of a gcc2
12856 builtin and then its argument prototype would still apply. */
12860 #ifdef F77_DUMMY_MAIN
12861 # ifdef __cplusplus
12864 int F77_DUMMY_MAIN() { return 1; }
12869 /* The GNU C library defines this for functions which it implements
12870 to always fail with ENOSYS. Some functions are actually named
12871 something starting with __ and the normal name is an alias. */
12872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 eval "$as_ac_var=yes"
12896 echo "$as_me: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 eval "$as_ac_var=no"
12900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12904 if test `eval echo '${'$as_ac_var'}'` = yes; then
12905 cat >>confdefs.h <<_ACEOF
12906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12910 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12911 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12912 { (exit 1); exit 1; }; }
12920 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12921 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12922 if test "${ac_cv_sys_largefile_source+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 ac_cv_sys_largefile_source=no
12927 cat >conftest.$ac_ext <<_ACEOF
12928 #line $LINENO "configure"
12929 #include "confdefs.h"
12931 #ifdef F77_DUMMY_MAIN
12932 # ifdef __cplusplus
12935 int F77_DUMMY_MAIN() { return 1; }
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947 (eval $ac_compile) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -s conftest.$ac_objext'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12959 echo "$as_me: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12962 rm -f conftest.$ac_objext conftest.$ac_ext
12963 cat >conftest.$ac_ext <<_ACEOF
12964 #line $LINENO "configure"
12965 #include "confdefs.h"
12966 #define _LARGEFILE_SOURCE 1
12968 #ifdef F77_DUMMY_MAIN
12969 # ifdef __cplusplus
12972 int F77_DUMMY_MAIN() { return 1; }
12982 rm -f conftest.$ac_objext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984 (eval $ac_compile) 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -s conftest.$ac_objext'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 ac_cv_sys_largefile_source=1; break
12996 echo "$as_me: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 rm -f conftest.$ac_objext conftest.$ac_ext
13003 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13004 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13005 if test "$ac_cv_sys_largefile_source" != no; then
13007 cat >>confdefs.h <<_ACEOF
13008 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13014 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13015 # in glibc 2.1.3, but that breaks too many other things.
13016 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13017 echo "$as_me:$LINENO: checking for fseeko" >&5
13018 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13019 if test "${ac_cv_func_fseeko+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13026 #ifdef F77_DUMMY_MAIN
13027 # ifdef __cplusplus
13030 int F77_DUMMY_MAIN() { return 1; }
13035 return fseeko && fseeko (stdin, 0, 0);
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13042 (eval $ac_link) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -s conftest$ac_exeext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_func_fseeko=yes
13054 echo "$as_me: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13056 ac_cv_func_fseeko=no
13058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13060 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13061 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13062 if test $ac_cv_func_fseeko = yes; then
13064 cat >>confdefs.h <<\_ACEOF
13065 #define HAVE_FSEEKO 1
13074 # For each platform, we need to know about any special compile and link
13075 # libraries, and whether the normal C function names are thread-safe.
13076 # See the comment at the top of src/port/thread.c for more information.
13078 if test "$enable_thread_safety" = yes; then
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13091 # We used to check for pthread.h first, but this fails if pthread.h
13092 # requires special compiler flags (e.g. on True64 or Sequent).
13093 # It gets checked for in the link test anyway.
13095 # First of all, check if the user has set any of the PTHREAD_LIBS,
13096 # etcetera environment variables, and if threads linking works using
13098 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13099 save_CFLAGS="$CFLAGS"
13100 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13102 LIBS="$PTHREAD_LIBS $LIBS"
13103 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13104 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13105 cat >conftest.$ac_ext <<_ACEOF
13106 #line $LINENO "configure"
13107 #include "confdefs.h"
13109 /* Override any gcc2 internal prototype to avoid an error. */
13113 /* We use char because int might match the return type of a gcc2
13114 builtin and then its argument prototype would still apply. */
13115 char pthread_join ();
13116 #ifdef F77_DUMMY_MAIN
13117 # ifdef __cplusplus
13120 int F77_DUMMY_MAIN() { return 1; }
13130 rm -f conftest.$ac_objext conftest$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132 (eval $ac_link) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -s conftest$ac_exeext'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; }; then
13144 echo "$as_me: failed program was:" >&5
13145 cat conftest.$ac_ext >&5
13147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13148 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13149 echo "${ECHO_T}$acx_pthread_ok" >&6
13150 if test x"$acx_pthread_ok" = xno; then
13155 CFLAGS="$save_CFLAGS"
13158 # We must check for the threads library under a number of different
13159 # names; the ordering is very important because some systems
13160 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13161 # libraries is broken (non-POSIX).
13163 # Create a list of thread flags to try. Items starting with a "-" are
13164 # C compiler flags, and other items are library names, except for "none"
13165 # which indicates that we try without any flags at all, and "pthread-config"
13166 # which is a program returning the flags for the Pth emulation library.
13168 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13170 # The ordering *is* (sometimes) important. Some notes on the
13171 # individual items follow:
13173 # pthreads: AIX (must check this before -lpthread)
13174 # none: in case threads are in libc; should be tried before -Kthread and
13175 # other compiler flags to prevent continual compiler warnings
13176 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13177 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13178 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13179 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13180 # -pthreads: Solaris/gcc
13181 # -mthreads: Mingw32/gcc, Lynx/gcc
13182 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13183 # doesn't hurt to check since this sometimes defines pthreads too;
13184 # also defines -D_REENTRANT)
13185 # pthread: Linux, etcetera
13186 # --thread-safe: KAI C++
13187 # pthread-config: use pthread-config program (for GNU Pth library)
13189 case "${host_cpu}-${host_os}" in
13192 # On Solaris (at least, for some versions), libc contains stubbed
13193 # (non-functional) versions of the pthreads routines, so link-based
13194 # tests will erroneously succeed. (We need to link with -pthread or
13195 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
13196 # a function called by this macro, so we could check for that, but
13197 # who knows whether they'll stub that too in a future libc.) So,
13198 # we'll just look for -pthreads and -lpthread first:
13200 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13204 if test x"$acx_pthread_ok" = xno; then
13205 for flag in $acx_pthread_flags; do
13209 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13210 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13214 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13215 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13216 PTHREAD_CFLAGS="$flag"
13220 # Extract the first word of "pthread-config", so it can be a program name with args.
13221 set dummy pthread-config; ac_word=$2
13222 echo "$as_me:$LINENO: checking for $ac_word" >&5
13223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13224 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 if test -n "$acx_pthread_config"; then
13228 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231 for as_dir in $PATH
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
13236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13237 ac_cv_prog_acx_pthread_config="yes"
13238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13244 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13247 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13248 if test -n "$acx_pthread_config"; then
13249 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13250 echo "${ECHO_T}$acx_pthread_config" >&6
13252 echo "$as_me:$LINENO: result: no" >&5
13253 echo "${ECHO_T}no" >&6
13256 if test x"$acx_pthread_config" = xno; then continue; fi
13257 PTHREAD_CFLAGS="`pthread-config --cflags`"
13258 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13262 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13263 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13264 PTHREAD_LIBS="-l$flag"
13269 save_CFLAGS="$CFLAGS"
13270 LIBS="$PTHREAD_LIBS $LIBS"
13271 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13273 # Check for various functions. We must include pthread.h,
13274 # since some functions may be macros. (On the Sequent, we
13275 # need a special flag -Kthread to make this header compile.)
13276 # We check for pthread_join because it is in -lpthread on IRIX
13277 # while pthread_create is in libc. We check for pthread_attr_init
13278 # due to DEC craziness with -lpthreads. We check for
13279 # pthread_cleanup_push because it is one of the few pthread
13280 # functions on Solaris that doesn't have a non-functional libc stub.
13281 # We try pthread_create on general principles.
13282 cat >conftest.$ac_ext <<_ACEOF
13283 #line $LINENO "configure"
13284 #include "confdefs.h"
13285 #include <pthread.h>
13286 #ifdef F77_DUMMY_MAIN
13287 # ifdef __cplusplus
13290 int F77_DUMMY_MAIN() { return 1; }
13295 pthread_t th; pthread_join(th, 0);
13296 pthread_attr_init(0); pthread_cleanup_push(0, 0);
13297 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13304 (eval $ac_link) 2>&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -s conftest$ac_exeext'
13309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13316 echo "$as_me: failed program was:" >&5
13317 cat conftest.$ac_ext >&5
13319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13322 CFLAGS="$save_CFLAGS"
13324 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13325 echo "${ECHO_T}$acx_pthread_ok" >&6
13326 if test "x$acx_pthread_ok" = xyes; then
13335 # Various other checks:
13336 if test "x$acx_pthread_ok" = xyes; then
13338 LIBS="$PTHREAD_LIBS $LIBS"
13339 save_CFLAGS="$CFLAGS"
13340 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13342 # Detect AIX lossage: threads are created detached by default
13343 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
13344 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13345 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
13346 cat >conftest.$ac_ext <<_ACEOF
13347 #line $LINENO "configure"
13348 #include "confdefs.h"
13349 #include <pthread.h>
13350 #ifdef F77_DUMMY_MAIN
13351 # ifdef __cplusplus
13354 int F77_DUMMY_MAIN() { return 1; }
13359 int attr=PTHREAD_CREATE_JOINABLE;
13364 rm -f conftest.$ac_objext conftest$ac_exeext
13365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13366 (eval $ac_link) 2>&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -s conftest$ac_exeext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ok=PTHREAD_CREATE_JOINABLE
13378 echo "$as_me: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13383 if test x"$ok" = xunknown; then
13384 cat >conftest.$ac_ext <<_ACEOF
13385 #line $LINENO "configure"
13386 #include "confdefs.h"
13387 #include <pthread.h>
13388 #ifdef F77_DUMMY_MAIN
13389 # ifdef __cplusplus
13392 int F77_DUMMY_MAIN() { return 1; }
13397 int attr=PTHREAD_CREATE_UNDETACHED;
13402 rm -f conftest.$ac_objext conftest$ac_exeext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13404 (eval $ac_link) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -s conftest$ac_exeext'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
13414 ok=PTHREAD_CREATE_UNDETACHED
13416 echo "$as_me: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13422 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
13424 cat >>confdefs.h <<\_ACEOF
13425 #define PTHREAD_CREATE_JOINABLE $ok
13429 echo "$as_me:$LINENO: result: ${ok}" >&5
13430 echo "${ECHO_T}${ok}" >&6
13431 if test x"$ok" = xunknown; then
13432 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
13433 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13436 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13437 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13439 # We handle this ourselves in PostgreSQL
13440 # case "${host_cpu}-${host_os}" in
13441 # *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
13442 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13444 echo "$as_me:$LINENO: result: ${flag}" >&5
13445 echo "${ECHO_T}${flag}" >&6
13446 if test "x$flag" != xno; then
13447 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13451 CFLAGS="$save_CFLAGS"
13453 # More AIX lossage: must compile with cc_r
13454 # Extract the first word of "cc_r", so it can be a program name with args.
13455 set dummy cc_r; ac_word=$2
13456 echo "$as_me:$LINENO: checking for $ac_word" >&5
13457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13458 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 if test -n "$PTHREAD_CC"; then
13462 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13465 for as_dir in $PATH
13468 test -z "$as_dir" && as_dir=.
13469 for ac_exec_ext in '' $ac_executable_extensions; do
13470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13471 ac_cv_prog_PTHREAD_CC="cc_r"
13472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13478 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
13481 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13482 if test -n "$PTHREAD_CC"; then
13483 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13484 echo "${ECHO_T}$PTHREAD_CC" >&6
13486 echo "$as_me:$LINENO: result: no" >&5
13487 echo "${ECHO_T}no" >&6
13498 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13499 if test x"$acx_pthread_ok" = xyes; then
13501 cat >>confdefs.h <<\_ACEOF
13502 #define HAVE_PTHREAD 1
13511 ac_cpp='$CPP $CPPFLAGS'
13512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13518 # Some platforms use these, so just defineed them. They can't hurt if they
13519 # are not supported.
13520 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13523 # At this point, we don't want to muck with the compiler name for threading.
13524 # Let's see who fails, perhaps AIX. 2004-04-23
13525 if test "$PTHREAD_CC" != "$CC"; then
13526 { { echo "$as_me:$LINENO: error:
13527 PostgreSQL does not support platforms that require a special
13528 compiler binary for thread-safety.
13530 echo "$as_me: error:
13531 PostgreSQL does not support platforms that require a special
13532 compiler binary for thread-safety.
13534 { (exit 1); exit 1; }; }
13537 if test "$THREAD_SUPPORT" = no; then
13538 { { echo "$as_me:$LINENO: error:
13539 Cannot enable threads on your platform.
13540 Your platform is known to not support thread-safe programs.
13541 For details, compile and run src/bin/pg_thread_test.
13543 echo "$as_me: error:
13544 Cannot enable threads on your platform.
13545 Your platform is known to not support thread-safe programs.
13546 For details, compile and run src/bin/pg_thread_test.
13548 { (exit 1); exit 1; }; }
13551 if test "${ac_cv_header_pthread_h+set}" = set; then
13552 echo "$as_me:$LINENO: checking for pthread.h" >&5
13553 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13554 if test "${ac_cv_header_pthread_h+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13558 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13560 # Is the header compilable?
13561 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13562 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13563 cat >conftest.$ac_ext <<_ACEOF
13564 #line $LINENO "configure"
13565 #include "confdefs.h"
13566 $ac_includes_default
13567 #include <pthread.h>
13569 rm -f conftest.$ac_objext
13570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13571 (eval $ac_compile) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -s conftest.$ac_objext'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; }; then
13581 ac_header_compiler=yes
13583 echo "$as_me: failed program was:" >&5
13584 cat conftest.$ac_ext >&5
13585 ac_header_compiler=no
13587 rm -f conftest.$ac_objext conftest.$ac_ext
13588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589 echo "${ECHO_T}$ac_header_compiler" >&6
13591 # Is the header present?
13592 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13593 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13594 cat >conftest.$ac_ext <<_ACEOF
13595 #line $LINENO "configure"
13596 #include "confdefs.h"
13597 #include <pthread.h>
13599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13602 egrep -v '^ *\+' conftest.er1 >conftest.err
13604 cat conftest.err >&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } >/dev/null; then
13607 if test -s conftest.err; then
13608 ac_cpp_err=$ac_c_preproc_warn_flag
13615 if test -z "$ac_cpp_err"; then
13616 ac_header_preproc=yes
13618 echo "$as_me: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 ac_header_preproc=no
13622 rm -f conftest.err conftest.$ac_ext
13623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13624 echo "${ECHO_T}$ac_header_preproc" >&6
13626 # So? What about this header?
13627 case $ac_header_compiler:$ac_header_preproc in
13629 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13630 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13631 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13632 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13634 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13635 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13637 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13638 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13639 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13641 echo "$as_me:$LINENO: checking for pthread.h" >&5
13642 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13643 if test "${ac_cv_header_pthread_h+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 ac_cv_header_pthread_h=$ac_header_preproc
13648 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13649 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13652 if test $ac_cv_header_pthread_h = yes; then
13655 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13656 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13657 { (exit 1); exit 1; }; }
13662 # Check for *_r functions
13665 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13666 LIBS="$LIBS $PTHREAD_LIBS"
13670 for ac_func in strerror_r getpwuid_r gethostbyname_r
13672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13673 echo "$as_me:$LINENO: checking for $ac_func" >&5
13674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13675 if eval "test \"\${$as_ac_var+set}\" = set"; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 cat >conftest.$ac_ext <<_ACEOF
13679 #line $LINENO "configure"
13680 #include "confdefs.h"
13681 /* System header to define __stub macros and hopefully few prototypes,
13682 which can conflict with char $ac_func (); below. */
13683 #include <assert.h>
13684 /* Override any gcc2 internal prototype to avoid an error. */
13688 /* We use char because int might match the return type of a gcc2
13689 builtin and then its argument prototype would still apply. */
13693 #ifdef F77_DUMMY_MAIN
13694 # ifdef __cplusplus
13697 int F77_DUMMY_MAIN() { return 1; }
13702 /* The GNU C library defines this for functions which it implements
13703 to always fail with ENOSYS. Some functions are actually named
13704 something starting with __ and the normal name is an alias. */
13705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13715 rm -f conftest.$ac_objext conftest$ac_exeext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13717 (eval $ac_link) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -s conftest$ac_exeext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 eval "$as_ac_var=yes"
13729 echo "$as_me: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 eval "$as_ac_var=no"
13733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13737 if test `eval echo '${'$as_ac_var'}'` = yes; then
13738 cat >>confdefs.h <<_ACEOF
13739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13746 # Do test here with the proper thread flags
13747 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
13748 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
13749 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 cat >conftest.$ac_ext <<_ACEOF
13753 #line $LINENO "configure"
13754 #include "confdefs.h"
13755 #include <sys/types.h>
13757 #ifdef F77_DUMMY_MAIN
13758 # ifdef __cplusplus
13761 int F77_DUMMY_MAIN() { return 1; }
13767 struct passwd *space;
13770 struct passwd **result;
13771 getpwuid_r(uid, space, buf, bufsize, result);
13776 rm -f conftest.$ac_objext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778 (eval $ac_compile) 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -s conftest.$ac_objext'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 pgac_func_getpwuid_r_5arg=yes
13790 echo "$as_me: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13792 pgac_func_getpwuid_r_5arg=no
13794 rm -f conftest.$ac_objext conftest.$ac_ext
13796 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
13797 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
13798 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
13800 cat >>confdefs.h <<\_ACEOF
13801 #define GETPWUID_R_5ARG
13806 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
13807 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
13808 if test "${pgac_func_strerror_r_int+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 cat >conftest.$ac_ext <<_ACEOF
13812 #line $LINENO "configure"
13813 #include "confdefs.h"
13814 #include <string.h>
13815 #ifdef F77_DUMMY_MAIN
13816 # ifdef __cplusplus
13819 int F77_DUMMY_MAIN() { return 1; }
13824 int strerror_r(int, char *, size_t);
13829 rm -f conftest.$ac_objext
13830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13831 (eval $ac_compile) 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -s conftest.$ac_objext'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 pgac_func_strerror_r_int=yes
13843 echo "$as_me: failed program was:" >&5
13844 cat conftest.$ac_ext >&5
13845 pgac_func_strerror_r_int=no
13847 rm -f conftest.$ac_objext conftest.$ac_ext
13849 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
13850 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
13851 if test x"$pgac_func_strerror_r_int" = xyes ; then
13853 cat >>confdefs.h <<\_ACEOF
13854 #define STRERROR_R_INT
13864 # do not use values from template file
13873 # This test makes sure that run tests work at all. Sometimes a shared
13874 # library is found by the linker, but the runtime linker can't find it.
13875 # This check should come after all modifications of compiler or linker
13876 # variables, and before any other run tests.
13877 echo "$as_me:$LINENO: checking test program" >&5
13878 echo $ECHO_N "checking test program... $ECHO_C" >&6
13879 if test "$cross_compiling" = yes; then
13880 echo "$as_me:$LINENO: result: cross-compiling" >&5
13881 echo "${ECHO_T}cross-compiling" >&6
13883 cat >conftest.$ac_ext <<_ACEOF
13884 #line $LINENO "configure"
13885 #include "confdefs.h"
13886 int main() { return 0; }
13888 rm -f conftest$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890 (eval $ac_link) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 echo "$as_me:$LINENO: result: ok" >&5
13900 echo "${ECHO_T}ok" >&6
13902 echo "$as_me: program exited with status $ac_status" >&5
13903 echo "$as_me: failed program was:" >&5
13904 cat conftest.$ac_ext >&5
13905 ( exit $ac_status )
13906 echo "$as_me:$LINENO: result: failed" >&5
13907 echo "${ECHO_T}failed" >&6
13908 { { echo "$as_me:$LINENO: error:
13909 *** Could not execute a simple test program. This may be a problem
13910 *** related to locating shared libraries. Check the file 'config.log'
13911 *** for the exact reason." >&5
13912 echo "$as_me: error:
13913 *** Could not execute a simple test program. This may be a problem
13914 *** related to locating shared libraries. Check the file 'config.log'
13915 *** for the exact reason." >&2;}
13916 { (exit 1); exit 1; }; }
13918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13923 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13924 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13925 if test "${pgac_cv_type_long_int_64+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 if test "$cross_compiling" = yes; then
13929 # If cross-compiling, check the size reported by the compiler and
13930 # trust that the arithmetic works.
13931 cat >conftest.$ac_ext <<_ACEOF
13932 #line $LINENO "configure"
13933 #include "confdefs.h"
13935 #ifdef F77_DUMMY_MAIN
13936 # ifdef __cplusplus
13939 int F77_DUMMY_MAIN() { return 1; }
13944 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13951 rm -f conftest.$ac_objext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13953 (eval $ac_compile) 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } &&
13957 { ac_try='test -s conftest.$ac_objext'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 pgac_cv_type_long_int_64=yes
13965 echo "$as_me: failed program was:" >&5
13966 cat conftest.$ac_ext >&5
13967 pgac_cv_type_long_int_64=no
13969 rm -f conftest.$ac_objext conftest.$ac_ext
13971 cat >conftest.$ac_ext <<_ACEOF
13972 #line $LINENO "configure"
13973 #include "confdefs.h"
13974 typedef long int int64;
13977 * These are globals to discourage the compiler from folding all the
13978 * arithmetic tests down to compile-time constants.
13980 int64 a = 20000001;
13981 int64 b = 40000005;
13983 int does_int64_work()
13987 if (sizeof(int64) != 8)
13988 return 0; /* definitely not the right size */
13990 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13998 exit(! does_int64_work());
14001 rm -f conftest$ac_exeext
14002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003 (eval $ac_link) 2>&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; }; then
14012 pgac_cv_type_long_int_64=yes
14014 echo "$as_me: program exited with status $ac_status" >&5
14015 echo "$as_me: failed program was:" >&5
14016 cat conftest.$ac_ext >&5
14017 ( exit $ac_status )
14018 pgac_cv_type_long_int_64=no
14020 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14023 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
14024 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
14026 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14027 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14029 cat >>confdefs.h <<\_ACEOF
14030 #define HAVE_LONG_INT_64
14036 if test x"$HAVE_LONG_INT_64" = x"no" ; then
14037 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
14038 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
14039 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 if test "$cross_compiling" = yes; then
14043 # If cross-compiling, check the size reported by the compiler and
14044 # trust that the arithmetic works.
14045 cat >conftest.$ac_ext <<_ACEOF
14046 #line $LINENO "configure"
14047 #include "confdefs.h"
14049 #ifdef F77_DUMMY_MAIN
14050 # ifdef __cplusplus
14053 int F77_DUMMY_MAIN() { return 1; }
14058 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14065 rm -f conftest.$ac_objext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14067 (eval $ac_compile) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } &&
14071 { ac_try='test -s conftest.$ac_objext'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 pgac_cv_type_long_long_int_64=yes
14079 echo "$as_me: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 pgac_cv_type_long_long_int_64=no
14083 rm -f conftest.$ac_objext conftest.$ac_ext
14085 cat >conftest.$ac_ext <<_ACEOF
14086 #line $LINENO "configure"
14087 #include "confdefs.h"
14088 typedef long long int int64;
14091 * These are globals to discourage the compiler from folding all the
14092 * arithmetic tests down to compile-time constants.
14094 int64 a = 20000001;
14095 int64 b = 40000005;
14097 int does_int64_work()
14101 if (sizeof(int64) != 8)
14102 return 0; /* definitely not the right size */
14104 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14112 exit(! does_int64_work());
14115 rm -f conftest$ac_exeext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14117 (eval $ac_link) 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122 (eval $ac_try) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); }; }; then
14126 pgac_cv_type_long_long_int_64=yes
14128 echo "$as_me: program exited with status $ac_status" >&5
14129 echo "$as_me: failed program was:" >&5
14130 cat conftest.$ac_ext >&5
14131 ( exit $ac_status )
14132 pgac_cv_type_long_long_int_64=no
14134 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14137 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14138 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14140 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14141 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14143 cat >>confdefs.h <<\_ACEOF
14144 #define HAVE_LONG_LONG_INT_64
14153 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14154 cat >conftest.$ac_ext <<_ACEOF
14155 #line $LINENO "configure"
14156 #include "confdefs.h"
14158 #define INT64CONST(x) x##LL
14159 long long int foo = INT64CONST(0x1234567890123456);
14161 #ifdef F77_DUMMY_MAIN
14162 # ifdef __cplusplus
14165 int F77_DUMMY_MAIN() { return 1; }
14175 rm -f conftest.$ac_objext
14176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14177 (eval $ac_compile) 2>&5
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } &&
14181 { ac_try='test -s conftest.$ac_objext'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14188 cat >>confdefs.h <<\_ACEOF
14189 #define HAVE_LL_CONSTANTS 1
14193 echo "$as_me: failed program was:" >&5
14194 cat conftest.$ac_ext >&5
14196 rm -f conftest.$ac_objext conftest.$ac_ext
14200 # If we found "long int" is 64 bits, assume snprintf handles it. If
14201 # we found we need to use "long long int", better check. We cope with
14202 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
14203 # work, fall back to our own snprintf emulation (which we know uses %lld).
14205 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14206 if test $pgac_need_repl_snprintf = no; then
14207 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14208 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14209 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 for pgac_format in '%lld' '%qd' '%I64d'; do
14213 if test "$cross_compiling" = yes; then
14214 pgac_cv_snprintf_long_long_int_format=cross; break
14216 cat >conftest.$ac_ext <<_ACEOF
14217 #line $LINENO "configure"
14218 #include "confdefs.h"
14220 typedef long long int int64;
14221 #define INT64_FORMAT "$pgac_format"
14223 int64 a = 20000001;
14224 int64 b = 40000005;
14226 int does_int64_snprintf_work()
14231 if (sizeof(int64) != 8)
14232 return 0; /* doesn't look like the right size */
14235 snprintf(buf, 100, INT64_FORMAT, c);
14236 if (strcmp(buf, "800000140000005") != 0)
14237 return 0; /* either multiply or snprintf is busted */
14241 exit(! does_int64_snprintf_work());
14244 rm -f conftest$ac_exeext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14246 (eval $ac_link) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14257 echo "$as_me: program exited with status $ac_status" >&5
14258 echo "$as_me: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14261 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14266 LONG_LONG_INT_FORMAT=''
14268 case $pgac_cv_snprintf_long_long_int_format in
14269 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
14270 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
14271 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
14272 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
14273 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14274 *) echo "$as_me:$LINENO: result: none" >&5
14275 echo "${ECHO_T}none" >&6;;
14277 if test "$LONG_LONG_INT_FORMAT" = ""; then
14278 # Force usage of our own snprintf, since system snprintf is broken
14279 pgac_need_repl_snprintf=yes
14280 LONG_LONG_INT_FORMAT='%lld'
14283 # Here if we previously decided we needed to use our own snprintf
14284 LONG_LONG_INT_FORMAT='%lld'
14286 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14287 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14288 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14290 # Here if we are not using 'long long int' at all
14291 INT64_FORMAT='"%ld"'
14292 UINT64_FORMAT='"%lu"'
14296 cat >>confdefs.h <<_ACEOF
14297 #define INT64_FORMAT $INT64_FORMAT
14302 cat >>confdefs.h <<_ACEOF
14303 #define UINT64_FORMAT $UINT64_FORMAT
14307 if test $pgac_need_repl_snprintf = yes; then
14308 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14311 # Need a #define for the size of Datum (unsigned long)
14312 echo "$as_me:$LINENO: checking for unsigned long" >&5
14313 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14314 if test "${ac_cv_type_unsigned_long+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 cat >conftest.$ac_ext <<_ACEOF
14318 #line $LINENO "configure"
14319 #include "confdefs.h"
14320 $ac_includes_default
14321 #ifdef F77_DUMMY_MAIN
14322 # ifdef __cplusplus
14325 int F77_DUMMY_MAIN() { return 1; }
14330 if ((unsigned long *) 0)
14332 if (sizeof (unsigned long))
14338 rm -f conftest.$ac_objext
14339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14340 (eval $ac_compile) 2>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
14344 { ac_try='test -s conftest.$ac_objext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_cv_type_unsigned_long=yes
14352 echo "$as_me: failed program was:" >&5
14353 cat conftest.$ac_ext >&5
14354 ac_cv_type_unsigned_long=no
14356 rm -f conftest.$ac_objext conftest.$ac_ext
14358 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14359 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14361 echo "$as_me:$LINENO: checking size of unsigned long" >&5
14362 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14363 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 if test "$ac_cv_type_unsigned_long" = yes; then
14367 # The cast to unsigned long works around a bug in the HP C Compiler
14368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14370 # This bug is HP SR number 8606223364.
14371 if test "$cross_compiling" = yes; then
14372 # Depending upon the size, compute the lo and hi bounds.
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 #include "confdefs.h"
14376 $ac_includes_default
14377 #ifdef F77_DUMMY_MAIN
14378 # ifdef __cplusplus
14381 int F77_DUMMY_MAIN() { return 1; }
14386 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14393 rm -f conftest.$ac_objext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395 (eval $ac_compile) 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -s conftest.$ac_objext'
14400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401 (eval $ac_try) 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14407 cat >conftest.$ac_ext <<_ACEOF
14408 #line $LINENO "configure"
14409 #include "confdefs.h"
14410 $ac_includes_default
14411 #ifdef F77_DUMMY_MAIN
14412 # ifdef __cplusplus
14415 int F77_DUMMY_MAIN() { return 1; }
14420 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14427 rm -f conftest.$ac_objext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14429 (eval $ac_compile) 2>&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } &&
14433 { ac_try='test -s conftest.$ac_objext'
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; }; then
14439 ac_hi=$ac_mid; break
14441 echo "$as_me: failed program was:" >&5
14442 cat conftest.$ac_ext >&5
14443 ac_lo=`expr $ac_mid + 1`
14444 if test $ac_lo -le $ac_mid; then
14448 ac_mid=`expr 2 '*' $ac_mid + 1`
14450 rm -f conftest.$ac_objext conftest.$ac_ext
14453 echo "$as_me: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14455 cat >conftest.$ac_ext <<_ACEOF
14456 #line $LINENO "configure"
14457 #include "confdefs.h"
14458 $ac_includes_default
14459 #ifdef F77_DUMMY_MAIN
14460 # ifdef __cplusplus
14463 int F77_DUMMY_MAIN() { return 1; }
14468 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -s conftest.$ac_objext'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14489 cat >conftest.$ac_ext <<_ACEOF
14490 #line $LINENO "configure"
14491 #include "confdefs.h"
14492 $ac_includes_default
14493 #ifdef F77_DUMMY_MAIN
14494 # ifdef __cplusplus
14497 int F77_DUMMY_MAIN() { return 1; }
14502 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14509 rm -f conftest.$ac_objext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14511 (eval $ac_compile) 2>&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -s conftest.$ac_objext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_lo=$ac_mid; break
14523 echo "$as_me: failed program was:" >&5
14524 cat conftest.$ac_ext >&5
14525 ac_hi=`expr '(' $ac_mid ')' - 1`
14526 if test $ac_mid -le $ac_hi; then
14530 ac_mid=`expr 2 '*' $ac_mid`
14532 rm -f conftest.$ac_objext conftest.$ac_ext
14535 echo "$as_me: failed program was:" >&5
14536 cat conftest.$ac_ext >&5
14539 rm -f conftest.$ac_objext conftest.$ac_ext
14541 rm -f conftest.$ac_objext conftest.$ac_ext
14542 # Binary search between lo and hi bounds.
14543 while test "x$ac_lo" != "x$ac_hi"; do
14544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14545 cat >conftest.$ac_ext <<_ACEOF
14546 #line $LINENO "configure"
14547 #include "confdefs.h"
14548 $ac_includes_default
14549 #ifdef F77_DUMMY_MAIN
14550 # ifdef __cplusplus
14553 int F77_DUMMY_MAIN() { return 1; }
14558 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14565 rm -f conftest.$ac_objext
14566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14567 (eval $ac_compile) 2>&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } &&
14571 { ac_try='test -s conftest.$ac_objext'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }; then
14579 echo "$as_me: failed program was:" >&5
14580 cat conftest.$ac_ext >&5
14581 ac_lo=`expr '(' $ac_mid ')' + 1`
14583 rm -f conftest.$ac_objext conftest.$ac_ext
14586 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14587 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14588 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14589 { (exit 1); exit 1; }; } ;;
14592 if test "$cross_compiling" = yes; then
14593 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14594 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14595 { (exit 1); exit 1; }; }
14597 cat >conftest.$ac_ext <<_ACEOF
14598 #line $LINENO "configure"
14599 #include "confdefs.h"
14600 $ac_includes_default
14601 long longval () { return (long) (sizeof (unsigned long)); }
14602 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14604 #include <stdlib.h>
14605 #ifdef F77_DUMMY_MAIN
14606 # ifdef __cplusplus
14609 int F77_DUMMY_MAIN() { return 1; }
14615 FILE *f = fopen ("conftest.val", "w");
14618 if (((long) (sizeof (unsigned long))) < 0)
14620 long i = longval ();
14621 if (i != ((long) (sizeof (unsigned long))))
14623 fprintf (f, "%ld\n", i);
14627 unsigned long i = ulongval ();
14628 if (i != ((long) (sizeof (unsigned long))))
14630 fprintf (f, "%lu\n", i);
14632 exit (ferror (f) || fclose (f) != 0);
14638 rm -f conftest$ac_exeext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14640 (eval $ac_link) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14651 echo "$as_me: program exited with status $ac_status" >&5
14652 echo "$as_me: failed program was:" >&5
14653 cat conftest.$ac_ext >&5
14654 ( exit $ac_status )
14655 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14656 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14657 { (exit 1); exit 1; }; }
14659 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14664 ac_cv_sizeof_unsigned_long=0
14667 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14668 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14669 cat >>confdefs.h <<_ACEOF
14670 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14675 # Determine memory alignment requirements for the basic C data types.
14677 echo "$as_me:$LINENO: checking for short" >&5
14678 echo $ECHO_N "checking for short... $ECHO_C" >&6
14679 if test "${ac_cv_type_short+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 cat >conftest.$ac_ext <<_ACEOF
14683 #line $LINENO "configure"
14684 #include "confdefs.h"
14685 $ac_includes_default
14686 #ifdef F77_DUMMY_MAIN
14687 # ifdef __cplusplus
14690 int F77_DUMMY_MAIN() { return 1; }
14697 if (sizeof (short))
14703 rm -f conftest.$ac_objext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14705 (eval $ac_compile) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try='test -s conftest.$ac_objext'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; }; then
14715 ac_cv_type_short=yes
14717 echo "$as_me: failed program was:" >&5
14718 cat conftest.$ac_ext >&5
14719 ac_cv_type_short=no
14721 rm -f conftest.$ac_objext conftest.$ac_ext
14723 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14724 echo "${ECHO_T}$ac_cv_type_short" >&6
14726 echo "$as_me:$LINENO: checking alignment of short" >&5
14727 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14728 if test "${pgac_cv_alignof_short+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14731 if test "$ac_cv_type_short" = yes; then
14732 if test "$cross_compiling" = yes; then
14733 # Depending upon the size, compute the lo and hi bounds.
14734 cat >conftest.$ac_ext <<_ACEOF
14735 #line $LINENO "configure"
14736 #include "confdefs.h"
14737 $ac_includes_default
14738 struct { char filler; short field; } pgac_struct;
14739 #ifdef F77_DUMMY_MAIN
14740 # ifdef __cplusplus
14743 int F77_DUMMY_MAIN() { return 1; }
14748 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757 (eval $ac_compile) 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
14761 { ac_try='test -s conftest.$ac_objext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14769 cat >conftest.$ac_ext <<_ACEOF
14770 #line $LINENO "configure"
14771 #include "confdefs.h"
14772 $ac_includes_default
14773 struct { char filler; short field; } pgac_struct;
14774 #ifdef F77_DUMMY_MAIN
14775 # ifdef __cplusplus
14778 int F77_DUMMY_MAIN() { return 1; }
14783 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14790 rm -f conftest.$ac_objext
14791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14792 (eval $ac_compile) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } &&
14796 { ac_try='test -s conftest.$ac_objext'
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; }; then
14802 ac_hi=$ac_mid; break
14804 echo "$as_me: failed program was:" >&5
14805 cat conftest.$ac_ext >&5
14806 ac_lo=`expr $ac_mid + 1`
14807 if test $ac_lo -le $ac_mid; then
14811 ac_mid=`expr 2 '*' $ac_mid + 1`
14813 rm -f conftest.$ac_objext conftest.$ac_ext
14816 echo "$as_me: failed program was:" >&5
14817 cat conftest.$ac_ext >&5
14818 cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14820 #include "confdefs.h"
14821 $ac_includes_default
14822 struct { char filler; short field; } pgac_struct;
14823 #ifdef F77_DUMMY_MAIN
14824 # ifdef __cplusplus
14827 int F77_DUMMY_MAIN() { return 1; }
14832 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14839 rm -f conftest.$ac_objext
14840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14841 (eval $ac_compile) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } &&
14845 { ac_try='test -s conftest.$ac_objext'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; }; then
14853 cat >conftest.$ac_ext <<_ACEOF
14854 #line $LINENO "configure"
14855 #include "confdefs.h"
14856 $ac_includes_default
14857 struct { char filler; short field; } pgac_struct;
14858 #ifdef F77_DUMMY_MAIN
14859 # ifdef __cplusplus
14862 int F77_DUMMY_MAIN() { return 1; }
14867 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14874 rm -f conftest.$ac_objext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14876 (eval $ac_compile) 2>&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } &&
14880 { ac_try='test -s conftest.$ac_objext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_lo=$ac_mid; break
14888 echo "$as_me: failed program was:" >&5
14889 cat conftest.$ac_ext >&5
14890 ac_hi=`expr '(' $ac_mid ')' - 1`
14891 if test $ac_mid -le $ac_hi; then
14895 ac_mid=`expr 2 '*' $ac_mid`
14897 rm -f conftest.$ac_objext conftest.$ac_ext
14900 echo "$as_me: failed program was:" >&5
14901 cat conftest.$ac_ext >&5
14904 rm -f conftest.$ac_objext conftest.$ac_ext
14906 rm -f conftest.$ac_objext conftest.$ac_ext
14907 # Binary search between lo and hi bounds.
14908 while test "x$ac_lo" != "x$ac_hi"; do
14909 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14910 cat >conftest.$ac_ext <<_ACEOF
14911 #line $LINENO "configure"
14912 #include "confdefs.h"
14913 $ac_includes_default
14914 struct { char filler; short field; } pgac_struct;
14915 #ifdef F77_DUMMY_MAIN
14916 # ifdef __cplusplus
14919 int F77_DUMMY_MAIN() { return 1; }
14924 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
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
14945 echo "$as_me: failed program was:" >&5
14946 cat conftest.$ac_ext >&5
14947 ac_lo=`expr '(' $ac_mid ')' + 1`
14949 rm -f conftest.$ac_objext conftest.$ac_ext
14952 ?*) pgac_cv_alignof_short=$ac_lo;;
14953 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14954 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14955 { (exit 1); exit 1; }; } ;;
14958 if test "$cross_compiling" = yes; then
14959 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14960 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14961 { (exit 1); exit 1; }; }
14963 cat >conftest.$ac_ext <<_ACEOF
14964 #line $LINENO "configure"
14965 #include "confdefs.h"
14966 $ac_includes_default
14967 struct { char filler; short field; } pgac_struct;
14968 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14969 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14971 #include <stdlib.h>
14972 #ifdef F77_DUMMY_MAIN
14973 # ifdef __cplusplus
14976 int F77_DUMMY_MAIN() { return 1; }
14982 FILE *f = fopen ("conftest.val", "w");
14985 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14987 long i = longval ();
14988 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14990 fprintf (f, "%ld\n", i);
14994 unsigned long i = ulongval ();
14995 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14997 fprintf (f, "%lu\n", i);
14999 exit (ferror (f) || fclose (f) != 0);
15005 rm -f conftest$ac_exeext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15007 (eval $ac_link) 2>&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15016 pgac_cv_alignof_short=`cat conftest.val`
15018 echo "$as_me: program exited with status $ac_status" >&5
15019 echo "$as_me: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15021 ( exit $ac_status )
15022 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15023 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15024 { (exit 1); exit 1; }; }
15026 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15031 pgac_cv_alignof_short=0
15034 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
15035 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
15036 cat >>confdefs.h <<_ACEOF
15037 #define ALIGNOF_SHORT $pgac_cv_alignof_short
15041 echo "$as_me:$LINENO: checking for int" >&5
15042 echo $ECHO_N "checking for int... $ECHO_C" >&6
15043 if test "${ac_cv_type_int+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 cat >conftest.$ac_ext <<_ACEOF
15047 #line $LINENO "configure"
15048 #include "confdefs.h"
15049 $ac_includes_default
15050 #ifdef F77_DUMMY_MAIN
15051 # ifdef __cplusplus
15054 int F77_DUMMY_MAIN() { return 1; }
15067 rm -f conftest.$ac_objext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15069 (eval $ac_compile) 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } &&
15073 { ac_try='test -s conftest.$ac_objext'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15081 echo "$as_me: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15085 rm -f conftest.$ac_objext conftest.$ac_ext
15087 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15088 echo "${ECHO_T}$ac_cv_type_int" >&6
15090 echo "$as_me:$LINENO: checking alignment of int" >&5
15091 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
15092 if test "${pgac_cv_alignof_int+set}" = set; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15095 if test "$ac_cv_type_int" = yes; then
15096 if test "$cross_compiling" = yes; then
15097 # Depending upon the size, compute the lo and hi bounds.
15098 cat >conftest.$ac_ext <<_ACEOF
15099 #line $LINENO "configure"
15100 #include "confdefs.h"
15101 $ac_includes_default
15102 struct { char filler; int field; } pgac_struct;
15103 #ifdef F77_DUMMY_MAIN
15104 # ifdef __cplusplus
15107 int F77_DUMMY_MAIN() { return 1; }
15112 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15119 rm -f conftest.$ac_objext
15120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15121 (eval $ac_compile) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -s conftest.$ac_objext'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; }; then
15133 cat >conftest.$ac_ext <<_ACEOF
15134 #line $LINENO "configure"
15135 #include "confdefs.h"
15136 $ac_includes_default
15137 struct { char filler; int field; } pgac_struct;
15138 #ifdef F77_DUMMY_MAIN
15139 # ifdef __cplusplus
15142 int F77_DUMMY_MAIN() { return 1; }
15147 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15154 rm -f conftest.$ac_objext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15156 (eval $ac_compile) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -s conftest.$ac_objext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_hi=$ac_mid; break
15168 echo "$as_me: failed program was:" >&5
15169 cat conftest.$ac_ext >&5
15170 ac_lo=`expr $ac_mid + 1`
15171 if test $ac_lo -le $ac_mid; then
15175 ac_mid=`expr 2 '*' $ac_mid + 1`
15177 rm -f conftest.$ac_objext conftest.$ac_ext
15180 echo "$as_me: failed program was:" >&5
15181 cat conftest.$ac_ext >&5
15182 cat >conftest.$ac_ext <<_ACEOF
15183 #line $LINENO "configure"
15184 #include "confdefs.h"
15185 $ac_includes_default
15186 struct { char filler; int field; } pgac_struct;
15187 #ifdef F77_DUMMY_MAIN
15188 # ifdef __cplusplus
15191 int F77_DUMMY_MAIN() { return 1; }
15196 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15203 rm -f conftest.$ac_objext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205 (eval $ac_compile) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
15209 { ac_try='test -s conftest.$ac_objext'
15210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211 (eval $ac_try) 2>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15217 cat >conftest.$ac_ext <<_ACEOF
15218 #line $LINENO "configure"
15219 #include "confdefs.h"
15220 $ac_includes_default
15221 struct { char filler; int field; } pgac_struct;
15222 #ifdef F77_DUMMY_MAIN
15223 # ifdef __cplusplus
15226 int F77_DUMMY_MAIN() { return 1; }
15231 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15238 rm -f conftest.$ac_objext
15239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15240 (eval $ac_compile) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15250 ac_lo=$ac_mid; break
15252 echo "$as_me: failed program was:" >&5
15253 cat conftest.$ac_ext >&5
15254 ac_hi=`expr '(' $ac_mid ')' - 1`
15255 if test $ac_mid -le $ac_hi; then
15259 ac_mid=`expr 2 '*' $ac_mid`
15261 rm -f conftest.$ac_objext conftest.$ac_ext
15264 echo "$as_me: failed program was:" >&5
15265 cat conftest.$ac_ext >&5
15268 rm -f conftest.$ac_objext conftest.$ac_ext
15270 rm -f conftest.$ac_objext conftest.$ac_ext
15271 # Binary search between lo and hi bounds.
15272 while test "x$ac_lo" != "x$ac_hi"; do
15273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15274 cat >conftest.$ac_ext <<_ACEOF
15275 #line $LINENO "configure"
15276 #include "confdefs.h"
15277 $ac_includes_default
15278 struct { char filler; int field; } pgac_struct;
15279 #ifdef F77_DUMMY_MAIN
15280 # ifdef __cplusplus
15283 int F77_DUMMY_MAIN() { return 1; }
15288 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15295 rm -f conftest.$ac_objext
15296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15297 (eval $ac_compile) 2>&5
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
15301 { ac_try='test -s conftest.$ac_objext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15309 echo "$as_me: failed program was:" >&5
15310 cat conftest.$ac_ext >&5
15311 ac_lo=`expr '(' $ac_mid ')' + 1`
15313 rm -f conftest.$ac_objext conftest.$ac_ext
15316 ?*) pgac_cv_alignof_int=$ac_lo;;
15317 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15318 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15319 { (exit 1); exit 1; }; } ;;
15322 if test "$cross_compiling" = yes; then
15323 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15324 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15325 { (exit 1); exit 1; }; }
15327 cat >conftest.$ac_ext <<_ACEOF
15328 #line $LINENO "configure"
15329 #include "confdefs.h"
15330 $ac_includes_default
15331 struct { char filler; int field; } pgac_struct;
15332 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15333 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15335 #include <stdlib.h>
15336 #ifdef F77_DUMMY_MAIN
15337 # ifdef __cplusplus
15340 int F77_DUMMY_MAIN() { return 1; }
15346 FILE *f = fopen ("conftest.val", "w");
15349 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15351 long i = longval ();
15352 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15354 fprintf (f, "%ld\n", i);
15358 unsigned long i = ulongval ();
15359 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15361 fprintf (f, "%lu\n", i);
15363 exit (ferror (f) || fclose (f) != 0);
15369 rm -f conftest$ac_exeext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15371 (eval $ac_link) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380 pgac_cv_alignof_int=`cat conftest.val`
15382 echo "$as_me: program exited with status $ac_status" >&5
15383 echo "$as_me: failed program was:" >&5
15384 cat conftest.$ac_ext >&5
15385 ( exit $ac_status )
15386 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15387 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15388 { (exit 1); exit 1; }; }
15390 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15395 pgac_cv_alignof_int=0
15398 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15399 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15400 cat >>confdefs.h <<_ACEOF
15401 #define ALIGNOF_INT $pgac_cv_alignof_int
15405 echo "$as_me:$LINENO: checking for long" >&5
15406 echo $ECHO_N "checking for long... $ECHO_C" >&6
15407 if test "${ac_cv_type_long+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15410 cat >conftest.$ac_ext <<_ACEOF
15411 #line $LINENO "configure"
15412 #include "confdefs.h"
15413 $ac_includes_default
15414 #ifdef F77_DUMMY_MAIN
15415 # ifdef __cplusplus
15418 int F77_DUMMY_MAIN() { return 1; }
15431 rm -f conftest.$ac_objext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15433 (eval $ac_compile) 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 ac_cv_type_long=yes
15445 echo "$as_me: failed program was:" >&5
15446 cat conftest.$ac_ext >&5
15449 rm -f conftest.$ac_objext conftest.$ac_ext
15451 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15452 echo "${ECHO_T}$ac_cv_type_long" >&6
15454 echo "$as_me:$LINENO: checking alignment of long" >&5
15455 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15456 if test "${pgac_cv_alignof_long+set}" = set; then
15457 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 if test "$ac_cv_type_long" = yes; then
15460 if test "$cross_compiling" = yes; then
15461 # Depending upon the size, compute the lo and hi bounds.
15462 cat >conftest.$ac_ext <<_ACEOF
15463 #line $LINENO "configure"
15464 #include "confdefs.h"
15465 $ac_includes_default
15466 struct { char filler; long field; } pgac_struct;
15467 #ifdef F77_DUMMY_MAIN
15468 # ifdef __cplusplus
15471 int F77_DUMMY_MAIN() { return 1; }
15476 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485 (eval $ac_compile) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } &&
15489 { ac_try='test -s conftest.$ac_objext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15497 cat >conftest.$ac_ext <<_ACEOF
15498 #line $LINENO "configure"
15499 #include "confdefs.h"
15500 $ac_includes_default
15501 struct { char filler; long field; } pgac_struct;
15502 #ifdef F77_DUMMY_MAIN
15503 # ifdef __cplusplus
15506 int F77_DUMMY_MAIN() { return 1; }
15511 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15518 rm -f conftest.$ac_objext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520 (eval $ac_compile) 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } &&
15524 { ac_try='test -s conftest.$ac_objext'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15530 ac_hi=$ac_mid; break
15532 echo "$as_me: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15534 ac_lo=`expr $ac_mid + 1`
15535 if test $ac_lo -le $ac_mid; then
15539 ac_mid=`expr 2 '*' $ac_mid + 1`
15541 rm -f conftest.$ac_objext conftest.$ac_ext
15544 echo "$as_me: failed program was:" >&5
15545 cat conftest.$ac_ext >&5
15546 cat >conftest.$ac_ext <<_ACEOF
15547 #line $LINENO "configure"
15548 #include "confdefs.h"
15549 $ac_includes_default
15550 struct { char filler; long field; } pgac_struct;
15551 #ifdef F77_DUMMY_MAIN
15552 # ifdef __cplusplus
15555 int F77_DUMMY_MAIN() { return 1; }
15560 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15567 rm -f conftest.$ac_objext
15568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15569 (eval $ac_compile) 2>&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } &&
15573 { ac_try='test -s conftest.$ac_objext'
15574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15575 (eval $ac_try) 2>&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); }; }; then
15581 cat >conftest.$ac_ext <<_ACEOF
15582 #line $LINENO "configure"
15583 #include "confdefs.h"
15584 $ac_includes_default
15585 struct { char filler; long field; } pgac_struct;
15586 #ifdef F77_DUMMY_MAIN
15587 # ifdef __cplusplus
15590 int F77_DUMMY_MAIN() { return 1; }
15595 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15602 rm -f conftest.$ac_objext
15603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15604 (eval $ac_compile) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -s conftest.$ac_objext'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15614 ac_lo=$ac_mid; break
15616 echo "$as_me: failed program was:" >&5
15617 cat conftest.$ac_ext >&5
15618 ac_hi=`expr '(' $ac_mid ')' - 1`
15619 if test $ac_mid -le $ac_hi; then
15623 ac_mid=`expr 2 '*' $ac_mid`
15625 rm -f conftest.$ac_objext conftest.$ac_ext
15628 echo "$as_me: failed program was:" >&5
15629 cat conftest.$ac_ext >&5
15632 rm -f conftest.$ac_objext conftest.$ac_ext
15634 rm -f conftest.$ac_objext conftest.$ac_ext
15635 # Binary search between lo and hi bounds.
15636 while test "x$ac_lo" != "x$ac_hi"; do
15637 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15638 cat >conftest.$ac_ext <<_ACEOF
15639 #line $LINENO "configure"
15640 #include "confdefs.h"
15641 $ac_includes_default
15642 struct { char filler; long field; } pgac_struct;
15643 #ifdef F77_DUMMY_MAIN
15644 # ifdef __cplusplus
15647 int F77_DUMMY_MAIN() { return 1; }
15652 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15659 rm -f conftest.$ac_objext
15660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15661 (eval $ac_compile) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -s conftest.$ac_objext'
15666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15673 echo "$as_me: failed program was:" >&5
15674 cat conftest.$ac_ext >&5
15675 ac_lo=`expr '(' $ac_mid ')' + 1`
15677 rm -f conftest.$ac_objext conftest.$ac_ext
15680 ?*) pgac_cv_alignof_long=$ac_lo;;
15681 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15682 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15683 { (exit 1); exit 1; }; } ;;
15686 if test "$cross_compiling" = yes; then
15687 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15688 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15689 { (exit 1); exit 1; }; }
15691 cat >conftest.$ac_ext <<_ACEOF
15692 #line $LINENO "configure"
15693 #include "confdefs.h"
15694 $ac_includes_default
15695 struct { char filler; long field; } pgac_struct;
15696 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15697 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15699 #include <stdlib.h>
15700 #ifdef F77_DUMMY_MAIN
15701 # ifdef __cplusplus
15704 int F77_DUMMY_MAIN() { return 1; }
15710 FILE *f = fopen ("conftest.val", "w");
15713 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15715 long i = longval ();
15716 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15718 fprintf (f, "%ld\n", i);
15722 unsigned long i = ulongval ();
15723 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15725 fprintf (f, "%lu\n", i);
15727 exit (ferror (f) || fclose (f) != 0);
15733 rm -f conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735 (eval $ac_link) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 pgac_cv_alignof_long=`cat conftest.val`
15746 echo "$as_me: program exited with status $ac_status" >&5
15747 echo "$as_me: failed program was:" >&5
15748 cat conftest.$ac_ext >&5
15749 ( exit $ac_status )
15750 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15751 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15752 { (exit 1); exit 1; }; }
15754 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15759 pgac_cv_alignof_long=0
15762 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15763 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15764 cat >>confdefs.h <<_ACEOF
15765 #define ALIGNOF_LONG $pgac_cv_alignof_long
15769 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15770 echo "$as_me:$LINENO: checking for long long int" >&5
15771 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15772 if test "${ac_cv_type_long_long_int+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 cat >conftest.$ac_ext <<_ACEOF
15776 #line $LINENO "configure"
15777 #include "confdefs.h"
15778 $ac_includes_default
15779 #ifdef F77_DUMMY_MAIN
15780 # ifdef __cplusplus
15783 int F77_DUMMY_MAIN() { return 1; }
15788 if ((long long int *) 0)
15790 if (sizeof (long long int))
15796 rm -f conftest.$ac_objext
15797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15798 (eval $ac_compile) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } &&
15802 { ac_try='test -s conftest.$ac_objext'
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_cv_type_long_long_int=yes
15810 echo "$as_me: failed program was:" >&5
15811 cat conftest.$ac_ext >&5
15812 ac_cv_type_long_long_int=no
15814 rm -f conftest.$ac_objext conftest.$ac_ext
15816 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15817 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15819 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15820 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15821 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 if test "$ac_cv_type_long_long_int" = yes; then
15825 if test "$cross_compiling" = yes; then
15826 # Depending upon the size, compute the lo and hi bounds.
15827 cat >conftest.$ac_ext <<_ACEOF
15828 #line $LINENO "configure"
15829 #include "confdefs.h"
15830 $ac_includes_default
15831 struct { char filler; long long int field; } pgac_struct;
15832 #ifdef F77_DUMMY_MAIN
15833 # ifdef __cplusplus
15836 int F77_DUMMY_MAIN() { return 1; }
15841 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15848 rm -f conftest.$ac_objext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15850 (eval $ac_compile) 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -s conftest.$ac_objext'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15862 cat >conftest.$ac_ext <<_ACEOF
15863 #line $LINENO "configure"
15864 #include "confdefs.h"
15865 $ac_includes_default
15866 struct { char filler; long long int field; } pgac_struct;
15867 #ifdef F77_DUMMY_MAIN
15868 # ifdef __cplusplus
15871 int F77_DUMMY_MAIN() { return 1; }
15876 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15883 rm -f conftest.$ac_objext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885 (eval $ac_compile) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 ac_hi=$ac_mid; break
15897 echo "$as_me: failed program was:" >&5
15898 cat conftest.$ac_ext >&5
15899 ac_lo=`expr $ac_mid + 1`
15900 if test $ac_lo -le $ac_mid; then
15904 ac_mid=`expr 2 '*' $ac_mid + 1`
15906 rm -f conftest.$ac_objext conftest.$ac_ext
15909 echo "$as_me: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15911 cat >conftest.$ac_ext <<_ACEOF
15912 #line $LINENO "configure"
15913 #include "confdefs.h"
15914 $ac_includes_default
15915 struct { char filler; long long int field; } pgac_struct;
15916 #ifdef F77_DUMMY_MAIN
15917 # ifdef __cplusplus
15920 int F77_DUMMY_MAIN() { return 1; }
15925 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15932 rm -f conftest.$ac_objext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934 (eval $ac_compile) 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } &&
15938 { ac_try='test -s conftest.$ac_objext'
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; }; then
15946 cat >conftest.$ac_ext <<_ACEOF
15947 #line $LINENO "configure"
15948 #include "confdefs.h"
15949 $ac_includes_default
15950 struct { char filler; long long int field; } pgac_struct;
15951 #ifdef F77_DUMMY_MAIN
15952 # ifdef __cplusplus
15955 int F77_DUMMY_MAIN() { return 1; }
15960 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15967 rm -f conftest.$ac_objext
15968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15969 (eval $ac_compile) 2>&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } &&
15973 { ac_try='test -s conftest.$ac_objext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 ac_lo=$ac_mid; break
15981 echo "$as_me: failed program was:" >&5
15982 cat conftest.$ac_ext >&5
15983 ac_hi=`expr '(' $ac_mid ')' - 1`
15984 if test $ac_mid -le $ac_hi; then
15988 ac_mid=`expr 2 '*' $ac_mid`
15990 rm -f conftest.$ac_objext conftest.$ac_ext
15993 echo "$as_me: failed program was:" >&5
15994 cat conftest.$ac_ext >&5
15997 rm -f conftest.$ac_objext conftest.$ac_ext
15999 rm -f conftest.$ac_objext conftest.$ac_ext
16000 # Binary search between lo and hi bounds.
16001 while test "x$ac_lo" != "x$ac_hi"; do
16002 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16003 cat >conftest.$ac_ext <<_ACEOF
16004 #line $LINENO "configure"
16005 #include "confdefs.h"
16006 $ac_includes_default
16007 struct { char filler; long long int field; } pgac_struct;
16008 #ifdef F77_DUMMY_MAIN
16009 # ifdef __cplusplus
16012 int F77_DUMMY_MAIN() { return 1; }
16017 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16024 rm -f conftest.$ac_objext
16025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16026 (eval $ac_compile) 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); } &&
16030 { ac_try='test -s conftest.$ac_objext'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; }; then
16038 echo "$as_me: failed program was:" >&5
16039 cat conftest.$ac_ext >&5
16040 ac_lo=`expr '(' $ac_mid ')' + 1`
16042 rm -f conftest.$ac_objext conftest.$ac_ext
16045 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
16046 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16047 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16048 { (exit 1); exit 1; }; } ;;
16051 if test "$cross_compiling" = yes; then
16052 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16053 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16054 { (exit 1); exit 1; }; }
16056 cat >conftest.$ac_ext <<_ACEOF
16057 #line $LINENO "configure"
16058 #include "confdefs.h"
16059 $ac_includes_default
16060 struct { char filler; long long int field; } pgac_struct;
16061 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16062 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16064 #include <stdlib.h>
16065 #ifdef F77_DUMMY_MAIN
16066 # ifdef __cplusplus
16069 int F77_DUMMY_MAIN() { return 1; }
16075 FILE *f = fopen ("conftest.val", "w");
16078 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16080 long i = longval ();
16081 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16083 fprintf (f, "%ld\n", i);
16087 unsigned long i = ulongval ();
16088 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16090 fprintf (f, "%lu\n", i);
16092 exit (ferror (f) || fclose (f) != 0);
16098 rm -f conftest$ac_exeext
16099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16100 (eval $ac_link) 2>&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 pgac_cv_alignof_long_long_int=`cat conftest.val`
16111 echo "$as_me: program exited with status $ac_status" >&5
16112 echo "$as_me: failed program was:" >&5
16113 cat conftest.$ac_ext >&5
16114 ( exit $ac_status )
16115 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16116 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16117 { (exit 1); exit 1; }; }
16119 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16124 pgac_cv_alignof_long_long_int=0
16127 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16128 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16129 cat >>confdefs.h <<_ACEOF
16130 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16135 echo "$as_me:$LINENO: checking for double" >&5
16136 echo $ECHO_N "checking for double... $ECHO_C" >&6
16137 if test "${ac_cv_type_double+set}" = set; then
16138 echo $ECHO_N "(cached) $ECHO_C" >&6
16140 cat >conftest.$ac_ext <<_ACEOF
16141 #line $LINENO "configure"
16142 #include "confdefs.h"
16143 $ac_includes_default
16144 #ifdef F77_DUMMY_MAIN
16145 # ifdef __cplusplus
16148 int F77_DUMMY_MAIN() { return 1; }
16155 if (sizeof (double))
16161 rm -f conftest.$ac_objext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16163 (eval $ac_compile) 2>&5
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } &&
16167 { ac_try='test -s conftest.$ac_objext'
16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169 (eval $ac_try) 2>&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); }; }; then
16173 ac_cv_type_double=yes
16175 echo "$as_me: failed program was:" >&5
16176 cat conftest.$ac_ext >&5
16177 ac_cv_type_double=no
16179 rm -f conftest.$ac_objext conftest.$ac_ext
16181 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16182 echo "${ECHO_T}$ac_cv_type_double" >&6
16184 echo "$as_me:$LINENO: checking alignment of double" >&5
16185 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16186 if test "${pgac_cv_alignof_double+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 if test "$ac_cv_type_double" = yes; then
16190 if test "$cross_compiling" = yes; then
16191 # Depending upon the size, compute the lo and hi bounds.
16192 cat >conftest.$ac_ext <<_ACEOF
16193 #line $LINENO "configure"
16194 #include "confdefs.h"
16195 $ac_includes_default
16196 struct { char filler; double field; } pgac_struct;
16197 #ifdef F77_DUMMY_MAIN
16198 # ifdef __cplusplus
16201 int F77_DUMMY_MAIN() { return 1; }
16206 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16213 rm -f conftest.$ac_objext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } &&
16219 { ac_try='test -s conftest.$ac_objext'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16227 cat >conftest.$ac_ext <<_ACEOF
16228 #line $LINENO "configure"
16229 #include "confdefs.h"
16230 $ac_includes_default
16231 struct { char filler; double field; } pgac_struct;
16232 #ifdef F77_DUMMY_MAIN
16233 # ifdef __cplusplus
16236 int F77_DUMMY_MAIN() { return 1; }
16241 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16248 rm -f conftest.$ac_objext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16250 (eval $ac_compile) 2>&5
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); } &&
16254 { ac_try='test -s conftest.$ac_objext'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_hi=$ac_mid; break
16262 echo "$as_me: failed program was:" >&5
16263 cat conftest.$ac_ext >&5
16264 ac_lo=`expr $ac_mid + 1`
16265 if test $ac_lo -le $ac_mid; then
16269 ac_mid=`expr 2 '*' $ac_mid + 1`
16271 rm -f conftest.$ac_objext conftest.$ac_ext
16274 echo "$as_me: failed program was:" >&5
16275 cat conftest.$ac_ext >&5
16276 cat >conftest.$ac_ext <<_ACEOF
16277 #line $LINENO "configure"
16278 #include "confdefs.h"
16279 $ac_includes_default
16280 struct { char filler; double field; } pgac_struct;
16281 #ifdef F77_DUMMY_MAIN
16282 # ifdef __cplusplus
16285 int F77_DUMMY_MAIN() { return 1; }
16290 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16297 rm -f conftest.$ac_objext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16299 (eval $ac_compile) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } &&
16303 { ac_try='test -s conftest.$ac_objext'
16304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305 (eval $ac_try) 2>&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; }; then
16311 cat >conftest.$ac_ext <<_ACEOF
16312 #line $LINENO "configure"
16313 #include "confdefs.h"
16314 $ac_includes_default
16315 struct { char filler; double field; } pgac_struct;
16316 #ifdef F77_DUMMY_MAIN
16317 # ifdef __cplusplus
16320 int F77_DUMMY_MAIN() { return 1; }
16325 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16332 rm -f conftest.$ac_objext
16333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16334 (eval $ac_compile) 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } &&
16338 { ac_try='test -s conftest.$ac_objext'
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16344 ac_lo=$ac_mid; break
16346 echo "$as_me: failed program was:" >&5
16347 cat conftest.$ac_ext >&5
16348 ac_hi=`expr '(' $ac_mid ')' - 1`
16349 if test $ac_mid -le $ac_hi; then
16353 ac_mid=`expr 2 '*' $ac_mid`
16355 rm -f conftest.$ac_objext conftest.$ac_ext
16358 echo "$as_me: failed program was:" >&5
16359 cat conftest.$ac_ext >&5
16362 rm -f conftest.$ac_objext conftest.$ac_ext
16364 rm -f conftest.$ac_objext conftest.$ac_ext
16365 # Binary search between lo and hi bounds.
16366 while test "x$ac_lo" != "x$ac_hi"; do
16367 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16368 cat >conftest.$ac_ext <<_ACEOF
16369 #line $LINENO "configure"
16370 #include "confdefs.h"
16371 $ac_includes_default
16372 struct { char filler; double field; } pgac_struct;
16373 #ifdef F77_DUMMY_MAIN
16374 # ifdef __cplusplus
16377 int F77_DUMMY_MAIN() { return 1; }
16382 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16389 rm -f conftest.$ac_objext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16391 (eval $ac_compile) 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
16395 { ac_try='test -s conftest.$ac_objext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16403 echo "$as_me: failed program was:" >&5
16404 cat conftest.$ac_ext >&5
16405 ac_lo=`expr '(' $ac_mid ')' + 1`
16407 rm -f conftest.$ac_objext conftest.$ac_ext
16410 ?*) pgac_cv_alignof_double=$ac_lo;;
16411 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16412 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16413 { (exit 1); exit 1; }; } ;;
16416 if test "$cross_compiling" = yes; then
16417 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16418 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16419 { (exit 1); exit 1; }; }
16421 cat >conftest.$ac_ext <<_ACEOF
16422 #line $LINENO "configure"
16423 #include "confdefs.h"
16424 $ac_includes_default
16425 struct { char filler; double field; } pgac_struct;
16426 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16427 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16429 #include <stdlib.h>
16430 #ifdef F77_DUMMY_MAIN
16431 # ifdef __cplusplus
16434 int F77_DUMMY_MAIN() { return 1; }
16440 FILE *f = fopen ("conftest.val", "w");
16443 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16445 long i = longval ();
16446 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16448 fprintf (f, "%ld\n", i);
16452 unsigned long i = ulongval ();
16453 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16455 fprintf (f, "%lu\n", i);
16457 exit (ferror (f) || fclose (f) != 0);
16463 rm -f conftest$ac_exeext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16465 (eval $ac_link) 2>&5
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 pgac_cv_alignof_double=`cat conftest.val`
16476 echo "$as_me: program exited with status $ac_status" >&5
16477 echo "$as_me: failed program was:" >&5
16478 cat conftest.$ac_ext >&5
16479 ( exit $ac_status )
16480 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16481 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16482 { (exit 1); exit 1; }; }
16484 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16489 pgac_cv_alignof_double=0
16492 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16493 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16494 cat >>confdefs.h <<_ACEOF
16495 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16500 # Compute maximum alignment of any basic type.
16501 # We assume long's alignment is at least as strong as char, short, or int;
16502 # but we must check long long (if it exists) and double.
16504 MAX_ALIGNOF=$pgac_cv_alignof_long
16505 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16506 MAX_ALIGNOF=$pgac_cv_alignof_double
16508 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16509 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16512 cat >>confdefs.h <<_ACEOF
16513 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16518 # Some platforms predefine the types int8, int16, etc. Only check
16519 # a (hopefully) representative subset.
16520 echo "$as_me:$LINENO: checking for int8" >&5
16521 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16522 if test "${ac_cv_type_int8+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 cat >conftest.$ac_ext <<_ACEOF
16526 #line $LINENO "configure"
16527 #include "confdefs.h"
16529 #ifdef HAVE_SUPPORTDEFS_H
16530 #include <SupportDefs.h>
16533 #ifdef F77_DUMMY_MAIN
16534 # ifdef __cplusplus
16537 int F77_DUMMY_MAIN() { return 1; }
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552 (eval $ac_compile) 2>&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); } &&
16556 { ac_try='test -s conftest.$ac_objext'
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 ac_cv_type_int8=yes
16564 echo "$as_me: failed program was:" >&5
16565 cat conftest.$ac_ext >&5
16568 rm -f conftest.$ac_objext conftest.$ac_ext
16570 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16571 echo "${ECHO_T}$ac_cv_type_int8" >&6
16572 if test $ac_cv_type_int8 = yes; then
16574 cat >>confdefs.h <<_ACEOF
16575 #define HAVE_INT8 1
16580 echo "$as_me:$LINENO: checking for uint8" >&5
16581 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16582 if test "${ac_cv_type_uint8+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 cat >conftest.$ac_ext <<_ACEOF
16586 #line $LINENO "configure"
16587 #include "confdefs.h"
16589 #ifdef HAVE_SUPPORTDEFS_H
16590 #include <SupportDefs.h>
16593 #ifdef F77_DUMMY_MAIN
16594 # ifdef __cplusplus
16597 int F77_DUMMY_MAIN() { return 1; }
16604 if (sizeof (uint8))
16610 rm -f conftest.$ac_objext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16612 (eval $ac_compile) 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -s conftest.$ac_objext'
16617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 ac_cv_type_uint8=yes
16624 echo "$as_me: failed program was:" >&5
16625 cat conftest.$ac_ext >&5
16626 ac_cv_type_uint8=no
16628 rm -f conftest.$ac_objext conftest.$ac_ext
16630 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16631 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16632 if test $ac_cv_type_uint8 = yes; then
16634 cat >>confdefs.h <<_ACEOF
16635 #define HAVE_UINT8 1
16640 echo "$as_me:$LINENO: checking for int64" >&5
16641 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16642 if test "${ac_cv_type_int64+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 cat >conftest.$ac_ext <<_ACEOF
16646 #line $LINENO "configure"
16647 #include "confdefs.h"
16649 #ifdef HAVE_SUPPORTDEFS_H
16650 #include <SupportDefs.h>
16653 #ifdef F77_DUMMY_MAIN
16654 # ifdef __cplusplus
16657 int F77_DUMMY_MAIN() { return 1; }
16664 if (sizeof (int64))
16670 rm -f conftest.$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672 (eval $ac_compile) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -s conftest.$ac_objext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_type_int64=yes
16684 echo "$as_me: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 ac_cv_type_int64=no
16688 rm -f conftest.$ac_objext conftest.$ac_ext
16690 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16691 echo "${ECHO_T}$ac_cv_type_int64" >&6
16692 if test $ac_cv_type_int64 = yes; then
16694 cat >>confdefs.h <<_ACEOF
16695 #define HAVE_INT64 1
16700 echo "$as_me:$LINENO: checking for uint64" >&5
16701 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16702 if test "${ac_cv_type_uint64+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 cat >conftest.$ac_ext <<_ACEOF
16706 #line $LINENO "configure"
16707 #include "confdefs.h"
16709 #ifdef HAVE_SUPPORTDEFS_H
16710 #include <SupportDefs.h>
16713 #ifdef F77_DUMMY_MAIN
16714 # ifdef __cplusplus
16717 int F77_DUMMY_MAIN() { return 1; }
16724 if (sizeof (uint64))
16730 rm -f conftest.$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732 (eval $ac_compile) 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -s conftest.$ac_objext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_cv_type_uint64=yes
16744 echo "$as_me: failed program was:" >&5
16745 cat conftest.$ac_ext >&5
16746 ac_cv_type_uint64=no
16748 rm -f conftest.$ac_objext conftest.$ac_ext
16750 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16751 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16752 if test $ac_cv_type_uint64 = yes; then
16754 cat >>confdefs.h <<_ACEOF
16755 #define HAVE_UINT64 1
16762 # We also check for sig_atomic_t, which *should* be defined per ANSI
16763 # C, but is missing on some old platforms.
16764 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16765 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16766 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16767 echo $ECHO_N "(cached) $ECHO_C" >&6
16769 cat >conftest.$ac_ext <<_ACEOF
16770 #line $LINENO "configure"
16771 #include "confdefs.h"
16772 #include <signal.h>
16774 #ifdef F77_DUMMY_MAIN
16775 # ifdef __cplusplus
16778 int F77_DUMMY_MAIN() { return 1; }
16783 if ((sig_atomic_t *) 0)
16785 if (sizeof (sig_atomic_t))
16791 rm -f conftest.$ac_objext
16792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16793 (eval $ac_compile) 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } &&
16797 { ac_try='test -s conftest.$ac_objext'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_cv_type_sig_atomic_t=yes
16805 echo "$as_me: failed program was:" >&5
16806 cat conftest.$ac_ext >&5
16807 ac_cv_type_sig_atomic_t=no
16809 rm -f conftest.$ac_objext conftest.$ac_ext
16811 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16812 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16813 if test $ac_cv_type_sig_atomic_t = yes; then
16815 cat >>confdefs.h <<_ACEOF
16816 #define HAVE_SIG_ATOMIC_T 1
16824 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16825 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16826 if test "${pgac_cv_func_posix_signals+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 cat >conftest.$ac_ext <<_ACEOF
16830 #line $LINENO "configure"
16831 #include "confdefs.h"
16832 #include <signal.h>
16834 #ifdef F77_DUMMY_MAIN
16835 # ifdef __cplusplus
16838 int F77_DUMMY_MAIN() { return 1; }
16843 struct sigaction act, oact;
16844 sigemptyset(&act.sa_mask);
16845 act.sa_flags = SA_RESTART;
16846 sigaction(0, &act, &oact);
16851 rm -f conftest.$ac_objext conftest$ac_exeext
16852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16853 (eval $ac_link) 2>&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } &&
16857 { ac_try='test -s conftest$ac_exeext'
16858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859 (eval $ac_try) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 pgac_cv_func_posix_signals=yes
16865 echo "$as_me: failed program was:" >&5
16866 cat conftest.$ac_ext >&5
16867 pgac_cv_func_posix_signals=no
16869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16871 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16872 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16873 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16875 cat >>confdefs.h <<\_ACEOF
16876 #define HAVE_POSIX_SIGNALS
16880 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16882 if test $ac_cv_func_fseeko = yes; then
16883 # Check whether --enable-largefile or --disable-largefile was given.
16884 if test "${enable_largefile+set}" = set; then
16885 enableval="$enable_largefile"
16888 if test "$enable_largefile" != no; then
16890 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16891 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16892 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 ac_cv_sys_largefile_CC=no
16896 if test "$GCC" != yes; then
16899 # IRIX 6.2 and later do not support large files by default,
16900 # so use the C compiler's -n32 option if that helps.
16901 cat >conftest.$ac_ext <<_ACEOF
16902 #line $LINENO "configure"
16903 #include "confdefs.h"
16904 #include <sys/types.h>
16905 /* Check that off_t can represent 2**63 - 1 correctly.
16906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16907 since some C++ compilers masquerading as C compilers
16908 incorrectly reject 9223372036854775807. */
16909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16911 && LARGE_OFF_T % 2147483647 == 1)
16913 #ifdef F77_DUMMY_MAIN
16914 # ifdef __cplusplus
16917 int F77_DUMMY_MAIN() { return 1; }
16927 rm -f conftest.$ac_objext
16928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929 (eval $ac_compile) 2>&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -s conftest.$ac_objext'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16941 echo "$as_me: failed program was:" >&5
16942 cat conftest.$ac_ext >&5
16944 rm -f conftest.$ac_objext
16946 rm -f conftest.$ac_objext
16947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16948 (eval $ac_compile) 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } &&
16952 { ac_try='test -s conftest.$ac_objext'
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 ac_cv_sys_largefile_CC=' -n32'; break
16960 echo "$as_me: failed program was:" >&5
16961 cat conftest.$ac_ext >&5
16963 rm -f conftest.$ac_objext
16967 rm -f conftest.$ac_ext
16970 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16971 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16972 if test "$ac_cv_sys_largefile_CC" != no; then
16973 CC=$CC$ac_cv_sys_largefile_CC
16976 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16977 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16978 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 ac_cv_sys_file_offset_bits=no
16983 cat >conftest.$ac_ext <<_ACEOF
16984 #line $LINENO "configure"
16985 #include "confdefs.h"
16986 #include <sys/types.h>
16987 /* Check that off_t can represent 2**63 - 1 correctly.
16988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16989 since some C++ compilers masquerading as C compilers
16990 incorrectly reject 9223372036854775807. */
16991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16993 && LARGE_OFF_T % 2147483647 == 1)
16995 #ifdef F77_DUMMY_MAIN
16996 # ifdef __cplusplus
16999 int F77_DUMMY_MAIN() { return 1; }
17009 rm -f conftest.$ac_objext
17010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17011 (eval $ac_compile) 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); } &&
17015 { ac_try='test -s conftest.$ac_objext'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17023 echo "$as_me: failed program was:" >&5
17024 cat conftest.$ac_ext >&5
17026 rm -f conftest.$ac_objext conftest.$ac_ext
17027 cat >conftest.$ac_ext <<_ACEOF
17028 #line $LINENO "configure"
17029 #include "confdefs.h"
17030 #define _FILE_OFFSET_BITS 64
17031 #include <sys/types.h>
17032 /* Check that off_t can represent 2**63 - 1 correctly.
17033 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17034 since some C++ compilers masquerading as C compilers
17035 incorrectly reject 9223372036854775807. */
17036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17037 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17038 && LARGE_OFF_T % 2147483647 == 1)
17040 #ifdef F77_DUMMY_MAIN
17041 # ifdef __cplusplus
17044 int F77_DUMMY_MAIN() { return 1; }
17054 rm -f conftest.$ac_objext
17055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17056 (eval $ac_compile) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } &&
17060 { ac_try='test -s conftest.$ac_objext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_sys_file_offset_bits=64; break
17068 echo "$as_me: failed program was:" >&5
17069 cat conftest.$ac_ext >&5
17071 rm -f conftest.$ac_objext conftest.$ac_ext
17075 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17076 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17077 if test "$ac_cv_sys_file_offset_bits" != no; then
17079 cat >>confdefs.h <<_ACEOF
17080 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17085 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17086 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17087 if test "${ac_cv_sys_large_files+set}" = set; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 ac_cv_sys_large_files=no
17092 cat >conftest.$ac_ext <<_ACEOF
17093 #line $LINENO "configure"
17094 #include "confdefs.h"
17095 #include <sys/types.h>
17096 /* Check that off_t can represent 2**63 - 1 correctly.
17097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17098 since some C++ compilers masquerading as C compilers
17099 incorrectly reject 9223372036854775807. */
17100 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17102 && LARGE_OFF_T % 2147483647 == 1)
17104 #ifdef F77_DUMMY_MAIN
17105 # ifdef __cplusplus
17108 int F77_DUMMY_MAIN() { return 1; }
17118 rm -f conftest.$ac_objext
17119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17120 (eval $ac_compile) 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } &&
17124 { ac_try='test -s conftest.$ac_objext'
17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17126 (eval $ac_try) 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); }; }; then
17132 echo "$as_me: failed program was:" >&5
17133 cat conftest.$ac_ext >&5
17135 rm -f conftest.$ac_objext conftest.$ac_ext
17136 cat >conftest.$ac_ext <<_ACEOF
17137 #line $LINENO "configure"
17138 #include "confdefs.h"
17139 #define _LARGE_FILES 1
17140 #include <sys/types.h>
17141 /* Check that off_t can represent 2**63 - 1 correctly.
17142 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17143 since some C++ compilers masquerading as C compilers
17144 incorrectly reject 9223372036854775807. */
17145 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17146 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17147 && LARGE_OFF_T % 2147483647 == 1)
17149 #ifdef F77_DUMMY_MAIN
17150 # ifdef __cplusplus
17153 int F77_DUMMY_MAIN() { return 1; }
17163 rm -f conftest.$ac_objext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17165 (eval $ac_compile) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try='test -s conftest.$ac_objext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 ac_cv_sys_large_files=1; break
17177 echo "$as_me: failed program was:" >&5
17178 cat conftest.$ac_ext >&5
17180 rm -f conftest.$ac_objext conftest.$ac_ext
17184 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17185 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17186 if test "$ac_cv_sys_large_files" != no; then
17188 cat >>confdefs.h <<_ACEOF
17189 #define _LARGE_FILES $ac_cv_sys_large_files
17199 # Select semaphore implementation type.
17200 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17202 cat >>confdefs.h <<\_ACEOF
17203 #define USE_NAMED_POSIX_SEMAPHORES 1
17206 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17208 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17210 cat >>confdefs.h <<\_ACEOF
17211 #define USE_UNNAMED_POSIX_SEMAPHORES 1
17214 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17217 cat >>confdefs.h <<\_ACEOF
17218 #define USE_SYSV_SEMAPHORES 1
17221 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17226 # Select shared-memory implementation type.
17228 cat >>confdefs.h <<\_ACEOF
17229 #define USE_SYSV_SHARED_MEMORY 1
17232 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17235 if test "$enable_nls" = yes ; then
17237 echo "$as_me:$LINENO: checking for library containing gettext" >&5
17238 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
17239 if test "${ac_cv_search_gettext+set}" = set; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17242 ac_func_search_save_LIBS=$LIBS
17243 ac_cv_search_gettext=no
17244 cat >conftest.$ac_ext <<_ACEOF
17245 #line $LINENO "configure"
17246 #include "confdefs.h"
17248 /* Override any gcc2 internal prototype to avoid an error. */
17252 /* We use char because int might match the return type of a gcc2
17253 builtin and then its argument prototype would still apply. */
17255 #ifdef F77_DUMMY_MAIN
17256 # ifdef __cplusplus
17259 int F77_DUMMY_MAIN() { return 1; }
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17271 (eval $ac_link) 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_search_gettext="none required"
17283 echo "$as_me: failed program was:" >&5
17284 cat conftest.$ac_ext >&5
17286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17287 if test "$ac_cv_search_gettext" = no; then
17288 for ac_lib in intl; do
17289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17290 cat >conftest.$ac_ext <<_ACEOF
17291 #line $LINENO "configure"
17292 #include "confdefs.h"
17294 /* Override any gcc2 internal prototype to avoid an error. */
17298 /* We use char because int might match the return type of a gcc2
17299 builtin and then its argument prototype would still apply. */
17301 #ifdef F77_DUMMY_MAIN
17302 # ifdef __cplusplus
17305 int F77_DUMMY_MAIN() { return 1; }
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317 (eval $ac_link) 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -s conftest$ac_exeext'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_search_gettext="-l$ac_lib"
17330 echo "$as_me: failed program was:" >&5
17331 cat conftest.$ac_ext >&5
17333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17336 LIBS=$ac_func_search_save_LIBS
17338 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
17339 echo "${ECHO_T}$ac_cv_search_gettext" >&6
17340 if test "$ac_cv_search_gettext" != no; then
17341 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
17344 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
17345 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
17346 { (exit 1); exit 1; }; }
17349 if test "${ac_cv_header_libintl_h+set}" = set; then
17350 echo "$as_me:$LINENO: checking for libintl.h" >&5
17351 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17352 if test "${ac_cv_header_libintl_h+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17356 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17358 # Is the header compilable?
17359 echo "$as_me:$LINENO: checking libintl.h usability" >&5
17360 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
17361 cat >conftest.$ac_ext <<_ACEOF
17362 #line $LINENO "configure"
17363 #include "confdefs.h"
17364 $ac_includes_default
17365 #include <libintl.h>
17367 rm -f conftest.$ac_objext
17368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17369 (eval $ac_compile) 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -s conftest.$ac_objext'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17379 ac_header_compiler=yes
17381 echo "$as_me: failed program was:" >&5
17382 cat conftest.$ac_ext >&5
17383 ac_header_compiler=no
17385 rm -f conftest.$ac_objext conftest.$ac_ext
17386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17387 echo "${ECHO_T}$ac_header_compiler" >&6
17389 # Is the header present?
17390 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17391 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17392 cat >conftest.$ac_ext <<_ACEOF
17393 #line $LINENO "configure"
17394 #include "confdefs.h"
17395 #include <libintl.h>
17397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17400 egrep -v '^ *\+' conftest.er1 >conftest.err
17402 cat conftest.err >&5
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } >/dev/null; then
17405 if test -s conftest.err; then
17406 ac_cpp_err=$ac_c_preproc_warn_flag
17413 if test -z "$ac_cpp_err"; then
17414 ac_header_preproc=yes
17416 echo "$as_me: failed program was:" >&5
17417 cat conftest.$ac_ext >&5
17418 ac_header_preproc=no
17420 rm -f conftest.err conftest.$ac_ext
17421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17422 echo "${ECHO_T}$ac_header_preproc" >&6
17424 # So? What about this header?
17425 case $ac_header_compiler:$ac_header_preproc in
17427 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17428 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17429 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17430 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17432 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17433 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17435 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17437 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17439 echo "$as_me:$LINENO: checking for libintl.h" >&5
17440 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17441 if test "${ac_cv_header_libintl_h+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 ac_cv_header_libintl_h=$ac_header_preproc
17446 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17447 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17450 if test $ac_cv_header_libintl_h = yes; then
17453 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17454 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17455 { (exit 1); exit 1; }; }
17459 for ac_prog in msgfmt
17461 # Extract the first word of "$ac_prog", so it can be a program name with args.
17462 set dummy $ac_prog; ac_word=$2
17463 echo "$as_me:$LINENO: checking for $ac_word" >&5
17464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17465 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 if test -n "$MSGFMT"; then
17469 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17472 for as_dir in $PATH
17475 test -z "$as_dir" && as_dir=.
17476 for ac_exec_ext in '' $ac_executable_extensions; do
17477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17478 ac_cv_prog_MSGFMT="$ac_prog"
17479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17487 MSGFMT=$ac_cv_prog_MSGFMT
17488 if test -n "$MSGFMT"; then
17489 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17490 echo "${ECHO_T}$MSGFMT" >&6
17492 echo "$as_me:$LINENO: result: no" >&5
17493 echo "${ECHO_T}no" >&6
17496 test -n "$MSGFMT" && break
17499 if test -z "$MSGFMT"; then
17500 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17501 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17502 { (exit 1); exit 1; }; }
17504 for ac_prog in msgmerge
17506 # Extract the first word of "$ac_prog", so it can be a program name with args.
17507 set dummy $ac_prog; ac_word=$2
17508 echo "$as_me:$LINENO: checking for $ac_word" >&5
17509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17510 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 if test -n "$MSGMERGE"; then
17514 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17517 for as_dir in $PATH
17520 test -z "$as_dir" && as_dir=.
17521 for ac_exec_ext in '' $ac_executable_extensions; do
17522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17523 ac_cv_prog_MSGMERGE="$ac_prog"
17524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17532 MSGMERGE=$ac_cv_prog_MSGMERGE
17533 if test -n "$MSGMERGE"; then
17534 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17535 echo "${ECHO_T}$MSGMERGE" >&6
17537 echo "$as_me:$LINENO: result: no" >&5
17538 echo "${ECHO_T}no" >&6
17541 test -n "$MSGMERGE" && break
17544 for ac_prog in xgettext
17546 # Extract the first word of "$ac_prog", so it can be a program name with args.
17547 set dummy $ac_prog; ac_word=$2
17548 echo "$as_me:$LINENO: checking for $ac_word" >&5
17549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17550 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17553 if test -n "$XGETTEXT"; then
17554 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17557 for as_dir in $PATH
17560 test -z "$as_dir" && as_dir=.
17561 for ac_exec_ext in '' $ac_executable_extensions; do
17562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17563 ac_cv_prog_XGETTEXT="$ac_prog"
17564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17572 XGETTEXT=$ac_cv_prog_XGETTEXT
17573 if test -n "$XGETTEXT"; then
17574 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17575 echo "${ECHO_T}$XGETTEXT" >&6
17577 echo "$as_me:$LINENO: result: no" >&5
17578 echo "${ECHO_T}no" >&6
17581 test -n "$XGETTEXT" && break
17585 # Note: share/locale is always the default, independent of $datadir
17586 localedir='${prefix}/share/locale'
17587 if test x"$prefix" = x"NONE"; then
17588 exp_localedir="$ac_default_prefix/share/locale"
17590 exp_localedir="$prefix/share/locale"
17595 cat >>confdefs.h <<_ACEOF
17596 #define LOCALEDIR "$exp_localedir"
17602 # Check for Tcl configuration script tclConfig.sh
17603 if test "$with_tcl" = yes; then
17604 for ac_prog in tclsh tcl
17606 # Extract the first word of "$ac_prog", so it can be a program name with args.
17607 set dummy $ac_prog; ac_word=$2
17608 echo "$as_me:$LINENO: checking for $ac_word" >&5
17609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17610 if test "${ac_cv_path_TCLSH+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17615 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17619 for as_dir in $PATH
17622 test -z "$as_dir" && as_dir=.
17623 for ac_exec_ext in '' $ac_executable_extensions; do
17624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17625 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17635 TCLSH=$ac_cv_path_TCLSH
17637 if test -n "$TCLSH"; then
17638 echo "$as_me:$LINENO: result: $TCLSH" >&5
17639 echo "${ECHO_T}$TCLSH" >&6
17641 echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6
17645 test -n "$TCLSH" && break
17648 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17649 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17650 # Let user override test
17651 if test -z "$TCL_CONFIG_SH"; then
17652 pgac_test_dirs="$with_tclconfig"
17654 set X $pgac_test_dirs; shift
17655 if test $# -eq 0; then
17656 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17657 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17658 { (exit 1); exit 1; }; }
17659 set X `echo 'puts $auto_path' | $TCLSH`; shift
17663 if test -r "$pgac_dir/tclConfig.sh"; then
17664 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17670 if test -z "$TCL_CONFIG_SH"; then
17671 echo "$as_me:$LINENO: result: no" >&5
17672 echo "${ECHO_T}no" >&6
17673 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17674 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17675 { (exit 1); exit 1; }; }
17677 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17678 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17684 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17685 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17686 eval TCL_LIBS=\"$TCL_LIBS\"
17687 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17688 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17693 # Check for DocBook and tools
17695 for ac_prog in onsgmls nsgmls
17697 # Extract the first word of "$ac_prog", so it can be a program name with args.
17698 set dummy $ac_prog; ac_word=$2
17699 echo "$as_me:$LINENO: checking for $ac_word" >&5
17700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17701 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 if test -n "$NSGMLS"; then
17705 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17708 for as_dir in $PATH
17711 test -z "$as_dir" && as_dir=.
17712 for ac_exec_ext in '' $ac_executable_extensions; do
17713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17714 ac_cv_prog_NSGMLS="$ac_prog"
17715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17723 NSGMLS=$ac_cv_prog_NSGMLS
17724 if test -n "$NSGMLS"; then
17725 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17726 echo "${ECHO_T}$NSGMLS" >&6
17728 echo "$as_me:$LINENO: result: no" >&5
17729 echo "${ECHO_T}no" >&6
17732 test -n "$NSGMLS" && break
17735 for ac_prog in openjade jade
17737 # Extract the first word of "$ac_prog", so it can be a program name with args.
17738 set dummy $ac_prog; ac_word=$2
17739 echo "$as_me:$LINENO: checking for $ac_word" >&5
17740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17741 if test "${ac_cv_prog_JADE+set}" = set; then
17742 echo $ECHO_N "(cached) $ECHO_C" >&6
17744 if test -n "$JADE"; then
17745 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17748 for as_dir in $PATH
17751 test -z "$as_dir" && as_dir=.
17752 for ac_exec_ext in '' $ac_executable_extensions; do
17753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17754 ac_cv_prog_JADE="$ac_prog"
17755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17763 JADE=$ac_cv_prog_JADE
17764 if test -n "$JADE"; then
17765 echo "$as_me:$LINENO: result: $JADE" >&5
17766 echo "${ECHO_T}$JADE" >&6
17768 echo "$as_me:$LINENO: result: no" >&5
17769 echo "${ECHO_T}no" >&6
17772 test -n "$JADE" && break
17776 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17777 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17778 if test "${pgac_cv_check_docbook+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17781 cat >conftest.sgml <<EOF
17782 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17784 <title>test</title>
17786 <title>random</title>
17788 <title>testsect</title>
17795 pgac_cv_check_docbook=no
17797 if test -n "$NSGMLS"; then
17798 $NSGMLS -s conftest.sgml 1>&5 2>&1
17799 if test $? -eq 0; then
17800 pgac_cv_check_docbook=yes
17803 rm -f conftest.sgml
17805 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17806 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17808 have_docbook=$pgac_cv_check_docbook
17811 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17812 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17813 if test "${pgac_cv_path_stylesheets+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 if test -n "$DOCBOOKSTYLE"; then
17817 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17819 for pgac_prefix in /usr /usr/local /opt; do
17820 for pgac_infix in share lib; do
17821 for pgac_postfix in \
17822 sgml/stylesheets/nwalsh-modular \
17823 sgml/stylesheets/docbook \
17824 sgml/docbook-dsssl \
17825 sgml/docbook/dsssl/modular \
17826 sgml/docbook/stylesheet/dsssl/modular \
17827 sgml/docbook/dsssl-stylesheets
17829 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17830 if test -r "$pgac_candidate/html/docbook.dsl" \
17831 && test -r "$pgac_candidate/print/docbook.dsl"
17833 pgac_cv_path_stylesheets=$pgac_candidate
17842 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17844 if test -n "$DOCBOOKSTYLE"; then
17845 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17846 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17848 echo "$as_me:$LINENO: result: no" >&5
17849 echo "${ECHO_T}no" >&6
17851 if test -n "$DOCBOOKSTYLE"; then
17852 for ac_prog in collateindex.pl
17854 # Extract the first word of "$ac_prog", so it can be a program name with args.
17855 set dummy $ac_prog; ac_word=$2
17856 echo "$as_me:$LINENO: checking for $ac_word" >&5
17857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17858 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 case $COLLATEINDEX in
17863 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17867 for as_dir in $DOCBOOKSTYLE/bin $PATH
17870 test -z "$as_dir" && as_dir=.
17871 for ac_exec_ext in '' $ac_executable_extensions; do
17872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17873 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17883 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17885 if test -n "$COLLATEINDEX"; then
17886 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17887 echo "${ECHO_T}$COLLATEINDEX" >&6
17889 echo "$as_me:$LINENO: result: no" >&5
17890 echo "${ECHO_T}no" >&6
17893 test -n "$COLLATEINDEX" && break
17897 for ac_prog in collateindex.pl
17899 # Extract the first word of "$ac_prog", so it can be a program name with args.
17900 set dummy $ac_prog; ac_word=$2
17901 echo "$as_me:$LINENO: checking for $ac_word" >&5
17902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17903 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17904 echo $ECHO_N "(cached) $ECHO_C" >&6
17906 case $COLLATEINDEX in
17908 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17912 for as_dir in $PATH
17915 test -z "$as_dir" && as_dir=.
17916 for ac_exec_ext in '' $ac_executable_extensions; do
17917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17918 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17928 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17930 if test -n "$COLLATEINDEX"; then
17931 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17932 echo "${ECHO_T}$COLLATEINDEX" >&6
17934 echo "$as_me:$LINENO: result: no" >&5
17935 echo "${ECHO_T}no" >&6
17938 test -n "$COLLATEINDEX" && break
17942 for ac_prog in sgmlspl
17944 # Extract the first word of "$ac_prog", so it can be a program name with args.
17945 set dummy $ac_prog; ac_word=$2
17946 echo "$as_me:$LINENO: checking for $ac_word" >&5
17947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17948 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17951 if test -n "$SGMLSPL"; then
17952 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17955 for as_dir in $PATH
17958 test -z "$as_dir" && as_dir=.
17959 for ac_exec_ext in '' $ac_executable_extensions; do
17960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17961 ac_cv_prog_SGMLSPL="$ac_prog"
17962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17970 SGMLSPL=$ac_cv_prog_SGMLSPL
17971 if test -n "$SGMLSPL"; then
17972 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17973 echo "${ECHO_T}$SGMLSPL" >&6
17975 echo "$as_me:$LINENO: result: no" >&5
17976 echo "${ECHO_T}no" >&6
17979 test -n "$SGMLSPL" && break
17985 # We have to run the thread test near the end so we have all our symbols
17986 # defined. Cross compiling throws a warning.
17988 if test "$enable_thread_safety_force" = yes; then
17989 { echo "$as_me:$LINENO: WARNING:
17990 *** Skipping thread test program. --enable-thread-safety-force was used.
17991 *** Run the program in src/tools/thread on the your machine and add
17992 proper locking function calls to your applications to guarantee thread
17995 echo "$as_me: WARNING:
17996 *** Skipping thread test program. --enable-thread-safety-force was used.
17997 *** Run the program in src/tools/thread on the your machine and add
17998 proper locking function calls to your applications to guarantee thread
18001 elif test "$enable_thread_safety" = yes; then
18002 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
18003 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
18007 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18008 LIBS="$LIBS $PTHREAD_LIBS"
18009 if test "$cross_compiling" = yes; then
18010 echo "$as_me:$LINENO: result: maybe" >&5
18011 echo "${ECHO_T}maybe" >&6
18012 { echo "$as_me:$LINENO: WARNING:
18013 *** Skipping thread test program because of cross-compile build.
18014 *** Run the program in src/tools/thread on the target machine.
18016 echo "$as_me: WARNING:
18017 *** Skipping thread test program because of cross-compile build.
18018 *** Run the program in src/tools/thread on the target machine.
18021 cat >conftest.$ac_ext <<_ACEOF
18022 #line $LINENO "configure"
18023 #include "confdefs.h"
18024 #include "$srcdir/src/tools/thread/thread_test.c"
18026 rm -f conftest$ac_exeext
18027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18028 (eval $ac_link) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 echo "$as_me:$LINENO: result: yes" >&5
18038 echo "${ECHO_T}yes" >&6
18040 echo "$as_me: program exited with status $ac_status" >&5
18041 echo "$as_me: failed program was:" >&5
18042 cat conftest.$ac_ext >&5
18043 ( exit $ac_status )
18044 echo "$as_me:$LINENO: result: no" >&5
18045 echo "${ECHO_T}no" >&6
18046 { { echo "$as_me:$LINENO: error:
18047 *** Thread test program failed. Your platform is not thread-safe.
18048 *** Check the file 'config.log'for the exact reason.
18050 *** You can use the configure option --enable-thread-safety-force
18051 *** to force threads to be enabled. However, you must then run
18052 *** the program in src/tools/thread and add locking function calls
18053 *** to your applications to guarantee thread safety.
18055 echo "$as_me: error:
18056 *** Thread test program failed. Your platform is not thread-safe.
18057 *** Check the file 'config.log'for the exact reason.
18059 *** You can use the configure option --enable-thread-safety-force
18060 *** to force threads to be enabled. However, you must then run
18061 *** the program in src/tools/thread and add locking function calls
18062 *** to your applications to guarantee thread safety.
18064 { (exit 1); exit 1; }; }
18066 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18072 # prepare build tree if outside source tree
18073 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
18074 # Note 2: /bin/pwd might be better than shell's built-in at getting
18075 # a symlink-free name.
18076 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
18080 if test "$no_create" != yes; then
18081 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
18082 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
18083 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
18084 || { { echo "$as_me:$LINENO: error: failed" >&5
18085 echo "$as_me: error: failed" >&2;}
18086 { (exit 1); exit 1; }; }
18087 echo "$as_me:$LINENO: result: done" >&5
18088 echo "${ECHO_T}done" >&6
18094 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
18097 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}"
18100 case $host_os in mingw*)
18101 ac_config_commands="$ac_config_commands check_win32_symlinks"
18106 ac_config_headers="$ac_config_headers src/include/pg_config.h"
18109 cat >confcache <<\_ACEOF
18110 # This file is a shell script that caches the results of configure
18111 # tests run on this system so they can be shared between configure
18112 # scripts and configure runs, see configure's option --config-cache.
18113 # It is not useful on other systems. If it contains results you don't
18114 # want to keep, you may remove or edit it.
18116 # config.status only pays attention to the cache file if you give it
18117 # the --recheck option to rerun configure.
18119 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18120 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18121 # following values.
18125 # The following way of writing the cache mishandles newlines in values,
18126 # but we know of no workaround that is simple, portable, and efficient.
18127 # So, don't put newlines in cache variables' values.
18128 # Ultrix sh set writes to stderr and can't be redirected directly,
18129 # and sets the high bit in the cache file unless we assign to the vars.
18132 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18134 # `set' does not quote correctly, so add quotes (double-quote
18135 # substitution turns \\\\ into \\, and sed turns \\ into \).
18138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18141 # `set' quotes correctly as required by POSIX, so do not add quotes.
18143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18152 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18154 if cmp -s $cache_file confcache; then :; else
18155 if test -w $cache_file; then
18156 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18157 cat confcache >$cache_file
18159 echo "not updating unwritable cache $cache_file"
18164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18165 # Let make expand exec_prefix.
18166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18168 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18169 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18170 # trailing colons and then remove the whole line if VPATH becomes empty
18171 # (actually we leave an empty line to preserve line numbers).
18172 if test "x$srcdir" = x.; then
18173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18174 s/:*\$(srcdir):*/:/;
18175 s/:*\${srcdir}:*/:/;
18177 s/^\([^=]*=[ ]*\):*/\1/;
18183 DEFS=-DHAVE_CONFIG_H
18186 : ${CONFIG_STATUS=./config.status}
18187 ac_clean_files_save=$ac_clean_files
18188 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18189 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18190 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18191 cat >$CONFIG_STATUS <<_ACEOF
18193 # Generated by $as_me.
18194 # Run this file to recreate the current configuration.
18195 # Compiler output produced by configure, useful for debugging
18196 # configure, is in config.log if it exists.
18199 SHELL=\${CONFIG_SHELL-$SHELL}
18202 cat >>$CONFIG_STATUS <<\_ACEOF
18204 ## --------------------- ##
18205 ## M4sh Initialization. ##
18206 ## --------------------- ##
18208 # Be Bourne compatible
18209 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18212 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18217 # Support unset when possible.
18218 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18224 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18225 { $as_unset LANG || test "${LANG+set}" != set; } ||
18226 { LANG=C; export LANG; }
18227 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18228 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18229 { LC_ALL=C; export LC_ALL; }
18230 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18231 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18232 { LC_TIME=C; export LC_TIME; }
18233 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18234 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18235 { LC_CTYPE=C; export LC_CTYPE; }
18236 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18237 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18238 { LANGUAGE=C; export LANGUAGE; }
18239 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18240 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18241 { LC_COLLATE=C; export LC_COLLATE; }
18242 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18243 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18244 { LC_NUMERIC=C; export LC_NUMERIC; }
18245 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18246 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18247 { LC_MESSAGES=C; export LC_MESSAGES; }
18250 # Name of the executable.
18251 as_me=`(basename "$0") 2>/dev/null ||
18252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18253 X"$0" : 'X\(//\)$' \| \
18254 X"$0" : 'X\(/\)$' \| \
18255 . : '\(.\)' 2>/dev/null ||
18257 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18258 /^X\/\(\/\/\)$/{ s//\1/; q; }
18259 /^X\/\(\/\).*/{ s//\1/; q; }
18262 # PATH needs CR, and LINENO needs CR and PATH.
18263 # Avoid depending upon Character Ranges.
18264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18267 as_cr_digits='0123456789'
18268 as_cr_alnum=$as_cr_Letters$as_cr_digits
18270 # The user is always right.
18271 if test "${PATH_SEPARATOR+set}" != set; then
18272 echo "#! /bin/sh" >conftest.sh
18273 echo "exit 0" >>conftest.sh
18274 chmod +x conftest.sh
18275 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18284 as_lineno_1=$LINENO
18285 as_lineno_2=$LINENO
18286 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18287 test "x$as_lineno_1" != "x$as_lineno_2" &&
18288 test "x$as_lineno_3" = "x$as_lineno_2" || {
18289 # Find who we are. Look in the path if we contain no path at all
18292 *[\\/]* ) as_myself=$0 ;;
18293 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18294 for as_dir in $PATH
18297 test -z "$as_dir" && as_dir=.
18298 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18303 # We did not find ourselves, most probably we were run as `sh COMMAND'
18304 # in which case we are not to be found in the path.
18305 if test "x$as_myself" = x; then
18308 if test ! -f "$as_myself"; then
18309 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18310 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18311 { (exit 1); exit 1; }; }
18313 case $CONFIG_SHELL in
18315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18316 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18319 test -z "$as_dir" && as_dir=.
18320 for as_base in sh bash ksh sh5; do
18323 if ("$as_dir/$as_base" -c '
18324 as_lineno_1=$LINENO
18325 as_lineno_2=$LINENO
18326 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18327 test "x$as_lineno_1" != "x$as_lineno_2" &&
18328 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18329 CONFIG_SHELL=$as_dir/$as_base
18330 export CONFIG_SHELL
18331 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18339 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18340 # uniformly replaced by the line number. The first 'sed' inserts a
18341 # line-number line before each line; the second 'sed' does the real
18342 # work. The second script uses 'N' to pair each line-number line
18343 # with the numbered line, and appends trailing '-' during
18344 # substitution so that $LINENO is not a special case at line end.
18345 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18346 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18347 sed '=' <$as_myself |
18352 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18355 s,^['$as_cr_digits']*\n,,
18356 ' >$as_me.lineno &&
18357 chmod +x $as_me.lineno ||
18358 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18359 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18360 { (exit 1); exit 1; }; }
18362 # Don't try to exec as it changes $[0], causing all sort of problems
18363 # (the dirname of $[0] is not the place where we might find the
18364 # original and so on. Autoconf is especially sensible to this).
18366 # Exit status is that of the last command.
18371 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18372 *c*,-n*) ECHO_N= ECHO_C='
18374 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18375 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18378 if expr a : '\(a\)' >/dev/null 2>&1; then
18384 rm -f conf$$ conf$$.exe conf$$.file
18386 if ln -s conf$$.file conf$$ 2>/dev/null; then
18387 # We could just check for DJGPP; but this test a) works b) is more generic
18388 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18389 if test -f conf$$.exe; then
18390 # Don't use ln at all; we don't have any links
18395 elif ln conf$$.file conf$$ 2>/dev/null; then
18400 rm -f conf$$ conf$$.exe conf$$.file
18402 as_executable_p="test -f"
18404 # Sed expression to map a string onto a valid CPP name.
18405 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18407 # Sed expression to map a string onto a valid variable name.
18408 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18412 # We need space, tab and new line, in precisely that order.
18418 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18422 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18423 # report actual input values of CONFIG_FILES etc. instead of their
18424 # values after options handling. Logging --version etc. is OK.
18428 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18429 ## Running $as_me. ##
18434 This file was extended by PostgreSQL $as_me 8.0.0beta1, which was
18435 generated by GNU Autoconf 2.53. Invocation command line was
18437 CONFIG_FILES = $CONFIG_FILES
18438 CONFIG_HEADERS = $CONFIG_HEADERS
18439 CONFIG_LINKS = $CONFIG_LINKS
18440 CONFIG_COMMANDS = $CONFIG_COMMANDS
18444 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18448 # Files that config.status was made for.
18449 if test -n "$ac_config_files"; then
18450 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18453 if test -n "$ac_config_headers"; then
18454 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18457 if test -n "$ac_config_links"; then
18458 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18461 if test -n "$ac_config_commands"; then
18462 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18465 cat >>$CONFIG_STATUS <<\_ACEOF
18468 \`$as_me' instantiates files from templates according to the
18469 current configuration.
18471 Usage: $0 [OPTIONS] [FILE]...
18473 -h, --help print this help, then exit
18474 -V, --version print version number, then exit
18475 -d, --debug don't remove temporary files
18476 --recheck update $as_me by reconfiguring in the same conditions
18477 --file=FILE[:TEMPLATE]
18478 instantiate the configuration file FILE
18479 --header=FILE[:TEMPLATE]
18480 instantiate the configuration header FILE
18482 Configuration files:
18485 Configuration headers:
18488 Configuration links:
18491 Configuration commands:
18494 Report bugs to <bug-autoconf@gnu.org>."
18497 cat >>$CONFIG_STATUS <<_ACEOF
18499 PostgreSQL config.status 8.0.0beta1
18500 configured by $0, generated by GNU Autoconf 2.53,
18501 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18503 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18504 Free Software Foundation, Inc.
18505 This config.status script is free software; the Free Software Foundation
18506 gives unlimited permission to copy, distribute and modify it."
18510 cat >>$CONFIG_STATUS <<\_ACEOF
18511 # If no file are specified by the user, then we need to provide default
18512 # value. By we need to know if files were specified by the user.
18518 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18519 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18521 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18525 *) # This is not an option, so the user has probably given explicit
18527 ac_need_defaults=false;;
18531 # Handling of the options.
18533 cat >>$CONFIG_STATUS <<_ACEOF
18534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18535 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18536 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18538 cat >>$CONFIG_STATUS <<\_ACEOF
18539 --version | --vers* | -V )
18540 echo "$ac_cs_version"; exit 0 ;;
18542 # Conflict between --help and --header
18543 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18544 Try \`$0 --help' for more information." >&5
18545 echo "$as_me: error: ambiguous option: $1
18546 Try \`$0 --help' for more information." >&2;}
18547 { (exit 1); exit 1; }; };;
18548 --help | --hel | -h )
18549 echo "$ac_cs_usage"; exit 0 ;;
18550 --debug | --d* | -d )
18552 --file | --fil | --fi | --f )
18554 CONFIG_FILES="$CONFIG_FILES $1"
18555 ac_need_defaults=false;;
18556 --header | --heade | --head | --hea )
18558 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18559 ac_need_defaults=false;;
18561 # This is an error.
18562 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18563 Try \`$0 --help' for more information." >&5
18564 echo "$as_me: error: unrecognized option: $1
18565 Try \`$0 --help' for more information." >&2;}
18566 { (exit 1); exit 1; }; } ;;
18568 *) ac_config_targets="$ac_config_targets $1" ;;
18580 cat >>$CONFIG_STATUS <<\_ACEOF
18581 for ac_config_target in $ac_config_targets
18583 case "$ac_config_target" in
18584 # Handling of arguments.
18585 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18586 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18587 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18588 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18589 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18590 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18591 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18592 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18593 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18594 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
18595 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18596 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18597 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18598 { (exit 1); exit 1; }; };;
18602 # If the user did not use the arguments to specify the items to instantiate,
18603 # then the envvar interface is used. Set only those that are not.
18604 # We use the long form for the default assignment because of an extremely
18605 # bizarre bug on SunOS 4.1.3.
18606 if $ac_need_defaults; then
18607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18608 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18609 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18613 # Create a temporary directory, and hook for its removal unless debugging.
18616 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18617 trap '{ (exit 1); exit 1; }' 1 2 13 15
18620 # Create a (secure) tmp directory for tmp files.
18623 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18624 test -n "$tmp" && test -d "$tmp"
18627 tmp=$TMPDIR/cs$$-$RANDOM
18628 (umask 077 && mkdir $tmp)
18631 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18632 { (exit 1); exit 1; }
18637 cat >>$CONFIG_STATUS <<_ACEOF
18640 # CONFIG_FILES section.
18643 # No need to generate the scripts if there are no CONFIG_FILES.
18644 # This happens for instance when ./config.status config.h
18645 if test -n "\$CONFIG_FILES"; then
18646 # Protect against being on the right side of a sed subst in config.status.
18647 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18648 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18649 s,@SHELL@,$SHELL,;t t
18650 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18651 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18652 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18653 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18654 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18655 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18656 s,@exec_prefix@,$exec_prefix,;t t
18657 s,@prefix@,$prefix,;t t
18658 s,@program_transform_name@,$program_transform_name,;t t
18659 s,@bindir@,$bindir,;t t
18660 s,@sbindir@,$sbindir,;t t
18661 s,@libexecdir@,$libexecdir,;t t
18662 s,@datadir@,$datadir,;t t
18663 s,@sysconfdir@,$sysconfdir,;t t
18664 s,@sharedstatedir@,$sharedstatedir,;t t
18665 s,@localstatedir@,$localstatedir,;t t
18666 s,@libdir@,$libdir,;t t
18667 s,@includedir@,$includedir,;t t
18668 s,@oldincludedir@,$oldincludedir,;t t
18669 s,@infodir@,$infodir,;t t
18670 s,@mandir@,$mandir,;t t
18671 s,@build_alias@,$build_alias,;t t
18672 s,@host_alias@,$host_alias,;t t
18673 s,@target_alias@,$target_alias,;t t
18674 s,@DEFS@,$DEFS,;t t
18675 s,@ECHO_C@,$ECHO_C,;t t
18676 s,@ECHO_N@,$ECHO_N,;t t
18677 s,@ECHO_T@,$ECHO_T,;t t
18678 s,@LIBS@,$LIBS,;t t
18679 s,@configure_args@,$configure_args,;t t
18680 s,@build@,$build,;t t
18681 s,@build_cpu@,$build_cpu,;t t
18682 s,@build_vendor@,$build_vendor,;t t
18683 s,@build_os@,$build_os,;t t
18684 s,@host@,$host,;t t
18685 s,@host_cpu@,$host_cpu,;t t
18686 s,@host_vendor@,$host_vendor,;t t
18687 s,@host_os@,$host_os,;t t
18688 s,@PORTNAME@,$PORTNAME,;t t
18689 s,@docdir@,$docdir,;t t
18690 s,@enable_nls@,$enable_nls,;t t
18691 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18692 s,@default_port@,$default_port,;t t
18693 s,@enable_shared@,$enable_shared,;t t
18694 s,@enable_rpath@,$enable_rpath,;t t
18695 s,@enable_debug@,$enable_debug,;t t
18697 s,@CFLAGS@,$CFLAGS,;t t
18698 s,@LDFLAGS@,$LDFLAGS,;t t
18699 s,@CPPFLAGS@,$CPPFLAGS,;t t
18700 s,@ac_ct_CC@,$ac_ct_CC,;t t
18701 s,@EXEEXT@,$EXEEXT,;t t
18702 s,@OBJEXT@,$OBJEXT,;t t
18706 s,@autodepend@,$autodepend,;t t
18707 s,@INCLUDES@,$INCLUDES,;t t
18708 s,@enable_thread_safety@,$enable_thread_safety,;t t
18709 s,@with_tcl@,$with_tcl,;t t
18710 s,@with_perl@,$with_perl,;t t
18711 s,@with_python@,$with_python,;t t
18712 s,@with_krb4@,$with_krb4,;t t
18713 s,@with_krb5@,$with_krb5,;t t
18714 s,@krb_srvtab@,$krb_srvtab,;t t
18715 s,@with_pam@,$with_pam,;t t
18716 s,@with_rendezvous@,$with_rendezvous,;t t
18717 s,@with_openssl@,$with_openssl,;t t
18718 s,@ELF_SYS@,$ELF_SYS,;t t
18720 s,@FLEX@,$FLEX,;t t
18721 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18722 s,@LN_S@,$LN_S,;t t
18724 s,@with_gnu_ld@,$with_gnu_ld,;t t
18725 s,@ld_R_works@,$ld_R_works,;t t
18726 s,@RANLIB@,$RANLIB,;t t
18727 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18728 s,@LORDER@,$LORDER,;t t
18730 s,@STRIP@,$STRIP,;t t
18731 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18732 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18733 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18734 s,@YACC@,$YACC,;t t
18735 s,@YFLAGS@,$YFLAGS,;t t
18736 s,@PERL@,$PERL,;t t
18737 s,@perl_archlibexp@,$perl_archlibexp,;t t
18738 s,@perl_privlibexp@,$perl_privlibexp,;t t
18739 s,@perl_useshrplib@,$perl_useshrplib,;t t
18740 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18741 s,@PYTHON@,$PYTHON,;t t
18742 s,@python_prefix@,$python_prefix,;t t
18743 s,@python_execprefix@,$python_execprefix,;t t
18744 s,@python_configdir@,$python_configdir,;t t
18745 s,@python_includespec@,$python_includespec,;t t
18746 s,@python_libspec@,$python_libspec,;t t
18747 s,@LIBOBJS@,$LIBOBJS,;t t
18748 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18749 s,@acx_pthread_config@,$acx_pthread_config,;t t
18750 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
18751 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
18752 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
18753 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18754 s,@MSGFMT@,$MSGFMT,;t t
18755 s,@MSGMERGE@,$MSGMERGE,;t t
18756 s,@XGETTEXT@,$XGETTEXT,;t t
18757 s,@localedir@,$localedir,;t t
18758 s,@TCLSH@,$TCLSH,;t t
18759 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18760 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18761 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18762 s,@TCL_LIBS@,$TCL_LIBS,;t t
18763 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18764 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18765 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18766 s,@NSGMLS@,$NSGMLS,;t t
18767 s,@JADE@,$JADE,;t t
18768 s,@have_docbook@,$have_docbook,;t t
18769 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18770 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18771 s,@SGMLSPL@,$SGMLSPL,;t t
18772 s,@vpath_build@,$vpath_build,;t t
18777 cat >>$CONFIG_STATUS <<\_ACEOF
18778 # Split the substitutions into bite-sized pieces for seds with
18779 # small command number limits, like on Digital OSF/1 and HP-UX.
18780 ac_max_sed_lines=48
18781 ac_sed_frag=1 # Number of current file.
18782 ac_beg=1 # First line for current file.
18783 ac_end=$ac_max_sed_lines # Line after last line for current file.
18786 while $ac_more_lines; do
18787 if test $ac_beg -gt 1; then
18788 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18790 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18792 if test ! -s $tmp/subs.frag; then
18793 ac_more_lines=false
18795 # The purpose of the label and of the branching condition is to
18796 # speed up the sed processing (if there are no `@' at all, there
18797 # is no need to browse any of the substitutions).
18798 # These are the two extra sed commands mentioned above.
18800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18801 if test -z "$ac_sed_cmds"; then
18802 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18804 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18806 ac_sed_frag=`expr $ac_sed_frag + 1`
18808 ac_end=`expr $ac_end + $ac_max_sed_lines`
18811 if test -z "$ac_sed_cmds"; then
18814 fi # test -n "$CONFIG_FILES"
18817 cat >>$CONFIG_STATUS <<\_ACEOF
18818 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18821 - | *:- | *:-:* ) # input from stdin
18823 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18824 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18825 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18826 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18827 * ) ac_file_in=$ac_file.in ;;
18830 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18831 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18833 X"$ac_file" : 'X\(//\)[^/]' \| \
18834 X"$ac_file" : 'X\(//\)$' \| \
18835 X"$ac_file" : 'X\(/\)' \| \
18836 . : '\(.\)' 2>/dev/null ||
18838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18840 /^X\(\/\/\)$/{ s//\1/; q; }
18841 /^X\(\/\).*/{ s//\1/; q; }
18843 { case "$ac_dir" in
18844 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18848 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18849 case $as_mkdir_dir in
18850 # Skip DOS drivespec
18851 ?:) as_incr_dir=$as_mkdir_dir ;;
18853 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18854 test -d "$as_incr_dir" ||
18855 mkdir "$as_incr_dir" ||
18856 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18857 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18858 { (exit 1); exit 1; }; }
18865 if test "$ac_dir" != .; then
18866 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18867 # A "../" for each directory in $ac_dir_suffix.
18868 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18870 ac_dir_suffix= ac_top_builddir=
18874 .) # No --srcdir option. We are building in place.
18876 if test -z "$ac_top_builddir"; then
18879 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18881 [\\/]* | ?:[\\/]* ) # Absolute path.
18882 ac_srcdir=$srcdir$ac_dir_suffix;
18883 ac_top_srcdir=$srcdir ;;
18884 *) # Relative path.
18885 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18886 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18888 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18890 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18891 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18892 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18893 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18897 if test x"$ac_file" != x-; then
18898 { echo "$as_me:$LINENO: creating $ac_file" >&5
18899 echo "$as_me: creating $ac_file" >&6;}
18902 # Let's still pretend it is `configure' which instantiates (i.e., don't
18903 # use $as_me), people would be surprised to read:
18904 # /* config.h. Generated by config.status. */
18905 if test x"$ac_file" = x-; then
18908 configure_input="$ac_file. "
18910 configure_input=$configure_input"Generated from `echo $ac_file_in |
18911 sed 's,.*/,,'` by configure."
18913 # First look for the input files in the build tree, otherwise in the
18915 ac_file_inputs=`IFS=:
18916 for f in $ac_file_in; do
18918 -) echo $tmp/stdin ;;
18920 # Absolute (can't be DOS-style, as IFS=:)
18921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18922 echo "$as_me: error: cannot find input file: $f" >&2;}
18923 { (exit 1); exit 1; }; }
18926 if test -f "$f"; then
18929 elif test -f "$srcdir/$f"; then
18934 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18935 echo "$as_me: error: cannot find input file: $f" >&2;}
18936 { (exit 1); exit 1; }; }
18939 done` || { (exit 1); exit 1; }
18941 cat >>$CONFIG_STATUS <<_ACEOF
18945 cat >>$CONFIG_STATUS <<\_ACEOF
18947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18948 s,@configure_input@,$configure_input,;t t
18949 s,@srcdir@,$ac_srcdir,;t t
18950 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18951 s,@top_srcdir@,$ac_top_srcdir,;t t
18952 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18953 s,@builddir@,$ac_builddir,;t t
18954 s,@abs_builddir@,$ac_abs_builddir,;t t
18955 s,@top_builddir@,$ac_top_builddir,;t t
18956 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18957 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18959 if test x"$ac_file" != x-; then
18960 mv $tmp/out $ac_file
18968 cat >>$CONFIG_STATUS <<\_ACEOF
18971 # CONFIG_HEADER section.
18974 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18975 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18977 # ac_d sets the value in "#define NAME VALUE" lines.
18978 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18979 ac_dB='[ ].*$,\1#\2'
18982 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18983 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18984 ac_uB='$,\1#\2define\3'
18988 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18991 - | *:- | *:-:* ) # input from stdin
18993 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18995 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18996 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18997 * ) ac_file_in=$ac_file.in ;;
19000 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19001 echo "$as_me: creating $ac_file" >&6;}
19003 # First look for the input files in the build tree, otherwise in the
19005 ac_file_inputs=`IFS=:
19006 for f in $ac_file_in; do
19008 -) echo $tmp/stdin ;;
19010 # Absolute (can't be DOS-style, as IFS=:)
19011 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19012 echo "$as_me: error: cannot find input file: $f" >&2;}
19013 { (exit 1); exit 1; }; }
19016 if test -f "$f"; then
19019 elif test -f "$srcdir/$f"; then
19024 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19025 echo "$as_me: error: cannot find input file: $f" >&2;}
19026 { (exit 1); exit 1; }; }
19029 done` || { (exit 1); exit 1; }
19030 # Remove the trailing spaces.
19031 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19035 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19036 # `conftest.undefs', that substitutes the proper values into
19037 # config.h.in to produce config.h. The first handles `#define'
19038 # templates, and the second `#undef' templates.
19039 # And first: Protect against being on the right side of a sed subst in
19040 # config.status. Protect against being in an unquoted here document
19041 # in config.status.
19042 rm -f conftest.defines conftest.undefs
19043 # Using a here document instead of a string reduces the quoting nightmare.
19044 # Putting comments in sed scripts is not portable.
19046 # `end' is used to avoid that the second main sed command (meant for
19047 # 0-ary CPP macros) applies to n-ary macro definitions.
19048 # See the Autoconf documentation for `clear'.
19049 cat >confdef2sed.sed <<\_ACEOF
19054 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19056 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19059 # If some macros were called several times there might be several times
19060 # the same #defines, which is useless. Nevertheless, we may not want to
19061 # sort them, since we want the *last* AC-DEFINE to be honored.
19062 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19063 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19064 rm -f confdef2sed.sed
19066 # This sed command replaces #undef with comments. This is necessary, for
19067 # example, in the case of _POSIX_SOURCE, which is predefined and required
19068 # on some systems where configure will not decide to define it.
19069 cat >>conftest.undefs <<\_ACEOF
19070 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19073 # Break up conftest.defines because some shells have a limit on the size
19074 # of here documents, and old seds have small limits too (100 cmds).
19075 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19076 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19077 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19078 echo ' :' >>$CONFIG_STATUS
19079 rm -f conftest.tail
19080 while grep . conftest.defines >/dev/null
19082 # Write a limited-size here document to $tmp/defines.sed.
19083 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19084 # Speed up: don't consider the non `#define' lines.
19085 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19086 # Work around the forget-to-reset-the-flag bug.
19087 echo 't clr' >>$CONFIG_STATUS
19088 echo ': clr' >>$CONFIG_STATUS
19089 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19091 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19093 mv $tmp/out $tmp/in
19095 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19096 rm -f conftest.defines
19097 mv conftest.tail conftest.defines
19099 rm -f conftest.defines
19100 echo ' fi # egrep' >>$CONFIG_STATUS
19101 echo >>$CONFIG_STATUS
19103 # Break up conftest.undefs because some shells have a limit on the size
19104 # of here documents, and old seds have small limits too (100 cmds).
19105 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19106 rm -f conftest.tail
19107 while grep . conftest.undefs >/dev/null
19109 # Write a limited-size here document to $tmp/undefs.sed.
19110 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19111 # Speed up: don't consider the non `#undef'
19112 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19113 # Work around the forget-to-reset-the-flag bug.
19114 echo 't clr' >>$CONFIG_STATUS
19115 echo ': clr' >>$CONFIG_STATUS
19116 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19118 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19120 mv $tmp/out $tmp/in
19122 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19123 rm -f conftest.undefs
19124 mv conftest.tail conftest.undefs
19126 rm -f conftest.undefs
19128 cat >>$CONFIG_STATUS <<\_ACEOF
19129 # Let's still pretend it is `configure' which instantiates (i.e., don't
19130 # use $as_me), people would be surprised to read:
19131 # /* config.h. Generated by config.status. */
19132 if test x"$ac_file" = x-; then
19133 echo "/* Generated by configure. */" >$tmp/config.h
19135 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19137 cat $tmp/in >>$tmp/config.h
19139 if test x"$ac_file" != x-; then
19140 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19141 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19142 echo "$as_me: $ac_file is unchanged" >&6;}
19144 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19146 X"$ac_file" : 'X\(//\)[^/]' \| \
19147 X"$ac_file" : 'X\(//\)$' \| \
19148 X"$ac_file" : 'X\(/\)' \| \
19149 . : '\(.\)' 2>/dev/null ||
19151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19153 /^X\(\/\/\)$/{ s//\1/; q; }
19154 /^X\(\/\).*/{ s//\1/; q; }
19156 { case "$ac_dir" in
19157 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19161 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19162 case $as_mkdir_dir in
19163 # Skip DOS drivespec
19164 ?:) as_incr_dir=$as_mkdir_dir ;;
19166 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19167 test -d "$as_incr_dir" ||
19168 mkdir "$as_incr_dir" ||
19169 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19170 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19171 { (exit 1); exit 1; }; }
19177 mv $tmp/config.h $ac_file
19181 rm -f $tmp/config.h
19183 # Run the commands associated with the file.
19185 src/include/pg_config.h )
19186 # Update timestamp for pg_config.h (see Makefile.global)
19187 echo >src/include/stamp-h
19192 cat >>$CONFIG_STATUS <<\_ACEOF
19195 # CONFIG_LINKS section.
19198 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19199 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19200 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19202 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19203 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19205 if test ! -r $srcdir/$ac_source; then
19206 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19207 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19208 { (exit 1); exit 1; }; }
19212 # Make relative symlinks.
19213 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19214 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19215 X"$ac_dest" : 'X\(//\)[^/]' \| \
19216 X"$ac_dest" : 'X\(//\)$' \| \
19217 X"$ac_dest" : 'X\(/\)' \| \
19218 . : '\(.\)' 2>/dev/null ||
19220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19222 /^X\(\/\/\)$/{ s//\1/; q; }
19223 /^X\(\/\).*/{ s//\1/; q; }
19225 { case "$ac_dest_dir" in
19226 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19229 as_dummy="$ac_dest_dir"
19230 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19231 case $as_mkdir_dir in
19232 # Skip DOS drivespec
19233 ?:) as_incr_dir=$as_mkdir_dir ;;
19235 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19236 test -d "$as_incr_dir" ||
19237 mkdir "$as_incr_dir" ||
19238 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
19239 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
19240 { (exit 1); exit 1; }; }
19247 if test "$ac_dest_dir" != .; then
19248 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19249 # A "../" for each directory in $ac_dir_suffix.
19250 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19252 ac_dir_suffix= ac_top_builddir=
19256 .) # No --srcdir option. We are building in place.
19258 if test -z "$ac_top_builddir"; then
19261 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19263 [\\/]* | ?:[\\/]* ) # Absolute path.
19264 ac_srcdir=$srcdir$ac_dir_suffix;
19265 ac_top_srcdir=$srcdir ;;
19266 *) # Relative path.
19267 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19268 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19270 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
19272 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
19273 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
19274 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
19275 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
19279 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19280 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19283 # Make a symlink if possible; otherwise try a hard link.
19284 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19285 ln $srcdir/$ac_source $ac_dest ||
19286 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
19287 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
19288 { (exit 1); exit 1; }; }
19291 cat >>$CONFIG_STATUS <<\_ACEOF
19294 # CONFIG_COMMANDS section.
19296 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19297 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19298 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19299 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19300 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19301 X"$ac_dest" : 'X\(//\)[^/]' \| \
19302 X"$ac_dest" : 'X\(//\)$' \| \
19303 X"$ac_dest" : 'X\(/\)' \| \
19304 . : '\(.\)' 2>/dev/null ||
19306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19308 /^X\(\/\/\)$/{ s//\1/; q; }
19309 /^X\(\/\).*/{ s//\1/; q; }
19313 if test "$ac_dir" != .; then
19314 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19315 # A "../" for each directory in $ac_dir_suffix.
19316 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19318 ac_dir_suffix= ac_top_builddir=
19322 .) # No --srcdir option. We are building in place.
19324 if test -z "$ac_top_builddir"; then
19327 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19329 [\\/]* | ?:[\\/]* ) # Absolute path.
19330 ac_srcdir=$srcdir$ac_dir_suffix;
19331 ac_top_srcdir=$srcdir ;;
19332 *) # Relative path.
19333 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19334 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19336 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19338 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19339 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19340 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19341 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19344 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19345 echo "$as_me: executing $ac_dest commands" >&6;}
19347 check_win32_symlinks )
19348 # Links sometimes fail undetected on Mingw -
19349 # so here we detect it and warn the user
19350 for FILE in $CONFIG_LINKS
19352 # test -e works for symlinks in the MinGW console
19353 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
19354 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
19361 cat >>$CONFIG_STATUS <<\_ACEOF
19363 { (exit 0); exit 0; }
19365 chmod +x $CONFIG_STATUS
19366 ac_clean_files=$ac_clean_files_save
19369 # configure is writing to config.log, and then calls config.status.
19370 # config.status does its own redirection, appending to config.log.
19371 # Unfortunately, on DOS this fails, as config.log is still kept open
19372 # by configure, so config.status won't be able to write to it; its
19373 # output is simply discarded. So we exec the FD to /dev/null,
19374 # effectively closing config.log, so it can be properly (re)opened and
19375 # appended to by config.status. When coming back to configure, we
19376 # need to make the FD available again.
19377 if test "$no_create" != yes; then
19380 $SHELL $CONFIG_STATUS || ac_cs_success=false
19382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19383 # would make configure fail if this is the last instruction.
19384 $ac_cs_success || { (exit 1); exit 1; }