2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.5devel.
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='7.5devel'
262 PACKAGE_STRING='PostgreSQL 7.5devel'
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 7.5devel to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 if test -n "$ac_init_help"; then
832 case $ac_init_help in
833 short | recursive ) echo "Configuration of PostgreSQL 7.5devel:";;
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 --disable-largefile omit support for large files
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
856 --without-docdir do not install the documentation
857 --with-includes=DIRS look for additional header files in DIRS
858 --with-libraries=DIRS look for additional libraries in DIRS
859 --with-libs=DIRS alternative spelling of --with-libraries
860 --with-pgport=PORTNUM change default port number 5432
861 --with-tcl build Tcl and Tk interfaces
862 --with-tclconfig=DIR tclConfig.sh is in DIR
863 --with-perl build Perl modules (PL/Perl)
864 --with-python build Python modules (PL/Python)
865 --with-krb4 build with Kerberos 4 support
866 --with-krb5 build with Kerberos 5 support
867 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]
868 --with-pam build with PAM support
869 --with-rendezvous build with Rendezvous support
870 --with-openssl build with OpenSSL support
871 --without-readline do not use Readline
872 --without-zlib do not use Zlib
873 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
884 location of DocBook stylesheets
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <pgsql-bugs@postgresql.org>.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 ac_dir_suffix= ac_top_builddir=
909 .) # No --srcdir option. We are building in place.
911 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
925 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
926 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
927 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
928 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
931 # Check for guested configure; otherwise get Cygnus style configure.
932 if test -f $ac_srcdir/configure.gnu; then
934 $SHELL $ac_srcdir/configure.gnu --help=recursive
935 elif test -f $ac_srcdir/configure; then
937 $SHELL $ac_srcdir/configure --help=recursive
938 elif test -f $ac_srcdir/configure.ac ||
939 test -f $ac_srcdir/configure.in; then
943 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 test -n "$ac_init_help" && exit 0
950 if $ac_init_version; then
952 PostgreSQL configure 7.5devel
953 generated by GNU Autoconf 2.53
955 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
956 Free Software Foundation, Inc.
957 This configure script is free software; the Free Software Foundation
958 gives unlimited permission to copy, distribute and modify it.
960 Copyright 2003 PostgreSQL Global Development Group
966 This file contains any messages produced by compilers while
967 running configure, to aid debugging if configure makes a mistake.
969 It was created by PostgreSQL $as_me 7.5devel, which was
970 generated by GNU Autoconf 2.53. Invocation command line was
981 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982 uname -m = `(uname -m) 2>/dev/null || echo unknown`
983 uname -r = `(uname -r) 2>/dev/null || echo unknown`
984 uname -s = `(uname -s) 2>/dev/null || echo unknown`
985 uname -v = `(uname -v) 2>/dev/null || echo unknown`
987 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 test -z "$as_dir" && as_dir=.
1005 echo "PATH: $as_dir"
1020 # Keep a trace of the command line.
1021 # Strip out --no-create and --no-recursion so they do not pile up.
1022 # Also quote any args containing shell meta-characters.
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n ) continue ;;
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 case " $ac_configure_args " in
1037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1038 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1041 # Get rid of the leading space.
1044 # When interrupted or exit'd, cleanup temporary files, and complete
1045 # config.log. We remove comments because anyway the quotes in there
1046 # would cause problems or look ugly.
1047 # WARNING: Be sure not to use single quotes in there, as some shells,
1048 # such as our DU 5.0 friend, will then `close' the trap.
1049 trap 'exit_status=$?
1050 # Save into config.log some information that might help in debugging.
1054 ## ---------------- ##
1055 ## Cache variables. ##
1056 ## ---------------- ##
1059 # The following way of writing the cache mishandles newlines in values,
1062 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1065 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1066 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 if test -s confdefs.h; then
1082 sed "/^$/d" confdefs.h
1085 test "$ac_signal" != 0 &&
1086 echo "$as_me: caught signal $ac_signal"
1087 echo "$as_me: exit $exit_status"
1089 rm -f core core.* *.core &&
1090 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1093 for ac_signal in 1 2 13 15; do
1094 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1099 rm -rf conftest* confdefs.h
1100 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1103 # Predefined preprocessor variables.
1105 cat >>confdefs.h <<_ACEOF
1106 #define PACKAGE_NAME "$PACKAGE_NAME"
1110 cat >>confdefs.h <<_ACEOF
1111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1115 cat >>confdefs.h <<_ACEOF
1116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1120 cat >>confdefs.h <<_ACEOF
1121 #define PACKAGE_STRING "$PACKAGE_STRING"
1125 cat >>confdefs.h <<_ACEOF
1126 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1130 # Let the site file select an alternate cache file if it wants to.
1131 # Prefer explicitly selected file to automatically selected ones.
1132 if test -z "$CONFIG_SITE"; then
1133 if test "x$prefix" != xNONE; then
1134 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1136 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1139 for ac_site_file in $CONFIG_SITE; do
1140 if test -r "$ac_site_file"; then
1141 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1142 echo "$as_me: loading site script $ac_site_file" >&6;}
1143 sed 's/^/| /' "$ac_site_file" >&5
1148 if test -r "$cache_file"; then
1149 # Some versions of bash will fail to source /dev/null (special
1150 # files actually), so we avoid doing that.
1151 if test -f "$cache_file"; then
1152 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1153 echo "$as_me: loading cache $cache_file" >&6;}
1155 [\\/]* | ?:[\\/]* ) . $cache_file;;
1156 *) . ./$cache_file;;
1160 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1161 echo "$as_me: creating cache $cache_file" >&6;}
1165 # Check that the precious variables saved in the cache have kept the same
1167 ac_cache_corrupted=false
1168 for ac_var in `(set) 2>&1 |
1169 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1171 eval ac_new_set=\$ac_env_${ac_var}_set
1172 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1173 eval ac_new_val="\$ac_env_${ac_var}_value"
1174 case $ac_old_set,$ac_new_set in
1176 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1177 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1178 ac_cache_corrupted=: ;;
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1185 if test "x$ac_old_val" != "x$ac_new_val"; then
1186 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1187 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1188 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1189 echo "$as_me: former value: $ac_old_val" >&2;}
1190 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1191 echo "$as_me: current value: $ac_new_val" >&2;}
1192 ac_cache_corrupted=:
1195 # Pass precious variables to config.status.
1196 if test "$ac_new_set" = set; then
1198 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1199 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1200 *) ac_arg=$ac_var=$ac_new_val ;;
1202 case " $ac_configure_args " in
1203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1204 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1208 if $ac_cache_corrupted; then
1209 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1210 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1211 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1212 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1213 { (exit 1); exit 1; }; }
1217 ac_cpp='$CPP $CPPFLAGS'
1218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1252 for ac_dir in config $srcdir/config; do
1253 if test -f $ac_dir/install-sh; then
1255 ac_install_sh="$ac_aux_dir/install-sh -c"
1257 elif test -f $ac_dir/install.sh; then
1259 ac_install_sh="$ac_aux_dir/install.sh -c"
1261 elif test -f $ac_dir/shtool; then
1263 ac_install_sh="$ac_aux_dir/shtool install -c"
1267 if test -z "$ac_aux_dir"; then
1268 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1269 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1270 { (exit 1); exit 1; }; }
1272 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1273 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1274 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1277 configure_args=$ac_configure_args
1281 cat >>confdefs.h <<_ACEOF
1282 #define PG_VERSION "$PACKAGE_VERSION"
1286 # Make sure we can run config.sub.
1287 $ac_config_sub sun4 >/dev/null 2>&1 ||
1288 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1289 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1290 { (exit 1); exit 1; }; }
1292 echo "$as_me:$LINENO: checking build system type" >&5
1293 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1294 if test "${ac_cv_build+set}" = set; then
1295 echo $ECHO_N "(cached) $ECHO_C" >&6
1297 ac_cv_build_alias=$build_alias
1298 test -z "$ac_cv_build_alias" &&
1299 ac_cv_build_alias=`$ac_config_guess`
1300 test -z "$ac_cv_build_alias" &&
1301 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1302 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1303 { (exit 1); exit 1; }; }
1304 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1305 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1306 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1307 { (exit 1); exit 1; }; }
1310 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1311 echo "${ECHO_T}$ac_cv_build" >&6
1313 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1314 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1315 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1318 echo "$as_me:$LINENO: checking host system type" >&5
1319 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1320 if test "${ac_cv_host+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1323 ac_cv_host_alias=$host_alias
1324 test -z "$ac_cv_host_alias" &&
1325 ac_cv_host_alias=$ac_cv_build_alias
1326 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1328 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1329 { (exit 1); exit 1; }; }
1332 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1333 echo "${ECHO_T}$ac_cv_host" >&6
1335 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1342 echo "$as_me:$LINENO: checking which template to use" >&5
1343 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1348 # Check whether --with-template or --without-template was given.
1349 if test "${with_template+set}" = set; then
1350 withval="$with_template"
1354 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1355 echo "$as_me: error: argument required for --with-template option" >&2;}
1356 { (exit 1); exit 1; }; }
1359 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1360 echo "$as_me: error: argument required for --with-template option" >&2;}
1361 { (exit 1); exit 1; }; }
1366 list) echo; ls "$srcdir/src/template"; exit;;
1367 *) if test -f "$srcdir/src/template/$with_template" ; then
1370 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1371 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1372 { (exit 1); exit 1; }; }
1381 # --with-template not given
1384 aix*) template=aix ;;
1385 beos*) template=beos ;;
1386 bsdi*) template=bsdi ;;
1387 cygwin*) template=cygwin ;;
1388 darwin*) template=darwin ;;
1389 dgux*) template=dgux ;;
1390 freebsd*) template=freebsd ;;
1391 hpux*) template=hpux ;;
1392 irix*) template=irix5 ;;
1393 linux*) template=linux ;;
1394 mingw*) template=win32 ;;
1395 netbsd*) template=netbsd ;;
1396 nextstep*) template=nextstep ;;
1397 openbsd*) template=openbsd ;;
1398 osf*) template=osf ;;
1399 qnx*) template=qnx4 ;;
1400 sco*) template=sco ;;
1401 solaris*) template=solaris ;;
1402 sunos*) template=sunos4 ;;
1404 case $host_vendor in
1405 univel) template=univel ;;
1407 sysv4*) template=svr4 ;;
1408 sysv5*) template=unixware ;;
1409 ultrix*) template=ultrix4 ;;
1412 if test x"$template" = x"" ; then
1413 { { echo "$as_me:$LINENO: error:
1414 *******************************************************************
1415 PostgreSQL has apparently not been ported to your platform yet.
1416 To try a manual configuration, look into the src/template directory
1417 for a similar platform and use the '--with-template=' option.
1419 Please also contact <pgsql-ports@postgresql.org> to see about
1420 rectifying this. Include the above 'checking host system type...'
1422 *******************************************************************
1424 echo "$as_me: error:
1425 *******************************************************************
1426 PostgreSQL has apparently not been ported to your platform yet.
1427 To try a manual configuration, look into the src/template directory
1428 for a similar platform and use the '--with-template=' option.
1430 Please also contact <pgsql-ports@postgresql.org> to see about
1431 rectifying this. Include the above 'checking host system type...'
1433 *******************************************************************
1435 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $template" >&5
1443 echo "${ECHO_T}$template" >&6
1448 # Initialize default assumption that we do not need separate assembly code
1449 # for TAS (test-and-set). This can be overridden by the template file
1450 # when it's executed.
1457 ## Command line options
1461 # Installation directory for documentation
1466 # Check whether --with-docdir or --without-docdir was given.
1467 if test "${with_docdir+set}" = set; then
1468 withval="$with_docdir"
1472 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1473 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1474 { (exit 1); exit 1; }; }
1485 docdir='${prefix}/doc'
1492 # Add non-standard directories to the include path
1497 # Check whether --with-includes or --without-includes was given.
1498 if test "${with_includes+set}" = set; then
1499 withval="$with_includes"
1503 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1504 echo "$as_me: error: argument required for --with-includes option" >&2;}
1505 { (exit 1); exit 1; }; }
1508 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1509 echo "$as_me: error: argument required for --with-includes option" >&2;}
1510 { (exit 1); exit 1; }; }
1522 # Add non-standard directories to the library search path
1527 # Check whether --with-libraries or --without-libraries was given.
1528 if test "${with_libraries+set}" = set; then
1529 withval="$with_libraries"
1533 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1534 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1535 { (exit 1); exit 1; }; }
1538 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1539 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1540 { (exit 1); exit 1; }; }
1543 LIBRARY_DIRS=$withval
1553 # Check whether --with-libs or --without-libs was given.
1554 if test "${with_libs+set}" = set; then
1555 withval="$with_libs"
1559 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1560 echo "$as_me: error: argument required for --with-libs option" >&2;}
1561 { (exit 1); exit 1; }; }
1564 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1565 echo "$as_me: error: argument required for --with-libs option" >&2;}
1566 { (exit 1); exit 1; }; }
1569 LIBRARY_DIRS=$withval
1578 # 64-bit integer date/time storage (--enable-integer-datetimes)
1580 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1581 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1584 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1585 if test "${enable_integer_datetimes+set}" = set; then
1586 enableval="$enable_integer_datetimes"
1591 cat >>confdefs.h <<\_ACEOF
1592 #define USE_INTEGER_DATETIMES 1
1600 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1601 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1602 { (exit 1); exit 1; }; }
1607 enable_integer_datetimes=no
1611 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1612 echo "${ECHO_T}$enable_integer_datetimes" >&6
1618 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1619 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1622 # Check whether --enable-nls or --disable-nls was given.
1623 if test "${enable_nls+set}" = set; then
1624 enableval="$enable_nls"
1635 WANTED_LANGUAGES=$enableval
1644 if test "$enable_nls" = yes; then
1646 cat >>confdefs.h <<\_ACEOF
1647 #define ENABLE_NLS 1
1652 echo "$as_me:$LINENO: result: $enable_nls" >&5
1653 echo "${ECHO_T}$enable_nls" >&6
1658 # Default port number (--with-pgport), default 5432
1660 echo "$as_me:$LINENO: checking for default port number" >&5
1661 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1665 # Check whether --with-pgport or --without-pgport was given.
1666 if test "${with_pgport+set}" = set; then
1667 withval="$with_pgport"
1671 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1672 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1673 { (exit 1); exit 1; }; }
1676 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1677 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1678 { (exit 1); exit 1; }; }
1681 default_port=$withval
1689 echo "$as_me:$LINENO: result: $default_port" >&5
1690 echo "${ECHO_T}$default_port" >&6
1691 # Need both of these because some places want an integer and some a string
1693 cat >>confdefs.h <<_ACEOF
1694 #define DEF_PGPORT ${default_port}
1698 cat >>confdefs.h <<_ACEOF
1699 #define DEF_PGPORT_STR "${default_port}"
1705 # Option to disable shared libraries
1709 # Check whether --enable-shared or --disable-shared was given.
1710 if test "${enable_shared+set}" = set; then
1711 enableval="$enable_shared"
1721 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1722 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1723 { (exit 1); exit 1; }; }
1735 # '-rpath'-like feature can be disabled
1739 # Check whether --enable-rpath or --disable-rpath was given.
1740 if test "${enable_rpath+set}" = set; then
1741 enableval="$enable_rpath"
1751 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1752 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1753 { (exit 1); exit 1; }; }
1769 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1770 if test "${enable_spinlocks+set}" = set; then
1771 enableval="$enable_spinlocks"
1781 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1782 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1783 { (exit 1); exit 1; }; }
1788 enable_spinlocks=yes
1794 # --enable-debug adds -g to compiler flags
1798 # Check whether --enable-debug or --disable-debug was given.
1799 if test "${enable_debug+set}" = set; then
1800 enableval="$enable_debug"
1810 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1811 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1812 { (exit 1); exit 1; }; }
1827 # For historical reasons you can also use --with-CC to specify the C compiler
1828 # to use, although the standard way to do this is to set the CC environment
1833 # Check whether --with-CC or --without-CC was given.
1834 if test "${with_CC+set}" = set; then
1839 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1840 echo "$as_me: error: argument required for --with-CC option" >&2;}
1841 { (exit 1); exit 1; }; }
1844 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1845 echo "$as_me: error: argument required for --with-CC option" >&2;}
1846 { (exit 1); exit 1; }; }
1857 aix) pgac_cc_list="gcc xlc";;
1858 irix) pgac_cc_list="cc";; # no gcc
1859 *) pgac_cc_list="gcc cc";;
1863 ac_cpp='$CPP $CPPFLAGS'
1864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 if test -n "$ac_tool_prefix"; then
1868 for ac_prog in $pgac_cc_list
1870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1871 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC="$CC" # Let the user override the test.
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 if test -n "$CC"; then
1898 echo "$as_me:$LINENO: result: $CC" >&5
1899 echo "${ECHO_T}$CC" >&6
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1905 test -n "$CC" && break
1908 if test -z "$CC"; then
1910 for ac_prog in $pgac_cc_list
1912 # Extract the first word of "$ac_prog", so it can be a program name with args.
1913 set dummy $ac_prog; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 if test -n "$ac_ct_CC"; then
1920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_ac_ct_CC="$ac_prog"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1939 if test -n "$ac_ct_CC"; then
1940 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1941 echo "${ECHO_T}$ac_ct_CC" >&6
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1947 test -n "$ac_ct_CC" && break
1954 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1955 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1956 { (exit 1); exit 1; }; }
1958 # Provide some information about the compiler.
1959 echo "$as_me:$LINENO:" \
1960 "checking for C compiler version" >&5
1961 ac_compiler=`set X $ac_compile; echo $2`
1962 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1963 (eval $ac_compiler --version </dev/null >&5) 2>&5
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }
1967 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1968 (eval $ac_compiler -v </dev/null >&5) 2>&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }
1972 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1973 (eval $ac_compiler -V </dev/null >&5) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }
1978 cat >conftest.$ac_ext <<_ACEOF
1979 #line $LINENO "configure"
1980 #include "confdefs.h"
1982 #ifdef F77_DUMMY_MAIN
1986 int F77_DUMMY_MAIN() { return 1; }
1996 ac_clean_files_save=$ac_clean_files
1997 ac_clean_files="$ac_clean_files a.out a.exe"
1998 # Try to create an executable without -o first, disregard a.out.
1999 # It will help us diagnose broken compilers, and finding out an intuition
2001 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2002 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2003 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2004 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2005 (eval $ac_link_default) 2>&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; then
2009 # Find the output, starting from the most likely. This scheme is
2010 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2013 # Be careful to initialize this variable, since it used to be cached.
2014 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2016 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2017 ls a.out conftest 2>/dev/null;
2018 ls a.* conftest.* 2>/dev/null`; do
2020 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2021 a.out ) # We found the default executable, but exeext='' is most
2024 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2025 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2032 echo "$as_me: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2035 echo "$as_me: error: C compiler cannot create executables" >&2;}
2036 { (exit 77); exit 77; }; }
2039 ac_exeext=$ac_cv_exeext
2040 echo "$as_me:$LINENO: result: $ac_file" >&5
2041 echo "${ECHO_T}$ac_file" >&6
2043 # Check the compiler produces executables we can run. If not, either
2044 # the compiler is broken, or we cross compile.
2045 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2046 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2047 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2048 # If not cross compiling, check that we can run a simple program.
2049 if test "$cross_compiling" != yes; then
2050 if { ac_try='./$ac_file'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; }; then
2058 if test "$cross_compiling" = maybe; then
2061 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2062 If you meant to cross compile, use \`--host'." >&5
2063 echo "$as_me: error: cannot run C compiled programs.
2064 If you meant to cross compile, use \`--host'." >&2;}
2065 { (exit 1); exit 1; }; }
2069 echo "$as_me:$LINENO: result: yes" >&5
2070 echo "${ECHO_T}yes" >&6
2072 rm -f a.out a.exe conftest$ac_cv_exeext
2073 ac_clean_files=$ac_clean_files_save
2074 # Check the compiler produces executables we can run. If not, either
2075 # the compiler is broken, or we cross compile.
2076 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2077 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2078 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2079 echo "${ECHO_T}$cross_compiling" >&6
2081 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2082 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2084 (eval $ac_link) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }; then
2088 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2089 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2090 # work properly (i.e., refer to `conftest.exe'), while it won't with
2092 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2094 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2095 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2103 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2104 { (exit 1); exit 1; }; }
2107 rm -f conftest$ac_cv_exeext
2108 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2109 echo "${ECHO_T}$ac_cv_exeext" >&6
2111 rm -f conftest.$ac_ext
2112 EXEEXT=$ac_cv_exeext
2114 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2115 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2116 if test "${ac_cv_objext+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 cat >conftest.$ac_ext <<_ACEOF
2120 #line $LINENO "configure"
2121 #include "confdefs.h"
2123 #ifdef F77_DUMMY_MAIN
2127 int F77_DUMMY_MAIN() { return 1; }
2137 rm -f conftest.o conftest.obj
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; then
2143 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2146 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2151 echo "$as_me: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2153 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2154 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2155 { (exit 1); exit 1; }; }
2158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2160 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2161 echo "${ECHO_T}$ac_cv_objext" >&6
2162 OBJEXT=$ac_cv_objext
2164 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2165 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2166 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2171 #include "confdefs.h"
2173 #ifdef F77_DUMMY_MAIN
2177 int F77_DUMMY_MAIN() { return 1; }
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); } &&
2196 { ac_try='test -s conftest.$ac_objext'
2197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); }; }; then
2204 echo "$as_me: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2208 rm -f conftest.$ac_objext conftest.$ac_ext
2209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2212 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2213 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2214 GCC=`test $ac_compiler_gnu = yes && echo yes`
2215 ac_test_CFLAGS=${CFLAGS+set}
2216 ac_save_CFLAGS=$CFLAGS
2218 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2220 if test "${ac_cv_prog_cc_g+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 cat >conftest.$ac_ext <<_ACEOF
2224 #line $LINENO "configure"
2225 #include "confdefs.h"
2227 #ifdef F77_DUMMY_MAIN
2231 int F77_DUMMY_MAIN() { return 1; }
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); } &&
2247 { ac_try='test -s conftest.$ac_objext'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2255 echo "$as_me: failed program was:" >&5
2256 cat conftest.$ac_ext >&5
2259 rm -f conftest.$ac_objext conftest.$ac_ext
2261 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2262 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2263 if test "$ac_test_CFLAGS" = set; then
2264 CFLAGS=$ac_save_CFLAGS
2265 elif test $ac_cv_prog_cc_g = yes; then
2266 if test "$GCC" = yes; then
2272 if test "$GCC" = yes; then
2278 # Some people use a C++ compiler to compile C. Since we use `exit',
2279 # in C++ we need to declare it. In case someone uses the same compiler
2280 # for both compiling C and C++ we need to have the C++ compiler decide
2281 # the declaration of exit, since it's the most demanding environment.
2282 cat >conftest.$ac_ext <<_ACEOF
2287 rm -f conftest.$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); } &&
2293 { ac_try='test -s conftest.$ac_objext'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; }; then
2299 for ac_declaration in \
2301 '#include <stdlib.h>' \
2302 'extern "C" void std::exit (int) throw (); using std::exit;' \
2303 'extern "C" void std::exit (int); using std::exit;' \
2304 'extern "C" void exit (int) throw ();' \
2305 'extern "C" void exit (int);' \
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line $LINENO "configure"
2310 #include "confdefs.h"
2313 #ifdef F77_DUMMY_MAIN
2317 int F77_DUMMY_MAIN() { return 1; }
2327 rm -f conftest.$ac_objext
2328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329 (eval $ac_compile) 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2341 echo "$as_me: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2345 rm -f conftest.$ac_objext conftest.$ac_ext
2346 cat >conftest.$ac_ext <<_ACEOF
2347 #line $LINENO "configure"
2348 #include "confdefs.h"
2350 #ifdef F77_DUMMY_MAIN
2354 int F77_DUMMY_MAIN() { return 1; }
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
2370 { ac_try='test -s conftest.$ac_objext'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; }; then
2378 echo "$as_me: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2381 rm -f conftest.$ac_objext conftest.$ac_ext
2384 if test -n "$ac_declaration"; then
2385 echo '#ifdef __cplusplus' >>confdefs.h
2386 echo $ac_declaration >>confdefs.h
2387 echo '#endif' >>confdefs.h
2391 echo "$as_me: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2394 rm -f conftest.$ac_objext conftest.$ac_ext
2396 ac_cpp='$CPP $CPPFLAGS'
2397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2407 . "$srcdir/src/template/$template" || exit
2409 # CFLAGS are selected so:
2410 # If the user specifies something in the environment, that is used.
2411 # else: If the template file set something, that is used.
2412 # else: If the compiler is GCC, then we use -O2.
2413 # else: If the compiler is something else, then we use -0.
2415 if test "$ac_env_CFLAGS_set" = set; then
2416 CFLAGS=$ac_env_CFLAGS_value
2417 elif test "${CFLAGS+set}" = set; then
2418 : # (keep what template set)
2419 elif test "$GCC" = yes; then
2422 # if the user selected debug mode, don't use -O
2423 if test "$enable_debug" != yes; then
2428 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2429 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2430 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2431 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 pgac_save_CFLAGS=$CFLAGS
2435 if test "$GCC" = yes; then
2436 pgac_try="-fno-strict-aliasing"
2438 # Maybe fill in later...
2442 for pgac_flag in $pgac_try; do
2443 CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2444 cat >conftest.$ac_ext <<_ACEOF
2445 #line $LINENO "configure"
2446 #include "confdefs.h"
2448 #ifdef F77_DUMMY_MAIN
2452 int F77_DUMMY_MAIN() { return 1; }
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464 (eval $ac_compile) 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2480 rm -f conftest.$ac_objext conftest.$ac_ext
2483 CFLAGS=$pgac_save_CFLAGS
2486 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2487 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2489 if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then
2490 CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2493 # supply -g if --enable-debug
2494 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2498 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2499 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2501 # We already have this in Makefile.win32, but configure needs it too
2502 if test "$PORTNAME" = "win32"; then
2503 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2506 # Check if the compiler still works with the template settings
2507 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2508 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2510 cat >conftest.$ac_ext <<_ACEOF
2511 #line $LINENO "configure"
2512 #include "confdefs.h"
2514 #ifdef F77_DUMMY_MAIN
2518 int F77_DUMMY_MAIN() { return 1; }
2528 rm -f conftest.$ac_objext conftest$ac_exeext
2529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2530 (eval $ac_link) 2>&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -s conftest$ac_exeext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 echo "$as_me:$LINENO: result: yes" >&5
2541 echo "${ECHO_T}yes" >&6
2543 echo "$as_me: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2545 echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2547 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2548 echo "$as_me: error: cannot proceed" >&2;}
2549 { (exit 1); exit 1; }; }
2551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2553 # Defend against gcc -ffast-math
2554 if test "$GCC" = yes; then
2555 cat >conftest.$ac_ext <<_ACEOF
2556 #line $LINENO "configure"
2557 #include "confdefs.h"
2559 #ifdef F77_DUMMY_MAIN
2563 int F77_DUMMY_MAIN() { return 1; }
2568 #ifdef __FAST_MATH__
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2589 echo "$as_me: failed program was:" >&5
2590 cat conftest.$ac_ext >&5
2591 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2592 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2593 { (exit 1); exit 1; }; }
2595 rm -f conftest.$ac_objext conftest.$ac_ext
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2604 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2605 # On Suns, sometimes $CPP names a directory.
2606 if test -n "$CPP" && test -d "$CPP"; then
2609 if test -z "$CPP"; then
2610 if test "${ac_cv_prog_CPP+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 # Double quotes because CPP needs to be expanded
2614 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2617 for ac_c_preproc_warn_flag in '' yes
2619 # Use a header file that comes with gcc, so configuring glibc
2620 # with a fresh cross-compiler works.
2621 # On the NeXT, cc -E runs the code through the compiler's parser,
2622 # not just through cpp. "Syntax error" is here to catch this case.
2623 cat >conftest.$ac_ext <<_ACEOF
2624 #line $LINENO "configure"
2625 #include "confdefs.h"
2629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2632 egrep -v '^ *\+' conftest.er1 >conftest.err
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } >/dev/null; then
2637 if test -s conftest.err; then
2638 ac_cpp_err=$ac_c_preproc_warn_flag
2645 if test -z "$ac_cpp_err"; then
2648 echo "$as_me: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2650 # Broken: fails on valid input.
2653 rm -f conftest.err conftest.$ac_ext
2655 # OK, works on sane cases. Now check whether non-existent headers
2656 # can be detected and how.
2657 cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2659 #include "confdefs.h"
2660 #include <ac_nonexistent.h>
2662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2665 egrep -v '^ *\+' conftest.er1 >conftest.err
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } >/dev/null; then
2670 if test -s conftest.err; then
2671 ac_cpp_err=$ac_c_preproc_warn_flag
2678 if test -z "$ac_cpp_err"; then
2679 # Broken: success on invalid input.
2682 echo "$as_me: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2684 # Passes both tests.
2688 rm -f conftest.err conftest.$ac_ext
2691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2692 rm -f conftest.err conftest.$ac_ext
2693 if $ac_preproc_ok; then
2705 echo "$as_me:$LINENO: result: $CPP" >&5
2706 echo "${ECHO_T}$CPP" >&6
2708 for ac_c_preproc_warn_flag in '' yes
2710 # Use a header file that comes with gcc, so configuring glibc
2711 # with a fresh cross-compiler works.
2712 # On the NeXT, cc -E runs the code through the compiler's parser,
2713 # not just through cpp. "Syntax error" is here to catch this case.
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 #include "confdefs.h"
2720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2723 egrep -v '^ *\+' conftest.er1 >conftest.err
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } >/dev/null; then
2728 if test -s conftest.err; then
2729 ac_cpp_err=$ac_c_preproc_warn_flag
2736 if test -z "$ac_cpp_err"; then
2739 echo "$as_me: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2741 # Broken: fails on valid input.
2744 rm -f conftest.err conftest.$ac_ext
2746 # OK, works on sane cases. Now check whether non-existent headers
2747 # can be detected and how.
2748 cat >conftest.$ac_ext <<_ACEOF
2749 #line $LINENO "configure"
2750 #include "confdefs.h"
2751 #include <ac_nonexistent.h>
2753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2756 egrep -v '^ *\+' conftest.er1 >conftest.err
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } >/dev/null; then
2761 if test -s conftest.err; then
2762 ac_cpp_err=$ac_c_preproc_warn_flag
2769 if test -z "$ac_cpp_err"; then
2770 # Broken: success on invalid input.
2773 echo "$as_me: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2775 # Passes both tests.
2779 rm -f conftest.err conftest.$ac_ext
2782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2783 rm -f conftest.err conftest.$ac_ext
2784 if $ac_preproc_ok; then
2787 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2788 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2789 { (exit 1); exit 1; }; }
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 # Create compiler version string
2801 if test x"$GCC" = x"yes" ; then
2802 cc_string="GCC `${CC} --version | sed q`"
2807 cat >>confdefs.h <<_ACEOF
2808 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2814 # Set up TAS assembly code if needed; the template file has now had its
2815 # chance to request this.
2817 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2820 if test "$need_tas" = yes ; then
2829 # Automatic dependency tracking
2833 # Check whether --enable-depend or --disable-depend was given.
2834 if test "${enable_depend+set}" = set; then
2835 enableval="$enable_depend"
2845 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2846 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2847 { (exit 1); exit 1; }; }
2860 # Enable assert checks
2864 # Check whether --enable-cassert or --disable-cassert was given.
2865 if test "${enable_cassert+set}" = set; then
2866 enableval="$enable_cassert"
2871 cat >>confdefs.h <<\_ACEOF
2872 #define USE_ASSERT_CHECKING 1
2880 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2881 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2882 { (exit 1); exit 1; }; }
2894 # Include directories
2898 # SRCH_INC comes from the template file
2899 for dir in $with_includes $SRCH_INC; do
2900 if test -d "$dir"; then
2901 INCLUDES="$INCLUDES -I$dir"
2903 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2904 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2912 # Library directories
2916 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2917 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2918 if test -d "$dir"; then
2919 LIBDIRS="$LIBDIRS -L$dir"
2921 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2922 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2928 # Enable thread-safe client libraries
2930 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2931 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2934 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2935 if test "${enable_thread_safety+set}" = set; then
2936 enableval="$enable_thread_safety"
2941 cat >>confdefs.h <<\_ACEOF
2942 #define ENABLE_THREAD_SAFETY 1
2950 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2951 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2952 { (exit 1); exit 1; }; }
2957 enable_thread_safety=no
2961 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2962 echo "${ECHO_T}$enable_thread_safety" >&6
2968 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2969 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2973 # Check whether --with-tcl or --without-tcl was given.
2974 if test "${with_tcl+set}" = set; then
2985 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2986 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2987 { (exit 1); exit 1; }; }
2996 echo "$as_me:$LINENO: result: $with_tcl" >&5
2997 echo "${ECHO_T}$with_tcl" >&6
3000 # We see if the path to the Tcl/Tk configuration scripts is specified.
3001 # This will override the use of tclsh to find the paths to search.
3006 # Check whether --with-tclconfig or --without-tclconfig was given.
3007 if test "${with_tclconfig+set}" = set; then
3008 withval="$with_tclconfig"
3012 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3013 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3014 { (exit 1); exit 1; }; }
3017 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3018 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3019 { (exit 1); exit 1; }; }
3030 # Optionally build Perl modules (PL/Perl)
3032 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3033 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3037 # Check whether --with-perl or --without-perl was given.
3038 if test "${with_perl+set}" = set; then
3039 withval="$with_perl"
3049 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3050 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3051 { (exit 1); exit 1; }; }
3060 echo "$as_me:$LINENO: result: $with_perl" >&5
3061 echo "${ECHO_T}$with_perl" >&6
3065 # Optionally build Python modules (PL/Python)
3067 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3068 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3072 # Check whether --with-python or --without-python was given.
3073 if test "${with_python+set}" = set; then
3074 withval="$with_python"
3084 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3085 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3086 { (exit 1); exit 1; }; }
3095 echo "$as_me:$LINENO: result: $with_python" >&5
3096 echo "${ECHO_T}$with_python" >&6
3102 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3103 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3107 # Check whether --with-krb4 or --without-krb4 was given.
3108 if test "${with_krb4+set}" = set; then
3109 withval="$with_krb4"
3115 cat >>confdefs.h <<\_ACEOF
3119 krb_srvtab="/etc/srvtab"
3126 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3127 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3128 { (exit 1); exit 1; }; }
3137 echo "$as_me:$LINENO: result: $with_krb4" >&5
3138 echo "${ECHO_T}$with_krb4" >&6
3145 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3146 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3150 # Check whether --with-krb5 or --without-krb5 was given.
3151 if test "${with_krb5+set}" = set; then
3152 withval="$with_krb5"
3158 cat >>confdefs.h <<\_ACEOF
3162 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3169 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3170 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3171 { (exit 1); exit 1; }; }
3180 echo "$as_me:$LINENO: result: $with_krb5" >&5
3181 echo "${ECHO_T}$with_krb5" >&6
3185 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3186 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3187 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3188 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3189 { (exit 1); exit 1; }; }
3196 # Kerberos configuration parameters
3201 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3202 if test "${with_krb_srvnam+set}" = set; then
3203 withval="$with_krb_srvnam"
3207 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3208 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3209 { (exit 1); exit 1; }; }
3212 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3213 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3214 { (exit 1); exit 1; }; }
3222 with_krb_srvnam="postgres"
3226 cat >>confdefs.h <<_ACEOF
3227 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3235 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3236 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3240 # Check whether --with-pam or --without-pam was given.
3241 if test "${with_pam+set}" = set; then
3247 cat >>confdefs.h <<\_ACEOF
3256 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3257 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3258 { (exit 1); exit 1; }; }
3267 echo "$as_me:$LINENO: result: $with_pam" >&5
3268 echo "${ECHO_T}$with_pam" >&6
3275 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3276 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3280 # Check whether --with-rendezvous or --without-rendezvous was given.
3281 if test "${with_rendezvous+set}" = set; then
3282 withval="$with_rendezvous"
3287 cat >>confdefs.h <<\_ACEOF
3288 #define USE_RENDEZVOUS 1
3296 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3297 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3298 { (exit 1); exit 1; }; }
3307 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3308 echo "${ECHO_T}$with_rendezvous" >&6
3315 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3316 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3320 # Check whether --with-openssl or --without-openssl was given.
3321 if test "${with_openssl+set}" = set; then
3322 withval="$with_openssl"
3327 cat >>confdefs.h <<\_ACEOF
3336 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3337 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3338 { (exit 1); exit 1; }; }
3347 echo "$as_me:$LINENO: result: $with_openssl" >&5
3348 echo "${ECHO_T}$with_openssl" >&6
3358 # Check whether --with-readline or --without-readline was given.
3359 if test "${with_readline+set}" = set; then
3360 withval="$with_readline"
3370 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3371 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3372 { (exit 1); exit 1; }; }
3388 # Check whether --with-zlib or --without-zlib was given.
3389 if test "${with_zlib+set}" = set; then
3390 withval="$with_zlib"
3400 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3401 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3402 { (exit 1); exit 1; }; }
3416 # Assume system is ELF if it predefines __ELF__ as 1,
3417 # otherwise believe host_os based default.
3419 freebsd1*|freebsd2*) elf=no;;
3420 freebsd3*|freebsd4*) elf=yes;;
3424 cat >conftest.$ac_ext <<_ACEOF
3425 #line $LINENO "configure"
3426 #include "confdefs.h"
3432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3433 egrep "yes" >/dev/null 2>&1; then
3436 if test "X$elf" = "Xyes" ; then
3450 CPPFLAGS="$CPPFLAGS $INCLUDES"
3451 LDFLAGS="$LDFLAGS $LIBDIRS"
3453 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3454 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3455 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3456 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3459 for ac_prog in gawk mawk nawk awk
3461 # Extract the first word of "$ac_prog", so it can be a program name with args.
3462 set dummy $ac_prog; ac_word=$2
3463 echo "$as_me:$LINENO: checking for $ac_word" >&5
3464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3465 if test "${ac_cv_prog_AWK+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 if test -n "$AWK"; then
3469 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_AWK="$ac_prog"
3479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 if test -n "$AWK"; then
3489 echo "$as_me:$LINENO: result: $AWK" >&5
3490 echo "${ECHO_T}$AWK" >&6
3492 echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3496 test -n "$AWK" && break
3499 echo "$as_me:$LINENO: checking for flex" >&5
3500 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3501 if test "${pgac_cv_path_flex+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 # Let the user override the test
3505 if test -n "$FLEX"; then
3506 pgac_cv_path_flex=$FLEX
3510 for pgac_dir in $PATH; do
3511 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3514 for pgac_prog in flex lex; do
3515 pgac_candidate="$pgac_dir/$pgac_prog"
3516 if test -f "$pgac_candidate" \
3517 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3519 echo '%%' > conftest.l
3520 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3521 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3522 pgac_broken_flex=$pgac_candidate
3526 pgac_cv_path_flex=$pgac_candidate
3534 : ${pgac_cv_path_flex=no}
3538 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3539 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3540 if test x"$pgac_cv_path_flex" = x"no"; then
3541 if test -n "$pgac_broken_flex"; then
3542 { echo "$as_me:$LINENO: WARNING:
3543 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3544 *** should get version 2.5.4 or later." >&5
3545 echo "$as_me: WARNING:
3546 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3547 *** should get version 2.5.4 or later." >&2;}
3550 { echo "$as_me:$LINENO: WARNING:
3551 *** Without Flex you will not be able to build PostgreSQL from CVS or
3552 *** change any of the scanner definition files. You can obtain Flex from
3553 *** a GNU mirror site. (If you are using the official distribution of
3554 *** PostgreSQL then you do not need to worry about this because the Flex
3555 *** output is pre-generated.)" >&5
3556 echo "$as_me: WARNING:
3557 *** Without Flex you will not be able to build PostgreSQL from CVS or
3558 *** change any of the scanner definition files. You can obtain Flex from
3559 *** a GNU mirror site. (If you are using the official distribution of
3560 *** PostgreSQL then you do not need to worry about this because the Flex
3561 *** output is pre-generated.)" >&2;}
3564 if test x"$pgac_cv_path_flex" = x"no"; then
3567 FLEX=$pgac_cv_path_flex
3573 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3574 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3576 if test "$LN_S" = "ln -s"; then
3577 echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6
3580 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3581 echo "${ECHO_T}no, using $LN_S" >&6
3585 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3586 if test "${with_gnu_ld+set}" = set; then
3587 withval="$with_gnu_ld"
3588 test "$withval" = no || with_gnu_ld=yes
3593 if test "$GCC" = yes; then
3594 # Check if gcc -print-prog-name=ld gives a path.
3595 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3596 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3599 # gcc leaves a trailing carriage return which upsets mingw
3600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3605 # Accept absolute paths.
3606 [\\/]* | [A-Za-z]:[\\/]*)
3607 re_direlt='/[^/][^/]*/\.\./'
3608 # Canonicalize the path of ld
3609 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3611 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3613 test -z "$LD" && LD="$ac_prog"
3616 # If it fails, then pretend we aren't using GCC.
3620 # If it is relative, then search for the first ld in PATH.
3624 elif test "$with_gnu_ld" = yes; then
3625 echo "$as_me:$LINENO: checking for GNU ld" >&5
3626 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3628 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3629 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3631 if test "${ac_cv_path_LD+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 if test -z "$LD"; then
3635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3636 for ac_dir in $PATH; do
3637 test -z "$ac_dir" && ac_dir=.
3638 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3639 ac_cv_path_LD="$ac_dir/$ac_prog"
3640 # Check to see if the program is GNU ld. I'd rather use --version,
3641 # but apparently some GNU ld's only accept -v.
3642 # Break only if it was the GNU/non-GNU ld that we prefer.
3643 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3644 test "$with_gnu_ld" != no && break
3646 test "$with_gnu_ld" != yes && break
3652 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3657 if test -n "$LD"; then
3658 echo "$as_me:$LINENO: result: $LD" >&5
3659 echo "${ECHO_T}$LD" >&6
3661 echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3664 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3665 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3666 { (exit 1); exit 1; }; }
3667 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3668 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3669 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3673 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3674 ac_cv_prog_gnu_ld=yes
3676 ac_cv_prog_gnu_ld=no
3679 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3680 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3681 with_gnu_ld=$ac_cv_prog_gnu_ld
3686 case $host_os in sysv5*)
3687 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3688 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3689 if test "${pgac_cv_prog_ld_R+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3694 cat >conftest.$ac_ext <<_ACEOF
3695 #line $LINENO "configure"
3696 #include "confdefs.h"
3698 #ifdef F77_DUMMY_MAIN
3702 int F77_DUMMY_MAIN() { return 1; }
3712 rm -f conftest.$ac_objext conftest$ac_exeext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3714 (eval $ac_link) 2>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -s conftest$ac_exeext'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 pgac_cv_prog_ld_R=yes
3726 echo "$as_me: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 pgac_cv_prog_ld_R=no
3730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3731 LDFLAGS=$pgac_save_LDFLAGS
3734 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3735 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3736 ld_R_works=$pgac_cv_prog_ld_R
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3742 echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3744 if test "${ac_cv_prog_RANLIB+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if test -n "$RANLIB"; then
3748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 RANLIB=$ac_cv_prog_RANLIB
3767 if test -n "$RANLIB"; then
3768 echo "$as_me:$LINENO: result: $RANLIB" >&5
3769 echo "${ECHO_T}$RANLIB" >&6
3771 echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3776 if test -z "$ac_cv_prog_RANLIB"; then
3777 ac_ct_RANLIB=$RANLIB
3778 # Extract the first word of "ranlib", so it can be a program name with args.
3779 set dummy ranlib; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 if test -n "$ac_ct_RANLIB"; then
3786 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_ac_ct_RANLIB="ranlib"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3805 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3806 if test -n "$ac_ct_RANLIB"; then
3807 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3808 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3810 echo "$as_me:$LINENO: result: no" >&5
3811 echo "${ECHO_T}no" >&6
3814 RANLIB=$ac_ct_RANLIB
3816 RANLIB="$ac_cv_prog_RANLIB"
3819 for ac_prog in lorder
3821 # Extract the first word of "$ac_prog", so it can be a program name with args.
3822 set dummy $ac_prog; ac_word=$2
3823 echo "$as_me:$LINENO: checking for $ac_word" >&5
3824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3825 if test "${ac_cv_prog_LORDER+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 if test -n "$LORDER"; then
3829 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838 ac_cv_prog_LORDER="$ac_prog"
3839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 LORDER=$ac_cv_prog_LORDER
3848 if test -n "$LORDER"; then
3849 echo "$as_me:$LINENO: result: $LORDER" >&5
3850 echo "${ECHO_T}$LORDER" >&6
3852 echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3856 test -n "$LORDER" && break
3859 # Extract the first word of "tar", so it can be a program name with args.
3860 set dummy tar; ac_word=$2
3861 echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863 if test "${ac_cv_path_TAR+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 if test -n "$TAR"; then
3891 echo "$as_me:$LINENO: result: $TAR" >&5
3892 echo "${ECHO_T}$TAR" >&6
3894 echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3899 if test -n "$ac_tool_prefix"; then
3900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}strip; ac_word=$2
3902 echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3904 if test "${ac_cv_prog_STRIP+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$STRIP"; then
3908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 STRIP=$ac_cv_prog_STRIP
3927 if test -n "$STRIP"; then
3928 echo "$as_me:$LINENO: result: $STRIP" >&5
3929 echo "${ECHO_T}$STRIP" >&6
3931 echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6
3936 if test -z "$ac_cv_prog_STRIP"; then
3938 # Extract the first word of "strip", so it can be a program name with args.
3939 set dummy strip; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 if test -n "$ac_ct_STRIP"; then
3946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_prog_ac_ct_STRIP="strip"
3956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3966 if test -n "$ac_ct_STRIP"; then
3967 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3968 echo "${ECHO_T}$ac_ct_STRIP" >&6
3970 echo "$as_me:$LINENO: result: no" >&5
3971 echo "${ECHO_T}no" >&6
3976 STRIP="$ac_cv_prog_STRIP"
3980 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
3981 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
3982 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
3983 STRIP_STATIC_LIB="$STRIP -x"
3984 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
3985 echo "$as_me:$LINENO: result: yes" >&5
3986 echo "${ECHO_T}yes" >&6
3990 echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6
3997 for ac_prog in 'bison -y'
3999 # Extract the first word of "$ac_prog", so it can be a program name with args.
4000 set dummy $ac_prog; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_YACC+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 if test -n "$YACC"; then
4007 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_YACC="$ac_prog"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 YACC=$ac_cv_prog_YACC
4026 if test -n "$YACC"; then
4027 echo "$as_me:$LINENO: result: $YACC" >&5
4028 echo "${ECHO_T}$YACC" >&6
4030 echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4034 test -n "$YACC" && break
4038 if test "$YACC"; then
4039 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4040 { echo "$as_me:$LINENO: WARNING:
4041 *** If you are going to modify the grammar files or build from CVS, the installed
4042 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4043 echo "$as_me: WARNING:
4044 *** If you are going to modify the grammar files or build from CVS, the installed
4045 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4049 if test -z "$YACC"; then
4050 { echo "$as_me:$LINENO: WARNING:
4051 *** Without Bison you will not be able to build PostgreSQL from CVS or
4052 *** change any of the parser definition files. You can obtain Bison from
4053 *** a GNU mirror site. (If you are using the official distribution of
4054 *** PostgreSQL then you do not need to worry about this because the Bison
4055 *** output is pre-generated.) To use a different yacc program (possible,
4056 *** but not recommended), set the environment variable YACC before running
4057 *** 'configure'." >&5
4058 echo "$as_me: WARNING:
4059 *** Without Bison you will not be able to build PostgreSQL from CVS or
4060 *** change any of the parser definition files. You can obtain Bison from
4061 *** a GNU mirror site. (If you are using the official distribution of
4062 *** PostgreSQL then you do not need to worry about this because the Bison
4063 *** output is pre-generated.) To use a different yacc program (possible,
4064 *** but not recommended), set the environment variable YACC before running
4065 *** 'configure'." >&2;}
4069 # Extract the first word of "perl", so it can be a program name with args.
4070 set dummy perl; ac_word=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_path_PERL+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 PERL=$ac_cv_path_PERL
4100 if test -n "$PERL"; then
4101 echo "$as_me:$LINENO: result: $PERL" >&5
4102 echo "${ECHO_T}$PERL" >&6
4104 echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4108 if test "$with_perl" = yes; then
4110 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4111 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4112 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4113 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4114 echo "${ECHO_T}$perl_archlibexp" >&6
4115 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4116 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4117 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4118 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4119 echo "${ECHO_T}$perl_privlibexp" >&6
4120 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4121 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4122 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4123 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4124 echo "${ECHO_T}$perl_useshrplib" >&6
4126 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4127 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4128 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4129 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4130 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4131 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4132 echo "${ECHO_T}$perl_embed_ldflags" >&6
4135 if test "$with_python" = yes; then
4136 # Extract the first word of "python", so it can be a program name with args.
4137 set dummy python; ac_word=$2
4138 echo "$as_me:$LINENO: checking for $ac_word" >&5
4139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4140 if test "${ac_cv_path_PYTHON+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 PYTHON=$ac_cv_path_PYTHON
4167 if test -n "$PYTHON"; then
4168 echo "$as_me:$LINENO: result: $PYTHON" >&5
4169 echo "${ECHO_T}$PYTHON" >&6
4171 echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4175 if test x"$PYTHON" = x""; then
4176 { { echo "$as_me:$LINENO: error: Python not found" >&5
4177 echo "$as_me: error: Python not found" >&2;}
4178 { (exit 1); exit 1; }; }
4182 echo "$as_me:$LINENO: checking Python installation directories" >&5
4183 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4184 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4185 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4186 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4187 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4188 python_includespec="-I${python_prefix}/include/python${python_version}"
4189 if test "$python_prefix" != "$python_execprefix"; then
4190 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4193 # This should be enough of a message.
4194 if test "$python_prefix" != "$python_execprefix"; then
4195 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4196 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4198 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4199 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4203 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4204 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4206 if test ! -f "$python_configdir/Makefile"; then
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4210 echo "$as_me: error: Python Makefile not found" >&2;}
4211 { (exit 1); exit 1; }; }
4214 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4215 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4216 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4217 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4218 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4220 pgac_tab=" " # tab character
4221 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"`
4223 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4224 echo "${ECHO_T}${python_libspec}" >&6
4234 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4237 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4238 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4239 if test "${ac_cv_lib_bsd_main+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 ac_check_lib_save_LIBS=$LIBS
4244 cat >conftest.$ac_ext <<_ACEOF
4245 #line $LINENO "configure"
4246 #include "confdefs.h"
4249 #ifdef F77_DUMMY_MAIN
4253 int F77_DUMMY_MAIN() { return 1; }
4263 rm -f conftest.$ac_objext conftest$ac_exeext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4265 (eval $ac_link) 2>&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -s conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_lib_bsd_main=yes
4277 echo "$as_me: failed program was:" >&5
4278 cat conftest.$ac_ext >&5
4279 ac_cv_lib_bsd_main=no
4281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4282 LIBS=$ac_check_lib_save_LIBS
4284 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4285 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4286 if test $ac_cv_lib_bsd_main = yes; then
4287 cat >>confdefs.h <<_ACEOF
4288 #define HAVE_LIBBSD 1
4297 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4298 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4299 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 ac_check_lib_save_LIBS=$LIBS
4304 cat >conftest.$ac_ext <<_ACEOF
4305 #line $LINENO "configure"
4306 #include "confdefs.h"
4308 /* Override any gcc2 internal prototype to avoid an error. */
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4314 char setproctitle ();
4315 #ifdef F77_DUMMY_MAIN
4319 int F77_DUMMY_MAIN() { return 1; }
4329 rm -f conftest.$ac_objext conftest$ac_exeext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4331 (eval $ac_link) 2>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -s conftest$ac_exeext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_lib_util_setproctitle=yes
4343 echo "$as_me: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4345 ac_cv_lib_util_setproctitle=no
4347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4348 LIBS=$ac_check_lib_save_LIBS
4350 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4351 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4352 if test $ac_cv_lib_util_setproctitle = yes; then
4353 cat >>confdefs.h <<_ACEOF
4354 #define HAVE_LIBUTIL 1
4362 echo "$as_me:$LINENO: checking for main in -lm" >&5
4363 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4364 if test "${ac_cv_lib_m_main+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 ac_check_lib_save_LIBS=$LIBS
4369 cat >conftest.$ac_ext <<_ACEOF
4370 #line $LINENO "configure"
4371 #include "confdefs.h"
4374 #ifdef F77_DUMMY_MAIN
4378 int F77_DUMMY_MAIN() { return 1; }
4388 rm -f conftest.$ac_objext conftest$ac_exeext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4390 (eval $ac_link) 2>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -s conftest$ac_exeext'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; }; then
4400 ac_cv_lib_m_main=yes
4402 echo "$as_me: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4407 LIBS=$ac_check_lib_save_LIBS
4409 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4410 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4411 if test $ac_cv_lib_m_main = yes; then
4412 cat >>confdefs.h <<_ACEOF
4421 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4422 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4423 if test "${ac_cv_lib_dl_main+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 ac_check_lib_save_LIBS=$LIBS
4428 cat >conftest.$ac_ext <<_ACEOF
4429 #line $LINENO "configure"
4430 #include "confdefs.h"
4433 #ifdef F77_DUMMY_MAIN
4437 int F77_DUMMY_MAIN() { return 1; }
4447 rm -f conftest.$ac_objext conftest$ac_exeext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4449 (eval $ac_link) 2>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -s conftest$ac_exeext'
4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_cv_lib_dl_main=yes
4461 echo "$as_me: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4463 ac_cv_lib_dl_main=no
4465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4466 LIBS=$ac_check_lib_save_LIBS
4468 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4469 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4470 if test $ac_cv_lib_dl_main = yes; then
4471 cat >>confdefs.h <<_ACEOF
4472 #define HAVE_LIBDL 1
4480 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4481 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4482 if test "${ac_cv_lib_nsl_main+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 ac_check_lib_save_LIBS=$LIBS
4487 cat >conftest.$ac_ext <<_ACEOF
4488 #line $LINENO "configure"
4489 #include "confdefs.h"
4492 #ifdef F77_DUMMY_MAIN
4496 int F77_DUMMY_MAIN() { return 1; }
4506 rm -f conftest.$ac_objext conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508 (eval $ac_link) 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 ac_cv_lib_nsl_main=yes
4520 echo "$as_me: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 ac_cv_lib_nsl_main=no
4524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4525 LIBS=$ac_check_lib_save_LIBS
4527 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4528 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4529 if test $ac_cv_lib_nsl_main = yes; then
4530 cat >>confdefs.h <<_ACEOF
4531 #define HAVE_LIBNSL 1
4539 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4540 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4541 if test "${ac_cv_lib_socket_main+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 ac_check_lib_save_LIBS=$LIBS
4545 LIBS="-lsocket $LIBS"
4546 cat >conftest.$ac_ext <<_ACEOF
4547 #line $LINENO "configure"
4548 #include "confdefs.h"
4551 #ifdef F77_DUMMY_MAIN
4555 int F77_DUMMY_MAIN() { return 1; }
4565 rm -f conftest.$ac_objext conftest$ac_exeext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567 (eval $ac_link) 2>&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try='test -s conftest$ac_exeext'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 ac_cv_lib_socket_main=yes
4579 echo "$as_me: failed program was:" >&5
4580 cat conftest.$ac_ext >&5
4581 ac_cv_lib_socket_main=no
4583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4584 LIBS=$ac_check_lib_save_LIBS
4586 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4587 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4588 if test $ac_cv_lib_socket_main = yes; then
4589 cat >>confdefs.h <<_ACEOF
4590 #define HAVE_LIBSOCKET 1
4593 LIBS="-lsocket $LIBS"
4598 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4599 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4600 if test "${ac_cv_lib_ipc_main+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 ac_check_lib_save_LIBS=$LIBS
4605 cat >conftest.$ac_ext <<_ACEOF
4606 #line $LINENO "configure"
4607 #include "confdefs.h"
4610 #ifdef F77_DUMMY_MAIN
4614 int F77_DUMMY_MAIN() { return 1; }
4624 rm -f conftest.$ac_objext conftest$ac_exeext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4626 (eval $ac_link) 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } &&
4630 { ac_try='test -s conftest$ac_exeext'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4636 ac_cv_lib_ipc_main=yes
4638 echo "$as_me: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 ac_cv_lib_ipc_main=no
4642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4643 LIBS=$ac_check_lib_save_LIBS
4645 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4646 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4647 if test $ac_cv_lib_ipc_main = yes; then
4648 cat >>confdefs.h <<_ACEOF
4649 #define HAVE_LIBIPC 1
4657 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4658 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4659 if test "${ac_cv_lib_IPC_main+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 ac_check_lib_save_LIBS=$LIBS
4664 cat >conftest.$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4669 #ifdef F77_DUMMY_MAIN
4673 int F77_DUMMY_MAIN() { return 1; }
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -s conftest$ac_exeext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 ac_cv_lib_IPC_main=yes
4697 echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 ac_cv_lib_IPC_main=no
4701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4702 LIBS=$ac_check_lib_save_LIBS
4704 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4705 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4706 if test $ac_cv_lib_IPC_main = yes; then
4707 cat >>confdefs.h <<_ACEOF
4708 #define HAVE_LIBIPC 1
4716 echo "$as_me:$LINENO: checking for main in -llc" >&5
4717 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4718 if test "${ac_cv_lib_lc_main+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 ac_check_lib_save_LIBS=$LIBS
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line $LINENO "configure"
4725 #include "confdefs.h"
4728 #ifdef F77_DUMMY_MAIN
4732 int F77_DUMMY_MAIN() { return 1; }
4742 rm -f conftest.$ac_objext conftest$ac_exeext
4743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -s conftest$ac_exeext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_cv_lib_lc_main=yes
4756 echo "$as_me: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4758 ac_cv_lib_lc_main=no
4760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4761 LIBS=$ac_check_lib_save_LIBS
4763 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4764 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4765 if test $ac_cv_lib_lc_main = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767 #define HAVE_LIBLC 1
4775 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4776 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4777 if test "${ac_cv_lib_dld_main+set}" = set; then
4778 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 ac_check_lib_save_LIBS=$LIBS
4782 cat >conftest.$ac_ext <<_ACEOF
4783 #line $LINENO "configure"
4784 #include "confdefs.h"
4787 #ifdef F77_DUMMY_MAIN
4791 int F77_DUMMY_MAIN() { return 1; }
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4803 (eval $ac_link) 2>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } &&
4807 { ac_try='test -s conftest$ac_exeext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 ac_cv_lib_dld_main=yes
4815 echo "$as_me: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4817 ac_cv_lib_dld_main=no
4819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4820 LIBS=$ac_check_lib_save_LIBS
4822 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4823 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4824 if test $ac_cv_lib_dld_main = yes; then
4825 cat >>confdefs.h <<_ACEOF
4826 #define HAVE_LIBDLD 1
4834 echo "$as_me:$LINENO: checking for main in -lld" >&5
4835 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4836 if test "${ac_cv_lib_ld_main+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 ac_check_lib_save_LIBS=$LIBS
4841 cat >conftest.$ac_ext <<_ACEOF
4842 #line $LINENO "configure"
4843 #include "confdefs.h"
4846 #ifdef F77_DUMMY_MAIN
4850 int F77_DUMMY_MAIN() { return 1; }
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862 (eval $ac_link) 2>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_lib_ld_main=yes
4874 echo "$as_me: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 ac_cv_lib_ld_main=no
4878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4879 LIBS=$ac_check_lib_save_LIBS
4881 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4882 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4883 if test $ac_cv_lib_ld_main = yes; then
4884 cat >>confdefs.h <<_ACEOF
4885 #define HAVE_LIBLD 1
4893 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4894 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4895 if test "${ac_cv_lib_compat_main+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_check_lib_save_LIBS=$LIBS
4899 LIBS="-lcompat $LIBS"
4900 cat >conftest.$ac_ext <<_ACEOF
4901 #line $LINENO "configure"
4902 #include "confdefs.h"
4905 #ifdef F77_DUMMY_MAIN
4909 int F77_DUMMY_MAIN() { return 1; }
4919 rm -f conftest.$ac_objext conftest$ac_exeext
4920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4921 (eval $ac_link) 2>&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
4925 { ac_try='test -s conftest$ac_exeext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 ac_cv_lib_compat_main=yes
4933 echo "$as_me: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4935 ac_cv_lib_compat_main=no
4937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4938 LIBS=$ac_check_lib_save_LIBS
4940 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
4941 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
4942 if test $ac_cv_lib_compat_main = yes; then
4943 cat >>confdefs.h <<_ACEOF
4944 #define HAVE_LIBCOMPAT 1
4947 LIBS="-lcompat $LIBS"
4952 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
4953 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
4954 if test "${ac_cv_lib_BSD_main+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 ac_check_lib_save_LIBS=$LIBS
4959 cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 #include "confdefs.h"
4964 #ifdef F77_DUMMY_MAIN
4968 int F77_DUMMY_MAIN() { return 1; }
4978 rm -f conftest.$ac_objext conftest$ac_exeext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4980 (eval $ac_link) 2>&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -s conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_cv_lib_BSD_main=yes
4992 echo "$as_me: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 ac_cv_lib_BSD_main=no
4996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4997 LIBS=$ac_check_lib_save_LIBS
4999 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5000 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5001 if test $ac_cv_lib_BSD_main = yes; then
5002 cat >>confdefs.h <<_ACEOF
5003 #define HAVE_LIBBSD 1
5011 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5012 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5013 if test "${ac_cv_lib_gen_main+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 ac_check_lib_save_LIBS=$LIBS
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 #include "confdefs.h"
5023 #ifdef F77_DUMMY_MAIN
5027 int F77_DUMMY_MAIN() { return 1; }
5037 rm -f conftest.$ac_objext conftest$ac_exeext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039 (eval $ac_link) 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 ac_cv_lib_gen_main=yes
5051 echo "$as_me: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 ac_cv_lib_gen_main=no
5055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5056 LIBS=$ac_check_lib_save_LIBS
5058 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5059 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5060 if test $ac_cv_lib_gen_main = yes; then
5061 cat >>confdefs.h <<_ACEOF
5062 #define HAVE_LIBGEN 1
5070 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5071 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5072 if test "${ac_cv_lib_PW_main+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 ac_check_lib_save_LIBS=$LIBS
5077 cat >conftest.$ac_ext <<_ACEOF
5078 #line $LINENO "configure"
5079 #include "confdefs.h"
5082 #ifdef F77_DUMMY_MAIN
5086 int F77_DUMMY_MAIN() { return 1; }
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5098 (eval $ac_link) 2>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -s conftest$ac_exeext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
5108 ac_cv_lib_PW_main=yes
5110 echo "$as_me: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 ac_cv_lib_PW_main=no
5114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5115 LIBS=$ac_check_lib_save_LIBS
5117 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5118 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5119 if test $ac_cv_lib_PW_main = yes; then
5120 cat >>confdefs.h <<_ACEOF
5121 #define HAVE_LIBPW 1
5129 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5130 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5131 if test "${ac_cv_lib_resolv_main+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 ac_check_lib_save_LIBS=$LIBS
5135 LIBS="-lresolv $LIBS"
5136 cat >conftest.$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5138 #include "confdefs.h"
5141 #ifdef F77_DUMMY_MAIN
5145 int F77_DUMMY_MAIN() { return 1; }
5155 rm -f conftest.$ac_objext conftest$ac_exeext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5157 (eval $ac_link) 2>&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -s conftest$ac_exeext'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5167 ac_cv_lib_resolv_main=yes
5169 echo "$as_me: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5171 ac_cv_lib_resolv_main=no
5173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5174 LIBS=$ac_check_lib_save_LIBS
5176 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5177 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5178 if test $ac_cv_lib_resolv_main = yes; then
5179 cat >>confdefs.h <<_ACEOF
5180 #define HAVE_LIBRESOLV 1
5183 LIBS="-lresolv $LIBS"
5187 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5188 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5189 if test "${ac_cv_search_getopt_long+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 ac_func_search_save_LIBS=$LIBS
5193 ac_cv_search_getopt_long=no
5194 cat >conftest.$ac_ext <<_ACEOF
5195 #line $LINENO "configure"
5196 #include "confdefs.h"
5198 /* Override any gcc2 internal prototype to avoid an error. */
5202 /* We use char because int might match the return type of a gcc2
5203 builtin and then its argument prototype would still apply. */
5204 char getopt_long ();
5205 #ifdef F77_DUMMY_MAIN
5209 int F77_DUMMY_MAIN() { return 1; }
5219 rm -f conftest.$ac_objext conftest$ac_exeext
5220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5221 (eval $ac_link) 2>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try='test -s conftest$ac_exeext'
5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); }; }; then
5231 ac_cv_search_getopt_long="none required"
5233 echo "$as_me: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5237 if test "$ac_cv_search_getopt_long" = no; then
5238 for ac_lib in getopt gnugetopt; do
5239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5240 cat >conftest.$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5242 #include "confdefs.h"
5244 /* Override any gcc2 internal prototype to avoid an error. */
5248 /* We use char because int might match the return type of a gcc2
5249 builtin and then its argument prototype would still apply. */
5250 char getopt_long ();
5251 #ifdef F77_DUMMY_MAIN
5255 int F77_DUMMY_MAIN() { return 1; }
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5267 (eval $ac_link) 2>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -s conftest$ac_exeext'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_cv_search_getopt_long="-l$ac_lib"
5280 echo "$as_me: failed program was:" >&5
5281 cat conftest.$ac_ext >&5
5283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5286 LIBS=$ac_func_search_save_LIBS
5288 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5289 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5290 if test "$ac_cv_search_getopt_long" != no; then
5291 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5297 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5298 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5299 if test "${ac_cv_lib_unix_main+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 ac_check_lib_save_LIBS=$LIBS
5304 cat >conftest.$ac_ext <<_ACEOF
5305 #line $LINENO "configure"
5306 #include "confdefs.h"
5309 #ifdef F77_DUMMY_MAIN
5313 int F77_DUMMY_MAIN() { return 1; }
5323 rm -f conftest.$ac_objext conftest$ac_exeext
5324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5325 (eval $ac_link) 2>&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try='test -s conftest$ac_exeext'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; }; then
5335 ac_cv_lib_unix_main=yes
5337 echo "$as_me: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5339 ac_cv_lib_unix_main=no
5341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5342 LIBS=$ac_check_lib_save_LIBS
5344 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5345 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5346 if test $ac_cv_lib_unix_main = yes; then
5347 cat >>confdefs.h <<_ACEOF
5348 #define HAVE_LIBUNIX 1
5355 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5356 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5357 if test "${ac_cv_search_crypt+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 ac_func_search_save_LIBS=$LIBS
5361 ac_cv_search_crypt=no
5362 cat >conftest.$ac_ext <<_ACEOF
5363 #line $LINENO "configure"
5364 #include "confdefs.h"
5366 /* Override any gcc2 internal prototype to avoid an error. */
5370 /* We use char because int might match the return type of a gcc2
5371 builtin and then its argument prototype would still apply. */
5373 #ifdef F77_DUMMY_MAIN
5377 int F77_DUMMY_MAIN() { return 1; }
5387 rm -f conftest.$ac_objext conftest$ac_exeext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5389 (eval $ac_link) 2>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -s conftest$ac_exeext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_cv_search_crypt="none required"
5401 echo "$as_me: failed program was:" >&5
5402 cat conftest.$ac_ext >&5
5404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5405 if test "$ac_cv_search_crypt" = no; then
5406 for ac_lib in crypt; do
5407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5408 cat >conftest.$ac_ext <<_ACEOF
5409 #line $LINENO "configure"
5410 #include "confdefs.h"
5412 /* Override any gcc2 internal prototype to avoid an error. */
5416 /* We use char because int might match the return type of a gcc2
5417 builtin and then its argument prototype would still apply. */
5419 #ifdef F77_DUMMY_MAIN
5423 int F77_DUMMY_MAIN() { return 1; }
5433 rm -f conftest.$ac_objext conftest$ac_exeext
5434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435 (eval $ac_link) 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } &&
5439 { ac_try='test -s conftest$ac_exeext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5445 ac_cv_search_crypt="-l$ac_lib"
5448 echo "$as_me: failed program was:" >&5
5449 cat conftest.$ac_ext >&5
5451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5454 LIBS=$ac_func_search_save_LIBS
5456 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5457 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5458 if test "$ac_cv_search_crypt" != no; then
5459 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5464 if test "$PORTNAME" = "beos"
5467 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5468 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5469 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 ac_check_lib_save_LIBS=$LIBS
5474 cat >conftest.$ac_ext <<_ACEOF
5475 #line $LINENO "configure"
5476 #include "confdefs.h"
5478 /* Override any gcc2 internal prototype to avoid an error. */
5482 /* We use char because int might match the return type of a gcc2
5483 builtin and then its argument prototype would still apply. */
5484 char __inet_ntoa ();
5485 #ifdef F77_DUMMY_MAIN
5489 int F77_DUMMY_MAIN() { return 1; }
5499 rm -f conftest.$ac_objext conftest$ac_exeext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5501 (eval $ac_link) 2>&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try='test -s conftest$ac_exeext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_cv_lib_bind___inet_ntoa=yes
5513 echo "$as_me: failed program was:" >&5
5514 cat conftest.$ac_ext >&5
5515 ac_cv_lib_bind___inet_ntoa=no
5517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5518 LIBS=$ac_check_lib_save_LIBS
5520 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5521 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5522 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5523 cat >>confdefs.h <<_ACEOF
5524 #define HAVE_LIBBIND 1
5533 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5534 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5535 if test "${ac_cv_search_fdatasync+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 ac_func_search_save_LIBS=$LIBS
5539 ac_cv_search_fdatasync=no
5540 cat >conftest.$ac_ext <<_ACEOF
5541 #line $LINENO "configure"
5542 #include "confdefs.h"
5544 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5551 #ifdef F77_DUMMY_MAIN
5555 int F77_DUMMY_MAIN() { return 1; }
5565 rm -f conftest.$ac_objext conftest$ac_exeext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567 (eval $ac_link) 2>&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -s conftest$ac_exeext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
5577 ac_cv_search_fdatasync="none required"
5579 echo "$as_me: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5583 if test "$ac_cv_search_fdatasync" = no; then
5584 for ac_lib in rt posix4; do
5585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5586 cat >conftest.$ac_ext <<_ACEOF
5587 #line $LINENO "configure"
5588 #include "confdefs.h"
5590 /* Override any gcc2 internal prototype to avoid an error. */
5594 /* We use char because int might match the return type of a gcc2
5595 builtin and then its argument prototype would still apply. */
5597 #ifdef F77_DUMMY_MAIN
5601 int F77_DUMMY_MAIN() { return 1; }
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -s conftest$ac_exeext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_cv_search_fdatasync="-l$ac_lib"
5626 echo "$as_me: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5632 LIBS=$ac_func_search_save_LIBS
5634 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5635 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5636 if test "$ac_cv_search_fdatasync" != no; then
5637 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5643 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5644 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5645 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 ac_check_lib_save_LIBS=$LIBS
5649 LIBS="-lcygipc $LIBS"
5650 cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 #include "confdefs.h"
5654 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5661 #ifdef F77_DUMMY_MAIN
5665 int F77_DUMMY_MAIN() { return 1; }
5675 rm -f conftest.$ac_objext conftest$ac_exeext
5676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5677 (eval $ac_link) 2>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try='test -s conftest$ac_exeext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_lib_cygipc_shmget=yes
5689 echo "$as_me: failed program was:" >&5
5690 cat conftest.$ac_ext >&5
5691 ac_cv_lib_cygipc_shmget=no
5693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5694 LIBS=$ac_check_lib_save_LIBS
5696 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5697 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5698 if test $ac_cv_lib_cygipc_shmget = yes; then
5699 cat >>confdefs.h <<_ACEOF
5700 #define HAVE_LIBCYGIPC 1
5703 LIBS="-lcygipc $LIBS"
5708 if test "$PORTNAME" = "win32"
5711 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5712 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5713 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 ac_check_lib_save_LIBS=$LIBS
5717 LIBS="-lwsock32 $LIBS"
5718 cat >conftest.$ac_ext <<_ACEOF
5719 #line $LINENO "configure"
5720 #include "confdefs.h"
5723 #ifdef F77_DUMMY_MAIN
5727 int F77_DUMMY_MAIN() { return 1; }
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739 (eval $ac_link) 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } &&
5743 { ac_try='test -s conftest$ac_exeext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 ac_cv_lib_wsock32_main=yes
5751 echo "$as_me: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5753 ac_cv_lib_wsock32_main=no
5755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5756 LIBS=$ac_check_lib_save_LIBS
5758 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5759 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5760 if test $ac_cv_lib_wsock32_main = yes; then
5761 cat >>confdefs.h <<_ACEOF
5762 #define HAVE_LIBWSOCK32 1
5765 LIBS="-lwsock32 $LIBS"
5771 if test "$with_readline" = yes; then
5773 echo "$as_me:$LINENO: checking for readline" >&5
5774 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5776 if test "${pgac_cv_check_readline+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 pgac_cv_check_readline=no
5780 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5781 for pgac_rllib in -lreadline -ledit ; do
5782 pgac_save_LIBS=$LIBS
5783 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5784 cat >conftest.$ac_ext <<_ACEOF
5785 #line $LINENO "configure"
5786 #include "confdefs.h"
5788 /* Override any gcc2 internal prototype to avoid an error. */
5792 /* We use char because int might match the return type of a gcc2
5793 builtin and then its argument prototype would still apply. */
5795 #ifdef F77_DUMMY_MAIN
5799 int F77_DUMMY_MAIN() { return 1; }
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -s conftest$ac_exeext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5822 # NetBSD and OpenBSD have a broken linker that does not
5823 # recognize dependent libraries
5824 case $host_os in netbsd* | openbsd* )
5827 *) pgac_lib=" -lcurses" ;;
5831 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5835 echo "$as_me: failed program was:" >&5
5836 cat conftest.$ac_ext >&5
5838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5839 LIBS=$pgac_save_LIBS
5842 LIBS=$pgac_save_LIBS
5846 if test "$pgac_cv_check_readline" != no ; then
5848 cat >>confdefs.h <<\_ACEOF
5849 #define HAVE_LIBREADLINE 1
5852 LIBS="$pgac_cv_check_readline $LIBS"
5853 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5854 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5856 echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6
5859 if test x"$pgac_cv_check_readline" = x"no"; then
5860 { { echo "$as_me:$LINENO: error: readline library not found
5861 If you have readline already installed, see config.log for details on the
5862 failure. It is possible the compiler isn't looking in the proper directory.
5863 Use --without-readline to disable readline support." >&5
5864 echo "$as_me: error: readline library not found
5865 If you have readline already installed, see config.log for details on the
5866 failure. It is possible the compiler isn't looking in the proper directory.
5867 Use --without-readline to disable readline support." >&2;}
5868 { (exit 1); exit 1; }; }
5872 if test "$with_zlib" = yes; then
5874 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5875 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5876 if test "${ac_cv_lib_z_inflate+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_check_lib_save_LIBS=$LIBS
5881 cat >conftest.$ac_ext <<_ACEOF
5882 #line $LINENO "configure"
5883 #include "confdefs.h"
5885 /* Override any gcc2 internal prototype to avoid an error. */
5889 /* We use char because int might match the return type of a gcc2
5890 builtin and then its argument prototype would still apply. */
5892 #ifdef F77_DUMMY_MAIN
5896 int F77_DUMMY_MAIN() { return 1; }
5906 rm -f conftest.$ac_objext conftest$ac_exeext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5908 (eval $ac_link) 2>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -s conftest$ac_exeext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_cv_lib_z_inflate=yes
5920 echo "$as_me: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5922 ac_cv_lib_z_inflate=no
5924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5925 LIBS=$ac_check_lib_save_LIBS
5927 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5928 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5929 if test $ac_cv_lib_z_inflate = yes; then
5930 cat >>confdefs.h <<_ACEOF
5937 { { echo "$as_me:$LINENO: error: zlib library not found
5938 If you have zlib already installed, see config.log for details on the
5939 failure. It is possible the compiler isn't looking in the proper directory.
5940 Use --without-zlib to disable zlib support." >&5
5941 echo "$as_me: error: zlib library not found
5942 If you have zlib already installed, see config.log for details on the
5943 failure. It is possible the compiler isn't looking in the proper directory.
5944 Use --without-zlib to disable zlib support." >&2;}
5945 { (exit 1); exit 1; }; }
5950 if test "$enable_spinlocks" = yes; then
5952 cat >>confdefs.h <<\_ACEOF
5953 #define HAVE_SPINLOCKS 1
5957 { echo "$as_me:$LINENO: WARNING:
5958 *** Not using spinlocks will cause poor performance." >&5
5959 echo "$as_me: WARNING:
5960 *** Not using spinlocks will cause poor performance." >&2;}
5963 if test "$with_krb4" = yes ; then
5965 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
5966 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
5967 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 ac_check_lib_save_LIBS=$LIBS
5972 cat >conftest.$ac_ext <<_ACEOF
5973 #line $LINENO "configure"
5974 #include "confdefs.h"
5976 /* Override any gcc2 internal prototype to avoid an error. */
5980 /* We use char because int might match the return type of a gcc2
5981 builtin and then its argument prototype would still apply. */
5982 char des_encrypt ();
5983 #ifdef F77_DUMMY_MAIN
5987 int F77_DUMMY_MAIN() { return 1; }
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999 (eval $ac_link) 2>&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -s conftest$ac_exeext'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; }; then
6009 ac_cv_lib_des_des_encrypt=yes
6011 echo "$as_me: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6013 ac_cv_lib_des_des_encrypt=no
6015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6016 LIBS=$ac_check_lib_save_LIBS
6018 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6019 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6020 if test $ac_cv_lib_des_des_encrypt = yes; then
6021 cat >>confdefs.h <<_ACEOF
6022 #define HAVE_LIBDES 1
6028 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6029 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6030 { (exit 1); exit 1; }; }
6034 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6035 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6036 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 ac_check_lib_save_LIBS=$LIBS
6041 cat >conftest.$ac_ext <<_ACEOF
6042 #line $LINENO "configure"
6043 #include "confdefs.h"
6045 /* Override any gcc2 internal prototype to avoid an error. */
6049 /* We use char because int might match the return type of a gcc2
6050 builtin and then its argument prototype would still apply. */
6051 char krb_sendauth ();
6052 #ifdef F77_DUMMY_MAIN
6056 int F77_DUMMY_MAIN() { return 1; }
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068 (eval $ac_link) 2>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -s conftest$ac_exeext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_cv_lib_krb_krb_sendauth=yes
6080 echo "$as_me: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6082 ac_cv_lib_krb_krb_sendauth=no
6084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6085 LIBS=$ac_check_lib_save_LIBS
6087 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6088 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6089 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6090 cat >>confdefs.h <<_ACEOF
6091 #define HAVE_LIBKRB 1
6097 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6098 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6099 { (exit 1); exit 1; }; }
6103 for ac_func in gethostname
6105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6106 echo "$as_me:$LINENO: checking for $ac_func" >&5
6107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6108 if eval "test \"\${$as_ac_var+set}\" = set"; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 cat >conftest.$ac_ext <<_ACEOF
6112 #line $LINENO "configure"
6113 #include "confdefs.h"
6114 /* System header to define __stub macros and hopefully few prototypes,
6115 which can conflict with char $ac_func (); below. */
6117 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6126 #ifdef F77_DUMMY_MAIN
6130 int F77_DUMMY_MAIN() { return 1; }
6135 /* The GNU C library defines this for functions which it implements
6136 to always fail with ENOSYS. Some functions are actually named
6137 something starting with __ and the normal name is an alias. */
6138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6148 rm -f conftest.$ac_objext conftest$ac_exeext
6149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 (eval $ac_link) 2>&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -s conftest$ac_exeext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 eval "$as_ac_var=yes"
6162 echo "$as_me: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6164 eval "$as_ac_var=no"
6166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6170 if test `eval echo '${'$as_ac_var'}'` = yes; then
6171 cat >>confdefs.h <<_ACEOF
6172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6176 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6183 if test "$with_krb5" = yes ; then
6184 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6185 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6186 if test "${ac_cv_search_com_err+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 ac_func_search_save_LIBS=$LIBS
6190 ac_cv_search_com_err=no
6191 cat >conftest.$ac_ext <<_ACEOF
6192 #line $LINENO "configure"
6193 #include "confdefs.h"
6195 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6202 #ifdef F77_DUMMY_MAIN
6206 int F77_DUMMY_MAIN() { return 1; }
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_search_com_err="none required"
6230 echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6234 if test "$ac_cv_search_com_err" = no; then
6235 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6237 cat >conftest.$ac_ext <<_ACEOF
6238 #line $LINENO "configure"
6239 #include "confdefs.h"
6241 /* Override any gcc2 internal prototype to avoid an error. */
6245 /* We use char because int might match the return type of a gcc2
6246 builtin and then its argument prototype would still apply. */
6248 #ifdef F77_DUMMY_MAIN
6252 int F77_DUMMY_MAIN() { return 1; }
6262 rm -f conftest.$ac_objext conftest$ac_exeext
6263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6264 (eval $ac_link) 2>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -s conftest$ac_exeext'
6269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_search_com_err="-l$ac_lib"
6277 echo "$as_me: failed program was:" >&5
6278 cat conftest.$ac_ext >&5
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6283 LIBS=$ac_func_search_save_LIBS
6285 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6286 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6287 if test "$ac_cv_search_com_err" != no; then
6288 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6291 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6292 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6293 { (exit 1); exit 1; }; }
6296 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6297 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6298 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 ac_func_search_save_LIBS=$LIBS
6302 ac_cv_search_krb5_encrypt=no
6303 cat >conftest.$ac_ext <<_ACEOF
6304 #line $LINENO "configure"
6305 #include "confdefs.h"
6307 /* Override any gcc2 internal prototype to avoid an error. */
6311 /* We use char because int might match the return type of a gcc2
6312 builtin and then its argument prototype would still apply. */
6313 char krb5_encrypt ();
6314 #ifdef F77_DUMMY_MAIN
6318 int F77_DUMMY_MAIN() { return 1; }
6328 rm -f conftest.$ac_objext conftest$ac_exeext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330 (eval $ac_link) 2>&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -s conftest$ac_exeext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_cv_search_krb5_encrypt="none required"
6342 echo "$as_me: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6346 if test "$ac_cv_search_krb5_encrypt" = no; then
6347 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6349 cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 #include "confdefs.h"
6353 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6359 char krb5_encrypt ();
6360 #ifdef F77_DUMMY_MAIN
6364 int F77_DUMMY_MAIN() { return 1; }
6374 rm -f conftest.$ac_objext conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376 (eval $ac_link) 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -s conftest$ac_exeext'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_search_krb5_encrypt="-l$ac_lib"
6389 echo "$as_me: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6395 LIBS=$ac_func_search_save_LIBS
6397 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6398 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6399 if test "$ac_cv_search_krb5_encrypt" != no; then
6400 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6403 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6404 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6405 { (exit 1); exit 1; }; }
6408 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6409 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6410 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 ac_func_search_save_LIBS=$LIBS
6414 ac_cv_search_krb5_sendauth=no
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 #include "confdefs.h"
6419 /* Override any gcc2 internal prototype to avoid an error. */
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6425 char krb5_sendauth ();
6426 #ifdef F77_DUMMY_MAIN
6430 int F77_DUMMY_MAIN() { return 1; }
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try='test -s conftest$ac_exeext'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 ac_cv_search_krb5_sendauth="none required"
6454 echo "$as_me: failed program was:" >&5
6455 cat conftest.$ac_ext >&5
6457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6458 if test "$ac_cv_search_krb5_sendauth" = no; then
6459 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6461 cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6463 #include "confdefs.h"
6465 /* Override any gcc2 internal prototype to avoid an error. */
6469 /* We use char because int might match the return type of a gcc2
6470 builtin and then its argument prototype would still apply. */
6471 char krb5_sendauth ();
6472 #ifdef F77_DUMMY_MAIN
6476 int F77_DUMMY_MAIN() { return 1; }
6486 rm -f conftest.$ac_objext conftest$ac_exeext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -s conftest$ac_exeext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6498 ac_cv_search_krb5_sendauth="-l$ac_lib"
6501 echo "$as_me: failed program was:" >&5
6502 cat conftest.$ac_ext >&5
6504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6507 LIBS=$ac_func_search_save_LIBS
6509 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6510 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6511 if test "$ac_cv_search_krb5_sendauth" != no; then
6512 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6515 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6516 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6517 { (exit 1); exit 1; }; }
6522 if test "$with_openssl" = yes ; then
6524 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6525 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6526 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6529 ac_check_lib_save_LIBS=$LIBS
6530 LIBS="-lcrypto $LIBS"
6531 cat >conftest.$ac_ext <<_ACEOF
6532 #line $LINENO "configure"
6533 #include "confdefs.h"
6535 /* Override any gcc2 internal prototype to avoid an error. */
6539 /* We use char because int might match the return type of a gcc2
6540 builtin and then its argument prototype would still apply. */
6541 char CRYPTO_new_ex_data ();
6542 #ifdef F77_DUMMY_MAIN
6546 int F77_DUMMY_MAIN() { return 1; }
6551 CRYPTO_new_ex_data ();
6556 rm -f conftest.$ac_objext conftest$ac_exeext
6557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558 (eval $ac_link) 2>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try='test -s conftest$ac_exeext'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6570 echo "$as_me: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6572 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6575 LIBS=$ac_check_lib_save_LIBS
6577 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6578 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6579 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6580 cat >>confdefs.h <<_ACEOF
6581 #define HAVE_LIBCRYPTO 1
6584 LIBS="-lcrypto $LIBS"
6587 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6588 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6589 { (exit 1); exit 1; }; }
6593 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6594 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6595 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 ac_check_lib_save_LIBS=$LIBS
6600 cat >conftest.$ac_ext <<_ACEOF
6601 #line $LINENO "configure"
6602 #include "confdefs.h"
6604 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6610 char SSL_library_init ();
6611 #ifdef F77_DUMMY_MAIN
6615 int F77_DUMMY_MAIN() { return 1; }
6620 SSL_library_init ();
6625 rm -f conftest.$ac_objext conftest$ac_exeext
6626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6627 (eval $ac_link) 2>&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } &&
6631 { ac_try='test -s conftest$ac_exeext'
6632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); }; }; then
6637 ac_cv_lib_ssl_SSL_library_init=yes
6639 echo "$as_me: failed program was:" >&5
6640 cat conftest.$ac_ext >&5
6641 ac_cv_lib_ssl_SSL_library_init=no
6643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6644 LIBS=$ac_check_lib_save_LIBS
6646 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6647 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6648 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6649 cat >>confdefs.h <<_ACEOF
6650 #define HAVE_LIBSSL 1
6656 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6657 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6658 { (exit 1); exit 1; }; }
6663 if test "$with_pam" = yes ; then
6665 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6666 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6667 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 ac_check_lib_save_LIBS=$LIBS
6672 cat >conftest.$ac_ext <<_ACEOF
6673 #line $LINENO "configure"
6674 #include "confdefs.h"
6676 /* Override any gcc2 internal prototype to avoid an error. */
6680 /* We use char because int might match the return type of a gcc2
6681 builtin and then its argument prototype would still apply. */
6683 #ifdef F77_DUMMY_MAIN
6687 int F77_DUMMY_MAIN() { return 1; }
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6699 (eval $ac_link) 2>&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -s conftest$ac_exeext'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6709 ac_cv_lib_pam_pam_start=yes
6711 echo "$as_me: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6713 ac_cv_lib_pam_pam_start=no
6715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6716 LIBS=$ac_check_lib_save_LIBS
6718 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6719 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6720 if test $ac_cv_lib_pam_pam_start = yes; then
6721 cat >>confdefs.h <<_ACEOF
6722 #define HAVE_LIBPAM 1
6728 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6729 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6730 { (exit 1); exit 1; }; }
6740 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6741 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6742 if test "${ac_cv_header_stdc+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 cat >conftest.$ac_ext <<_ACEOF
6746 #line $LINENO "configure"
6747 #include "confdefs.h"
6754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6757 egrep -v '^ *\+' conftest.er1 >conftest.err
6759 cat conftest.err >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } >/dev/null; then
6762 if test -s conftest.err; then
6763 ac_cpp_err=$ac_c_preproc_warn_flag
6770 if test -z "$ac_cpp_err"; then
6771 ac_cv_header_stdc=yes
6773 echo "$as_me: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6775 ac_cv_header_stdc=no
6777 rm -f conftest.err conftest.$ac_ext
6779 if test $ac_cv_header_stdc = yes; then
6780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6781 cat >conftest.$ac_ext <<_ACEOF
6782 #line $LINENO "configure"
6783 #include "confdefs.h"
6787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6788 egrep "memchr" >/dev/null 2>&1; then
6791 ac_cv_header_stdc=no
6797 if test $ac_cv_header_stdc = yes; then
6798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6799 cat >conftest.$ac_ext <<_ACEOF
6800 #line $LINENO "configure"
6801 #include "confdefs.h"
6805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6806 egrep "free" >/dev/null 2>&1; then
6809 ac_cv_header_stdc=no
6815 if test $ac_cv_header_stdc = yes; then
6816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6817 if test "$cross_compiling" = yes; then
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line $LINENO "configure"
6822 #include "confdefs.h"
6824 #if ((' ' & 0x0FF) == 0x020)
6825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6828 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6829 || ('j' <= (c) && (c) <= 'r') \
6830 || ('s' <= (c) && (c) <= 'z'))
6831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6839 for (i = 0; i < 256; i++)
6840 if (XOR (islower (i), ISLOWER (i))
6841 || toupper (i) != TOUPPER (i))
6846 rm -f conftest$ac_exeext
6847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6848 (eval $ac_link) 2>&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; }; then
6859 echo "$as_me: program exited with status $ac_status" >&5
6860 echo "$as_me: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6863 ac_cv_header_stdc=no
6865 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6869 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6870 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6871 if test $ac_cv_header_stdc = yes; then
6873 cat >>confdefs.h <<\_ACEOF
6874 #define STDC_HEADERS 1
6879 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6889 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6890 inttypes.h stdint.h unistd.h
6892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6893 echo "$as_me:$LINENO: checking for $ac_header" >&5
6894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 cat >conftest.$ac_ext <<_ACEOF
6899 #line $LINENO "configure"
6900 #include "confdefs.h"
6901 $ac_includes_default
6903 #include <$ac_header>
6905 rm -f conftest.$ac_objext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6907 (eval $ac_compile) 2>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 eval "$as_ac_Header=yes"
6919 echo "$as_me: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6921 eval "$as_ac_Header=no"
6923 rm -f conftest.$ac_objext conftest.$ac_ext
6925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6928 cat >>confdefs.h <<_ACEOF
6929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6958 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
6960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6962 echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6970 # Is the header compilable?
6971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6973 cat >conftest.$ac_ext <<_ACEOF
6974 #line $LINENO "configure"
6975 #include "confdefs.h"
6976 $ac_includes_default
6977 #include <$ac_header>
6979 rm -f conftest.$ac_objext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981 (eval $ac_compile) 2>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 ac_header_compiler=yes
6993 echo "$as_me: failed program was:" >&5
6994 cat conftest.$ac_ext >&5
6995 ac_header_compiler=no
6997 rm -f conftest.$ac_objext conftest.$ac_ext
6998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6999 echo "${ECHO_T}$ac_header_compiler" >&6
7001 # Is the header present?
7002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7004 cat >conftest.$ac_ext <<_ACEOF
7005 #line $LINENO "configure"
7006 #include "confdefs.h"
7007 #include <$ac_header>
7009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7012 egrep -v '^ *\+' conftest.er1 >conftest.err
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } >/dev/null; then
7017 if test -s conftest.err; then
7018 ac_cpp_err=$ac_c_preproc_warn_flag
7025 if test -z "$ac_cpp_err"; then
7026 ac_header_preproc=yes
7028 echo "$as_me: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7030 ac_header_preproc=no
7032 rm -f conftest.err conftest.$ac_ext
7033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7034 echo "${ECHO_T}$ac_header_preproc" >&6
7036 # So? What about this header?
7037 case $ac_header_compiler:$ac_header_preproc in
7039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7051 echo "$as_me:$LINENO: checking for $ac_header" >&5
7052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 eval "$as_ac_Header=$ac_header_preproc"
7058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7063 cat >>confdefs.h <<_ACEOF
7064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7072 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7073 # netinet/in.h is included first.
7075 for ac_header in netinet/in.h
7077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7079 echo "$as_me:$LINENO: checking for $ac_header" >&5
7080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7087 # Is the header compilable?
7088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7090 cat >conftest.$ac_ext <<_ACEOF
7091 #line $LINENO "configure"
7092 #include "confdefs.h"
7093 $ac_includes_default
7094 #include <$ac_header>
7096 rm -f conftest.$ac_objext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098 (eval $ac_compile) 2>&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
7102 { ac_try='test -s conftest.$ac_objext'
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; }; then
7108 ac_header_compiler=yes
7110 echo "$as_me: failed program was:" >&5
7111 cat conftest.$ac_ext >&5
7112 ac_header_compiler=no
7114 rm -f conftest.$ac_objext conftest.$ac_ext
7115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7116 echo "${ECHO_T}$ac_header_compiler" >&6
7118 # Is the header present?
7119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7121 cat >conftest.$ac_ext <<_ACEOF
7122 #line $LINENO "configure"
7123 #include "confdefs.h"
7124 #include <$ac_header>
7126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7129 egrep -v '^ *\+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } >/dev/null; then
7134 if test -s conftest.err; then
7135 ac_cpp_err=$ac_c_preproc_warn_flag
7142 if test -z "$ac_cpp_err"; then
7143 ac_header_preproc=yes
7145 echo "$as_me: failed program was:" >&5
7146 cat conftest.$ac_ext >&5
7147 ac_header_preproc=no
7149 rm -f conftest.err conftest.$ac_ext
7150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7151 echo "${ECHO_T}$ac_header_preproc" >&6
7153 # So? What about this header?
7154 case $ac_header_compiler:$ac_header_preproc in
7156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7168 echo "$as_me:$LINENO: checking for $ac_header" >&5
7169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
7173 eval "$as_ac_Header=$ac_header_preproc"
7175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7180 cat >>confdefs.h <<_ACEOF
7181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7189 for ac_header in netinet/tcp.h
7191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7192 echo "$as_me:$LINENO: checking for $ac_header" >&5
7193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 cat >conftest.$ac_ext <<_ACEOF
7198 #line $LINENO "configure"
7199 #include "confdefs.h"
7200 $ac_includes_default
7201 #ifdef HAVE_NETINET_IN_H
7202 #include <netinet/in.h>
7206 #include <$ac_header>
7208 rm -f conftest.$ac_objext
7209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210 (eval $ac_compile) 2>&5
7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213 (exit $ac_status); } &&
7214 { ac_try='test -s conftest.$ac_objext'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; }; then
7220 eval "$as_ac_Header=yes"
7222 echo "$as_me: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7224 eval "$as_ac_Header=no"
7226 rm -f conftest.$ac_objext conftest.$ac_ext
7228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7231 cat >>confdefs.h <<_ACEOF
7232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7240 if test "$with_readline" = yes; then
7242 for ac_header in readline/readline.h
7244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246 echo "$as_me:$LINENO: checking for $ac_header" >&5
7247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7254 # Is the header compilable?
7255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7257 cat >conftest.$ac_ext <<_ACEOF
7258 #line $LINENO "configure"
7259 #include "confdefs.h"
7260 $ac_includes_default
7261 #include <$ac_header>
7263 rm -f conftest.$ac_objext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -s conftest.$ac_objext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 ac_header_compiler=yes
7277 echo "$as_me: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7279 ac_header_compiler=no
7281 rm -f conftest.$ac_objext conftest.$ac_ext
7282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7283 echo "${ECHO_T}$ac_header_compiler" >&6
7285 # Is the header present?
7286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7288 cat >conftest.$ac_ext <<_ACEOF
7289 #line $LINENO "configure"
7290 #include "confdefs.h"
7291 #include <$ac_header>
7293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7296 egrep -v '^ *\+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } >/dev/null; then
7301 if test -s conftest.err; then
7302 ac_cpp_err=$ac_c_preproc_warn_flag
7309 if test -z "$ac_cpp_err"; then
7310 ac_header_preproc=yes
7312 echo "$as_me: failed program was:" >&5
7313 cat conftest.$ac_ext >&5
7314 ac_header_preproc=no
7316 rm -f conftest.err conftest.$ac_ext
7317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7318 echo "${ECHO_T}$ac_header_preproc" >&6
7320 # So? What about this header?
7321 case $ac_header_compiler:$ac_header_preproc in
7323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7335 echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 eval "$as_ac_Header=$ac_header_preproc"
7342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7347 cat >>confdefs.h <<_ACEOF
7348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7353 for ac_header in editline/readline.h
7355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357 echo "$as_me:$LINENO: checking for $ac_header" >&5
7358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7365 # Is the header compilable?
7366 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7368 cat >conftest.$ac_ext <<_ACEOF
7369 #line $LINENO "configure"
7370 #include "confdefs.h"
7371 $ac_includes_default
7372 #include <$ac_header>
7374 rm -f conftest.$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } &&
7380 { ac_try='test -s conftest.$ac_objext'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7386 ac_header_compiler=yes
7388 echo "$as_me: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 ac_header_compiler=no
7392 rm -f conftest.$ac_objext conftest.$ac_ext
7393 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7394 echo "${ECHO_T}$ac_header_compiler" >&6
7396 # Is the header present?
7397 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7399 cat >conftest.$ac_ext <<_ACEOF
7400 #line $LINENO "configure"
7401 #include "confdefs.h"
7402 #include <$ac_header>
7404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7407 egrep -v '^ *\+' conftest.er1 >conftest.err
7409 cat conftest.err >&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } >/dev/null; then
7412 if test -s conftest.err; then
7413 ac_cpp_err=$ac_c_preproc_warn_flag
7420 if test -z "$ac_cpp_err"; then
7421 ac_header_preproc=yes
7423 echo "$as_me: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7425 ac_header_preproc=no
7427 rm -f conftest.err conftest.$ac_ext
7428 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7429 echo "${ECHO_T}$ac_header_preproc" >&6
7431 # So? What about this header?
7432 case $ac_header_compiler:$ac_header_preproc in
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7446 echo "$as_me:$LINENO: checking for $ac_header" >&5
7447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 eval "$as_ac_Header=$ac_header_preproc"
7453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7458 cat >>confdefs.h <<_ACEOF
7459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464 for ac_header in readline.h
7466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7468 echo "$as_me:$LINENO: checking for $ac_header" >&5
7469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7476 # Is the header compilable?
7477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7479 cat >conftest.$ac_ext <<_ACEOF
7480 #line $LINENO "configure"
7481 #include "confdefs.h"
7482 $ac_includes_default
7483 #include <$ac_header>
7485 rm -f conftest.$ac_objext
7486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7487 (eval $ac_compile) 2>&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -s conftest.$ac_objext'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; }; then
7497 ac_header_compiler=yes
7499 echo "$as_me: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7501 ac_header_compiler=no
7503 rm -f conftest.$ac_objext conftest.$ac_ext
7504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7505 echo "${ECHO_T}$ac_header_compiler" >&6
7507 # Is the header present?
7508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7510 cat >conftest.$ac_ext <<_ACEOF
7511 #line $LINENO "configure"
7512 #include "confdefs.h"
7513 #include <$ac_header>
7515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7518 egrep -v '^ *\+' conftest.er1 >conftest.err
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } >/dev/null; then
7523 if test -s conftest.err; then
7524 ac_cpp_err=$ac_c_preproc_warn_flag
7531 if test -z "$ac_cpp_err"; then
7532 ac_header_preproc=yes
7534 echo "$as_me: failed program was:" >&5
7535 cat conftest.$ac_ext >&5
7536 ac_header_preproc=no
7538 rm -f conftest.err conftest.$ac_ext
7539 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7540 echo "${ECHO_T}$ac_header_preproc" >&6
7542 # So? What about this header?
7543 case $ac_header_compiler:$ac_header_preproc in
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7557 echo "$as_me:$LINENO: checking for $ac_header" >&5
7558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 eval "$as_ac_Header=$ac_header_preproc"
7564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7569 cat >>confdefs.h <<_ACEOF
7570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7574 { { echo "$as_me:$LINENO: error: readline header not found
7575 If you have readline already installed, see config.log for details on the
7576 failure. It is possible the compiler isn't looking in the proper directory.
7577 Use --without-readline to disable readline support." >&5
7578 echo "$as_me: error: readline header not found
7579 If you have readline already installed, see config.log for details on the
7580 failure. It is possible the compiler isn't looking in the proper directory.
7581 Use --without-readline to disable readline support." >&2;}
7582 { (exit 1); exit 1; }; }
7596 for ac_header in readline/history.h
7598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600 echo "$as_me:$LINENO: checking for $ac_header" >&5
7601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7608 # Is the header compilable?
7609 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7612 #line $LINENO "configure"
7613 #include "confdefs.h"
7614 $ac_includes_default
7615 #include <$ac_header>
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619 (eval $ac_compile) 2>&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } &&
7623 { ac_try='test -s conftest.$ac_objext'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; }; then
7629 ac_header_compiler=yes
7631 echo "$as_me: failed program was:" >&5
7632 cat conftest.$ac_ext >&5
7633 ac_header_compiler=no
7635 rm -f conftest.$ac_objext conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7637 echo "${ECHO_T}$ac_header_compiler" >&6
7639 # Is the header present?
7640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7642 cat >conftest.$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7644 #include "confdefs.h"
7645 #include <$ac_header>
7647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7650 egrep -v '^ *\+' conftest.er1 >conftest.err
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } >/dev/null; then
7655 if test -s conftest.err; then
7656 ac_cpp_err=$ac_c_preproc_warn_flag
7663 if test -z "$ac_cpp_err"; then
7664 ac_header_preproc=yes
7666 echo "$as_me: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7668 ac_header_preproc=no
7670 rm -f conftest.err conftest.$ac_ext
7671 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7672 echo "${ECHO_T}$ac_header_preproc" >&6
7674 # So? What about this header?
7675 case $ac_header_compiler:$ac_header_preproc in
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7689 echo "$as_me:$LINENO: checking for $ac_header" >&5
7690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 eval "$as_ac_Header=$ac_header_preproc"
7696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7701 cat >>confdefs.h <<_ACEOF
7702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7707 for ac_header in editline/history.h
7709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7711 echo "$as_me:$LINENO: checking for $ac_header" >&5
7712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7719 # Is the header compilable?
7720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7722 cat >conftest.$ac_ext <<_ACEOF
7723 #line $LINENO "configure"
7724 #include "confdefs.h"
7725 $ac_includes_default
7726 #include <$ac_header>
7728 rm -f conftest.$ac_objext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7730 (eval $ac_compile) 2>&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } &&
7734 { ac_try='test -s conftest.$ac_objext'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 ac_header_compiler=yes
7742 echo "$as_me: failed program was:" >&5
7743 cat conftest.$ac_ext >&5
7744 ac_header_compiler=no
7746 rm -f conftest.$ac_objext conftest.$ac_ext
7747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7748 echo "${ECHO_T}$ac_header_compiler" >&6
7750 # Is the header present?
7751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7754 #line $LINENO "configure"
7755 #include "confdefs.h"
7756 #include <$ac_header>
7758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7761 egrep -v '^ *\+' conftest.er1 >conftest.err
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } >/dev/null; then
7766 if test -s conftest.err; then
7767 ac_cpp_err=$ac_c_preproc_warn_flag
7774 if test -z "$ac_cpp_err"; then
7775 ac_header_preproc=yes
7777 echo "$as_me: failed program was:" >&5
7778 cat conftest.$ac_ext >&5
7779 ac_header_preproc=no
7781 rm -f conftest.err conftest.$ac_ext
7782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7783 echo "${ECHO_T}$ac_header_preproc" >&6
7785 # So? What about this header?
7786 case $ac_header_compiler:$ac_header_preproc in
7788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7800 echo "$as_me:$LINENO: checking for $ac_header" >&5
7801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 eval "$as_ac_Header=$ac_header_preproc"
7807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7812 cat >>confdefs.h <<_ACEOF
7813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7818 for ac_header in history.h
7820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7822 echo "$as_me:$LINENO: checking for $ac_header" >&5
7823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7830 # Is the header compilable?
7831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7834 #line $LINENO "configure"
7835 #include "confdefs.h"
7836 $ac_includes_default
7837 #include <$ac_header>
7839 rm -f conftest.$ac_objext
7840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7841 (eval $ac_compile) 2>&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
7845 { ac_try='test -s conftest.$ac_objext'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 ac_header_compiler=yes
7853 echo "$as_me: failed program was:" >&5
7854 cat conftest.$ac_ext >&5
7855 ac_header_compiler=no
7857 rm -f conftest.$ac_objext conftest.$ac_ext
7858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7859 echo "${ECHO_T}$ac_header_compiler" >&6
7861 # Is the header present?
7862 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7863 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7864 cat >conftest.$ac_ext <<_ACEOF
7865 #line $LINENO "configure"
7866 #include "confdefs.h"
7867 #include <$ac_header>
7869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7870 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7872 egrep -v '^ *\+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } >/dev/null; then
7877 if test -s conftest.err; then
7878 ac_cpp_err=$ac_c_preproc_warn_flag
7885 if test -z "$ac_cpp_err"; then
7886 ac_header_preproc=yes
7888 echo "$as_me: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 ac_header_preproc=no
7892 rm -f conftest.err conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7894 echo "${ECHO_T}$ac_header_preproc" >&6
7896 # So? What about this header?
7897 case $ac_header_compiler:$ac_header_preproc in
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7911 echo "$as_me:$LINENO: checking for $ac_header" >&5
7912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 eval "$as_ac_Header=$ac_header_preproc"
7918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7923 cat >>confdefs.h <<_ACEOF
7924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7928 { { echo "$as_me:$LINENO: error: history header not found
7929 If you have readline already installed, see config.log for details on the
7930 failure. It is possible the compiler isn't looking in the proper directory.
7931 Use --without-readline to disable readline support." >&5
7932 echo "$as_me: error: history header not found
7933 If you have readline already installed, see config.log for details on the
7934 failure. It is possible the compiler isn't looking in the proper directory.
7935 Use --without-readline to disable readline support." >&2;}
7936 { (exit 1); exit 1; }; }
7951 if test "$with_zlib" = yes; then
7952 if test "${ac_cv_header_zlib_h+set}" = set; then
7953 echo "$as_me:$LINENO: checking for zlib.h" >&5
7954 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7955 if test "${ac_cv_header_zlib_h+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7959 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7961 # Is the header compilable?
7962 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7963 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7964 cat >conftest.$ac_ext <<_ACEOF
7965 #line $LINENO "configure"
7966 #include "confdefs.h"
7967 $ac_includes_default
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972 (eval $ac_compile) 2>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -s conftest.$ac_objext'
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; }; then
7982 ac_header_compiler=yes
7984 echo "$as_me: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7986 ac_header_compiler=no
7988 rm -f conftest.$ac_objext conftest.$ac_ext
7989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7990 echo "${ECHO_T}$ac_header_compiler" >&6
7992 # Is the header present?
7993 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7994 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7997 #include "confdefs.h"
8000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8003 egrep -v '^ *\+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } >/dev/null; then
8008 if test -s conftest.err; then
8009 ac_cpp_err=$ac_c_preproc_warn_flag
8016 if test -z "$ac_cpp_err"; then
8017 ac_header_preproc=yes
8019 echo "$as_me: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8021 ac_header_preproc=no
8023 rm -f conftest.err conftest.$ac_ext
8024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8025 echo "${ECHO_T}$ac_header_preproc" >&6
8027 # So? What about this header?
8028 case $ac_header_compiler:$ac_header_preproc in
8030 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8031 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8032 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8033 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8035 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8036 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8038 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8039 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8040 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8042 echo "$as_me:$LINENO: checking for zlib.h" >&5
8043 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8044 if test "${ac_cv_header_zlib_h+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 ac_cv_header_zlib_h=$ac_header_preproc
8049 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8050 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8053 if test $ac_cv_header_zlib_h = yes; then
8056 { { echo "$as_me:$LINENO: error: zlib header not found
8057 If you have zlib already installed, see config.log for details on the
8058 failure. It is possible the compiler isn't looking in the proper directory.
8059 Use --without-zlib to disable zlib support." >&5
8060 echo "$as_me: error: zlib header not found
8061 If you have zlib already installed, see config.log for details on the
8062 failure. It is possible the compiler isn't looking in the proper directory.
8063 Use --without-zlib to disable zlib support." >&2;}
8064 { (exit 1); exit 1; }; }
8070 if test "$with_krb4" = yes ; then
8071 if test "${ac_cv_header_krb_h+set}" = set; then
8072 echo "$as_me:$LINENO: checking for krb.h" >&5
8073 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8074 if test "${ac_cv_header_krb_h+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8078 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8080 # Is the header compilable?
8081 echo "$as_me:$LINENO: checking krb.h usability" >&5
8082 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8083 cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8085 #include "confdefs.h"
8086 $ac_includes_default
8089 rm -f conftest.$ac_objext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8091 (eval $ac_compile) 2>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try='test -s conftest.$ac_objext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 ac_header_compiler=yes
8103 echo "$as_me: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8105 ac_header_compiler=no
8107 rm -f conftest.$ac_objext conftest.$ac_ext
8108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8109 echo "${ECHO_T}$ac_header_compiler" >&6
8111 # Is the header present?
8112 echo "$as_me:$LINENO: checking krb.h presence" >&5
8113 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8114 cat >conftest.$ac_ext <<_ACEOF
8115 #line $LINENO "configure"
8116 #include "confdefs.h"
8119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8122 egrep -v '^ *\+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } >/dev/null; then
8127 if test -s conftest.err; then
8128 ac_cpp_err=$ac_c_preproc_warn_flag
8135 if test -z "$ac_cpp_err"; then
8136 ac_header_preproc=yes
8138 echo "$as_me: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 ac_header_preproc=no
8142 rm -f conftest.err conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8144 echo "${ECHO_T}$ac_header_preproc" >&6
8146 # So? What about this header?
8147 case $ac_header_compiler:$ac_header_preproc in
8149 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8150 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8151 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8152 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8154 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8155 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8156 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8157 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8158 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8159 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8161 echo "$as_me:$LINENO: checking for krb.h" >&5
8162 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8163 if test "${ac_cv_header_krb_h+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 ac_cv_header_krb_h=$ac_header_preproc
8168 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8169 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8172 if test $ac_cv_header_krb_h = yes; then
8175 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8176 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8177 { (exit 1); exit 1; }; }
8183 if test "$with_krb5" = yes ; then
8184 if test "${ac_cv_header_krb5_h+set}" = set; then
8185 echo "$as_me:$LINENO: checking for krb5.h" >&5
8186 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8187 if test "${ac_cv_header_krb5_h+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8191 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8193 # Is the header compilable?
8194 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8195 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8196 cat >conftest.$ac_ext <<_ACEOF
8197 #line $LINENO "configure"
8198 #include "confdefs.h"
8199 $ac_includes_default
8202 rm -f conftest.$ac_objext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } &&
8208 { ac_try='test -s conftest.$ac_objext'
8209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); }; }; then
8214 ac_header_compiler=yes
8216 echo "$as_me: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8218 ac_header_compiler=no
8220 rm -f conftest.$ac_objext conftest.$ac_ext
8221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8222 echo "${ECHO_T}$ac_header_compiler" >&6
8224 # Is the header present?
8225 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8226 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line $LINENO "configure"
8229 #include "confdefs.h"
8232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8235 egrep -v '^ *\+' conftest.er1 >conftest.err
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } >/dev/null; then
8240 if test -s conftest.err; then
8241 ac_cpp_err=$ac_c_preproc_warn_flag
8248 if test -z "$ac_cpp_err"; then
8249 ac_header_preproc=yes
8251 echo "$as_me: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8253 ac_header_preproc=no
8255 rm -f conftest.err conftest.$ac_ext
8256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8257 echo "${ECHO_T}$ac_header_preproc" >&6
8259 # So? What about this header?
8260 case $ac_header_compiler:$ac_header_preproc in
8262 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8263 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8265 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8267 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8268 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8269 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8270 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8271 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8272 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8274 echo "$as_me:$LINENO: checking for krb5.h" >&5
8275 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8276 if test "${ac_cv_header_krb5_h+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
8279 ac_cv_header_krb5_h=$ac_header_preproc
8281 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8282 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8285 if test $ac_cv_header_krb5_h = yes; then
8288 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8289 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8290 { (exit 1); exit 1; }; }
8294 if test "${ac_cv_header_com_err_h+set}" = set; then
8295 echo "$as_me:$LINENO: checking for com_err.h" >&5
8296 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8297 if test "${ac_cv_header_com_err_h+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8301 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8303 # Is the header compilable?
8304 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8305 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8306 cat >conftest.$ac_ext <<_ACEOF
8307 #line $LINENO "configure"
8308 #include "confdefs.h"
8309 $ac_includes_default
8310 #include <com_err.h>
8312 rm -f conftest.$ac_objext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8314 (eval $ac_compile) 2>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -s conftest.$ac_objext'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 ac_header_compiler=yes
8326 echo "$as_me: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8328 ac_header_compiler=no
8330 rm -f conftest.$ac_objext conftest.$ac_ext
8331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8332 echo "${ECHO_T}$ac_header_compiler" >&6
8334 # Is the header present?
8335 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8336 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8337 cat >conftest.$ac_ext <<_ACEOF
8338 #line $LINENO "configure"
8339 #include "confdefs.h"
8340 #include <com_err.h>
8342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8345 egrep -v '^ *\+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } >/dev/null; then
8350 if test -s conftest.err; then
8351 ac_cpp_err=$ac_c_preproc_warn_flag
8358 if test -z "$ac_cpp_err"; then
8359 ac_header_preproc=yes
8361 echo "$as_me: failed program was:" >&5
8362 cat conftest.$ac_ext >&5
8363 ac_header_preproc=no
8365 rm -f conftest.err conftest.$ac_ext
8366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8367 echo "${ECHO_T}$ac_header_preproc" >&6
8369 # So? What about this header?
8370 case $ac_header_compiler:$ac_header_preproc in
8372 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8373 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8375 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8377 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8378 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8379 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8380 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8382 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8384 echo "$as_me:$LINENO: checking for com_err.h" >&5
8385 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8386 if test "${ac_cv_header_com_err_h+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 ac_cv_header_com_err_h=$ac_header_preproc
8391 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8392 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8395 if test $ac_cv_header_com_err_h = yes; then
8398 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8399 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8400 { (exit 1); exit 1; }; }
8406 if test "$with_openssl" = yes ; then
8407 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8408 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8409 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8410 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8414 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8416 # Is the header compilable?
8417 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8418 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8419 cat >conftest.$ac_ext <<_ACEOF
8420 #line $LINENO "configure"
8421 #include "confdefs.h"
8422 $ac_includes_default
8423 #include <openssl/ssl.h>
8425 rm -f conftest.$ac_objext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8427 (eval $ac_compile) 2>&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -s conftest.$ac_objext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_header_compiler=yes
8439 echo "$as_me: failed program was:" >&5
8440 cat conftest.$ac_ext >&5
8441 ac_header_compiler=no
8443 rm -f conftest.$ac_objext conftest.$ac_ext
8444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8445 echo "${ECHO_T}$ac_header_compiler" >&6
8447 # Is the header present?
8448 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8449 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8450 cat >conftest.$ac_ext <<_ACEOF
8451 #line $LINENO "configure"
8452 #include "confdefs.h"
8453 #include <openssl/ssl.h>
8455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8458 egrep -v '^ *\+' conftest.er1 >conftest.err
8460 cat conftest.err >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); } >/dev/null; then
8463 if test -s conftest.err; then
8464 ac_cpp_err=$ac_c_preproc_warn_flag
8471 if test -z "$ac_cpp_err"; then
8472 ac_header_preproc=yes
8474 echo "$as_me: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8476 ac_header_preproc=no
8478 rm -f conftest.err conftest.$ac_ext
8479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8480 echo "${ECHO_T}$ac_header_preproc" >&6
8482 # So? What about this header?
8483 case $ac_header_compiler:$ac_header_preproc in
8485 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8486 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8488 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8490 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8491 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8492 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8493 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8495 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8497 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8498 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8499 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8504 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8505 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8508 if test $ac_cv_header_openssl_ssl_h = yes; then
8511 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8512 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8513 { (exit 1); exit 1; }; }
8517 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8518 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8519 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8520 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8524 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8526 # Is the header compilable?
8527 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8528 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8529 cat >conftest.$ac_ext <<_ACEOF
8530 #line $LINENO "configure"
8531 #include "confdefs.h"
8532 $ac_includes_default
8533 #include <openssl/err.h>
8535 rm -f conftest.$ac_objext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } &&
8541 { ac_try='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 ac_header_compiler=yes
8549 echo "$as_me: failed program was:" >&5
8550 cat conftest.$ac_ext >&5
8551 ac_header_compiler=no
8553 rm -f conftest.$ac_objext conftest.$ac_ext
8554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8555 echo "${ECHO_T}$ac_header_compiler" >&6
8557 # Is the header present?
8558 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8559 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8560 cat >conftest.$ac_ext <<_ACEOF
8561 #line $LINENO "configure"
8562 #include "confdefs.h"
8563 #include <openssl/err.h>
8565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8568 egrep -v '^ *\+' conftest.er1 >conftest.err
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } >/dev/null; then
8573 if test -s conftest.err; then
8574 ac_cpp_err=$ac_c_preproc_warn_flag
8581 if test -z "$ac_cpp_err"; then
8582 ac_header_preproc=yes
8584 echo "$as_me: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8586 ac_header_preproc=no
8588 rm -f conftest.err conftest.$ac_ext
8589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8590 echo "${ECHO_T}$ac_header_preproc" >&6
8592 # So? What about this header?
8593 case $ac_header_compiler:$ac_header_preproc in
8595 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8596 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8598 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8600 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8601 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8603 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8605 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8607 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8608 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8609 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 ac_cv_header_openssl_err_h=$ac_header_preproc
8614 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8615 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8618 if test $ac_cv_header_openssl_err_h = yes; then
8621 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8622 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8623 { (exit 1); exit 1; }; }
8629 if test "$with_pam" = yes ; then
8631 for ac_header in security/pam_appl.h
8633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8635 echo "$as_me:$LINENO: checking for $ac_header" >&5
8636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8643 # Is the header compilable?
8644 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 #include "confdefs.h"
8649 $ac_includes_default
8650 #include <$ac_header>
8652 rm -f conftest.$ac_objext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8654 (eval $ac_compile) 2>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_header_compiler=yes
8666 echo "$as_me: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8668 ac_header_compiler=no
8670 rm -f conftest.$ac_objext conftest.$ac_ext
8671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8672 echo "${ECHO_T}$ac_header_compiler" >&6
8674 # Is the header present?
8675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8677 cat >conftest.$ac_ext <<_ACEOF
8678 #line $LINENO "configure"
8679 #include "confdefs.h"
8680 #include <$ac_header>
8682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8685 egrep -v '^ *\+' conftest.er1 >conftest.err
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } >/dev/null; then
8690 if test -s conftest.err; then
8691 ac_cpp_err=$ac_c_preproc_warn_flag
8698 if test -z "$ac_cpp_err"; then
8699 ac_header_preproc=yes
8701 echo "$as_me: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8703 ac_header_preproc=no
8705 rm -f conftest.err conftest.$ac_ext
8706 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8707 echo "${ECHO_T}$ac_header_preproc" >&6
8709 # So? What about this header?
8710 case $ac_header_compiler:$ac_header_preproc in
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8724 echo "$as_me:$LINENO: checking for $ac_header" >&5
8725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 eval "$as_ac_Header=$ac_header_preproc"
8731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736 cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8742 for ac_header in pam/pam_appl.h
8744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8746 echo "$as_me:$LINENO: checking for $ac_header" >&5
8747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8754 # Is the header compilable?
8755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8757 cat >conftest.$ac_ext <<_ACEOF
8758 #line $LINENO "configure"
8759 #include "confdefs.h"
8760 $ac_includes_default
8761 #include <$ac_header>
8763 rm -f conftest.$ac_objext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8765 (eval $ac_compile) 2>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -s conftest.$ac_objext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_header_compiler=yes
8777 echo "$as_me: failed program was:" >&5
8778 cat conftest.$ac_ext >&5
8779 ac_header_compiler=no
8781 rm -f conftest.$ac_objext conftest.$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8783 echo "${ECHO_T}$ac_header_compiler" >&6
8785 # Is the header present?
8786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8788 cat >conftest.$ac_ext <<_ACEOF
8789 #line $LINENO "configure"
8790 #include "confdefs.h"
8791 #include <$ac_header>
8793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8796 egrep -v '^ *\+' conftest.er1 >conftest.err
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } >/dev/null; then
8801 if test -s conftest.err; then
8802 ac_cpp_err=$ac_c_preproc_warn_flag
8809 if test -z "$ac_cpp_err"; then
8810 ac_header_preproc=yes
8812 echo "$as_me: failed program was:" >&5
8813 cat conftest.$ac_ext >&5
8814 ac_header_preproc=no
8816 rm -f conftest.err conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8818 echo "${ECHO_T}$ac_header_preproc" >&6
8820 # So? What about this header?
8821 case $ac_header_compiler:$ac_header_preproc in
8823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8835 echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 eval "$as_ac_Header=$ac_header_preproc"
8842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8847 cat >>confdefs.h <<_ACEOF
8848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8852 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8853 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8854 { (exit 1); exit 1; }; }
8865 if test "$with_rendezvous" = yes ; then
8866 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8867 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8868 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8869 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8873 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8875 # Is the header compilable?
8876 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8877 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 #include "confdefs.h"
8881 $ac_includes_default
8882 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8884 rm -f conftest.$ac_objext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8886 (eval $ac_compile) 2>&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -s conftest.$ac_objext'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; }; then
8896 ac_header_compiler=yes
8898 echo "$as_me: failed program was:" >&5
8899 cat conftest.$ac_ext >&5
8900 ac_header_compiler=no
8902 rm -f conftest.$ac_objext conftest.$ac_ext
8903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8904 echo "${ECHO_T}$ac_header_compiler" >&6
8906 # Is the header present?
8907 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
8908 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
8909 cat >conftest.$ac_ext <<_ACEOF
8910 #line $LINENO "configure"
8911 #include "confdefs.h"
8912 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8914 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8917 egrep -v '^ *\+' conftest.er1 >conftest.err
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } >/dev/null; then
8922 if test -s conftest.err; then
8923 ac_cpp_err=$ac_c_preproc_warn_flag
8930 if test -z "$ac_cpp_err"; then
8931 ac_header_preproc=yes
8933 echo "$as_me: failed program was:" >&5
8934 cat conftest.$ac_ext >&5
8935 ac_header_preproc=no
8937 rm -f conftest.err conftest.$ac_ext
8938 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8939 echo "${ECHO_T}$ac_header_preproc" >&6
8941 # So? What about this header?
8942 case $ac_header_compiler:$ac_header_preproc in
8944 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
8945 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
8947 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
8949 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
8950 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
8951 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
8952 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
8953 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
8954 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
8956 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8957 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8958 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
8963 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8964 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8967 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
8970 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
8971 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
8972 { (exit 1); exit 1; }; }
8980 ## Types, structures, compiler characteristics
8984 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8985 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8986 if test "${ac_cv_c_const+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 cat >conftest.$ac_ext <<_ACEOF
8990 #line $LINENO "configure"
8991 #include "confdefs.h"
8993 #ifdef F77_DUMMY_MAIN
8997 int F77_DUMMY_MAIN() { return 1; }
9002 /* FIXME: Include the comments suggested by Paul. */
9004 /* Ultrix mips cc rejects this. */
9005 typedef int charset[2];
9007 /* SunOS 4.1.1 cc rejects this. */
9008 char const *const *ccp;
9010 /* NEC SVR4.0.2 mips cc rejects this. */
9011 struct point {int x, y;};
9012 static struct point const zero = {0,0};
9013 /* AIX XL C 1.02.0.0 rejects this.
9014 It does not let you subtract one const X* pointer from another in
9015 an arm of an if-expression whose if-part is not a constant
9017 const char *g = "string";
9018 ccp = &g + (g ? g-g : 0);
9019 /* HPUX 7.0 cc rejects these. */
9022 ccp = (char const *const *) p;
9023 { /* SCO 3.2v4 cc rejects this. */
9025 char const *s = 0 ? (char *) 0 : (char const *) 0;
9029 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9031 const int *foo = &x[0];
9034 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9035 typedef const int *iptr;
9039 { /* AIX XL C 1.02.0.0 rejects this saying
9040 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9041 struct s { int j; const int *ap[3]; };
9042 struct s *b; b->j = 5;
9044 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9053 rm -f conftest.$ac_objext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9055 (eval $ac_compile) 2>&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try='test -s conftest.$ac_objext'
9060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); }; }; then
9067 echo "$as_me: failed program was:" >&5
9068 cat conftest.$ac_ext >&5
9071 rm -f conftest.$ac_objext conftest.$ac_ext
9073 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9074 echo "${ECHO_T}$ac_cv_c_const" >&6
9075 if test $ac_cv_c_const = no; then
9077 cat >>confdefs.h <<\_ACEOF
9083 echo "$as_me:$LINENO: checking for inline" >&5
9084 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9085 if test "${ac_cv_c_inline+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 for ac_kw in inline __inline__ __inline; do
9090 cat >conftest.$ac_ext <<_ACEOF
9091 #line $LINENO "configure"
9092 #include "confdefs.h"
9095 static $ac_kw foo_t static_foo () {return 0; }
9096 $ac_kw int foo () {return 0; }
9100 rm -f conftest.$ac_objext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9102 (eval $ac_compile) 2>&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -s conftest.$ac_objext'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; }; then
9112 ac_cv_c_inline=$ac_kw; break
9114 echo "$as_me: failed program was:" >&5
9115 cat conftest.$ac_ext >&5
9117 rm -f conftest.$ac_objext conftest.$ac_ext
9121 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9122 echo "${ECHO_T}$ac_cv_c_inline" >&6
9123 case $ac_cv_c_inline in
9126 cat >>confdefs.h <<\_ACEOF
9130 *) cat >>confdefs.h <<_ACEOF
9131 #define inline $ac_cv_c_inline
9136 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9137 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9138 if test "${ac_cv_c_stringize+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 cat >conftest.$ac_ext <<_ACEOF
9142 #line $LINENO "configure"
9143 #include "confdefs.h"
9146 char *s = x(teststring);
9148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9149 egrep "#teststring" >/dev/null 2>&1; then
9150 ac_cv_c_stringize=no
9152 ac_cv_c_stringize=yes
9157 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9158 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9159 if test $ac_cv_c_stringize = yes; then
9161 cat >>confdefs.h <<\_ACEOF
9162 #define HAVE_STRINGIZE 1
9167 echo "$as_me:$LINENO: checking for signed types" >&5
9168 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9169 if test "${pgac_cv_c_signed+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 cat >conftest.$ac_ext <<_ACEOF
9173 #line $LINENO "configure"
9174 #include "confdefs.h"
9176 #ifdef F77_DUMMY_MAIN
9180 int F77_DUMMY_MAIN() { return 1; }
9185 signed char c; signed short s; signed int i;
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192 (eval $ac_compile) 2>&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try='test -s conftest.$ac_objext'
9197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 pgac_cv_c_signed=yes
9204 echo "$as_me: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9208 rm -f conftest.$ac_objext conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9211 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9212 if test x"$pgac_cv_c_signed" = xno ; then
9214 cat >>confdefs.h <<\_ACEOF
9219 echo "$as_me:$LINENO: checking for working volatile" >&5
9220 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9221 if test "${ac_cv_c_volatile+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9225 #line $LINENO "configure"
9226 #include "confdefs.h"
9228 #ifdef F77_DUMMY_MAIN
9232 int F77_DUMMY_MAIN() { return 1; }
9244 rm -f conftest.$ac_objext
9245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246 (eval $ac_compile) 2>&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try='test -s conftest.$ac_objext'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; }; then
9256 ac_cv_c_volatile=yes
9258 echo "$as_me: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9262 rm -f conftest.$ac_objext conftest.$ac_ext
9264 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9265 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9266 if test $ac_cv_c_volatile = no; then
9268 cat >>confdefs.h <<\_ACEOF
9274 echo "$as_me:$LINENO: checking for __func__" >&5
9275 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9276 if test "${pgac_cv_funcname_func_support+set}" = set; then
9277 echo $ECHO_N "(cached) $ECHO_C" >&6
9279 cat >conftest.$ac_ext <<_ACEOF
9280 #line $LINENO "configure"
9281 #include "confdefs.h"
9283 #ifdef F77_DUMMY_MAIN
9287 int F77_DUMMY_MAIN() { return 1; }
9292 printf("%s\n", __func__);
9297 rm -f conftest.$ac_objext
9298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9299 (eval $ac_compile) 2>&5
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); } &&
9303 { ac_try='test -s conftest.$ac_objext'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9309 pgac_cv_funcname_func_support=yes
9311 echo "$as_me: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9313 pgac_cv_funcname_func_support=no
9315 rm -f conftest.$ac_objext conftest.$ac_ext
9317 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9318 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9319 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9321 cat >>confdefs.h <<\_ACEOF
9322 #define HAVE_FUNCNAME__FUNC 1
9326 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9327 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9328 if test "${pgac_cv_funcname_function_support+set}" = set; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 cat >conftest.$ac_ext <<_ACEOF
9332 #line $LINENO "configure"
9333 #include "confdefs.h"
9335 #ifdef F77_DUMMY_MAIN
9339 int F77_DUMMY_MAIN() { return 1; }
9344 printf("%s\n", __FUNCTION__);
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 pgac_cv_funcname_function_support=yes
9363 echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 pgac_cv_funcname_function_support=no
9367 rm -f conftest.$ac_objext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9370 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9371 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_FUNCNAME__FUNCTION 1
9379 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9380 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9381 if test "${ac_cv_struct_tm+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 cat >conftest.$ac_ext <<_ACEOF
9385 #line $LINENO "configure"
9386 #include "confdefs.h"
9387 #include <sys/types.h>
9390 #ifdef F77_DUMMY_MAIN
9394 int F77_DUMMY_MAIN() { return 1; }
9399 struct tm *tp; tp->tm_sec;
9404 rm -f conftest.$ac_objext
9405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9406 (eval $ac_compile) 2>&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 ac_cv_struct_tm=time.h
9418 echo "$as_me: failed program was:" >&5
9419 cat conftest.$ac_ext >&5
9420 ac_cv_struct_tm=sys/time.h
9422 rm -f conftest.$ac_objext conftest.$ac_ext
9424 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9425 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9426 if test $ac_cv_struct_tm = sys/time.h; then
9428 cat >>confdefs.h <<\_ACEOF
9429 #define TM_IN_SYS_TIME 1
9434 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9435 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9436 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 cat >conftest.$ac_ext <<_ACEOF
9440 #line $LINENO "configure"
9441 #include "confdefs.h"
9442 #include <sys/types.h>
9443 #include <$ac_cv_struct_tm>
9446 #ifdef F77_DUMMY_MAIN
9450 int F77_DUMMY_MAIN() { return 1; }
9455 static struct tm ac_aggr;
9456 if (ac_aggr.tm_zone)
9462 rm -f conftest.$ac_objext
9463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9464 (eval $ac_compile) 2>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); } &&
9468 { ac_try='test -s conftest.$ac_objext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 ac_cv_member_struct_tm_tm_zone=yes
9476 echo "$as_me: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9478 ac_cv_member_struct_tm_tm_zone=no
9480 rm -f conftest.$ac_objext conftest.$ac_ext
9482 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9483 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9484 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9486 cat >>confdefs.h <<_ACEOF
9487 #define HAVE_STRUCT_TM_TM_ZONE 1
9493 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9495 cat >>confdefs.h <<\_ACEOF
9496 #define HAVE_TM_ZONE 1
9500 echo "$as_me:$LINENO: checking for tzname" >&5
9501 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9502 if test "${ac_cv_var_tzname+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 cat >conftest.$ac_ext <<_ACEOF
9506 #line $LINENO "configure"
9507 #include "confdefs.h"
9509 #ifndef tzname /* For SGI. */
9510 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9513 #ifdef F77_DUMMY_MAIN
9517 int F77_DUMMY_MAIN() { return 1; }
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 ac_cv_var_tzname=yes
9541 echo "$as_me: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9547 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9548 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9549 if test $ac_cv_var_tzname = yes; then
9551 cat >>confdefs.h <<\_ACEOF
9552 #define HAVE_TZNAME 1
9557 echo "$as_me:$LINENO: checking for union semun" >&5
9558 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9559 if test "${ac_cv_type_union_semun+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 cat >conftest.$ac_ext <<_ACEOF
9563 #line $LINENO "configure"
9564 #include "confdefs.h"
9565 #include <sys/types.h>
9566 #include <sys/ipc.h>
9567 #include <sys/sem.h>
9569 #ifdef F77_DUMMY_MAIN
9573 int F77_DUMMY_MAIN() { return 1; }
9578 if ((union semun *) 0)
9580 if (sizeof (union semun))
9586 rm -f conftest.$ac_objext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try='test -s conftest.$ac_objext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_cv_type_union_semun=yes
9600 echo "$as_me: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9602 ac_cv_type_union_semun=no
9604 rm -f conftest.$ac_objext conftest.$ac_ext
9606 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9607 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9608 if test $ac_cv_type_union_semun = yes; then
9610 cat >>confdefs.h <<_ACEOF
9611 #define HAVE_UNION_SEMUN 1
9617 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9618 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9619 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 cat >conftest.$ac_ext <<_ACEOF
9623 #line $LINENO "configure"
9624 #include "confdefs.h"
9625 #include <sys/types.h>
9626 #ifdef HAVE_SYS_UN_H
9631 #ifdef F77_DUMMY_MAIN
9635 int F77_DUMMY_MAIN() { return 1; }
9640 if ((struct sockaddr_un *) 0)
9642 if (sizeof (struct sockaddr_un))
9648 rm -f conftest.$ac_objext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650 (eval $ac_compile) 2>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -s conftest.$ac_objext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 ac_cv_type_struct_sockaddr_un=yes
9662 echo "$as_me: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9664 ac_cv_type_struct_sockaddr_un=no
9666 rm -f conftest.$ac_objext conftest.$ac_ext
9668 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9669 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9670 if test $ac_cv_type_struct_sockaddr_un = yes; then
9672 cat >>confdefs.h <<_ACEOF
9673 #define HAVE_STRUCT_SOCKADDR_UN 1
9677 cat >>confdefs.h <<\_ACEOF
9678 #define HAVE_UNIX_SOCKETS 1
9683 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9684 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9685 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 cat >conftest.$ac_ext <<_ACEOF
9689 #line $LINENO "configure"
9690 #include "confdefs.h"
9691 #include <sys/types.h>
9692 #ifdef HAVE_SYS_SOCKET_H
9693 #include <sys/socket.h>
9697 #ifdef F77_DUMMY_MAIN
9701 int F77_DUMMY_MAIN() { return 1; }
9706 if ((struct sockaddr_storage *) 0)
9708 if (sizeof (struct sockaddr_storage))
9714 rm -f conftest.$ac_objext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9716 (eval $ac_compile) 2>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -s conftest.$ac_objext'
9721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_type_struct_sockaddr_storage=yes
9728 echo "$as_me: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9730 ac_cv_type_struct_sockaddr_storage=no
9732 rm -f conftest.$ac_objext conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9735 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9736 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9738 cat >>confdefs.h <<_ACEOF
9739 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9745 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9746 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9747 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 cat >conftest.$ac_ext <<_ACEOF
9751 #line $LINENO "configure"
9752 #include "confdefs.h"
9753 #include <sys/types.h>
9754 #ifdef HAVE_SYS_SOCKET_H
9755 #include <sys/socket.h>
9759 #ifdef F77_DUMMY_MAIN
9763 int F77_DUMMY_MAIN() { return 1; }
9768 static struct sockaddr_storage ac_aggr;
9769 if (ac_aggr.ss_family)
9775 rm -f conftest.$ac_objext
9776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9777 (eval $ac_compile) 2>&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try='test -s conftest.$ac_objext'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9789 echo "$as_me: failed program was:" >&5
9790 cat conftest.$ac_ext >&5
9791 ac_cv_member_struct_sockaddr_storage_ss_family=no
9793 rm -f conftest.$ac_objext conftest.$ac_ext
9795 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9796 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9797 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9799 cat >>confdefs.h <<_ACEOF
9800 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9805 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9806 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9807 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9810 cat >conftest.$ac_ext <<_ACEOF
9811 #line $LINENO "configure"
9812 #include "confdefs.h"
9813 #include <sys/types.h>
9814 #ifdef HAVE_SYS_SOCKET_H
9815 #include <sys/socket.h>
9819 #ifdef F77_DUMMY_MAIN
9823 int F77_DUMMY_MAIN() { return 1; }
9828 static struct sockaddr_storage ac_aggr;
9829 if (ac_aggr.__ss_family)
9835 rm -f conftest.$ac_objext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9837 (eval $ac_compile) 2>&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -s conftest.$ac_objext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_member_struct_sockaddr_storage___ss_family=yes
9849 echo "$as_me: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9851 ac_cv_member_struct_sockaddr_storage___ss_family=no
9853 rm -f conftest.$ac_objext conftest.$ac_ext
9855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9856 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9857 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9859 cat >>confdefs.h <<_ACEOF
9860 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9865 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9866 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9867 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9870 cat >conftest.$ac_ext <<_ACEOF
9871 #line $LINENO "configure"
9872 #include "confdefs.h"
9873 #include <sys/types.h>
9874 #ifdef HAVE_SYS_SOCKET_H
9875 #include <sys/socket.h>
9879 #ifdef F77_DUMMY_MAIN
9883 int F77_DUMMY_MAIN() { return 1; }
9888 static struct sockaddr_storage ac_aggr;
9895 rm -f conftest.$ac_objext
9896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9897 (eval $ac_compile) 2>&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try='test -s conftest.$ac_objext'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_member_struct_sockaddr_storage_ss_len=yes
9909 echo "$as_me: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9911 ac_cv_member_struct_sockaddr_storage_ss_len=no
9913 rm -f conftest.$ac_objext conftest.$ac_ext
9915 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
9916 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
9917 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
9919 cat >>confdefs.h <<_ACEOF
9920 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
9925 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
9926 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
9927 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 cat >conftest.$ac_ext <<_ACEOF
9931 #line $LINENO "configure"
9932 #include "confdefs.h"
9933 #include <sys/types.h>
9934 #ifdef HAVE_SYS_SOCKET_H
9935 #include <sys/socket.h>
9939 #ifdef F77_DUMMY_MAIN
9943 int F77_DUMMY_MAIN() { return 1; }
9948 static struct sockaddr_storage ac_aggr;
9949 if (ac_aggr.__ss_len)
9955 rm -f conftest.$ac_objext
9956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9957 (eval $ac_compile) 2>&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } &&
9961 { ac_try='test -s conftest.$ac_objext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_member_struct_sockaddr_storage___ss_len=yes
9969 echo "$as_me: failed program was:" >&5
9970 cat conftest.$ac_ext >&5
9971 ac_cv_member_struct_sockaddr_storage___ss_len=no
9973 rm -f conftest.$ac_objext conftest.$ac_ext
9975 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
9976 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
9977 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
9979 cat >>confdefs.h <<_ACEOF
9980 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
9985 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
9986 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
9987 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 cat >conftest.$ac_ext <<_ACEOF
9991 #line $LINENO "configure"
9992 #include "confdefs.h"
9993 #include <sys/types.h>
9994 #ifdef HAVE_SYS_SOCKET_H
9995 #include <sys/socket.h>
9999 #ifdef F77_DUMMY_MAIN
10000 # ifdef __cplusplus
10003 int F77_DUMMY_MAIN() { return 1; }
10008 static struct sockaddr ac_aggr;
10009 if (ac_aggr.sa_len)
10015 rm -f conftest.$ac_objext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10017 (eval $ac_compile) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -s conftest.$ac_objext'
10022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10023 (eval $ac_try) 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; }; then
10027 ac_cv_member_struct_sockaddr_sa_len=yes
10029 echo "$as_me: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 ac_cv_member_struct_sockaddr_sa_len=no
10033 rm -f conftest.$ac_objext conftest.$ac_ext
10035 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10036 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10037 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10039 cat >>confdefs.h <<_ACEOF
10040 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10046 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10047 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10048 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 cat >conftest.$ac_ext <<_ACEOF
10052 #line $LINENO "configure"
10053 #include "confdefs.h"
10054 #include <sys/types.h>
10055 #include <sys/socket.h>
10059 #ifdef F77_DUMMY_MAIN
10060 # ifdef __cplusplus
10063 int F77_DUMMY_MAIN() { return 1; }
10068 if ((struct addrinfo *) 0)
10070 if (sizeof (struct addrinfo))
10076 rm -f conftest.$ac_objext
10077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10078 (eval $ac_compile) 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -s conftest.$ac_objext'
10083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10084 (eval $ac_try) 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_type_struct_addrinfo=yes
10090 echo "$as_me: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 ac_cv_type_struct_addrinfo=no
10094 rm -f conftest.$ac_objext conftest.$ac_ext
10096 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10097 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10098 if test $ac_cv_type_struct_addrinfo = yes; then
10100 cat >>confdefs.h <<_ACEOF
10101 #define HAVE_STRUCT_ADDRINFO 1
10108 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10109 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10110 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10114 #line $LINENO "configure"
10115 #include "confdefs.h"
10116 #include <sys/param.h>
10117 #include <sys/types.h>
10118 #include <sys/socket.h>
10119 #include <sys/ucred.h>
10121 #ifdef F77_DUMMY_MAIN
10122 # ifdef __cplusplus
10125 int F77_DUMMY_MAIN() { return 1; }
10130 if ((struct cmsgcred *) 0)
10132 if (sizeof (struct cmsgcred))
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140 (eval $ac_compile) 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -s conftest.$ac_objext'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; }; then
10150 ac_cv_type_struct_cmsgcred=yes
10152 echo "$as_me: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
10154 ac_cv_type_struct_cmsgcred=no
10156 rm -f conftest.$ac_objext conftest.$ac_ext
10158 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10159 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10160 if test $ac_cv_type_struct_cmsgcred = yes; then
10162 cat >>confdefs.h <<_ACEOF
10163 #define HAVE_STRUCT_CMSGCRED 1
10168 echo "$as_me:$LINENO: checking for struct fcred" >&5
10169 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10170 if test "${ac_cv_type_struct_fcred+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 cat >conftest.$ac_ext <<_ACEOF
10174 #line $LINENO "configure"
10175 #include "confdefs.h"
10176 #include <sys/param.h>
10177 #include <sys/types.h>
10178 #include <sys/socket.h>
10179 #include <sys/ucred.h>
10181 #ifdef F77_DUMMY_MAIN
10182 # ifdef __cplusplus
10185 int F77_DUMMY_MAIN() { return 1; }
10190 if ((struct fcred *) 0)
10192 if (sizeof (struct fcred))
10198 rm -f conftest.$ac_objext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10200 (eval $ac_compile) 2>&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -s conftest.$ac_objext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_cv_type_struct_fcred=yes
10212 echo "$as_me: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10214 ac_cv_type_struct_fcred=no
10216 rm -f conftest.$ac_objext conftest.$ac_ext
10218 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10219 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10220 if test $ac_cv_type_struct_fcred = yes; then
10222 cat >>confdefs.h <<_ACEOF
10223 #define HAVE_STRUCT_FCRED 1
10228 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10229 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10230 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 cat >conftest.$ac_ext <<_ACEOF
10234 #line $LINENO "configure"
10235 #include "confdefs.h"
10236 #include <sys/param.h>
10237 #include <sys/types.h>
10238 #include <sys/socket.h>
10239 #include <sys/ucred.h>
10241 #ifdef F77_DUMMY_MAIN
10242 # ifdef __cplusplus
10245 int F77_DUMMY_MAIN() { return 1; }
10250 if ((struct sockcred *) 0)
10252 if (sizeof (struct sockcred))
10258 rm -f conftest.$ac_objext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260 (eval $ac_compile) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
10264 { ac_try='test -s conftest.$ac_objext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_type_struct_sockcred=yes
10272 echo "$as_me: failed program was:" >&5
10273 cat conftest.$ac_ext >&5
10274 ac_cv_type_struct_sockcred=no
10276 rm -f conftest.$ac_objext conftest.$ac_ext
10278 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10279 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10280 if test $ac_cv_type_struct_sockcred = yes; then
10282 cat >>confdefs.h <<_ACEOF
10283 #define HAVE_STRUCT_SOCKCRED 1
10290 echo "$as_me:$LINENO: checking for struct option" >&5
10291 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10292 if test "${ac_cv_type_struct_option+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 cat >conftest.$ac_ext <<_ACEOF
10296 #line $LINENO "configure"
10297 #include "confdefs.h"
10298 #ifdef HAVE_GETOPT_H
10299 #include <getopt.h>
10302 #ifdef F77_DUMMY_MAIN
10303 # ifdef __cplusplus
10306 int F77_DUMMY_MAIN() { return 1; }
10311 if ((struct option *) 0)
10313 if (sizeof (struct option))
10319 rm -f conftest.$ac_objext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } &&
10325 { ac_try='test -s conftest.$ac_objext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 ac_cv_type_struct_option=yes
10333 echo "$as_me: failed program was:" >&5
10334 cat conftest.$ac_ext >&5
10335 ac_cv_type_struct_option=no
10337 rm -f conftest.$ac_objext conftest.$ac_ext
10339 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10340 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10341 if test $ac_cv_type_struct_option = yes; then
10343 cat >>confdefs.h <<_ACEOF
10344 #define HAVE_STRUCT_OPTION 1
10351 if test "$with_zlib" = yes; then
10352 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10353 # did not). While we could work around the lack of z_streamp, it
10354 # seems unwise to encourage people to use such old zlib versions...
10355 echo "$as_me:$LINENO: checking for z_streamp" >&5
10356 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10357 if test "${ac_cv_type_z_streamp+set}" = set; then
10358 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 cat >conftest.$ac_ext <<_ACEOF
10361 #line $LINENO "configure"
10362 #include "confdefs.h"
10365 #ifdef F77_DUMMY_MAIN
10366 # ifdef __cplusplus
10369 int F77_DUMMY_MAIN() { return 1; }
10374 if ((z_streamp *) 0)
10376 if (sizeof (z_streamp))
10382 rm -f conftest.$ac_objext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384 (eval $ac_compile) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } &&
10388 { ac_try='test -s conftest.$ac_objext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_type_z_streamp=yes
10396 echo "$as_me: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10398 ac_cv_type_z_streamp=no
10400 rm -f conftest.$ac_objext conftest.$ac_ext
10402 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10403 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10404 if test $ac_cv_type_z_streamp = yes; then
10407 { { echo "$as_me:$LINENO: error: zlib version is too old
10408 Use --without-zlib to disable zlib support." >&5
10409 echo "$as_me: error: zlib version is too old
10410 Use --without-zlib to disable zlib support." >&2;}
10411 { (exit 1); exit 1; }; }
10416 if test "$with_krb5" = yes; then
10417 # Check for differences between MIT and Heimdal (KTH) releases
10418 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10419 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10420 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 cat >conftest.$ac_ext <<_ACEOF
10424 #line $LINENO "configure"
10425 #include "confdefs.h"
10428 #ifdef F77_DUMMY_MAIN
10429 # ifdef __cplusplus
10432 int F77_DUMMY_MAIN() { return 1; }
10437 static krb5_ticket ac_aggr;
10438 if (ac_aggr.enc_part2)
10444 rm -f conftest.$ac_objext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -s conftest.$ac_objext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_cv_member_krb5_ticket_enc_part2=yes
10458 echo "$as_me: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10460 ac_cv_member_krb5_ticket_enc_part2=no
10462 rm -f conftest.$ac_objext conftest.$ac_ext
10464 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10465 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10466 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10468 cat >>confdefs.h <<_ACEOF
10469 #define HAVE_KRB5_TICKET_ENC_PART2 1
10474 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10475 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10476 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 cat >conftest.$ac_ext <<_ACEOF
10480 #line $LINENO "configure"
10481 #include "confdefs.h"
10484 #ifdef F77_DUMMY_MAIN
10485 # ifdef __cplusplus
10488 int F77_DUMMY_MAIN() { return 1; }
10493 static krb5_ticket ac_aggr;
10494 if (ac_aggr.client)
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>&5
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } &&
10506 { ac_try='test -s conftest.$ac_objext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 ac_cv_member_krb5_ticket_client=yes
10514 echo "$as_me: failed program was:" >&5
10515 cat conftest.$ac_ext >&5
10516 ac_cv_member_krb5_ticket_client=no
10518 rm -f conftest.$ac_objext conftest.$ac_ext
10520 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10521 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10522 if test $ac_cv_member_krb5_ticket_client = yes; then
10524 cat >>confdefs.h <<_ACEOF
10525 #define HAVE_KRB5_TICKET_CLIENT 1
10530 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10531 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10532 { (exit 1); exit 1; }; }
10537 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10538 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10539 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 cat >conftest.$ac_ext <<_ACEOF
10543 #line $LINENO "configure"
10544 #include "confdefs.h"
10547 #ifdef F77_DUMMY_MAIN
10548 # ifdef __cplusplus
10551 int F77_DUMMY_MAIN() { return 1; }
10556 static krb5_error ac_aggr;
10557 if (ac_aggr.text.data)
10563 rm -f conftest.$ac_objext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10565 (eval $ac_compile) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 ac_cv_member_krb5_error_text_data=yes
10577 echo "$as_me: failed program was:" >&5
10578 cat conftest.$ac_ext >&5
10579 ac_cv_member_krb5_error_text_data=no
10581 rm -f conftest.$ac_objext conftest.$ac_ext
10583 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10584 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10585 if test $ac_cv_member_krb5_error_text_data = yes; then
10587 cat >>confdefs.h <<_ACEOF
10588 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10593 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10594 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10595 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 cat >conftest.$ac_ext <<_ACEOF
10599 #line $LINENO "configure"
10600 #include "confdefs.h"
10603 #ifdef F77_DUMMY_MAIN
10604 # ifdef __cplusplus
10607 int F77_DUMMY_MAIN() { return 1; }
10612 static krb5_error ac_aggr;
10613 if (ac_aggr.e_data)
10619 rm -f conftest.$ac_objext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10621 (eval $ac_compile) 2>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
10631 ac_cv_member_krb5_error_e_data=yes
10633 echo "$as_me: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10635 ac_cv_member_krb5_error_e_data=no
10637 rm -f conftest.$ac_objext conftest.$ac_ext
10639 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10640 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10641 if test $ac_cv_member_krb5_error_e_data = yes; then
10643 cat >>confdefs.h <<_ACEOF
10644 #define HAVE_KRB5_ERROR_E_DATA 1
10649 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10650 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10651 { (exit 1); exit 1; }; }
10660 ## Functions, global variables
10663 echo "$as_me:$LINENO: checking for int timezone" >&5
10664 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10665 if test "${pgac_cv_var_int_timezone+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 cat >conftest.$ac_ext <<_ACEOF
10669 #line $LINENO "configure"
10670 #include "confdefs.h"
10673 #ifdef F77_DUMMY_MAIN
10674 # ifdef __cplusplus
10677 int F77_DUMMY_MAIN() { return 1; }
10682 res = timezone / 60;
10687 rm -f conftest.$ac_objext conftest$ac_exeext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10689 (eval $ac_link) 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -s conftest$ac_exeext'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 pgac_cv_var_int_timezone=yes
10701 echo "$as_me: failed program was:" >&5
10702 cat conftest.$ac_ext >&5
10703 pgac_cv_var_int_timezone=no
10705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10707 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10708 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10709 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10711 cat >>confdefs.h <<\_ACEOF
10712 #define HAVE_INT_TIMEZONE
10716 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10717 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10718 if test "${ac_cv_func_accept_return+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 if test "${ac_cv_func_accept_arg1+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 if test "${ac_cv_func_accept_arg2+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 if test "${ac_cv_func_accept_arg3+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10731 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10732 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10733 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10734 cat >conftest.$ac_ext <<_ACEOF
10735 #line $LINENO "configure"
10736 #include "confdefs.h"
10737 #ifdef HAVE_SYS_TYPES_H
10738 #include <sys/types.h>
10740 #ifdef HAVE_SYS_SOCKET_H
10741 #include <sys/socket.h>
10743 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10744 #ifdef F77_DUMMY_MAIN
10745 # ifdef __cplusplus
10748 int F77_DUMMY_MAIN() { return 1; }
10758 rm -f conftest.$ac_objext
10759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10760 (eval $ac_compile) 2>&5
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } &&
10764 { ac_try='test -s conftest.$ac_objext'
10765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10766 (eval $ac_try) 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_not_found=no; break 4
10772 echo "$as_me: failed program was:" >&5
10773 cat conftest.$ac_ext >&5
10776 rm -f conftest.$ac_objext conftest.$ac_ext
10781 if test "$ac_not_found" = yes; then
10782 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10783 echo "$as_me: error: could not determine argument types" >&2;}
10784 { (exit 1); exit 1; }; }
10786 if test "$ac_cv_func_accept_arg3" = "void"; then
10787 ac_cv_func_accept_arg3=int
10797 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
10798 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10800 cat >>confdefs.h <<_ACEOF
10801 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10805 cat >>confdefs.h <<_ACEOF
10806 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10810 cat >>confdefs.h <<_ACEOF
10811 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10815 cat >>confdefs.h <<_ACEOF
10816 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10820 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10821 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10822 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 cat >conftest.$ac_ext <<_ACEOF
10826 #line $LINENO "configure"
10827 #include "confdefs.h"
10828 #include <sys/time.h>
10829 #ifdef F77_DUMMY_MAIN
10830 # ifdef __cplusplus
10833 int F77_DUMMY_MAIN() { return 1; }
10838 struct timeval *tp;
10839 struct timezone *tzp;
10840 gettimeofday(tp,tzp);
10845 rm -f conftest.$ac_objext
10846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10847 (eval $ac_compile) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -s conftest.$ac_objext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 pgac_cv_func_gettimeofday_1arg=no
10859 echo "$as_me: failed program was:" >&5
10860 cat conftest.$ac_ext >&5
10861 pgac_cv_func_gettimeofday_1arg=yes
10863 rm -f conftest.$ac_objext conftest.$ac_ext
10865 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10866 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10867 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10869 cat >>confdefs.h <<\_ACEOF
10870 #define GETTIMEOFDAY_1ARG
10877 # SunOS doesn't handle negative byte comparisons properly with +/- return
10878 echo "$as_me:$LINENO: checking for working memcmp" >&5
10879 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10880 if test "${ac_cv_func_memcmp_working+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10883 if test "$cross_compiling" = yes; then
10884 ac_cv_func_memcmp_working=no
10886 cat >conftest.$ac_ext <<_ACEOF
10887 #line $LINENO "configure"
10888 #include "confdefs.h"
10890 #ifdef F77_DUMMY_MAIN
10891 # ifdef __cplusplus
10894 int F77_DUMMY_MAIN() { return 1; }
10900 /* Some versions of memcmp are not 8-bit clean. */
10901 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10902 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10905 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10906 or more and with at least one buffer not starting on a 4-byte boundary.
10907 William Lewis provided this test program. */
10912 for (i = 0; i < 4; i++)
10916 strcpy (a, "--------01111111");
10917 strcpy (b, "--------10000000");
10918 if (memcmp (a, b, 16) >= 0)
10928 rm -f conftest$ac_exeext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; }; then
10939 ac_cv_func_memcmp_working=yes
10941 echo "$as_me: program exited with status $ac_status" >&5
10942 echo "$as_me: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 ( exit $ac_status )
10945 ac_cv_func_memcmp_working=no
10947 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10950 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10951 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10952 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10971 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
10973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10974 echo "$as_me:$LINENO: checking for $ac_func" >&5
10975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10976 if eval "test \"\${$as_ac_var+set}\" = set"; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
10979 cat >conftest.$ac_ext <<_ACEOF
10980 #line $LINENO "configure"
10981 #include "confdefs.h"
10982 /* System header to define __stub macros and hopefully few prototypes,
10983 which can conflict with char $ac_func (); below. */
10984 #include <assert.h>
10985 /* Override any gcc2 internal prototype to avoid an error. */
10989 /* We use char because int might match the return type of a gcc2
10990 builtin and then its argument prototype would still apply. */
10994 #ifdef F77_DUMMY_MAIN
10995 # ifdef __cplusplus
10998 int F77_DUMMY_MAIN() { return 1; }
11003 /* The GNU C library defines this for functions which it implements
11004 to always fail with ENOSYS. Some functions are actually named
11005 something starting with __ and the normal name is an alias. */
11006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11018 (eval $ac_link) 2>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -s conftest$ac_exeext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 eval "$as_ac_var=yes"
11030 echo "$as_me: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11032 eval "$as_ac_var=no"
11034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11038 if test `eval echo '${'$as_ac_var'}'` = yes; then
11039 cat >>confdefs.h <<_ACEOF
11040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11047 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11048 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11049 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 cat >conftest.$ac_ext <<_ACEOF
11053 #line $LINENO "configure"
11054 #include "confdefs.h"
11055 #include <unistd.h>
11057 #ifdef F77_DUMMY_MAIN
11058 # ifdef __cplusplus
11061 int F77_DUMMY_MAIN() { return 1; }
11067 char *p = (char *) fdatasync;
11074 rm -f conftest.$ac_objext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076 (eval $ac_compile) 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -s conftest.$ac_objext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
11086 ac_cv_have_decl_fdatasync=yes
11088 echo "$as_me: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11090 ac_cv_have_decl_fdatasync=no
11092 rm -f conftest.$ac_objext conftest.$ac_ext
11094 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11095 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11096 if test $ac_cv_have_decl_fdatasync = yes; then
11098 cat >>confdefs.h <<_ACEOF
11099 #define HAVE_DECL_FDATASYNC 1
11104 cat >>confdefs.h <<_ACEOF
11105 #define HAVE_DECL_FDATASYNC 0
11114 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11115 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11116 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 cat >conftest.$ac_ext <<_ACEOF
11120 #line $LINENO "configure"
11121 #include "confdefs.h"
11122 $ac_includes_default
11123 #include <netinet/in.h>
11125 #ifdef F77_DUMMY_MAIN
11126 # ifdef __cplusplus
11129 int F77_DUMMY_MAIN() { return 1; }
11134 if ((struct sockaddr_in6 *) 0)
11136 if (sizeof (struct sockaddr_in6))
11142 rm -f conftest.$ac_objext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11144 (eval $ac_compile) 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -s conftest.$ac_objext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 ac_cv_type_struct_sockaddr_in6=yes
11156 echo "$as_me: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11158 ac_cv_type_struct_sockaddr_in6=no
11160 rm -f conftest.$ac_objext conftest.$ac_ext
11162 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11163 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11164 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11165 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11166 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11167 if test "${ac_cv_func_inet_ntop+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 cat >conftest.$ac_ext <<_ACEOF
11171 #line $LINENO "configure"
11172 #include "confdefs.h"
11173 /* System header to define __stub macros and hopefully few prototypes,
11174 which can conflict with char inet_ntop (); below. */
11175 #include <assert.h>
11176 /* Override any gcc2 internal prototype to avoid an error. */
11180 /* We use char because int might match the return type of a gcc2
11181 builtin and then its argument prototype would still apply. */
11185 #ifdef F77_DUMMY_MAIN
11186 # ifdef __cplusplus
11189 int F77_DUMMY_MAIN() { return 1; }
11194 /* The GNU C library defines this for functions which it implements
11195 to always fail with ENOSYS. Some functions are actually named
11196 something starting with __ and the normal name is an alias. */
11197 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11209 (eval $ac_link) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -s conftest$ac_exeext'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 ac_cv_func_inet_ntop=yes
11221 echo "$as_me: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11223 ac_cv_func_inet_ntop=no
11225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11227 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11228 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11229 if test $ac_cv_func_inet_ntop = yes; then
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_IPV6 1
11242 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11243 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11244 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 cat >conftest.$ac_ext <<_ACEOF
11248 #line $LINENO "configure"
11249 #include "confdefs.h"
11250 #include <machine/vmparam.h>
11251 #include <sys/exec.h>
11253 #ifdef F77_DUMMY_MAIN
11254 # ifdef __cplusplus
11257 int F77_DUMMY_MAIN() { return 1; }
11262 PS_STRINGS->ps_nargvstr = 1;
11263 PS_STRINGS->ps_argvstr = "foo";
11268 rm -f conftest.$ac_objext conftest$ac_exeext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11270 (eval $ac_link) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
11274 { ac_try='test -s conftest$ac_exeext'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; }; then
11280 pgac_cv_var_PS_STRINGS=yes
11282 echo "$as_me: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 pgac_cv_var_PS_STRINGS=no
11286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11288 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11289 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11290 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11292 cat >>confdefs.h <<\_ACEOF
11293 #define HAVE_PS_STRINGS
11299 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11300 # is missing. Yes, there are machines that have only one. We may
11301 # also decide to use snprintf.c if snprintf() is present but does not
11302 # have working "long long int" support -- see below.
11304 pgac_need_repl_snprintf=no
11306 for ac_func in snprintf
11308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11309 echo "$as_me:$LINENO: checking for $ac_func" >&5
11310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11311 if eval "test \"\${$as_ac_var+set}\" = set"; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 cat >conftest.$ac_ext <<_ACEOF
11315 #line $LINENO "configure"
11316 #include "confdefs.h"
11317 /* System header to define __stub macros and hopefully few prototypes,
11318 which can conflict with char $ac_func (); below. */
11319 #include <assert.h>
11320 /* Override any gcc2 internal prototype to avoid an error. */
11324 /* We use char because int might match the return type of a gcc2
11325 builtin and then its argument prototype would still apply. */
11329 #ifdef F77_DUMMY_MAIN
11330 # ifdef __cplusplus
11333 int F77_DUMMY_MAIN() { return 1; }
11338 /* The GNU C library defines this for functions which it implements
11339 to always fail with ENOSYS. Some functions are actually named
11340 something starting with __ and the normal name is an alias. */
11341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11351 rm -f conftest.$ac_objext conftest$ac_exeext
11352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11353 (eval $ac_link) 2>&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
11357 { ac_try='test -s conftest$ac_exeext'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 eval "$as_ac_var=yes"
11365 echo "$as_me: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 eval "$as_ac_var=no"
11369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11373 if test `eval echo '${'$as_ac_var'}'` = yes; then
11374 cat >>confdefs.h <<_ACEOF
11375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11379 pgac_need_repl_snprintf=yes
11384 for ac_func in vsnprintf
11386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11387 echo "$as_me:$LINENO: checking for $ac_func" >&5
11388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11389 if eval "test \"\${$as_ac_var+set}\" = set"; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 cat >conftest.$ac_ext <<_ACEOF
11393 #line $LINENO "configure"
11394 #include "confdefs.h"
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char $ac_func (); below. */
11397 #include <assert.h>
11398 /* Override any gcc2 internal prototype to avoid an error. */
11402 /* We use char because int might match the return type of a gcc2
11403 builtin and then its argument prototype would still apply. */
11407 #ifdef F77_DUMMY_MAIN
11408 # ifdef __cplusplus
11411 int F77_DUMMY_MAIN() { return 1; }
11416 /* The GNU C library defines this for functions which it implements
11417 to always fail with ENOSYS. Some functions are actually named
11418 something starting with __ and the normal name is an alias. */
11419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431 (eval $ac_link) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
11435 { ac_try='test -s conftest$ac_exeext'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 eval "$as_ac_var=yes"
11443 echo "$as_me: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11445 eval "$as_ac_var=no"
11447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11451 if test `eval echo '${'$as_ac_var'}'` = yes; then
11452 cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11457 pgac_need_repl_snprintf=yes
11463 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11464 # include/c.h will provide declarations. Note this is a separate test
11465 # from whether the functions exist in the C library --- there are
11466 # systems that have the functions but don't bother to declare them :-(
11468 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11469 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11470 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11474 #line $LINENO "configure"
11475 #include "confdefs.h"
11476 $ac_includes_default
11477 #ifdef F77_DUMMY_MAIN
11478 # ifdef __cplusplus
11481 int F77_DUMMY_MAIN() { return 1; }
11487 char *p = (char *) snprintf;
11494 rm -f conftest.$ac_objext
11495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11496 (eval $ac_compile) 2>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 ac_cv_have_decl_snprintf=yes
11508 echo "$as_me: failed program was:" >&5
11509 cat conftest.$ac_ext >&5
11510 ac_cv_have_decl_snprintf=no
11512 rm -f conftest.$ac_objext conftest.$ac_ext
11514 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11515 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11516 if test $ac_cv_have_decl_snprintf = yes; then
11518 cat >>confdefs.h <<_ACEOF
11519 #define HAVE_DECL_SNPRINTF 1
11524 cat >>confdefs.h <<_ACEOF
11525 #define HAVE_DECL_SNPRINTF 0
11530 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11531 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11532 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11535 cat >conftest.$ac_ext <<_ACEOF
11536 #line $LINENO "configure"
11537 #include "confdefs.h"
11538 $ac_includes_default
11539 #ifdef F77_DUMMY_MAIN
11540 # ifdef __cplusplus
11543 int F77_DUMMY_MAIN() { return 1; }
11549 char *p = (char *) vsnprintf;
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -s conftest.$ac_objext'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 ac_cv_have_decl_vsnprintf=yes
11570 echo "$as_me: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11572 ac_cv_have_decl_vsnprintf=no
11574 rm -f conftest.$ac_objext conftest.$ac_ext
11576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11577 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11578 if test $ac_cv_have_decl_vsnprintf = yes; then
11580 cat >>confdefs.h <<_ACEOF
11581 #define HAVE_DECL_VSNPRINTF 1
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_DECL_VSNPRINTF 0
11596 # do this one the hard way in case isinf() is a macro
11597 echo "$as_me:$LINENO: checking for isinf" >&5
11598 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11599 if test "${ac_cv_func_isinf+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11604 #include "confdefs.h"
11607 #ifdef F77_DUMMY_MAIN
11608 # ifdef __cplusplus
11611 int F77_DUMMY_MAIN() { return 1; }
11616 double x = 0.0; int res = isinf(x);
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623 (eval $ac_link) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -s conftest$ac_exeext'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }; then
11633 ac_cv_func_isinf=yes
11635 echo "$as_me: failed program was:" >&5
11636 cat conftest.$ac_ext >&5
11637 ac_cv_func_isinf=no
11639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11641 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11642 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11644 if test $ac_cv_func_isinf = yes ; then
11646 cat >>confdefs.h <<\_ACEOF
11647 #define HAVE_ISINF 1
11651 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11652 # Look for a way to implement a substitute for isinf()
11657 for ac_func in fpclass fp_class fp_class_d class
11659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11660 echo "$as_me:$LINENO: checking for $ac_func" >&5
11661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11662 if eval "test \"\${$as_ac_var+set}\" = set"; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 cat >conftest.$ac_ext <<_ACEOF
11666 #line $LINENO "configure"
11667 #include "confdefs.h"
11668 /* System header to define __stub macros and hopefully few prototypes,
11669 which can conflict with char $ac_func (); below. */
11670 #include <assert.h>
11671 /* Override any gcc2 internal prototype to avoid an error. */
11675 /* We use char because int might match the return type of a gcc2
11676 builtin and then its argument prototype would still apply. */
11680 #ifdef F77_DUMMY_MAIN
11681 # ifdef __cplusplus
11684 int F77_DUMMY_MAIN() { return 1; }
11689 /* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
11692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704 (eval $ac_link) 2>&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
11708 { ac_try='test -s conftest$ac_exeext'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 eval "$as_ac_var=yes"
11716 echo "$as_me: failed program was:" >&5
11717 cat conftest.$ac_ext >&5
11718 eval "$as_ac_var=no"
11720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11724 if test `eval echo '${'$as_ac_var'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11747 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
11749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11750 echo "$as_me:$LINENO: checking for $ac_func" >&5
11751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11752 if eval "test \"\${$as_ac_var+set}\" = set"; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 cat >conftest.$ac_ext <<_ACEOF
11756 #line $LINENO "configure"
11757 #include "confdefs.h"
11758 /* System header to define __stub macros and hopefully few prototypes,
11759 which can conflict with char $ac_func (); below. */
11760 #include <assert.h>
11761 /* Override any gcc2 internal prototype to avoid an error. */
11765 /* We use char because int might match the return type of a gcc2
11766 builtin and then its argument prototype would still apply. */
11770 #ifdef F77_DUMMY_MAIN
11771 # ifdef __cplusplus
11774 int F77_DUMMY_MAIN() { return 1; }
11779 /* The GNU C library defines this for functions which it implements
11780 to always fail with ENOSYS. Some functions are actually named
11781 something starting with __ and the normal name is an alias. */
11782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11792 rm -f conftest.$ac_objext conftest$ac_exeext
11793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11794 (eval $ac_link) 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -s conftest$ac_exeext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 eval "$as_ac_var=yes"
11806 echo "$as_me: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 eval "$as_ac_var=no"
11810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11814 if test `eval echo '${'$as_ac_var'}'` = yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11820 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11826 # system's version of getaddrinfo(), if any, may be used only if we found
11827 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11828 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11830 for ac_func in getaddrinfo
11832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11833 echo "$as_me:$LINENO: checking for $ac_func" >&5
11834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11835 if eval "test \"\${$as_ac_var+set}\" = set"; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11838 cat >conftest.$ac_ext <<_ACEOF
11839 #line $LINENO "configure"
11840 #include "confdefs.h"
11841 /* System header to define __stub macros and hopefully few prototypes,
11842 which can conflict with char $ac_func (); below. */
11843 #include <assert.h>
11844 /* Override any gcc2 internal prototype to avoid an error. */
11848 /* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11853 #ifdef F77_DUMMY_MAIN
11854 # ifdef __cplusplus
11857 int F77_DUMMY_MAIN() { return 1; }
11862 /* The GNU C library defines this for functions which it implements
11863 to always fail with ENOSYS. Some functions are actually named
11864 something starting with __ and the normal name is an alias. */
11865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11877 (eval $ac_link) 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -s conftest$ac_exeext'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; }; then
11887 eval "$as_ac_var=yes"
11889 echo "$as_me: failed program was:" >&5
11890 cat conftest.$ac_ext >&5
11891 eval "$as_ac_var=no"
11893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11897 if test `eval echo '${'$as_ac_var'}'` = yes; then
11898 cat >>confdefs.h <<_ACEOF
11899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11903 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11909 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11912 # similarly, use system's getopt_long() only if system provides struct option.
11913 if test x"$ac_cv_type_struct_option" = xyes ; then
11915 for ac_func in getopt_long
11917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11918 echo "$as_me:$LINENO: checking for $ac_func" >&5
11919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11920 if eval "test \"\${$as_ac_var+set}\" = set"; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 cat >conftest.$ac_ext <<_ACEOF
11924 #line $LINENO "configure"
11925 #include "confdefs.h"
11926 /* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char $ac_func (); below. */
11928 #include <assert.h>
11929 /* Override any gcc2 internal prototype to avoid an error. */
11933 /* We use char because int might match the return type of a gcc2
11934 builtin and then its argument prototype would still apply. */
11938 #ifdef F77_DUMMY_MAIN
11939 # ifdef __cplusplus
11942 int F77_DUMMY_MAIN() { return 1; }
11947 /* The GNU C library defines this for functions which it implements
11948 to always fail with ENOSYS. Some functions are actually named
11949 something starting with __ and the normal name is an alias. */
11950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 eval "$as_ac_var=yes"
11974 echo "$as_me: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 eval "$as_ac_var=no"
11978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11982 if test `eval echo '${'$as_ac_var'}'` = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11988 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11994 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11997 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
11998 # We override the previous test that said fseeko/ftello didn't exist
11999 # OS tests are also done in include/c.h and port/fseeko.c
12000 case $host_os in bsdi*|netbsd*)
12001 ac_cv_func_fseeko=yes
12004 # Solaris has a very slow qsort in certain cases, so we replace it.
12005 case $host_os in solaris*)
12006 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12010 case $host_os in mingw*)
12011 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12012 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12013 LIBOBJS="$LIBOBJS open.$ac_objext"
12014 LIBOBJS="$LIBOBJS rand.$ac_objext"
12016 cat >>confdefs.h <<\_ACEOF
12024 # Win32 can't to rename or unlink on an open file
12025 case $host_os in mingw*|cygwin*)
12026 LIBOBJS="$LIBOBJS dirmod.$ac_objext" ;;
12029 if test "$with_readline" = yes; then
12030 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12031 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12032 cat >conftest.$ac_ext <<_ACEOF
12033 #line $LINENO "configure"
12034 #include "confdefs.h"
12036 #ifdef HAVE_READLINE_READLINE_H
12037 # include <readline/readline.h>
12038 #elif defined(HAVE_READLINE_H)
12039 # include <readline.h>
12042 #ifdef F77_DUMMY_MAIN
12043 # ifdef __cplusplus
12046 int F77_DUMMY_MAIN() { return 1; }
12051 rl_completion_append_character = 'x';
12056 rm -f conftest.$ac_objext conftest$ac_exeext
12057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12058 (eval $ac_link) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } &&
12062 { ac_try='test -s conftest$ac_exeext'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; }; then
12068 echo "$as_me:$LINENO: result: yes" >&5
12069 echo "${ECHO_T}yes" >&6
12071 cat >>confdefs.h <<\_ACEOF
12072 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12076 echo "$as_me: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 echo "$as_me:$LINENO: result: no" >&5
12079 echo "${ECHO_T}no" >&6
12081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12084 for ac_func in rl_completion_matches rl_filename_completion_function
12086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12087 echo "$as_me:$LINENO: checking for $ac_func" >&5
12088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12089 if eval "test \"\${$as_ac_var+set}\" = set"; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12092 cat >conftest.$ac_ext <<_ACEOF
12093 #line $LINENO "configure"
12094 #include "confdefs.h"
12095 /* System header to define __stub macros and hopefully few prototypes,
12096 which can conflict with char $ac_func (); below. */
12097 #include <assert.h>
12098 /* Override any gcc2 internal prototype to avoid an error. */
12102 /* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12107 #ifdef F77_DUMMY_MAIN
12108 # ifdef __cplusplus
12111 int F77_DUMMY_MAIN() { return 1; }
12116 /* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
12119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12129 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -s conftest$ac_exeext'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; }; then
12141 eval "$as_ac_var=yes"
12143 echo "$as_me: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12145 eval "$as_ac_var=no"
12147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12151 if test `eval echo '${'$as_ac_var'}'` = yes; then
12152 cat >>confdefs.h <<_ACEOF
12153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12160 for ac_func in replace_history_entry
12162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12163 echo "$as_me:$LINENO: checking for $ac_func" >&5
12164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12165 if eval "test \"\${$as_ac_var+set}\" = set"; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 cat >conftest.$ac_ext <<_ACEOF
12169 #line $LINENO "configure"
12170 #include "confdefs.h"
12171 /* System header to define __stub macros and hopefully few prototypes,
12172 which can conflict with char $ac_func (); below. */
12173 #include <assert.h>
12174 /* Override any gcc2 internal prototype to avoid an error. */
12178 /* We use char because int might match the return type of a gcc2
12179 builtin and then its argument prototype would still apply. */
12183 #ifdef F77_DUMMY_MAIN
12184 # ifdef __cplusplus
12187 int F77_DUMMY_MAIN() { return 1; }
12192 /* The GNU C library defines this for functions which it implements
12193 to always fail with ENOSYS. Some functions are actually named
12194 something starting with __ and the normal name is an alias. */
12195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12207 (eval $ac_link) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } &&
12211 { ac_try='test -s conftest$ac_exeext'
12212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213 (eval $ac_try) 2>&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); }; }; then
12217 eval "$as_ac_var=yes"
12219 echo "$as_me: failed program was:" >&5
12220 cat conftest.$ac_ext >&5
12221 eval "$as_ac_var=no"
12223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12227 if test `eval echo '${'$as_ac_var'}'` = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12238 echo "$as_me:$LINENO: checking for finite" >&5
12239 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12240 cat >conftest.$ac_ext <<_ACEOF
12241 #line $LINENO "configure"
12242 #include "confdefs.h"
12244 #ifdef F77_DUMMY_MAIN
12245 # ifdef __cplusplus
12248 int F77_DUMMY_MAIN() { return 1; }
12253 int dummy=finite(1.0);
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260 (eval $ac_link) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -s conftest$ac_exeext'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12271 cat >>confdefs.h <<\_ACEOF
12272 #define HAVE_FINITE 1
12275 echo "$as_me:$LINENO: result: yes" >&5
12276 echo "${ECHO_T}yes" >&6
12278 echo "$as_me: failed program was:" >&5
12279 cat conftest.$ac_ext >&5
12280 echo "$as_me:$LINENO: result: no" >&5
12281 echo "${ECHO_T}no" >&6
12283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12285 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12286 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12287 cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12289 #include "confdefs.h"
12290 #include <setjmp.h>
12291 #ifdef F77_DUMMY_MAIN
12292 # ifdef __cplusplus
12295 int F77_DUMMY_MAIN() { return 1; }
12300 sigjmp_buf x; sigsetjmp(x, 1);
12305 rm -f conftest.$ac_objext conftest$ac_exeext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12307 (eval $ac_link) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -s conftest$ac_exeext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12318 cat >>confdefs.h <<\_ACEOF
12319 #define HAVE_SIGSETJMP 1
12322 echo "$as_me:$LINENO: result: yes" >&5
12323 echo "${ECHO_T}yes" >&6
12325 echo "$as_me: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12327 echo "$as_me:$LINENO: result: no" >&5
12328 echo "${ECHO_T}no" >&6
12330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12332 echo "$as_me:$LINENO: checking for syslog" >&5
12333 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12334 if test "${ac_cv_func_syslog+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 cat >conftest.$ac_ext <<_ACEOF
12338 #line $LINENO "configure"
12339 #include "confdefs.h"
12340 /* System header to define __stub macros and hopefully few prototypes,
12341 which can conflict with char syslog (); below. */
12342 #include <assert.h>
12343 /* Override any gcc2 internal prototype to avoid an error. */
12347 /* We use char because int might match the return type of a gcc2
12348 builtin and then its argument prototype would still apply. */
12352 #ifdef F77_DUMMY_MAIN
12353 # ifdef __cplusplus
12356 int F77_DUMMY_MAIN() { return 1; }
12361 /* The GNU C library defines this for functions which it implements
12362 to always fail with ENOSYS. Some functions are actually named
12363 something starting with __ and the normal name is an alias. */
12364 #if defined (__stub_syslog) || defined (__stub___syslog)
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12376 (eval $ac_link) 2>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try='test -s conftest$ac_exeext'
12381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_cv_func_syslog=yes
12388 echo "$as_me: failed program was:" >&5
12389 cat conftest.$ac_ext >&5
12390 ac_cv_func_syslog=no
12392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12394 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12395 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12396 if test $ac_cv_func_syslog = yes; then
12397 if test "${ac_cv_header_syslog_h+set}" = set; then
12398 echo "$as_me:$LINENO: checking for syslog.h" >&5
12399 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12400 if test "${ac_cv_header_syslog_h+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12404 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12406 # Is the header compilable?
12407 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12408 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12409 cat >conftest.$ac_ext <<_ACEOF
12410 #line $LINENO "configure"
12411 #include "confdefs.h"
12412 $ac_includes_default
12413 #include <syslog.h>
12415 rm -f conftest.$ac_objext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -s conftest.$ac_objext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_header_compiler=yes
12429 echo "$as_me: failed program was:" >&5
12430 cat conftest.$ac_ext >&5
12431 ac_header_compiler=no
12433 rm -f conftest.$ac_objext conftest.$ac_ext
12434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12435 echo "${ECHO_T}$ac_header_compiler" >&6
12437 # Is the header present?
12438 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12439 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12440 cat >conftest.$ac_ext <<_ACEOF
12441 #line $LINENO "configure"
12442 #include "confdefs.h"
12443 #include <syslog.h>
12445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12448 egrep -v '^ *\+' conftest.er1 >conftest.err
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } >/dev/null; then
12453 if test -s conftest.err; then
12454 ac_cpp_err=$ac_c_preproc_warn_flag
12461 if test -z "$ac_cpp_err"; then
12462 ac_header_preproc=yes
12464 echo "$as_me: failed program was:" >&5
12465 cat conftest.$ac_ext >&5
12466 ac_header_preproc=no
12468 rm -f conftest.err conftest.$ac_ext
12469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12470 echo "${ECHO_T}$ac_header_preproc" >&6
12472 # So? What about this header?
12473 case $ac_header_compiler:$ac_header_preproc in
12475 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12476 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12477 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12478 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12480 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12481 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12482 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12483 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12484 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12485 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12487 echo "$as_me:$LINENO: checking for syslog.h" >&5
12488 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12489 if test "${ac_cv_header_syslog_h+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12492 ac_cv_header_syslog_h=$ac_header_preproc
12494 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12495 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12498 if test $ac_cv_header_syslog_h = yes; then
12500 cat >>confdefs.h <<\_ACEOF
12501 #define HAVE_SYSLOG 1
12510 echo "$as_me:$LINENO: checking for optreset" >&5
12511 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12512 if test "${pgac_cv_var_int_optreset+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 cat >conftest.$ac_ext <<_ACEOF
12516 #line $LINENO "configure"
12517 #include "confdefs.h"
12518 #include <unistd.h>
12519 #ifdef F77_DUMMY_MAIN
12520 # ifdef __cplusplus
12523 int F77_DUMMY_MAIN() { return 1; }
12528 extern int optreset; optreset = 1;
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12535 (eval $ac_link) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 pgac_cv_var_int_optreset=yes
12547 echo "$as_me: failed program was:" >&5
12548 cat conftest.$ac_ext >&5
12549 pgac_cv_var_int_optreset=no
12551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12553 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12554 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12555 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_INT_OPTRESET 1
12565 for ac_func in strtoll strtoq
12567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12568 echo "$as_me:$LINENO: checking for $ac_func" >&5
12569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12570 if eval "test \"\${$as_ac_var+set}\" = set"; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 cat >conftest.$ac_ext <<_ACEOF
12574 #line $LINENO "configure"
12575 #include "confdefs.h"
12576 /* System header to define __stub macros and hopefully few prototypes,
12577 which can conflict with char $ac_func (); below. */
12578 #include <assert.h>
12579 /* Override any gcc2 internal prototype to avoid an error. */
12583 /* We use char because int might match the return type of a gcc2
12584 builtin and then its argument prototype would still apply. */
12588 #ifdef F77_DUMMY_MAIN
12589 # ifdef __cplusplus
12592 int F77_DUMMY_MAIN() { return 1; }
12597 /* The GNU C library defines this for functions which it implements
12598 to always fail with ENOSYS. Some functions are actually named
12599 something starting with __ and the normal name is an alias. */
12600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
12616 { ac_try='test -s conftest$ac_exeext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 eval "$as_ac_var=yes"
12624 echo "$as_me: failed program was:" >&5
12625 cat conftest.$ac_ext >&5
12626 eval "$as_ac_var=no"
12628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12632 if test `eval echo '${'$as_ac_var'}'` = yes; then
12633 cat >>confdefs.h <<_ACEOF
12634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12642 for ac_func in strtoull strtouq
12644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12645 echo "$as_me:$LINENO: checking for $ac_func" >&5
12646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12647 if eval "test \"\${$as_ac_var+set}\" = set"; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 cat >conftest.$ac_ext <<_ACEOF
12651 #line $LINENO "configure"
12652 #include "confdefs.h"
12653 /* System header to define __stub macros and hopefully few prototypes,
12654 which can conflict with char $ac_func (); below. */
12655 #include <assert.h>
12656 /* Override any gcc2 internal prototype to avoid an error. */
12660 /* We use char because int might match the return type of a gcc2
12661 builtin and then its argument prototype would still apply. */
12665 #ifdef F77_DUMMY_MAIN
12666 # ifdef __cplusplus
12669 int F77_DUMMY_MAIN() { return 1; }
12674 /* The GNU C library defines this for functions which it implements
12675 to always fail with ENOSYS. Some functions are actually named
12676 something starting with __ and the normal name is an alias. */
12677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12689 (eval $ac_link) 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try='test -s conftest$ac_exeext'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 eval "$as_ac_var=yes"
12701 echo "$as_me: failed program was:" >&5
12702 cat conftest.$ac_ext >&5
12703 eval "$as_ac_var=no"
12705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12709 if test `eval echo '${'$as_ac_var'}'` = yes; then
12710 cat >>confdefs.h <<_ACEOF
12711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12718 # Check for one of atexit() or on_exit()
12720 for ac_func in atexit
12722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12723 echo "$as_me:$LINENO: checking for $ac_func" >&5
12724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12725 if eval "test \"\${$as_ac_var+set}\" = set"; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12728 cat >conftest.$ac_ext <<_ACEOF
12729 #line $LINENO "configure"
12730 #include "confdefs.h"
12731 /* System header to define __stub macros and hopefully few prototypes,
12732 which can conflict with char $ac_func (); below. */
12733 #include <assert.h>
12734 /* Override any gcc2 internal prototype to avoid an error. */
12738 /* We use char because int might match the return type of a gcc2
12739 builtin and then its argument prototype would still apply. */
12743 #ifdef F77_DUMMY_MAIN
12744 # ifdef __cplusplus
12747 int F77_DUMMY_MAIN() { return 1; }
12752 /* The GNU C library defines this for functions which it implements
12753 to always fail with ENOSYS. Some functions are actually named
12754 something starting with __ and the normal name is an alias. */
12755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767 (eval $ac_link) 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -s conftest$ac_exeext'
12772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773 (eval $ac_try) 2>&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); }; }; then
12777 eval "$as_ac_var=yes"
12779 echo "$as_me: failed program was:" >&5
12780 cat conftest.$ac_ext >&5
12781 eval "$as_ac_var=no"
12783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12787 if test `eval echo '${'$as_ac_var'}'` = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12794 for ac_func in on_exit
12796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12797 echo "$as_me:$LINENO: checking for $ac_func" >&5
12798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12799 if eval "test \"\${$as_ac_var+set}\" = set"; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 cat >conftest.$ac_ext <<_ACEOF
12803 #line $LINENO "configure"
12804 #include "confdefs.h"
12805 /* System header to define __stub macros and hopefully few prototypes,
12806 which can conflict with char $ac_func (); below. */
12807 #include <assert.h>
12808 /* Override any gcc2 internal prototype to avoid an error. */
12812 /* We use char because int might match the return type of a gcc2
12813 builtin and then its argument prototype would still apply. */
12817 #ifdef F77_DUMMY_MAIN
12818 # ifdef __cplusplus
12821 int F77_DUMMY_MAIN() { return 1; }
12826 /* The GNU C library defines this for functions which it implements
12827 to always fail with ENOSYS. Some functions are actually named
12828 something starting with __ and the normal name is an alias. */
12829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12841 (eval $ac_link) 2>&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -s conftest$ac_exeext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 eval "$as_ac_var=yes"
12853 echo "$as_me: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12855 eval "$as_ac_var=no"
12857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12861 if test `eval echo '${'$as_ac_var'}'` = yes; then
12862 cat >>confdefs.h <<_ACEOF
12863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12867 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12868 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12869 { (exit 1); exit 1; }; }
12877 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12878 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12879 if test "${ac_cv_sys_largefile_source+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 ac_cv_sys_largefile_source=no
12884 cat >conftest.$ac_ext <<_ACEOF
12885 #line $LINENO "configure"
12886 #include "confdefs.h"
12888 #ifdef F77_DUMMY_MAIN
12889 # ifdef __cplusplus
12892 int F77_DUMMY_MAIN() { return 1; }
12902 rm -f conftest.$ac_objext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -s conftest.$ac_objext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12916 echo "$as_me: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12919 rm -f conftest.$ac_objext conftest.$ac_ext
12920 cat >conftest.$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12922 #include "confdefs.h"
12923 #define _LARGEFILE_SOURCE 1
12925 #ifdef F77_DUMMY_MAIN
12926 # ifdef __cplusplus
12929 int F77_DUMMY_MAIN() { return 1; }
12939 rm -f conftest.$ac_objext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12941 (eval $ac_compile) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } &&
12945 { ac_try='test -s conftest.$ac_objext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 ac_cv_sys_largefile_source=1; break
12953 echo "$as_me: failed program was:" >&5
12954 cat conftest.$ac_ext >&5
12956 rm -f conftest.$ac_objext conftest.$ac_ext
12960 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12961 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12962 if test "$ac_cv_sys_largefile_source" != no; then
12964 cat >>confdefs.h <<_ACEOF
12965 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12971 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12972 # in glibc 2.1.3, but that breaks too many other things.
12973 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12974 echo "$as_me:$LINENO: checking for fseeko" >&5
12975 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12976 if test "${ac_cv_func_fseeko+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 cat >conftest.$ac_ext <<_ACEOF
12980 #line $LINENO "configure"
12981 #include "confdefs.h"
12983 #ifdef F77_DUMMY_MAIN
12984 # ifdef __cplusplus
12987 int F77_DUMMY_MAIN() { return 1; }
12992 return fseeko && fseeko (stdin, 0, 0);
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999 (eval $ac_link) 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } &&
13003 { ac_try='test -s conftest$ac_exeext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_func_fseeko=yes
13011 echo "$as_me: failed program was:" >&5
13012 cat conftest.$ac_ext >&5
13013 ac_cv_func_fseeko=no
13015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13017 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13018 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13019 if test $ac_cv_func_fseeko = yes; then
13021 cat >>confdefs.h <<\_ACEOF
13022 #define HAVE_FSEEKO 1
13031 # For each platform, we need to know about any special compile and link
13032 # libraries, and whether the normal C function names are thread-safe.
13033 # See the comment at the top of src/port/thread.c for more information.
13035 if test "$enable_thread_safety" = yes; then
13041 ac_cpp='$CPP $CPPFLAGS'
13042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13048 # We used to check for pthread.h first, but this fails if pthread.h
13049 # requires special compiler flags (e.g. on True64 or Sequent).
13050 # It gets checked for in the link test anyway.
13052 # First of all, check if the user has set any of the PTHREAD_LIBS,
13053 # etcetera environment variables, and if threads linking works using
13055 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13056 save_CFLAGS="$CFLAGS"
13057 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13059 LIBS="$PTHREAD_LIBS $LIBS"
13060 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13061 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13062 cat >conftest.$ac_ext <<_ACEOF
13063 #line $LINENO "configure"
13064 #include "confdefs.h"
13066 /* Override any gcc2 internal prototype to avoid an error. */
13070 /* We use char because int might match the return type of a gcc2
13071 builtin and then its argument prototype would still apply. */
13072 char pthread_join ();
13073 #ifdef F77_DUMMY_MAIN
13074 # ifdef __cplusplus
13077 int F77_DUMMY_MAIN() { return 1; }
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; }; then
13101 echo "$as_me: failed program was:" >&5
13102 cat conftest.$ac_ext >&5
13104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13105 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13106 echo "${ECHO_T}$acx_pthread_ok" >&6
13107 if test x"$acx_pthread_ok" = xno; then
13112 CFLAGS="$save_CFLAGS"
13115 # We must check for the threads library under a number of different
13116 # names; the ordering is very important because some systems
13117 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13118 # libraries is broken (non-POSIX).
13120 # Create a list of thread flags to try. Items starting with a "-" are
13121 # C compiler flags, and other items are library names, except for "none"
13122 # which indicates that we try without any flags at all, and "pthread-config"
13123 # which is a program returning the flags for the Pth emulation library.
13125 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13127 # The ordering *is* (sometimes) important. Some notes on the
13128 # individual items follow:
13130 # pthreads: AIX (must check this before -lpthread)
13131 # none: in case threads are in libc; should be tried before -Kthread and
13132 # other compiler flags to prevent continual compiler warnings
13133 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13134 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13135 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13136 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13137 # -pthreads: Solaris/gcc
13138 # -mthreads: Mingw32/gcc, Lynx/gcc
13139 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13140 # doesn't hurt to check since this sometimes defines pthreads too;
13141 # also defines -D_REENTRANT)
13142 # pthread: Linux, etcetera
13143 # --thread-safe: KAI C++
13144 # pthread-config: use pthread-config program (for GNU Pth library)
13146 case "${host_cpu}-${host_os}" in
13149 # On Solaris (at least, for some versions), libc contains stubbed
13150 # (non-functional) versions of the pthreads routines, so link-based
13151 # tests will erroneously succeed. (We need to link with -pthread or
13152 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
13153 # a function called by this macro, so we could check for that, but
13154 # who knows whether they'll stub that too in a future libc.) So,
13155 # we'll just look for -pthreads and -lpthread first:
13157 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13161 if test x"$acx_pthread_ok" = xno; then
13162 for flag in $acx_pthread_flags; do
13166 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13167 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13171 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13172 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13173 PTHREAD_CFLAGS="$flag"
13177 # Extract the first word of "pthread-config", so it can be a program name with args.
13178 set dummy pthread-config; ac_word=$2
13179 echo "$as_me:$LINENO: checking for $ac_word" >&5
13180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13181 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 if test -n "$acx_pthread_config"; then
13185 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13194 ac_cv_prog_acx_pthread_config="yes"
13195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13201 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13204 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13205 if test -n "$acx_pthread_config"; then
13206 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13207 echo "${ECHO_T}$acx_pthread_config" >&6
13209 echo "$as_me:$LINENO: result: no" >&5
13210 echo "${ECHO_T}no" >&6
13213 if test x"$acx_pthread_config" = xno; then continue; fi
13214 PTHREAD_CFLAGS="`pthread-config --cflags`"
13215 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13219 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13220 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13221 PTHREAD_LIBS="-l$flag"
13226 save_CFLAGS="$CFLAGS"
13227 LIBS="$PTHREAD_LIBS $LIBS"
13228 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13230 # Check for various functions. We must include pthread.h,
13231 # since some functions may be macros. (On the Sequent, we
13232 # need a special flag -Kthread to make this header compile.)
13233 # We check for pthread_join because it is in -lpthread on IRIX
13234 # while pthread_create is in libc. We check for pthread_attr_init
13235 # due to DEC craziness with -lpthreads. We check for
13236 # pthread_cleanup_push because it is one of the few pthread
13237 # functions on Solaris that doesn't have a non-functional libc stub.
13238 # We try pthread_create on general principles.
13239 cat >conftest.$ac_ext <<_ACEOF
13240 #line $LINENO "configure"
13241 #include "confdefs.h"
13242 #include <pthread.h>
13243 #ifdef F77_DUMMY_MAIN
13244 # ifdef __cplusplus
13247 int F77_DUMMY_MAIN() { return 1; }
13252 pthread_t th; pthread_join(th, 0);
13253 pthread_attr_init(0); pthread_cleanup_push(0, 0);
13254 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try='test -s conftest$ac_exeext'
13266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13273 echo "$as_me: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13279 CFLAGS="$save_CFLAGS"
13281 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13282 echo "${ECHO_T}$acx_pthread_ok" >&6
13283 if test "x$acx_pthread_ok" = xyes; then
13292 # Various other checks:
13293 if test "x$acx_pthread_ok" = xyes; then
13295 LIBS="$PTHREAD_LIBS $LIBS"
13296 save_CFLAGS="$CFLAGS"
13297 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13299 # Detect AIX lossage: threads are created detached by default
13300 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
13301 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13302 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
13303 cat >conftest.$ac_ext <<_ACEOF
13304 #line $LINENO "configure"
13305 #include "confdefs.h"
13306 #include <pthread.h>
13307 #ifdef F77_DUMMY_MAIN
13308 # ifdef __cplusplus
13311 int F77_DUMMY_MAIN() { return 1; }
13316 int attr=PTHREAD_CREATE_JOINABLE;
13321 rm -f conftest.$ac_objext conftest$ac_exeext
13322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13323 (eval $ac_link) 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } &&
13327 { ac_try='test -s conftest$ac_exeext'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
13333 ok=PTHREAD_CREATE_JOINABLE
13335 echo "$as_me: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13340 if test x"$ok" = xunknown; then
13341 cat >conftest.$ac_ext <<_ACEOF
13342 #line $LINENO "configure"
13343 #include "confdefs.h"
13344 #include <pthread.h>
13345 #ifdef F77_DUMMY_MAIN
13346 # ifdef __cplusplus
13349 int F77_DUMMY_MAIN() { return 1; }
13354 int attr=PTHREAD_CREATE_UNDETACHED;
13359 rm -f conftest.$ac_objext conftest$ac_exeext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -s conftest$ac_exeext'
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ok=PTHREAD_CREATE_UNDETACHED
13373 echo "$as_me: failed program was:" >&5
13374 cat conftest.$ac_ext >&5
13377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13379 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
13381 cat >>confdefs.h <<\_ACEOF
13382 #define PTHREAD_CREATE_JOINABLE $ok
13386 echo "$as_me:$LINENO: result: ${ok}" >&5
13387 echo "${ECHO_T}${ok}" >&6
13388 if test x"$ok" = xunknown; then
13389 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
13390 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13393 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13394 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13396 # We handle this ourselves in PostgreSQL
13397 # case "${host_cpu}-${host_os}" in
13398 # *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
13399 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13401 echo "$as_me:$LINENO: result: ${flag}" >&5
13402 echo "${ECHO_T}${flag}" >&6
13403 if test "x$flag" != xno; then
13404 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13408 CFLAGS="$save_CFLAGS"
13410 # More AIX lossage: must compile with cc_r
13411 # Extract the first word of "cc_r", so it can be a program name with args.
13412 set dummy cc_r; ac_word=$2
13413 echo "$as_me:$LINENO: checking for $ac_word" >&5
13414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13415 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 if test -n "$PTHREAD_CC"; then
13419 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH
13425 test -z "$as_dir" && as_dir=.
13426 for ac_exec_ext in '' $ac_executable_extensions; do
13427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13428 ac_cv_prog_PTHREAD_CC="cc_r"
13429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
13438 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13439 if test -n "$PTHREAD_CC"; then
13440 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13441 echo "${ECHO_T}$PTHREAD_CC" >&6
13443 echo "$as_me:$LINENO: result: no" >&5
13444 echo "${ECHO_T}no" >&6
13455 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13456 if test x"$acx_pthread_ok" = xyes; then
13458 cat >>confdefs.h <<\_ACEOF
13459 #define HAVE_PTHREAD 1
13468 ac_cpp='$CPP $CPPFLAGS'
13469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13475 # Some platforms use these, so just defineed them. They can't hurt if they
13476 # are not supported.
13477 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13480 # At this point, we don't want to muck with the compiler name for threading.
13481 # Let's see who fails, perhaps AIX. 2004-04-23
13482 if test "$PTHREAD_CC" != "$CC"; then
13483 { { echo "$as_me:$LINENO: error:
13484 PostgreSQL does not support platforms that require a special
13485 compiler binary for thread-safety.
13487 echo "$as_me: error:
13488 PostgreSQL does not support platforms that require a special
13489 compiler binary for thread-safety.
13491 { (exit 1); exit 1; }; }
13494 if test "$THREAD_SUPPORT" = no; then
13495 { { echo "$as_me:$LINENO: error:
13496 Cannot enable threads on your platform.
13497 Your platform is known to not support thread-safe programs.
13498 For details, compile and run src/bin/pg_thread_test.
13500 echo "$as_me: error:
13501 Cannot enable threads on your platform.
13502 Your platform is known to not support thread-safe programs.
13503 For details, compile and run src/bin/pg_thread_test.
13505 { (exit 1); exit 1; }; }
13508 if test "${ac_cv_header_pthread_h+set}" = set; then
13509 echo "$as_me:$LINENO: checking for pthread.h" >&5
13510 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13511 if test "${ac_cv_header_pthread_h+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13515 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13517 # Is the header compilable?
13518 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13519 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13520 cat >conftest.$ac_ext <<_ACEOF
13521 #line $LINENO "configure"
13522 #include "confdefs.h"
13523 $ac_includes_default
13524 #include <pthread.h>
13526 rm -f conftest.$ac_objext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13528 (eval $ac_compile) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try='test -s conftest.$ac_objext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13538 ac_header_compiler=yes
13540 echo "$as_me: failed program was:" >&5
13541 cat conftest.$ac_ext >&5
13542 ac_header_compiler=no
13544 rm -f conftest.$ac_objext conftest.$ac_ext
13545 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13546 echo "${ECHO_T}$ac_header_compiler" >&6
13548 # Is the header present?
13549 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13550 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13551 cat >conftest.$ac_ext <<_ACEOF
13552 #line $LINENO "configure"
13553 #include "confdefs.h"
13554 #include <pthread.h>
13556 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13557 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13559 egrep -v '^ *\+' conftest.er1 >conftest.err
13561 cat conftest.err >&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } >/dev/null; then
13564 if test -s conftest.err; then
13565 ac_cpp_err=$ac_c_preproc_warn_flag
13572 if test -z "$ac_cpp_err"; then
13573 ac_header_preproc=yes
13575 echo "$as_me: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13577 ac_header_preproc=no
13579 rm -f conftest.err conftest.$ac_ext
13580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13581 echo "${ECHO_T}$ac_header_preproc" >&6
13583 # So? What about this header?
13584 case $ac_header_compiler:$ac_header_preproc in
13586 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13587 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13589 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13591 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13592 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13593 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13594 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13595 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13596 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13598 echo "$as_me:$LINENO: checking for pthread.h" >&5
13599 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13600 if test "${ac_cv_header_pthread_h+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 ac_cv_header_pthread_h=$ac_header_preproc
13605 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13606 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13609 if test $ac_cv_header_pthread_h = yes; then
13612 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13613 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13614 { (exit 1); exit 1; }; }
13619 # Check for *_r functions
13622 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13623 LIBS="$LIBS $PTHREAD_LIBS"
13627 for ac_func in strerror_r getpwuid_r gethostbyname_r
13629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13630 echo "$as_me:$LINENO: checking for $ac_func" >&5
13631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13632 if eval "test \"\${$as_ac_var+set}\" = set"; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13635 cat >conftest.$ac_ext <<_ACEOF
13636 #line $LINENO "configure"
13637 #include "confdefs.h"
13638 /* System header to define __stub macros and hopefully few prototypes,
13639 which can conflict with char $ac_func (); below. */
13640 #include <assert.h>
13641 /* Override any gcc2 internal prototype to avoid an error. */
13645 /* We use char because int might match the return type of a gcc2
13646 builtin and then its argument prototype would still apply. */
13650 #ifdef F77_DUMMY_MAIN
13651 # ifdef __cplusplus
13654 int F77_DUMMY_MAIN() { return 1; }
13659 /* The GNU C library defines this for functions which it implements
13660 to always fail with ENOSYS. Some functions are actually named
13661 something starting with __ and the normal name is an alias. */
13662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13672 rm -f conftest.$ac_objext conftest$ac_exeext
13673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13674 (eval $ac_link) 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } &&
13678 { ac_try='test -s conftest$ac_exeext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 eval "$as_ac_var=yes"
13686 echo "$as_me: failed program was:" >&5
13687 cat conftest.$ac_ext >&5
13688 eval "$as_ac_var=no"
13690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13694 if test `eval echo '${'$as_ac_var'}'` = yes; then
13695 cat >>confdefs.h <<_ACEOF
13696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13705 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
13706 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
13707 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
13708 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<_ACEOF
13711 #line $LINENO "configure"
13712 #include "confdefs.h"
13713 #include <sys/types.h>
13715 #ifdef F77_DUMMY_MAIN
13716 # ifdef __cplusplus
13719 int F77_DUMMY_MAIN() { return 1; }
13725 struct passwd *space;
13728 struct passwd **result;
13729 getpwuid_r(uid, space, buf, bufsize, result);
13734 rm -f conftest.$ac_objext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13736 (eval $ac_compile) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -s conftest.$ac_objext'
13741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742 (eval $ac_try) 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 pgac_func_getpwuid_r_5arg=yes
13748 echo "$as_me: failed program was:" >&5
13749 cat conftest.$ac_ext >&5
13750 pgac_func_getpwuid_r_5arg=no
13752 rm -f conftest.$ac_objext conftest.$ac_ext
13754 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
13755 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
13756 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
13758 cat >>confdefs.h <<\_ACEOF
13759 #define GETPWUID_R_5ARG
13766 # do not use values from template file
13775 # This test makes sure that run tests work at all. Sometimes a shared
13776 # library is found by the linker, but the runtime linker can't find it.
13777 # This check should come after all modifications of compiler or linker
13778 # variables, and before any other run tests.
13779 echo "$as_me:$LINENO: checking test program" >&5
13780 echo $ECHO_N "checking test program... $ECHO_C" >&6
13781 if test "$cross_compiling" = yes; then
13782 echo "$as_me:$LINENO: result: cross-compiling" >&5
13783 echo "${ECHO_T}cross-compiling" >&6
13785 cat >conftest.$ac_ext <<_ACEOF
13786 #line $LINENO "configure"
13787 #include "confdefs.h"
13788 int main() { return 0; }
13790 rm -f conftest$ac_exeext
13791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13792 (eval $ac_link) 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801 echo "$as_me:$LINENO: result: ok" >&5
13802 echo "${ECHO_T}ok" >&6
13804 echo "$as_me: program exited with status $ac_status" >&5
13805 echo "$as_me: failed program was:" >&5
13806 cat conftest.$ac_ext >&5
13807 ( exit $ac_status )
13808 echo "$as_me:$LINENO: result: failed" >&5
13809 echo "${ECHO_T}failed" >&6
13810 { { echo "$as_me:$LINENO: error:
13811 *** Could not execute a simple test program. This may be a problem
13812 *** related to locating shared libraries. Check the file 'config.log'
13813 *** for the exact reason." >&5
13814 echo "$as_me: error:
13815 *** Could not execute a simple test program. This may be a problem
13816 *** related to locating shared libraries. Check the file 'config.log'
13817 *** for the exact reason." >&2;}
13818 { (exit 1); exit 1; }; }
13820 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13825 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13826 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13827 if test "${pgac_cv_type_long_int_64+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 if test "$cross_compiling" = yes; then
13831 # If cross-compiling, check the size reported by the compiler and
13832 # trust that the arithmetic works.
13833 cat >conftest.$ac_ext <<_ACEOF
13834 #line $LINENO "configure"
13835 #include "confdefs.h"
13837 #ifdef F77_DUMMY_MAIN
13838 # ifdef __cplusplus
13841 int F77_DUMMY_MAIN() { return 1; }
13846 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13853 rm -f conftest.$ac_objext
13854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13855 (eval $ac_compile) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } &&
13859 { ac_try='test -s conftest.$ac_objext'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 pgac_cv_type_long_int_64=yes
13867 echo "$as_me: failed program was:" >&5
13868 cat conftest.$ac_ext >&5
13869 pgac_cv_type_long_int_64=no
13871 rm -f conftest.$ac_objext conftest.$ac_ext
13873 cat >conftest.$ac_ext <<_ACEOF
13874 #line $LINENO "configure"
13875 #include "confdefs.h"
13876 typedef long int int64;
13879 * These are globals to discourage the compiler from folding all the
13880 * arithmetic tests down to compile-time constants.
13882 int64 a = 20000001;
13883 int64 b = 40000005;
13885 int does_int64_work()
13889 if (sizeof(int64) != 8)
13890 return 0; /* definitely not the right size */
13892 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13900 exit(! does_int64_work());
13903 rm -f conftest$ac_exeext
13904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13905 (eval $ac_link) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 pgac_cv_type_long_int_64=yes
13916 echo "$as_me: program exited with status $ac_status" >&5
13917 echo "$as_me: failed program was:" >&5
13918 cat conftest.$ac_ext >&5
13919 ( exit $ac_status )
13920 pgac_cv_type_long_int_64=no
13922 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13925 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13926 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13928 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13929 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13931 cat >>confdefs.h <<\_ACEOF
13932 #define HAVE_LONG_INT_64
13938 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13939 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13940 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13941 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 if test "$cross_compiling" = yes; then
13945 # If cross-compiling, check the size reported by the compiler and
13946 # trust that the arithmetic works.
13947 cat >conftest.$ac_ext <<_ACEOF
13948 #line $LINENO "configure"
13949 #include "confdefs.h"
13951 #ifdef F77_DUMMY_MAIN
13952 # ifdef __cplusplus
13955 int F77_DUMMY_MAIN() { return 1; }
13960 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13967 rm -f conftest.$ac_objext
13968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13969 (eval $ac_compile) 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -s conftest.$ac_objext'
13974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); }; }; then
13979 pgac_cv_type_long_long_int_64=yes
13981 echo "$as_me: failed program was:" >&5
13982 cat conftest.$ac_ext >&5
13983 pgac_cv_type_long_long_int_64=no
13985 rm -f conftest.$ac_objext conftest.$ac_ext
13987 cat >conftest.$ac_ext <<_ACEOF
13988 #line $LINENO "configure"
13989 #include "confdefs.h"
13990 typedef long long int int64;
13993 * These are globals to discourage the compiler from folding all the
13994 * arithmetic tests down to compile-time constants.
13996 int64 a = 20000001;
13997 int64 b = 40000005;
13999 int does_int64_work()
14003 if (sizeof(int64) != 8)
14004 return 0; /* definitely not the right size */
14006 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14014 exit(! does_int64_work());
14017 rm -f conftest$ac_exeext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14019 (eval $ac_link) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 pgac_cv_type_long_long_int_64=yes
14030 echo "$as_me: program exited with status $ac_status" >&5
14031 echo "$as_me: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14033 ( exit $ac_status )
14034 pgac_cv_type_long_long_int_64=no
14036 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14039 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14040 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14042 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14043 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14045 cat >>confdefs.h <<\_ACEOF
14046 #define HAVE_LONG_LONG_INT_64
14055 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14056 cat >conftest.$ac_ext <<_ACEOF
14057 #line $LINENO "configure"
14058 #include "confdefs.h"
14060 #define INT64CONST(x) x##LL
14061 long long int foo = INT64CONST(0x1234567890123456);
14063 #ifdef F77_DUMMY_MAIN
14064 # ifdef __cplusplus
14067 int F77_DUMMY_MAIN() { return 1; }
14077 rm -f conftest.$ac_objext
14078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14079 (eval $ac_compile) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_LL_CONSTANTS 1
14095 echo "$as_me: failed program was:" >&5
14096 cat conftest.$ac_ext >&5
14098 rm -f conftest.$ac_objext conftest.$ac_ext
14102 # If we found "long int" is 64 bits, assume snprintf handles it. If
14103 # we found we need to use "long long int", better check. We cope with
14104 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
14105 # work, fall back to our own snprintf emulation (which we know uses %lld).
14107 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14108 if test $pgac_need_repl_snprintf = no; then
14109 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14110 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14111 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 for pgac_format in '%lld' '%qd' '%I64d'; do
14115 if test "$cross_compiling" = yes; then
14116 pgac_cv_snprintf_long_long_int_format=cross; break
14118 cat >conftest.$ac_ext <<_ACEOF
14119 #line $LINENO "configure"
14120 #include "confdefs.h"
14122 typedef long long int int64;
14123 #define INT64_FORMAT "$pgac_format"
14125 int64 a = 20000001;
14126 int64 b = 40000005;
14128 int does_int64_snprintf_work()
14133 if (sizeof(int64) != 8)
14134 return 0; /* doesn't look like the right size */
14137 snprintf(buf, 100, INT64_FORMAT, c);
14138 if (strcmp(buf, "800000140000005") != 0)
14139 return 0; /* either multiply or snprintf is busted */
14143 exit(! does_int64_snprintf_work());
14146 rm -f conftest$ac_exeext
14147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14148 (eval $ac_link) 2>&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14159 echo "$as_me: program exited with status $ac_status" >&5
14160 echo "$as_me: failed program was:" >&5
14161 cat conftest.$ac_ext >&5
14163 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14168 LONG_LONG_INT_FORMAT=''
14170 case $pgac_cv_snprintf_long_long_int_format in
14171 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
14172 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
14173 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
14174 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
14175 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14176 *) echo "$as_me:$LINENO: result: none" >&5
14177 echo "${ECHO_T}none" >&6;;
14179 if test "$LONG_LONG_INT_FORMAT" = ""; then
14180 # Force usage of our own snprintf, since system snprintf is broken
14181 pgac_need_repl_snprintf=yes
14182 LONG_LONG_INT_FORMAT='%lld'
14185 # Here if we previously decided we needed to use our own snprintf
14186 LONG_LONG_INT_FORMAT='%lld'
14188 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14189 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14190 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14192 # Here if we are not using 'long long int' at all
14193 INT64_FORMAT='"%ld"'
14194 UINT64_FORMAT='"%lu"'
14198 cat >>confdefs.h <<_ACEOF
14199 #define INT64_FORMAT $INT64_FORMAT
14204 cat >>confdefs.h <<_ACEOF
14205 #define UINT64_FORMAT $UINT64_FORMAT
14209 if test $pgac_need_repl_snprintf = yes; then
14210 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14213 # Need a #define for the size of Datum (unsigned long)
14214 echo "$as_me:$LINENO: checking for unsigned long" >&5
14215 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14216 if test "${ac_cv_type_unsigned_long+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14221 #include "confdefs.h"
14222 $ac_includes_default
14223 #ifdef F77_DUMMY_MAIN
14224 # ifdef __cplusplus
14227 int F77_DUMMY_MAIN() { return 1; }
14232 if ((unsigned long *) 0)
14234 if (sizeof (unsigned long))
14240 rm -f conftest.$ac_objext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242 (eval $ac_compile) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 ac_cv_type_unsigned_long=yes
14254 echo "$as_me: failed program was:" >&5
14255 cat conftest.$ac_ext >&5
14256 ac_cv_type_unsigned_long=no
14258 rm -f conftest.$ac_objext conftest.$ac_ext
14260 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14261 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14263 echo "$as_me:$LINENO: checking size of unsigned long" >&5
14264 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14265 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 if test "$ac_cv_type_unsigned_long" = yes; then
14269 # The cast to unsigned long works around a bug in the HP C Compiler
14270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14272 # This bug is HP SR number 8606223364.
14273 if test "$cross_compiling" = yes; then
14274 # Depending upon the size, compute the lo and hi bounds.
14275 cat >conftest.$ac_ext <<_ACEOF
14276 #line $LINENO "configure"
14277 #include "confdefs.h"
14278 $ac_includes_default
14279 #ifdef F77_DUMMY_MAIN
14280 # ifdef __cplusplus
14283 int F77_DUMMY_MAIN() { return 1; }
14288 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14295 rm -f conftest.$ac_objext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14297 (eval $ac_compile) 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -s conftest.$ac_objext'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14309 cat >conftest.$ac_ext <<_ACEOF
14310 #line $LINENO "configure"
14311 #include "confdefs.h"
14312 $ac_includes_default
14313 #ifdef F77_DUMMY_MAIN
14314 # ifdef __cplusplus
14317 int F77_DUMMY_MAIN() { return 1; }
14322 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14329 rm -f conftest.$ac_objext
14330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14331 (eval $ac_compile) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -s conftest.$ac_objext'
14336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337 (eval $ac_try) 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_hi=$ac_mid; break
14343 echo "$as_me: failed program was:" >&5
14344 cat conftest.$ac_ext >&5
14345 ac_lo=`expr $ac_mid + 1`
14346 if test $ac_lo -le $ac_mid; then
14350 ac_mid=`expr 2 '*' $ac_mid + 1`
14352 rm -f conftest.$ac_objext conftest.$ac_ext
14355 echo "$as_me: failed program was:" >&5
14356 cat conftest.$ac_ext >&5
14357 cat >conftest.$ac_ext <<_ACEOF
14358 #line $LINENO "configure"
14359 #include "confdefs.h"
14360 $ac_includes_default
14361 #ifdef F77_DUMMY_MAIN
14362 # ifdef __cplusplus
14365 int F77_DUMMY_MAIN() { return 1; }
14370 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14377 rm -f conftest.$ac_objext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379 (eval $ac_compile) 2>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -s conftest.$ac_objext'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14391 cat >conftest.$ac_ext <<_ACEOF
14392 #line $LINENO "configure"
14393 #include "confdefs.h"
14394 $ac_includes_default
14395 #ifdef F77_DUMMY_MAIN
14396 # ifdef __cplusplus
14399 int F77_DUMMY_MAIN() { return 1; }
14404 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14411 rm -f conftest.$ac_objext
14412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14413 (eval $ac_compile) 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); } &&
14417 { ac_try='test -s conftest.$ac_objext'
14418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14419 (eval $ac_try) 2>&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); }; }; then
14423 ac_lo=$ac_mid; break
14425 echo "$as_me: failed program was:" >&5
14426 cat conftest.$ac_ext >&5
14427 ac_hi=`expr '(' $ac_mid ')' - 1`
14428 if test $ac_mid -le $ac_hi; then
14432 ac_mid=`expr 2 '*' $ac_mid`
14434 rm -f conftest.$ac_objext conftest.$ac_ext
14437 echo "$as_me: failed program was:" >&5
14438 cat conftest.$ac_ext >&5
14441 rm -f conftest.$ac_objext conftest.$ac_ext
14443 rm -f conftest.$ac_objext conftest.$ac_ext
14444 # Binary search between lo and hi bounds.
14445 while test "x$ac_lo" != "x$ac_hi"; do
14446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14447 cat >conftest.$ac_ext <<_ACEOF
14448 #line $LINENO "configure"
14449 #include "confdefs.h"
14450 $ac_includes_default
14451 #ifdef F77_DUMMY_MAIN
14452 # ifdef __cplusplus
14455 int F77_DUMMY_MAIN() { return 1; }
14460 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469 (eval $ac_compile) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } &&
14473 { ac_try='test -s conftest.$ac_objext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14481 echo "$as_me: failed program was:" >&5
14482 cat conftest.$ac_ext >&5
14483 ac_lo=`expr '(' $ac_mid ')' + 1`
14485 rm -f conftest.$ac_objext conftest.$ac_ext
14488 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14489 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14490 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14491 { (exit 1); exit 1; }; } ;;
14494 if test "$cross_compiling" = yes; then
14495 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14496 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14497 { (exit 1); exit 1; }; }
14499 cat >conftest.$ac_ext <<_ACEOF
14500 #line $LINENO "configure"
14501 #include "confdefs.h"
14502 $ac_includes_default
14503 long longval () { return (long) (sizeof (unsigned long)); }
14504 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14506 #include <stdlib.h>
14507 #ifdef F77_DUMMY_MAIN
14508 # ifdef __cplusplus
14511 int F77_DUMMY_MAIN() { return 1; }
14517 FILE *f = fopen ("conftest.val", "w");
14520 if (((long) (sizeof (unsigned long))) < 0)
14522 long i = longval ();
14523 if (i != ((long) (sizeof (unsigned long))))
14525 fprintf (f, "%ld\n", i);
14529 unsigned long i = ulongval ();
14530 if (i != ((long) (sizeof (unsigned long))))
14532 fprintf (f, "%lu\n", i);
14534 exit (ferror (f) || fclose (f) != 0);
14540 rm -f conftest$ac_exeext
14541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14542 (eval $ac_link) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14551 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14553 echo "$as_me: program exited with status $ac_status" >&5
14554 echo "$as_me: failed program was:" >&5
14555 cat conftest.$ac_ext >&5
14556 ( exit $ac_status )
14557 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14558 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14559 { (exit 1); exit 1; }; }
14561 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14566 ac_cv_sizeof_unsigned_long=0
14569 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14570 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14571 cat >>confdefs.h <<_ACEOF
14572 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14577 # Determine memory alignment requirements for the basic C data types.
14579 echo "$as_me:$LINENO: checking for short" >&5
14580 echo $ECHO_N "checking for short... $ECHO_C" >&6
14581 if test "${ac_cv_type_short+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 cat >conftest.$ac_ext <<_ACEOF
14585 #line $LINENO "configure"
14586 #include "confdefs.h"
14587 $ac_includes_default
14588 #ifdef F77_DUMMY_MAIN
14589 # ifdef __cplusplus
14592 int F77_DUMMY_MAIN() { return 1; }
14599 if (sizeof (short))
14605 rm -f conftest.$ac_objext
14606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14607 (eval $ac_compile) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
14611 { ac_try='test -s conftest.$ac_objext'
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_cv_type_short=yes
14619 echo "$as_me: failed program was:" >&5
14620 cat conftest.$ac_ext >&5
14621 ac_cv_type_short=no
14623 rm -f conftest.$ac_objext conftest.$ac_ext
14625 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14626 echo "${ECHO_T}$ac_cv_type_short" >&6
14628 echo "$as_me:$LINENO: checking alignment of short" >&5
14629 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14630 if test "${pgac_cv_alignof_short+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14633 if test "$ac_cv_type_short" = yes; then
14634 if test "$cross_compiling" = yes; then
14635 # Depending upon the size, compute the lo and hi bounds.
14636 cat >conftest.$ac_ext <<_ACEOF
14637 #line $LINENO "configure"
14638 #include "confdefs.h"
14639 $ac_includes_default
14640 struct { char filler; short field; } pgac_struct;
14641 #ifdef F77_DUMMY_MAIN
14642 # ifdef __cplusplus
14645 int F77_DUMMY_MAIN() { return 1; }
14650 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14657 rm -f conftest.$ac_objext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14659 (eval $ac_compile) 2>&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } &&
14663 { ac_try='test -s conftest.$ac_objext'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; }; then
14671 cat >conftest.$ac_ext <<_ACEOF
14672 #line $LINENO "configure"
14673 #include "confdefs.h"
14674 $ac_includes_default
14675 struct { char filler; short field; } pgac_struct;
14676 #ifdef F77_DUMMY_MAIN
14677 # ifdef __cplusplus
14680 int F77_DUMMY_MAIN() { return 1; }
14685 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14692 rm -f conftest.$ac_objext
14693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14694 (eval $ac_compile) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
14698 { ac_try='test -s conftest.$ac_objext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_hi=$ac_mid; break
14706 echo "$as_me: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 ac_lo=`expr $ac_mid + 1`
14709 if test $ac_lo -le $ac_mid; then
14713 ac_mid=`expr 2 '*' $ac_mid + 1`
14715 rm -f conftest.$ac_objext conftest.$ac_ext
14718 echo "$as_me: failed program was:" >&5
14719 cat conftest.$ac_ext >&5
14720 cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14722 #include "confdefs.h"
14723 $ac_includes_default
14724 struct { char filler; short field; } pgac_struct;
14725 #ifdef F77_DUMMY_MAIN
14726 # ifdef __cplusplus
14729 int F77_DUMMY_MAIN() { return 1; }
14734 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14741 rm -f conftest.$ac_objext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14743 (eval $ac_compile) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -s conftest.$ac_objext'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14755 cat >conftest.$ac_ext <<_ACEOF
14756 #line $LINENO "configure"
14757 #include "confdefs.h"
14758 $ac_includes_default
14759 struct { char filler; short field; } pgac_struct;
14760 #ifdef F77_DUMMY_MAIN
14761 # ifdef __cplusplus
14764 int F77_DUMMY_MAIN() { return 1; }
14769 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14776 rm -f conftest.$ac_objext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14778 (eval $ac_compile) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_lo=$ac_mid; break
14790 echo "$as_me: failed program was:" >&5
14791 cat conftest.$ac_ext >&5
14792 ac_hi=`expr '(' $ac_mid ')' - 1`
14793 if test $ac_mid -le $ac_hi; then
14797 ac_mid=`expr 2 '*' $ac_mid`
14799 rm -f conftest.$ac_objext conftest.$ac_ext
14802 echo "$as_me: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14806 rm -f conftest.$ac_objext conftest.$ac_ext
14808 rm -f conftest.$ac_objext conftest.$ac_ext
14809 # Binary search between lo and hi bounds.
14810 while test "x$ac_lo" != "x$ac_hi"; do
14811 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14812 cat >conftest.$ac_ext <<_ACEOF
14813 #line $LINENO "configure"
14814 #include "confdefs.h"
14815 $ac_includes_default
14816 struct { char filler; short field; } pgac_struct;
14817 #ifdef F77_DUMMY_MAIN
14818 # ifdef __cplusplus
14821 int F77_DUMMY_MAIN() { return 1; }
14826 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14833 rm -f conftest.$ac_objext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14835 (eval $ac_compile) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14847 echo "$as_me: failed program was:" >&5
14848 cat conftest.$ac_ext >&5
14849 ac_lo=`expr '(' $ac_mid ')' + 1`
14851 rm -f conftest.$ac_objext conftest.$ac_ext
14854 ?*) pgac_cv_alignof_short=$ac_lo;;
14855 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14856 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14857 { (exit 1); exit 1; }; } ;;
14860 if test "$cross_compiling" = yes; then
14861 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14862 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14863 { (exit 1); exit 1; }; }
14865 cat >conftest.$ac_ext <<_ACEOF
14866 #line $LINENO "configure"
14867 #include "confdefs.h"
14868 $ac_includes_default
14869 struct { char filler; short field; } pgac_struct;
14870 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14871 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14873 #include <stdlib.h>
14874 #ifdef F77_DUMMY_MAIN
14875 # ifdef __cplusplus
14878 int F77_DUMMY_MAIN() { return 1; }
14884 FILE *f = fopen ("conftest.val", "w");
14887 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14889 long i = longval ();
14890 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14892 fprintf (f, "%ld\n", i);
14896 unsigned long i = ulongval ();
14897 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14899 fprintf (f, "%lu\n", i);
14901 exit (ferror (f) || fclose (f) != 0);
14907 rm -f conftest$ac_exeext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14909 (eval $ac_link) 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14914 (eval $ac_try) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); }; }; then
14918 pgac_cv_alignof_short=`cat conftest.val`
14920 echo "$as_me: program exited with status $ac_status" >&5
14921 echo "$as_me: failed program was:" >&5
14922 cat conftest.$ac_ext >&5
14923 ( exit $ac_status )
14924 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14925 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14926 { (exit 1); exit 1; }; }
14928 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14933 pgac_cv_alignof_short=0
14936 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14937 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14938 cat >>confdefs.h <<_ACEOF
14939 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14943 echo "$as_me:$LINENO: checking for int" >&5
14944 echo $ECHO_N "checking for int... $ECHO_C" >&6
14945 if test "${ac_cv_type_int+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 cat >conftest.$ac_ext <<_ACEOF
14949 #line $LINENO "configure"
14950 #include "confdefs.h"
14951 $ac_includes_default
14952 #ifdef F77_DUMMY_MAIN
14953 # ifdef __cplusplus
14956 int F77_DUMMY_MAIN() { return 1; }
14969 rm -f conftest.$ac_objext
14970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14971 (eval $ac_compile) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -s conftest.$ac_objext'
14976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977 (eval $ac_try) 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; }; then
14983 echo "$as_me: failed program was:" >&5
14984 cat conftest.$ac_ext >&5
14987 rm -f conftest.$ac_objext conftest.$ac_ext
14989 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14990 echo "${ECHO_T}$ac_cv_type_int" >&6
14992 echo "$as_me:$LINENO: checking alignment of int" >&5
14993 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14994 if test "${pgac_cv_alignof_int+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 if test "$ac_cv_type_int" = yes; then
14998 if test "$cross_compiling" = yes; then
14999 # Depending upon the size, compute the lo and hi bounds.
15000 cat >conftest.$ac_ext <<_ACEOF
15001 #line $LINENO "configure"
15002 #include "confdefs.h"
15003 $ac_includes_default
15004 struct { char filler; int field; } pgac_struct;
15005 #ifdef F77_DUMMY_MAIN
15006 # ifdef __cplusplus
15009 int F77_DUMMY_MAIN() { return 1; }
15014 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15021 rm -f conftest.$ac_objext
15022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15023 (eval $ac_compile) 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; }; then
15035 cat >conftest.$ac_ext <<_ACEOF
15036 #line $LINENO "configure"
15037 #include "confdefs.h"
15038 $ac_includes_default
15039 struct { char filler; int field; } pgac_struct;
15040 #ifdef F77_DUMMY_MAIN
15041 # ifdef __cplusplus
15044 int F77_DUMMY_MAIN() { return 1; }
15049 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15056 rm -f conftest.$ac_objext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15068 ac_hi=$ac_mid; break
15070 echo "$as_me: failed program was:" >&5
15071 cat conftest.$ac_ext >&5
15072 ac_lo=`expr $ac_mid + 1`
15073 if test $ac_lo -le $ac_mid; then
15077 ac_mid=`expr 2 '*' $ac_mid + 1`
15079 rm -f conftest.$ac_objext conftest.$ac_ext
15082 echo "$as_me: failed program was:" >&5
15083 cat conftest.$ac_ext >&5
15084 cat >conftest.$ac_ext <<_ACEOF
15085 #line $LINENO "configure"
15086 #include "confdefs.h"
15087 $ac_includes_default
15088 struct { char filler; int field; } pgac_struct;
15089 #ifdef F77_DUMMY_MAIN
15090 # ifdef __cplusplus
15093 int F77_DUMMY_MAIN() { return 1; }
15098 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15105 rm -f conftest.$ac_objext
15106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107 (eval $ac_compile) 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); } &&
15111 { ac_try='test -s conftest.$ac_objext'
15112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113 (eval $ac_try) 2>&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; }; then
15119 cat >conftest.$ac_ext <<_ACEOF
15120 #line $LINENO "configure"
15121 #include "confdefs.h"
15122 $ac_includes_default
15123 struct { char filler; int field; } pgac_struct;
15124 #ifdef F77_DUMMY_MAIN
15125 # ifdef __cplusplus
15128 int F77_DUMMY_MAIN() { return 1; }
15133 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15140 rm -f conftest.$ac_objext
15141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15142 (eval $ac_compile) 2>&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try='test -s conftest.$ac_objext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ac_lo=$ac_mid; break
15154 echo "$as_me: failed program was:" >&5
15155 cat conftest.$ac_ext >&5
15156 ac_hi=`expr '(' $ac_mid ')' - 1`
15157 if test $ac_mid -le $ac_hi; then
15161 ac_mid=`expr 2 '*' $ac_mid`
15163 rm -f conftest.$ac_objext conftest.$ac_ext
15166 echo "$as_me: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15170 rm -f conftest.$ac_objext conftest.$ac_ext
15172 rm -f conftest.$ac_objext conftest.$ac_ext
15173 # Binary search between lo and hi bounds.
15174 while test "x$ac_lo" != "x$ac_hi"; do
15175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15176 cat >conftest.$ac_ext <<_ACEOF
15177 #line $LINENO "configure"
15178 #include "confdefs.h"
15179 $ac_includes_default
15180 struct { char filler; int field; } pgac_struct;
15181 #ifdef F77_DUMMY_MAIN
15182 # ifdef __cplusplus
15185 int F77_DUMMY_MAIN() { return 1; }
15190 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } &&
15203 { ac_try='test -s conftest.$ac_objext'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; }; then
15211 echo "$as_me: failed program was:" >&5
15212 cat conftest.$ac_ext >&5
15213 ac_lo=`expr '(' $ac_mid ')' + 1`
15215 rm -f conftest.$ac_objext conftest.$ac_ext
15218 ?*) pgac_cv_alignof_int=$ac_lo;;
15219 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15220 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15221 { (exit 1); exit 1; }; } ;;
15224 if test "$cross_compiling" = yes; then
15225 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15226 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15227 { (exit 1); exit 1; }; }
15229 cat >conftest.$ac_ext <<_ACEOF
15230 #line $LINENO "configure"
15231 #include "confdefs.h"
15232 $ac_includes_default
15233 struct { char filler; int field; } pgac_struct;
15234 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15235 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15237 #include <stdlib.h>
15238 #ifdef F77_DUMMY_MAIN
15239 # ifdef __cplusplus
15242 int F77_DUMMY_MAIN() { return 1; }
15248 FILE *f = fopen ("conftest.val", "w");
15251 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15253 long i = longval ();
15254 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15256 fprintf (f, "%ld\n", i);
15260 unsigned long i = ulongval ();
15261 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15263 fprintf (f, "%lu\n", i);
15265 exit (ferror (f) || fclose (f) != 0);
15271 rm -f conftest$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273 (eval $ac_link) 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 pgac_cv_alignof_int=`cat conftest.val`
15284 echo "$as_me: program exited with status $ac_status" >&5
15285 echo "$as_me: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15287 ( exit $ac_status )
15288 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15289 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15290 { (exit 1); exit 1; }; }
15292 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15297 pgac_cv_alignof_int=0
15300 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15301 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15302 cat >>confdefs.h <<_ACEOF
15303 #define ALIGNOF_INT $pgac_cv_alignof_int
15307 echo "$as_me:$LINENO: checking for long" >&5
15308 echo $ECHO_N "checking for long... $ECHO_C" >&6
15309 if test "${ac_cv_type_long+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 cat >conftest.$ac_ext <<_ACEOF
15313 #line $LINENO "configure"
15314 #include "confdefs.h"
15315 $ac_includes_default
15316 #ifdef F77_DUMMY_MAIN
15317 # ifdef __cplusplus
15320 int F77_DUMMY_MAIN() { return 1; }
15333 rm -f conftest.$ac_objext
15334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15335 (eval $ac_compile) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest.$ac_objext'
15340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15341 (eval $ac_try) 2>&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); }; }; then
15345 ac_cv_type_long=yes
15347 echo "$as_me: failed program was:" >&5
15348 cat conftest.$ac_ext >&5
15351 rm -f conftest.$ac_objext conftest.$ac_ext
15353 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15354 echo "${ECHO_T}$ac_cv_type_long" >&6
15356 echo "$as_me:$LINENO: checking alignment of long" >&5
15357 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15358 if test "${pgac_cv_alignof_long+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15361 if test "$ac_cv_type_long" = yes; then
15362 if test "$cross_compiling" = yes; then
15363 # Depending upon the size, compute the lo and hi bounds.
15364 cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15366 #include "confdefs.h"
15367 $ac_includes_default
15368 struct { char filler; long field; } pgac_struct;
15369 #ifdef F77_DUMMY_MAIN
15370 # ifdef __cplusplus
15373 int F77_DUMMY_MAIN() { return 1; }
15378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15385 rm -f conftest.$ac_objext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15387 (eval $ac_compile) 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15399 cat >conftest.$ac_ext <<_ACEOF
15400 #line $LINENO "configure"
15401 #include "confdefs.h"
15402 $ac_includes_default
15403 struct { char filler; long field; } pgac_struct;
15404 #ifdef F77_DUMMY_MAIN
15405 # ifdef __cplusplus
15408 int F77_DUMMY_MAIN() { return 1; }
15413 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15420 rm -f conftest.$ac_objext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422 (eval $ac_compile) 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } &&
15426 { ac_try='test -s conftest.$ac_objext'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 ac_hi=$ac_mid; break
15434 echo "$as_me: failed program was:" >&5
15435 cat conftest.$ac_ext >&5
15436 ac_lo=`expr $ac_mid + 1`
15437 if test $ac_lo -le $ac_mid; then
15441 ac_mid=`expr 2 '*' $ac_mid + 1`
15443 rm -f conftest.$ac_objext conftest.$ac_ext
15446 echo "$as_me: failed program was:" >&5
15447 cat conftest.$ac_ext >&5
15448 cat >conftest.$ac_ext <<_ACEOF
15449 #line $LINENO "configure"
15450 #include "confdefs.h"
15451 $ac_includes_default
15452 struct { char filler; long field; } pgac_struct;
15453 #ifdef F77_DUMMY_MAIN
15454 # ifdef __cplusplus
15457 int F77_DUMMY_MAIN() { return 1; }
15462 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15469 rm -f conftest.$ac_objext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15471 (eval $ac_compile) 2>&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } &&
15475 { ac_try='test -s conftest.$ac_objext'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15483 cat >conftest.$ac_ext <<_ACEOF
15484 #line $LINENO "configure"
15485 #include "confdefs.h"
15486 $ac_includes_default
15487 struct { char filler; long field; } pgac_struct;
15488 #ifdef F77_DUMMY_MAIN
15489 # ifdef __cplusplus
15492 int F77_DUMMY_MAIN() { return 1; }
15497 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15504 rm -f conftest.$ac_objext
15505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15506 (eval $ac_compile) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -s conftest.$ac_objext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 ac_lo=$ac_mid; break
15518 echo "$as_me: failed program was:" >&5
15519 cat conftest.$ac_ext >&5
15520 ac_hi=`expr '(' $ac_mid ')' - 1`
15521 if test $ac_mid -le $ac_hi; then
15525 ac_mid=`expr 2 '*' $ac_mid`
15527 rm -f conftest.$ac_objext conftest.$ac_ext
15530 echo "$as_me: failed program was:" >&5
15531 cat conftest.$ac_ext >&5
15534 rm -f conftest.$ac_objext conftest.$ac_ext
15536 rm -f conftest.$ac_objext conftest.$ac_ext
15537 # Binary search between lo and hi bounds.
15538 while test "x$ac_lo" != "x$ac_hi"; do
15539 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15540 cat >conftest.$ac_ext <<_ACEOF
15541 #line $LINENO "configure"
15542 #include "confdefs.h"
15543 $ac_includes_default
15544 struct { char filler; long field; } pgac_struct;
15545 #ifdef F77_DUMMY_MAIN
15546 # ifdef __cplusplus
15549 int F77_DUMMY_MAIN() { return 1; }
15554 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15561 rm -f conftest.$ac_objext
15562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15563 (eval $ac_compile) 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15575 echo "$as_me: failed program was:" >&5
15576 cat conftest.$ac_ext >&5
15577 ac_lo=`expr '(' $ac_mid ')' + 1`
15579 rm -f conftest.$ac_objext conftest.$ac_ext
15582 ?*) pgac_cv_alignof_long=$ac_lo;;
15583 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15584 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15585 { (exit 1); exit 1; }; } ;;
15588 if test "$cross_compiling" = yes; then
15589 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15590 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15591 { (exit 1); exit 1; }; }
15593 cat >conftest.$ac_ext <<_ACEOF
15594 #line $LINENO "configure"
15595 #include "confdefs.h"
15596 $ac_includes_default
15597 struct { char filler; long field; } pgac_struct;
15598 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15599 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15601 #include <stdlib.h>
15602 #ifdef F77_DUMMY_MAIN
15603 # ifdef __cplusplus
15606 int F77_DUMMY_MAIN() { return 1; }
15612 FILE *f = fopen ("conftest.val", "w");
15615 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15617 long i = longval ();
15618 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15620 fprintf (f, "%ld\n", i);
15624 unsigned long i = ulongval ();
15625 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15627 fprintf (f, "%lu\n", i);
15629 exit (ferror (f) || fclose (f) != 0);
15635 rm -f conftest$ac_exeext
15636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15637 (eval $ac_link) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15642 (eval $ac_try) 2>&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); }; }; then
15646 pgac_cv_alignof_long=`cat conftest.val`
15648 echo "$as_me: program exited with status $ac_status" >&5
15649 echo "$as_me: failed program was:" >&5
15650 cat conftest.$ac_ext >&5
15651 ( exit $ac_status )
15652 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15653 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15654 { (exit 1); exit 1; }; }
15656 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15661 pgac_cv_alignof_long=0
15664 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15665 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15666 cat >>confdefs.h <<_ACEOF
15667 #define ALIGNOF_LONG $pgac_cv_alignof_long
15671 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15672 echo "$as_me:$LINENO: checking for long long int" >&5
15673 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15674 if test "${ac_cv_type_long_long_int+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15678 #line $LINENO "configure"
15679 #include "confdefs.h"
15680 $ac_includes_default
15681 #ifdef F77_DUMMY_MAIN
15682 # ifdef __cplusplus
15685 int F77_DUMMY_MAIN() { return 1; }
15690 if ((long long int *) 0)
15692 if (sizeof (long long int))
15698 rm -f conftest.$ac_objext
15699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15700 (eval $ac_compile) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } &&
15704 { ac_try='test -s conftest.$ac_objext'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; }; then
15710 ac_cv_type_long_long_int=yes
15712 echo "$as_me: failed program was:" >&5
15713 cat conftest.$ac_ext >&5
15714 ac_cv_type_long_long_int=no
15716 rm -f conftest.$ac_objext conftest.$ac_ext
15718 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15719 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15721 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15722 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15723 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 if test "$ac_cv_type_long_long_int" = yes; then
15727 if test "$cross_compiling" = yes; then
15728 # Depending upon the size, compute the lo and hi bounds.
15729 cat >conftest.$ac_ext <<_ACEOF
15730 #line $LINENO "configure"
15731 #include "confdefs.h"
15732 $ac_includes_default
15733 struct { char filler; long long int field; } pgac_struct;
15734 #ifdef F77_DUMMY_MAIN
15735 # ifdef __cplusplus
15738 int F77_DUMMY_MAIN() { return 1; }
15743 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15750 rm -f conftest.$ac_objext
15751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752 (eval $ac_compile) 2>&5
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } &&
15756 { ac_try='test -s conftest.$ac_objext'
15757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758 (eval $ac_try) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); }; }; then
15764 cat >conftest.$ac_ext <<_ACEOF
15765 #line $LINENO "configure"
15766 #include "confdefs.h"
15767 $ac_includes_default
15768 struct { char filler; long long int field; } pgac_struct;
15769 #ifdef F77_DUMMY_MAIN
15770 # ifdef __cplusplus
15773 int F77_DUMMY_MAIN() { return 1; }
15778 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15785 rm -f conftest.$ac_objext
15786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15787 (eval $ac_compile) 2>&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -s conftest.$ac_objext'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; }; then
15797 ac_hi=$ac_mid; break
15799 echo "$as_me: failed program was:" >&5
15800 cat conftest.$ac_ext >&5
15801 ac_lo=`expr $ac_mid + 1`
15802 if test $ac_lo -le $ac_mid; then
15806 ac_mid=`expr 2 '*' $ac_mid + 1`
15808 rm -f conftest.$ac_objext conftest.$ac_ext
15811 echo "$as_me: failed program was:" >&5
15812 cat conftest.$ac_ext >&5
15813 cat >conftest.$ac_ext <<_ACEOF
15814 #line $LINENO "configure"
15815 #include "confdefs.h"
15816 $ac_includes_default
15817 struct { char filler; long long int field; } pgac_struct;
15818 #ifdef F77_DUMMY_MAIN
15819 # ifdef __cplusplus
15822 int F77_DUMMY_MAIN() { return 1; }
15827 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15834 rm -f conftest.$ac_objext
15835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15836 (eval $ac_compile) 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
15840 { ac_try='test -s conftest.$ac_objext'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; }; then
15848 cat >conftest.$ac_ext <<_ACEOF
15849 #line $LINENO "configure"
15850 #include "confdefs.h"
15851 $ac_includes_default
15852 struct { char filler; long long int field; } pgac_struct;
15853 #ifdef F77_DUMMY_MAIN
15854 # ifdef __cplusplus
15857 int F77_DUMMY_MAIN() { return 1; }
15862 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15869 rm -f conftest.$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -s conftest.$ac_objext'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; }; then
15881 ac_lo=$ac_mid; break
15883 echo "$as_me: failed program was:" >&5
15884 cat conftest.$ac_ext >&5
15885 ac_hi=`expr '(' $ac_mid ')' - 1`
15886 if test $ac_mid -le $ac_hi; then
15890 ac_mid=`expr 2 '*' $ac_mid`
15892 rm -f conftest.$ac_objext conftest.$ac_ext
15895 echo "$as_me: failed program was:" >&5
15896 cat conftest.$ac_ext >&5
15899 rm -f conftest.$ac_objext conftest.$ac_ext
15901 rm -f conftest.$ac_objext conftest.$ac_ext
15902 # Binary search between lo and hi bounds.
15903 while test "x$ac_lo" != "x$ac_hi"; do
15904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15905 cat >conftest.$ac_ext <<_ACEOF
15906 #line $LINENO "configure"
15907 #include "confdefs.h"
15908 $ac_includes_default
15909 struct { char filler; long long int field; } pgac_struct;
15910 #ifdef F77_DUMMY_MAIN
15911 # ifdef __cplusplus
15914 int F77_DUMMY_MAIN() { return 1; }
15919 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15926 rm -f conftest.$ac_objext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15928 (eval $ac_compile) 2>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } &&
15932 { ac_try='test -s conftest.$ac_objext'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; }; then
15940 echo "$as_me: failed program was:" >&5
15941 cat conftest.$ac_ext >&5
15942 ac_lo=`expr '(' $ac_mid ')' + 1`
15944 rm -f conftest.$ac_objext conftest.$ac_ext
15947 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15948 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15949 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15950 { (exit 1); exit 1; }; } ;;
15953 if test "$cross_compiling" = yes; then
15954 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15955 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15956 { (exit 1); exit 1; }; }
15958 cat >conftest.$ac_ext <<_ACEOF
15959 #line $LINENO "configure"
15960 #include "confdefs.h"
15961 $ac_includes_default
15962 struct { char filler; long long int field; } pgac_struct;
15963 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15964 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15966 #include <stdlib.h>
15967 #ifdef F77_DUMMY_MAIN
15968 # ifdef __cplusplus
15971 int F77_DUMMY_MAIN() { return 1; }
15977 FILE *f = fopen ("conftest.val", "w");
15980 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15982 long i = longval ();
15983 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15985 fprintf (f, "%ld\n", i);
15989 unsigned long i = ulongval ();
15990 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15992 fprintf (f, "%lu\n", i);
15994 exit (ferror (f) || fclose (f) != 0);
16000 rm -f conftest$ac_exeext
16001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16002 (eval $ac_link) 2>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 pgac_cv_alignof_long_long_int=`cat conftest.val`
16013 echo "$as_me: program exited with status $ac_status" >&5
16014 echo "$as_me: failed program was:" >&5
16015 cat conftest.$ac_ext >&5
16016 ( exit $ac_status )
16017 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16018 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16019 { (exit 1); exit 1; }; }
16021 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16026 pgac_cv_alignof_long_long_int=0
16029 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16030 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16031 cat >>confdefs.h <<_ACEOF
16032 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16037 echo "$as_me:$LINENO: checking for double" >&5
16038 echo $ECHO_N "checking for double... $ECHO_C" >&6
16039 if test "${ac_cv_type_double+set}" = set; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 cat >conftest.$ac_ext <<_ACEOF
16043 #line $LINENO "configure"
16044 #include "confdefs.h"
16045 $ac_includes_default
16046 #ifdef F77_DUMMY_MAIN
16047 # ifdef __cplusplus
16050 int F77_DUMMY_MAIN() { return 1; }
16057 if (sizeof (double))
16063 rm -f conftest.$ac_objext
16064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16065 (eval $ac_compile) 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } &&
16069 { ac_try='test -s conftest.$ac_objext'
16070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16071 (eval $ac_try) 2>&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); }; }; then
16075 ac_cv_type_double=yes
16077 echo "$as_me: failed program was:" >&5
16078 cat conftest.$ac_ext >&5
16079 ac_cv_type_double=no
16081 rm -f conftest.$ac_objext conftest.$ac_ext
16083 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16084 echo "${ECHO_T}$ac_cv_type_double" >&6
16086 echo "$as_me:$LINENO: checking alignment of double" >&5
16087 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16088 if test "${pgac_cv_alignof_double+set}" = set; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 if test "$ac_cv_type_double" = yes; then
16092 if test "$cross_compiling" = yes; then
16093 # Depending upon the size, compute the lo and hi bounds.
16094 cat >conftest.$ac_ext <<_ACEOF
16095 #line $LINENO "configure"
16096 #include "confdefs.h"
16097 $ac_includes_default
16098 struct { char filler; double field; } pgac_struct;
16099 #ifdef F77_DUMMY_MAIN
16100 # ifdef __cplusplus
16103 int F77_DUMMY_MAIN() { return 1; }
16108 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16115 rm -f conftest.$ac_objext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16117 (eval $ac_compile) 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -s conftest.$ac_objext'
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
16129 cat >conftest.$ac_ext <<_ACEOF
16130 #line $LINENO "configure"
16131 #include "confdefs.h"
16132 $ac_includes_default
16133 struct { char filler; double field; } pgac_struct;
16134 #ifdef F77_DUMMY_MAIN
16135 # ifdef __cplusplus
16138 int F77_DUMMY_MAIN() { return 1; }
16143 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16150 rm -f conftest.$ac_objext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16152 (eval $ac_compile) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } &&
16156 { ac_try='test -s conftest.$ac_objext'
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_hi=$ac_mid; break
16164 echo "$as_me: failed program was:" >&5
16165 cat conftest.$ac_ext >&5
16166 ac_lo=`expr $ac_mid + 1`
16167 if test $ac_lo -le $ac_mid; then
16171 ac_mid=`expr 2 '*' $ac_mid + 1`
16173 rm -f conftest.$ac_objext conftest.$ac_ext
16176 echo "$as_me: failed program was:" >&5
16177 cat conftest.$ac_ext >&5
16178 cat >conftest.$ac_ext <<_ACEOF
16179 #line $LINENO "configure"
16180 #include "confdefs.h"
16181 $ac_includes_default
16182 struct { char filler; double field; } pgac_struct;
16183 #ifdef F77_DUMMY_MAIN
16184 # ifdef __cplusplus
16187 int F77_DUMMY_MAIN() { return 1; }
16192 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16199 rm -f conftest.$ac_objext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16201 (eval $ac_compile) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } &&
16205 { ac_try='test -s conftest.$ac_objext'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16213 cat >conftest.$ac_ext <<_ACEOF
16214 #line $LINENO "configure"
16215 #include "confdefs.h"
16216 $ac_includes_default
16217 struct { char filler; double field; } pgac_struct;
16218 #ifdef F77_DUMMY_MAIN
16219 # ifdef __cplusplus
16222 int F77_DUMMY_MAIN() { return 1; }
16227 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16234 rm -f conftest.$ac_objext
16235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16236 (eval $ac_compile) 2>&5
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
16240 { ac_try='test -s conftest.$ac_objext'
16241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); }; }; then
16246 ac_lo=$ac_mid; break
16248 echo "$as_me: failed program was:" >&5
16249 cat conftest.$ac_ext >&5
16250 ac_hi=`expr '(' $ac_mid ')' - 1`
16251 if test $ac_mid -le $ac_hi; then
16255 ac_mid=`expr 2 '*' $ac_mid`
16257 rm -f conftest.$ac_objext conftest.$ac_ext
16260 echo "$as_me: failed program was:" >&5
16261 cat conftest.$ac_ext >&5
16264 rm -f conftest.$ac_objext conftest.$ac_ext
16266 rm -f conftest.$ac_objext conftest.$ac_ext
16267 # Binary search between lo and hi bounds.
16268 while test "x$ac_lo" != "x$ac_hi"; do
16269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16270 cat >conftest.$ac_ext <<_ACEOF
16271 #line $LINENO "configure"
16272 #include "confdefs.h"
16273 $ac_includes_default
16274 struct { char filler; double field; } pgac_struct;
16275 #ifdef F77_DUMMY_MAIN
16276 # ifdef __cplusplus
16279 int F77_DUMMY_MAIN() { return 1; }
16284 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16291 rm -f conftest.$ac_objext
16292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16293 (eval $ac_compile) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } &&
16297 { ac_try='test -s conftest.$ac_objext'
16298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16305 echo "$as_me: failed program was:" >&5
16306 cat conftest.$ac_ext >&5
16307 ac_lo=`expr '(' $ac_mid ')' + 1`
16309 rm -f conftest.$ac_objext conftest.$ac_ext
16312 ?*) pgac_cv_alignof_double=$ac_lo;;
16313 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16314 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16315 { (exit 1); exit 1; }; } ;;
16318 if test "$cross_compiling" = yes; then
16319 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16320 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16321 { (exit 1); exit 1; }; }
16323 cat >conftest.$ac_ext <<_ACEOF
16324 #line $LINENO "configure"
16325 #include "confdefs.h"
16326 $ac_includes_default
16327 struct { char filler; double field; } pgac_struct;
16328 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16329 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16331 #include <stdlib.h>
16332 #ifdef F77_DUMMY_MAIN
16333 # ifdef __cplusplus
16336 int F77_DUMMY_MAIN() { return 1; }
16342 FILE *f = fopen ("conftest.val", "w");
16345 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16347 long i = longval ();
16348 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16350 fprintf (f, "%ld\n", i);
16354 unsigned long i = ulongval ();
16355 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16357 fprintf (f, "%lu\n", i);
16359 exit (ferror (f) || fclose (f) != 0);
16365 rm -f conftest$ac_exeext
16366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16367 (eval $ac_link) 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16376 pgac_cv_alignof_double=`cat conftest.val`
16378 echo "$as_me: program exited with status $ac_status" >&5
16379 echo "$as_me: failed program was:" >&5
16380 cat conftest.$ac_ext >&5
16381 ( exit $ac_status )
16382 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16383 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16384 { (exit 1); exit 1; }; }
16386 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16391 pgac_cv_alignof_double=0
16394 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16395 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16396 cat >>confdefs.h <<_ACEOF
16397 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16402 # Compute maximum alignment of any basic type.
16403 # We assume long's alignment is at least as strong as char, short, or int;
16404 # but we must check long long (if it exists) and double.
16406 MAX_ALIGNOF=$pgac_cv_alignof_long
16407 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16408 MAX_ALIGNOF=$pgac_cv_alignof_double
16410 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16411 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16414 cat >>confdefs.h <<_ACEOF
16415 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16420 # Some platforms predefine the types int8, int16, etc. Only check
16421 # a (hopefully) representative subset.
16422 echo "$as_me:$LINENO: checking for int8" >&5
16423 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16424 if test "${ac_cv_type_int8+set}" = set; then
16425 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 cat >conftest.$ac_ext <<_ACEOF
16428 #line $LINENO "configure"
16429 #include "confdefs.h"
16431 #ifdef HAVE_SUPPORTDEFS_H
16432 #include <SupportDefs.h>
16435 #ifdef F77_DUMMY_MAIN
16436 # ifdef __cplusplus
16439 int F77_DUMMY_MAIN() { return 1; }
16452 rm -f conftest.$ac_objext
16453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16454 (eval $ac_compile) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
16458 { ac_try='test -s conftest.$ac_objext'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 ac_cv_type_int8=yes
16466 echo "$as_me: failed program was:" >&5
16467 cat conftest.$ac_ext >&5
16470 rm -f conftest.$ac_objext conftest.$ac_ext
16472 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16473 echo "${ECHO_T}$ac_cv_type_int8" >&6
16474 if test $ac_cv_type_int8 = yes; then
16476 cat >>confdefs.h <<_ACEOF
16477 #define HAVE_INT8 1
16482 echo "$as_me:$LINENO: checking for uint8" >&5
16483 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16484 if test "${ac_cv_type_uint8+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 cat >conftest.$ac_ext <<_ACEOF
16488 #line $LINENO "configure"
16489 #include "confdefs.h"
16491 #ifdef HAVE_SUPPORTDEFS_H
16492 #include <SupportDefs.h>
16495 #ifdef F77_DUMMY_MAIN
16496 # ifdef __cplusplus
16499 int F77_DUMMY_MAIN() { return 1; }
16506 if (sizeof (uint8))
16512 rm -f conftest.$ac_objext
16513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16514 (eval $ac_compile) 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -s conftest.$ac_objext'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_cv_type_uint8=yes
16526 echo "$as_me: failed program was:" >&5
16527 cat conftest.$ac_ext >&5
16528 ac_cv_type_uint8=no
16530 rm -f conftest.$ac_objext conftest.$ac_ext
16532 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16533 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16534 if test $ac_cv_type_uint8 = yes; then
16536 cat >>confdefs.h <<_ACEOF
16537 #define HAVE_UINT8 1
16542 echo "$as_me:$LINENO: checking for int64" >&5
16543 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16544 if test "${ac_cv_type_int64+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 cat >conftest.$ac_ext <<_ACEOF
16548 #line $LINENO "configure"
16549 #include "confdefs.h"
16551 #ifdef HAVE_SUPPORTDEFS_H
16552 #include <SupportDefs.h>
16555 #ifdef F77_DUMMY_MAIN
16556 # ifdef __cplusplus
16559 int F77_DUMMY_MAIN() { return 1; }
16566 if (sizeof (int64))
16572 rm -f conftest.$ac_objext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16574 (eval $ac_compile) 2>&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
16578 { ac_try='test -s conftest.$ac_objext'
16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 ac_cv_type_int64=yes
16586 echo "$as_me: failed program was:" >&5
16587 cat conftest.$ac_ext >&5
16588 ac_cv_type_int64=no
16590 rm -f conftest.$ac_objext conftest.$ac_ext
16592 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16593 echo "${ECHO_T}$ac_cv_type_int64" >&6
16594 if test $ac_cv_type_int64 = yes; then
16596 cat >>confdefs.h <<_ACEOF
16597 #define HAVE_INT64 1
16602 echo "$as_me:$LINENO: checking for uint64" >&5
16603 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16604 if test "${ac_cv_type_uint64+set}" = set; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16607 cat >conftest.$ac_ext <<_ACEOF
16608 #line $LINENO "configure"
16609 #include "confdefs.h"
16611 #ifdef HAVE_SUPPORTDEFS_H
16612 #include <SupportDefs.h>
16615 #ifdef F77_DUMMY_MAIN
16616 # ifdef __cplusplus
16619 int F77_DUMMY_MAIN() { return 1; }
16626 if (sizeof (uint64))
16632 rm -f conftest.$ac_objext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16634 (eval $ac_compile) 2>&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
16638 { ac_try='test -s conftest.$ac_objext'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_type_uint64=yes
16646 echo "$as_me: failed program was:" >&5
16647 cat conftest.$ac_ext >&5
16648 ac_cv_type_uint64=no
16650 rm -f conftest.$ac_objext conftest.$ac_ext
16652 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16653 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16654 if test $ac_cv_type_uint64 = yes; then
16656 cat >>confdefs.h <<_ACEOF
16657 #define HAVE_UINT64 1
16664 # We also check for sig_atomic_t, which *should* be defined per ANSI
16665 # C, but is missing on some old platforms.
16666 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16667 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16668 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 cat >conftest.$ac_ext <<_ACEOF
16672 #line $LINENO "configure"
16673 #include "confdefs.h"
16674 #include <signal.h>
16676 #ifdef F77_DUMMY_MAIN
16677 # ifdef __cplusplus
16680 int F77_DUMMY_MAIN() { return 1; }
16685 if ((sig_atomic_t *) 0)
16687 if (sizeof (sig_atomic_t))
16693 rm -f conftest.$ac_objext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16695 (eval $ac_compile) 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -s conftest.$ac_objext'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_cv_type_sig_atomic_t=yes
16707 echo "$as_me: failed program was:" >&5
16708 cat conftest.$ac_ext >&5
16709 ac_cv_type_sig_atomic_t=no
16711 rm -f conftest.$ac_objext conftest.$ac_ext
16713 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16714 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16715 if test $ac_cv_type_sig_atomic_t = yes; then
16717 cat >>confdefs.h <<_ACEOF
16718 #define HAVE_SIG_ATOMIC_T 1
16726 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16727 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16728 if test "${pgac_cv_func_posix_signals+set}" = set; then
16729 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 cat >conftest.$ac_ext <<_ACEOF
16732 #line $LINENO "configure"
16733 #include "confdefs.h"
16734 #include <signal.h>
16736 #ifdef F77_DUMMY_MAIN
16737 # ifdef __cplusplus
16740 int F77_DUMMY_MAIN() { return 1; }
16745 struct sigaction act, oact;
16746 sigemptyset(&act.sa_mask);
16747 act.sa_flags = SA_RESTART;
16748 sigaction(0, &act, &oact);
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16755 (eval $ac_link) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -s conftest$ac_exeext'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 pgac_cv_func_posix_signals=yes
16767 echo "$as_me: failed program was:" >&5
16768 cat conftest.$ac_ext >&5
16769 pgac_cv_func_posix_signals=no
16771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16773 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16774 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16775 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16777 cat >>confdefs.h <<\_ACEOF
16778 #define HAVE_POSIX_SIGNALS
16782 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16784 if test $ac_cv_func_fseeko = yes; then
16785 # Check whether --enable-largefile or --disable-largefile was given.
16786 if test "${enable_largefile+set}" = set; then
16787 enableval="$enable_largefile"
16790 if test "$enable_largefile" != no; then
16792 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16793 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16794 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16795 echo $ECHO_N "(cached) $ECHO_C" >&6
16797 ac_cv_sys_largefile_CC=no
16798 if test "$GCC" != yes; then
16801 # IRIX 6.2 and later do not support large files by default,
16802 # so use the C compiler's -n32 option if that helps.
16803 cat >conftest.$ac_ext <<_ACEOF
16804 #line $LINENO "configure"
16805 #include "confdefs.h"
16806 #include <sys/types.h>
16807 /* Check that off_t can represent 2**63 - 1 correctly.
16808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16809 since some C++ compilers masquerading as C compilers
16810 incorrectly reject 9223372036854775807. */
16811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16813 && LARGE_OFF_T % 2147483647 == 1)
16815 #ifdef F77_DUMMY_MAIN
16816 # ifdef __cplusplus
16819 int F77_DUMMY_MAIN() { return 1; }
16829 rm -f conftest.$ac_objext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831 (eval $ac_compile) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -s conftest.$ac_objext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16843 echo "$as_me: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16846 rm -f conftest.$ac_objext
16848 rm -f conftest.$ac_objext
16849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16850 (eval $ac_compile) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -s conftest.$ac_objext'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_sys_largefile_CC=' -n32'; break
16862 echo "$as_me: failed program was:" >&5
16863 cat conftest.$ac_ext >&5
16865 rm -f conftest.$ac_objext
16869 rm -f conftest.$ac_ext
16872 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16873 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16874 if test "$ac_cv_sys_largefile_CC" != no; then
16875 CC=$CC$ac_cv_sys_largefile_CC
16878 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16879 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16880 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 ac_cv_sys_file_offset_bits=no
16885 cat >conftest.$ac_ext <<_ACEOF
16886 #line $LINENO "configure"
16887 #include "confdefs.h"
16888 #include <sys/types.h>
16889 /* Check that off_t can represent 2**63 - 1 correctly.
16890 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16891 since some C++ compilers masquerading as C compilers
16892 incorrectly reject 9223372036854775807. */
16893 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16894 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16895 && LARGE_OFF_T % 2147483647 == 1)
16897 #ifdef F77_DUMMY_MAIN
16898 # ifdef __cplusplus
16901 int F77_DUMMY_MAIN() { return 1; }
16911 rm -f conftest.$ac_objext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16913 (eval $ac_compile) 2>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } &&
16917 { ac_try='test -s conftest.$ac_objext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16925 echo "$as_me: failed program was:" >&5
16926 cat conftest.$ac_ext >&5
16928 rm -f conftest.$ac_objext conftest.$ac_ext
16929 cat >conftest.$ac_ext <<_ACEOF
16930 #line $LINENO "configure"
16931 #include "confdefs.h"
16932 #define _FILE_OFFSET_BITS 64
16933 #include <sys/types.h>
16934 /* Check that off_t can represent 2**63 - 1 correctly.
16935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16936 since some C++ compilers masquerading as C compilers
16937 incorrectly reject 9223372036854775807. */
16938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16940 && LARGE_OFF_T % 2147483647 == 1)
16942 #ifdef F77_DUMMY_MAIN
16943 # ifdef __cplusplus
16946 int F77_DUMMY_MAIN() { return 1; }
16956 rm -f conftest.$ac_objext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958 (eval $ac_compile) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -s conftest.$ac_objext'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_sys_file_offset_bits=64; break
16970 echo "$as_me: failed program was:" >&5
16971 cat conftest.$ac_ext >&5
16973 rm -f conftest.$ac_objext conftest.$ac_ext
16977 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16978 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16979 if test "$ac_cv_sys_file_offset_bits" != no; then
16981 cat >>confdefs.h <<_ACEOF
16982 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16987 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16988 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16989 if test "${ac_cv_sys_large_files+set}" = set; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 ac_cv_sys_large_files=no
16994 cat >conftest.$ac_ext <<_ACEOF
16995 #line $LINENO "configure"
16996 #include "confdefs.h"
16997 #include <sys/types.h>
16998 /* Check that off_t can represent 2**63 - 1 correctly.
16999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17000 since some C++ compilers masquerading as C compilers
17001 incorrectly reject 9223372036854775807. */
17002 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17004 && LARGE_OFF_T % 2147483647 == 1)
17006 #ifdef F77_DUMMY_MAIN
17007 # ifdef __cplusplus
17010 int F77_DUMMY_MAIN() { return 1; }
17020 rm -f conftest.$ac_objext
17021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17022 (eval $ac_compile) 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -s conftest.$ac_objext'
17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17028 (eval $ac_try) 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; }; then
17034 echo "$as_me: failed program was:" >&5
17035 cat conftest.$ac_ext >&5
17037 rm -f conftest.$ac_objext conftest.$ac_ext
17038 cat >conftest.$ac_ext <<_ACEOF
17039 #line $LINENO "configure"
17040 #include "confdefs.h"
17041 #define _LARGE_FILES 1
17042 #include <sys/types.h>
17043 /* Check that off_t can represent 2**63 - 1 correctly.
17044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17045 since some C++ compilers masquerading as C compilers
17046 incorrectly reject 9223372036854775807. */
17047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17049 && LARGE_OFF_T % 2147483647 == 1)
17051 #ifdef F77_DUMMY_MAIN
17052 # ifdef __cplusplus
17055 int F77_DUMMY_MAIN() { return 1; }
17065 rm -f conftest.$ac_objext
17066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17067 (eval $ac_compile) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); } &&
17071 { ac_try='test -s conftest.$ac_objext'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_cv_sys_large_files=1; break
17079 echo "$as_me: failed program was:" >&5
17080 cat conftest.$ac_ext >&5
17082 rm -f conftest.$ac_objext conftest.$ac_ext
17086 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17087 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17088 if test "$ac_cv_sys_large_files" != no; then
17090 cat >>confdefs.h <<_ACEOF
17091 #define _LARGE_FILES $ac_cv_sys_large_files
17101 # Select semaphore implementation type.
17102 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17104 cat >>confdefs.h <<\_ACEOF
17105 #define USE_NAMED_POSIX_SEMAPHORES 1
17108 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17110 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17112 cat >>confdefs.h <<\_ACEOF
17113 #define USE_UNNAMED_POSIX_SEMAPHORES 1
17116 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17119 cat >>confdefs.h <<\_ACEOF
17120 #define USE_SYSV_SEMAPHORES 1
17123 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17128 # Select shared-memory implementation type.
17130 cat >>confdefs.h <<\_ACEOF
17131 #define USE_SYSV_SHARED_MEMORY 1
17134 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17137 if test "$enable_nls" = yes ; then
17139 echo "$as_me:$LINENO: checking for library containing gettext" >&5
17140 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
17141 if test "${ac_cv_search_gettext+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 ac_func_search_save_LIBS=$LIBS
17145 ac_cv_search_gettext=no
17146 cat >conftest.$ac_ext <<_ACEOF
17147 #line $LINENO "configure"
17148 #include "confdefs.h"
17150 /* Override any gcc2 internal prototype to avoid an error. */
17154 /* We use char because int might match the return type of a gcc2
17155 builtin and then its argument prototype would still apply. */
17157 #ifdef F77_DUMMY_MAIN
17158 # ifdef __cplusplus
17161 int F77_DUMMY_MAIN() { return 1; }
17171 rm -f conftest.$ac_objext conftest$ac_exeext
17172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17173 (eval $ac_link) 2>&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } &&
17177 { ac_try='test -s conftest$ac_exeext'
17178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179 (eval $ac_try) 2>&5
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); }; }; then
17183 ac_cv_search_gettext="none required"
17185 echo "$as_me: failed program was:" >&5
17186 cat conftest.$ac_ext >&5
17188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17189 if test "$ac_cv_search_gettext" = no; then
17190 for ac_lib in intl; do
17191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17192 cat >conftest.$ac_ext <<_ACEOF
17193 #line $LINENO "configure"
17194 #include "confdefs.h"
17196 /* Override any gcc2 internal prototype to avoid an error. */
17200 /* We use char because int might match the return type of a gcc2
17201 builtin and then its argument prototype would still apply. */
17203 #ifdef F77_DUMMY_MAIN
17204 # ifdef __cplusplus
17207 int F77_DUMMY_MAIN() { return 1; }
17217 rm -f conftest.$ac_objext conftest$ac_exeext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17219 (eval $ac_link) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
17223 { ac_try='test -s conftest$ac_exeext'
17224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17225 (eval $ac_try) 2>&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 ac_cv_search_gettext="-l$ac_lib"
17232 echo "$as_me: failed program was:" >&5
17233 cat conftest.$ac_ext >&5
17235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17238 LIBS=$ac_func_search_save_LIBS
17240 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
17241 echo "${ECHO_T}$ac_cv_search_gettext" >&6
17242 if test "$ac_cv_search_gettext" != no; then
17243 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
17246 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
17247 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
17248 { (exit 1); exit 1; }; }
17251 if test "${ac_cv_header_libintl_h+set}" = set; then
17252 echo "$as_me:$LINENO: checking for libintl.h" >&5
17253 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17254 if test "${ac_cv_header_libintl_h+set}" = set; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17257 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17258 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17260 # Is the header compilable?
17261 echo "$as_me:$LINENO: checking libintl.h usability" >&5
17262 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
17263 cat >conftest.$ac_ext <<_ACEOF
17264 #line $LINENO "configure"
17265 #include "confdefs.h"
17266 $ac_includes_default
17267 #include <libintl.h>
17269 rm -f conftest.$ac_objext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17271 (eval $ac_compile) 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
17283 echo "$as_me: failed program was:" >&5
17284 cat conftest.$ac_ext >&5
17285 ac_header_compiler=no
17287 rm -f conftest.$ac_objext conftest.$ac_ext
17288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17289 echo "${ECHO_T}$ac_header_compiler" >&6
17291 # Is the header present?
17292 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17293 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17294 cat >conftest.$ac_ext <<_ACEOF
17295 #line $LINENO "configure"
17296 #include "confdefs.h"
17297 #include <libintl.h>
17299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17302 egrep -v '^ *\+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } >/dev/null; then
17307 if test -s conftest.err; then
17308 ac_cpp_err=$ac_c_preproc_warn_flag
17315 if test -z "$ac_cpp_err"; then
17316 ac_header_preproc=yes
17318 echo "$as_me: failed program was:" >&5
17319 cat conftest.$ac_ext >&5
17320 ac_header_preproc=no
17322 rm -f conftest.err conftest.$ac_ext
17323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17324 echo "${ECHO_T}$ac_header_preproc" >&6
17326 # So? What about this header?
17327 case $ac_header_compiler:$ac_header_preproc in
17329 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17330 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17332 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17334 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17335 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17336 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17337 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17339 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17341 echo "$as_me:$LINENO: checking for libintl.h" >&5
17342 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17343 if test "${ac_cv_header_libintl_h+set}" = set; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 ac_cv_header_libintl_h=$ac_header_preproc
17348 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17349 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17352 if test $ac_cv_header_libintl_h = yes; then
17355 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17356 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17357 { (exit 1); exit 1; }; }
17361 for ac_prog in msgfmt
17363 # Extract the first word of "$ac_prog", so it can be a program name with args.
17364 set dummy $ac_prog; ac_word=$2
17365 echo "$as_me:$LINENO: checking for $ac_word" >&5
17366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17367 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 if test -n "$MSGFMT"; then
17371 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17374 for as_dir in $PATH
17377 test -z "$as_dir" && as_dir=.
17378 for ac_exec_ext in '' $ac_executable_extensions; do
17379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17380 ac_cv_prog_MSGFMT="$ac_prog"
17381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17389 MSGFMT=$ac_cv_prog_MSGFMT
17390 if test -n "$MSGFMT"; then
17391 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17392 echo "${ECHO_T}$MSGFMT" >&6
17394 echo "$as_me:$LINENO: result: no" >&5
17395 echo "${ECHO_T}no" >&6
17398 test -n "$MSGFMT" && break
17401 if test -z "$MSGFMT"; then
17402 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17403 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17404 { (exit 1); exit 1; }; }
17406 for ac_prog in msgmerge
17408 # Extract the first word of "$ac_prog", so it can be a program name with args.
17409 set dummy $ac_prog; ac_word=$2
17410 echo "$as_me:$LINENO: checking for $ac_word" >&5
17411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17412 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 if test -n "$MSGMERGE"; then
17416 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17419 for as_dir in $PATH
17422 test -z "$as_dir" && as_dir=.
17423 for ac_exec_ext in '' $ac_executable_extensions; do
17424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17425 ac_cv_prog_MSGMERGE="$ac_prog"
17426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17434 MSGMERGE=$ac_cv_prog_MSGMERGE
17435 if test -n "$MSGMERGE"; then
17436 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17437 echo "${ECHO_T}$MSGMERGE" >&6
17439 echo "$as_me:$LINENO: result: no" >&5
17440 echo "${ECHO_T}no" >&6
17443 test -n "$MSGMERGE" && break
17446 for ac_prog in xgettext
17448 # Extract the first word of "$ac_prog", so it can be a program name with args.
17449 set dummy $ac_prog; ac_word=$2
17450 echo "$as_me:$LINENO: checking for $ac_word" >&5
17451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17452 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17455 if test -n "$XGETTEXT"; then
17456 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17459 for as_dir in $PATH
17462 test -z "$as_dir" && as_dir=.
17463 for ac_exec_ext in '' $ac_executable_extensions; do
17464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17465 ac_cv_prog_XGETTEXT="$ac_prog"
17466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17474 XGETTEXT=$ac_cv_prog_XGETTEXT
17475 if test -n "$XGETTEXT"; then
17476 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17477 echo "${ECHO_T}$XGETTEXT" >&6
17479 echo "$as_me:$LINENO: result: no" >&5
17480 echo "${ECHO_T}no" >&6
17483 test -n "$XGETTEXT" && break
17487 # Note: share/locale is always the default, independent of $datadir
17488 localedir='${prefix}/share/locale'
17489 if test x"$prefix" = x"NONE"; then
17490 exp_localedir="$ac_default_prefix/share/locale"
17492 exp_localedir="$prefix/share/locale"
17497 cat >>confdefs.h <<_ACEOF
17498 #define LOCALEDIR "$exp_localedir"
17504 # Check for Tcl configuration script tclConfig.sh
17505 if test "$with_tcl" = yes; then
17506 for ac_prog in tclsh tcl
17508 # Extract the first word of "$ac_prog", so it can be a program name with args.
17509 set dummy $ac_prog; ac_word=$2
17510 echo "$as_me:$LINENO: checking for $ac_word" >&5
17511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17512 if test "${ac_cv_path_TCLSH+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17521 for as_dir in $PATH
17524 test -z "$as_dir" && as_dir=.
17525 for ac_exec_ext in '' $ac_executable_extensions; do
17526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17527 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17537 TCLSH=$ac_cv_path_TCLSH
17539 if test -n "$TCLSH"; then
17540 echo "$as_me:$LINENO: result: $TCLSH" >&5
17541 echo "${ECHO_T}$TCLSH" >&6
17543 echo "$as_me:$LINENO: result: no" >&5
17544 echo "${ECHO_T}no" >&6
17547 test -n "$TCLSH" && break
17550 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17551 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17552 # Let user override test
17553 if test -z "$TCL_CONFIG_SH"; then
17554 pgac_test_dirs="$with_tclconfig"
17556 set X $pgac_test_dirs; shift
17557 if test $# -eq 0; then
17558 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17559 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17560 { (exit 1); exit 1; }; }
17561 set X `echo 'puts $auto_path' | $TCLSH`; shift
17565 if test -r "$pgac_dir/tclConfig.sh"; then
17566 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17572 if test -z "$TCL_CONFIG_SH"; then
17573 echo "$as_me:$LINENO: result: no" >&5
17574 echo "${ECHO_T}no" >&6
17575 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17576 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17577 { (exit 1); exit 1; }; }
17579 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17580 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17586 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17587 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17588 eval TCL_LIBS=\"$TCL_LIBS\"
17589 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17590 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17595 # Check for DocBook and tools
17597 for ac_prog in onsgmls nsgmls
17599 # Extract the first word of "$ac_prog", so it can be a program name with args.
17600 set dummy $ac_prog; ac_word=$2
17601 echo "$as_me:$LINENO: checking for $ac_word" >&5
17602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17603 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 if test -n "$NSGMLS"; then
17607 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17610 for as_dir in $PATH
17613 test -z "$as_dir" && as_dir=.
17614 for ac_exec_ext in '' $ac_executable_extensions; do
17615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17616 ac_cv_prog_NSGMLS="$ac_prog"
17617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17625 NSGMLS=$ac_cv_prog_NSGMLS
17626 if test -n "$NSGMLS"; then
17627 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17628 echo "${ECHO_T}$NSGMLS" >&6
17630 echo "$as_me:$LINENO: result: no" >&5
17631 echo "${ECHO_T}no" >&6
17634 test -n "$NSGMLS" && break
17637 for ac_prog in openjade jade
17639 # Extract the first word of "$ac_prog", so it can be a program name with args.
17640 set dummy $ac_prog; ac_word=$2
17641 echo "$as_me:$LINENO: checking for $ac_word" >&5
17642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17643 if test "${ac_cv_prog_JADE+set}" = set; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17646 if test -n "$JADE"; then
17647 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17650 for as_dir in $PATH
17653 test -z "$as_dir" && as_dir=.
17654 for ac_exec_ext in '' $ac_executable_extensions; do
17655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17656 ac_cv_prog_JADE="$ac_prog"
17657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17665 JADE=$ac_cv_prog_JADE
17666 if test -n "$JADE"; then
17667 echo "$as_me:$LINENO: result: $JADE" >&5
17668 echo "${ECHO_T}$JADE" >&6
17670 echo "$as_me:$LINENO: result: no" >&5
17671 echo "${ECHO_T}no" >&6
17674 test -n "$JADE" && break
17678 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17679 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17680 if test "${pgac_cv_check_docbook+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17683 cat >conftest.sgml <<EOF
17684 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17686 <title>test</title>
17688 <title>random</title>
17690 <title>testsect</title>
17697 pgac_cv_check_docbook=no
17699 if test -n "$NSGMLS"; then
17700 $NSGMLS -s conftest.sgml 1>&5 2>&1
17701 if test $? -eq 0; then
17702 pgac_cv_check_docbook=yes
17705 rm -f conftest.sgml
17707 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17708 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17710 have_docbook=$pgac_cv_check_docbook
17713 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17714 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17715 if test "${pgac_cv_path_stylesheets+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 if test -n "$DOCBOOKSTYLE"; then
17719 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17721 for pgac_prefix in /usr /usr/local /opt; do
17722 for pgac_infix in share lib; do
17723 for pgac_postfix in \
17724 sgml/stylesheets/nwalsh-modular \
17725 sgml/stylesheets/docbook \
17726 sgml/docbook-dsssl \
17727 sgml/docbook/dsssl/modular \
17728 sgml/docbook/stylesheet/dsssl/modular \
17729 sgml/docbook/dsssl-stylesheets
17731 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17732 if test -r "$pgac_candidate/html/docbook.dsl" \
17733 && test -r "$pgac_candidate/print/docbook.dsl"
17735 pgac_cv_path_stylesheets=$pgac_candidate
17744 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17746 if test -n "$DOCBOOKSTYLE"; then
17747 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17748 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17750 echo "$as_me:$LINENO: result: no" >&5
17751 echo "${ECHO_T}no" >&6
17753 if test -n "$DOCBOOKSTYLE"; then
17754 for ac_prog in collateindex.pl
17756 # Extract the first word of "$ac_prog", so it can be a program name with args.
17757 set dummy $ac_prog; ac_word=$2
17758 echo "$as_me:$LINENO: checking for $ac_word" >&5
17759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17760 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 case $COLLATEINDEX in
17765 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17769 for as_dir in $DOCBOOKSTYLE/bin $PATH
17772 test -z "$as_dir" && as_dir=.
17773 for ac_exec_ext in '' $ac_executable_extensions; do
17774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17775 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17785 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17787 if test -n "$COLLATEINDEX"; then
17788 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17789 echo "${ECHO_T}$COLLATEINDEX" >&6
17791 echo "$as_me:$LINENO: result: no" >&5
17792 echo "${ECHO_T}no" >&6
17795 test -n "$COLLATEINDEX" && break
17799 for ac_prog in collateindex.pl
17801 # Extract the first word of "$ac_prog", so it can be a program name with args.
17802 set dummy $ac_prog; ac_word=$2
17803 echo "$as_me:$LINENO: checking for $ac_word" >&5
17804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17805 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17806 echo $ECHO_N "(cached) $ECHO_C" >&6
17808 case $COLLATEINDEX in
17810 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17814 for as_dir in $PATH
17817 test -z "$as_dir" && as_dir=.
17818 for ac_exec_ext in '' $ac_executable_extensions; do
17819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17820 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17830 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17832 if test -n "$COLLATEINDEX"; then
17833 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17834 echo "${ECHO_T}$COLLATEINDEX" >&6
17836 echo "$as_me:$LINENO: result: no" >&5
17837 echo "${ECHO_T}no" >&6
17840 test -n "$COLLATEINDEX" && break
17844 for ac_prog in sgmlspl
17846 # Extract the first word of "$ac_prog", so it can be a program name with args.
17847 set dummy $ac_prog; ac_word=$2
17848 echo "$as_me:$LINENO: checking for $ac_word" >&5
17849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17850 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 if test -n "$SGMLSPL"; then
17854 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17857 for as_dir in $PATH
17860 test -z "$as_dir" && as_dir=.
17861 for ac_exec_ext in '' $ac_executable_extensions; do
17862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17863 ac_cv_prog_SGMLSPL="$ac_prog"
17864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17872 SGMLSPL=$ac_cv_prog_SGMLSPL
17873 if test -n "$SGMLSPL"; then
17874 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17875 echo "${ECHO_T}$SGMLSPL" >&6
17877 echo "$as_me:$LINENO: result: no" >&5
17878 echo "${ECHO_T}no" >&6
17881 test -n "$SGMLSPL" && break
17887 # We have to run the thread test near the end so we have all our symbols
17888 # defined. Cross compiling throws a warning.
17890 if test "$enable_thread_safety" = yes; then
17891 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
17892 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
17896 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
17897 LIBS="$LIBS $PTHREAD_LIBS"
17898 if test "$cross_compiling" = yes; then
17899 echo "$as_me:$LINENO: result: maybe" >&5
17900 echo "${ECHO_T}maybe" >&6
17901 { echo "$as_me:$LINENO: WARNING:
17902 *** Skipping thread test program because of cross-compile build.
17903 *** Run the program in src/tools/thread on the target matchine.
17905 echo "$as_me: WARNING:
17906 *** Skipping thread test program because of cross-compile build.
17907 *** Run the program in src/tools/thread on the target matchine.
17910 cat >conftest.$ac_ext <<_ACEOF
17911 #line $LINENO "configure"
17912 #include "confdefs.h"
17913 #include "$srcdir/src/tools/thread/thread_test.c"
17915 rm -f conftest$ac_exeext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17917 (eval $ac_link) 2>&5
17919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 echo "$as_me:$LINENO: result: yes" >&5
17927 echo "${ECHO_T}yes" >&6
17929 echo "$as_me: program exited with status $ac_status" >&5
17930 echo "$as_me: failed program was:" >&5
17931 cat conftest.$ac_ext >&5
17932 ( exit $ac_status )
17933 echo "$as_me:$LINENO: result: no" >&5
17934 echo "${ECHO_T}no" >&6
17935 { { echo "$as_me:$LINENO: error:
17936 *** Thread test program failed. Your platform is not thread-safe.
17937 *** Check the file 'config.log'for the exact reason." >&5
17938 echo "$as_me: error:
17939 *** Thread test program failed. Your platform is not thread-safe.
17940 *** Check the file 'config.log'for the exact reason." >&2;}
17941 { (exit 1); exit 1; }; }
17943 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17949 # prepare build tree if outside source tree
17950 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17951 # Note 2: /bin/pwd might be better than shell's built-in at getting
17952 # a symlink-free name.
17953 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17957 if test "$no_create" != yes; then
17958 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17959 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17960 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17961 || { { echo "$as_me:$LINENO: error: failed" >&5
17962 echo "$as_me: error: failed" >&2;}
17963 { (exit 1); exit 1; }; }
17964 echo "$as_me:$LINENO: result: done" >&5
17965 echo "${ECHO_T}done" >&6
17971 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17974 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}"
17977 case $host_os in mingw*);;
17979 ac_config_commands="$ac_config_commands check_win32_symlinks"
17984 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17987 cat >confcache <<\_ACEOF
17988 # This file is a shell script that caches the results of configure
17989 # tests run on this system so they can be shared between configure
17990 # scripts and configure runs, see configure's option --config-cache.
17991 # It is not useful on other systems. If it contains results you don't
17992 # want to keep, you may remove or edit it.
17994 # config.status only pays attention to the cache file if you give it
17995 # the --recheck option to rerun configure.
17997 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17999 # following values.
18003 # The following way of writing the cache mishandles newlines in values,
18004 # but we know of no workaround that is simple, portable, and efficient.
18005 # So, don't put newlines in cache variables' values.
18006 # Ultrix sh set writes to stderr and can't be redirected directly,
18007 # and sets the high bit in the cache file unless we assign to the vars.
18010 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18012 # `set' does not quote correctly, so add quotes (double-quote
18013 # substitution turns \\\\ into \\, and sed turns \\ into \).
18016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18019 # `set' quotes correctly as required by POSIX, so do not add quotes.
18021 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18030 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18032 if cmp -s $cache_file confcache; then :; else
18033 if test -w $cache_file; then
18034 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18035 cat confcache >$cache_file
18037 echo "not updating unwritable cache $cache_file"
18042 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18043 # Let make expand exec_prefix.
18044 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18046 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18047 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18048 # trailing colons and then remove the whole line if VPATH becomes empty
18049 # (actually we leave an empty line to preserve line numbers).
18050 if test "x$srcdir" = x.; then
18051 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18052 s/:*\$(srcdir):*/:/;
18053 s/:*\${srcdir}:*/:/;
18055 s/^\([^=]*=[ ]*\):*/\1/;
18061 DEFS=-DHAVE_CONFIG_H
18064 : ${CONFIG_STATUS=./config.status}
18065 ac_clean_files_save=$ac_clean_files
18066 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18067 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18068 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18069 cat >$CONFIG_STATUS <<_ACEOF
18071 # Generated by $as_me.
18072 # Run this file to recreate the current configuration.
18073 # Compiler output produced by configure, useful for debugging
18074 # configure, is in config.log if it exists.
18077 SHELL=\${CONFIG_SHELL-$SHELL}
18080 cat >>$CONFIG_STATUS <<\_ACEOF
18082 ## --------------------- ##
18083 ## M4sh Initialization. ##
18084 ## --------------------- ##
18086 # Be Bourne compatible
18087 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18090 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18095 # Support unset when possible.
18096 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18102 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18103 { $as_unset LANG || test "${LANG+set}" != set; } ||
18104 { LANG=C; export LANG; }
18105 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18106 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18107 { LC_ALL=C; export LC_ALL; }
18108 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18109 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18110 { LC_TIME=C; export LC_TIME; }
18111 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18112 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18113 { LC_CTYPE=C; export LC_CTYPE; }
18114 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18115 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18116 { LANGUAGE=C; export LANGUAGE; }
18117 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18118 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18119 { LC_COLLATE=C; export LC_COLLATE; }
18120 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18121 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18122 { LC_NUMERIC=C; export LC_NUMERIC; }
18123 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18124 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18125 { LC_MESSAGES=C; export LC_MESSAGES; }
18128 # Name of the executable.
18129 as_me=`(basename "$0") 2>/dev/null ||
18130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18131 X"$0" : 'X\(//\)$' \| \
18132 X"$0" : 'X\(/\)$' \| \
18133 . : '\(.\)' 2>/dev/null ||
18135 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18136 /^X\/\(\/\/\)$/{ s//\1/; q; }
18137 /^X\/\(\/\).*/{ s//\1/; q; }
18140 # PATH needs CR, and LINENO needs CR and PATH.
18141 # Avoid depending upon Character Ranges.
18142 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18143 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18144 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18145 as_cr_digits='0123456789'
18146 as_cr_alnum=$as_cr_Letters$as_cr_digits
18148 # The user is always right.
18149 if test "${PATH_SEPARATOR+set}" != set; then
18150 echo "#! /bin/sh" >conftest.sh
18151 echo "exit 0" >>conftest.sh
18152 chmod +x conftest.sh
18153 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18162 as_lineno_1=$LINENO
18163 as_lineno_2=$LINENO
18164 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18165 test "x$as_lineno_1" != "x$as_lineno_2" &&
18166 test "x$as_lineno_3" = "x$as_lineno_2" || {
18167 # Find who we are. Look in the path if we contain no path at all
18170 *[\\/]* ) as_myself=$0 ;;
18171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18172 for as_dir in $PATH
18175 test -z "$as_dir" && as_dir=.
18176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18181 # We did not find ourselves, most probably we were run as `sh COMMAND'
18182 # in which case we are not to be found in the path.
18183 if test "x$as_myself" = x; then
18186 if test ! -f "$as_myself"; then
18187 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18188 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18189 { (exit 1); exit 1; }; }
18191 case $CONFIG_SHELL in
18193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18197 test -z "$as_dir" && as_dir=.
18198 for as_base in sh bash ksh sh5; do
18201 if ("$as_dir/$as_base" -c '
18202 as_lineno_1=$LINENO
18203 as_lineno_2=$LINENO
18204 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18205 test "x$as_lineno_1" != "x$as_lineno_2" &&
18206 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18207 CONFIG_SHELL=$as_dir/$as_base
18208 export CONFIG_SHELL
18209 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18217 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18218 # uniformly replaced by the line number. The first 'sed' inserts a
18219 # line-number line before each line; the second 'sed' does the real
18220 # work. The second script uses 'N' to pair each line-number line
18221 # with the numbered line, and appends trailing '-' during
18222 # substitution so that $LINENO is not a special case at line end.
18223 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18224 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18225 sed '=' <$as_myself |
18230 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18233 s,^['$as_cr_digits']*\n,,
18234 ' >$as_me.lineno &&
18235 chmod +x $as_me.lineno ||
18236 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18237 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18238 { (exit 1); exit 1; }; }
18240 # Don't try to exec as it changes $[0], causing all sort of problems
18241 # (the dirname of $[0] is not the place where we might find the
18242 # original and so on. Autoconf is especially sensible to this).
18244 # Exit status is that of the last command.
18249 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18250 *c*,-n*) ECHO_N= ECHO_C='
18252 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18253 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18256 if expr a : '\(a\)' >/dev/null 2>&1; then
18262 rm -f conf$$ conf$$.exe conf$$.file
18264 if ln -s conf$$.file conf$$ 2>/dev/null; then
18265 # We could just check for DJGPP; but this test a) works b) is more generic
18266 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18267 if test -f conf$$.exe; then
18268 # Don't use ln at all; we don't have any links
18273 elif ln conf$$.file conf$$ 2>/dev/null; then
18278 rm -f conf$$ conf$$.exe conf$$.file
18280 as_executable_p="test -f"
18282 # Sed expression to map a string onto a valid CPP name.
18283 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18285 # Sed expression to map a string onto a valid variable name.
18286 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18290 # We need space, tab and new line, in precisely that order.
18296 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18300 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18301 # report actual input values of CONFIG_FILES etc. instead of their
18302 # values after options handling. Logging --version etc. is OK.
18306 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18307 ## Running $as_me. ##
18312 This file was extended by PostgreSQL $as_me 7.5devel, which was
18313 generated by GNU Autoconf 2.53. Invocation command line was
18315 CONFIG_FILES = $CONFIG_FILES
18316 CONFIG_HEADERS = $CONFIG_HEADERS
18317 CONFIG_LINKS = $CONFIG_LINKS
18318 CONFIG_COMMANDS = $CONFIG_COMMANDS
18322 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18326 # Files that config.status was made for.
18327 if test -n "$ac_config_files"; then
18328 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18331 if test -n "$ac_config_headers"; then
18332 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18335 if test -n "$ac_config_links"; then
18336 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18339 if test -n "$ac_config_commands"; then
18340 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18343 cat >>$CONFIG_STATUS <<\_ACEOF
18346 \`$as_me' instantiates files from templates according to the
18347 current configuration.
18349 Usage: $0 [OPTIONS] [FILE]...
18351 -h, --help print this help, then exit
18352 -V, --version print version number, then exit
18353 -d, --debug don't remove temporary files
18354 --recheck update $as_me by reconfiguring in the same conditions
18355 --file=FILE[:TEMPLATE]
18356 instantiate the configuration file FILE
18357 --header=FILE[:TEMPLATE]
18358 instantiate the configuration header FILE
18360 Configuration files:
18363 Configuration headers:
18366 Configuration links:
18369 Configuration commands:
18372 Report bugs to <bug-autoconf@gnu.org>."
18375 cat >>$CONFIG_STATUS <<_ACEOF
18377 PostgreSQL config.status 7.5devel
18378 configured by $0, generated by GNU Autoconf 2.53,
18379 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18381 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18382 Free Software Foundation, Inc.
18383 This config.status script is free software; the Free Software Foundation
18384 gives unlimited permission to copy, distribute and modify it."
18388 cat >>$CONFIG_STATUS <<\_ACEOF
18389 # If no file are specified by the user, then we need to provide default
18390 # value. By we need to know if files were specified by the user.
18396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18399 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18403 *) # This is not an option, so the user has probably given explicit
18405 ac_need_defaults=false;;
18409 # Handling of the options.
18411 cat >>$CONFIG_STATUS <<_ACEOF
18412 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18413 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18414 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18416 cat >>$CONFIG_STATUS <<\_ACEOF
18417 --version | --vers* | -V )
18418 echo "$ac_cs_version"; exit 0 ;;
18420 # Conflict between --help and --header
18421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18422 Try \`$0 --help' for more information." >&5
18423 echo "$as_me: error: ambiguous option: $1
18424 Try \`$0 --help' for more information." >&2;}
18425 { (exit 1); exit 1; }; };;
18426 --help | --hel | -h )
18427 echo "$ac_cs_usage"; exit 0 ;;
18428 --debug | --d* | -d )
18430 --file | --fil | --fi | --f )
18432 CONFIG_FILES="$CONFIG_FILES $1"
18433 ac_need_defaults=false;;
18434 --header | --heade | --head | --hea )
18436 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18437 ac_need_defaults=false;;
18439 # This is an error.
18440 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18441 Try \`$0 --help' for more information." >&5
18442 echo "$as_me: error: unrecognized option: $1
18443 Try \`$0 --help' for more information." >&2;}
18444 { (exit 1); exit 1; }; } ;;
18446 *) ac_config_targets="$ac_config_targets $1" ;;
18458 cat >>$CONFIG_STATUS <<\_ACEOF
18459 for ac_config_target in $ac_config_targets
18461 case "$ac_config_target" in
18462 # Handling of arguments.
18463 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18464 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18465 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18466 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18467 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18468 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18469 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18470 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18471 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18472 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
18473 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18474 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18475 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18476 { (exit 1); exit 1; }; };;
18480 # If the user did not use the arguments to specify the items to instantiate,
18481 # then the envvar interface is used. Set only those that are not.
18482 # We use the long form for the default assignment because of an extremely
18483 # bizarre bug on SunOS 4.1.3.
18484 if $ac_need_defaults; then
18485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18487 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18491 # Create a temporary directory, and hook for its removal unless debugging.
18494 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18495 trap '{ (exit 1); exit 1; }' 1 2 13 15
18498 # Create a (secure) tmp directory for tmp files.
18501 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18502 test -n "$tmp" && test -d "$tmp"
18505 tmp=$TMPDIR/cs$$-$RANDOM
18506 (umask 077 && mkdir $tmp)
18509 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18510 { (exit 1); exit 1; }
18515 cat >>$CONFIG_STATUS <<_ACEOF
18518 # CONFIG_FILES section.
18521 # No need to generate the scripts if there are no CONFIG_FILES.
18522 # This happens for instance when ./config.status config.h
18523 if test -n "\$CONFIG_FILES"; then
18524 # Protect against being on the right side of a sed subst in config.status.
18525 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18526 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18527 s,@SHELL@,$SHELL,;t t
18528 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18529 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18530 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18531 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18532 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18533 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18534 s,@exec_prefix@,$exec_prefix,;t t
18535 s,@prefix@,$prefix,;t t
18536 s,@program_transform_name@,$program_transform_name,;t t
18537 s,@bindir@,$bindir,;t t
18538 s,@sbindir@,$sbindir,;t t
18539 s,@libexecdir@,$libexecdir,;t t
18540 s,@datadir@,$datadir,;t t
18541 s,@sysconfdir@,$sysconfdir,;t t
18542 s,@sharedstatedir@,$sharedstatedir,;t t
18543 s,@localstatedir@,$localstatedir,;t t
18544 s,@libdir@,$libdir,;t t
18545 s,@includedir@,$includedir,;t t
18546 s,@oldincludedir@,$oldincludedir,;t t
18547 s,@infodir@,$infodir,;t t
18548 s,@mandir@,$mandir,;t t
18549 s,@build_alias@,$build_alias,;t t
18550 s,@host_alias@,$host_alias,;t t
18551 s,@target_alias@,$target_alias,;t t
18552 s,@DEFS@,$DEFS,;t t
18553 s,@ECHO_C@,$ECHO_C,;t t
18554 s,@ECHO_N@,$ECHO_N,;t t
18555 s,@ECHO_T@,$ECHO_T,;t t
18556 s,@LIBS@,$LIBS,;t t
18557 s,@configure_args@,$configure_args,;t t
18558 s,@build@,$build,;t t
18559 s,@build_cpu@,$build_cpu,;t t
18560 s,@build_vendor@,$build_vendor,;t t
18561 s,@build_os@,$build_os,;t t
18562 s,@host@,$host,;t t
18563 s,@host_cpu@,$host_cpu,;t t
18564 s,@host_vendor@,$host_vendor,;t t
18565 s,@host_os@,$host_os,;t t
18566 s,@PORTNAME@,$PORTNAME,;t t
18567 s,@docdir@,$docdir,;t t
18568 s,@enable_nls@,$enable_nls,;t t
18569 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18570 s,@default_port@,$default_port,;t t
18571 s,@enable_shared@,$enable_shared,;t t
18572 s,@enable_rpath@,$enable_rpath,;t t
18573 s,@enable_debug@,$enable_debug,;t t
18575 s,@CFLAGS@,$CFLAGS,;t t
18576 s,@LDFLAGS@,$LDFLAGS,;t t
18577 s,@CPPFLAGS@,$CPPFLAGS,;t t
18578 s,@ac_ct_CC@,$ac_ct_CC,;t t
18579 s,@EXEEXT@,$EXEEXT,;t t
18580 s,@OBJEXT@,$OBJEXT,;t t
18584 s,@autodepend@,$autodepend,;t t
18585 s,@INCLUDES@,$INCLUDES,;t t
18586 s,@enable_thread_safety@,$enable_thread_safety,;t t
18587 s,@with_tcl@,$with_tcl,;t t
18588 s,@with_perl@,$with_perl,;t t
18589 s,@with_python@,$with_python,;t t
18590 s,@with_krb4@,$with_krb4,;t t
18591 s,@with_krb5@,$with_krb5,;t t
18592 s,@krb_srvtab@,$krb_srvtab,;t t
18593 s,@with_pam@,$with_pam,;t t
18594 s,@with_rendezvous@,$with_rendezvous,;t t
18595 s,@with_openssl@,$with_openssl,;t t
18596 s,@ELF_SYS@,$ELF_SYS,;t t
18598 s,@FLEX@,$FLEX,;t t
18599 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18600 s,@LN_S@,$LN_S,;t t
18602 s,@with_gnu_ld@,$with_gnu_ld,;t t
18603 s,@ld_R_works@,$ld_R_works,;t t
18604 s,@RANLIB@,$RANLIB,;t t
18605 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18606 s,@LORDER@,$LORDER,;t t
18608 s,@STRIP@,$STRIP,;t t
18609 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18610 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18611 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18612 s,@YACC@,$YACC,;t t
18613 s,@YFLAGS@,$YFLAGS,;t t
18614 s,@PERL@,$PERL,;t t
18615 s,@perl_archlibexp@,$perl_archlibexp,;t t
18616 s,@perl_privlibexp@,$perl_privlibexp,;t t
18617 s,@perl_useshrplib@,$perl_useshrplib,;t t
18618 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18619 s,@PYTHON@,$PYTHON,;t t
18620 s,@python_prefix@,$python_prefix,;t t
18621 s,@python_execprefix@,$python_execprefix,;t t
18622 s,@python_configdir@,$python_configdir,;t t
18623 s,@python_includespec@,$python_includespec,;t t
18624 s,@python_libspec@,$python_libspec,;t t
18625 s,@LIBOBJS@,$LIBOBJS,;t t
18626 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18627 s,@USE_PGTZ@,$USE_PGTZ,;t t
18628 s,@acx_pthread_config@,$acx_pthread_config,;t t
18629 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
18630 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
18631 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
18632 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18633 s,@MSGFMT@,$MSGFMT,;t t
18634 s,@MSGMERGE@,$MSGMERGE,;t t
18635 s,@XGETTEXT@,$XGETTEXT,;t t
18636 s,@localedir@,$localedir,;t t
18637 s,@TCLSH@,$TCLSH,;t t
18638 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18639 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18640 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18641 s,@TCL_LIBS@,$TCL_LIBS,;t t
18642 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18643 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18644 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18645 s,@NSGMLS@,$NSGMLS,;t t
18646 s,@JADE@,$JADE,;t t
18647 s,@have_docbook@,$have_docbook,;t t
18648 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18649 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18650 s,@SGMLSPL@,$SGMLSPL,;t t
18651 s,@vpath_build@,$vpath_build,;t t
18656 cat >>$CONFIG_STATUS <<\_ACEOF
18657 # Split the substitutions into bite-sized pieces for seds with
18658 # small command number limits, like on Digital OSF/1 and HP-UX.
18659 ac_max_sed_lines=48
18660 ac_sed_frag=1 # Number of current file.
18661 ac_beg=1 # First line for current file.
18662 ac_end=$ac_max_sed_lines # Line after last line for current file.
18665 while $ac_more_lines; do
18666 if test $ac_beg -gt 1; then
18667 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18669 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18671 if test ! -s $tmp/subs.frag; then
18672 ac_more_lines=false
18674 # The purpose of the label and of the branching condition is to
18675 # speed up the sed processing (if there are no `@' at all, there
18676 # is no need to browse any of the substitutions).
18677 # These are the two extra sed commands mentioned above.
18679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18680 if test -z "$ac_sed_cmds"; then
18681 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18683 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18685 ac_sed_frag=`expr $ac_sed_frag + 1`
18687 ac_end=`expr $ac_end + $ac_max_sed_lines`
18690 if test -z "$ac_sed_cmds"; then
18693 fi # test -n "$CONFIG_FILES"
18696 cat >>$CONFIG_STATUS <<\_ACEOF
18697 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18698 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18700 - | *:- | *:-:* ) # input from stdin
18702 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18703 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18704 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18705 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18706 * ) ac_file_in=$ac_file.in ;;
18709 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18710 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18711 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18712 X"$ac_file" : 'X\(//\)[^/]' \| \
18713 X"$ac_file" : 'X\(//\)$' \| \
18714 X"$ac_file" : 'X\(/\)' \| \
18715 . : '\(.\)' 2>/dev/null ||
18717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18719 /^X\(\/\/\)$/{ s//\1/; q; }
18720 /^X\(\/\).*/{ s//\1/; q; }
18722 { case "$ac_dir" in
18723 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18727 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18728 case $as_mkdir_dir in
18729 # Skip DOS drivespec
18730 ?:) as_incr_dir=$as_mkdir_dir ;;
18732 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18733 test -d "$as_incr_dir" ||
18734 mkdir "$as_incr_dir" ||
18735 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18736 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18737 { (exit 1); exit 1; }; }
18744 if test "$ac_dir" != .; then
18745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18746 # A "../" for each directory in $ac_dir_suffix.
18747 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18749 ac_dir_suffix= ac_top_builddir=
18753 .) # No --srcdir option. We are building in place.
18755 if test -z "$ac_top_builddir"; then
18758 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18760 [\\/]* | ?:[\\/]* ) # Absolute path.
18761 ac_srcdir=$srcdir$ac_dir_suffix;
18762 ac_top_srcdir=$srcdir ;;
18763 *) # Relative path.
18764 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18765 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18767 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18769 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18770 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18771 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18772 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18776 if test x"$ac_file" != x-; then
18777 { echo "$as_me:$LINENO: creating $ac_file" >&5
18778 echo "$as_me: creating $ac_file" >&6;}
18781 # Let's still pretend it is `configure' which instantiates (i.e., don't
18782 # use $as_me), people would be surprised to read:
18783 # /* config.h. Generated by config.status. */
18784 if test x"$ac_file" = x-; then
18787 configure_input="$ac_file. "
18789 configure_input=$configure_input"Generated from `echo $ac_file_in |
18790 sed 's,.*/,,'` by configure."
18792 # First look for the input files in the build tree, otherwise in the
18794 ac_file_inputs=`IFS=:
18795 for f in $ac_file_in; do
18797 -) echo $tmp/stdin ;;
18799 # Absolute (can't be DOS-style, as IFS=:)
18800 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18801 echo "$as_me: error: cannot find input file: $f" >&2;}
18802 { (exit 1); exit 1; }; }
18805 if test -f "$f"; then
18808 elif test -f "$srcdir/$f"; then
18813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18814 echo "$as_me: error: cannot find input file: $f" >&2;}
18815 { (exit 1); exit 1; }; }
18818 done` || { (exit 1); exit 1; }
18820 cat >>$CONFIG_STATUS <<_ACEOF
18824 cat >>$CONFIG_STATUS <<\_ACEOF
18826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18827 s,@configure_input@,$configure_input,;t t
18828 s,@srcdir@,$ac_srcdir,;t t
18829 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18830 s,@top_srcdir@,$ac_top_srcdir,;t t
18831 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18832 s,@builddir@,$ac_builddir,;t t
18833 s,@abs_builddir@,$ac_abs_builddir,;t t
18834 s,@top_builddir@,$ac_top_builddir,;t t
18835 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18836 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18838 if test x"$ac_file" != x-; then
18839 mv $tmp/out $ac_file
18847 cat >>$CONFIG_STATUS <<\_ACEOF
18850 # CONFIG_HEADER section.
18853 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18854 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18856 # ac_d sets the value in "#define NAME VALUE" lines.
18857 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18858 ac_dB='[ ].*$,\1#\2'
18861 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18862 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18863 ac_uB='$,\1#\2define\3'
18867 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18870 - | *:- | *:-:* ) # input from stdin
18872 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18873 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18874 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18875 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18876 * ) ac_file_in=$ac_file.in ;;
18879 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18880 echo "$as_me: creating $ac_file" >&6;}
18882 # First look for the input files in the build tree, otherwise in the
18884 ac_file_inputs=`IFS=:
18885 for f in $ac_file_in; do
18887 -) echo $tmp/stdin ;;
18889 # Absolute (can't be DOS-style, as IFS=:)
18890 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18891 echo "$as_me: error: cannot find input file: $f" >&2;}
18892 { (exit 1); exit 1; }; }
18895 if test -f "$f"; then
18898 elif test -f "$srcdir/$f"; then
18903 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18904 echo "$as_me: error: cannot find input file: $f" >&2;}
18905 { (exit 1); exit 1; }; }
18908 done` || { (exit 1); exit 1; }
18909 # Remove the trailing spaces.
18910 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18914 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18915 # `conftest.undefs', that substitutes the proper values into
18916 # config.h.in to produce config.h. The first handles `#define'
18917 # templates, and the second `#undef' templates.
18918 # And first: Protect against being on the right side of a sed subst in
18919 # config.status. Protect against being in an unquoted here document
18920 # in config.status.
18921 rm -f conftest.defines conftest.undefs
18922 # Using a here document instead of a string reduces the quoting nightmare.
18923 # Putting comments in sed scripts is not portable.
18925 # `end' is used to avoid that the second main sed command (meant for
18926 # 0-ary CPP macros) applies to n-ary macro definitions.
18927 # See the Autoconf documentation for `clear'.
18928 cat >confdef2sed.sed <<\_ACEOF
18933 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18935 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18938 # If some macros were called several times there might be several times
18939 # the same #defines, which is useless. Nevertheless, we may not want to
18940 # sort them, since we want the *last* AC-DEFINE to be honored.
18941 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18942 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18943 rm -f confdef2sed.sed
18945 # This sed command replaces #undef with comments. This is necessary, for
18946 # example, in the case of _POSIX_SOURCE, which is predefined and required
18947 # on some systems where configure will not decide to define it.
18948 cat >>conftest.undefs <<\_ACEOF
18949 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18952 # Break up conftest.defines because some shells have a limit on the size
18953 # of here documents, and old seds have small limits too (100 cmds).
18954 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18955 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18956 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18957 echo ' :' >>$CONFIG_STATUS
18958 rm -f conftest.tail
18959 while grep . conftest.defines >/dev/null
18961 # Write a limited-size here document to $tmp/defines.sed.
18962 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18963 # Speed up: don't consider the non `#define' lines.
18964 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18965 # Work around the forget-to-reset-the-flag bug.
18966 echo 't clr' >>$CONFIG_STATUS
18967 echo ': clr' >>$CONFIG_STATUS
18968 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18970 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18972 mv $tmp/out $tmp/in
18974 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18975 rm -f conftest.defines
18976 mv conftest.tail conftest.defines
18978 rm -f conftest.defines
18979 echo ' fi # egrep' >>$CONFIG_STATUS
18980 echo >>$CONFIG_STATUS
18982 # Break up conftest.undefs because some shells have a limit on the size
18983 # of here documents, and old seds have small limits too (100 cmds).
18984 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18985 rm -f conftest.tail
18986 while grep . conftest.undefs >/dev/null
18988 # Write a limited-size here document to $tmp/undefs.sed.
18989 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18990 # Speed up: don't consider the non `#undef'
18991 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18992 # Work around the forget-to-reset-the-flag bug.
18993 echo 't clr' >>$CONFIG_STATUS
18994 echo ': clr' >>$CONFIG_STATUS
18995 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18997 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18999 mv $tmp/out $tmp/in
19001 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19002 rm -f conftest.undefs
19003 mv conftest.tail conftest.undefs
19005 rm -f conftest.undefs
19007 cat >>$CONFIG_STATUS <<\_ACEOF
19008 # Let's still pretend it is `configure' which instantiates (i.e., don't
19009 # use $as_me), people would be surprised to read:
19010 # /* config.h. Generated by config.status. */
19011 if test x"$ac_file" = x-; then
19012 echo "/* Generated by configure. */" >$tmp/config.h
19014 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19016 cat $tmp/in >>$tmp/config.h
19018 if test x"$ac_file" != x-; then
19019 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19020 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19021 echo "$as_me: $ac_file is unchanged" >&6;}
19023 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19025 X"$ac_file" : 'X\(//\)[^/]' \| \
19026 X"$ac_file" : 'X\(//\)$' \| \
19027 X"$ac_file" : 'X\(/\)' \| \
19028 . : '\(.\)' 2>/dev/null ||
19030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19032 /^X\(\/\/\)$/{ s//\1/; q; }
19033 /^X\(\/\).*/{ s//\1/; q; }
19035 { case "$ac_dir" in
19036 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19040 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19041 case $as_mkdir_dir in
19042 # Skip DOS drivespec
19043 ?:) as_incr_dir=$as_mkdir_dir ;;
19045 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19046 test -d "$as_incr_dir" ||
19047 mkdir "$as_incr_dir" ||
19048 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19049 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19050 { (exit 1); exit 1; }; }
19056 mv $tmp/config.h $ac_file
19060 rm -f $tmp/config.h
19062 # Run the commands associated with the file.
19064 src/include/pg_config.h )
19065 # Update timestamp for pg_config.h (see Makefile.global)
19066 echo >src/include/stamp-h
19071 cat >>$CONFIG_STATUS <<\_ACEOF
19074 # CONFIG_LINKS section.
19077 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19078 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19079 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19081 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19082 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19084 if test ! -r $srcdir/$ac_source; then
19085 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19086 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19087 { (exit 1); exit 1; }; }
19091 # Make relative symlinks.
19092 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19093 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19094 X"$ac_dest" : 'X\(//\)[^/]' \| \
19095 X"$ac_dest" : 'X\(//\)$' \| \
19096 X"$ac_dest" : 'X\(/\)' \| \
19097 . : '\(.\)' 2>/dev/null ||
19099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19101 /^X\(\/\/\)$/{ s//\1/; q; }
19102 /^X\(\/\).*/{ s//\1/; q; }
19104 { case "$ac_dest_dir" in
19105 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19108 as_dummy="$ac_dest_dir"
19109 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19110 case $as_mkdir_dir in
19111 # Skip DOS drivespec
19112 ?:) as_incr_dir=$as_mkdir_dir ;;
19114 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19115 test -d "$as_incr_dir" ||
19116 mkdir "$as_incr_dir" ||
19117 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
19118 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
19119 { (exit 1); exit 1; }; }
19126 if test "$ac_dest_dir" != .; then
19127 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19128 # A "../" for each directory in $ac_dir_suffix.
19129 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19131 ac_dir_suffix= ac_top_builddir=
19135 .) # No --srcdir option. We are building in place.
19137 if test -z "$ac_top_builddir"; then
19140 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19142 [\\/]* | ?:[\\/]* ) # Absolute path.
19143 ac_srcdir=$srcdir$ac_dir_suffix;
19144 ac_top_srcdir=$srcdir ;;
19145 *) # Relative path.
19146 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19147 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19149 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
19151 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
19152 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
19153 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
19154 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
19158 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19159 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19162 # Make a symlink if possible; otherwise try a hard link.
19163 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19164 ln $srcdir/$ac_source $ac_dest ||
19165 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
19166 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
19167 { (exit 1); exit 1; }; }
19170 cat >>$CONFIG_STATUS <<\_ACEOF
19173 # CONFIG_COMMANDS section.
19175 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19176 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19177 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19178 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19179 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19180 X"$ac_dest" : 'X\(//\)[^/]' \| \
19181 X"$ac_dest" : 'X\(//\)$' \| \
19182 X"$ac_dest" : 'X\(/\)' \| \
19183 . : '\(.\)' 2>/dev/null ||
19185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19187 /^X\(\/\/\)$/{ s//\1/; q; }
19188 /^X\(\/\).*/{ s//\1/; q; }
19192 if test "$ac_dir" != .; then
19193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19194 # A "../" for each directory in $ac_dir_suffix.
19195 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19197 ac_dir_suffix= ac_top_builddir=
19201 .) # No --srcdir option. We are building in place.
19203 if test -z "$ac_top_builddir"; then
19206 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19208 [\\/]* | ?:[\\/]* ) # Absolute path.
19209 ac_srcdir=$srcdir$ac_dir_suffix;
19210 ac_top_srcdir=$srcdir ;;
19211 *) # Relative path.
19212 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19213 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19215 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19217 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19218 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19219 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19220 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19223 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19224 echo "$as_me: executing $ac_dest commands" >&6;}
19226 check_win32_symlinks )
19227 # Links sometimes fail undetected on Mingw -
19228 # so here we detect it and warn the user
19229 for FILE in "$CONFIG_LINKS"
19231 # test -e works for symlinks in the MinGW console
19232 test -e `expr "$FILE" : '\(^:*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
19233 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
19240 cat >>$CONFIG_STATUS <<\_ACEOF
19242 { (exit 0); exit 0; }
19244 chmod +x $CONFIG_STATUS
19245 ac_clean_files=$ac_clean_files_save
19248 # configure is writing to config.log, and then calls config.status.
19249 # config.status does its own redirection, appending to config.log.
19250 # Unfortunately, on DOS this fails, as config.log is still kept open
19251 # by configure, so config.status won't be able to write to it; its
19252 # output is simply discarded. So we exec the FD to /dev/null,
19253 # effectively closing config.log, so it can be properly (re)opened and
19254 # appended to by config.status. When coming back to configure, we
19255 # need to make the FD available again.
19256 if test "$no_create" != yes; then
19259 $SHELL $CONFIG_STATUS || ac_cs_success=false
19261 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19262 # would make configure fail if this is the last instruction.
19263 $ac_cs_success || { (exit 1); exit 1; }