2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 8.0.0beta1.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2003 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='8.0.0beta1'
262 PACKAGE_STRING='PostgreSQL 8.0.0beta1'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 infodir='${prefix}/info'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -infodir | --infodir | --infodi | --infod | --info | --inf)
441 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442 infodir=$ac_optarg ;;
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir infodir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 8.0.0beta1 to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 if test -n "$ac_init_help"; then
832 case $ac_init_help in
833 short | recursive ) echo "Configuration of PostgreSQL 8.0.0beta1:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-nls[=LANGUAGES] enable Native Language Support
842 --disable-shared do not build shared libraries
843 --disable-rpath do not embed shared library search path in executables
844 --disable-spinlocks do not use spinlocks
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --enable-thread-safety make client libraries thread-safe
849 --enable-thread-safety-force force thread-safety in spite of thread test failure
850 --disable-largefile omit support for large files
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
857 --without-docdir do not install the documentation
858 --with-includes=DIRS look for additional header files in DIRS
859 --with-libraries=DIRS look for additional libraries in DIRS
860 --with-libs=DIRS alternative spelling of --with-libraries
861 --with-pgport=PORTNUM change default port number 5432
862 --with-tcl build Tcl and Tk interfaces
863 --with-tclconfig=DIR tclConfig.sh is in DIR
864 --with-perl build Perl modules (PL/Perl)
865 --with-python build Python modules (PL/Python)
866 --with-krb4 build with Kerberos 4 support
867 --with-krb5 build with Kerberos 5 support
868 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]
869 --with-pam build with PAM support
870 --with-rendezvous build with Rendezvous support
871 --with-openssl build with OpenSSL support
872 --without-readline do not use Readline
873 --without-zlib do not use Zlib
874 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
885 location of DocBook stylesheets
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
890 Report bugs to <pgsql-bugs@postgresql.org>.
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906 ac_dir_suffix= ac_top_builddir=
910 .) # No --srcdir option. We are building in place.
912 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
926 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
927 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
928 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
929 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932 # Check for guested configure; otherwise get Cygnus style configure.
933 if test -f $ac_srcdir/configure.gnu; then
935 $SHELL $ac_srcdir/configure.gnu --help=recursive
936 elif test -f $ac_srcdir/configure; then
938 $SHELL $ac_srcdir/configure --help=recursive
939 elif test -f $ac_srcdir/configure.ac ||
940 test -f $ac_srcdir/configure.in; then
944 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
950 test -n "$ac_init_help" && exit 0
951 if $ac_init_version; then
953 PostgreSQL configure 8.0.0beta1
954 generated by GNU Autoconf 2.53
956 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
957 Free Software Foundation, Inc.
958 This configure script is free software; the Free Software Foundation
959 gives unlimited permission to copy, distribute and modify it.
961 Copyright 2003 PostgreSQL Global Development Group
967 This file contains any messages produced by compilers while
968 running configure, to aid debugging if configure makes a mistake.
970 It was created by PostgreSQL $as_me 8.0.0beta1, which was
971 generated by GNU Autoconf 2.53. Invocation command line was
982 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
983 uname -m = `(uname -m) 2>/dev/null || echo unknown`
984 uname -r = `(uname -r) 2>/dev/null || echo unknown`
985 uname -s = `(uname -s) 2>/dev/null || echo unknown`
986 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
989 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
992 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
993 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
994 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
995 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
996 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
997 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1005 test -z "$as_dir" && as_dir=.
1006 echo "PATH: $as_dir"
1021 # Keep a trace of the command line.
1022 # Strip out --no-create and --no-recursion so they do not pile up.
1023 # Also quote any args containing shell meta-characters.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n ) continue ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 case " $ac_configure_args " in
1038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1039 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1045 # When interrupted or exit'd, cleanup temporary files, and complete
1046 # config.log. We remove comments because anyway the quotes in there
1047 # would cause problems or look ugly.
1048 # WARNING: Be sure not to use single quotes in there, as some shells,
1049 # such as our DU 5.0 friend, will then `close' the trap.
1050 trap 'exit_status=$?
1051 # Save into config.log some information that might help in debugging.
1055 ## ---------------- ##
1056 ## Cache variables. ##
1057 ## ---------------- ##
1060 # The following way of writing the cache mishandles newlines in values,
1063 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1066 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1076 if test -s confdefs.h; then
1083 sed "/^$/d" confdefs.h
1086 test "$ac_signal" != 0 &&
1087 echo "$as_me: caught signal $ac_signal"
1088 echo "$as_me: exit $exit_status"
1090 rm -f core core.* *.core &&
1091 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1094 for ac_signal in 1 2 13 15; do
1095 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1100 rm -rf conftest* confdefs.h
1101 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1104 # Predefined preprocessor variables.
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_NAME "$PACKAGE_NAME"
1111 cat >>confdefs.h <<_ACEOF
1112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_STRING "$PACKAGE_STRING"
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1131 # Let the site file select an alternate cache file if it wants to.
1132 # Prefer explicitly selected file to automatically selected ones.
1133 if test -z "$CONFIG_SITE"; then
1134 if test "x$prefix" != xNONE; then
1135 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1137 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1140 for ac_site_file in $CONFIG_SITE; do
1141 if test -r "$ac_site_file"; then
1142 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1143 echo "$as_me: loading site script $ac_site_file" >&6;}
1144 sed 's/^/| /' "$ac_site_file" >&5
1149 if test -r "$cache_file"; then
1150 # Some versions of bash will fail to source /dev/null (special
1151 # files actually), so we avoid doing that.
1152 if test -f "$cache_file"; then
1153 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1154 echo "$as_me: loading cache $cache_file" >&6;}
1156 [\\/]* | ?:[\\/]* ) . $cache_file;;
1157 *) . ./$cache_file;;
1161 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1162 echo "$as_me: creating cache $cache_file" >&6;}
1166 # Check that the precious variables saved in the cache have kept the same
1168 ac_cache_corrupted=false
1169 for ac_var in `(set) 2>&1 |
1170 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1171 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1172 eval ac_new_set=\$ac_env_${ac_var}_set
1173 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1174 eval ac_new_val="\$ac_env_${ac_var}_value"
1175 case $ac_old_set,$ac_new_set in
1177 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1178 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1179 ac_cache_corrupted=: ;;
1181 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1182 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1183 ac_cache_corrupted=: ;;
1186 if test "x$ac_old_val" != "x$ac_new_val"; then
1187 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1188 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1189 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1190 echo "$as_me: former value: $ac_old_val" >&2;}
1191 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1192 echo "$as_me: current value: $ac_new_val" >&2;}
1193 ac_cache_corrupted=:
1196 # Pass precious variables to config.status.
1197 if test "$ac_new_set" = set; then
1199 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1201 *) ac_arg=$ac_var=$ac_new_val ;;
1203 case " $ac_configure_args " in
1204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1205 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1209 if $ac_cache_corrupted; then
1210 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1211 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1212 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1213 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1214 { (exit 1); exit 1; }; }
1218 ac_cpp='$CPP $CPPFLAGS'
1219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1253 for ac_dir in config $srcdir/config; do
1254 if test -f $ac_dir/install-sh; then
1256 ac_install_sh="$ac_aux_dir/install-sh -c"
1258 elif test -f $ac_dir/install.sh; then
1260 ac_install_sh="$ac_aux_dir/install.sh -c"
1262 elif test -f $ac_dir/shtool; then
1264 ac_install_sh="$ac_aux_dir/shtool install -c"
1268 if test -z "$ac_aux_dir"; then
1269 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1270 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1271 { (exit 1); exit 1; }; }
1273 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1274 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1275 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1278 configure_args=$ac_configure_args
1282 cat >>confdefs.h <<_ACEOF
1283 #define PG_VERSION "$PACKAGE_VERSION"
1287 # Make sure we can run config.sub.
1288 $ac_config_sub sun4 >/dev/null 2>&1 ||
1289 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1290 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1291 { (exit 1); exit 1; }; }
1293 echo "$as_me:$LINENO: checking build system type" >&5
1294 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1295 if test "${ac_cv_build+set}" = set; then
1296 echo $ECHO_N "(cached) $ECHO_C" >&6
1298 ac_cv_build_alias=$build_alias
1299 test -z "$ac_cv_build_alias" &&
1300 ac_cv_build_alias=`$ac_config_guess`
1301 test -z "$ac_cv_build_alias" &&
1302 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1303 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1304 { (exit 1); exit 1; }; }
1305 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1306 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1307 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1308 { (exit 1); exit 1; }; }
1311 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1312 echo "${ECHO_T}$ac_cv_build" >&6
1314 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1315 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1316 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1319 echo "$as_me:$LINENO: checking host system type" >&5
1320 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1321 if test "${ac_cv_host+set}" = set; then
1322 echo $ECHO_N "(cached) $ECHO_C" >&6
1324 ac_cv_host_alias=$host_alias
1325 test -z "$ac_cv_host_alias" &&
1326 ac_cv_host_alias=$ac_cv_build_alias
1327 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1328 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1329 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1330 { (exit 1); exit 1; }; }
1333 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1334 echo "${ECHO_T}$ac_cv_host" >&6
1336 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1343 echo "$as_me:$LINENO: checking which template to use" >&5
1344 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1349 # Check whether --with-template or --without-template was given.
1350 if test "${with_template+set}" = set; then
1351 withval="$with_template"
1355 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1356 echo "$as_me: error: argument required for --with-template option" >&2;}
1357 { (exit 1); exit 1; }; }
1360 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1361 echo "$as_me: error: argument required for --with-template option" >&2;}
1362 { (exit 1); exit 1; }; }
1367 list) echo; ls "$srcdir/src/template"; exit;;
1368 *) if test -f "$srcdir/src/template/$with_template" ; then
1371 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1372 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1373 { (exit 1); exit 1; }; }
1382 # --with-template not given
1385 aix*) template=aix ;;
1386 beos*) template=beos ;;
1387 bsdi*) template=bsdi ;;
1388 cygwin*) template=cygwin ;;
1389 darwin*) template=darwin ;;
1390 dgux*) template=dgux ;;
1391 freebsd*) template=freebsd ;;
1392 hpux*) template=hpux ;;
1393 irix*) template=irix ;;
1394 linux*) template=linux ;;
1395 mingw*) template=win32 ;;
1396 netbsd*) template=netbsd ;;
1397 nextstep*) template=nextstep ;;
1398 openbsd*) template=openbsd ;;
1399 osf*) template=osf ;;
1400 qnx*) template=qnx4 ;;
1401 sco*) template=sco ;;
1402 solaris*) template=solaris ;;
1403 sunos*) template=sunos4 ;;
1405 case $host_vendor in
1406 univel) template=univel ;;
1408 sysv4*) template=svr4 ;;
1409 sysv5*) template=unixware ;;
1410 ultrix*) template=ultrix4 ;;
1413 if test x"$template" = x"" ; then
1414 { { echo "$as_me:$LINENO: error:
1415 *******************************************************************
1416 PostgreSQL has apparently not been ported to your platform yet.
1417 To try a manual configuration, look into the src/template directory
1418 for a similar platform and use the '--with-template=' option.
1420 Please also contact <pgsql-ports@postgresql.org> to see about
1421 rectifying this. Include the above 'checking host system type...'
1423 *******************************************************************
1425 echo "$as_me: error:
1426 *******************************************************************
1427 PostgreSQL has apparently not been ported to your platform yet.
1428 To try a manual configuration, look into the src/template directory
1429 for a similar platform and use the '--with-template=' option.
1431 Please also contact <pgsql-ports@postgresql.org> to see about
1432 rectifying this. Include the above 'checking host system type...'
1434 *******************************************************************
1436 { (exit 1); exit 1; }; }
1443 echo "$as_me:$LINENO: result: $template" >&5
1444 echo "${ECHO_T}$template" >&6
1449 # Initialize default assumption that we do not need separate assembly code
1450 # for TAS (test-and-set). This can be overridden by the template file
1451 # when it's executed.
1458 ## Command line options
1462 # Installation directory for documentation
1467 # Check whether --with-docdir or --without-docdir was given.
1468 if test "${with_docdir+set}" = set; then
1469 withval="$with_docdir"
1473 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1474 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1475 { (exit 1); exit 1; }; }
1486 docdir='${prefix}/doc'
1493 # Add non-standard directories to the include path
1498 # Check whether --with-includes or --without-includes was given.
1499 if test "${with_includes+set}" = set; then
1500 withval="$with_includes"
1504 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1505 echo "$as_me: error: argument required for --with-includes option" >&2;}
1506 { (exit 1); exit 1; }; }
1509 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1510 echo "$as_me: error: argument required for --with-includes option" >&2;}
1511 { (exit 1); exit 1; }; }
1523 # Add non-standard directories to the library search path
1528 # Check whether --with-libraries or --without-libraries was given.
1529 if test "${with_libraries+set}" = set; then
1530 withval="$with_libraries"
1534 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1535 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1536 { (exit 1); exit 1; }; }
1539 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1540 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1541 { (exit 1); exit 1; }; }
1544 LIBRARY_DIRS=$withval
1554 # Check whether --with-libs or --without-libs was given.
1555 if test "${with_libs+set}" = set; then
1556 withval="$with_libs"
1560 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1561 echo "$as_me: error: argument required for --with-libs option" >&2;}
1562 { (exit 1); exit 1; }; }
1565 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1566 echo "$as_me: error: argument required for --with-libs option" >&2;}
1567 { (exit 1); exit 1; }; }
1570 LIBRARY_DIRS=$withval
1579 # 64-bit integer date/time storage (--enable-integer-datetimes)
1581 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1582 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1585 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1586 if test "${enable_integer_datetimes+set}" = set; then
1587 enableval="$enable_integer_datetimes"
1592 cat >>confdefs.h <<\_ACEOF
1593 #define USE_INTEGER_DATETIMES 1
1601 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1602 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1603 { (exit 1); exit 1; }; }
1608 enable_integer_datetimes=no
1612 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1613 echo "${ECHO_T}$enable_integer_datetimes" >&6
1619 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1620 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1623 # Check whether --enable-nls or --disable-nls was given.
1624 if test "${enable_nls+set}" = set; then
1625 enableval="$enable_nls"
1636 WANTED_LANGUAGES=$enableval
1645 if test "$enable_nls" = yes; then
1647 cat >>confdefs.h <<\_ACEOF
1648 #define ENABLE_NLS 1
1653 echo "$as_me:$LINENO: result: $enable_nls" >&5
1654 echo "${ECHO_T}$enable_nls" >&6
1659 # Default port number (--with-pgport), default 5432
1661 echo "$as_me:$LINENO: checking for default port number" >&5
1662 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1666 # Check whether --with-pgport or --without-pgport was given.
1667 if test "${with_pgport+set}" = set; then
1668 withval="$with_pgport"
1672 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1673 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1674 { (exit 1); exit 1; }; }
1677 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1678 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1679 { (exit 1); exit 1; }; }
1682 default_port=$withval
1690 echo "$as_me:$LINENO: result: $default_port" >&5
1691 echo "${ECHO_T}$default_port" >&6
1692 # Need both of these because some places want an integer and some a string
1694 cat >>confdefs.h <<_ACEOF
1695 #define DEF_PGPORT ${default_port}
1699 cat >>confdefs.h <<_ACEOF
1700 #define DEF_PGPORT_STR "${default_port}"
1706 # Option to disable shared libraries
1710 # Check whether --enable-shared or --disable-shared was given.
1711 if test "${enable_shared+set}" = set; then
1712 enableval="$enable_shared"
1722 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1723 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1724 { (exit 1); exit 1; }; }
1736 # '-rpath'-like feature can be disabled
1740 # Check whether --enable-rpath or --disable-rpath was given.
1741 if test "${enable_rpath+set}" = set; then
1742 enableval="$enable_rpath"
1752 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1753 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1754 { (exit 1); exit 1; }; }
1770 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1771 if test "${enable_spinlocks+set}" = set; then
1772 enableval="$enable_spinlocks"
1782 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1783 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1784 { (exit 1); exit 1; }; }
1789 enable_spinlocks=yes
1795 # --enable-debug adds -g to compiler flags
1799 # Check whether --enable-debug or --disable-debug was given.
1800 if test "${enable_debug+set}" = set; then
1801 enableval="$enable_debug"
1811 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1812 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1813 { (exit 1); exit 1; }; }
1828 # For historical reasons you can also use --with-CC to specify the C compiler
1829 # to use, although the standard way to do this is to set the CC environment
1834 # Check whether --with-CC or --without-CC was given.
1835 if test "${with_CC+set}" = set; then
1840 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1841 echo "$as_me: error: argument required for --with-CC option" >&2;}
1842 { (exit 1); exit 1; }; }
1845 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1846 echo "$as_me: error: argument required for --with-CC option" >&2;}
1847 { (exit 1); exit 1; }; }
1858 aix) pgac_cc_list="gcc xlc";;
1859 irix) pgac_cc_list="cc";; # no gcc
1860 *) pgac_cc_list="gcc cc";;
1864 ac_cpp='$CPP $CPPFLAGS'
1865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1868 if test -n "$ac_tool_prefix"; then
1869 for ac_prog in $pgac_cc_list
1871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 if test -n "$CC"; then
1899 echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1906 test -n "$CC" && break
1909 if test -z "$CC"; then
1911 for ac_prog in $pgac_cc_list
1913 # Extract the first word of "$ac_prog", so it can be a program name with args.
1914 set dummy $ac_prog; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$ac_ct_CC"; then
1921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 ac_cv_prog_ac_ct_CC="$ac_prog"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1940 if test -n "$ac_ct_CC"; then
1941 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1942 echo "${ECHO_T}$ac_ct_CC" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1948 test -n "$ac_ct_CC" && break
1955 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1956 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1957 { (exit 1); exit 1; }; }
1959 # Provide some information about the compiler.
1960 echo "$as_me:$LINENO:" \
1961 "checking for C compiler version" >&5
1962 ac_compiler=`set X $ac_compile; echo $2`
1963 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1964 (eval $ac_compiler --version </dev/null >&5) 2>&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }
1968 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1969 (eval $ac_compiler -v </dev/null >&5) 2>&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); }
1973 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1974 (eval $ac_compiler -V </dev/null >&5) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }
1979 cat >conftest.$ac_ext <<_ACEOF
1980 #line $LINENO "configure"
1981 #include "confdefs.h"
1983 #ifdef F77_DUMMY_MAIN
1987 int F77_DUMMY_MAIN() { return 1; }
1997 ac_clean_files_save=$ac_clean_files
1998 ac_clean_files="$ac_clean_files a.out a.exe"
1999 # Try to create an executable without -o first, disregard a.out.
2000 # It will help us diagnose broken compilers, and finding out an intuition
2002 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2003 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2004 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2005 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2006 (eval $ac_link_default) 2>&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; then
2010 # Find the output, starting from the most likely. This scheme is
2011 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2014 # Be careful to initialize this variable, since it used to be cached.
2015 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2017 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2018 ls a.out conftest 2>/dev/null;
2019 ls a.* conftest.* 2>/dev/null`; do
2021 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2022 a.out ) # We found the default executable, but exeext='' is most
2025 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2026 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2033 echo "$as_me: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2036 echo "$as_me: error: C compiler cannot create executables" >&2;}
2037 { (exit 77); exit 77; }; }
2040 ac_exeext=$ac_cv_exeext
2041 echo "$as_me:$LINENO: result: $ac_file" >&5
2042 echo "${ECHO_T}$ac_file" >&6
2044 # Check the compiler produces executables we can run. If not, either
2045 # the compiler is broken, or we cross compile.
2046 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2049 # If not cross compiling, check that we can run a simple program.
2050 if test "$cross_compiling" != yes; then
2051 if { ac_try='./$ac_file'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; }; then
2059 if test "$cross_compiling" = maybe; then
2062 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2063 If you meant to cross compile, use \`--host'." >&5
2064 echo "$as_me: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'." >&2;}
2066 { (exit 1); exit 1; }; }
2070 echo "$as_me:$LINENO: result: yes" >&5
2071 echo "${ECHO_T}yes" >&6
2073 rm -f a.out a.exe conftest$ac_cv_exeext
2074 ac_clean_files=$ac_clean_files_save
2075 # Check the compiler produces executables we can run. If not, either
2076 # the compiler is broken, or we cross compile.
2077 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2078 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2079 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2080 echo "${ECHO_T}$cross_compiling" >&6
2082 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2083 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2085 (eval $ac_link) 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; then
2089 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2090 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2091 # work properly (i.e., refer to `conftest.exe'), while it won't with
2093 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2095 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2096 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2103 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2104 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2105 { (exit 1); exit 1; }; }
2108 rm -f conftest$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2110 echo "${ECHO_T}$ac_cv_exeext" >&6
2112 rm -f conftest.$ac_ext
2113 EXEEXT=$ac_cv_exeext
2115 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2116 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2117 if test "${ac_cv_objext+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #line $LINENO "configure"
2122 #include "confdefs.h"
2124 #ifdef F77_DUMMY_MAIN
2128 int F77_DUMMY_MAIN() { return 1; }
2138 rm -f conftest.o conftest.obj
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }; then
2144 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2147 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2152 echo "$as_me: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2155 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2156 { (exit 1); exit 1; }; }
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #line $LINENO "configure"
2172 #include "confdefs.h"
2174 #ifdef F77_DUMMY_MAIN
2178 int F77_DUMMY_MAIN() { return 1; }
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2205 echo "$as_me: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2209 rm -f conftest.$ac_objext conftest.$ac_ext
2210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2213 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2215 GCC=`test $ac_compiler_gnu = yes && echo yes`
2216 ac_test_CFLAGS=${CFLAGS+set}
2217 ac_save_CFLAGS=$CFLAGS
2219 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2220 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2221 if test "${ac_cv_prog_cc_g+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 cat >conftest.$ac_ext <<_ACEOF
2225 #line $LINENO "configure"
2226 #include "confdefs.h"
2228 #ifdef F77_DUMMY_MAIN
2232 int F77_DUMMY_MAIN() { return 1; }
2242 rm -f conftest.$ac_objext
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244 (eval $ac_compile) 2>&5
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); } &&
2248 { ac_try='test -s conftest.$ac_objext'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2256 echo "$as_me: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2260 rm -f conftest.$ac_objext conftest.$ac_ext
2262 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2263 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2264 if test "$ac_test_CFLAGS" = set; then
2265 CFLAGS=$ac_save_CFLAGS
2266 elif test $ac_cv_prog_cc_g = yes; then
2267 if test "$GCC" = yes; then
2273 if test "$GCC" = yes; then
2279 # Some people use a C++ compiler to compile C. Since we use `exit',
2280 # in C++ we need to declare it. In case someone uses the same compiler
2281 # for both compiling C and C++ we need to have the C++ compiler decide
2282 # the declaration of exit, since it's the most demanding environment.
2283 cat >conftest.$ac_ext <<_ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -s conftest.$ac_objext'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2300 for ac_declaration in \
2302 '#include <stdlib.h>' \
2303 'extern "C" void std::exit (int) throw (); using std::exit;' \
2304 'extern "C" void std::exit (int); using std::exit;' \
2305 'extern "C" void exit (int) throw ();' \
2306 'extern "C" void exit (int);' \
2309 cat >conftest.$ac_ext <<_ACEOF
2310 #line $LINENO "configure"
2311 #include "confdefs.h"
2314 #ifdef F77_DUMMY_MAIN
2318 int F77_DUMMY_MAIN() { return 1; }
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); } &&
2334 { ac_try='test -s conftest.$ac_objext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2342 echo "$as_me: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2347 cat >conftest.$ac_ext <<_ACEOF
2348 #line $LINENO "configure"
2349 #include "confdefs.h"
2351 #ifdef F77_DUMMY_MAIN
2355 int F77_DUMMY_MAIN() { return 1; }
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367 (eval $ac_compile) 2>&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2382 rm -f conftest.$ac_objext conftest.$ac_ext
2385 if test -n "$ac_declaration"; then
2386 echo '#ifdef __cplusplus' >>confdefs.h
2387 echo $ac_declaration >>confdefs.h
2388 echo '#endif' >>confdefs.h
2392 echo "$as_me: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 rm -f conftest.$ac_objext conftest.$ac_ext
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2408 . "$srcdir/src/template/$template" || exit
2410 # CFLAGS are selected so:
2411 # If the user specifies something in the environment, that is used.
2412 # else: If the template file set something, that is used.
2413 # else: If the compiler is GCC, then we use -O2.
2414 # else: If the compiler is something else, then we use -0.
2416 if test "$ac_env_CFLAGS_set" = set; then
2417 CFLAGS=$ac_env_CFLAGS_value
2418 elif test "${CFLAGS+set}" = set; then
2419 : # (keep what template set)
2420 elif test "$GCC" = yes; then
2423 # if the user selected debug mode, don't use -O
2424 if test "$enable_debug" != yes; then
2429 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2430 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2431 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2432 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2433 echo $ECHO_N "(cached) $ECHO_C" >&6
2435 pgac_save_CFLAGS=$CFLAGS
2436 if test "$GCC" = yes; then
2437 pgac_try="-fno-strict-aliasing"
2439 # Maybe fill in later...
2443 for pgac_flag in $pgac_try; do
2444 CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #line $LINENO "configure"
2447 #include "confdefs.h"
2449 #ifdef F77_DUMMY_MAIN
2453 int F77_DUMMY_MAIN() { return 1; }
2463 rm -f conftest.$ac_objext
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); } &&
2469 { ac_try='test -s conftest.$ac_objext'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; }; then
2475 pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 rm -f conftest.$ac_objext conftest.$ac_ext
2484 CFLAGS=$pgac_save_CFLAGS
2487 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2488 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2490 if test x"$pgac_cv_prog_cc_no_strict_aliasing" != x""; then
2491 CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2494 # supply -g if --enable-debug
2495 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2499 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2500 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2502 # We already have this in Makefile.win32, but configure needs it too
2503 if test "$PORTNAME" = "win32"; then
2504 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
2507 # Check if the compiler still works with the template settings
2508 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2509 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2511 cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 #include "confdefs.h"
2515 #ifdef F77_DUMMY_MAIN
2519 int F77_DUMMY_MAIN() { return 1; }
2529 rm -f conftest.$ac_objext conftest$ac_exeext
2530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2531 (eval $ac_link) 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } &&
2535 { ac_try='test -s conftest$ac_exeext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 echo "$as_me:$LINENO: result: yes" >&5
2542 echo "${ECHO_T}yes" >&6
2544 echo "$as_me: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6
2548 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2549 echo "$as_me: error: cannot proceed" >&2;}
2550 { (exit 1); exit 1; }; }
2552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2554 # Defend against gcc -ffast-math
2555 if test "$GCC" = yes; then
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2558 #include "confdefs.h"
2560 #ifdef F77_DUMMY_MAIN
2564 int F77_DUMMY_MAIN() { return 1; }
2569 #ifdef __FAST_MATH__
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2590 echo "$as_me: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2593 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2594 { (exit 1); exit 1; }; }
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2600 ac_cpp='$CPP $CPPFLAGS'
2601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2605 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2606 # On Suns, sometimes $CPP names a directory.
2607 if test -n "$CPP" && test -d "$CPP"; then
2610 if test -z "$CPP"; then
2611 if test "${ac_cv_prog_CPP+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 # Double quotes because CPP needs to be expanded
2615 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2618 for ac_c_preproc_warn_flag in '' yes
2620 # Use a header file that comes with gcc, so configuring glibc
2621 # with a fresh cross-compiler works.
2622 # On the NeXT, cc -E runs the code through the compiler's parser,
2623 # not just through cpp. "Syntax error" is here to catch this case.
2624 cat >conftest.$ac_ext <<_ACEOF
2625 #line $LINENO "configure"
2626 #include "confdefs.h"
2630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2633 egrep -v '^ *\+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } >/dev/null; then
2638 if test -s conftest.err; then
2639 ac_cpp_err=$ac_c_preproc_warn_flag
2646 if test -z "$ac_cpp_err"; then
2649 echo "$as_me: failed program was:" >&5
2650 cat conftest.$ac_ext >&5
2651 # Broken: fails on valid input.
2654 rm -f conftest.err conftest.$ac_ext
2656 # OK, works on sane cases. Now check whether non-existent headers
2657 # can be detected and how.
2658 cat >conftest.$ac_ext <<_ACEOF
2659 #line $LINENO "configure"
2660 #include "confdefs.h"
2661 #include <ac_nonexistent.h>
2663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2666 egrep -v '^ *\+' conftest.er1 >conftest.err
2668 cat conftest.err >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } >/dev/null; then
2671 if test -s conftest.err; then
2672 ac_cpp_err=$ac_c_preproc_warn_flag
2679 if test -z "$ac_cpp_err"; then
2680 # Broken: success on invalid input.
2683 echo "$as_me: failed program was:" >&5
2684 cat conftest.$ac_ext >&5
2685 # Passes both tests.
2689 rm -f conftest.err conftest.$ac_ext
2692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2693 rm -f conftest.err conftest.$ac_ext
2694 if $ac_preproc_ok; then
2706 echo "$as_me:$LINENO: result: $CPP" >&5
2707 echo "${ECHO_T}$CPP" >&6
2709 for ac_c_preproc_warn_flag in '' yes
2711 # Use a header file that comes with gcc, so configuring glibc
2712 # with a fresh cross-compiler works.
2713 # On the NeXT, cc -E runs the code through the compiler's parser,
2714 # not just through cpp. "Syntax error" is here to catch this case.
2715 cat >conftest.$ac_ext <<_ACEOF
2716 #line $LINENO "configure"
2717 #include "confdefs.h"
2721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2724 egrep -v '^ *\+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } >/dev/null; then
2729 if test -s conftest.err; then
2730 ac_cpp_err=$ac_c_preproc_warn_flag
2737 if test -z "$ac_cpp_err"; then
2740 echo "$as_me: failed program was:" >&5
2741 cat conftest.$ac_ext >&5
2742 # Broken: fails on valid input.
2745 rm -f conftest.err conftest.$ac_ext
2747 # OK, works on sane cases. Now check whether non-existent headers
2748 # can be detected and how.
2749 cat >conftest.$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 #include "confdefs.h"
2752 #include <ac_nonexistent.h>
2754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2757 egrep -v '^ *\+' conftest.er1 >conftest.err
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } >/dev/null; then
2762 if test -s conftest.err; then
2763 ac_cpp_err=$ac_c_preproc_warn_flag
2770 if test -z "$ac_cpp_err"; then
2771 # Broken: success on invalid input.
2774 echo "$as_me: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2776 # Passes both tests.
2780 rm -f conftest.err conftest.$ac_ext
2783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2784 rm -f conftest.err conftest.$ac_ext
2785 if $ac_preproc_ok; then
2788 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2789 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2790 { (exit 1); exit 1; }; }
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 # Create compiler version string
2802 if test x"$GCC" = x"yes" ; then
2803 cc_string="GCC `${CC} --version | sed q`"
2808 cat >>confdefs.h <<_ACEOF
2809 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2815 # Set up TAS assembly code if needed; the template file has now had its
2816 # chance to request this.
2818 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2821 if test "$need_tas" = yes ; then
2830 # Automatic dependency tracking
2834 # Check whether --enable-depend or --disable-depend was given.
2835 if test "${enable_depend+set}" = set; then
2836 enableval="$enable_depend"
2846 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2847 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2848 { (exit 1); exit 1; }; }
2861 # Enable assert checks
2865 # Check whether --enable-cassert or --disable-cassert was given.
2866 if test "${enable_cassert+set}" = set; then
2867 enableval="$enable_cassert"
2872 cat >>confdefs.h <<\_ACEOF
2873 #define USE_ASSERT_CHECKING 1
2881 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2882 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2883 { (exit 1); exit 1; }; }
2895 # Include directories
2899 # SRCH_INC comes from the template file
2900 for dir in $with_includes $SRCH_INC; do
2901 if test -d "$dir"; then
2902 INCLUDES="$INCLUDES -I$dir"
2904 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2905 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2913 # Library directories
2917 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2918 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2919 if test -d "$dir"; then
2920 LIBDIRS="$LIBDIRS -L$dir"
2922 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2923 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2929 # Enable thread-safe client libraries
2931 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2932 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2935 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2936 if test "${enable_thread_safety+set}" = set; then
2937 enableval="$enable_thread_safety"
2947 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2948 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2949 { (exit 1); exit 1; }; }
2954 enable_thread_safety=no
2960 # Check whether --enable-thread-safety-force or --disable-thread-safety-force was given.
2961 if test "${enable_thread_safety_force+set}" = set; then
2962 enableval="$enable_thread_safety_force"
2972 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
2973 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
2974 { (exit 1); exit 1; }; }
2979 enable_thread_safety_force=no
2983 if test "$enable_thread_safety" = yes -o \
2984 "$enable_thread_safety_force" = yes; then
2985 enable_thread_safety="yes" # for 'force'
2987 cat >>confdefs.h <<\_ACEOF
2988 #define ENABLE_THREAD_SAFETY 1
2992 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2993 echo "${ECHO_T}$enable_thread_safety" >&6
2999 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
3000 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
3004 # Check whether --with-tcl or --without-tcl was given.
3005 if test "${with_tcl+set}" = set; then
3016 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
3017 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
3018 { (exit 1); exit 1; }; }
3027 echo "$as_me:$LINENO: result: $with_tcl" >&5
3028 echo "${ECHO_T}$with_tcl" >&6
3031 # We see if the path to the Tcl/Tk configuration scripts is specified.
3032 # This will override the use of tclsh to find the paths to search.
3037 # Check whether --with-tclconfig or --without-tclconfig was given.
3038 if test "${with_tclconfig+set}" = set; then
3039 withval="$with_tclconfig"
3043 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3044 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3045 { (exit 1); exit 1; }; }
3048 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3049 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3050 { (exit 1); exit 1; }; }
3061 # Optionally build Perl modules (PL/Perl)
3063 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3064 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3068 # Check whether --with-perl or --without-perl was given.
3069 if test "${with_perl+set}" = set; then
3070 withval="$with_perl"
3080 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3081 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3082 { (exit 1); exit 1; }; }
3091 echo "$as_me:$LINENO: result: $with_perl" >&5
3092 echo "${ECHO_T}$with_perl" >&6
3096 # Optionally build Python modules (PL/Python)
3098 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3099 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3103 # Check whether --with-python or --without-python was given.
3104 if test "${with_python+set}" = set; then
3105 withval="$with_python"
3115 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3116 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3117 { (exit 1); exit 1; }; }
3126 echo "$as_me:$LINENO: result: $with_python" >&5
3127 echo "${ECHO_T}$with_python" >&6
3133 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3134 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3138 # Check whether --with-krb4 or --without-krb4 was given.
3139 if test "${with_krb4+set}" = set; then
3140 withval="$with_krb4"
3146 cat >>confdefs.h <<\_ACEOF
3150 krb_srvtab="/etc/srvtab"
3157 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3158 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3159 { (exit 1); exit 1; }; }
3168 echo "$as_me:$LINENO: result: $with_krb4" >&5
3169 echo "${ECHO_T}$with_krb4" >&6
3176 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3177 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3181 # Check whether --with-krb5 or --without-krb5 was given.
3182 if test "${with_krb5+set}" = set; then
3183 withval="$with_krb5"
3189 cat >>confdefs.h <<\_ACEOF
3193 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3200 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3201 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3202 { (exit 1); exit 1; }; }
3211 echo "$as_me:$LINENO: result: $with_krb5" >&5
3212 echo "${ECHO_T}$with_krb5" >&6
3216 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3217 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3218 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3219 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3220 { (exit 1); exit 1; }; }
3227 # Kerberos configuration parameters
3232 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3233 if test "${with_krb_srvnam+set}" = set; then
3234 withval="$with_krb_srvnam"
3238 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3239 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3240 { (exit 1); exit 1; }; }
3243 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3244 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3245 { (exit 1); exit 1; }; }
3253 with_krb_srvnam="postgres"
3257 cat >>confdefs.h <<_ACEOF
3258 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3266 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3267 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3271 # Check whether --with-pam or --without-pam was given.
3272 if test "${with_pam+set}" = set; then
3278 cat >>confdefs.h <<\_ACEOF
3287 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3288 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3289 { (exit 1); exit 1; }; }
3298 echo "$as_me:$LINENO: result: $with_pam" >&5
3299 echo "${ECHO_T}$with_pam" >&6
3306 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3307 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3311 # Check whether --with-rendezvous or --without-rendezvous was given.
3312 if test "${with_rendezvous+set}" = set; then
3313 withval="$with_rendezvous"
3318 cat >>confdefs.h <<\_ACEOF
3319 #define USE_RENDEZVOUS 1
3327 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3328 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3329 { (exit 1); exit 1; }; }
3338 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3339 echo "${ECHO_T}$with_rendezvous" >&6
3346 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3347 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3351 # Check whether --with-openssl or --without-openssl was given.
3352 if test "${with_openssl+set}" = set; then
3353 withval="$with_openssl"
3358 cat >>confdefs.h <<\_ACEOF
3367 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3368 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3369 { (exit 1); exit 1; }; }
3378 echo "$as_me:$LINENO: result: $with_openssl" >&5
3379 echo "${ECHO_T}$with_openssl" >&6
3389 # Check whether --with-readline or --without-readline was given.
3390 if test "${with_readline+set}" = set; then
3391 withval="$with_readline"
3401 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3402 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3403 { (exit 1); exit 1; }; }
3412 # readline on MinGW has problems with backslashes in psql and other bugs.
3413 # This is particularly a problem with non-US code pages.
3414 # Therefore disable its use until we understand the cause. 2004-07-20
3415 case $host_os in mingw*)
3416 if test "$with_readline" = yes; then
3417 { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
3418 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
3430 # Check whether --with-zlib or --without-zlib was given.
3431 if test "${with_zlib+set}" = set; then
3432 withval="$with_zlib"
3442 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3443 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3444 { (exit 1); exit 1; }; }
3458 # Assume system is ELF if it predefines __ELF__ as 1,
3459 # otherwise believe host_os based default.
3461 freebsd1*|freebsd2*) elf=no;;
3462 freebsd3*|freebsd4*) elf=yes;;
3466 cat >conftest.$ac_ext <<_ACEOF
3467 #line $LINENO "configure"
3468 #include "confdefs.h"
3474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3475 egrep "yes" >/dev/null 2>&1; then
3478 if test "X$elf" = "Xyes" ; then
3492 CPPFLAGS="$CPPFLAGS $INCLUDES"
3493 LDFLAGS="$LDFLAGS $LIBDIRS"
3495 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3496 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3497 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3498 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3501 for ac_prog in gawk mawk nawk awk
3503 # Extract the first word of "$ac_prog", so it can be a program name with args.
3504 set dummy $ac_prog; ac_word=$2
3505 echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_prog_AWK+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 if test -n "$AWK"; then
3511 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_AWK="$ac_prog"
3521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 if test -n "$AWK"; then
3531 echo "$as_me:$LINENO: result: $AWK" >&5
3532 echo "${ECHO_T}$AWK" >&6
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3538 test -n "$AWK" && break
3541 echo "$as_me:$LINENO: checking for flex" >&5
3542 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3543 if test "${pgac_cv_path_flex+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 # Let the user override the test
3547 if test -n "$FLEX"; then
3548 pgac_cv_path_flex=$FLEX
3552 for pgac_dir in $PATH; do
3553 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3556 for pgac_prog in flex lex; do
3557 pgac_candidate="$pgac_dir/$pgac_prog"
3558 if test -f "$pgac_candidate" \
3559 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3561 echo '%%' > conftest.l
3562 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3563 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3564 pgac_broken_flex=$pgac_candidate
3568 pgac_cv_path_flex=$pgac_candidate
3576 : ${pgac_cv_path_flex=no}
3580 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3581 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3582 if test x"$pgac_cv_path_flex" = x"no"; then
3583 if test -n "$pgac_broken_flex"; then
3584 { echo "$as_me:$LINENO: WARNING:
3585 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3586 *** should get version 2.5.4 or later." >&5
3587 echo "$as_me: WARNING:
3588 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3589 *** should get version 2.5.4 or later." >&2;}
3592 { echo "$as_me:$LINENO: WARNING:
3593 *** Without Flex you will not be able to build PostgreSQL from CVS or
3594 *** change any of the scanner definition files. You can obtain Flex from
3595 *** a GNU mirror site. (If you are using the official distribution of
3596 *** PostgreSQL then you do not need to worry about this because the Flex
3597 *** output is pre-generated.)" >&5
3598 echo "$as_me: WARNING:
3599 *** Without Flex you will not be able to build PostgreSQL from CVS or
3600 *** change any of the scanner definition files. You can obtain Flex from
3601 *** a GNU mirror site. (If you are using the official distribution of
3602 *** PostgreSQL then you do not need to worry about this because the Flex
3603 *** output is pre-generated.)" >&2;}
3606 if test x"$pgac_cv_path_flex" = x"no"; then
3609 FLEX=$pgac_cv_path_flex
3615 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3616 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3618 if test "$LN_S" = "ln -s"; then
3619 echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6
3622 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3623 echo "${ECHO_T}no, using $LN_S" >&6
3627 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3628 if test "${with_gnu_ld+set}" = set; then
3629 withval="$with_gnu_ld"
3630 test "$withval" = no || with_gnu_ld=yes
3635 if test "$GCC" = yes; then
3636 # Check if gcc -print-prog-name=ld gives a path.
3637 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3638 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3641 # gcc leaves a trailing carriage return which upsets mingw
3642 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3644 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3647 # Accept absolute paths.
3648 [\\/]* | [A-Za-z]:[\\/]*)
3649 re_direlt='/[^/][^/]*/\.\./'
3650 # Canonicalize the path of ld
3651 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3652 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3653 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3655 test -z "$LD" && LD="$ac_prog"
3658 # If it fails, then pretend we aren't using GCC.
3662 # If it is relative, then search for the first ld in PATH.
3666 elif test "$with_gnu_ld" = yes; then
3667 echo "$as_me:$LINENO: checking for GNU ld" >&5
3668 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3670 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3671 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3673 if test "${ac_cv_path_LD+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 if test -z "$LD"; then
3677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3678 for ac_dir in $PATH; do
3679 test -z "$ac_dir" && ac_dir=.
3680 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3681 ac_cv_path_LD="$ac_dir/$ac_prog"
3682 # Check to see if the program is GNU ld. I'd rather use --version,
3683 # but apparently some GNU ld's only accept -v.
3684 # Break only if it was the GNU/non-GNU ld that we prefer.
3685 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3686 test "$with_gnu_ld" != no && break
3688 test "$with_gnu_ld" != yes && break
3694 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3699 if test -n "$LD"; then
3700 echo "$as_me:$LINENO: result: $LD" >&5
3701 echo "${ECHO_T}$LD" >&6
3703 echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3706 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3707 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3708 { (exit 1); exit 1; }; }
3709 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3710 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3711 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3715 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3716 ac_cv_prog_gnu_ld=yes
3718 ac_cv_prog_gnu_ld=no
3721 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3722 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3723 with_gnu_ld=$ac_cv_prog_gnu_ld
3728 case $host_os in sysv5*)
3729 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3730 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3731 if test "${pgac_cv_prog_ld_R+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3736 cat >conftest.$ac_ext <<_ACEOF
3737 #line $LINENO "configure"
3738 #include "confdefs.h"
3740 #ifdef F77_DUMMY_MAIN
3744 int F77_DUMMY_MAIN() { return 1; }
3754 rm -f conftest.$ac_objext conftest$ac_exeext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3756 (eval $ac_link) 2>&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try='test -s conftest$ac_exeext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3766 pgac_cv_prog_ld_R=yes
3768 echo "$as_me: failed program was:" >&5
3769 cat conftest.$ac_ext >&5
3770 pgac_cv_prog_ld_R=no
3772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3773 LDFLAGS=$pgac_save_LDFLAGS
3776 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3777 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3778 ld_R_works=$pgac_cv_prog_ld_R
3781 if test -n "$ac_tool_prefix"; then
3782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3784 echo "$as_me:$LINENO: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_RANLIB+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test -n "$RANLIB"; then
3790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 RANLIB=$ac_cv_prog_RANLIB
3809 if test -n "$RANLIB"; then
3810 echo "$as_me:$LINENO: result: $RANLIB" >&5
3811 echo "${ECHO_T}$RANLIB" >&6
3813 echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6
3818 if test -z "$ac_cv_prog_RANLIB"; then
3819 ac_ct_RANLIB=$RANLIB
3820 # Extract the first word of "ranlib", so it can be a program name with args.
3821 set dummy ranlib; ac_word=$2
3822 echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3824 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 if test -n "$ac_ct_RANLIB"; then
3828 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_ac_ct_RANLIB="ranlib"
3838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3847 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3848 if test -n "$ac_ct_RANLIB"; then
3849 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3850 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3852 echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3856 RANLIB=$ac_ct_RANLIB
3858 RANLIB="$ac_cv_prog_RANLIB"
3861 for ac_prog in lorder
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_prog_LORDER+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3870 if test -n "$LORDER"; then
3871 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_LORDER="$ac_prog"
3881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 LORDER=$ac_cv_prog_LORDER
3890 if test -n "$LORDER"; then
3891 echo "$as_me:$LINENO: result: $LORDER" >&5
3892 echo "${ECHO_T}$LORDER" >&6
3894 echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3898 test -n "$LORDER" && break
3901 # Extract the first word of "tar", so it can be a program name with args.
3902 set dummy tar; ac_word=$2
3903 echo "$as_me:$LINENO: checking for $ac_word" >&5
3904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905 if test "${ac_cv_path_TAR+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 if test -n "$TAR"; then
3933 echo "$as_me:$LINENO: result: $TAR" >&5
3934 echo "${ECHO_T}$TAR" >&6
3936 echo "$as_me:$LINENO: result: no" >&5
3937 echo "${ECHO_T}no" >&6
3941 if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}strip; ac_word=$2
3944 echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3946 if test "${ac_cv_prog_STRIP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 if test -n "$STRIP"; then
3950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 STRIP=$ac_cv_prog_STRIP
3969 if test -n "$STRIP"; then
3970 echo "$as_me:$LINENO: result: $STRIP" >&5
3971 echo "${ECHO_T}$STRIP" >&6
3973 echo "$as_me:$LINENO: result: no" >&5
3974 echo "${ECHO_T}no" >&6
3978 if test -z "$ac_cv_prog_STRIP"; then
3980 # Extract the first word of "strip", so it can be a program name with args.
3981 set dummy strip; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test -n "$ac_ct_STRIP"; then
3988 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_ac_ct_STRIP="strip"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4008 if test -n "$ac_ct_STRIP"; then
4009 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4010 echo "${ECHO_T}$ac_ct_STRIP" >&6
4012 echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4018 STRIP="$ac_cv_prog_STRIP"
4022 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4023 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4024 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4025 STRIP_STATIC_LIB="$STRIP -x"
4026 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4027 echo "$as_me:$LINENO: result: yes" >&5
4028 echo "${ECHO_T}yes" >&6
4032 echo "$as_me:$LINENO: result: no" >&5
4033 echo "${ECHO_T}no" >&6
4039 for ac_prog in 'bison -y'
4041 # Extract the first word of "$ac_prog", so it can be a program name with args.
4042 set dummy $ac_prog; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_prog_YACC+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 if test -n "$YACC"; then
4049 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_YACC="$ac_prog"
4059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 YACC=$ac_cv_prog_YACC
4068 if test -n "$YACC"; then
4069 echo "$as_me:$LINENO: result: $YACC" >&5
4070 echo "${ECHO_T}$YACC" >&6
4072 echo "$as_me:$LINENO: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4076 test -n "$YACC" && break
4080 if test "$YACC"; then
4081 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4082 { echo "$as_me:$LINENO: WARNING:
4083 *** If you are going to modify the grammar files or build from CVS, the installed
4084 *** version of Bison is too old. Bison version 1.875 or later is required." >&5
4085 echo "$as_me: WARNING:
4086 *** If you are going to modify the grammar files or build from CVS, the installed
4087 *** version of Bison is too old. Bison version 1.875 or later is required." >&2;}
4091 if test -z "$YACC"; then
4092 { echo "$as_me:$LINENO: WARNING:
4093 *** Without Bison you will not be able to build PostgreSQL from CVS or
4094 *** change any of the parser definition files. You can obtain Bison from
4095 *** a GNU mirror site. (If you are using the official distribution of
4096 *** PostgreSQL then you do not need to worry about this because the Bison
4097 *** output is pre-generated.) To use a different yacc program (possible,
4098 *** but not recommended), set the environment variable YACC before running
4099 *** 'configure'." >&5
4100 echo "$as_me: WARNING:
4101 *** Without Bison you will not be able to build PostgreSQL from CVS or
4102 *** change any of the parser definition files. You can obtain Bison from
4103 *** a GNU mirror site. (If you are using the official distribution of
4104 *** PostgreSQL then you do not need to worry about this because the Bison
4105 *** output is pre-generated.) To use a different yacc program (possible,
4106 *** but not recommended), set the environment variable YACC before running
4107 *** 'configure'." >&2;}
4111 # Extract the first word of "perl", so it can be a program name with args.
4112 set dummy perl; ac_word=$2
4113 echo "$as_me:$LINENO: checking for $ac_word" >&5
4114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4115 if test "${ac_cv_path_PERL+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 PERL=$ac_cv_path_PERL
4142 if test -n "$PERL"; then
4143 echo "$as_me:$LINENO: result: $PERL" >&5
4144 echo "${ECHO_T}$PERL" >&6
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4150 if test "$with_perl" = yes; then
4152 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4153 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4154 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4155 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4156 echo "${ECHO_T}$perl_archlibexp" >&6
4157 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4158 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4159 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4160 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4161 echo "${ECHO_T}$perl_privlibexp" >&6
4162 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4163 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4164 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4165 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4166 echo "${ECHO_T}$perl_useshrplib" >&6
4168 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4169 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4170 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4171 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4172 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4173 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4174 echo "${ECHO_T}$perl_embed_ldflags" >&6
4177 if test "$with_python" = yes; then
4178 # Extract the first word of "python", so it can be a program name with args.
4179 set dummy python; ac_word=$2
4180 echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182 if test "${ac_cv_path_PYTHON+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4197 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 PYTHON=$ac_cv_path_PYTHON
4209 if test -n "$PYTHON"; then
4210 echo "$as_me:$LINENO: result: $PYTHON" >&5
4211 echo "${ECHO_T}$PYTHON" >&6
4213 echo "$as_me:$LINENO: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4217 if test x"$PYTHON" = x""; then
4218 { { echo "$as_me:$LINENO: error: Python not found" >&5
4219 echo "$as_me: error: Python not found" >&2;}
4220 { (exit 1); exit 1; }; }
4224 echo "$as_me:$LINENO: checking Python installation directories" >&5
4225 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4226 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4227 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4228 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4229 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4230 python_includespec="-I${python_prefix}/include/python${python_version}"
4231 if test "$python_prefix" != "$python_execprefix"; then
4232 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4235 # This should be enough of a message.
4236 if test "$python_prefix" != "$python_execprefix"; then
4237 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4238 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4240 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4241 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4245 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4246 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4248 if test ! -f "$python_configdir/Makefile"; then
4249 echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6
4251 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4252 echo "$as_me: error: Python Makefile not found" >&2;}
4253 { (exit 1); exit 1; }; }
4256 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4257 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4258 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4259 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4260 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4262 pgac_tab=" " # tab character
4263 python_libspec=`echo X"-L$python_configdir $_python_libs $_python_libc $_python_libm -lpython$python_version $_python_liblocalmod $_python_libbasemod" | sed -e 's/^X//' -e "s/[ $pgac_tab][ $pgac_tab]*/ /g"`
4265 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4266 echo "${ECHO_T}${python_libspec}" >&6
4276 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4279 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4280 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4281 if test "${ac_cv_lib_bsd_main+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 ac_check_lib_save_LIBS=$LIBS
4286 cat >conftest.$ac_ext <<_ACEOF
4287 #line $LINENO "configure"
4288 #include "confdefs.h"
4291 #ifdef F77_DUMMY_MAIN
4295 int F77_DUMMY_MAIN() { return 1; }
4305 rm -f conftest.$ac_objext conftest$ac_exeext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4307 (eval $ac_link) 2>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -s conftest$ac_exeext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 ac_cv_lib_bsd_main=yes
4319 echo "$as_me: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4321 ac_cv_lib_bsd_main=no
4323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4324 LIBS=$ac_check_lib_save_LIBS
4326 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4327 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4328 if test $ac_cv_lib_bsd_main = yes; then
4329 cat >>confdefs.h <<_ACEOF
4330 #define HAVE_LIBBSD 1
4339 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4340 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4341 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 ac_check_lib_save_LIBS=$LIBS
4346 cat >conftest.$ac_ext <<_ACEOF
4347 #line $LINENO "configure"
4348 #include "confdefs.h"
4350 /* Override any gcc2 internal prototype to avoid an error. */
4354 /* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4356 char setproctitle ();
4357 #ifdef F77_DUMMY_MAIN
4361 int F77_DUMMY_MAIN() { return 1; }
4371 rm -f conftest.$ac_objext conftest$ac_exeext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4373 (eval $ac_link) 2>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try='test -s conftest$ac_exeext'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; }; then
4383 ac_cv_lib_util_setproctitle=yes
4385 echo "$as_me: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4387 ac_cv_lib_util_setproctitle=no
4389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4390 LIBS=$ac_check_lib_save_LIBS
4392 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4393 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4394 if test $ac_cv_lib_util_setproctitle = yes; then
4395 cat >>confdefs.h <<_ACEOF
4396 #define HAVE_LIBUTIL 1
4404 echo "$as_me:$LINENO: checking for main in -lm" >&5
4405 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4406 if test "${ac_cv_lib_m_main+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 ac_check_lib_save_LIBS=$LIBS
4411 cat >conftest.$ac_ext <<_ACEOF
4412 #line $LINENO "configure"
4413 #include "confdefs.h"
4416 #ifdef F77_DUMMY_MAIN
4420 int F77_DUMMY_MAIN() { return 1; }
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432 (eval $ac_link) 2>&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } &&
4436 { ac_try='test -s conftest$ac_exeext'
4437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); }; }; then
4442 ac_cv_lib_m_main=yes
4444 echo "$as_me: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4449 LIBS=$ac_check_lib_save_LIBS
4451 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4452 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4453 if test $ac_cv_lib_m_main = yes; then
4454 cat >>confdefs.h <<_ACEOF
4463 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4464 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4465 if test "${ac_cv_lib_dl_main+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 ac_check_lib_save_LIBS=$LIBS
4470 cat >conftest.$ac_ext <<_ACEOF
4471 #line $LINENO "configure"
4472 #include "confdefs.h"
4475 #ifdef F77_DUMMY_MAIN
4479 int F77_DUMMY_MAIN() { return 1; }
4489 rm -f conftest.$ac_objext conftest$ac_exeext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4491 (eval $ac_link) 2>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -s conftest$ac_exeext'
4496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 ac_cv_lib_dl_main=yes
4503 echo "$as_me: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4505 ac_cv_lib_dl_main=no
4507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_check_lib_save_LIBS
4510 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4511 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4512 if test $ac_cv_lib_dl_main = yes; then
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_LIBDL 1
4522 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4523 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4524 if test "${ac_cv_lib_nsl_main+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 ac_check_lib_save_LIBS=$LIBS
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line $LINENO "configure"
4531 #include "confdefs.h"
4534 #ifdef F77_DUMMY_MAIN
4538 int F77_DUMMY_MAIN() { return 1; }
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550 (eval $ac_link) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -s conftest$ac_exeext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_lib_nsl_main=yes
4562 echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 ac_cv_lib_nsl_main=no
4566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4567 LIBS=$ac_check_lib_save_LIBS
4569 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4570 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4571 if test $ac_cv_lib_nsl_main = yes; then
4572 cat >>confdefs.h <<_ACEOF
4573 #define HAVE_LIBNSL 1
4581 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4582 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4583 if test "${ac_cv_lib_socket_main+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 ac_check_lib_save_LIBS=$LIBS
4587 LIBS="-lsocket $LIBS"
4588 cat >conftest.$ac_ext <<_ACEOF
4589 #line $LINENO "configure"
4590 #include "confdefs.h"
4593 #ifdef F77_DUMMY_MAIN
4597 int F77_DUMMY_MAIN() { return 1; }
4607 rm -f conftest.$ac_objext conftest$ac_exeext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4609 (eval $ac_link) 2>&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -s conftest$ac_exeext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_lib_socket_main=yes
4621 echo "$as_me: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4623 ac_cv_lib_socket_main=no
4625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4626 LIBS=$ac_check_lib_save_LIBS
4628 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4629 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4630 if test $ac_cv_lib_socket_main = yes; then
4631 cat >>confdefs.h <<_ACEOF
4632 #define HAVE_LIBSOCKET 1
4635 LIBS="-lsocket $LIBS"
4640 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4641 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4642 if test "${ac_cv_lib_ipc_main+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 ac_check_lib_save_LIBS=$LIBS
4647 cat >conftest.$ac_ext <<_ACEOF
4648 #line $LINENO "configure"
4649 #include "confdefs.h"
4652 #ifdef F77_DUMMY_MAIN
4656 int F77_DUMMY_MAIN() { return 1; }
4666 rm -f conftest.$ac_objext conftest$ac_exeext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4668 (eval $ac_link) 2>&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -s conftest$ac_exeext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_cv_lib_ipc_main=yes
4680 echo "$as_me: failed program was:" >&5
4681 cat conftest.$ac_ext >&5
4682 ac_cv_lib_ipc_main=no
4684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4685 LIBS=$ac_check_lib_save_LIBS
4687 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4688 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4689 if test $ac_cv_lib_ipc_main = yes; then
4690 cat >>confdefs.h <<_ACEOF
4691 #define HAVE_LIBIPC 1
4699 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4700 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4701 if test "${ac_cv_lib_IPC_main+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 ac_check_lib_save_LIBS=$LIBS
4706 cat >conftest.$ac_ext <<_ACEOF
4707 #line $LINENO "configure"
4708 #include "confdefs.h"
4711 #ifdef F77_DUMMY_MAIN
4715 int F77_DUMMY_MAIN() { return 1; }
4725 rm -f conftest.$ac_objext conftest$ac_exeext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4727 (eval $ac_link) 2>&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } &&
4731 { ac_try='test -s conftest$ac_exeext'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; }; then
4737 ac_cv_lib_IPC_main=yes
4739 echo "$as_me: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4741 ac_cv_lib_IPC_main=no
4743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4744 LIBS=$ac_check_lib_save_LIBS
4746 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4747 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4748 if test $ac_cv_lib_IPC_main = yes; then
4749 cat >>confdefs.h <<_ACEOF
4750 #define HAVE_LIBIPC 1
4758 echo "$as_me:$LINENO: checking for main in -llc" >&5
4759 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4760 if test "${ac_cv_lib_lc_main+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 ac_check_lib_save_LIBS=$LIBS
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4767 #include "confdefs.h"
4770 #ifdef F77_DUMMY_MAIN
4774 int F77_DUMMY_MAIN() { return 1; }
4784 rm -f conftest.$ac_objext conftest$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -s conftest$ac_exeext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_cv_lib_lc_main=yes
4798 echo "$as_me: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
4800 ac_cv_lib_lc_main=no
4802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4803 LIBS=$ac_check_lib_save_LIBS
4805 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4806 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4807 if test $ac_cv_lib_lc_main = yes; then
4808 cat >>confdefs.h <<_ACEOF
4809 #define HAVE_LIBLC 1
4817 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4818 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4819 if test "${ac_cv_lib_dld_main+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 ac_check_lib_save_LIBS=$LIBS
4824 cat >conftest.$ac_ext <<_ACEOF
4825 #line $LINENO "configure"
4826 #include "confdefs.h"
4829 #ifdef F77_DUMMY_MAIN
4833 int F77_DUMMY_MAIN() { return 1; }
4843 rm -f conftest.$ac_objext conftest$ac_exeext
4844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4845 (eval $ac_link) 2>&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -s conftest$ac_exeext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_lib_dld_main=yes
4857 echo "$as_me: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 ac_cv_lib_dld_main=no
4861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4862 LIBS=$ac_check_lib_save_LIBS
4864 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
4865 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
4866 if test $ac_cv_lib_dld_main = yes; then
4867 cat >>confdefs.h <<_ACEOF
4868 #define HAVE_LIBDLD 1
4876 echo "$as_me:$LINENO: checking for main in -lld" >&5
4877 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
4878 if test "${ac_cv_lib_ld_main+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 ac_check_lib_save_LIBS=$LIBS
4883 cat >conftest.$ac_ext <<_ACEOF
4884 #line $LINENO "configure"
4885 #include "confdefs.h"
4888 #ifdef F77_DUMMY_MAIN
4892 int F77_DUMMY_MAIN() { return 1; }
4902 rm -f conftest.$ac_objext conftest$ac_exeext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4904 (eval $ac_link) 2>&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -s conftest$ac_exeext'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4914 ac_cv_lib_ld_main=yes
4916 echo "$as_me: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4918 ac_cv_lib_ld_main=no
4920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4921 LIBS=$ac_check_lib_save_LIBS
4923 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
4924 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
4925 if test $ac_cv_lib_ld_main = yes; then
4926 cat >>confdefs.h <<_ACEOF
4927 #define HAVE_LIBLD 1
4935 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
4936 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
4937 if test "${ac_cv_lib_compat_main+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 ac_check_lib_save_LIBS=$LIBS
4941 LIBS="-lcompat $LIBS"
4942 cat >conftest.$ac_ext <<_ACEOF
4943 #line $LINENO "configure"
4944 #include "confdefs.h"
4947 #ifdef F77_DUMMY_MAIN
4951 int F77_DUMMY_MAIN() { return 1; }
4961 rm -f conftest.$ac_objext conftest$ac_exeext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4963 (eval $ac_link) 2>&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -s conftest$ac_exeext'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4973 ac_cv_lib_compat_main=yes
4975 echo "$as_me: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4977 ac_cv_lib_compat_main=no
4979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4980 LIBS=$ac_check_lib_save_LIBS
4982 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
4983 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
4984 if test $ac_cv_lib_compat_main = yes; then
4985 cat >>confdefs.h <<_ACEOF
4986 #define HAVE_LIBCOMPAT 1
4989 LIBS="-lcompat $LIBS"
4994 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
4995 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
4996 if test "${ac_cv_lib_BSD_main+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 ac_check_lib_save_LIBS=$LIBS
5001 cat >conftest.$ac_ext <<_ACEOF
5002 #line $LINENO "configure"
5003 #include "confdefs.h"
5006 #ifdef F77_DUMMY_MAIN
5010 int F77_DUMMY_MAIN() { return 1; }
5020 rm -f conftest.$ac_objext conftest$ac_exeext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5022 (eval $ac_link) 2>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -s conftest$ac_exeext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_lib_BSD_main=yes
5034 echo "$as_me: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 ac_cv_lib_BSD_main=no
5038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5039 LIBS=$ac_check_lib_save_LIBS
5041 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5042 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5043 if test $ac_cv_lib_BSD_main = yes; then
5044 cat >>confdefs.h <<_ACEOF
5045 #define HAVE_LIBBSD 1
5053 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5054 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5055 if test "${ac_cv_lib_gen_main+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_check_lib_save_LIBS=$LIBS
5060 cat >conftest.$ac_ext <<_ACEOF
5061 #line $LINENO "configure"
5062 #include "confdefs.h"
5065 #ifdef F77_DUMMY_MAIN
5069 int F77_DUMMY_MAIN() { return 1; }
5079 rm -f conftest.$ac_objext conftest$ac_exeext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081 (eval $ac_link) 2>&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
5085 { ac_try='test -s conftest$ac_exeext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_cv_lib_gen_main=yes
5093 echo "$as_me: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5095 ac_cv_lib_gen_main=no
5097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5098 LIBS=$ac_check_lib_save_LIBS
5100 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5101 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5102 if test $ac_cv_lib_gen_main = yes; then
5103 cat >>confdefs.h <<_ACEOF
5104 #define HAVE_LIBGEN 1
5112 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5113 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5114 if test "${ac_cv_lib_PW_main+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 ac_check_lib_save_LIBS=$LIBS
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5121 #include "confdefs.h"
5124 #ifdef F77_DUMMY_MAIN
5128 int F77_DUMMY_MAIN() { return 1; }
5138 rm -f conftest.$ac_objext conftest$ac_exeext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5140 (eval $ac_link) 2>&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } &&
5144 { ac_try='test -s conftest$ac_exeext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_lib_PW_main=yes
5152 echo "$as_me: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5154 ac_cv_lib_PW_main=no
5156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5157 LIBS=$ac_check_lib_save_LIBS
5159 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5160 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5161 if test $ac_cv_lib_PW_main = yes; then
5162 cat >>confdefs.h <<_ACEOF
5163 #define HAVE_LIBPW 1
5171 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5172 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5173 if test "${ac_cv_lib_resolv_main+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 ac_check_lib_save_LIBS=$LIBS
5177 LIBS="-lresolv $LIBS"
5178 cat >conftest.$ac_ext <<_ACEOF
5179 #line $LINENO "configure"
5180 #include "confdefs.h"
5183 #ifdef F77_DUMMY_MAIN
5187 int F77_DUMMY_MAIN() { return 1; }
5197 rm -f conftest.$ac_objext conftest$ac_exeext
5198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5199 (eval $ac_link) 2>&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -s conftest$ac_exeext'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; }; then
5209 ac_cv_lib_resolv_main=yes
5211 echo "$as_me: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5213 ac_cv_lib_resolv_main=no
5215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5216 LIBS=$ac_check_lib_save_LIBS
5218 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5219 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5220 if test $ac_cv_lib_resolv_main = yes; then
5221 cat >>confdefs.h <<_ACEOF
5222 #define HAVE_LIBRESOLV 1
5225 LIBS="-lresolv $LIBS"
5229 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5230 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5231 if test "${ac_cv_search_getopt_long+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 ac_func_search_save_LIBS=$LIBS
5235 ac_cv_search_getopt_long=no
5236 cat >conftest.$ac_ext <<_ACEOF
5237 #line $LINENO "configure"
5238 #include "confdefs.h"
5240 /* Override any gcc2 internal prototype to avoid an error. */
5244 /* We use char because int might match the return type of a gcc2
5245 builtin and then its argument prototype would still apply. */
5246 char getopt_long ();
5247 #ifdef F77_DUMMY_MAIN
5251 int F77_DUMMY_MAIN() { return 1; }
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } &&
5267 { ac_try='test -s conftest$ac_exeext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5273 ac_cv_search_getopt_long="none required"
5275 echo "$as_me: failed program was:" >&5
5276 cat conftest.$ac_ext >&5
5278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5279 if test "$ac_cv_search_getopt_long" = no; then
5280 for ac_lib in getopt gnugetopt; do
5281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5284 #include "confdefs.h"
5286 /* Override any gcc2 internal prototype to avoid an error. */
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5292 char getopt_long ();
5293 #ifdef F77_DUMMY_MAIN
5297 int F77_DUMMY_MAIN() { return 1; }
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -s conftest$ac_exeext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_cv_search_getopt_long="-l$ac_lib"
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328 LIBS=$ac_func_search_save_LIBS
5330 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5331 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5332 if test "$ac_cv_search_getopt_long" != no; then
5333 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5339 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5340 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5341 if test "${ac_cv_lib_unix_main+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 ac_check_lib_save_LIBS=$LIBS
5346 cat >conftest.$ac_ext <<_ACEOF
5347 #line $LINENO "configure"
5348 #include "confdefs.h"
5351 #ifdef F77_DUMMY_MAIN
5355 int F77_DUMMY_MAIN() { return 1; }
5365 rm -f conftest.$ac_objext conftest$ac_exeext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367 (eval $ac_link) 2>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -s conftest$ac_exeext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5377 ac_cv_lib_unix_main=yes
5379 echo "$as_me: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 ac_cv_lib_unix_main=no
5383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5384 LIBS=$ac_check_lib_save_LIBS
5386 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5387 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5388 if test $ac_cv_lib_unix_main = yes; then
5389 cat >>confdefs.h <<_ACEOF
5390 #define HAVE_LIBUNIX 1
5397 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5398 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5399 if test "${ac_cv_search_crypt+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 ac_func_search_save_LIBS=$LIBS
5403 ac_cv_search_crypt=no
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line $LINENO "configure"
5406 #include "confdefs.h"
5408 /* Override any gcc2 internal prototype to avoid an error. */
5412 /* We use char because int might match the return type of a gcc2
5413 builtin and then its argument prototype would still apply. */
5415 #ifdef F77_DUMMY_MAIN
5419 int F77_DUMMY_MAIN() { return 1; }
5429 rm -f conftest.$ac_objext conftest$ac_exeext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5431 (eval $ac_link) 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try='test -s conftest$ac_exeext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_cv_search_crypt="none required"
5443 echo "$as_me: failed program was:" >&5
5444 cat conftest.$ac_ext >&5
5446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5447 if test "$ac_cv_search_crypt" = no; then
5448 for ac_lib in crypt; do
5449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5450 cat >conftest.$ac_ext <<_ACEOF
5451 #line $LINENO "configure"
5452 #include "confdefs.h"
5454 /* Override any gcc2 internal prototype to avoid an error. */
5458 /* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
5461 #ifdef F77_DUMMY_MAIN
5465 int F77_DUMMY_MAIN() { return 1; }
5475 rm -f conftest.$ac_objext conftest$ac_exeext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5477 (eval $ac_link) 2>&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } &&
5481 { ac_try='test -s conftest$ac_exeext'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5487 ac_cv_search_crypt="-l$ac_lib"
5490 echo "$as_me: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5496 LIBS=$ac_func_search_save_LIBS
5498 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5499 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5500 if test "$ac_cv_search_crypt" != no; then
5501 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5506 if test "$PORTNAME" = "beos"
5509 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5510 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5511 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 ac_check_lib_save_LIBS=$LIBS
5516 cat >conftest.$ac_ext <<_ACEOF
5517 #line $LINENO "configure"
5518 #include "confdefs.h"
5520 /* Override any gcc2 internal prototype to avoid an error. */
5524 /* We use char because int might match the return type of a gcc2
5525 builtin and then its argument prototype would still apply. */
5526 char __inet_ntoa ();
5527 #ifdef F77_DUMMY_MAIN
5531 int F77_DUMMY_MAIN() { return 1; }
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try='test -s conftest$ac_exeext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_cv_lib_bind___inet_ntoa=yes
5555 echo "$as_me: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5557 ac_cv_lib_bind___inet_ntoa=no
5559 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5562 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5563 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5564 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5565 cat >>confdefs.h <<_ACEOF
5566 #define HAVE_LIBBIND 1
5575 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5576 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5577 if test "${ac_cv_search_fdatasync+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 ac_func_search_save_LIBS=$LIBS
5581 ac_cv_search_fdatasync=no
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 #include "confdefs.h"
5586 /* Override any gcc2 internal prototype to avoid an error. */
5590 /* We use char because int might match the return type of a gcc2
5591 builtin and then its argument prototype would still apply. */
5593 #ifdef F77_DUMMY_MAIN
5597 int F77_DUMMY_MAIN() { return 1; }
5607 rm -f conftest.$ac_objext conftest$ac_exeext
5608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5609 (eval $ac_link) 2>&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -s conftest$ac_exeext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
5619 ac_cv_search_fdatasync="none required"
5621 echo "$as_me: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5625 if test "$ac_cv_search_fdatasync" = no; then
5626 for ac_lib in rt posix4; do
5627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5628 cat >conftest.$ac_ext <<_ACEOF
5629 #line $LINENO "configure"
5630 #include "confdefs.h"
5632 /* Override any gcc2 internal prototype to avoid an error. */
5636 /* We use char because int might match the return type of a gcc2
5637 builtin and then its argument prototype would still apply. */
5639 #ifdef F77_DUMMY_MAIN
5643 int F77_DUMMY_MAIN() { return 1; }
5653 rm -f conftest.$ac_objext conftest$ac_exeext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -s conftest$ac_exeext'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; }; then
5665 ac_cv_search_fdatasync="-l$ac_lib"
5668 echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5674 LIBS=$ac_func_search_save_LIBS
5676 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5677 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5678 if test "$ac_cv_search_fdatasync" != no; then
5679 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5685 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5686 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5687 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 ac_check_lib_save_LIBS=$LIBS
5691 LIBS="-lcygipc $LIBS"
5692 cat >conftest.$ac_ext <<_ACEOF
5693 #line $LINENO "configure"
5694 #include "confdefs.h"
5696 /* Override any gcc2 internal prototype to avoid an error. */
5700 /* We use char because int might match the return type of a gcc2
5701 builtin and then its argument prototype would still apply. */
5703 #ifdef F77_DUMMY_MAIN
5707 int F77_DUMMY_MAIN() { return 1; }
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } &&
5723 { ac_try='test -s conftest$ac_exeext'
5724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); }; }; then
5729 ac_cv_lib_cygipc_shmget=yes
5731 echo "$as_me: failed program was:" >&5
5732 cat conftest.$ac_ext >&5
5733 ac_cv_lib_cygipc_shmget=no
5735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736 LIBS=$ac_check_lib_save_LIBS
5738 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5739 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5740 if test $ac_cv_lib_cygipc_shmget = yes; then
5741 cat >>confdefs.h <<_ACEOF
5742 #define HAVE_LIBCYGIPC 1
5745 LIBS="-lcygipc $LIBS"
5750 if test "$PORTNAME" = "win32"
5753 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5754 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5755 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 ac_check_lib_save_LIBS=$LIBS
5759 LIBS="-lwsock32 $LIBS"
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 #include "confdefs.h"
5765 #ifdef F77_DUMMY_MAIN
5769 int F77_DUMMY_MAIN() { return 1; }
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_cv_lib_wsock32_main=yes
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 ac_cv_lib_wsock32_main=no
5797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5798 LIBS=$ac_check_lib_save_LIBS
5800 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5801 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5802 if test $ac_cv_lib_wsock32_main = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804 #define HAVE_LIBWSOCK32 1
5807 LIBS="-lwsock32 $LIBS"
5813 if test "$with_readline" = yes; then
5815 echo "$as_me:$LINENO: checking for readline" >&5
5816 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5818 if test "${pgac_cv_check_readline+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 pgac_cv_check_readline=no
5822 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5823 for pgac_rllib in -lreadline -ledit ; do
5824 pgac_save_LIBS=$LIBS
5825 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5826 cat >conftest.$ac_ext <<_ACEOF
5827 #line $LINENO "configure"
5828 #include "confdefs.h"
5830 /* Override any gcc2 internal prototype to avoid an error. */
5834 /* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5837 #ifdef F77_DUMMY_MAIN
5841 int F77_DUMMY_MAIN() { return 1; }
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } &&
5857 { ac_try='test -s conftest$ac_exeext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5864 # NetBSD, OpenBSD, and Irix have a broken linker that does not
5865 # recognize dependent libraries
5866 case $host_os in netbsd* | openbsd* | irix*)
5869 *) pgac_lib=" -lcurses" ;;
5873 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5877 echo "$as_me: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5881 LIBS=$pgac_save_LIBS
5884 LIBS=$pgac_save_LIBS
5888 if test "$pgac_cv_check_readline" != no ; then
5890 cat >>confdefs.h <<\_ACEOF
5891 #define HAVE_LIBREADLINE 1
5894 LIBS="$pgac_cv_check_readline $LIBS"
5895 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5896 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5898 echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6
5901 if test x"$pgac_cv_check_readline" = x"no"; then
5902 { { echo "$as_me:$LINENO: error: readline library not found
5903 If you have readline already installed, see config.log for details on the
5904 failure. It is possible the compiler isn't looking in the proper directory.
5905 Use --without-readline to disable readline support." >&5
5906 echo "$as_me: error: readline library not found
5907 If you have readline already installed, see config.log for details on the
5908 failure. It is possible the compiler isn't looking in the proper directory.
5909 Use --without-readline to disable readline support." >&2;}
5910 { (exit 1); exit 1; }; }
5914 if test "$with_zlib" = yes; then
5916 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
5917 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
5918 if test "${ac_cv_lib_z_inflate+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 ac_check_lib_save_LIBS=$LIBS
5923 cat >conftest.$ac_ext <<_ACEOF
5924 #line $LINENO "configure"
5925 #include "confdefs.h"
5927 /* Override any gcc2 internal prototype to avoid an error. */
5931 /* We use char because int might match the return type of a gcc2
5932 builtin and then its argument prototype would still apply. */
5934 #ifdef F77_DUMMY_MAIN
5938 int F77_DUMMY_MAIN() { return 1; }
5948 rm -f conftest.$ac_objext conftest$ac_exeext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5950 (eval $ac_link) 2>&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } &&
5954 { ac_try='test -s conftest$ac_exeext'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
5960 ac_cv_lib_z_inflate=yes
5962 echo "$as_me: failed program was:" >&5
5963 cat conftest.$ac_ext >&5
5964 ac_cv_lib_z_inflate=no
5966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967 LIBS=$ac_check_lib_save_LIBS
5969 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
5970 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
5971 if test $ac_cv_lib_z_inflate = yes; then
5972 cat >>confdefs.h <<_ACEOF
5979 { { echo "$as_me:$LINENO: error: zlib library not found
5980 If you have zlib already installed, see config.log for details on the
5981 failure. It is possible the compiler isn't looking in the proper directory.
5982 Use --without-zlib to disable zlib support." >&5
5983 echo "$as_me: error: zlib library not found
5984 If you have zlib already installed, see config.log for details on the
5985 failure. It is possible the compiler isn't looking in the proper directory.
5986 Use --without-zlib to disable zlib support." >&2;}
5987 { (exit 1); exit 1; }; }
5992 if test "$enable_spinlocks" = yes; then
5994 cat >>confdefs.h <<\_ACEOF
5995 #define HAVE_SPINLOCKS 1
5999 { echo "$as_me:$LINENO: WARNING:
6000 *** Not using spinlocks will cause poor performance." >&5
6001 echo "$as_me: WARNING:
6002 *** Not using spinlocks will cause poor performance." >&2;}
6005 if test "$with_krb4" = yes ; then
6007 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6008 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6009 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 ac_check_lib_save_LIBS=$LIBS
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 #include "confdefs.h"
6018 /* Override any gcc2 internal prototype to avoid an error. */
6022 /* We use char because int might match the return type of a gcc2
6023 builtin and then its argument prototype would still apply. */
6024 char des_encrypt ();
6025 #ifdef F77_DUMMY_MAIN
6029 int F77_DUMMY_MAIN() { return 1; }
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041 (eval $ac_link) 2>&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -s conftest$ac_exeext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6051 ac_cv_lib_des_des_encrypt=yes
6053 echo "$as_me: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6055 ac_cv_lib_des_des_encrypt=no
6057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6058 LIBS=$ac_check_lib_save_LIBS
6060 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6061 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6062 if test $ac_cv_lib_des_des_encrypt = yes; then
6063 cat >>confdefs.h <<_ACEOF
6064 #define HAVE_LIBDES 1
6070 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6071 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6072 { (exit 1); exit 1; }; }
6076 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6077 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6078 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 ac_check_lib_save_LIBS=$LIBS
6083 cat >conftest.$ac_ext <<_ACEOF
6084 #line $LINENO "configure"
6085 #include "confdefs.h"
6087 /* Override any gcc2 internal prototype to avoid an error. */
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6093 char krb_sendauth ();
6094 #ifdef F77_DUMMY_MAIN
6098 int F77_DUMMY_MAIN() { return 1; }
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_lib_krb_krb_sendauth=yes
6122 echo "$as_me: failed program was:" >&5
6123 cat conftest.$ac_ext >&5
6124 ac_cv_lib_krb_krb_sendauth=no
6126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6127 LIBS=$ac_check_lib_save_LIBS
6129 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6130 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6131 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6132 cat >>confdefs.h <<_ACEOF
6133 #define HAVE_LIBKRB 1
6139 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6140 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6141 { (exit 1); exit 1; }; }
6145 for ac_func in gethostname
6147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6148 echo "$as_me:$LINENO: checking for $ac_func" >&5
6149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6150 if eval "test \"\${$as_ac_var+set}\" = set"; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157 which can conflict with char $ac_func (); below. */
6159 /* Override any gcc2 internal prototype to avoid an error. */
6163 /* We use char because int might match the return type of a gcc2
6164 builtin and then its argument prototype would still apply. */
6168 #ifdef F77_DUMMY_MAIN
6172 int F77_DUMMY_MAIN() { return 1; }
6177 /* The GNU C library defines this for functions which it implements
6178 to always fail with ENOSYS. Some functions are actually named
6179 something starting with __ and the normal name is an alias. */
6180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 eval "$as_ac_var=yes"
6204 echo "$as_me: failed program was:" >&5
6205 cat conftest.$ac_ext >&5
6206 eval "$as_ac_var=no"
6208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6212 if test `eval echo '${'$as_ac_var'}'` = yes; then
6213 cat >>confdefs.h <<_ACEOF
6214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6218 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6225 if test "$with_krb5" = yes ; then
6226 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6227 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6228 if test "${ac_cv_search_com_err+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 ac_func_search_save_LIBS=$LIBS
6232 ac_cv_search_com_err=no
6233 cat >conftest.$ac_ext <<_ACEOF
6234 #line $LINENO "configure"
6235 #include "confdefs.h"
6237 /* Override any gcc2 internal prototype to avoid an error. */
6241 /* We use char because int might match the return type of a gcc2
6242 builtin and then its argument prototype would still apply. */
6244 #ifdef F77_DUMMY_MAIN
6248 int F77_DUMMY_MAIN() { return 1; }
6258 rm -f conftest.$ac_objext conftest$ac_exeext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6260 (eval $ac_link) 2>&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_search_com_err="none required"
6272 echo "$as_me: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6276 if test "$ac_cv_search_com_err" = no; then
6277 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6279 cat >conftest.$ac_ext <<_ACEOF
6280 #line $LINENO "configure"
6281 #include "confdefs.h"
6283 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6290 #ifdef F77_DUMMY_MAIN
6294 int F77_DUMMY_MAIN() { return 1; }
6304 rm -f conftest.$ac_objext conftest$ac_exeext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try='test -s conftest$ac_exeext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_cv_search_com_err="-l$ac_lib"
6319 echo "$as_me: failed program was:" >&5
6320 cat conftest.$ac_ext >&5
6322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6325 LIBS=$ac_func_search_save_LIBS
6327 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6328 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6329 if test "$ac_cv_search_com_err" != no; then
6330 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6333 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6334 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6335 { (exit 1); exit 1; }; }
6338 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6339 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6340 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 ac_func_search_save_LIBS=$LIBS
6344 ac_cv_search_krb5_encrypt=no
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 #include "confdefs.h"
6349 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6355 char krb5_encrypt ();
6356 #ifdef F77_DUMMY_MAIN
6360 int F77_DUMMY_MAIN() { return 1; }
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372 (eval $ac_link) 2>&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -s conftest$ac_exeext'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
6382 ac_cv_search_krb5_encrypt="none required"
6384 echo "$as_me: failed program was:" >&5
6385 cat conftest.$ac_ext >&5
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6388 if test "$ac_cv_search_krb5_encrypt" = no; then
6389 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6391 cat >conftest.$ac_ext <<_ACEOF
6392 #line $LINENO "configure"
6393 #include "confdefs.h"
6395 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6401 char krb5_encrypt ();
6402 #ifdef F77_DUMMY_MAIN
6406 int F77_DUMMY_MAIN() { return 1; }
6416 rm -f conftest.$ac_objext conftest$ac_exeext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418 (eval $ac_link) 2>&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } &&
6422 { ac_try='test -s conftest$ac_exeext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 ac_cv_search_krb5_encrypt="-l$ac_lib"
6431 echo "$as_me: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6437 LIBS=$ac_func_search_save_LIBS
6439 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6440 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6441 if test "$ac_cv_search_krb5_encrypt" != no; then
6442 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6445 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6446 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6447 { (exit 1); exit 1; }; }
6450 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6451 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6452 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 ac_func_search_save_LIBS=$LIBS
6456 ac_cv_search_krb5_sendauth=no
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6459 #include "confdefs.h"
6461 /* Override any gcc2 internal prototype to avoid an error. */
6465 /* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */
6467 char krb5_sendauth ();
6468 #ifdef F77_DUMMY_MAIN
6472 int F77_DUMMY_MAIN() { return 1; }
6482 rm -f conftest.$ac_objext conftest$ac_exeext
6483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484 (eval $ac_link) 2>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -s conftest$ac_exeext'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; }; then
6494 ac_cv_search_krb5_sendauth="none required"
6496 echo "$as_me: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
6499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6500 if test "$ac_cv_search_krb5_sendauth" = no; then
6501 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6503 cat >conftest.$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
6505 #include "confdefs.h"
6507 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6513 char krb5_sendauth ();
6514 #ifdef F77_DUMMY_MAIN
6518 int F77_DUMMY_MAIN() { return 1; }
6528 rm -f conftest.$ac_objext conftest$ac_exeext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530 (eval $ac_link) 2>&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -s conftest$ac_exeext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_search_krb5_sendauth="-l$ac_lib"
6543 echo "$as_me: failed program was:" >&5
6544 cat conftest.$ac_ext >&5
6546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6549 LIBS=$ac_func_search_save_LIBS
6551 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6552 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6553 if test "$ac_cv_search_krb5_sendauth" != no; then
6554 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6557 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6558 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6559 { (exit 1); exit 1; }; }
6564 if test "$with_openssl" = yes ; then
6566 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6567 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6568 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 ac_check_lib_save_LIBS=$LIBS
6572 LIBS="-lcrypto $LIBS"
6573 cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 #include "confdefs.h"
6577 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6583 char CRYPTO_new_ex_data ();
6584 #ifdef F77_DUMMY_MAIN
6588 int F77_DUMMY_MAIN() { return 1; }
6593 CRYPTO_new_ex_data ();
6598 rm -f conftest.$ac_objext conftest$ac_exeext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6612 echo "$as_me: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6619 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6620 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6621 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6622 cat >>confdefs.h <<_ACEOF
6623 #define HAVE_LIBCRYPTO 1
6626 LIBS="-lcrypto $LIBS"
6629 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6630 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6631 { (exit 1); exit 1; }; }
6635 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6636 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6637 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 ac_check_lib_save_LIBS=$LIBS
6642 cat >conftest.$ac_ext <<_ACEOF
6643 #line $LINENO "configure"
6644 #include "confdefs.h"
6646 /* Override any gcc2 internal prototype to avoid an error. */
6650 /* We use char because int might match the return type of a gcc2
6651 builtin and then its argument prototype would still apply. */
6652 char SSL_library_init ();
6653 #ifdef F77_DUMMY_MAIN
6657 int F77_DUMMY_MAIN() { return 1; }
6662 SSL_library_init ();
6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -s conftest$ac_exeext'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_cv_lib_ssl_SSL_library_init=yes
6681 echo "$as_me: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6683 ac_cv_lib_ssl_SSL_library_init=no
6685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6686 LIBS=$ac_check_lib_save_LIBS
6688 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6689 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6690 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6691 cat >>confdefs.h <<_ACEOF
6692 #define HAVE_LIBSSL 1
6698 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6699 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6700 { (exit 1); exit 1; }; }
6705 if test "$with_pam" = yes ; then
6707 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6708 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6709 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
6712 ac_check_lib_save_LIBS=$LIBS
6714 cat >conftest.$ac_ext <<_ACEOF
6715 #line $LINENO "configure"
6716 #include "confdefs.h"
6718 /* Override any gcc2 internal prototype to avoid an error. */
6722 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */
6725 #ifdef F77_DUMMY_MAIN
6729 int F77_DUMMY_MAIN() { return 1; }
6739 rm -f conftest.$ac_objext conftest$ac_exeext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6741 (eval $ac_link) 2>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -s conftest$ac_exeext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 ac_cv_lib_pam_pam_start=yes
6753 echo "$as_me: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6755 ac_cv_lib_pam_pam_start=no
6757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6758 LIBS=$ac_check_lib_save_LIBS
6760 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6761 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6762 if test $ac_cv_lib_pam_pam_start = yes; then
6763 cat >>confdefs.h <<_ACEOF
6764 #define HAVE_LIBPAM 1
6770 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6771 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6772 { (exit 1); exit 1; }; }
6782 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6784 if test "${ac_cv_header_stdc+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6788 #line $LINENO "configure"
6789 #include "confdefs.h"
6796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6799 egrep -v '^ *\+' conftest.er1 >conftest.err
6801 cat conftest.err >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } >/dev/null; then
6804 if test -s conftest.err; then
6805 ac_cpp_err=$ac_c_preproc_warn_flag
6812 if test -z "$ac_cpp_err"; then
6813 ac_cv_header_stdc=yes
6815 echo "$as_me: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6817 ac_cv_header_stdc=no
6819 rm -f conftest.err conftest.$ac_ext
6821 if test $ac_cv_header_stdc = yes; then
6822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6823 cat >conftest.$ac_ext <<_ACEOF
6824 #line $LINENO "configure"
6825 #include "confdefs.h"
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830 egrep "memchr" >/dev/null 2>&1; then
6833 ac_cv_header_stdc=no
6839 if test $ac_cv_header_stdc = yes; then
6840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 #include "confdefs.h"
6847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848 egrep "free" >/dev/null 2>&1; then
6851 ac_cv_header_stdc=no
6857 if test $ac_cv_header_stdc = yes; then
6858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6859 if test "$cross_compiling" = yes; then
6862 cat >conftest.$ac_ext <<_ACEOF
6863 #line $LINENO "configure"
6864 #include "confdefs.h"
6866 #if ((' ' & 0x0FF) == 0x020)
6867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6870 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6871 || ('j' <= (c) && (c) <= 'r') \
6872 || ('s' <= (c) && (c) <= 'z'))
6873 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6876 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6881 for (i = 0; i < 256; i++)
6882 if (XOR (islower (i), ISLOWER (i))
6883 || toupper (i) != TOUPPER (i))
6888 rm -f conftest$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6901 echo "$as_me: program exited with status $ac_status" >&5
6902 echo "$as_me: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6905 ac_cv_header_stdc=no
6907 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6911 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6912 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6913 if test $ac_cv_header_stdc = yes; then
6915 cat >>confdefs.h <<\_ACEOF
6916 #define STDC_HEADERS 1
6921 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6931 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6932 inttypes.h stdint.h unistd.h
6934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6935 echo "$as_me:$LINENO: checking for $ac_header" >&5
6936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 cat >conftest.$ac_ext <<_ACEOF
6941 #line $LINENO "configure"
6942 #include "confdefs.h"
6943 $ac_includes_default
6945 #include <$ac_header>
6947 rm -f conftest.$ac_objext
6948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6949 (eval $ac_compile) 2>&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } &&
6953 { ac_try='test -s conftest.$ac_objext'
6954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); }; }; then
6959 eval "$as_ac_Header=yes"
6961 echo "$as_me: failed program was:" >&5
6962 cat conftest.$ac_ext >&5
6963 eval "$as_ac_Header=no"
6965 rm -f conftest.$ac_objext conftest.$ac_ext
6967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6970 cat >>confdefs.h <<_ACEOF
6971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7004 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/time.h sys/un.h termios.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
7006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7008 echo "$as_me:$LINENO: checking for $ac_header" >&5
7009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7016 # Is the header compilable?
7017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7019 cat >conftest.$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7021 #include "confdefs.h"
7022 $ac_includes_default
7023 #include <$ac_header>
7025 rm -f conftest.$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>&5
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); } &&
7031 { ac_try='test -s conftest.$ac_objext'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; }; then
7037 ac_header_compiler=yes
7039 echo "$as_me: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7041 ac_header_compiler=no
7043 rm -f conftest.$ac_objext conftest.$ac_ext
7044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7045 echo "${ECHO_T}$ac_header_compiler" >&6
7047 # Is the header present?
7048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7050 cat >conftest.$ac_ext <<_ACEOF
7051 #line $LINENO "configure"
7052 #include "confdefs.h"
7053 #include <$ac_header>
7055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7058 egrep -v '^ *\+' conftest.er1 >conftest.err
7060 cat conftest.err >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } >/dev/null; then
7063 if test -s conftest.err; then
7064 ac_cpp_err=$ac_c_preproc_warn_flag
7071 if test -z "$ac_cpp_err"; then
7072 ac_header_preproc=yes
7074 echo "$as_me: failed program was:" >&5
7075 cat conftest.$ac_ext >&5
7076 ac_header_preproc=no
7078 rm -f conftest.err conftest.$ac_ext
7079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7080 echo "${ECHO_T}$ac_header_preproc" >&6
7082 # So? What about this header?
7083 case $ac_header_compiler:$ac_header_preproc in
7085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7097 echo "$as_me:$LINENO: checking for $ac_header" >&5
7098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 eval "$as_ac_Header=$ac_header_preproc"
7104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7109 cat >>confdefs.h <<_ACEOF
7110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7118 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7119 # netinet/in.h is included first.
7121 for ac_header in netinet/in.h
7123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7125 echo "$as_me:$LINENO: checking for $ac_header" >&5
7126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7133 # Is the header compilable?
7134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7137 #line $LINENO "configure"
7138 #include "confdefs.h"
7139 $ac_includes_default
7140 #include <$ac_header>
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -s conftest.$ac_objext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 ac_header_compiler=yes
7156 echo "$as_me: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 ac_header_compiler=no
7160 rm -f conftest.$ac_objext conftest.$ac_ext
7161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7162 echo "${ECHO_T}$ac_header_compiler" >&6
7164 # Is the header present?
7165 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7167 cat >conftest.$ac_ext <<_ACEOF
7168 #line $LINENO "configure"
7169 #include "confdefs.h"
7170 #include <$ac_header>
7172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7175 egrep -v '^ *\+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } >/dev/null; then
7180 if test -s conftest.err; then
7181 ac_cpp_err=$ac_c_preproc_warn_flag
7188 if test -z "$ac_cpp_err"; then
7189 ac_header_preproc=yes
7191 echo "$as_me: failed program was:" >&5
7192 cat conftest.$ac_ext >&5
7193 ac_header_preproc=no
7195 rm -f conftest.err conftest.$ac_ext
7196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7197 echo "${ECHO_T}$ac_header_preproc" >&6
7199 # So? What about this header?
7200 case $ac_header_compiler:$ac_header_preproc in
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7214 echo "$as_me:$LINENO: checking for $ac_header" >&5
7215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 eval "$as_ac_Header=$ac_header_preproc"
7221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7226 cat >>confdefs.h <<_ACEOF
7227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7235 for ac_header in netinet/tcp.h
7237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7238 echo "$as_me:$LINENO: checking for $ac_header" >&5
7239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 cat >conftest.$ac_ext <<_ACEOF
7244 #line $LINENO "configure"
7245 #include "confdefs.h"
7246 $ac_includes_default
7247 #ifdef HAVE_NETINET_IN_H
7248 #include <netinet/in.h>
7252 #include <$ac_header>
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); } &&
7260 { ac_try='test -s conftest.$ac_objext'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; }; then
7266 eval "$as_ac_Header=yes"
7268 echo "$as_me: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 eval "$as_ac_Header=no"
7272 rm -f conftest.$ac_objext conftest.$ac_ext
7274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7277 cat >>confdefs.h <<_ACEOF
7278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7286 if test "$with_readline" = yes; then
7288 for ac_header in readline/readline.h
7290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7292 echo "$as_me:$LINENO: checking for $ac_header" >&5
7293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7300 # Is the header compilable?
7301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7303 cat >conftest.$ac_ext <<_ACEOF
7304 #line $LINENO "configure"
7305 #include "confdefs.h"
7306 $ac_includes_default
7307 #include <$ac_header>
7309 rm -f conftest.$ac_objext
7310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7311 (eval $ac_compile) 2>&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } &&
7315 { ac_try='test -s conftest.$ac_objext'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 ac_header_compiler=yes
7323 echo "$as_me: failed program was:" >&5
7324 cat conftest.$ac_ext >&5
7325 ac_header_compiler=no
7327 rm -f conftest.$ac_objext conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7329 echo "${ECHO_T}$ac_header_compiler" >&6
7331 # Is the header present?
7332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7334 cat >conftest.$ac_ext <<_ACEOF
7335 #line $LINENO "configure"
7336 #include "confdefs.h"
7337 #include <$ac_header>
7339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7342 egrep -v '^ *\+' conftest.er1 >conftest.err
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } >/dev/null; then
7347 if test -s conftest.err; then
7348 ac_cpp_err=$ac_c_preproc_warn_flag
7355 if test -z "$ac_cpp_err"; then
7356 ac_header_preproc=yes
7358 echo "$as_me: failed program was:" >&5
7359 cat conftest.$ac_ext >&5
7360 ac_header_preproc=no
7362 rm -f conftest.err conftest.$ac_ext
7363 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7364 echo "${ECHO_T}$ac_header_preproc" >&6
7366 # So? What about this header?
7367 case $ac_header_compiler:$ac_header_preproc in
7369 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7381 echo "$as_me:$LINENO: checking for $ac_header" >&5
7382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 eval "$as_ac_Header=$ac_header_preproc"
7388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7393 cat >>confdefs.h <<_ACEOF
7394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7399 for ac_header in editline/readline.h
7401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7403 echo "$as_me:$LINENO: checking for $ac_header" >&5
7404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7411 # Is the header compilable?
7412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7414 cat >conftest.$ac_ext <<_ACEOF
7415 #line $LINENO "configure"
7416 #include "confdefs.h"
7417 $ac_includes_default
7418 #include <$ac_header>
7420 rm -f conftest.$ac_objext
7421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7422 (eval $ac_compile) 2>&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } &&
7426 { ac_try='test -s conftest.$ac_objext'
7427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); }; }; then
7432 ac_header_compiler=yes
7434 echo "$as_me: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7436 ac_header_compiler=no
7438 rm -f conftest.$ac_objext conftest.$ac_ext
7439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7440 echo "${ECHO_T}$ac_header_compiler" >&6
7442 # Is the header present?
7443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7445 cat >conftest.$ac_ext <<_ACEOF
7446 #line $LINENO "configure"
7447 #include "confdefs.h"
7448 #include <$ac_header>
7450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7453 egrep -v '^ *\+' conftest.er1 >conftest.err
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } >/dev/null; then
7458 if test -s conftest.err; then
7459 ac_cpp_err=$ac_c_preproc_warn_flag
7466 if test -z "$ac_cpp_err"; then
7467 ac_header_preproc=yes
7469 echo "$as_me: failed program was:" >&5
7470 cat conftest.$ac_ext >&5
7471 ac_header_preproc=no
7473 rm -f conftest.err conftest.$ac_ext
7474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7475 echo "${ECHO_T}$ac_header_preproc" >&6
7477 # So? What about this header?
7478 case $ac_header_compiler:$ac_header_preproc in
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7492 echo "$as_me:$LINENO: checking for $ac_header" >&5
7493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 eval "$as_ac_Header=$ac_header_preproc"
7499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7504 cat >>confdefs.h <<_ACEOF
7505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7510 for ac_header in readline.h
7512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7514 echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7522 # Is the header compilable?
7523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 #include "confdefs.h"
7528 $ac_includes_default
7529 #include <$ac_header>
7531 rm -f conftest.$ac_objext
7532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533 (eval $ac_compile) 2>&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_header_compiler=yes
7545 echo "$as_me: failed program was:" >&5
7546 cat conftest.$ac_ext >&5
7547 ac_header_compiler=no
7549 rm -f conftest.$ac_objext conftest.$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7551 echo "${ECHO_T}$ac_header_compiler" >&6
7553 # Is the header present?
7554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7556 cat >conftest.$ac_ext <<_ACEOF
7557 #line $LINENO "configure"
7558 #include "confdefs.h"
7559 #include <$ac_header>
7561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7564 egrep -v '^ *\+' conftest.er1 >conftest.err
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } >/dev/null; then
7569 if test -s conftest.err; then
7570 ac_cpp_err=$ac_c_preproc_warn_flag
7577 if test -z "$ac_cpp_err"; then
7578 ac_header_preproc=yes
7580 echo "$as_me: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7582 ac_header_preproc=no
7584 rm -f conftest.err conftest.$ac_ext
7585 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7586 echo "${ECHO_T}$ac_header_preproc" >&6
7588 # So? What about this header?
7589 case $ac_header_compiler:$ac_header_preproc in
7591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7603 echo "$as_me:$LINENO: checking for $ac_header" >&5
7604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 eval "$as_ac_Header=$ac_header_preproc"
7610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7615 cat >>confdefs.h <<_ACEOF
7616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7620 { { echo "$as_me:$LINENO: error: readline header not found
7621 If you have readline already installed, see config.log for details on the
7622 failure. It is possible the compiler isn't looking in the proper directory.
7623 Use --without-readline to disable readline support." >&5
7624 echo "$as_me: error: readline header not found
7625 If you have readline already installed, see config.log for details on the
7626 failure. It is possible the compiler isn't looking in the proper directory.
7627 Use --without-readline to disable readline support." >&2;}
7628 { (exit 1); exit 1; }; }
7642 for ac_header in readline/history.h
7644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7646 echo "$as_me:$LINENO: checking for $ac_header" >&5
7647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7654 # Is the header compilable?
7655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7657 cat >conftest.$ac_ext <<_ACEOF
7658 #line $LINENO "configure"
7659 #include "confdefs.h"
7660 $ac_includes_default
7661 #include <$ac_header>
7663 rm -f conftest.$ac_objext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7665 (eval $ac_compile) 2>&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -s conftest.$ac_objext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_header_compiler=yes
7677 echo "$as_me: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7679 ac_header_compiler=no
7681 rm -f conftest.$ac_objext conftest.$ac_ext
7682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7683 echo "${ECHO_T}$ac_header_compiler" >&6
7685 # Is the header present?
7686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7688 cat >conftest.$ac_ext <<_ACEOF
7689 #line $LINENO "configure"
7690 #include "confdefs.h"
7691 #include <$ac_header>
7693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7696 egrep -v '^ *\+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } >/dev/null; then
7701 if test -s conftest.err; then
7702 ac_cpp_err=$ac_c_preproc_warn_flag
7709 if test -z "$ac_cpp_err"; then
7710 ac_header_preproc=yes
7712 echo "$as_me: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7714 ac_header_preproc=no
7716 rm -f conftest.err conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7718 echo "${ECHO_T}$ac_header_preproc" >&6
7720 # So? What about this header?
7721 case $ac_header_compiler:$ac_header_preproc in
7723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7735 echo "$as_me:$LINENO: checking for $ac_header" >&5
7736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 eval "$as_ac_Header=$ac_header_preproc"
7742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7747 cat >>confdefs.h <<_ACEOF
7748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7753 for ac_header in editline/history.h
7755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7757 echo "$as_me:$LINENO: checking for $ac_header" >&5
7758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7765 # Is the header compilable?
7766 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7768 cat >conftest.$ac_ext <<_ACEOF
7769 #line $LINENO "configure"
7770 #include "confdefs.h"
7771 $ac_includes_default
7772 #include <$ac_header>
7774 rm -f conftest.$ac_objext
7775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7776 (eval $ac_compile) 2>&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } &&
7780 { ac_try='test -s conftest.$ac_objext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_header_compiler=yes
7788 echo "$as_me: failed program was:" >&5
7789 cat conftest.$ac_ext >&5
7790 ac_header_compiler=no
7792 rm -f conftest.$ac_objext conftest.$ac_ext
7793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7794 echo "${ECHO_T}$ac_header_compiler" >&6
7796 # Is the header present?
7797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7799 cat >conftest.$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7801 #include "confdefs.h"
7802 #include <$ac_header>
7804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7807 egrep -v '^ *\+' conftest.er1 >conftest.err
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } >/dev/null; then
7812 if test -s conftest.err; then
7813 ac_cpp_err=$ac_c_preproc_warn_flag
7820 if test -z "$ac_cpp_err"; then
7821 ac_header_preproc=yes
7823 echo "$as_me: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7825 ac_header_preproc=no
7827 rm -f conftest.err conftest.$ac_ext
7828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7829 echo "${ECHO_T}$ac_header_preproc" >&6
7831 # So? What about this header?
7832 case $ac_header_compiler:$ac_header_preproc in
7834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7846 echo "$as_me:$LINENO: checking for $ac_header" >&5
7847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7849 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 eval "$as_ac_Header=$ac_header_preproc"
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7858 cat >>confdefs.h <<_ACEOF
7859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7864 for ac_header in history.h
7866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7868 echo "$as_me:$LINENO: checking for $ac_header" >&5
7869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 # Is the header compilable?
7877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7881 #include "confdefs.h"
7882 $ac_includes_default
7883 #include <$ac_header>
7885 rm -f conftest.$ac_objext
7886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7887 (eval $ac_compile) 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } &&
7891 { ac_try='test -s conftest.$ac_objext'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 ac_header_compiler=yes
7899 echo "$as_me: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7901 ac_header_compiler=no
7903 rm -f conftest.$ac_objext conftest.$ac_ext
7904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7905 echo "${ECHO_T}$ac_header_compiler" >&6
7907 # Is the header present?
7908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line $LINENO "configure"
7912 #include "confdefs.h"
7913 #include <$ac_header>
7915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7918 egrep -v '^ *\+' conftest.er1 >conftest.err
7920 cat conftest.err >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); } >/dev/null; then
7923 if test -s conftest.err; then
7924 ac_cpp_err=$ac_c_preproc_warn_flag
7931 if test -z "$ac_cpp_err"; then
7932 ac_header_preproc=yes
7934 echo "$as_me: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7936 ac_header_preproc=no
7938 rm -f conftest.err conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7940 echo "${ECHO_T}$ac_header_preproc" >&6
7942 # So? What about this header?
7943 case $ac_header_compiler:$ac_header_preproc in
7945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7957 echo "$as_me:$LINENO: checking for $ac_header" >&5
7958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 eval "$as_ac_Header=$ac_header_preproc"
7964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7969 cat >>confdefs.h <<_ACEOF
7970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7974 { { echo "$as_me:$LINENO: error: history header not found
7975 If you have readline already installed, see config.log for details on the
7976 failure. It is possible the compiler isn't looking in the proper directory.
7977 Use --without-readline to disable readline support." >&5
7978 echo "$as_me: error: history header not found
7979 If you have readline already installed, see config.log for details on the
7980 failure. It is possible the compiler isn't looking in the proper directory.
7981 Use --without-readline to disable readline support." >&2;}
7982 { (exit 1); exit 1; }; }
7997 if test "$with_zlib" = yes; then
7998 if test "${ac_cv_header_zlib_h+set}" = set; then
7999 echo "$as_me:$LINENO: checking for zlib.h" >&5
8000 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8001 if test "${ac_cv_header_zlib_h+set}" = set; then
8002 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8005 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8007 # Is the header compilable?
8008 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8009 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8010 cat >conftest.$ac_ext <<_ACEOF
8011 #line $LINENO "configure"
8012 #include "confdefs.h"
8013 $ac_includes_default
8016 rm -f conftest.$ac_objext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8018 (eval $ac_compile) 2>&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } &&
8022 { ac_try='test -s conftest.$ac_objext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
8028 ac_header_compiler=yes
8030 echo "$as_me: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8032 ac_header_compiler=no
8034 rm -f conftest.$ac_objext conftest.$ac_ext
8035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8036 echo "${ECHO_T}$ac_header_compiler" >&6
8038 # Is the header present?
8039 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8040 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8041 cat >conftest.$ac_ext <<_ACEOF
8042 #line $LINENO "configure"
8043 #include "confdefs.h"
8046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8049 egrep -v '^ *\+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } >/dev/null; then
8054 if test -s conftest.err; then
8055 ac_cpp_err=$ac_c_preproc_warn_flag
8062 if test -z "$ac_cpp_err"; then
8063 ac_header_preproc=yes
8065 echo "$as_me: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8067 ac_header_preproc=no
8069 rm -f conftest.err conftest.$ac_ext
8070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8071 echo "${ECHO_T}$ac_header_preproc" >&6
8073 # So? What about this header?
8074 case $ac_header_compiler:$ac_header_preproc in
8076 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8077 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8079 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8081 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8082 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8084 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8086 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8088 echo "$as_me:$LINENO: checking for zlib.h" >&5
8089 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8090 if test "${ac_cv_header_zlib_h+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 ac_cv_header_zlib_h=$ac_header_preproc
8095 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8096 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8099 if test $ac_cv_header_zlib_h = yes; then
8102 { { echo "$as_me:$LINENO: error: zlib header not found
8103 If you have zlib already installed, see config.log for details on the
8104 failure. It is possible the compiler isn't looking in the proper directory.
8105 Use --without-zlib to disable zlib support." >&5
8106 echo "$as_me: error: zlib header not found
8107 If you have zlib already installed, see config.log for details on the
8108 failure. It is possible the compiler isn't looking in the proper directory.
8109 Use --without-zlib to disable zlib support." >&2;}
8110 { (exit 1); exit 1; }; }
8116 if test "$with_krb4" = yes ; then
8117 if test "${ac_cv_header_krb_h+set}" = set; then
8118 echo "$as_me:$LINENO: checking for krb.h" >&5
8119 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8120 if test "${ac_cv_header_krb_h+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
8123 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8124 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8126 # Is the header compilable?
8127 echo "$as_me:$LINENO: checking krb.h usability" >&5
8128 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8129 cat >conftest.$ac_ext <<_ACEOF
8130 #line $LINENO "configure"
8131 #include "confdefs.h"
8132 $ac_includes_default
8135 rm -f conftest.$ac_objext
8136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8137 (eval $ac_compile) 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -s conftest.$ac_objext'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; }; then
8147 ac_header_compiler=yes
8149 echo "$as_me: failed program was:" >&5
8150 cat conftest.$ac_ext >&5
8151 ac_header_compiler=no
8153 rm -f conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8155 echo "${ECHO_T}$ac_header_compiler" >&6
8157 # Is the header present?
8158 echo "$as_me:$LINENO: checking krb.h presence" >&5
8159 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8160 cat >conftest.$ac_ext <<_ACEOF
8161 #line $LINENO "configure"
8162 #include "confdefs.h"
8165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8168 egrep -v '^ *\+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } >/dev/null; then
8173 if test -s conftest.err; then
8174 ac_cpp_err=$ac_c_preproc_warn_flag
8181 if test -z "$ac_cpp_err"; then
8182 ac_header_preproc=yes
8184 echo "$as_me: failed program was:" >&5
8185 cat conftest.$ac_ext >&5
8186 ac_header_preproc=no
8188 rm -f conftest.err conftest.$ac_ext
8189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8190 echo "${ECHO_T}$ac_header_preproc" >&6
8192 # So? What about this header?
8193 case $ac_header_compiler:$ac_header_preproc in
8195 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8196 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8198 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8200 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8201 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8203 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8204 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8205 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8207 echo "$as_me:$LINENO: checking for krb.h" >&5
8208 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8209 if test "${ac_cv_header_krb_h+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 ac_cv_header_krb_h=$ac_header_preproc
8214 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8215 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8218 if test $ac_cv_header_krb_h = yes; then
8221 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8222 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8223 { (exit 1); exit 1; }; }
8229 if test "$with_krb5" = yes ; then
8230 if test "${ac_cv_header_krb5_h+set}" = set; then
8231 echo "$as_me:$LINENO: checking for krb5.h" >&5
8232 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8233 if test "${ac_cv_header_krb5_h+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8237 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8239 # Is the header compilable?
8240 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8241 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8243 #line $LINENO "configure"
8244 #include "confdefs.h"
8245 $ac_includes_default
8248 rm -f conftest.$ac_objext
8249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250 (eval $ac_compile) 2>&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_header_compiler=yes
8262 echo "$as_me: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8264 ac_header_compiler=no
8266 rm -f conftest.$ac_objext conftest.$ac_ext
8267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8268 echo "${ECHO_T}$ac_header_compiler" >&6
8270 # Is the header present?
8271 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8272 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8274 #line $LINENO "configure"
8275 #include "confdefs.h"
8278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8281 egrep -v '^ *\+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } >/dev/null; then
8286 if test -s conftest.err; then
8287 ac_cpp_err=$ac_c_preproc_warn_flag
8294 if test -z "$ac_cpp_err"; then
8295 ac_header_preproc=yes
8297 echo "$as_me: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8299 ac_header_preproc=no
8301 rm -f conftest.err conftest.$ac_ext
8302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8303 echo "${ECHO_T}$ac_header_preproc" >&6
8305 # So? What about this header?
8306 case $ac_header_compiler:$ac_header_preproc in
8308 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8309 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8310 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8311 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8313 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8314 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8316 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8320 echo "$as_me:$LINENO: checking for krb5.h" >&5
8321 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_krb5_h+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 ac_cv_header_krb5_h=$ac_header_preproc
8327 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8328 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8331 if test $ac_cv_header_krb5_h = yes; then
8334 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8335 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8336 { (exit 1); exit 1; }; }
8340 if test "${ac_cv_header_com_err_h+set}" = set; then
8341 echo "$as_me:$LINENO: checking for com_err.h" >&5
8342 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8343 if test "${ac_cv_header_com_err_h+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8347 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8349 # Is the header compilable?
8350 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8351 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8353 #line $LINENO "configure"
8354 #include "confdefs.h"
8355 $ac_includes_default
8356 #include <com_err.h>
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360 (eval $ac_compile) 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -s conftest.$ac_objext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 ac_header_compiler=yes
8372 echo "$as_me: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8374 ac_header_compiler=no
8376 rm -f conftest.$ac_objext conftest.$ac_ext
8377 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8378 echo "${ECHO_T}$ac_header_compiler" >&6
8380 # Is the header present?
8381 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8382 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8383 cat >conftest.$ac_ext <<_ACEOF
8384 #line $LINENO "configure"
8385 #include "confdefs.h"
8386 #include <com_err.h>
8388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8391 egrep -v '^ *\+' conftest.er1 >conftest.err
8393 cat conftest.err >&5
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } >/dev/null; then
8396 if test -s conftest.err; then
8397 ac_cpp_err=$ac_c_preproc_warn_flag
8404 if test -z "$ac_cpp_err"; then
8405 ac_header_preproc=yes
8407 echo "$as_me: failed program was:" >&5
8408 cat conftest.$ac_ext >&5
8409 ac_header_preproc=no
8411 rm -f conftest.err conftest.$ac_ext
8412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8413 echo "${ECHO_T}$ac_header_preproc" >&6
8415 # So? What about this header?
8416 case $ac_header_compiler:$ac_header_preproc in
8418 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8419 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8420 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8421 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8423 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8424 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8426 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8428 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8430 echo "$as_me:$LINENO: checking for com_err.h" >&5
8431 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8432 if test "${ac_cv_header_com_err_h+set}" = set; then
8433 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 ac_cv_header_com_err_h=$ac_header_preproc
8437 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8438 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8441 if test $ac_cv_header_com_err_h = yes; then
8444 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8445 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8446 { (exit 1); exit 1; }; }
8452 if test "$with_openssl" = yes ; then
8453 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8454 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8455 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8456 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8460 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8462 # Is the header compilable?
8463 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8464 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 #include "confdefs.h"
8468 $ac_includes_default
8469 #include <openssl/ssl.h>
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8483 ac_header_compiler=yes
8485 echo "$as_me: failed program was:" >&5
8486 cat conftest.$ac_ext >&5
8487 ac_header_compiler=no
8489 rm -f conftest.$ac_objext conftest.$ac_ext
8490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8491 echo "${ECHO_T}$ac_header_compiler" >&6
8493 # Is the header present?
8494 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8495 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8496 cat >conftest.$ac_ext <<_ACEOF
8497 #line $LINENO "configure"
8498 #include "confdefs.h"
8499 #include <openssl/ssl.h>
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8504 egrep -v '^ *\+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } >/dev/null; then
8509 if test -s conftest.err; then
8510 ac_cpp_err=$ac_c_preproc_warn_flag
8517 if test -z "$ac_cpp_err"; then
8518 ac_header_preproc=yes
8520 echo "$as_me: failed program was:" >&5
8521 cat conftest.$ac_ext >&5
8522 ac_header_preproc=no
8524 rm -f conftest.err conftest.$ac_ext
8525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8526 echo "${ECHO_T}$ac_header_preproc" >&6
8528 # So? What about this header?
8529 case $ac_header_compiler:$ac_header_preproc in
8531 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8532 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8534 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8536 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8537 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8538 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8539 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8540 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8541 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8543 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8544 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8545 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8550 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8551 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8554 if test $ac_cv_header_openssl_ssl_h = yes; then
8557 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8558 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8559 { (exit 1); exit 1; }; }
8563 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8564 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8565 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8566 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8570 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8572 # Is the header compilable?
8573 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8574 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8575 cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8577 #include "confdefs.h"
8578 $ac_includes_default
8579 #include <openssl/err.h>
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 ac_header_compiler=yes
8595 echo "$as_me: failed program was:" >&5
8596 cat conftest.$ac_ext >&5
8597 ac_header_compiler=no
8599 rm -f conftest.$ac_objext conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8601 echo "${ECHO_T}$ac_header_compiler" >&6
8603 # Is the header present?
8604 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8605 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 #include "confdefs.h"
8609 #include <openssl/err.h>
8611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8614 egrep -v '^ *\+' conftest.er1 >conftest.err
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } >/dev/null; then
8619 if test -s conftest.err; then
8620 ac_cpp_err=$ac_c_preproc_warn_flag
8627 if test -z "$ac_cpp_err"; then
8628 ac_header_preproc=yes
8630 echo "$as_me: failed program was:" >&5
8631 cat conftest.$ac_ext >&5
8632 ac_header_preproc=no
8634 rm -f conftest.err conftest.$ac_ext
8635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8636 echo "${ECHO_T}$ac_header_preproc" >&6
8638 # So? What about this header?
8639 case $ac_header_compiler:$ac_header_preproc in
8641 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8642 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8643 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8644 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8646 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8647 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8648 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8649 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8650 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8653 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8654 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8655 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8656 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 ac_cv_header_openssl_err_h=$ac_header_preproc
8660 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8661 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8664 if test $ac_cv_header_openssl_err_h = yes; then
8667 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8668 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8669 { (exit 1); exit 1; }; }
8675 if test "$with_pam" = yes ; then
8677 for ac_header in security/pam_appl.h
8679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8681 echo "$as_me:$LINENO: checking for $ac_header" >&5
8682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8689 # Is the header compilable?
8690 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8692 cat >conftest.$ac_ext <<_ACEOF
8693 #line $LINENO "configure"
8694 #include "confdefs.h"
8695 $ac_includes_default
8696 #include <$ac_header>
8698 rm -f conftest.$ac_objext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700 (eval $ac_compile) 2>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -s conftest.$ac_objext'
8705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_header_compiler=yes
8712 echo "$as_me: failed program was:" >&5
8713 cat conftest.$ac_ext >&5
8714 ac_header_compiler=no
8716 rm -f conftest.$ac_objext conftest.$ac_ext
8717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8718 echo "${ECHO_T}$ac_header_compiler" >&6
8720 # Is the header present?
8721 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8723 cat >conftest.$ac_ext <<_ACEOF
8724 #line $LINENO "configure"
8725 #include "confdefs.h"
8726 #include <$ac_header>
8728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8731 egrep -v '^ *\+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } >/dev/null; then
8736 if test -s conftest.err; then
8737 ac_cpp_err=$ac_c_preproc_warn_flag
8744 if test -z "$ac_cpp_err"; then
8745 ac_header_preproc=yes
8747 echo "$as_me: failed program was:" >&5
8748 cat conftest.$ac_ext >&5
8749 ac_header_preproc=no
8751 rm -f conftest.err conftest.$ac_ext
8752 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8753 echo "${ECHO_T}$ac_header_preproc" >&6
8755 # So? What about this header?
8756 case $ac_header_compiler:$ac_header_preproc in
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8770 echo "$as_me:$LINENO: checking for $ac_header" >&5
8771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 eval "$as_ac_Header=$ac_header_preproc"
8777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8782 cat >>confdefs.h <<_ACEOF
8783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 for ac_header in pam/pam_appl.h
8790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8792 echo "$as_me:$LINENO: checking for $ac_header" >&5
8793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8795 echo $ECHO_N "(cached) $ECHO_C" >&6
8797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8800 # Is the header compilable?
8801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8805 #include "confdefs.h"
8806 $ac_includes_default
8807 #include <$ac_header>
8809 rm -f conftest.$ac_objext
8810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8811 (eval $ac_compile) 2>&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -s conftest.$ac_objext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_header_compiler=yes
8823 echo "$as_me: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8825 ac_header_compiler=no
8827 rm -f conftest.$ac_objext conftest.$ac_ext
8828 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8829 echo "${ECHO_T}$ac_header_compiler" >&6
8831 # Is the header present?
8832 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line $LINENO "configure"
8836 #include "confdefs.h"
8837 #include <$ac_header>
8839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8842 egrep -v '^ *\+' conftest.er1 >conftest.err
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } >/dev/null; then
8847 if test -s conftest.err; then
8848 ac_cpp_err=$ac_c_preproc_warn_flag
8855 if test -z "$ac_cpp_err"; then
8856 ac_header_preproc=yes
8858 echo "$as_me: failed program was:" >&5
8859 cat conftest.$ac_ext >&5
8860 ac_header_preproc=no
8862 rm -f conftest.err conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8864 echo "${ECHO_T}$ac_header_preproc" >&6
8866 # So? What about this header?
8867 case $ac_header_compiler:$ac_header_preproc in
8869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8881 echo "$as_me:$LINENO: checking for $ac_header" >&5
8882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 eval "$as_ac_Header=$ac_header_preproc"
8888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8893 cat >>confdefs.h <<_ACEOF
8894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8898 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
8899 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
8900 { (exit 1); exit 1; }; }
8911 if test "$with_rendezvous" = yes ; then
8912 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8913 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
8914 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
8915 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
8919 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
8921 # Is the header compilable?
8922 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
8923 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8926 #include "confdefs.h"
8927 $ac_includes_default
8928 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8930 rm -f conftest.$ac_objext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932 (eval $ac_compile) 2>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -s conftest.$ac_objext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_header_compiler=yes
8944 echo "$as_me: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8946 ac_header_compiler=no
8948 rm -f conftest.$ac_objext conftest.$ac_ext
8949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950 echo "${ECHO_T}$ac_header_compiler" >&6
8952 # Is the header present?
8953 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
8954 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8957 #include "confdefs.h"
8958 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8963 egrep -v '^ *\+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev/null; then
8968 if test -s conftest.err; then
8969 ac_cpp_err=$ac_c_preproc_warn_flag
8976 if test -z "$ac_cpp_err"; then
8977 ac_header_preproc=yes
8979 echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_header_preproc=no
8983 rm -f conftest.err conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985 echo "${ECHO_T}$ac_header_preproc" >&6
8987 # So? What about this header?
8988 case $ac_header_compiler:$ac_header_preproc in
8990 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
8991 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
8993 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
8995 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9002 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9003 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9004 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9009 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9010 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9013 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9016 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9017 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9018 { (exit 1); exit 1; }; }
9026 ## Types, structures, compiler characteristics
9030 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9031 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9032 if test "${ac_cv_c_const+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 cat >conftest.$ac_ext <<_ACEOF
9036 #line $LINENO "configure"
9037 #include "confdefs.h"
9039 #ifdef F77_DUMMY_MAIN
9043 int F77_DUMMY_MAIN() { return 1; }
9048 /* FIXME: Include the comments suggested by Paul. */
9050 /* Ultrix mips cc rejects this. */
9051 typedef int charset[2];
9053 /* SunOS 4.1.1 cc rejects this. */
9054 char const *const *ccp;
9056 /* NEC SVR4.0.2 mips cc rejects this. */
9057 struct point {int x, y;};
9058 static struct point const zero = {0,0};
9059 /* AIX XL C 1.02.0.0 rejects this.
9060 It does not let you subtract one const X* pointer from another in
9061 an arm of an if-expression whose if-part is not a constant
9063 const char *g = "string";
9064 ccp = &g + (g ? g-g : 0);
9065 /* HPUX 7.0 cc rejects these. */
9068 ccp = (char const *const *) p;
9069 { /* SCO 3.2v4 cc rejects this. */
9071 char const *s = 0 ? (char *) 0 : (char const *) 0;
9075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9077 const int *foo = &x[0];
9080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9081 typedef const int *iptr;
9085 { /* AIX XL C 1.02.0.0 rejects this saying
9086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9087 struct s { int j; const int *ap[3]; };
9088 struct s *b; b->j = 5;
9090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101 (eval $ac_compile) 2>&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -s conftest.$ac_objext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9113 echo "$as_me: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9117 rm -f conftest.$ac_objext conftest.$ac_ext
9119 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9120 echo "${ECHO_T}$ac_cv_c_const" >&6
9121 if test $ac_cv_c_const = no; then
9123 cat >>confdefs.h <<\_ACEOF
9129 echo "$as_me:$LINENO: checking for inline" >&5
9130 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9131 if test "${ac_cv_c_inline+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 for ac_kw in inline __inline__ __inline; do
9136 cat >conftest.$ac_ext <<_ACEOF
9137 #line $LINENO "configure"
9138 #include "confdefs.h"
9141 static $ac_kw foo_t static_foo () {return 0; }
9142 $ac_kw int foo () {return 0; }
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148 (eval $ac_compile) 2>&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -s conftest.$ac_objext'
9153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; }; then
9158 ac_cv_c_inline=$ac_kw; break
9160 echo "$as_me: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9163 rm -f conftest.$ac_objext conftest.$ac_ext
9167 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9168 echo "${ECHO_T}$ac_cv_c_inline" >&6
9169 case $ac_cv_c_inline in
9172 cat >>confdefs.h <<\_ACEOF
9176 *) cat >>confdefs.h <<_ACEOF
9177 #define inline $ac_cv_c_inline
9182 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9183 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9184 if test "${ac_cv_c_stringize+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9187 cat >conftest.$ac_ext <<_ACEOF
9188 #line $LINENO "configure"
9189 #include "confdefs.h"
9192 char *s = x(teststring);
9194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9195 egrep "#teststring" >/dev/null 2>&1; then
9196 ac_cv_c_stringize=no
9198 ac_cv_c_stringize=yes
9203 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9204 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9205 if test $ac_cv_c_stringize = yes; then
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_STRINGIZE 1
9213 echo "$as_me:$LINENO: checking for signed types" >&5
9214 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9215 if test "${pgac_cv_c_signed+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 #include "confdefs.h"
9222 #ifdef F77_DUMMY_MAIN
9226 int F77_DUMMY_MAIN() { return 1; }
9231 signed char c; signed short s; signed int i;
9236 rm -f conftest.$ac_objext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9238 (eval $ac_compile) 2>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -s conftest.$ac_objext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 pgac_cv_c_signed=yes
9250 echo "$as_me: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9254 rm -f conftest.$ac_objext conftest.$ac_ext
9256 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9257 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9258 if test x"$pgac_cv_c_signed" = xno ; then
9260 cat >>confdefs.h <<\_ACEOF
9265 echo "$as_me:$LINENO: checking for working volatile" >&5
9266 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9267 if test "${ac_cv_c_volatile+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9270 cat >conftest.$ac_ext <<_ACEOF
9271 #line $LINENO "configure"
9272 #include "confdefs.h"
9274 #ifdef F77_DUMMY_MAIN
9278 int F77_DUMMY_MAIN() { return 1; }
9290 rm -f conftest.$ac_objext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9292 (eval $ac_compile) 2>&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } &&
9296 { ac_try='test -s conftest.$ac_objext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_cv_c_volatile=yes
9304 echo "$as_me: failed program was:" >&5
9305 cat conftest.$ac_ext >&5
9308 rm -f conftest.$ac_objext conftest.$ac_ext
9310 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9311 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9312 if test $ac_cv_c_volatile = no; then
9314 cat >>confdefs.h <<\_ACEOF
9320 echo "$as_me:$LINENO: checking for __func__" >&5
9321 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9322 if test "${pgac_cv_funcname_func_support+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9326 #line $LINENO "configure"
9327 #include "confdefs.h"
9329 #ifdef F77_DUMMY_MAIN
9333 int F77_DUMMY_MAIN() { return 1; }
9338 printf("%s\n", __func__);
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 pgac_cv_funcname_func_support=yes
9357 echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 pgac_cv_funcname_func_support=no
9361 rm -f conftest.$ac_objext conftest.$ac_ext
9363 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9364 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9365 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9367 cat >>confdefs.h <<\_ACEOF
9368 #define HAVE_FUNCNAME__FUNC 1
9372 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9373 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9374 if test "${pgac_cv_funcname_function_support+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 cat >conftest.$ac_ext <<_ACEOF
9378 #line $LINENO "configure"
9379 #include "confdefs.h"
9381 #ifdef F77_DUMMY_MAIN
9385 int F77_DUMMY_MAIN() { return 1; }
9390 printf("%s\n", __FUNCTION__);
9395 rm -f conftest.$ac_objext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -s conftest.$ac_objext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
9407 pgac_cv_funcname_function_support=yes
9409 echo "$as_me: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 pgac_cv_funcname_function_support=no
9413 rm -f conftest.$ac_objext conftest.$ac_ext
9415 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9416 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9417 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9419 cat >>confdefs.h <<\_ACEOF
9420 #define HAVE_FUNCNAME__FUNCTION 1
9425 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9426 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9427 if test "${ac_cv_struct_tm+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line $LINENO "configure"
9432 #include "confdefs.h"
9433 #include <sys/types.h>
9436 #ifdef F77_DUMMY_MAIN
9440 int F77_DUMMY_MAIN() { return 1; }
9445 struct tm *tp; tp->tm_sec;
9450 rm -f conftest.$ac_objext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9452 (eval $ac_compile) 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_struct_tm=time.h
9464 echo "$as_me: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9466 ac_cv_struct_tm=sys/time.h
9468 rm -f conftest.$ac_objext conftest.$ac_ext
9470 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9471 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9472 if test $ac_cv_struct_tm = sys/time.h; then
9474 cat >>confdefs.h <<\_ACEOF
9475 #define TM_IN_SYS_TIME 1
9480 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9481 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9482 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 cat >conftest.$ac_ext <<_ACEOF
9486 #line $LINENO "configure"
9487 #include "confdefs.h"
9488 #include <sys/types.h>
9489 #include <$ac_cv_struct_tm>
9492 #ifdef F77_DUMMY_MAIN
9496 int F77_DUMMY_MAIN() { return 1; }
9501 static struct tm ac_aggr;
9502 if (ac_aggr.tm_zone)
9508 rm -f conftest.$ac_objext
9509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9510 (eval $ac_compile) 2>&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } &&
9514 { ac_try='test -s conftest.$ac_objext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_cv_member_struct_tm_tm_zone=yes
9522 echo "$as_me: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9524 ac_cv_member_struct_tm_tm_zone=no
9526 rm -f conftest.$ac_objext conftest.$ac_ext
9528 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9529 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9530 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9532 cat >>confdefs.h <<_ACEOF
9533 #define HAVE_STRUCT_TM_TM_ZONE 1
9539 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9541 cat >>confdefs.h <<\_ACEOF
9542 #define HAVE_TM_ZONE 1
9546 echo "$as_me:$LINENO: checking for tzname" >&5
9547 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9548 if test "${ac_cv_var_tzname+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 cat >conftest.$ac_ext <<_ACEOF
9552 #line $LINENO "configure"
9553 #include "confdefs.h"
9555 #ifndef tzname /* For SGI. */
9556 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9559 #ifdef F77_DUMMY_MAIN
9563 int F77_DUMMY_MAIN() { return 1; }
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 (eval $ac_link) 2>&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); } &&
9579 { ac_try='test -s conftest$ac_exeext'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9585 ac_cv_var_tzname=yes
9587 echo "$as_me: failed program was:" >&5
9588 cat conftest.$ac_ext >&5
9591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9593 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9594 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9595 if test $ac_cv_var_tzname = yes; then
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_TZNAME 1
9603 echo "$as_me:$LINENO: checking for union semun" >&5
9604 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9605 if test "${ac_cv_type_union_semun+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 cat >conftest.$ac_ext <<_ACEOF
9609 #line $LINENO "configure"
9610 #include "confdefs.h"
9611 #include <sys/types.h>
9612 #include <sys/ipc.h>
9613 #include <sys/sem.h>
9615 #ifdef F77_DUMMY_MAIN
9619 int F77_DUMMY_MAIN() { return 1; }
9624 if ((union semun *) 0)
9626 if (sizeof (union semun))
9632 rm -f conftest.$ac_objext
9633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9634 (eval $ac_compile) 2>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 ac_cv_type_union_semun=yes
9646 echo "$as_me: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9648 ac_cv_type_union_semun=no
9650 rm -f conftest.$ac_objext conftest.$ac_ext
9652 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9653 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9654 if test $ac_cv_type_union_semun = yes; then
9656 cat >>confdefs.h <<_ACEOF
9657 #define HAVE_UNION_SEMUN 1
9663 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9664 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9665 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 cat >conftest.$ac_ext <<_ACEOF
9669 #line $LINENO "configure"
9670 #include "confdefs.h"
9671 #include <sys/types.h>
9672 #ifdef HAVE_SYS_UN_H
9677 #ifdef F77_DUMMY_MAIN
9681 int F77_DUMMY_MAIN() { return 1; }
9686 if ((struct sockaddr_un *) 0)
9688 if (sizeof (struct sockaddr_un))
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696 (eval $ac_compile) 2>&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -s conftest.$ac_objext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_type_struct_sockaddr_un=yes
9708 echo "$as_me: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9710 ac_cv_type_struct_sockaddr_un=no
9712 rm -f conftest.$ac_objext conftest.$ac_ext
9714 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9715 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9716 if test $ac_cv_type_struct_sockaddr_un = yes; then
9718 cat >>confdefs.h <<_ACEOF
9719 #define HAVE_STRUCT_SOCKADDR_UN 1
9723 cat >>confdefs.h <<\_ACEOF
9724 #define HAVE_UNIX_SOCKETS 1
9729 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9730 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9731 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 cat >conftest.$ac_ext <<_ACEOF
9735 #line $LINENO "configure"
9736 #include "confdefs.h"
9737 #include <sys/types.h>
9738 #ifdef HAVE_SYS_SOCKET_H
9739 #include <sys/socket.h>
9743 #ifdef F77_DUMMY_MAIN
9747 int F77_DUMMY_MAIN() { return 1; }
9752 if ((struct sockaddr_storage *) 0)
9754 if (sizeof (struct sockaddr_storage))
9760 rm -f conftest.$ac_objext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9762 (eval $ac_compile) 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
9766 { ac_try='test -s conftest.$ac_objext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_cv_type_struct_sockaddr_storage=yes
9774 echo "$as_me: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9776 ac_cv_type_struct_sockaddr_storage=no
9778 rm -f conftest.$ac_objext conftest.$ac_ext
9780 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9781 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9782 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9784 cat >>confdefs.h <<_ACEOF
9785 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9791 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9792 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9793 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 cat >conftest.$ac_ext <<_ACEOF
9797 #line $LINENO "configure"
9798 #include "confdefs.h"
9799 #include <sys/types.h>
9800 #ifdef HAVE_SYS_SOCKET_H
9801 #include <sys/socket.h>
9805 #ifdef F77_DUMMY_MAIN
9809 int F77_DUMMY_MAIN() { return 1; }
9814 static struct sockaddr_storage ac_aggr;
9815 if (ac_aggr.ss_family)
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -s conftest.$ac_objext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_cv_member_struct_sockaddr_storage_ss_family=yes
9835 echo "$as_me: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9837 ac_cv_member_struct_sockaddr_storage_ss_family=no
9839 rm -f conftest.$ac_objext conftest.$ac_ext
9841 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
9842 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
9843 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
9845 cat >>confdefs.h <<_ACEOF
9846 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
9851 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
9852 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
9853 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 cat >conftest.$ac_ext <<_ACEOF
9857 #line $LINENO "configure"
9858 #include "confdefs.h"
9859 #include <sys/types.h>
9860 #ifdef HAVE_SYS_SOCKET_H
9861 #include <sys/socket.h>
9865 #ifdef F77_DUMMY_MAIN
9869 int F77_DUMMY_MAIN() { return 1; }
9874 static struct sockaddr_storage ac_aggr;
9875 if (ac_aggr.__ss_family)
9881 rm -f conftest.$ac_objext
9882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883 (eval $ac_compile) 2>&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -s conftest.$ac_objext'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_member_struct_sockaddr_storage___ss_family=yes
9895 echo "$as_me: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9897 ac_cv_member_struct_sockaddr_storage___ss_family=no
9899 rm -f conftest.$ac_objext conftest.$ac_ext
9901 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
9902 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
9903 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
9905 cat >>confdefs.h <<_ACEOF
9906 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
9911 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
9912 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
9913 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 cat >conftest.$ac_ext <<_ACEOF
9917 #line $LINENO "configure"
9918 #include "confdefs.h"
9919 #include <sys/types.h>
9920 #ifdef HAVE_SYS_SOCKET_H
9921 #include <sys/socket.h>
9925 #ifdef F77_DUMMY_MAIN
9929 int F77_DUMMY_MAIN() { return 1; }
9934 static struct sockaddr_storage ac_aggr;
9941 rm -f conftest.$ac_objext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9943 (eval $ac_compile) 2>&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
9947 { ac_try='test -s conftest.$ac_objext'
9948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; }; then
9953 ac_cv_member_struct_sockaddr_storage_ss_len=yes
9955 echo "$as_me: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 ac_cv_member_struct_sockaddr_storage_ss_len=no
9959 rm -f conftest.$ac_objext conftest.$ac_ext
9961 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
9962 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
9963 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
9971 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
9972 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
9973 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9978 #include "confdefs.h"
9979 #include <sys/types.h>
9980 #ifdef HAVE_SYS_SOCKET_H
9981 #include <sys/socket.h>
9985 #ifdef F77_DUMMY_MAIN
9989 int F77_DUMMY_MAIN() { return 1; }
9994 static struct sockaddr_storage ac_aggr;
9995 if (ac_aggr.__ss_len)
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003 (eval $ac_compile) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -s conftest.$ac_objext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10015 echo "$as_me: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10017 ac_cv_member_struct_sockaddr_storage___ss_len=no
10019 rm -f conftest.$ac_objext conftest.$ac_ext
10021 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10022 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10023 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10031 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10032 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10033 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 cat >conftest.$ac_ext <<_ACEOF
10037 #line $LINENO "configure"
10038 #include "confdefs.h"
10039 #include <sys/types.h>
10040 #ifdef HAVE_SYS_SOCKET_H
10041 #include <sys/socket.h>
10045 #ifdef F77_DUMMY_MAIN
10046 # ifdef __cplusplus
10049 int F77_DUMMY_MAIN() { return 1; }
10054 static struct sockaddr ac_aggr;
10055 if (ac_aggr.sa_len)
10061 rm -f conftest.$ac_objext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10063 (eval $ac_compile) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -s conftest.$ac_objext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_member_struct_sockaddr_sa_len=yes
10075 echo "$as_me: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 ac_cv_member_struct_sockaddr_sa_len=no
10079 rm -f conftest.$ac_objext conftest.$ac_ext
10081 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10082 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10083 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10085 cat >>confdefs.h <<_ACEOF
10086 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10092 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10093 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10094 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 #include "confdefs.h"
10100 #include <sys/types.h>
10101 #include <sys/socket.h>
10105 #ifdef F77_DUMMY_MAIN
10106 # ifdef __cplusplus
10109 int F77_DUMMY_MAIN() { return 1; }
10114 if ((struct addrinfo *) 0)
10116 if (sizeof (struct addrinfo))
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } &&
10128 { ac_try='test -s conftest.$ac_objext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_type_struct_addrinfo=yes
10136 echo "$as_me: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 ac_cv_type_struct_addrinfo=no
10140 rm -f conftest.$ac_objext conftest.$ac_ext
10142 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10143 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10144 if test $ac_cv_type_struct_addrinfo = yes; then
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE_STRUCT_ADDRINFO 1
10154 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10155 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10156 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10157 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 #include "confdefs.h"
10162 #include <sys/param.h>
10163 #include <sys/types.h>
10164 #include <sys/socket.h>
10165 #include <sys/ucred.h>
10167 #ifdef F77_DUMMY_MAIN
10168 # ifdef __cplusplus
10171 int F77_DUMMY_MAIN() { return 1; }
10176 if ((struct cmsgcred *) 0)
10178 if (sizeof (struct cmsgcred))
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } &&
10190 { ac_try='test -s conftest.$ac_objext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 ac_cv_type_struct_cmsgcred=yes
10198 echo "$as_me: failed program was:" >&5
10199 cat conftest.$ac_ext >&5
10200 ac_cv_type_struct_cmsgcred=no
10202 rm -f conftest.$ac_objext conftest.$ac_ext
10204 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10205 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10206 if test $ac_cv_type_struct_cmsgcred = yes; then
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_STRUCT_CMSGCRED 1
10214 echo "$as_me:$LINENO: checking for struct fcred" >&5
10215 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10216 if test "${ac_cv_type_struct_fcred+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 #include "confdefs.h"
10222 #include <sys/param.h>
10223 #include <sys/types.h>
10224 #include <sys/socket.h>
10225 #include <sys/ucred.h>
10227 #ifdef F77_DUMMY_MAIN
10228 # ifdef __cplusplus
10231 int F77_DUMMY_MAIN() { return 1; }
10236 if ((struct fcred *) 0)
10238 if (sizeof (struct fcred))
10244 rm -f conftest.$ac_objext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10246 (eval $ac_compile) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } &&
10250 { ac_try='test -s conftest.$ac_objext'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10256 ac_cv_type_struct_fcred=yes
10258 echo "$as_me: failed program was:" >&5
10259 cat conftest.$ac_ext >&5
10260 ac_cv_type_struct_fcred=no
10262 rm -f conftest.$ac_objext conftest.$ac_ext
10264 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10265 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10266 if test $ac_cv_type_struct_fcred = yes; then
10268 cat >>confdefs.h <<_ACEOF
10269 #define HAVE_STRUCT_FCRED 1
10274 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10275 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10276 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10281 #include "confdefs.h"
10282 #include <sys/param.h>
10283 #include <sys/types.h>
10284 #include <sys/socket.h>
10285 #include <sys/ucred.h>
10287 #ifdef F77_DUMMY_MAIN
10288 # ifdef __cplusplus
10291 int F77_DUMMY_MAIN() { return 1; }
10296 if ((struct sockcred *) 0)
10298 if (sizeof (struct sockcred))
10304 rm -f conftest.$ac_objext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306 (eval $ac_compile) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } &&
10310 { ac_try='test -s conftest.$ac_objext'
10311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312 (eval $ac_try) 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 ac_cv_type_struct_sockcred=yes
10318 echo "$as_me: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 ac_cv_type_struct_sockcred=no
10322 rm -f conftest.$ac_objext conftest.$ac_ext
10324 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10325 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10326 if test $ac_cv_type_struct_sockcred = yes; then
10328 cat >>confdefs.h <<_ACEOF
10329 #define HAVE_STRUCT_SOCKCRED 1
10336 echo "$as_me:$LINENO: checking for struct option" >&5
10337 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10338 if test "${ac_cv_type_struct_option+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 cat >conftest.$ac_ext <<_ACEOF
10342 #line $LINENO "configure"
10343 #include "confdefs.h"
10344 #ifdef HAVE_GETOPT_H
10345 #include <getopt.h>
10348 #ifdef F77_DUMMY_MAIN
10349 # ifdef __cplusplus
10352 int F77_DUMMY_MAIN() { return 1; }
10357 if ((struct option *) 0)
10359 if (sizeof (struct option))
10365 rm -f conftest.$ac_objext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } &&
10371 { ac_try='test -s conftest.$ac_objext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 ac_cv_type_struct_option=yes
10379 echo "$as_me: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381 ac_cv_type_struct_option=no
10383 rm -f conftest.$ac_objext conftest.$ac_ext
10385 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10386 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10387 if test $ac_cv_type_struct_option = yes; then
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_STRUCT_OPTION 1
10397 if test "$with_zlib" = yes; then
10398 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10399 # did not). While we could work around the lack of z_streamp, it
10400 # seems unwise to encourage people to use such old zlib versions...
10401 echo "$as_me:$LINENO: checking for z_streamp" >&5
10402 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10403 if test "${ac_cv_type_z_streamp+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 cat >conftest.$ac_ext <<_ACEOF
10407 #line $LINENO "configure"
10408 #include "confdefs.h"
10411 #ifdef F77_DUMMY_MAIN
10412 # ifdef __cplusplus
10415 int F77_DUMMY_MAIN() { return 1; }
10420 if ((z_streamp *) 0)
10422 if (sizeof (z_streamp))
10428 rm -f conftest.$ac_objext
10429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10430 (eval $ac_compile) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -s conftest.$ac_objext'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 ac_cv_type_z_streamp=yes
10442 echo "$as_me: failed program was:" >&5
10443 cat conftest.$ac_ext >&5
10444 ac_cv_type_z_streamp=no
10446 rm -f conftest.$ac_objext conftest.$ac_ext
10448 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10449 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10450 if test $ac_cv_type_z_streamp = yes; then
10453 { { echo "$as_me:$LINENO: error: zlib version is too old
10454 Use --without-zlib to disable zlib support." >&5
10455 echo "$as_me: error: zlib version is too old
10456 Use --without-zlib to disable zlib support." >&2;}
10457 { (exit 1); exit 1; }; }
10462 if test "$with_krb5" = yes; then
10463 # Check for differences between MIT and Heimdal (KTH) releases
10464 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10465 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10466 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 cat >conftest.$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10471 #include "confdefs.h"
10474 #ifdef F77_DUMMY_MAIN
10475 # ifdef __cplusplus
10478 int F77_DUMMY_MAIN() { return 1; }
10483 static krb5_ticket ac_aggr;
10484 if (ac_aggr.enc_part2)
10490 rm -f conftest.$ac_objext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10492 (eval $ac_compile) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 { ac_try='test -s conftest.$ac_objext'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
10502 ac_cv_member_krb5_ticket_enc_part2=yes
10504 echo "$as_me: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10506 ac_cv_member_krb5_ticket_enc_part2=no
10508 rm -f conftest.$ac_objext conftest.$ac_ext
10510 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10511 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10512 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_KRB5_TICKET_ENC_PART2 1
10520 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10521 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10522 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 cat >conftest.$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10527 #include "confdefs.h"
10530 #ifdef F77_DUMMY_MAIN
10531 # ifdef __cplusplus
10534 int F77_DUMMY_MAIN() { return 1; }
10539 static krb5_ticket ac_aggr;
10540 if (ac_aggr.client)
10546 rm -f conftest.$ac_objext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548 (eval $ac_compile) 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } &&
10552 { ac_try='test -s conftest.$ac_objext'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 ac_cv_member_krb5_ticket_client=yes
10560 echo "$as_me: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 ac_cv_member_krb5_ticket_client=no
10564 rm -f conftest.$ac_objext conftest.$ac_ext
10566 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10567 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10568 if test $ac_cv_member_krb5_ticket_client = yes; then
10570 cat >>confdefs.h <<_ACEOF
10571 #define HAVE_KRB5_TICKET_CLIENT 1
10576 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10577 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10578 { (exit 1); exit 1; }; }
10583 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10584 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10585 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 cat >conftest.$ac_ext <<_ACEOF
10589 #line $LINENO "configure"
10590 #include "confdefs.h"
10593 #ifdef F77_DUMMY_MAIN
10594 # ifdef __cplusplus
10597 int F77_DUMMY_MAIN() { return 1; }
10602 static krb5_error ac_aggr;
10603 if (ac_aggr.text.data)
10609 rm -f conftest.$ac_objext
10610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611 (eval $ac_compile) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -s conftest.$ac_objext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10621 ac_cv_member_krb5_error_text_data=yes
10623 echo "$as_me: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10625 ac_cv_member_krb5_error_text_data=no
10627 rm -f conftest.$ac_objext conftest.$ac_ext
10629 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10630 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10631 if test $ac_cv_member_krb5_error_text_data = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10639 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10640 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10641 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 #include "confdefs.h"
10649 #ifdef F77_DUMMY_MAIN
10650 # ifdef __cplusplus
10653 int F77_DUMMY_MAIN() { return 1; }
10658 static krb5_error ac_aggr;
10659 if (ac_aggr.e_data)
10665 rm -f conftest.$ac_objext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10667 (eval $ac_compile) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -s conftest.$ac_objext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 ac_cv_member_krb5_error_e_data=yes
10679 echo "$as_me: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 ac_cv_member_krb5_error_e_data=no
10683 rm -f conftest.$ac_objext conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10686 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10687 if test $ac_cv_member_krb5_error_e_data = yes; then
10689 cat >>confdefs.h <<_ACEOF
10690 #define HAVE_KRB5_ERROR_E_DATA 1
10695 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10696 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10697 { (exit 1); exit 1; }; }
10706 ## Functions, global variables
10709 echo "$as_me:$LINENO: checking for int timezone" >&5
10710 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10711 if test "${pgac_cv_var_int_timezone+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 cat >conftest.$ac_ext <<_ACEOF
10715 #line $LINENO "configure"
10716 #include "confdefs.h"
10719 #ifdef F77_DUMMY_MAIN
10720 # ifdef __cplusplus
10723 int F77_DUMMY_MAIN() { return 1; }
10728 res = timezone / 60;
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735 (eval $ac_link) 2>&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); } &&
10739 { ac_try='test -s conftest$ac_exeext'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 pgac_cv_var_int_timezone=yes
10747 echo "$as_me: failed program was:" >&5
10748 cat conftest.$ac_ext >&5
10749 pgac_cv_var_int_timezone=no
10751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10753 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10754 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10755 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10757 cat >>confdefs.h <<\_ACEOF
10758 #define HAVE_INT_TIMEZONE
10762 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10763 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10764 if test "${ac_cv_func_accept_return+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 if test "${ac_cv_func_accept_arg1+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 if test "${ac_cv_func_accept_arg2+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 if test "${ac_cv_func_accept_arg3+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10777 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10778 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10779 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10780 cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10782 #include "confdefs.h"
10783 #ifdef HAVE_SYS_TYPES_H
10784 #include <sys/types.h>
10786 #ifdef HAVE_SYS_SOCKET_H
10787 #include <sys/socket.h>
10789 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10790 #ifdef F77_DUMMY_MAIN
10791 # ifdef __cplusplus
10794 int F77_DUMMY_MAIN() { return 1; }
10804 rm -f conftest.$ac_objext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10806 (eval $ac_compile) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -s conftest.$ac_objext'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_not_found=no; break 4
10818 echo "$as_me: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10822 rm -f conftest.$ac_objext conftest.$ac_ext
10827 if test "$ac_not_found" = yes; then
10828 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
10829 echo "$as_me: error: could not determine argument types" >&2;}
10830 { (exit 1); exit 1; }; }
10832 if test "$ac_cv_func_accept_arg3" = "void"; then
10833 ac_cv_func_accept_arg3=int
10843 echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10844 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
10846 cat >>confdefs.h <<_ACEOF
10847 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10851 cat >>confdefs.h <<_ACEOF
10852 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10856 cat >>confdefs.h <<_ACEOF
10857 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10861 cat >>confdefs.h <<_ACEOF
10862 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10866 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
10867 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
10868 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 cat >conftest.$ac_ext <<_ACEOF
10872 #line $LINENO "configure"
10873 #include "confdefs.h"
10874 #include <sys/time.h>
10875 #ifdef F77_DUMMY_MAIN
10876 # ifdef __cplusplus
10879 int F77_DUMMY_MAIN() { return 1; }
10884 struct timeval *tp;
10885 struct timezone *tzp;
10886 gettimeofday(tp,tzp);
10891 rm -f conftest.$ac_objext
10892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10893 (eval $ac_compile) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -s conftest.$ac_objext'
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 pgac_cv_func_gettimeofday_1arg=no
10905 echo "$as_me: failed program was:" >&5
10906 cat conftest.$ac_ext >&5
10907 pgac_cv_func_gettimeofday_1arg=yes
10909 rm -f conftest.$ac_objext conftest.$ac_ext
10911 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
10912 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
10913 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10915 cat >>confdefs.h <<\_ACEOF
10916 #define GETTIMEOFDAY_1ARG
10923 # SunOS doesn't handle negative byte comparisons properly with +/- return
10924 echo "$as_me:$LINENO: checking for working memcmp" >&5
10925 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
10926 if test "${ac_cv_func_memcmp_working+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
10929 if test "$cross_compiling" = yes; then
10930 ac_cv_func_memcmp_working=no
10932 cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10934 #include "confdefs.h"
10936 #ifdef F77_DUMMY_MAIN
10937 # ifdef __cplusplus
10940 int F77_DUMMY_MAIN() { return 1; }
10946 /* Some versions of memcmp are not 8-bit clean. */
10947 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
10948 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10951 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10952 or more and with at least one buffer not starting on a 4-byte boundary.
10953 William Lewis provided this test program. */
10958 for (i = 0; i < 4; i++)
10962 strcpy (a, "--------01111111");
10963 strcpy (b, "--------10000000");
10964 if (memcmp (a, b, 16) >= 0)
10974 rm -f conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976 (eval $ac_link) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
10985 ac_cv_func_memcmp_working=yes
10987 echo "$as_me: program exited with status $ac_status" >&5
10988 echo "$as_me: failed program was:" >&5
10989 cat conftest.$ac_ext >&5
10990 ( exit $ac_status )
10991 ac_cv_func_memcmp_working=no
10993 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10996 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10997 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
10998 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11019 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
11021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11022 echo "$as_me:$LINENO: checking for $ac_func" >&5
11023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11024 if eval "test \"\${$as_ac_var+set}\" = set"; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 cat >conftest.$ac_ext <<_ACEOF
11028 #line $LINENO "configure"
11029 #include "confdefs.h"
11030 /* System header to define __stub macros and hopefully few prototypes,
11031 which can conflict with char $ac_func (); below. */
11032 #include <assert.h>
11033 /* Override any gcc2 internal prototype to avoid an error. */
11037 /* We use char because int might match the return type of a gcc2
11038 builtin and then its argument prototype would still apply. */
11042 #ifdef F77_DUMMY_MAIN
11043 # ifdef __cplusplus
11046 int F77_DUMMY_MAIN() { return 1; }
11051 /* The GNU C library defines this for functions which it implements
11052 to always fail with ENOSYS. Some functions are actually named
11053 something starting with __ and the normal name is an alias. */
11054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try='test -s conftest$ac_exeext'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }; then
11076 eval "$as_ac_var=yes"
11078 echo "$as_me: failed program was:" >&5
11079 cat conftest.$ac_ext >&5
11080 eval "$as_ac_var=no"
11082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11086 if test `eval echo '${'$as_ac_var'}'` = yes; then
11087 cat >>confdefs.h <<_ACEOF
11088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11095 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11096 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11097 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 cat >conftest.$ac_ext <<_ACEOF
11101 #line $LINENO "configure"
11102 #include "confdefs.h"
11103 #include <unistd.h>
11105 #ifdef F77_DUMMY_MAIN
11106 # ifdef __cplusplus
11109 int F77_DUMMY_MAIN() { return 1; }
11115 char *p = (char *) fdatasync;
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124 (eval $ac_compile) 2>&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -s conftest.$ac_objext'
11129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11130 (eval $ac_try) 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11134 ac_cv_have_decl_fdatasync=yes
11136 echo "$as_me: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11138 ac_cv_have_decl_fdatasync=no
11140 rm -f conftest.$ac_objext conftest.$ac_ext
11142 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11143 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11144 if test $ac_cv_have_decl_fdatasync = yes; then
11146 cat >>confdefs.h <<_ACEOF
11147 #define HAVE_DECL_FDATASYNC 1
11152 cat >>confdefs.h <<_ACEOF
11153 #define HAVE_DECL_FDATASYNC 0
11162 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11163 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11164 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 cat >conftest.$ac_ext <<_ACEOF
11168 #line $LINENO "configure"
11169 #include "confdefs.h"
11170 $ac_includes_default
11171 #include <netinet/in.h>
11173 #ifdef F77_DUMMY_MAIN
11174 # ifdef __cplusplus
11177 int F77_DUMMY_MAIN() { return 1; }
11182 if ((struct sockaddr_in6 *) 0)
11184 if (sizeof (struct sockaddr_in6))
11190 rm -f conftest.$ac_objext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192 (eval $ac_compile) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -s conftest.$ac_objext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
11202 ac_cv_type_struct_sockaddr_in6=yes
11204 echo "$as_me: failed program was:" >&5
11205 cat conftest.$ac_ext >&5
11206 ac_cv_type_struct_sockaddr_in6=no
11208 rm -f conftest.$ac_objext conftest.$ac_ext
11210 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11211 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11212 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11213 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11214 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11215 if test "${ac_cv_func_inet_ntop+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 cat >conftest.$ac_ext <<_ACEOF
11219 #line $LINENO "configure"
11220 #include "confdefs.h"
11221 /* System header to define __stub macros and hopefully few prototypes,
11222 which can conflict with char inet_ntop (); below. */
11223 #include <assert.h>
11224 /* Override any gcc2 internal prototype to avoid an error. */
11228 /* We use char because int might match the return type of a gcc2
11229 builtin and then its argument prototype would still apply. */
11233 #ifdef F77_DUMMY_MAIN
11234 # ifdef __cplusplus
11237 int F77_DUMMY_MAIN() { return 1; }
11242 /* The GNU C library defines this for functions which it implements
11243 to always fail with ENOSYS. Some functions are actually named
11244 something starting with __ and the normal name is an alias. */
11245 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11257 (eval $ac_link) 2>&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } &&
11261 { ac_try='test -s conftest$ac_exeext'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }; then
11267 ac_cv_func_inet_ntop=yes
11269 echo "$as_me: failed program was:" >&5
11270 cat conftest.$ac_ext >&5
11271 ac_cv_func_inet_ntop=no
11273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11275 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11276 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11277 if test $ac_cv_func_inet_ntop = yes; then
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_IPV6 1
11290 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11291 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11292 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 cat >conftest.$ac_ext <<_ACEOF
11296 #line $LINENO "configure"
11297 #include "confdefs.h"
11298 #include <machine/vmparam.h>
11299 #include <sys/exec.h>
11301 #ifdef F77_DUMMY_MAIN
11302 # ifdef __cplusplus
11305 int F77_DUMMY_MAIN() { return 1; }
11310 PS_STRINGS->ps_nargvstr = 1;
11311 PS_STRINGS->ps_argvstr = "foo";
11316 rm -f conftest.$ac_objext conftest$ac_exeext
11317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 pgac_cv_var_PS_STRINGS=yes
11330 echo "$as_me: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11332 pgac_cv_var_PS_STRINGS=no
11334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11337 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11338 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11340 cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_PS_STRINGS
11347 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11348 # is missing. Yes, there are machines that have only one. We may
11349 # also decide to use snprintf.c if snprintf() is present but does not
11350 # have working "long long int" support -- see below.
11352 pgac_need_repl_snprintf=no
11354 for ac_func in snprintf
11356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11357 echo "$as_me:$LINENO: checking for $ac_func" >&5
11358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11359 if eval "test \"\${$as_ac_var+set}\" = set"; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 cat >conftest.$ac_ext <<_ACEOF
11363 #line $LINENO "configure"
11364 #include "confdefs.h"
11365 /* System header to define __stub macros and hopefully few prototypes,
11366 which can conflict with char $ac_func (); below. */
11367 #include <assert.h>
11368 /* Override any gcc2 internal prototype to avoid an error. */
11372 /* We use char because int might match the return type of a gcc2
11373 builtin and then its argument prototype would still apply. */
11377 #ifdef F77_DUMMY_MAIN
11378 # ifdef __cplusplus
11381 int F77_DUMMY_MAIN() { return 1; }
11386 /* The GNU C library defines this for functions which it implements
11387 to always fail with ENOSYS. Some functions are actually named
11388 something starting with __ and the normal name is an alias. */
11389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11399 rm -f conftest.$ac_objext conftest$ac_exeext
11400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11401 (eval $ac_link) 2>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try='test -s conftest$ac_exeext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
11411 eval "$as_ac_var=yes"
11413 echo "$as_me: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11415 eval "$as_ac_var=no"
11417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11421 if test `eval echo '${'$as_ac_var'}'` = yes; then
11422 cat >>confdefs.h <<_ACEOF
11423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11427 pgac_need_repl_snprintf=yes
11432 for ac_func in vsnprintf
11434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11435 echo "$as_me:$LINENO: checking for $ac_func" >&5
11436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11437 if eval "test \"\${$as_ac_var+set}\" = set"; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11442 #include "confdefs.h"
11443 /* System header to define __stub macros and hopefully few prototypes,
11444 which can conflict with char $ac_func (); below. */
11445 #include <assert.h>
11446 /* Override any gcc2 internal prototype to avoid an error. */
11450 /* We use char because int might match the return type of a gcc2
11451 builtin and then its argument prototype would still apply. */
11455 #ifdef F77_DUMMY_MAIN
11456 # ifdef __cplusplus
11459 int F77_DUMMY_MAIN() { return 1; }
11464 /* The GNU C library defines this for functions which it implements
11465 to always fail with ENOSYS. Some functions are actually named
11466 something starting with __ and the normal name is an alias. */
11467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11477 rm -f conftest.$ac_objext conftest$ac_exeext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11479 (eval $ac_link) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); } &&
11483 { ac_try='test -s conftest$ac_exeext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 eval "$as_ac_var=yes"
11491 echo "$as_me: failed program was:" >&5
11492 cat conftest.$ac_ext >&5
11493 eval "$as_ac_var=no"
11495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11499 if test `eval echo '${'$as_ac_var'}'` = yes; then
11500 cat >>confdefs.h <<_ACEOF
11501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11505 pgac_need_repl_snprintf=yes
11511 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11512 # include/c.h will provide declarations. Note this is a separate test
11513 # from whether the functions exist in the C library --- there are
11514 # systems that have the functions but don't bother to declare them :-(
11516 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11517 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11518 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11521 cat >conftest.$ac_ext <<_ACEOF
11522 #line $LINENO "configure"
11523 #include "confdefs.h"
11524 $ac_includes_default
11525 #ifdef F77_DUMMY_MAIN
11526 # ifdef __cplusplus
11529 int F77_DUMMY_MAIN() { return 1; }
11535 char *p = (char *) snprintf;
11542 rm -f conftest.$ac_objext
11543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11544 (eval $ac_compile) 2>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 ac_cv_have_decl_snprintf=yes
11556 echo "$as_me: failed program was:" >&5
11557 cat conftest.$ac_ext >&5
11558 ac_cv_have_decl_snprintf=no
11560 rm -f conftest.$ac_objext conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11563 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11564 if test $ac_cv_have_decl_snprintf = yes; then
11566 cat >>confdefs.h <<_ACEOF
11567 #define HAVE_DECL_SNPRINTF 1
11572 cat >>confdefs.h <<_ACEOF
11573 #define HAVE_DECL_SNPRINTF 0
11578 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11579 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11580 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 cat >conftest.$ac_ext <<_ACEOF
11584 #line $LINENO "configure"
11585 #include "confdefs.h"
11586 $ac_includes_default
11587 #ifdef F77_DUMMY_MAIN
11588 # ifdef __cplusplus
11591 int F77_DUMMY_MAIN() { return 1; }
11597 char *p = (char *) vsnprintf;
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606 (eval $ac_compile) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } &&
11610 { ac_try='test -s conftest.$ac_objext'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 ac_cv_have_decl_vsnprintf=yes
11618 echo "$as_me: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 ac_cv_have_decl_vsnprintf=no
11622 rm -f conftest.$ac_objext conftest.$ac_ext
11624 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11625 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11626 if test $ac_cv_have_decl_vsnprintf = yes; then
11628 cat >>confdefs.h <<_ACEOF
11629 #define HAVE_DECL_VSNPRINTF 1
11634 cat >>confdefs.h <<_ACEOF
11635 #define HAVE_DECL_VSNPRINTF 0
11644 # do this one the hard way in case isinf() is a macro
11645 echo "$as_me:$LINENO: checking for isinf" >&5
11646 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11647 if test "${ac_cv_func_isinf+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 cat >conftest.$ac_ext <<_ACEOF
11651 #line $LINENO "configure"
11652 #include "confdefs.h"
11655 #ifdef F77_DUMMY_MAIN
11656 # ifdef __cplusplus
11659 int F77_DUMMY_MAIN() { return 1; }
11664 double x = 0.0; int res = isinf(x);
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11671 (eval $ac_link) 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -s conftest$ac_exeext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_func_isinf=yes
11683 echo "$as_me: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11685 ac_cv_func_isinf=no
11687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11689 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11690 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11692 if test $ac_cv_func_isinf = yes ; then
11694 cat >>confdefs.h <<\_ACEOF
11695 #define HAVE_ISINF 1
11699 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11700 # Look for a way to implement a substitute for isinf()
11705 for ac_func in fpclass fp_class fp_class_d class
11707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11708 echo "$as_me:$LINENO: checking for $ac_func" >&5
11709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11710 if eval "test \"\${$as_ac_var+set}\" = set"; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 /* System header to define __stub macros and hopefully few prototypes,
11717 which can conflict with char $ac_func (); below. */
11718 #include <assert.h>
11719 /* Override any gcc2 internal prototype to avoid an error. */
11723 /* We use char because int might match the return type of a gcc2
11724 builtin and then its argument prototype would still apply. */
11728 #ifdef F77_DUMMY_MAIN
11729 # ifdef __cplusplus
11732 int F77_DUMMY_MAIN() { return 1; }
11737 /* The GNU C library defines this for functions which it implements
11738 to always fail with ENOSYS. Some functions are actually named
11739 something starting with __ and the normal name is an alias. */
11740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752 (eval $ac_link) 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } &&
11756 { ac_try='test -s conftest$ac_exeext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 eval "$as_ac_var=yes"
11764 echo "$as_me: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11766 eval "$as_ac_var=no"
11768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11772 if test `eval echo '${'$as_ac_var'}'` = yes; then
11773 cat >>confdefs.h <<_ACEOF
11774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11795 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strtol strtoul unsetenv
11797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11798 echo "$as_me:$LINENO: checking for $ac_func" >&5
11799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11800 if eval "test \"\${$as_ac_var+set}\" = set"; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11805 #include "confdefs.h"
11806 /* System header to define __stub macros and hopefully few prototypes,
11807 which can conflict with char $ac_func (); below. */
11808 #include <assert.h>
11809 /* Override any gcc2 internal prototype to avoid an error. */
11813 /* We use char because int might match the return type of a gcc2
11814 builtin and then its argument prototype would still apply. */
11818 #ifdef F77_DUMMY_MAIN
11819 # ifdef __cplusplus
11822 int F77_DUMMY_MAIN() { return 1; }
11827 /* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11840 rm -f conftest.$ac_objext conftest$ac_exeext
11841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11842 (eval $ac_link) 2>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try='test -s conftest$ac_exeext'
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; }; then
11852 eval "$as_ac_var=yes"
11854 echo "$as_me: failed program was:" >&5
11855 cat conftest.$ac_ext >&5
11856 eval "$as_ac_var=no"
11858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11862 if test `eval echo '${'$as_ac_var'}'` = yes; then
11863 cat >>confdefs.h <<_ACEOF
11864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11868 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11874 # system's version of getaddrinfo(), if any, may be used only if we found
11875 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
11876 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11878 for ac_func in getaddrinfo
11880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11881 echo "$as_me:$LINENO: checking for $ac_func" >&5
11882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11883 if eval "test \"\${$as_ac_var+set}\" = set"; then
11884 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 cat >conftest.$ac_ext <<_ACEOF
11887 #line $LINENO "configure"
11888 #include "confdefs.h"
11889 /* System header to define __stub macros and hopefully few prototypes,
11890 which can conflict with char $ac_func (); below. */
11891 #include <assert.h>
11892 /* Override any gcc2 internal prototype to avoid an error. */
11896 /* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11901 #ifdef F77_DUMMY_MAIN
11902 # ifdef __cplusplus
11905 int F77_DUMMY_MAIN() { return 1; }
11910 /* The GNU C library defines this for functions which it implements
11911 to always fail with ENOSYS. Some functions are actually named
11912 something starting with __ and the normal name is an alias. */
11913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925 (eval $ac_link) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -s conftest$ac_exeext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 eval "$as_ac_var=yes"
11937 echo "$as_me: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11939 eval "$as_ac_var=no"
11941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11945 if test `eval echo '${'$as_ac_var'}'` = yes; then
11946 cat >>confdefs.h <<_ACEOF
11947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11951 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
11957 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11960 # similarly, use system's getopt_long() only if system provides struct option.
11961 if test x"$ac_cv_type_struct_option" = xyes ; then
11963 for ac_func in getopt_long
11965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 echo "$as_me:$LINENO: checking for $ac_func" >&5
11967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11968 if eval "test \"\${$as_ac_var+set}\" = set"; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 cat >conftest.$ac_ext <<_ACEOF
11972 #line $LINENO "configure"
11973 #include "confdefs.h"
11974 /* System header to define __stub macros and hopefully few prototypes,
11975 which can conflict with char $ac_func (); below. */
11976 #include <assert.h>
11977 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11986 #ifdef F77_DUMMY_MAIN
11987 # ifdef __cplusplus
11990 int F77_DUMMY_MAIN() { return 1; }
11995 /* The GNU C library defines this for functions which it implements
11996 to always fail with ENOSYS. Some functions are actually named
11997 something starting with __ and the normal name is an alias. */
11998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 eval "$as_ac_var=yes"
12022 echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 eval "$as_ac_var=no"
12026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030 if test `eval echo '${'$as_ac_var'}'` = yes; then
12031 cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12036 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12042 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12045 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12046 # We override the previous test that said fseeko/ftello didn't exist
12047 # OS tests are also done in include/c.h and port/fseeko.c
12048 case $host_os in bsdi*|netbsd*)
12049 ac_cv_func_fseeko=yes
12052 # Solaris has a very slow qsort in certain cases, so we replace it.
12053 case $host_os in solaris*)
12054 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12058 case $host_os in mingw*)
12059 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12060 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12061 LIBOBJS="$LIBOBJS kill.$ac_objext"
12062 LIBOBJS="$LIBOBJS open.$ac_objext"
12063 LIBOBJS="$LIBOBJS rand.$ac_objext"
12065 cat >>confdefs.h <<\_ACEOF
12066 #define HAVE_SYMLINK 1
12072 if test "$with_readline" = yes; then
12073 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12074 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12075 cat >conftest.$ac_ext <<_ACEOF
12076 #line $LINENO "configure"
12077 #include "confdefs.h"
12079 #ifdef HAVE_READLINE_READLINE_H
12080 # include <readline/readline.h>
12081 #elif defined(HAVE_READLINE_H)
12082 # include <readline.h>
12085 #ifdef F77_DUMMY_MAIN
12086 # ifdef __cplusplus
12089 int F77_DUMMY_MAIN() { return 1; }
12094 rl_completion_append_character = 'x';
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12101 (eval $ac_link) 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 echo "$as_me:$LINENO: result: yes" >&5
12112 echo "${ECHO_T}yes" >&6
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12119 echo "$as_me: failed program was:" >&5
12120 cat conftest.$ac_ext >&5
12121 echo "$as_me:$LINENO: result: no" >&5
12122 echo "${ECHO_T}no" >&6
12124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12127 for ac_func in rl_completion_matches rl_filename_completion_function
12129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12130 echo "$as_me:$LINENO: checking for $ac_func" >&5
12131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12132 if eval "test \"\${$as_ac_var+set}\" = set"; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 #include "confdefs.h"
12138 /* System header to define __stub macros and hopefully few prototypes,
12139 which can conflict with char $ac_func (); below. */
12140 #include <assert.h>
12141 /* Override any gcc2 internal prototype to avoid an error. */
12145 /* We use char because int might match the return type of a gcc2
12146 builtin and then its argument prototype would still apply. */
12150 #ifdef F77_DUMMY_MAIN
12151 # ifdef __cplusplus
12154 int F77_DUMMY_MAIN() { return 1; }
12159 /* The GNU C library defines this for functions which it implements
12160 to always fail with ENOSYS. Some functions are actually named
12161 something starting with __ and the normal name is an alias. */
12162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 eval "$as_ac_var=yes"
12186 echo "$as_me: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12188 eval "$as_ac_var=no"
12190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12194 if test `eval echo '${'$as_ac_var'}'` = yes; then
12195 cat >>confdefs.h <<_ACEOF
12196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12203 for ac_func in replace_history_entry
12205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12206 echo "$as_me:$LINENO: checking for $ac_func" >&5
12207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12208 if eval "test \"\${$as_ac_var+set}\" = set"; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line $LINENO "configure"
12213 #include "confdefs.h"
12214 /* System header to define __stub macros and hopefully few prototypes,
12215 which can conflict with char $ac_func (); below. */
12216 #include <assert.h>
12217 /* Override any gcc2 internal prototype to avoid an error. */
12221 /* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12226 #ifdef F77_DUMMY_MAIN
12227 # ifdef __cplusplus
12230 int F77_DUMMY_MAIN() { return 1; }
12235 /* The GNU C library defines this for functions which it implements
12236 to always fail with ENOSYS. Some functions are actually named
12237 something starting with __ and the normal name is an alias. */
12238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250 (eval $ac_link) 2>&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try='test -s conftest$ac_exeext'
12255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 eval "$as_ac_var=yes"
12262 echo "$as_me: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 eval "$as_ac_var=no"
12266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12270 if test `eval echo '${'$as_ac_var'}'` = yes; then
12271 cat >>confdefs.h <<_ACEOF
12272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12281 echo "$as_me:$LINENO: checking for finite" >&5
12282 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12283 cat >conftest.$ac_ext <<_ACEOF
12284 #line $LINENO "configure"
12285 #include "confdefs.h"
12287 #ifdef F77_DUMMY_MAIN
12288 # ifdef __cplusplus
12291 int F77_DUMMY_MAIN() { return 1; }
12296 int dummy=finite(1.0);
12301 rm -f conftest.$ac_objext conftest$ac_exeext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303 (eval $ac_link) 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -s conftest$ac_exeext'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; }; then
12314 cat >>confdefs.h <<\_ACEOF
12315 #define HAVE_FINITE 1
12318 echo "$as_me:$LINENO: result: yes" >&5
12319 echo "${ECHO_T}yes" >&6
12321 echo "$as_me: failed program was:" >&5
12322 cat conftest.$ac_ext >&5
12323 echo "$as_me:$LINENO: result: no" >&5
12324 echo "${ECHO_T}no" >&6
12326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12328 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12329 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line $LINENO "configure"
12332 #include "confdefs.h"
12333 #include <setjmp.h>
12334 #ifdef F77_DUMMY_MAIN
12335 # ifdef __cplusplus
12338 int F77_DUMMY_MAIN() { return 1; }
12343 sigjmp_buf x; sigsetjmp(x, 1);
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12350 (eval $ac_link) 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12361 cat >>confdefs.h <<\_ACEOF
12362 #define HAVE_SIGSETJMP 1
12365 echo "$as_me:$LINENO: result: yes" >&5
12366 echo "${ECHO_T}yes" >&6
12368 echo "$as_me: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 echo "$as_me:$LINENO: result: no" >&5
12371 echo "${ECHO_T}no" >&6
12373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12375 echo "$as_me:$LINENO: checking for syslog" >&5
12376 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12377 if test "${ac_cv_func_syslog+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 cat >conftest.$ac_ext <<_ACEOF
12381 #line $LINENO "configure"
12382 #include "confdefs.h"
12383 /* System header to define __stub macros and hopefully few prototypes,
12384 which can conflict with char syslog (); below. */
12385 #include <assert.h>
12386 /* Override any gcc2 internal prototype to avoid an error. */
12390 /* We use char because int might match the return type of a gcc2
12391 builtin and then its argument prototype would still apply. */
12395 #ifdef F77_DUMMY_MAIN
12396 # ifdef __cplusplus
12399 int F77_DUMMY_MAIN() { return 1; }
12404 /* The GNU C library defines this for functions which it implements
12405 to always fail with ENOSYS. Some functions are actually named
12406 something starting with __ and the normal name is an alias. */
12407 #if defined (__stub_syslog) || defined (__stub___syslog)
12417 rm -f conftest.$ac_objext conftest$ac_exeext
12418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419 (eval $ac_link) 2>&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_cv_func_syslog=yes
12431 echo "$as_me: failed program was:" >&5
12432 cat conftest.$ac_ext >&5
12433 ac_cv_func_syslog=no
12435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12437 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12438 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12439 if test $ac_cv_func_syslog = yes; then
12440 if test "${ac_cv_header_syslog_h+set}" = set; then
12441 echo "$as_me:$LINENO: checking for syslog.h" >&5
12442 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12443 if test "${ac_cv_header_syslog_h+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12447 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12449 # Is the header compilable?
12450 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12451 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12452 cat >conftest.$ac_ext <<_ACEOF
12453 #line $LINENO "configure"
12454 #include "confdefs.h"
12455 $ac_includes_default
12456 #include <syslog.h>
12458 rm -f conftest.$ac_objext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460 (eval $ac_compile) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -s conftest.$ac_objext'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12470 ac_header_compiler=yes
12472 echo "$as_me: failed program was:" >&5
12473 cat conftest.$ac_ext >&5
12474 ac_header_compiler=no
12476 rm -f conftest.$ac_objext conftest.$ac_ext
12477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12478 echo "${ECHO_T}$ac_header_compiler" >&6
12480 # Is the header present?
12481 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12482 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12483 cat >conftest.$ac_ext <<_ACEOF
12484 #line $LINENO "configure"
12485 #include "confdefs.h"
12486 #include <syslog.h>
12488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12491 egrep -v '^ *\+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } >/dev/null; then
12496 if test -s conftest.err; then
12497 ac_cpp_err=$ac_c_preproc_warn_flag
12504 if test -z "$ac_cpp_err"; then
12505 ac_header_preproc=yes
12507 echo "$as_me: failed program was:" >&5
12508 cat conftest.$ac_ext >&5
12509 ac_header_preproc=no
12511 rm -f conftest.err conftest.$ac_ext
12512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12513 echo "${ECHO_T}$ac_header_preproc" >&6
12515 # So? What about this header?
12516 case $ac_header_compiler:$ac_header_preproc in
12518 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12519 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12520 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12521 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12523 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12524 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12526 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12528 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12530 echo "$as_me:$LINENO: checking for syslog.h" >&5
12531 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12532 if test "${ac_cv_header_syslog_h+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 ac_cv_header_syslog_h=$ac_header_preproc
12537 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12538 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12541 if test $ac_cv_header_syslog_h = yes; then
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_SYSLOG 1
12553 echo "$as_me:$LINENO: checking for optreset" >&5
12554 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12555 if test "${pgac_cv_var_int_optreset+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12560 #include "confdefs.h"
12561 #include <unistd.h>
12562 #ifdef F77_DUMMY_MAIN
12563 # ifdef __cplusplus
12566 int F77_DUMMY_MAIN() { return 1; }
12571 extern int optreset; optreset = 1;
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12578 (eval $ac_link) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -s conftest$ac_exeext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 pgac_cv_var_int_optreset=yes
12590 echo "$as_me: failed program was:" >&5
12591 cat conftest.$ac_ext >&5
12592 pgac_cv_var_int_optreset=no
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12596 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12597 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12598 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12600 cat >>confdefs.h <<\_ACEOF
12601 #define HAVE_INT_OPTRESET 1
12608 for ac_func in strtoll strtoq
12610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12611 echo "$as_me:$LINENO: checking for $ac_func" >&5
12612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12613 if eval "test \"\${$as_ac_var+set}\" = set"; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 cat >conftest.$ac_ext <<_ACEOF
12617 #line $LINENO "configure"
12618 #include "confdefs.h"
12619 /* System header to define __stub macros and hopefully few prototypes,
12620 which can conflict with char $ac_func (); below. */
12621 #include <assert.h>
12622 /* Override any gcc2 internal prototype to avoid an error. */
12626 /* We use char because int might match the return type of a gcc2
12627 builtin and then its argument prototype would still apply. */
12631 #ifdef F77_DUMMY_MAIN
12632 # ifdef __cplusplus
12635 int F77_DUMMY_MAIN() { return 1; }
12640 /* The GNU C library defines this for functions which it implements
12641 to always fail with ENOSYS. Some functions are actually named
12642 something starting with __ and the normal name is an alias. */
12643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12653 rm -f conftest.$ac_objext conftest$ac_exeext
12654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12655 (eval $ac_link) 2>&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
12659 { ac_try='test -s conftest$ac_exeext'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 eval "$as_ac_var=yes"
12667 echo "$as_me: failed program was:" >&5
12668 cat conftest.$ac_ext >&5
12669 eval "$as_ac_var=no"
12671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12674 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12675 if test `eval echo '${'$as_ac_var'}'` = yes; then
12676 cat >>confdefs.h <<_ACEOF
12677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12685 for ac_func in strtoull strtouq
12687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688 echo "$as_me:$LINENO: checking for $ac_func" >&5
12689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12690 if eval "test \"\${$as_ac_var+set}\" = set"; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12695 #include "confdefs.h"
12696 /* System header to define __stub macros and hopefully few prototypes,
12697 which can conflict with char $ac_func (); below. */
12698 #include <assert.h>
12699 /* Override any gcc2 internal prototype to avoid an error. */
12703 /* We use char because int might match the return type of a gcc2
12704 builtin and then its argument prototype would still apply. */
12708 #ifdef F77_DUMMY_MAIN
12709 # ifdef __cplusplus
12712 int F77_DUMMY_MAIN() { return 1; }
12717 /* The GNU C library defines this for functions which it implements
12718 to always fail with ENOSYS. Some functions are actually named
12719 something starting with __ and the normal name is an alias. */
12720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12730 rm -f conftest.$ac_objext conftest$ac_exeext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12732 (eval $ac_link) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -s conftest$ac_exeext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 eval "$as_ac_var=yes"
12744 echo "$as_me: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 eval "$as_ac_var=no"
12748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12752 if test `eval echo '${'$as_ac_var'}'` = yes; then
12753 cat >>confdefs.h <<_ACEOF
12754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12761 # Check for one of atexit() or on_exit()
12763 for ac_func in atexit
12765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12766 echo "$as_me:$LINENO: checking for $ac_func" >&5
12767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12768 if eval "test \"\${$as_ac_var+set}\" = set"; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 cat >conftest.$ac_ext <<_ACEOF
12772 #line $LINENO "configure"
12773 #include "confdefs.h"
12774 /* System header to define __stub macros and hopefully few prototypes,
12775 which can conflict with char $ac_func (); below. */
12776 #include <assert.h>
12777 /* Override any gcc2 internal prototype to avoid an error. */
12781 /* We use char because int might match the return type of a gcc2
12782 builtin and then its argument prototype would still apply. */
12786 #ifdef F77_DUMMY_MAIN
12787 # ifdef __cplusplus
12790 int F77_DUMMY_MAIN() { return 1; }
12795 /* The GNU C library defines this for functions which it implements
12796 to always fail with ENOSYS. Some functions are actually named
12797 something starting with __ and the normal name is an alias. */
12798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12808 rm -f conftest.$ac_objext conftest$ac_exeext
12809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12810 (eval $ac_link) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -s conftest$ac_exeext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12820 eval "$as_ac_var=yes"
12822 echo "$as_me: failed program was:" >&5
12823 cat conftest.$ac_ext >&5
12824 eval "$as_ac_var=no"
12826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12830 if test `eval echo '${'$as_ac_var'}'` = yes; then
12831 cat >>confdefs.h <<_ACEOF
12832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12837 for ac_func in on_exit
12839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12840 echo "$as_me:$LINENO: checking for $ac_func" >&5
12841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12842 if eval "test \"\${$as_ac_var+set}\" = set"; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 cat >conftest.$ac_ext <<_ACEOF
12846 #line $LINENO "configure"
12847 #include "confdefs.h"
12848 /* System header to define __stub macros and hopefully few prototypes,
12849 which can conflict with char $ac_func (); below. */
12850 #include <assert.h>
12851 /* Override any gcc2 internal prototype to avoid an error. */
12855 /* We use char because int might match the return type of a gcc2
12856 builtin and then its argument prototype would still apply. */
12860 #ifdef F77_DUMMY_MAIN
12861 # ifdef __cplusplus
12864 int F77_DUMMY_MAIN() { return 1; }
12869 /* The GNU C library defines this for functions which it implements
12870 to always fail with ENOSYS. Some functions are actually named
12871 something starting with __ and the normal name is an alias. */
12872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 eval "$as_ac_var=yes"
12896 echo "$as_me: failed program was:" >&5
12897 cat conftest.$ac_ext >&5
12898 eval "$as_ac_var=no"
12900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12904 if test `eval echo '${'$as_ac_var'}'` = yes; then
12905 cat >>confdefs.h <<_ACEOF
12906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12910 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
12911 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
12912 { (exit 1); exit 1; }; }
12920 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12921 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12922 if test "${ac_cv_sys_largefile_source+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12926 ac_cv_sys_largefile_source=no
12927 cat >conftest.$ac_ext <<_ACEOF
12928 #line $LINENO "configure"
12929 #include "confdefs.h"
12931 #ifdef F77_DUMMY_MAIN
12932 # ifdef __cplusplus
12935 int F77_DUMMY_MAIN() { return 1; }
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12947 (eval $ac_compile) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -s conftest.$ac_objext'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12959 echo "$as_me: failed program was:" >&5
12960 cat conftest.$ac_ext >&5
12962 rm -f conftest.$ac_objext conftest.$ac_ext
12963 cat >conftest.$ac_ext <<_ACEOF
12964 #line $LINENO "configure"
12965 #include "confdefs.h"
12966 #define _LARGEFILE_SOURCE 1
12968 #ifdef F77_DUMMY_MAIN
12969 # ifdef __cplusplus
12972 int F77_DUMMY_MAIN() { return 1; }
12982 rm -f conftest.$ac_objext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984 (eval $ac_compile) 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -s conftest.$ac_objext'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 ac_cv_sys_largefile_source=1; break
12996 echo "$as_me: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 rm -f conftest.$ac_objext conftest.$ac_ext
13003 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13004 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13005 if test "$ac_cv_sys_largefile_source" != no; then
13007 cat >>confdefs.h <<_ACEOF
13008 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13014 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13015 # in glibc 2.1.3, but that breaks too many other things.
13016 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13017 echo "$as_me:$LINENO: checking for fseeko" >&5
13018 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13019 if test "${ac_cv_func_fseeko+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 cat >conftest.$ac_ext <<_ACEOF
13023 #line $LINENO "configure"
13024 #include "confdefs.h"
13026 #ifdef F77_DUMMY_MAIN
13027 # ifdef __cplusplus
13030 int F77_DUMMY_MAIN() { return 1; }
13035 return fseeko && fseeko (stdin, 0, 0);
13040 rm -f conftest.$ac_objext conftest$ac_exeext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13042 (eval $ac_link) 2>&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -s conftest$ac_exeext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_func_fseeko=yes
13054 echo "$as_me: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13056 ac_cv_func_fseeko=no
13058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13060 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13061 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13062 if test $ac_cv_func_fseeko = yes; then
13064 cat >>confdefs.h <<\_ACEOF
13065 #define HAVE_FSEEKO 1
13074 # For each platform, we need to know about any special compile and link
13075 # libraries, and whether the normal C function names are thread-safe.
13076 # See the comment at the top of src/port/thread.c for more information.
13078 if test "$enable_thread_safety" = yes; then
13084 ac_cpp='$CPP $CPPFLAGS'
13085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13091 # We used to check for pthread.h first, but this fails if pthread.h
13092 # requires special compiler flags (e.g. on True64 or Sequent).
13093 # It gets checked for in the link test anyway.
13095 # First of all, check if the user has set any of the PTHREAD_LIBS,
13096 # etcetera environment variables, and if threads linking works using
13098 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13099 save_CFLAGS="$CFLAGS"
13100 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13102 LIBS="$PTHREAD_LIBS $LIBS"
13103 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13104 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
13105 cat >conftest.$ac_ext <<_ACEOF
13106 #line $LINENO "configure"
13107 #include "confdefs.h"
13109 /* Override any gcc2 internal prototype to avoid an error. */
13113 /* We use char because int might match the return type of a gcc2
13114 builtin and then its argument prototype would still apply. */
13115 char pthread_join ();
13116 #ifdef F77_DUMMY_MAIN
13117 # ifdef __cplusplus
13120 int F77_DUMMY_MAIN() { return 1; }
13130 rm -f conftest.$ac_objext conftest$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132 (eval $ac_link) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -s conftest$ac_exeext'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; }; then
13144 echo "$as_me: failed program was:" >&5
13145 cat conftest.$ac_ext >&5
13147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13148 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13149 echo "${ECHO_T}$acx_pthread_ok" >&6
13150 if test x"$acx_pthread_ok" = xno; then
13155 CFLAGS="$save_CFLAGS"
13158 # We must check for the threads library under a number of different
13159 # names; the ordering is very important because some systems
13160 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13161 # libraries is broken (non-POSIX).
13163 # Create a list of thread flags to try. Items starting with a "-" are
13164 # C compiler flags, and other items are library names, except for "none"
13165 # which indicates that we try without any flags at all, and "pthread-config"
13166 # which is a program returning the flags for the Pth emulation library.
13168 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13170 # The ordering *is* (sometimes) important. Some notes on the
13171 # individual items follow:
13173 # pthreads: AIX (must check this before -lpthread)
13174 # none: in case threads are in libc; should be tried before -Kthread and
13175 # other compiler flags to prevent continual compiler warnings
13176 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13177 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13178 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13179 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
13180 # -pthreads: Solaris/gcc
13181 # -mthreads: Mingw32/gcc, Lynx/gcc
13182 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13183 # doesn't hurt to check since this sometimes defines pthreads too;
13184 # also defines -D_REENTRANT)
13185 # pthread: Linux, etcetera
13186 # --thread-safe: KAI C++
13187 # pthread-config: use pthread-config program (for GNU Pth library)
13189 case "${host_cpu}-${host_os}" in
13192 # On Solaris (at least, for some versions), libc contains stubbed
13193 # (non-functional) versions of the pthreads routines, so link-based
13194 # tests will erroneously succeed. (We need to link with -pthread or
13195 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
13196 # a function called by this macro, so we could check for that, but
13197 # who knows whether they'll stub that too in a future libc.) So,
13198 # we'll just look for -pthreads and -lpthread first:
13200 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
13204 if test x"$acx_pthread_ok" = xno; then
13205 for flag in $acx_pthread_flags; do
13209 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
13210 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
13214 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
13215 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
13216 tryPTHREAD_CFLAGS="$flag"
13220 # skip this if we already have flags defined, for PostgreSQL
13221 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
13222 # Extract the first word of "pthread-config", so it can be a program name with args.
13223 set dummy pthread-config; ac_word=$2
13224 echo "$as_me:$LINENO: checking for $ac_word" >&5
13225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13226 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 if test -n "$acx_pthread_config"; then
13230 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239 ac_cv_prog_acx_pthread_config="yes"
13240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13246 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
13249 acx_pthread_config=$ac_cv_prog_acx_pthread_config
13250 if test -n "$acx_pthread_config"; then
13251 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
13252 echo "${ECHO_T}$acx_pthread_config" >&6
13254 echo "$as_me:$LINENO: result: no" >&5
13255 echo "${ECHO_T}no" >&6
13258 if test x"$acx_pthread_config" = xno; then continue; fi
13259 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
13260 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
13264 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
13265 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
13266 tryPTHREAD_LIBS="-l$flag"
13271 save_CFLAGS="$CFLAGS"
13272 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
13273 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13275 # Check for various functions. We must include pthread.h,
13276 # since some functions may be macros. (On the Sequent, we
13277 # need a special flag -Kthread to make this header compile.)
13278 # We check for pthread_join because it is in -lpthread on IRIX
13279 # while pthread_create is in libc. We check for pthread_attr_init
13280 # due to DEC craziness with -lpthreads. We check for
13281 # pthread_cleanup_push because it is one of the few pthread
13282 # functions on Solaris that doesn't have a non-functional libc stub.
13283 # We try pthread_create on general principles.
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 #include "confdefs.h"
13287 #include <pthread.h>
13288 #ifdef F77_DUMMY_MAIN
13289 # ifdef __cplusplus
13292 int F77_DUMMY_MAIN() { return 1; }
13297 pthread_t th; pthread_join(th, 0);
13298 pthread_attr_init(0); pthread_cleanup_push(0, 0);
13299 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13306 (eval $ac_link) 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
13310 { ac_try='test -s conftest$ac_exeext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13318 echo "$as_me: failed program was:" >&5
13319 cat conftest.$ac_ext >&5
13321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13324 CFLAGS="$save_CFLAGS"
13326 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
13327 echo "${ECHO_T}$acx_pthread_ok" >&6
13328 if test "x$acx_pthread_ok" = xyes; then
13329 # we continue with more flags because Linux needs -lpthread
13330 # for libpq builds on PostgreSQL. The test above only
13331 # tests for building binaries, not shared libraries.
13332 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
13333 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
13339 # Various other checks:
13340 if test "x$acx_pthread_ok" = xyes; then
13342 LIBS="$PTHREAD_LIBS $LIBS"
13343 save_CFLAGS="$CFLAGS"
13344 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13346 # Detect AIX lossage: threads are created detached by default
13347 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
13348 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
13349 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
13350 cat >conftest.$ac_ext <<_ACEOF
13351 #line $LINENO "configure"
13352 #include "confdefs.h"
13353 #include <pthread.h>
13354 #ifdef F77_DUMMY_MAIN
13355 # ifdef __cplusplus
13358 int F77_DUMMY_MAIN() { return 1; }
13363 int attr=PTHREAD_CREATE_JOINABLE;
13368 rm -f conftest.$ac_objext conftest$ac_exeext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13370 (eval $ac_link) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -s conftest$ac_exeext'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; }; then
13380 ok=PTHREAD_CREATE_JOINABLE
13382 echo "$as_me: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13387 if test x"$ok" = xunknown; then
13388 cat >conftest.$ac_ext <<_ACEOF
13389 #line $LINENO "configure"
13390 #include "confdefs.h"
13391 #include <pthread.h>
13392 #ifdef F77_DUMMY_MAIN
13393 # ifdef __cplusplus
13396 int F77_DUMMY_MAIN() { return 1; }
13401 int attr=PTHREAD_CREATE_UNDETACHED;
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408 (eval $ac_link) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } &&
13412 { ac_try='test -s conftest$ac_exeext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ok=PTHREAD_CREATE_UNDETACHED
13420 echo "$as_me: failed program was:" >&5
13421 cat conftest.$ac_ext >&5
13424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13426 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
13428 cat >>confdefs.h <<\_ACEOF
13429 #define PTHREAD_CREATE_JOINABLE $ok
13433 echo "$as_me:$LINENO: result: ${ok}" >&5
13434 echo "${ECHO_T}${ok}" >&6
13435 if test x"$ok" = xunknown; then
13436 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
13437 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
13440 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
13441 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
13443 # We always add these in PostgreSQL
13444 # case "${host_cpu}-${host_os}" in
13445 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
13446 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
13448 echo "$as_me:$LINENO: result: ${flag}" >&5
13449 echo "${ECHO_T}${flag}" >&6
13450 if test "x$flag" != xno; then
13451 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
13455 CFLAGS="$save_CFLAGS"
13457 # More AIX lossage: must compile with cc_r
13458 # Extract the first word of "cc_r", so it can be a program name with args.
13459 set dummy cc_r; ac_word=$2
13460 echo "$as_me:$LINENO: checking for $ac_word" >&5
13461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13462 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
13463 echo $ECHO_N "(cached) $ECHO_C" >&6
13465 if test -n "$PTHREAD_CC"; then
13466 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13475 ac_cv_prog_PTHREAD_CC="cc_r"
13476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13482 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
13485 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
13486 if test -n "$PTHREAD_CC"; then
13487 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
13488 echo "${ECHO_T}$PTHREAD_CC" >&6
13490 echo "$as_me:$LINENO: result: no" >&5
13491 echo "${ECHO_T}no" >&6
13502 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
13503 if test x"$acx_pthread_ok" = xyes; then
13505 cat >>confdefs.h <<\_ACEOF
13506 #define HAVE_PTHREAD 1
13515 ac_cpp='$CPP $CPPFLAGS'
13516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13522 # Some platforms use these, so just defineed them. They can't hurt if they
13523 # are not supported.
13524 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
13527 # At this point, we don't want to muck with the compiler name for threading.
13528 # Let's see who fails, perhaps AIX. 2004-04-23
13529 if test "$PTHREAD_CC" != "$CC"; then
13530 { { echo "$as_me:$LINENO: error:
13531 PostgreSQL does not support platforms that require a special
13532 compiler binary for thread-safety.
13534 echo "$as_me: error:
13535 PostgreSQL does not support platforms that require a special
13536 compiler binary for thread-safety.
13538 { (exit 1); exit 1; }; }
13541 if test "$THREAD_SUPPORT" = no; then
13542 { { echo "$as_me:$LINENO: error:
13543 Cannot enable threads on your platform.
13544 Your platform is known to not support thread-safe programs.
13545 For details, compile and run src/bin/pg_thread_test.
13547 echo "$as_me: error:
13548 Cannot enable threads on your platform.
13549 Your platform is known to not support thread-safe programs.
13550 For details, compile and run src/bin/pg_thread_test.
13552 { (exit 1); exit 1; }; }
13555 if test "${ac_cv_header_pthread_h+set}" = set; then
13556 echo "$as_me:$LINENO: checking for pthread.h" >&5
13557 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13558 if test "${ac_cv_header_pthread_h+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13562 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13564 # Is the header compilable?
13565 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13566 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13567 cat >conftest.$ac_ext <<_ACEOF
13568 #line $LINENO "configure"
13569 #include "confdefs.h"
13570 $ac_includes_default
13571 #include <pthread.h>
13573 rm -f conftest.$ac_objext
13574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13575 (eval $ac_compile) 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
13579 { ac_try='test -s conftest.$ac_objext'
13580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581 (eval $ac_try) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; }; then
13585 ac_header_compiler=yes
13587 echo "$as_me: failed program was:" >&5
13588 cat conftest.$ac_ext >&5
13589 ac_header_compiler=no
13591 rm -f conftest.$ac_objext conftest.$ac_ext
13592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13593 echo "${ECHO_T}$ac_header_compiler" >&6
13595 # Is the header present?
13596 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13597 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13598 cat >conftest.$ac_ext <<_ACEOF
13599 #line $LINENO "configure"
13600 #include "confdefs.h"
13601 #include <pthread.h>
13603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13606 egrep -v '^ *\+' conftest.er1 >conftest.err
13608 cat conftest.err >&5
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); } >/dev/null; then
13611 if test -s conftest.err; then
13612 ac_cpp_err=$ac_c_preproc_warn_flag
13619 if test -z "$ac_cpp_err"; then
13620 ac_header_preproc=yes
13622 echo "$as_me: failed program was:" >&5
13623 cat conftest.$ac_ext >&5
13624 ac_header_preproc=no
13626 rm -f conftest.err conftest.$ac_ext
13627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13628 echo "${ECHO_T}$ac_header_preproc" >&6
13630 # So? What about this header?
13631 case $ac_header_compiler:$ac_header_preproc in
13633 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13634 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13635 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13636 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13638 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13639 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13641 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13642 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13643 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13645 echo "$as_me:$LINENO: checking for pthread.h" >&5
13646 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13647 if test "${ac_cv_header_pthread_h+set}" = set; then
13648 echo $ECHO_N "(cached) $ECHO_C" >&6
13650 ac_cv_header_pthread_h=$ac_header_preproc
13652 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13653 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13656 if test $ac_cv_header_pthread_h = yes; then
13659 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
13660 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
13661 { (exit 1); exit 1; }; }
13666 # Check for *_r functions
13669 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13670 LIBS="$LIBS $PTHREAD_LIBS"
13674 for ac_func in strerror_r getpwuid_r gethostbyname_r
13676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13677 echo "$as_me:$LINENO: checking for $ac_func" >&5
13678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13679 if eval "test \"\${$as_ac_var+set}\" = set"; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 cat >conftest.$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13684 #include "confdefs.h"
13685 /* System header to define __stub macros and hopefully few prototypes,
13686 which can conflict with char $ac_func (); below. */
13687 #include <assert.h>
13688 /* Override any gcc2 internal prototype to avoid an error. */
13692 /* We use char because int might match the return type of a gcc2
13693 builtin and then its argument prototype would still apply. */
13697 #ifdef F77_DUMMY_MAIN
13698 # ifdef __cplusplus
13701 int F77_DUMMY_MAIN() { return 1; }
13706 /* The GNU C library defines this for functions which it implements
13707 to always fail with ENOSYS. Some functions are actually named
13708 something starting with __ and the normal name is an alias. */
13709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13719 rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721 (eval $ac_link) 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -s conftest$ac_exeext'
13726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 eval "$as_ac_var=yes"
13733 echo "$as_me: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13735 eval "$as_ac_var=no"
13737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13741 if test `eval echo '${'$as_ac_var'}'` = yes; then
13742 cat >>confdefs.h <<_ACEOF
13743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13750 # Do test here with the proper thread flags
13751 echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
13752 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
13753 if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13756 cat >conftest.$ac_ext <<_ACEOF
13757 #line $LINENO "configure"
13758 #include "confdefs.h"
13759 #include <sys/types.h>
13761 #ifdef F77_DUMMY_MAIN
13762 # ifdef __cplusplus
13765 int F77_DUMMY_MAIN() { return 1; }
13771 struct passwd *space;
13774 struct passwd **result;
13775 getpwuid_r(uid, space, buf, bufsize, result);
13780 rm -f conftest.$ac_objext
13781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13782 (eval $ac_compile) 2>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -s conftest.$ac_objext'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 pgac_func_getpwuid_r_5arg=yes
13794 echo "$as_me: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13796 pgac_func_getpwuid_r_5arg=no
13798 rm -f conftest.$ac_objext conftest.$ac_ext
13800 echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
13801 echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
13802 if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
13804 cat >>confdefs.h <<\_ACEOF
13805 #define GETPWUID_R_5ARG
13810 echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
13811 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6
13812 if test "${pgac_func_strerror_r_int+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13815 cat >conftest.$ac_ext <<_ACEOF
13816 #line $LINENO "configure"
13817 #include "confdefs.h"
13818 #include <string.h>
13819 #ifdef F77_DUMMY_MAIN
13820 # ifdef __cplusplus
13823 int F77_DUMMY_MAIN() { return 1; }
13828 int strerror_r(int, char *, size_t);
13833 rm -f conftest.$ac_objext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13835 (eval $ac_compile) 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -s conftest.$ac_objext'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 pgac_func_strerror_r_int=yes
13847 echo "$as_me: failed program was:" >&5
13848 cat conftest.$ac_ext >&5
13849 pgac_func_strerror_r_int=no
13851 rm -f conftest.$ac_objext conftest.$ac_ext
13853 echo "$as_me:$LINENO: result: $pgac_func_strerror_r_int" >&5
13854 echo "${ECHO_T}$pgac_func_strerror_r_int" >&6
13855 if test x"$pgac_func_strerror_r_int" = xyes ; then
13857 cat >>confdefs.h <<\_ACEOF
13858 #define STRERROR_R_INT
13868 # do not use values from template file
13877 # This test makes sure that run tests work at all. Sometimes a shared
13878 # library is found by the linker, but the runtime linker can't find it.
13879 # This check should come after all modifications of compiler or linker
13880 # variables, and before any other run tests.
13881 echo "$as_me:$LINENO: checking test program" >&5
13882 echo $ECHO_N "checking test program... $ECHO_C" >&6
13883 if test "$cross_compiling" = yes; then
13884 echo "$as_me:$LINENO: result: cross-compiling" >&5
13885 echo "${ECHO_T}cross-compiling" >&6
13887 cat >conftest.$ac_ext <<_ACEOF
13888 #line $LINENO "configure"
13889 #include "confdefs.h"
13890 int main() { return 0; }
13892 rm -f conftest$ac_exeext
13893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13894 (eval $ac_link) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 echo "$as_me:$LINENO: result: ok" >&5
13904 echo "${ECHO_T}ok" >&6
13906 echo "$as_me: program exited with status $ac_status" >&5
13907 echo "$as_me: failed program was:" >&5
13908 cat conftest.$ac_ext >&5
13909 ( exit $ac_status )
13910 echo "$as_me:$LINENO: result: failed" >&5
13911 echo "${ECHO_T}failed" >&6
13912 { { echo "$as_me:$LINENO: error:
13913 *** Could not execute a simple test program. This may be a problem
13914 *** related to locating shared libraries. Check the file 'config.log'
13915 *** for the exact reason." >&5
13916 echo "$as_me: error:
13917 *** Could not execute a simple test program. This may be a problem
13918 *** related to locating shared libraries. Check the file 'config.log'
13919 *** for the exact reason." >&2;}
13920 { (exit 1); exit 1; }; }
13922 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13927 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13928 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13929 if test "${pgac_cv_type_long_int_64+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 if test "$cross_compiling" = yes; then
13933 # If cross-compiling, check the size reported by the compiler and
13934 # trust that the arithmetic works.
13935 cat >conftest.$ac_ext <<_ACEOF
13936 #line $LINENO "configure"
13937 #include "confdefs.h"
13939 #ifdef F77_DUMMY_MAIN
13940 # ifdef __cplusplus
13943 int F77_DUMMY_MAIN() { return 1; }
13948 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13955 rm -f conftest.$ac_objext
13956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13957 (eval $ac_compile) 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } &&
13961 { ac_try='test -s conftest.$ac_objext'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 pgac_cv_type_long_int_64=yes
13969 echo "$as_me: failed program was:" >&5
13970 cat conftest.$ac_ext >&5
13971 pgac_cv_type_long_int_64=no
13973 rm -f conftest.$ac_objext conftest.$ac_ext
13975 cat >conftest.$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13977 #include "confdefs.h"
13978 typedef long int int64;
13981 * These are globals to discourage the compiler from folding all the
13982 * arithmetic tests down to compile-time constants.
13984 int64 a = 20000001;
13985 int64 b = 40000005;
13987 int does_int64_work()
13991 if (sizeof(int64) != 8)
13992 return 0; /* definitely not the right size */
13994 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14002 exit(! does_int64_work());
14005 rm -f conftest$ac_exeext
14006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14007 (eval $ac_link) 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 pgac_cv_type_long_int_64=yes
14018 echo "$as_me: program exited with status $ac_status" >&5
14019 echo "$as_me: failed program was:" >&5
14020 cat conftest.$ac_ext >&5
14021 ( exit $ac_status )
14022 pgac_cv_type_long_int_64=no
14024 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14027 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
14028 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
14030 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14031 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14033 cat >>confdefs.h <<\_ACEOF
14034 #define HAVE_LONG_INT_64
14040 if test x"$HAVE_LONG_INT_64" = x"no" ; then
14041 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
14042 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
14043 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 if test "$cross_compiling" = yes; then
14047 # If cross-compiling, check the size reported by the compiler and
14048 # trust that the arithmetic works.
14049 cat >conftest.$ac_ext <<_ACEOF
14050 #line $LINENO "configure"
14051 #include "confdefs.h"
14053 #ifdef F77_DUMMY_MAIN
14054 # ifdef __cplusplus
14057 int F77_DUMMY_MAIN() { return 1; }
14062 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14069 rm -f conftest.$ac_objext
14070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071 (eval $ac_compile) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } &&
14075 { ac_try='test -s conftest.$ac_objext'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; }; then
14081 pgac_cv_type_long_long_int_64=yes
14083 echo "$as_me: failed program was:" >&5
14084 cat conftest.$ac_ext >&5
14085 pgac_cv_type_long_long_int_64=no
14087 rm -f conftest.$ac_objext conftest.$ac_ext
14089 cat >conftest.$ac_ext <<_ACEOF
14090 #line $LINENO "configure"
14091 #include "confdefs.h"
14092 typedef long long int int64;
14095 * These are globals to discourage the compiler from folding all the
14096 * arithmetic tests down to compile-time constants.
14098 int64 a = 20000001;
14099 int64 b = 40000005;
14101 int does_int64_work()
14105 if (sizeof(int64) != 8)
14106 return 0; /* definitely not the right size */
14108 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14116 exit(! does_int64_work());
14119 rm -f conftest$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121 (eval $ac_link) 2>&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 pgac_cv_type_long_long_int_64=yes
14132 echo "$as_me: program exited with status $ac_status" >&5
14133 echo "$as_me: failed program was:" >&5
14134 cat conftest.$ac_ext >&5
14135 ( exit $ac_status )
14136 pgac_cv_type_long_long_int_64=no
14138 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14141 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
14142 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
14144 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14145 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14147 cat >>confdefs.h <<\_ACEOF
14148 #define HAVE_LONG_LONG_INT_64
14157 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
14158 cat >conftest.$ac_ext <<_ACEOF
14159 #line $LINENO "configure"
14160 #include "confdefs.h"
14162 #define INT64CONST(x) x##LL
14163 long long int foo = INT64CONST(0x1234567890123456);
14165 #ifdef F77_DUMMY_MAIN
14166 # ifdef __cplusplus
14169 int F77_DUMMY_MAIN() { return 1; }
14179 rm -f conftest.$ac_objext
14180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14181 (eval $ac_compile) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } &&
14185 { ac_try='test -s conftest.$ac_objext'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; }; then
14192 cat >>confdefs.h <<\_ACEOF
14193 #define HAVE_LL_CONSTANTS 1
14197 echo "$as_me: failed program was:" >&5
14198 cat conftest.$ac_ext >&5
14200 rm -f conftest.$ac_objext conftest.$ac_ext
14204 # If we found "long int" is 64 bits, assume snprintf handles it. If
14205 # we found we need to use "long long int", better check. We cope with
14206 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
14207 # work, fall back to our own snprintf emulation (which we know uses %lld).
14209 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14210 if test $pgac_need_repl_snprintf = no; then
14211 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
14212 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
14213 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 for pgac_format in '%lld' '%qd' '%I64d'; do
14217 if test "$cross_compiling" = yes; then
14218 pgac_cv_snprintf_long_long_int_format=cross; break
14220 cat >conftest.$ac_ext <<_ACEOF
14221 #line $LINENO "configure"
14222 #include "confdefs.h"
14224 typedef long long int int64;
14225 #define INT64_FORMAT "$pgac_format"
14227 int64 a = 20000001;
14228 int64 b = 40000005;
14230 int does_int64_snprintf_work()
14235 if (sizeof(int64) != 8)
14236 return 0; /* doesn't look like the right size */
14239 snprintf(buf, 100, INT64_FORMAT, c);
14240 if (strcmp(buf, "800000140000005") != 0)
14241 return 0; /* either multiply or snprintf is busted */
14245 exit(! does_int64_snprintf_work());
14248 rm -f conftest$ac_exeext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250 (eval $ac_link) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
14261 echo "$as_me: program exited with status $ac_status" >&5
14262 echo "$as_me: failed program was:" >&5
14263 cat conftest.$ac_ext >&5
14265 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14270 LONG_LONG_INT_FORMAT=''
14272 case $pgac_cv_snprintf_long_long_int_format in
14273 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
14274 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
14275 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
14276 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
14277 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
14278 *) echo "$as_me:$LINENO: result: none" >&5
14279 echo "${ECHO_T}none" >&6;;
14281 if test "$LONG_LONG_INT_FORMAT" = ""; then
14282 # Force usage of our own snprintf, since system snprintf is broken
14283 pgac_need_repl_snprintf=yes
14284 LONG_LONG_INT_FORMAT='%lld'
14287 # Here if we previously decided we needed to use our own snprintf
14288 LONG_LONG_INT_FORMAT='%lld'
14290 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
14291 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
14292 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
14294 # Here if we are not using 'long long int' at all
14295 INT64_FORMAT='"%ld"'
14296 UINT64_FORMAT='"%lu"'
14300 cat >>confdefs.h <<_ACEOF
14301 #define INT64_FORMAT $INT64_FORMAT
14306 cat >>confdefs.h <<_ACEOF
14307 #define UINT64_FORMAT $UINT64_FORMAT
14311 if test $pgac_need_repl_snprintf = yes; then
14312 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14315 # Need a #define for the size of Datum (unsigned long)
14316 echo "$as_me:$LINENO: checking for unsigned long" >&5
14317 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
14318 if test "${ac_cv_type_unsigned_long+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 cat >conftest.$ac_ext <<_ACEOF
14322 #line $LINENO "configure"
14323 #include "confdefs.h"
14324 $ac_includes_default
14325 #ifdef F77_DUMMY_MAIN
14326 # ifdef __cplusplus
14329 int F77_DUMMY_MAIN() { return 1; }
14334 if ((unsigned long *) 0)
14336 if (sizeof (unsigned long))
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -s conftest.$ac_objext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ac_cv_type_unsigned_long=yes
14356 echo "$as_me: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14358 ac_cv_type_unsigned_long=no
14360 rm -f conftest.$ac_objext conftest.$ac_ext
14362 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
14363 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
14365 echo "$as_me:$LINENO: checking size of unsigned long" >&5
14366 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
14367 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 if test "$ac_cv_type_unsigned_long" = yes; then
14371 # The cast to unsigned long works around a bug in the HP C Compiler
14372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14374 # This bug is HP SR number 8606223364.
14375 if test "$cross_compiling" = yes; then
14376 # Depending upon the size, compute the lo and hi bounds.
14377 cat >conftest.$ac_ext <<_ACEOF
14378 #line $LINENO "configure"
14379 #include "confdefs.h"
14380 $ac_includes_default
14381 #ifdef F77_DUMMY_MAIN
14382 # ifdef __cplusplus
14385 int F77_DUMMY_MAIN() { return 1; }
14390 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
14397 rm -f conftest.$ac_objext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399 (eval $ac_compile) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14411 cat >conftest.$ac_ext <<_ACEOF
14412 #line $LINENO "configure"
14413 #include "confdefs.h"
14414 $ac_includes_default
14415 #ifdef F77_DUMMY_MAIN
14416 # ifdef __cplusplus
14419 int F77_DUMMY_MAIN() { return 1; }
14424 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433 (eval $ac_compile) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
14437 { ac_try='test -s conftest.$ac_objext'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_hi=$ac_mid; break
14445 echo "$as_me: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14447 ac_lo=`expr $ac_mid + 1`
14448 if test $ac_lo -le $ac_mid; then
14452 ac_mid=`expr 2 '*' $ac_mid + 1`
14454 rm -f conftest.$ac_objext conftest.$ac_ext
14457 echo "$as_me: failed program was:" >&5
14458 cat conftest.$ac_ext >&5
14459 cat >conftest.$ac_ext <<_ACEOF
14460 #line $LINENO "configure"
14461 #include "confdefs.h"
14462 $ac_includes_default
14463 #ifdef F77_DUMMY_MAIN
14464 # ifdef __cplusplus
14467 int F77_DUMMY_MAIN() { return 1; }
14472 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14479 rm -f conftest.$ac_objext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481 (eval $ac_compile) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -s conftest.$ac_objext'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14493 cat >conftest.$ac_ext <<_ACEOF
14494 #line $LINENO "configure"
14495 #include "confdefs.h"
14496 $ac_includes_default
14497 #ifdef F77_DUMMY_MAIN
14498 # ifdef __cplusplus
14501 int F77_DUMMY_MAIN() { return 1; }
14506 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14513 rm -f conftest.$ac_objext
14514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14515 (eval $ac_compile) 2>&5
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -s conftest.$ac_objext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 ac_lo=$ac_mid; break
14527 echo "$as_me: failed program was:" >&5
14528 cat conftest.$ac_ext >&5
14529 ac_hi=`expr '(' $ac_mid ')' - 1`
14530 if test $ac_mid -le $ac_hi; then
14534 ac_mid=`expr 2 '*' $ac_mid`
14536 rm -f conftest.$ac_objext conftest.$ac_ext
14539 echo "$as_me: failed program was:" >&5
14540 cat conftest.$ac_ext >&5
14543 rm -f conftest.$ac_objext conftest.$ac_ext
14545 rm -f conftest.$ac_objext conftest.$ac_ext
14546 # Binary search between lo and hi bounds.
14547 while test "x$ac_lo" != "x$ac_hi"; do
14548 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14549 cat >conftest.$ac_ext <<_ACEOF
14550 #line $LINENO "configure"
14551 #include "confdefs.h"
14552 $ac_includes_default
14553 #ifdef F77_DUMMY_MAIN
14554 # ifdef __cplusplus
14557 int F77_DUMMY_MAIN() { return 1; }
14562 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14569 rm -f conftest.$ac_objext
14570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571 (eval $ac_compile) 2>&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -s conftest.$ac_objext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14583 echo "$as_me: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 ac_lo=`expr '(' $ac_mid ')' + 1`
14587 rm -f conftest.$ac_objext conftest.$ac_ext
14590 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14591 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14592 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14593 { (exit 1); exit 1; }; } ;;
14596 if test "$cross_compiling" = yes; then
14597 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14598 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14599 { (exit 1); exit 1; }; }
14601 cat >conftest.$ac_ext <<_ACEOF
14602 #line $LINENO "configure"
14603 #include "confdefs.h"
14604 $ac_includes_default
14605 long longval () { return (long) (sizeof (unsigned long)); }
14606 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14608 #include <stdlib.h>
14609 #ifdef F77_DUMMY_MAIN
14610 # ifdef __cplusplus
14613 int F77_DUMMY_MAIN() { return 1; }
14619 FILE *f = fopen ("conftest.val", "w");
14622 if (((long) (sizeof (unsigned long))) < 0)
14624 long i = longval ();
14625 if (i != ((long) (sizeof (unsigned long))))
14627 fprintf (f, "%ld\n", i);
14631 unsigned long i = ulongval ();
14632 if (i != ((long) (sizeof (unsigned long))))
14634 fprintf (f, "%lu\n", i);
14636 exit (ferror (f) || fclose (f) != 0);
14642 rm -f conftest$ac_exeext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14644 (eval $ac_link) 2>&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }; then
14653 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14655 echo "$as_me: program exited with status $ac_status" >&5
14656 echo "$as_me: failed program was:" >&5
14657 cat conftest.$ac_ext >&5
14658 ( exit $ac_status )
14659 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14660 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14661 { (exit 1); exit 1; }; }
14663 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14668 ac_cv_sizeof_unsigned_long=0
14671 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14672 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14673 cat >>confdefs.h <<_ACEOF
14674 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14679 # Determine memory alignment requirements for the basic C data types.
14681 echo "$as_me:$LINENO: checking for short" >&5
14682 echo $ECHO_N "checking for short... $ECHO_C" >&6
14683 if test "${ac_cv_type_short+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 cat >conftest.$ac_ext <<_ACEOF
14687 #line $LINENO "configure"
14688 #include "confdefs.h"
14689 $ac_includes_default
14690 #ifdef F77_DUMMY_MAIN
14691 # ifdef __cplusplus
14694 int F77_DUMMY_MAIN() { return 1; }
14701 if (sizeof (short))
14707 rm -f conftest.$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709 (eval $ac_compile) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -s conftest.$ac_objext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 ac_cv_type_short=yes
14721 echo "$as_me: failed program was:" >&5
14722 cat conftest.$ac_ext >&5
14723 ac_cv_type_short=no
14725 rm -f conftest.$ac_objext conftest.$ac_ext
14727 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14728 echo "${ECHO_T}$ac_cv_type_short" >&6
14730 echo "$as_me:$LINENO: checking alignment of short" >&5
14731 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14732 if test "${pgac_cv_alignof_short+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 if test "$ac_cv_type_short" = yes; then
14736 if test "$cross_compiling" = yes; then
14737 # Depending upon the size, compute the lo and hi bounds.
14738 cat >conftest.$ac_ext <<_ACEOF
14739 #line $LINENO "configure"
14740 #include "confdefs.h"
14741 $ac_includes_default
14742 struct { char filler; short field; } pgac_struct;
14743 #ifdef F77_DUMMY_MAIN
14744 # ifdef __cplusplus
14747 int F77_DUMMY_MAIN() { return 1; }
14752 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14759 rm -f conftest.$ac_objext
14760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14761 (eval $ac_compile) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -s conftest.$ac_objext'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14773 cat >conftest.$ac_ext <<_ACEOF
14774 #line $LINENO "configure"
14775 #include "confdefs.h"
14776 $ac_includes_default
14777 struct { char filler; short field; } pgac_struct;
14778 #ifdef F77_DUMMY_MAIN
14779 # ifdef __cplusplus
14782 int F77_DUMMY_MAIN() { return 1; }
14787 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796 (eval $ac_compile) 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
14800 { ac_try='test -s conftest.$ac_objext'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 ac_hi=$ac_mid; break
14808 echo "$as_me: failed program was:" >&5
14809 cat conftest.$ac_ext >&5
14810 ac_lo=`expr $ac_mid + 1`
14811 if test $ac_lo -le $ac_mid; then
14815 ac_mid=`expr 2 '*' $ac_mid + 1`
14817 rm -f conftest.$ac_objext conftest.$ac_ext
14820 echo "$as_me: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14822 cat >conftest.$ac_ext <<_ACEOF
14823 #line $LINENO "configure"
14824 #include "confdefs.h"
14825 $ac_includes_default
14826 struct { char filler; short field; } pgac_struct;
14827 #ifdef F77_DUMMY_MAIN
14828 # ifdef __cplusplus
14831 int F77_DUMMY_MAIN() { return 1; }
14836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14843 rm -f conftest.$ac_objext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14845 (eval $ac_compile) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } &&
14849 { ac_try='test -s conftest.$ac_objext'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14857 cat >conftest.$ac_ext <<_ACEOF
14858 #line $LINENO "configure"
14859 #include "confdefs.h"
14860 $ac_includes_default
14861 struct { char filler; short field; } pgac_struct;
14862 #ifdef F77_DUMMY_MAIN
14863 # ifdef __cplusplus
14866 int F77_DUMMY_MAIN() { return 1; }
14871 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14878 rm -f conftest.$ac_objext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14880 (eval $ac_compile) 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -s conftest.$ac_objext'
14885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886 (eval $ac_try) 2>&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); }; }; then
14890 ac_lo=$ac_mid; break
14892 echo "$as_me: failed program was:" >&5
14893 cat conftest.$ac_ext >&5
14894 ac_hi=`expr '(' $ac_mid ')' - 1`
14895 if test $ac_mid -le $ac_hi; then
14899 ac_mid=`expr 2 '*' $ac_mid`
14901 rm -f conftest.$ac_objext conftest.$ac_ext
14904 echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14908 rm -f conftest.$ac_objext conftest.$ac_ext
14910 rm -f conftest.$ac_objext conftest.$ac_ext
14911 # Binary search between lo and hi bounds.
14912 while test "x$ac_lo" != "x$ac_hi"; do
14913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14914 cat >conftest.$ac_ext <<_ACEOF
14915 #line $LINENO "configure"
14916 #include "confdefs.h"
14917 $ac_includes_default
14918 struct { char filler; short field; } pgac_struct;
14919 #ifdef F77_DUMMY_MAIN
14920 # ifdef __cplusplus
14923 int F77_DUMMY_MAIN() { return 1; }
14928 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14935 rm -f conftest.$ac_objext
14936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14937 (eval $ac_compile) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } &&
14941 { ac_try='test -s conftest.$ac_objext'
14942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14943 (eval $ac_try) 2>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; }; then
14949 echo "$as_me: failed program was:" >&5
14950 cat conftest.$ac_ext >&5
14951 ac_lo=`expr '(' $ac_mid ')' + 1`
14953 rm -f conftest.$ac_objext conftest.$ac_ext
14956 ?*) pgac_cv_alignof_short=$ac_lo;;
14957 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14958 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14959 { (exit 1); exit 1; }; } ;;
14962 if test "$cross_compiling" = yes; then
14963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14964 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14965 { (exit 1); exit 1; }; }
14967 cat >conftest.$ac_ext <<_ACEOF
14968 #line $LINENO "configure"
14969 #include "confdefs.h"
14970 $ac_includes_default
14971 struct { char filler; short field; } pgac_struct;
14972 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14973 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14975 #include <stdlib.h>
14976 #ifdef F77_DUMMY_MAIN
14977 # ifdef __cplusplus
14980 int F77_DUMMY_MAIN() { return 1; }
14986 FILE *f = fopen ("conftest.val", "w");
14989 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14991 long i = longval ();
14992 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14994 fprintf (f, "%ld\n", i);
14998 unsigned long i = ulongval ();
14999 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15001 fprintf (f, "%lu\n", i);
15003 exit (ferror (f) || fclose (f) != 0);
15009 rm -f conftest$ac_exeext
15010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15011 (eval $ac_link) 2>&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }; then
15020 pgac_cv_alignof_short=`cat conftest.val`
15022 echo "$as_me: program exited with status $ac_status" >&5
15023 echo "$as_me: failed program was:" >&5
15024 cat conftest.$ac_ext >&5
15025 ( exit $ac_status )
15026 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
15027 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
15028 { (exit 1); exit 1; }; }
15030 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15035 pgac_cv_alignof_short=0
15038 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
15039 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
15040 cat >>confdefs.h <<_ACEOF
15041 #define ALIGNOF_SHORT $pgac_cv_alignof_short
15045 echo "$as_me:$LINENO: checking for int" >&5
15046 echo $ECHO_N "checking for int... $ECHO_C" >&6
15047 if test "${ac_cv_type_int+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 cat >conftest.$ac_ext <<_ACEOF
15051 #line $LINENO "configure"
15052 #include "confdefs.h"
15053 $ac_includes_default
15054 #ifdef F77_DUMMY_MAIN
15055 # ifdef __cplusplus
15058 int F77_DUMMY_MAIN() { return 1; }
15071 rm -f conftest.$ac_objext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073 (eval $ac_compile) 2>&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try='test -s conftest.$ac_objext'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
15085 echo "$as_me: failed program was:" >&5
15086 cat conftest.$ac_ext >&5
15089 rm -f conftest.$ac_objext conftest.$ac_ext
15091 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15092 echo "${ECHO_T}$ac_cv_type_int" >&6
15094 echo "$as_me:$LINENO: checking alignment of int" >&5
15095 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
15096 if test "${pgac_cv_alignof_int+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 if test "$ac_cv_type_int" = yes; then
15100 if test "$cross_compiling" = yes; then
15101 # Depending upon the size, compute the lo and hi bounds.
15102 cat >conftest.$ac_ext <<_ACEOF
15103 #line $LINENO "configure"
15104 #include "confdefs.h"
15105 $ac_includes_default
15106 struct { char filler; int field; } pgac_struct;
15107 #ifdef F77_DUMMY_MAIN
15108 # ifdef __cplusplus
15111 int F77_DUMMY_MAIN() { return 1; }
15116 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15123 rm -f conftest.$ac_objext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15125 (eval $ac_compile) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
15129 { ac_try='test -s conftest.$ac_objext'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15137 cat >conftest.$ac_ext <<_ACEOF
15138 #line $LINENO "configure"
15139 #include "confdefs.h"
15140 $ac_includes_default
15141 struct { char filler; int field; } pgac_struct;
15142 #ifdef F77_DUMMY_MAIN
15143 # ifdef __cplusplus
15146 int F77_DUMMY_MAIN() { return 1; }
15151 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15158 rm -f conftest.$ac_objext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15160 (eval $ac_compile) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
15164 { ac_try='test -s conftest.$ac_objext'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }; then
15170 ac_hi=$ac_mid; break
15172 echo "$as_me: failed program was:" >&5
15173 cat conftest.$ac_ext >&5
15174 ac_lo=`expr $ac_mid + 1`
15175 if test $ac_lo -le $ac_mid; then
15179 ac_mid=`expr 2 '*' $ac_mid + 1`
15181 rm -f conftest.$ac_objext conftest.$ac_ext
15184 echo "$as_me: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 cat >conftest.$ac_ext <<_ACEOF
15187 #line $LINENO "configure"
15188 #include "confdefs.h"
15189 $ac_includes_default
15190 struct { char filler; int field; } pgac_struct;
15191 #ifdef F77_DUMMY_MAIN
15192 # ifdef __cplusplus
15195 int F77_DUMMY_MAIN() { return 1; }
15200 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15207 rm -f conftest.$ac_objext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15209 (eval $ac_compile) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -s conftest.$ac_objext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15221 cat >conftest.$ac_ext <<_ACEOF
15222 #line $LINENO "configure"
15223 #include "confdefs.h"
15224 $ac_includes_default
15225 struct { char filler; int field; } pgac_struct;
15226 #ifdef F77_DUMMY_MAIN
15227 # ifdef __cplusplus
15230 int F77_DUMMY_MAIN() { return 1; }
15235 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15242 rm -f conftest.$ac_objext
15243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15244 (eval $ac_compile) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -s conftest.$ac_objext'
15249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250 (eval $ac_try) 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; }; then
15254 ac_lo=$ac_mid; break
15256 echo "$as_me: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15258 ac_hi=`expr '(' $ac_mid ')' - 1`
15259 if test $ac_mid -le $ac_hi; then
15263 ac_mid=`expr 2 '*' $ac_mid`
15265 rm -f conftest.$ac_objext conftest.$ac_ext
15268 echo "$as_me: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15272 rm -f conftest.$ac_objext conftest.$ac_ext
15274 rm -f conftest.$ac_objext conftest.$ac_ext
15275 # Binary search between lo and hi bounds.
15276 while test "x$ac_lo" != "x$ac_hi"; do
15277 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15278 cat >conftest.$ac_ext <<_ACEOF
15279 #line $LINENO "configure"
15280 #include "confdefs.h"
15281 $ac_includes_default
15282 struct { char filler; int field; } pgac_struct;
15283 #ifdef F77_DUMMY_MAIN
15284 # ifdef __cplusplus
15287 int F77_DUMMY_MAIN() { return 1; }
15292 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15299 rm -f conftest.$ac_objext
15300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15301 (eval $ac_compile) 2>&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try='test -s conftest.$ac_objext'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15313 echo "$as_me: failed program was:" >&5
15314 cat conftest.$ac_ext >&5
15315 ac_lo=`expr '(' $ac_mid ')' + 1`
15317 rm -f conftest.$ac_objext conftest.$ac_ext
15320 ?*) pgac_cv_alignof_int=$ac_lo;;
15321 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15322 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15323 { (exit 1); exit 1; }; } ;;
15326 if test "$cross_compiling" = yes; then
15327 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15328 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15329 { (exit 1); exit 1; }; }
15331 cat >conftest.$ac_ext <<_ACEOF
15332 #line $LINENO "configure"
15333 #include "confdefs.h"
15334 $ac_includes_default
15335 struct { char filler; int field; } pgac_struct;
15336 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15337 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15339 #include <stdlib.h>
15340 #ifdef F77_DUMMY_MAIN
15341 # ifdef __cplusplus
15344 int F77_DUMMY_MAIN() { return 1; }
15350 FILE *f = fopen ("conftest.val", "w");
15353 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15355 long i = longval ();
15356 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15358 fprintf (f, "%ld\n", i);
15362 unsigned long i = ulongval ();
15363 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15365 fprintf (f, "%lu\n", i);
15367 exit (ferror (f) || fclose (f) != 0);
15373 rm -f conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375 (eval $ac_link) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 pgac_cv_alignof_int=`cat conftest.val`
15386 echo "$as_me: program exited with status $ac_status" >&5
15387 echo "$as_me: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 ( exit $ac_status )
15390 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
15391 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
15392 { (exit 1); exit 1; }; }
15394 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15399 pgac_cv_alignof_int=0
15402 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
15403 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
15404 cat >>confdefs.h <<_ACEOF
15405 #define ALIGNOF_INT $pgac_cv_alignof_int
15409 echo "$as_me:$LINENO: checking for long" >&5
15410 echo $ECHO_N "checking for long... $ECHO_C" >&6
15411 if test "${ac_cv_type_long+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 cat >conftest.$ac_ext <<_ACEOF
15415 #line $LINENO "configure"
15416 #include "confdefs.h"
15417 $ac_includes_default
15418 #ifdef F77_DUMMY_MAIN
15419 # ifdef __cplusplus
15422 int F77_DUMMY_MAIN() { return 1; }
15435 rm -f conftest.$ac_objext
15436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15437 (eval $ac_compile) 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -s conftest.$ac_objext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_cv_type_long=yes
15449 echo "$as_me: failed program was:" >&5
15450 cat conftest.$ac_ext >&5
15453 rm -f conftest.$ac_objext conftest.$ac_ext
15455 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15456 echo "${ECHO_T}$ac_cv_type_long" >&6
15458 echo "$as_me:$LINENO: checking alignment of long" >&5
15459 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15460 if test "${pgac_cv_alignof_long+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 if test "$ac_cv_type_long" = yes; then
15464 if test "$cross_compiling" = yes; then
15465 # Depending upon the size, compute the lo and hi bounds.
15466 cat >conftest.$ac_ext <<_ACEOF
15467 #line $LINENO "configure"
15468 #include "confdefs.h"
15469 $ac_includes_default
15470 struct { char filler; long field; } pgac_struct;
15471 #ifdef F77_DUMMY_MAIN
15472 # ifdef __cplusplus
15475 int F77_DUMMY_MAIN() { return 1; }
15480 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15487 rm -f conftest.$ac_objext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15489 (eval $ac_compile) 2>&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
15493 { ac_try='test -s conftest.$ac_objext'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15501 cat >conftest.$ac_ext <<_ACEOF
15502 #line $LINENO "configure"
15503 #include "confdefs.h"
15504 $ac_includes_default
15505 struct { char filler; long field; } pgac_struct;
15506 #ifdef F77_DUMMY_MAIN
15507 # ifdef __cplusplus
15510 int F77_DUMMY_MAIN() { return 1; }
15515 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15522 rm -f conftest.$ac_objext
15523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15524 (eval $ac_compile) 2>&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try='test -s conftest.$ac_objext'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 ac_hi=$ac_mid; break
15536 echo "$as_me: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15538 ac_lo=`expr $ac_mid + 1`
15539 if test $ac_lo -le $ac_mid; then
15543 ac_mid=`expr 2 '*' $ac_mid + 1`
15545 rm -f conftest.$ac_objext conftest.$ac_ext
15548 echo "$as_me: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15550 cat >conftest.$ac_ext <<_ACEOF
15551 #line $LINENO "configure"
15552 #include "confdefs.h"
15553 $ac_includes_default
15554 struct { char filler; long field; } pgac_struct;
15555 #ifdef F77_DUMMY_MAIN
15556 # ifdef __cplusplus
15559 int F77_DUMMY_MAIN() { return 1; }
15564 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15571 rm -f conftest.$ac_objext
15572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15573 (eval $ac_compile) 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
15577 { ac_try='test -s conftest.$ac_objext'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; }; then
15585 cat >conftest.$ac_ext <<_ACEOF
15586 #line $LINENO "configure"
15587 #include "confdefs.h"
15588 $ac_includes_default
15589 struct { char filler; long field; } pgac_struct;
15590 #ifdef F77_DUMMY_MAIN
15591 # ifdef __cplusplus
15594 int F77_DUMMY_MAIN() { return 1; }
15599 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15606 rm -f conftest.$ac_objext
15607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15608 (eval $ac_compile) 2>&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try='test -s conftest.$ac_objext'
15613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15618 ac_lo=$ac_mid; break
15620 echo "$as_me: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15622 ac_hi=`expr '(' $ac_mid ')' - 1`
15623 if test $ac_mid -le $ac_hi; then
15627 ac_mid=`expr 2 '*' $ac_mid`
15629 rm -f conftest.$ac_objext conftest.$ac_ext
15632 echo "$as_me: failed program was:" >&5
15633 cat conftest.$ac_ext >&5
15636 rm -f conftest.$ac_objext conftest.$ac_ext
15638 rm -f conftest.$ac_objext conftest.$ac_ext
15639 # Binary search between lo and hi bounds.
15640 while test "x$ac_lo" != "x$ac_hi"; do
15641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15642 cat >conftest.$ac_ext <<_ACEOF
15643 #line $LINENO "configure"
15644 #include "confdefs.h"
15645 $ac_includes_default
15646 struct { char filler; long field; } pgac_struct;
15647 #ifdef F77_DUMMY_MAIN
15648 # ifdef __cplusplus
15651 int F77_DUMMY_MAIN() { return 1; }
15656 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15663 rm -f conftest.$ac_objext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15665 (eval $ac_compile) 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15677 echo "$as_me: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15679 ac_lo=`expr '(' $ac_mid ')' + 1`
15681 rm -f conftest.$ac_objext conftest.$ac_ext
15684 ?*) pgac_cv_alignof_long=$ac_lo;;
15685 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15686 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15687 { (exit 1); exit 1; }; } ;;
15690 if test "$cross_compiling" = yes; then
15691 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15692 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15693 { (exit 1); exit 1; }; }
15695 cat >conftest.$ac_ext <<_ACEOF
15696 #line $LINENO "configure"
15697 #include "confdefs.h"
15698 $ac_includes_default
15699 struct { char filler; long field; } pgac_struct;
15700 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15701 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15703 #include <stdlib.h>
15704 #ifdef F77_DUMMY_MAIN
15705 # ifdef __cplusplus
15708 int F77_DUMMY_MAIN() { return 1; }
15714 FILE *f = fopen ("conftest.val", "w");
15717 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15719 long i = longval ();
15720 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15722 fprintf (f, "%ld\n", i);
15726 unsigned long i = ulongval ();
15727 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15729 fprintf (f, "%lu\n", i);
15731 exit (ferror (f) || fclose (f) != 0);
15737 rm -f conftest$ac_exeext
15738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15739 (eval $ac_link) 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 pgac_cv_alignof_long=`cat conftest.val`
15750 echo "$as_me: program exited with status $ac_status" >&5
15751 echo "$as_me: failed program was:" >&5
15752 cat conftest.$ac_ext >&5
15753 ( exit $ac_status )
15754 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15755 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15756 { (exit 1); exit 1; }; }
15758 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15763 pgac_cv_alignof_long=0
15766 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15767 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15768 cat >>confdefs.h <<_ACEOF
15769 #define ALIGNOF_LONG $pgac_cv_alignof_long
15773 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15774 echo "$as_me:$LINENO: checking for long long int" >&5
15775 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15776 if test "${ac_cv_type_long_long_int+set}" = set; then
15777 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 cat >conftest.$ac_ext <<_ACEOF
15780 #line $LINENO "configure"
15781 #include "confdefs.h"
15782 $ac_includes_default
15783 #ifdef F77_DUMMY_MAIN
15784 # ifdef __cplusplus
15787 int F77_DUMMY_MAIN() { return 1; }
15792 if ((long long int *) 0)
15794 if (sizeof (long long int))
15800 rm -f conftest.$ac_objext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802 (eval $ac_compile) 2>&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
15806 { ac_try='test -s conftest.$ac_objext'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
15812 ac_cv_type_long_long_int=yes
15814 echo "$as_me: failed program was:" >&5
15815 cat conftest.$ac_ext >&5
15816 ac_cv_type_long_long_int=no
15818 rm -f conftest.$ac_objext conftest.$ac_ext
15820 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15821 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15823 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15824 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15825 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 if test "$ac_cv_type_long_long_int" = yes; then
15829 if test "$cross_compiling" = yes; then
15830 # Depending upon the size, compute the lo and hi bounds.
15831 cat >conftest.$ac_ext <<_ACEOF
15832 #line $LINENO "configure"
15833 #include "confdefs.h"
15834 $ac_includes_default
15835 struct { char filler; long long int field; } pgac_struct;
15836 #ifdef F77_DUMMY_MAIN
15837 # ifdef __cplusplus
15840 int F77_DUMMY_MAIN() { return 1; }
15845 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15852 rm -f conftest.$ac_objext
15853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15854 (eval $ac_compile) 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
15858 { ac_try='test -s conftest.$ac_objext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15866 cat >conftest.$ac_ext <<_ACEOF
15867 #line $LINENO "configure"
15868 #include "confdefs.h"
15869 $ac_includes_default
15870 struct { char filler; long long int field; } pgac_struct;
15871 #ifdef F77_DUMMY_MAIN
15872 # ifdef __cplusplus
15875 int F77_DUMMY_MAIN() { return 1; }
15880 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15887 rm -f conftest.$ac_objext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889 (eval $ac_compile) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -s conftest.$ac_objext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_hi=$ac_mid; break
15901 echo "$as_me: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15903 ac_lo=`expr $ac_mid + 1`
15904 if test $ac_lo -le $ac_mid; then
15908 ac_mid=`expr 2 '*' $ac_mid + 1`
15910 rm -f conftest.$ac_objext conftest.$ac_ext
15913 echo "$as_me: failed program was:" >&5
15914 cat conftest.$ac_ext >&5
15915 cat >conftest.$ac_ext <<_ACEOF
15916 #line $LINENO "configure"
15917 #include "confdefs.h"
15918 $ac_includes_default
15919 struct { char filler; long long int field; } pgac_struct;
15920 #ifdef F77_DUMMY_MAIN
15921 # ifdef __cplusplus
15924 int F77_DUMMY_MAIN() { return 1; }
15929 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15936 rm -f conftest.$ac_objext
15937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15938 (eval $ac_compile) 2>&5
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -s conftest.$ac_objext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15950 cat >conftest.$ac_ext <<_ACEOF
15951 #line $LINENO "configure"
15952 #include "confdefs.h"
15953 $ac_includes_default
15954 struct { char filler; long long int field; } pgac_struct;
15955 #ifdef F77_DUMMY_MAIN
15956 # ifdef __cplusplus
15959 int F77_DUMMY_MAIN() { return 1; }
15964 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15971 rm -f conftest.$ac_objext
15972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15973 (eval $ac_compile) 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try='test -s conftest.$ac_objext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15983 ac_lo=$ac_mid; break
15985 echo "$as_me: failed program was:" >&5
15986 cat conftest.$ac_ext >&5
15987 ac_hi=`expr '(' $ac_mid ')' - 1`
15988 if test $ac_mid -le $ac_hi; then
15992 ac_mid=`expr 2 '*' $ac_mid`
15994 rm -f conftest.$ac_objext conftest.$ac_ext
15997 echo "$as_me: failed program was:" >&5
15998 cat conftest.$ac_ext >&5
16001 rm -f conftest.$ac_objext conftest.$ac_ext
16003 rm -f conftest.$ac_objext conftest.$ac_ext
16004 # Binary search between lo and hi bounds.
16005 while test "x$ac_lo" != "x$ac_hi"; do
16006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16007 cat >conftest.$ac_ext <<_ACEOF
16008 #line $LINENO "configure"
16009 #include "confdefs.h"
16010 $ac_includes_default
16011 struct { char filler; long long int field; } pgac_struct;
16012 #ifdef F77_DUMMY_MAIN
16013 # ifdef __cplusplus
16016 int F77_DUMMY_MAIN() { return 1; }
16021 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16028 rm -f conftest.$ac_objext
16029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16030 (eval $ac_compile) 2>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -s conftest.$ac_objext'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16042 echo "$as_me: failed program was:" >&5
16043 cat conftest.$ac_ext >&5
16044 ac_lo=`expr '(' $ac_mid ')' + 1`
16046 rm -f conftest.$ac_objext conftest.$ac_ext
16049 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
16050 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16051 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16052 { (exit 1); exit 1; }; } ;;
16055 if test "$cross_compiling" = yes; then
16056 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16057 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16058 { (exit 1); exit 1; }; }
16060 cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 #include "confdefs.h"
16063 $ac_includes_default
16064 struct { char filler; long long int field; } pgac_struct;
16065 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16066 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16068 #include <stdlib.h>
16069 #ifdef F77_DUMMY_MAIN
16070 # ifdef __cplusplus
16073 int F77_DUMMY_MAIN() { return 1; }
16079 FILE *f = fopen ("conftest.val", "w");
16082 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16084 long i = longval ();
16085 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16087 fprintf (f, "%ld\n", i);
16091 unsigned long i = ulongval ();
16092 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16094 fprintf (f, "%lu\n", i);
16096 exit (ferror (f) || fclose (f) != 0);
16102 rm -f conftest$ac_exeext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16104 (eval $ac_link) 2>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; }; then
16113 pgac_cv_alignof_long_long_int=`cat conftest.val`
16115 echo "$as_me: program exited with status $ac_status" >&5
16116 echo "$as_me: failed program was:" >&5
16117 cat conftest.$ac_ext >&5
16118 ( exit $ac_status )
16119 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
16120 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
16121 { (exit 1); exit 1; }; }
16123 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16128 pgac_cv_alignof_long_long_int=0
16131 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
16132 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
16133 cat >>confdefs.h <<_ACEOF
16134 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
16139 echo "$as_me:$LINENO: checking for double" >&5
16140 echo $ECHO_N "checking for double... $ECHO_C" >&6
16141 if test "${ac_cv_type_double+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 cat >conftest.$ac_ext <<_ACEOF
16145 #line $LINENO "configure"
16146 #include "confdefs.h"
16147 $ac_includes_default
16148 #ifdef F77_DUMMY_MAIN
16149 # ifdef __cplusplus
16152 int F77_DUMMY_MAIN() { return 1; }
16159 if (sizeof (double))
16165 rm -f conftest.$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167 (eval $ac_compile) 2>&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -s conftest.$ac_objext'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; }; then
16177 ac_cv_type_double=yes
16179 echo "$as_me: failed program was:" >&5
16180 cat conftest.$ac_ext >&5
16181 ac_cv_type_double=no
16183 rm -f conftest.$ac_objext conftest.$ac_ext
16185 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
16186 echo "${ECHO_T}$ac_cv_type_double" >&6
16188 echo "$as_me:$LINENO: checking alignment of double" >&5
16189 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
16190 if test "${pgac_cv_alignof_double+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 if test "$ac_cv_type_double" = yes; then
16194 if test "$cross_compiling" = yes; then
16195 # Depending upon the size, compute the lo and hi bounds.
16196 cat >conftest.$ac_ext <<_ACEOF
16197 #line $LINENO "configure"
16198 #include "confdefs.h"
16199 $ac_includes_default
16200 struct { char filler; double field; } pgac_struct;
16201 #ifdef F77_DUMMY_MAIN
16202 # ifdef __cplusplus
16205 int F77_DUMMY_MAIN() { return 1; }
16210 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
16217 rm -f conftest.$ac_objext
16218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16219 (eval $ac_compile) 2>&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
16223 { ac_try='test -s conftest.$ac_objext'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; }; then
16231 cat >conftest.$ac_ext <<_ACEOF
16232 #line $LINENO "configure"
16233 #include "confdefs.h"
16234 $ac_includes_default
16235 struct { char filler; double field; } pgac_struct;
16236 #ifdef F77_DUMMY_MAIN
16237 # ifdef __cplusplus
16240 int F77_DUMMY_MAIN() { return 1; }
16245 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16252 rm -f conftest.$ac_objext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16254 (eval $ac_compile) 2>&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
16258 { ac_try='test -s conftest.$ac_objext'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 ac_hi=$ac_mid; break
16266 echo "$as_me: failed program was:" >&5
16267 cat conftest.$ac_ext >&5
16268 ac_lo=`expr $ac_mid + 1`
16269 if test $ac_lo -le $ac_mid; then
16273 ac_mid=`expr 2 '*' $ac_mid + 1`
16275 rm -f conftest.$ac_objext conftest.$ac_ext
16278 echo "$as_me: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16280 cat >conftest.$ac_ext <<_ACEOF
16281 #line $LINENO "configure"
16282 #include "confdefs.h"
16283 $ac_includes_default
16284 struct { char filler; double field; } pgac_struct;
16285 #ifdef F77_DUMMY_MAIN
16286 # ifdef __cplusplus
16289 int F77_DUMMY_MAIN() { return 1; }
16294 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
16301 rm -f conftest.$ac_objext
16302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303 (eval $ac_compile) 2>&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -s conftest.$ac_objext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16315 cat >conftest.$ac_ext <<_ACEOF
16316 #line $LINENO "configure"
16317 #include "confdefs.h"
16318 $ac_includes_default
16319 struct { char filler; double field; } pgac_struct;
16320 #ifdef F77_DUMMY_MAIN
16321 # ifdef __cplusplus
16324 int F77_DUMMY_MAIN() { return 1; }
16329 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
16336 rm -f conftest.$ac_objext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338 (eval $ac_compile) 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
16342 { ac_try='test -s conftest.$ac_objext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_lo=$ac_mid; break
16350 echo "$as_me: failed program was:" >&5
16351 cat conftest.$ac_ext >&5
16352 ac_hi=`expr '(' $ac_mid ')' - 1`
16353 if test $ac_mid -le $ac_hi; then
16357 ac_mid=`expr 2 '*' $ac_mid`
16359 rm -f conftest.$ac_objext conftest.$ac_ext
16362 echo "$as_me: failed program was:" >&5
16363 cat conftest.$ac_ext >&5
16366 rm -f conftest.$ac_objext conftest.$ac_ext
16368 rm -f conftest.$ac_objext conftest.$ac_ext
16369 # Binary search between lo and hi bounds.
16370 while test "x$ac_lo" != "x$ac_hi"; do
16371 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16372 cat >conftest.$ac_ext <<_ACEOF
16373 #line $LINENO "configure"
16374 #include "confdefs.h"
16375 $ac_includes_default
16376 struct { char filler; double field; } pgac_struct;
16377 #ifdef F77_DUMMY_MAIN
16378 # ifdef __cplusplus
16381 int F77_DUMMY_MAIN() { return 1; }
16386 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
16393 rm -f conftest.$ac_objext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16395 (eval $ac_compile) 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -s conftest.$ac_objext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16407 echo "$as_me: failed program was:" >&5
16408 cat conftest.$ac_ext >&5
16409 ac_lo=`expr '(' $ac_mid ')' + 1`
16411 rm -f conftest.$ac_objext conftest.$ac_ext
16414 ?*) pgac_cv_alignof_double=$ac_lo;;
16415 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16416 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16417 { (exit 1); exit 1; }; } ;;
16420 if test "$cross_compiling" = yes; then
16421 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16422 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16423 { (exit 1); exit 1; }; }
16425 cat >conftest.$ac_ext <<_ACEOF
16426 #line $LINENO "configure"
16427 #include "confdefs.h"
16428 $ac_includes_default
16429 struct { char filler; double field; } pgac_struct;
16430 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16431 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16433 #include <stdlib.h>
16434 #ifdef F77_DUMMY_MAIN
16435 # ifdef __cplusplus
16438 int F77_DUMMY_MAIN() { return 1; }
16444 FILE *f = fopen ("conftest.val", "w");
16447 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16449 long i = longval ();
16450 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16452 fprintf (f, "%ld\n", i);
16456 unsigned long i = ulongval ();
16457 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16459 fprintf (f, "%lu\n", i);
16461 exit (ferror (f) || fclose (f) != 0);
16467 rm -f conftest$ac_exeext
16468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16469 (eval $ac_link) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478 pgac_cv_alignof_double=`cat conftest.val`
16480 echo "$as_me: program exited with status $ac_status" >&5
16481 echo "$as_me: failed program was:" >&5
16482 cat conftest.$ac_ext >&5
16483 ( exit $ac_status )
16484 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16485 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16486 { (exit 1); exit 1; }; }
16488 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16493 pgac_cv_alignof_double=0
16496 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16497 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16498 cat >>confdefs.h <<_ACEOF
16499 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16504 # Compute maximum alignment of any basic type.
16505 # We assume long's alignment is at least as strong as char, short, or int;
16506 # but we must check long long (if it exists) and double.
16508 MAX_ALIGNOF=$pgac_cv_alignof_long
16509 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16510 MAX_ALIGNOF=$pgac_cv_alignof_double
16512 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16513 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16516 cat >>confdefs.h <<_ACEOF
16517 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16522 # Some platforms predefine the types int8, int16, etc. Only check
16523 # a (hopefully) representative subset.
16524 echo "$as_me:$LINENO: checking for int8" >&5
16525 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16526 if test "${ac_cv_type_int8+set}" = set; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 cat >conftest.$ac_ext <<_ACEOF
16530 #line $LINENO "configure"
16531 #include "confdefs.h"
16533 #ifdef HAVE_SUPPORTDEFS_H
16534 #include <SupportDefs.h>
16537 #ifdef F77_DUMMY_MAIN
16538 # ifdef __cplusplus
16541 int F77_DUMMY_MAIN() { return 1; }
16554 rm -f conftest.$ac_objext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16556 (eval $ac_compile) 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_type_int8=yes
16568 echo "$as_me: failed program was:" >&5
16569 cat conftest.$ac_ext >&5
16572 rm -f conftest.$ac_objext conftest.$ac_ext
16574 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16575 echo "${ECHO_T}$ac_cv_type_int8" >&6
16576 if test $ac_cv_type_int8 = yes; then
16578 cat >>confdefs.h <<_ACEOF
16579 #define HAVE_INT8 1
16584 echo "$as_me:$LINENO: checking for uint8" >&5
16585 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16586 if test "${ac_cv_type_uint8+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 cat >conftest.$ac_ext <<_ACEOF
16590 #line $LINENO "configure"
16591 #include "confdefs.h"
16593 #ifdef HAVE_SUPPORTDEFS_H
16594 #include <SupportDefs.h>
16597 #ifdef F77_DUMMY_MAIN
16598 # ifdef __cplusplus
16601 int F77_DUMMY_MAIN() { return 1; }
16608 if (sizeof (uint8))
16614 rm -f conftest.$ac_objext
16615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16616 (eval $ac_compile) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -s conftest.$ac_objext'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; }; then
16626 ac_cv_type_uint8=yes
16628 echo "$as_me: failed program was:" >&5
16629 cat conftest.$ac_ext >&5
16630 ac_cv_type_uint8=no
16632 rm -f conftest.$ac_objext conftest.$ac_ext
16634 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16635 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16636 if test $ac_cv_type_uint8 = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639 #define HAVE_UINT8 1
16644 echo "$as_me:$LINENO: checking for int64" >&5
16645 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16646 if test "${ac_cv_type_int64+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 cat >conftest.$ac_ext <<_ACEOF
16650 #line $LINENO "configure"
16651 #include "confdefs.h"
16653 #ifdef HAVE_SUPPORTDEFS_H
16654 #include <SupportDefs.h>
16657 #ifdef F77_DUMMY_MAIN
16658 # ifdef __cplusplus
16661 int F77_DUMMY_MAIN() { return 1; }
16668 if (sizeof (int64))
16674 rm -f conftest.$ac_objext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16676 (eval $ac_compile) 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } &&
16680 { ac_try='test -s conftest.$ac_objext'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; }; then
16686 ac_cv_type_int64=yes
16688 echo "$as_me: failed program was:" >&5
16689 cat conftest.$ac_ext >&5
16690 ac_cv_type_int64=no
16692 rm -f conftest.$ac_objext conftest.$ac_ext
16694 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16695 echo "${ECHO_T}$ac_cv_type_int64" >&6
16696 if test $ac_cv_type_int64 = yes; then
16698 cat >>confdefs.h <<_ACEOF
16699 #define HAVE_INT64 1
16704 echo "$as_me:$LINENO: checking for uint64" >&5
16705 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16706 if test "${ac_cv_type_uint64+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 cat >conftest.$ac_ext <<_ACEOF
16710 #line $LINENO "configure"
16711 #include "confdefs.h"
16713 #ifdef HAVE_SUPPORTDEFS_H
16714 #include <SupportDefs.h>
16717 #ifdef F77_DUMMY_MAIN
16718 # ifdef __cplusplus
16721 int F77_DUMMY_MAIN() { return 1; }
16728 if (sizeof (uint64))
16734 rm -f conftest.$ac_objext
16735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16736 (eval $ac_compile) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -s conftest.$ac_objext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_type_uint64=yes
16748 echo "$as_me: failed program was:" >&5
16749 cat conftest.$ac_ext >&5
16750 ac_cv_type_uint64=no
16752 rm -f conftest.$ac_objext conftest.$ac_ext
16754 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16755 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16756 if test $ac_cv_type_uint64 = yes; then
16758 cat >>confdefs.h <<_ACEOF
16759 #define HAVE_UINT64 1
16766 # We also check for sig_atomic_t, which *should* be defined per ANSI
16767 # C, but is missing on some old platforms.
16768 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16769 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16770 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16773 cat >conftest.$ac_ext <<_ACEOF
16774 #line $LINENO "configure"
16775 #include "confdefs.h"
16776 #include <signal.h>
16778 #ifdef F77_DUMMY_MAIN
16779 # ifdef __cplusplus
16782 int F77_DUMMY_MAIN() { return 1; }
16787 if ((sig_atomic_t *) 0)
16789 if (sizeof (sig_atomic_t))
16795 rm -f conftest.$ac_objext
16796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16797 (eval $ac_compile) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
16801 { ac_try='test -s conftest.$ac_objext'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_type_sig_atomic_t=yes
16809 echo "$as_me: failed program was:" >&5
16810 cat conftest.$ac_ext >&5
16811 ac_cv_type_sig_atomic_t=no
16813 rm -f conftest.$ac_objext conftest.$ac_ext
16815 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16816 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16817 if test $ac_cv_type_sig_atomic_t = yes; then
16819 cat >>confdefs.h <<_ACEOF
16820 #define HAVE_SIG_ATOMIC_T 1
16828 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16829 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16830 if test "${pgac_cv_func_posix_signals+set}" = set; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 cat >conftest.$ac_ext <<_ACEOF
16834 #line $LINENO "configure"
16835 #include "confdefs.h"
16836 #include <signal.h>
16838 #ifdef F77_DUMMY_MAIN
16839 # ifdef __cplusplus
16842 int F77_DUMMY_MAIN() { return 1; }
16847 struct sigaction act, oact;
16848 sigemptyset(&act.sa_mask);
16849 act.sa_flags = SA_RESTART;
16850 sigaction(0, &act, &oact);
16855 rm -f conftest.$ac_objext conftest$ac_exeext
16856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16857 (eval $ac_link) 2>&5
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } &&
16861 { ac_try='test -s conftest$ac_exeext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 pgac_cv_func_posix_signals=yes
16869 echo "$as_me: failed program was:" >&5
16870 cat conftest.$ac_ext >&5
16871 pgac_cv_func_posix_signals=no
16873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16875 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16876 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16877 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16879 cat >>confdefs.h <<\_ACEOF
16880 #define HAVE_POSIX_SIGNALS
16884 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16886 if test $ac_cv_func_fseeko = yes; then
16887 # Check whether --enable-largefile or --disable-largefile was given.
16888 if test "${enable_largefile+set}" = set; then
16889 enableval="$enable_largefile"
16892 if test "$enable_largefile" != no; then
16894 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16895 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16896 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 ac_cv_sys_largefile_CC=no
16900 if test "$GCC" != yes; then
16903 # IRIX 6.2 and later do not support large files by default,
16904 # so use the C compiler's -n32 option if that helps.
16905 cat >conftest.$ac_ext <<_ACEOF
16906 #line $LINENO "configure"
16907 #include "confdefs.h"
16908 #include <sys/types.h>
16909 /* Check that off_t can represent 2**63 - 1 correctly.
16910 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16911 since some C++ compilers masquerading as C compilers
16912 incorrectly reject 9223372036854775807. */
16913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16914 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16915 && LARGE_OFF_T % 2147483647 == 1)
16917 #ifdef F77_DUMMY_MAIN
16918 # ifdef __cplusplus
16921 int F77_DUMMY_MAIN() { return 1; }
16931 rm -f conftest.$ac_objext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16933 (eval $ac_compile) 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -s conftest.$ac_objext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16945 echo "$as_me: failed program was:" >&5
16946 cat conftest.$ac_ext >&5
16948 rm -f conftest.$ac_objext
16950 rm -f conftest.$ac_objext
16951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16952 (eval $ac_compile) 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } &&
16956 { ac_try='test -s conftest.$ac_objext'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; }; then
16962 ac_cv_sys_largefile_CC=' -n32'; break
16964 echo "$as_me: failed program was:" >&5
16965 cat conftest.$ac_ext >&5
16967 rm -f conftest.$ac_objext
16971 rm -f conftest.$ac_ext
16974 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16975 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16976 if test "$ac_cv_sys_largefile_CC" != no; then
16977 CC=$CC$ac_cv_sys_largefile_CC
16980 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16981 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16982 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 ac_cv_sys_file_offset_bits=no
16987 cat >conftest.$ac_ext <<_ACEOF
16988 #line $LINENO "configure"
16989 #include "confdefs.h"
16990 #include <sys/types.h>
16991 /* Check that off_t can represent 2**63 - 1 correctly.
16992 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16993 since some C++ compilers masquerading as C compilers
16994 incorrectly reject 9223372036854775807. */
16995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16996 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16997 && LARGE_OFF_T % 2147483647 == 1)
16999 #ifdef F77_DUMMY_MAIN
17000 # ifdef __cplusplus
17003 int F77_DUMMY_MAIN() { return 1; }
17013 rm -f conftest.$ac_objext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17015 (eval $ac_compile) 2>&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); } &&
17019 { ac_try='test -s conftest.$ac_objext'
17020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021 (eval $ac_try) 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; }; then
17027 echo "$as_me: failed program was:" >&5
17028 cat conftest.$ac_ext >&5
17030 rm -f conftest.$ac_objext conftest.$ac_ext
17031 cat >conftest.$ac_ext <<_ACEOF
17032 #line $LINENO "configure"
17033 #include "confdefs.h"
17034 #define _FILE_OFFSET_BITS 64
17035 #include <sys/types.h>
17036 /* Check that off_t can represent 2**63 - 1 correctly.
17037 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17038 since some C++ compilers masquerading as C compilers
17039 incorrectly reject 9223372036854775807. */
17040 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17042 && LARGE_OFF_T % 2147483647 == 1)
17044 #ifdef F77_DUMMY_MAIN
17045 # ifdef __cplusplus
17048 int F77_DUMMY_MAIN() { return 1; }
17058 rm -f conftest.$ac_objext
17059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17060 (eval $ac_compile) 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try='test -s conftest.$ac_objext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_cv_sys_file_offset_bits=64; break
17072 echo "$as_me: failed program was:" >&5
17073 cat conftest.$ac_ext >&5
17075 rm -f conftest.$ac_objext conftest.$ac_ext
17079 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17080 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17081 if test "$ac_cv_sys_file_offset_bits" != no; then
17083 cat >>confdefs.h <<_ACEOF
17084 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17089 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17090 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17091 if test "${ac_cv_sys_large_files+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 ac_cv_sys_large_files=no
17096 cat >conftest.$ac_ext <<_ACEOF
17097 #line $LINENO "configure"
17098 #include "confdefs.h"
17099 #include <sys/types.h>
17100 /* Check that off_t can represent 2**63 - 1 correctly.
17101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17102 since some C++ compilers masquerading as C compilers
17103 incorrectly reject 9223372036854775807. */
17104 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17106 && LARGE_OFF_T % 2147483647 == 1)
17108 #ifdef F77_DUMMY_MAIN
17109 # ifdef __cplusplus
17112 int F77_DUMMY_MAIN() { return 1; }
17122 rm -f conftest.$ac_objext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17124 (eval $ac_compile) 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } &&
17128 { ac_try='test -s conftest.$ac_objext'
17129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130 (eval $ac_try) 2>&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); }; }; then
17136 echo "$as_me: failed program was:" >&5
17137 cat conftest.$ac_ext >&5
17139 rm -f conftest.$ac_objext conftest.$ac_ext
17140 cat >conftest.$ac_ext <<_ACEOF
17141 #line $LINENO "configure"
17142 #include "confdefs.h"
17143 #define _LARGE_FILES 1
17144 #include <sys/types.h>
17145 /* Check that off_t can represent 2**63 - 1 correctly.
17146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17147 since some C++ compilers masquerading as C compilers
17148 incorrectly reject 9223372036854775807. */
17149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17151 && LARGE_OFF_T % 2147483647 == 1)
17153 #ifdef F77_DUMMY_MAIN
17154 # ifdef __cplusplus
17157 int F77_DUMMY_MAIN() { return 1; }
17167 rm -f conftest.$ac_objext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17169 (eval $ac_compile) 2>&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } &&
17173 { ac_try='test -s conftest.$ac_objext'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 ac_cv_sys_large_files=1; break
17181 echo "$as_me: failed program was:" >&5
17182 cat conftest.$ac_ext >&5
17184 rm -f conftest.$ac_objext conftest.$ac_ext
17188 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17189 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17190 if test "$ac_cv_sys_large_files" != no; then
17192 cat >>confdefs.h <<_ACEOF
17193 #define _LARGE_FILES $ac_cv_sys_large_files
17203 # Select semaphore implementation type.
17204 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17206 cat >>confdefs.h <<\_ACEOF
17207 #define USE_NAMED_POSIX_SEMAPHORES 1
17210 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17212 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17214 cat >>confdefs.h <<\_ACEOF
17215 #define USE_UNNAMED_POSIX_SEMAPHORES 1
17218 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17221 cat >>confdefs.h <<\_ACEOF
17222 #define USE_SYSV_SEMAPHORES 1
17225 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17230 # Select shared-memory implementation type.
17232 cat >>confdefs.h <<\_ACEOF
17233 #define USE_SYSV_SHARED_MEMORY 1
17236 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17239 if test "$enable_nls" = yes ; then
17241 echo "$as_me:$LINENO: checking for library containing gettext" >&5
17242 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
17243 if test "${ac_cv_search_gettext+set}" = set; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 ac_func_search_save_LIBS=$LIBS
17247 ac_cv_search_gettext=no
17248 cat >conftest.$ac_ext <<_ACEOF
17249 #line $LINENO "configure"
17250 #include "confdefs.h"
17252 /* Override any gcc2 internal prototype to avoid an error. */
17256 /* We use char because int might match the return type of a gcc2
17257 builtin and then its argument prototype would still apply. */
17259 #ifdef F77_DUMMY_MAIN
17260 # ifdef __cplusplus
17263 int F77_DUMMY_MAIN() { return 1; }
17273 rm -f conftest.$ac_objext conftest$ac_exeext
17274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17275 (eval $ac_link) 2>&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try='test -s conftest$ac_exeext'
17280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17281 (eval $ac_try) 2>&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
17285 ac_cv_search_gettext="none required"
17287 echo "$as_me: failed program was:" >&5
17288 cat conftest.$ac_ext >&5
17290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17291 if test "$ac_cv_search_gettext" = no; then
17292 for ac_lib in intl; do
17293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17294 cat >conftest.$ac_ext <<_ACEOF
17295 #line $LINENO "configure"
17296 #include "confdefs.h"
17298 /* Override any gcc2 internal prototype to avoid an error. */
17302 /* We use char because int might match the return type of a gcc2
17303 builtin and then its argument prototype would still apply. */
17305 #ifdef F77_DUMMY_MAIN
17306 # ifdef __cplusplus
17309 int F77_DUMMY_MAIN() { return 1; }
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321 (eval $ac_link) 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); } &&
17325 { ac_try='test -s conftest$ac_exeext'
17326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); }; }; then
17331 ac_cv_search_gettext="-l$ac_lib"
17334 echo "$as_me: failed program was:" >&5
17335 cat conftest.$ac_ext >&5
17337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17340 LIBS=$ac_func_search_save_LIBS
17342 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
17343 echo "${ECHO_T}$ac_cv_search_gettext" >&6
17344 if test "$ac_cv_search_gettext" != no; then
17345 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
17348 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
17349 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
17350 { (exit 1); exit 1; }; }
17353 if test "${ac_cv_header_libintl_h+set}" = set; then
17354 echo "$as_me:$LINENO: checking for libintl.h" >&5
17355 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17356 if test "${ac_cv_header_libintl_h+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17360 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17362 # Is the header compilable?
17363 echo "$as_me:$LINENO: checking libintl.h usability" >&5
17364 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
17365 cat >conftest.$ac_ext <<_ACEOF
17366 #line $LINENO "configure"
17367 #include "confdefs.h"
17368 $ac_includes_default
17369 #include <libintl.h>
17371 rm -f conftest.$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373 (eval $ac_compile) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } &&
17377 { ac_try='test -s conftest.$ac_objext'
17378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379 (eval $ac_try) 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; }; then
17383 ac_header_compiler=yes
17385 echo "$as_me: failed program was:" >&5
17386 cat conftest.$ac_ext >&5
17387 ac_header_compiler=no
17389 rm -f conftest.$ac_objext conftest.$ac_ext
17390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17391 echo "${ECHO_T}$ac_header_compiler" >&6
17393 # Is the header present?
17394 echo "$as_me:$LINENO: checking libintl.h presence" >&5
17395 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
17396 cat >conftest.$ac_ext <<_ACEOF
17397 #line $LINENO "configure"
17398 #include "confdefs.h"
17399 #include <libintl.h>
17401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17404 egrep -v '^ *\+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } >/dev/null; then
17409 if test -s conftest.err; then
17410 ac_cpp_err=$ac_c_preproc_warn_flag
17417 if test -z "$ac_cpp_err"; then
17418 ac_header_preproc=yes
17420 echo "$as_me: failed program was:" >&5
17421 cat conftest.$ac_ext >&5
17422 ac_header_preproc=no
17424 rm -f conftest.err conftest.$ac_ext
17425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17426 echo "${ECHO_T}$ac_header_preproc" >&6
17428 # So? What about this header?
17429 case $ac_header_compiler:$ac_header_preproc in
17431 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17432 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17434 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17436 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17437 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17439 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17441 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17443 echo "$as_me:$LINENO: checking for libintl.h" >&5
17444 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17445 if test "${ac_cv_header_libintl_h+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 ac_cv_header_libintl_h=$ac_header_preproc
17450 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17451 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17454 if test $ac_cv_header_libintl_h = yes; then
17457 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17458 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17459 { (exit 1); exit 1; }; }
17463 for ac_prog in msgfmt
17465 # Extract the first word of "$ac_prog", so it can be a program name with args.
17466 set dummy $ac_prog; ac_word=$2
17467 echo "$as_me:$LINENO: checking for $ac_word" >&5
17468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17469 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 if test -n "$MSGFMT"; then
17473 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17476 for as_dir in $PATH
17479 test -z "$as_dir" && as_dir=.
17480 for ac_exec_ext in '' $ac_executable_extensions; do
17481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17482 ac_cv_prog_MSGFMT="$ac_prog"
17483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17491 MSGFMT=$ac_cv_prog_MSGFMT
17492 if test -n "$MSGFMT"; then
17493 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17494 echo "${ECHO_T}$MSGFMT" >&6
17496 echo "$as_me:$LINENO: result: no" >&5
17497 echo "${ECHO_T}no" >&6
17500 test -n "$MSGFMT" && break
17503 if test -z "$MSGFMT"; then
17504 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17505 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17506 { (exit 1); exit 1; }; }
17508 for ac_prog in msgmerge
17510 # Extract the first word of "$ac_prog", so it can be a program name with args.
17511 set dummy $ac_prog; ac_word=$2
17512 echo "$as_me:$LINENO: checking for $ac_word" >&5
17513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17514 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17515 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 if test -n "$MSGMERGE"; then
17518 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
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_prog_MSGMERGE="$ac_prog"
17528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17536 MSGMERGE=$ac_cv_prog_MSGMERGE
17537 if test -n "$MSGMERGE"; then
17538 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17539 echo "${ECHO_T}$MSGMERGE" >&6
17541 echo "$as_me:$LINENO: result: no" >&5
17542 echo "${ECHO_T}no" >&6
17545 test -n "$MSGMERGE" && break
17548 for ac_prog in xgettext
17550 # Extract the first word of "$ac_prog", so it can be a program name with args.
17551 set dummy $ac_prog; ac_word=$2
17552 echo "$as_me:$LINENO: checking for $ac_word" >&5
17553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17554 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17557 if test -n "$XGETTEXT"; then
17558 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17561 for as_dir in $PATH
17564 test -z "$as_dir" && as_dir=.
17565 for ac_exec_ext in '' $ac_executable_extensions; do
17566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17567 ac_cv_prog_XGETTEXT="$ac_prog"
17568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17576 XGETTEXT=$ac_cv_prog_XGETTEXT
17577 if test -n "$XGETTEXT"; then
17578 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17579 echo "${ECHO_T}$XGETTEXT" >&6
17581 echo "$as_me:$LINENO: result: no" >&5
17582 echo "${ECHO_T}no" >&6
17585 test -n "$XGETTEXT" && break
17589 # Note: share/locale is always the default, independent of $datadir
17590 localedir='${prefix}/share/locale'
17591 if test x"$prefix" = x"NONE"; then
17592 exp_localedir="$ac_default_prefix/share/locale"
17594 exp_localedir="$prefix/share/locale"
17599 cat >>confdefs.h <<_ACEOF
17600 #define LOCALEDIR "$exp_localedir"
17606 # Check for Tcl configuration script tclConfig.sh
17607 if test "$with_tcl" = yes; then
17608 for ac_prog in tclsh tcl
17610 # Extract the first word of "$ac_prog", so it can be a program name with args.
17611 set dummy $ac_prog; ac_word=$2
17612 echo "$as_me:$LINENO: checking for $ac_word" >&5
17613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17614 if test "${ac_cv_path_TCLSH+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17623 for as_dir in $PATH
17626 test -z "$as_dir" && as_dir=.
17627 for ac_exec_ext in '' $ac_executable_extensions; do
17628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17629 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17639 TCLSH=$ac_cv_path_TCLSH
17641 if test -n "$TCLSH"; then
17642 echo "$as_me:$LINENO: result: $TCLSH" >&5
17643 echo "${ECHO_T}$TCLSH" >&6
17645 echo "$as_me:$LINENO: result: no" >&5
17646 echo "${ECHO_T}no" >&6
17649 test -n "$TCLSH" && break
17652 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17653 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17654 # Let user override test
17655 if test -z "$TCL_CONFIG_SH"; then
17656 pgac_test_dirs="$with_tclconfig"
17658 set X $pgac_test_dirs; shift
17659 if test $# -eq 0; then
17660 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17661 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17662 { (exit 1); exit 1; }; }
17663 set X `echo 'puts $auto_path' | $TCLSH`; shift
17667 if test -r "$pgac_dir/tclConfig.sh"; then
17668 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17674 if test -z "$TCL_CONFIG_SH"; then
17675 echo "$as_me:$LINENO: result: no" >&5
17676 echo "${ECHO_T}no" >&6
17677 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17678 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17679 { (exit 1); exit 1; }; }
17681 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17682 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17688 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17689 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17690 eval TCL_LIBS=\"$TCL_LIBS\"
17691 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17692 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17697 # Check for DocBook and tools
17699 for ac_prog in onsgmls nsgmls
17701 # Extract the first word of "$ac_prog", so it can be a program name with args.
17702 set dummy $ac_prog; ac_word=$2
17703 echo "$as_me:$LINENO: checking for $ac_word" >&5
17704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17705 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17706 echo $ECHO_N "(cached) $ECHO_C" >&6
17708 if test -n "$NSGMLS"; then
17709 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17712 for as_dir in $PATH
17715 test -z "$as_dir" && as_dir=.
17716 for ac_exec_ext in '' $ac_executable_extensions; do
17717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17718 ac_cv_prog_NSGMLS="$ac_prog"
17719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17727 NSGMLS=$ac_cv_prog_NSGMLS
17728 if test -n "$NSGMLS"; then
17729 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17730 echo "${ECHO_T}$NSGMLS" >&6
17732 echo "$as_me:$LINENO: result: no" >&5
17733 echo "${ECHO_T}no" >&6
17736 test -n "$NSGMLS" && break
17739 for ac_prog in openjade jade
17741 # Extract the first word of "$ac_prog", so it can be a program name with args.
17742 set dummy $ac_prog; ac_word=$2
17743 echo "$as_me:$LINENO: checking for $ac_word" >&5
17744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17745 if test "${ac_cv_prog_JADE+set}" = set; then
17746 echo $ECHO_N "(cached) $ECHO_C" >&6
17748 if test -n "$JADE"; then
17749 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17752 for as_dir in $PATH
17755 test -z "$as_dir" && as_dir=.
17756 for ac_exec_ext in '' $ac_executable_extensions; do
17757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17758 ac_cv_prog_JADE="$ac_prog"
17759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17767 JADE=$ac_cv_prog_JADE
17768 if test -n "$JADE"; then
17769 echo "$as_me:$LINENO: result: $JADE" >&5
17770 echo "${ECHO_T}$JADE" >&6
17772 echo "$as_me:$LINENO: result: no" >&5
17773 echo "${ECHO_T}no" >&6
17776 test -n "$JADE" && break
17780 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17781 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17782 if test "${pgac_cv_check_docbook+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 cat >conftest.sgml <<EOF
17786 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17788 <title>test</title>
17790 <title>random</title>
17792 <title>testsect</title>
17799 pgac_cv_check_docbook=no
17801 if test -n "$NSGMLS"; then
17802 $NSGMLS -s conftest.sgml 1>&5 2>&1
17803 if test $? -eq 0; then
17804 pgac_cv_check_docbook=yes
17807 rm -f conftest.sgml
17809 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17810 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17812 have_docbook=$pgac_cv_check_docbook
17815 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17816 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17817 if test "${pgac_cv_path_stylesheets+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17820 if test -n "$DOCBOOKSTYLE"; then
17821 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17823 for pgac_prefix in /usr /usr/local /opt; do
17824 for pgac_infix in share lib; do
17825 for pgac_postfix in \
17826 sgml/stylesheets/nwalsh-modular \
17827 sgml/stylesheets/docbook \
17828 sgml/docbook-dsssl \
17829 sgml/docbook/dsssl/modular \
17830 sgml/docbook/stylesheet/dsssl/modular \
17831 sgml/docbook/dsssl-stylesheets
17833 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17834 if test -r "$pgac_candidate/html/docbook.dsl" \
17835 && test -r "$pgac_candidate/print/docbook.dsl"
17837 pgac_cv_path_stylesheets=$pgac_candidate
17846 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17848 if test -n "$DOCBOOKSTYLE"; then
17849 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17850 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17852 echo "$as_me:$LINENO: result: no" >&5
17853 echo "${ECHO_T}no" >&6
17855 if test -n "$DOCBOOKSTYLE"; then
17856 for ac_prog in collateindex.pl
17858 # Extract the first word of "$ac_prog", so it can be a program name with args.
17859 set dummy $ac_prog; ac_word=$2
17860 echo "$as_me:$LINENO: checking for $ac_word" >&5
17861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17862 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 case $COLLATEINDEX in
17867 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17871 for as_dir in $DOCBOOKSTYLE/bin $PATH
17874 test -z "$as_dir" && as_dir=.
17875 for ac_exec_ext in '' $ac_executable_extensions; do
17876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17877 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17887 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17889 if test -n "$COLLATEINDEX"; then
17890 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17891 echo "${ECHO_T}$COLLATEINDEX" >&6
17893 echo "$as_me:$LINENO: result: no" >&5
17894 echo "${ECHO_T}no" >&6
17897 test -n "$COLLATEINDEX" && break
17901 for ac_prog in collateindex.pl
17903 # Extract the first word of "$ac_prog", so it can be a program name with args.
17904 set dummy $ac_prog; ac_word=$2
17905 echo "$as_me:$LINENO: checking for $ac_word" >&5
17906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17907 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 case $COLLATEINDEX in
17912 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17916 for as_dir in $PATH
17919 test -z "$as_dir" && as_dir=.
17920 for ac_exec_ext in '' $ac_executable_extensions; do
17921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17922 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17932 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17934 if test -n "$COLLATEINDEX"; then
17935 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17936 echo "${ECHO_T}$COLLATEINDEX" >&6
17938 echo "$as_me:$LINENO: result: no" >&5
17939 echo "${ECHO_T}no" >&6
17942 test -n "$COLLATEINDEX" && break
17946 for ac_prog in sgmlspl
17948 # Extract the first word of "$ac_prog", so it can be a program name with args.
17949 set dummy $ac_prog; ac_word=$2
17950 echo "$as_me:$LINENO: checking for $ac_word" >&5
17951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17952 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 if test -n "$SGMLSPL"; then
17956 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17959 for as_dir in $PATH
17962 test -z "$as_dir" && as_dir=.
17963 for ac_exec_ext in '' $ac_executable_extensions; do
17964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17965 ac_cv_prog_SGMLSPL="$ac_prog"
17966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17974 SGMLSPL=$ac_cv_prog_SGMLSPL
17975 if test -n "$SGMLSPL"; then
17976 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17977 echo "${ECHO_T}$SGMLSPL" >&6
17979 echo "$as_me:$LINENO: result: no" >&5
17980 echo "${ECHO_T}no" >&6
17983 test -n "$SGMLSPL" && break
17989 # We have to run the thread test near the end so we have all our symbols
17990 # defined. Cross compiling throws a warning.
17992 if test "$enable_thread_safety_force" = yes; then
17993 { echo "$as_me:$LINENO: WARNING:
17994 *** Skipping thread test program. --enable-thread-safety-force was used.
17995 *** Run the program in src/tools/thread on the your machine and add
17996 proper locking function calls to your applications to guarantee thread
17999 echo "$as_me: WARNING:
18000 *** Skipping thread test program. --enable-thread-safety-force was used.
18001 *** Run the program in src/tools/thread on the your machine and add
18002 proper locking function calls to your applications to guarantee thread
18005 elif test "$enable_thread_safety" = yes; then
18006 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
18007 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
18011 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18012 LIBS="$LIBS $PTHREAD_LIBS"
18013 if test "$cross_compiling" = yes; then
18014 echo "$as_me:$LINENO: result: maybe" >&5
18015 echo "${ECHO_T}maybe" >&6
18016 { echo "$as_me:$LINENO: WARNING:
18017 *** Skipping thread test program because of cross-compile build.
18018 *** Run the program in src/tools/thread on the target machine.
18020 echo "$as_me: WARNING:
18021 *** Skipping thread test program because of cross-compile build.
18022 *** Run the program in src/tools/thread on the target machine.
18025 cat >conftest.$ac_ext <<_ACEOF
18026 #line $LINENO "configure"
18027 #include "confdefs.h"
18028 #include "$srcdir/src/tools/thread/thread_test.c"
18030 rm -f conftest$ac_exeext
18031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18032 (eval $ac_link) 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 echo "$as_me:$LINENO: result: yes" >&5
18042 echo "${ECHO_T}yes" >&6
18044 echo "$as_me: program exited with status $ac_status" >&5
18045 echo "$as_me: failed program was:" >&5
18046 cat conftest.$ac_ext >&5
18047 ( exit $ac_status )
18048 echo "$as_me:$LINENO: result: no" >&5
18049 echo "${ECHO_T}no" >&6
18050 { { echo "$as_me:$LINENO: error:
18051 *** Thread test program failed. Your platform is not thread-safe.
18052 *** Check the file 'config.log'for the exact reason.
18054 *** You can use the configure option --enable-thread-safety-force
18055 *** to force threads to be enabled. However, you must then run
18056 *** the program in src/tools/thread and add locking function calls
18057 *** to your applications to guarantee thread safety.
18059 echo "$as_me: error:
18060 *** Thread test program failed. Your platform is not thread-safe.
18061 *** Check the file 'config.log'for the exact reason.
18063 *** You can use the configure option --enable-thread-safety-force
18064 *** to force threads to be enabled. However, you must then run
18065 *** the program in src/tools/thread and add locking function calls
18066 *** to your applications to guarantee thread safety.
18068 { (exit 1); exit 1; }; }
18070 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18076 # prepare build tree if outside source tree
18077 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
18078 # Note 2: /bin/pwd might be better than shell's built-in at getting
18079 # a symlink-free name.
18080 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
18084 if test "$no_create" != yes; then
18085 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
18086 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
18087 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
18088 || { { echo "$as_me:$LINENO: error: failed" >&5
18089 echo "$as_me: error: failed" >&2;}
18090 { (exit 1); exit 1; }; }
18091 echo "$as_me:$LINENO: result: done" >&5
18092 echo "${ECHO_T}done" >&6
18098 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
18101 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}"
18104 case $host_os in mingw*)
18105 ac_config_commands="$ac_config_commands check_win32_symlinks"
18110 ac_config_headers="$ac_config_headers src/include/pg_config.h"
18113 cat >confcache <<\_ACEOF
18114 # This file is a shell script that caches the results of configure
18115 # tests run on this system so they can be shared between configure
18116 # scripts and configure runs, see configure's option --config-cache.
18117 # It is not useful on other systems. If it contains results you don't
18118 # want to keep, you may remove or edit it.
18120 # config.status only pays attention to the cache file if you give it
18121 # the --recheck option to rerun configure.
18123 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18124 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18125 # following values.
18129 # The following way of writing the cache mishandles newlines in values,
18130 # but we know of no workaround that is simple, portable, and efficient.
18131 # So, don't put newlines in cache variables' values.
18132 # Ultrix sh set writes to stderr and can't be redirected directly,
18133 # and sets the high bit in the cache file unless we assign to the vars.
18136 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18138 # `set' does not quote correctly, so add quotes (double-quote
18139 # substitution turns \\\\ into \\, and sed turns \\ into \).
18142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18145 # `set' quotes correctly as required by POSIX, so do not add quotes.
18147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18156 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18158 if cmp -s $cache_file confcache; then :; else
18159 if test -w $cache_file; then
18160 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18161 cat confcache >$cache_file
18163 echo "not updating unwritable cache $cache_file"
18168 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18169 # Let make expand exec_prefix.
18170 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18172 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18173 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18174 # trailing colons and then remove the whole line if VPATH becomes empty
18175 # (actually we leave an empty line to preserve line numbers).
18176 if test "x$srcdir" = x.; then
18177 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18178 s/:*\$(srcdir):*/:/;
18179 s/:*\${srcdir}:*/:/;
18181 s/^\([^=]*=[ ]*\):*/\1/;
18187 DEFS=-DHAVE_CONFIG_H
18190 : ${CONFIG_STATUS=./config.status}
18191 ac_clean_files_save=$ac_clean_files
18192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18193 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18194 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18195 cat >$CONFIG_STATUS <<_ACEOF
18197 # Generated by $as_me.
18198 # Run this file to recreate the current configuration.
18199 # Compiler output produced by configure, useful for debugging
18200 # configure, is in config.log if it exists.
18203 SHELL=\${CONFIG_SHELL-$SHELL}
18206 cat >>$CONFIG_STATUS <<\_ACEOF
18208 ## --------------------- ##
18209 ## M4sh Initialization. ##
18210 ## --------------------- ##
18212 # Be Bourne compatible
18213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18216 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18221 # Support unset when possible.
18222 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18228 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18229 { $as_unset LANG || test "${LANG+set}" != set; } ||
18230 { LANG=C; export LANG; }
18231 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18232 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18233 { LC_ALL=C; export LC_ALL; }
18234 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18235 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18236 { LC_TIME=C; export LC_TIME; }
18237 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18238 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18239 { LC_CTYPE=C; export LC_CTYPE; }
18240 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18241 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18242 { LANGUAGE=C; export LANGUAGE; }
18243 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18244 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18245 { LC_COLLATE=C; export LC_COLLATE; }
18246 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18247 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18248 { LC_NUMERIC=C; export LC_NUMERIC; }
18249 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18250 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18251 { LC_MESSAGES=C; export LC_MESSAGES; }
18254 # Name of the executable.
18255 as_me=`(basename "$0") 2>/dev/null ||
18256 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18257 X"$0" : 'X\(//\)$' \| \
18258 X"$0" : 'X\(/\)$' \| \
18259 . : '\(.\)' 2>/dev/null ||
18261 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18262 /^X\/\(\/\/\)$/{ s//\1/; q; }
18263 /^X\/\(\/\).*/{ s//\1/; q; }
18266 # PATH needs CR, and LINENO needs CR and PATH.
18267 # Avoid depending upon Character Ranges.
18268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18271 as_cr_digits='0123456789'
18272 as_cr_alnum=$as_cr_Letters$as_cr_digits
18274 # The user is always right.
18275 if test "${PATH_SEPARATOR+set}" != set; then
18276 echo "#! /bin/sh" >conftest.sh
18277 echo "exit 0" >>conftest.sh
18278 chmod +x conftest.sh
18279 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18288 as_lineno_1=$LINENO
18289 as_lineno_2=$LINENO
18290 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18291 test "x$as_lineno_1" != "x$as_lineno_2" &&
18292 test "x$as_lineno_3" = "x$as_lineno_2" || {
18293 # Find who we are. Look in the path if we contain no path at all
18296 *[\\/]* ) as_myself=$0 ;;
18297 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18301 test -z "$as_dir" && as_dir=.
18302 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18307 # We did not find ourselves, most probably we were run as `sh COMMAND'
18308 # in which case we are not to be found in the path.
18309 if test "x$as_myself" = x; then
18312 if test ! -f "$as_myself"; then
18313 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18314 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18315 { (exit 1); exit 1; }; }
18317 case $CONFIG_SHELL in
18319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18320 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18323 test -z "$as_dir" && as_dir=.
18324 for as_base in sh bash ksh sh5; do
18327 if ("$as_dir/$as_base" -c '
18328 as_lineno_1=$LINENO
18329 as_lineno_2=$LINENO
18330 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18331 test "x$as_lineno_1" != "x$as_lineno_2" &&
18332 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18333 CONFIG_SHELL=$as_dir/$as_base
18334 export CONFIG_SHELL
18335 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18343 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18344 # uniformly replaced by the line number. The first 'sed' inserts a
18345 # line-number line before each line; the second 'sed' does the real
18346 # work. The second script uses 'N' to pair each line-number line
18347 # with the numbered line, and appends trailing '-' during
18348 # substitution so that $LINENO is not a special case at line end.
18349 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18350 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18351 sed '=' <$as_myself |
18356 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18359 s,^['$as_cr_digits']*\n,,
18360 ' >$as_me.lineno &&
18361 chmod +x $as_me.lineno ||
18362 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18363 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18364 { (exit 1); exit 1; }; }
18366 # Don't try to exec as it changes $[0], causing all sort of problems
18367 # (the dirname of $[0] is not the place where we might find the
18368 # original and so on. Autoconf is especially sensible to this).
18370 # Exit status is that of the last command.
18375 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18376 *c*,-n*) ECHO_N= ECHO_C='
18378 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18379 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18382 if expr a : '\(a\)' >/dev/null 2>&1; then
18388 rm -f conf$$ conf$$.exe conf$$.file
18390 if ln -s conf$$.file conf$$ 2>/dev/null; then
18391 # We could just check for DJGPP; but this test a) works b) is more generic
18392 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18393 if test -f conf$$.exe; then
18394 # Don't use ln at all; we don't have any links
18399 elif ln conf$$.file conf$$ 2>/dev/null; then
18404 rm -f conf$$ conf$$.exe conf$$.file
18406 as_executable_p="test -f"
18408 # Sed expression to map a string onto a valid CPP name.
18409 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18411 # Sed expression to map a string onto a valid variable name.
18412 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18416 # We need space, tab and new line, in precisely that order.
18422 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18426 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18427 # report actual input values of CONFIG_FILES etc. instead of their
18428 # values after options handling. Logging --version etc. is OK.
18432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18433 ## Running $as_me. ##
18438 This file was extended by PostgreSQL $as_me 8.0.0beta1, which was
18439 generated by GNU Autoconf 2.53. Invocation command line was
18441 CONFIG_FILES = $CONFIG_FILES
18442 CONFIG_HEADERS = $CONFIG_HEADERS
18443 CONFIG_LINKS = $CONFIG_LINKS
18444 CONFIG_COMMANDS = $CONFIG_COMMANDS
18448 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18452 # Files that config.status was made for.
18453 if test -n "$ac_config_files"; then
18454 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18457 if test -n "$ac_config_headers"; then
18458 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18461 if test -n "$ac_config_links"; then
18462 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18465 if test -n "$ac_config_commands"; then
18466 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18469 cat >>$CONFIG_STATUS <<\_ACEOF
18472 \`$as_me' instantiates files from templates according to the
18473 current configuration.
18475 Usage: $0 [OPTIONS] [FILE]...
18477 -h, --help print this help, then exit
18478 -V, --version print version number, then exit
18479 -d, --debug don't remove temporary files
18480 --recheck update $as_me by reconfiguring in the same conditions
18481 --file=FILE[:TEMPLATE]
18482 instantiate the configuration file FILE
18483 --header=FILE[:TEMPLATE]
18484 instantiate the configuration header FILE
18486 Configuration files:
18489 Configuration headers:
18492 Configuration links:
18495 Configuration commands:
18498 Report bugs to <bug-autoconf@gnu.org>."
18501 cat >>$CONFIG_STATUS <<_ACEOF
18503 PostgreSQL config.status 8.0.0beta1
18504 configured by $0, generated by GNU Autoconf 2.53,
18505 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18507 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18508 Free Software Foundation, Inc.
18509 This config.status script is free software; the Free Software Foundation
18510 gives unlimited permission to copy, distribute and modify it."
18514 cat >>$CONFIG_STATUS <<\_ACEOF
18515 # If no file are specified by the user, then we need to provide default
18516 # value. By we need to know if files were specified by the user.
18522 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18523 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18525 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18529 *) # This is not an option, so the user has probably given explicit
18531 ac_need_defaults=false;;
18535 # Handling of the options.
18537 cat >>$CONFIG_STATUS <<_ACEOF
18538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18539 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18540 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18542 cat >>$CONFIG_STATUS <<\_ACEOF
18543 --version | --vers* | -V )
18544 echo "$ac_cs_version"; exit 0 ;;
18546 # Conflict between --help and --header
18547 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18548 Try \`$0 --help' for more information." >&5
18549 echo "$as_me: error: ambiguous option: $1
18550 Try \`$0 --help' for more information." >&2;}
18551 { (exit 1); exit 1; }; };;
18552 --help | --hel | -h )
18553 echo "$ac_cs_usage"; exit 0 ;;
18554 --debug | --d* | -d )
18556 --file | --fil | --fi | --f )
18558 CONFIG_FILES="$CONFIG_FILES $1"
18559 ac_need_defaults=false;;
18560 --header | --heade | --head | --hea )
18562 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18563 ac_need_defaults=false;;
18565 # This is an error.
18566 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18567 Try \`$0 --help' for more information." >&5
18568 echo "$as_me: error: unrecognized option: $1
18569 Try \`$0 --help' for more information." >&2;}
18570 { (exit 1); exit 1; }; } ;;
18572 *) ac_config_targets="$ac_config_targets $1" ;;
18584 cat >>$CONFIG_STATUS <<\_ACEOF
18585 for ac_config_target in $ac_config_targets
18587 case "$ac_config_target" in
18588 # Handling of arguments.
18589 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18590 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18591 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18592 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18593 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18594 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18595 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18596 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18597 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18598 "check_win32_symlinks" ) CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
18599 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18600 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18601 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18602 { (exit 1); exit 1; }; };;
18606 # If the user did not use the arguments to specify the items to instantiate,
18607 # then the envvar interface is used. Set only those that are not.
18608 # We use the long form for the default assignment because of an extremely
18609 # bizarre bug on SunOS 4.1.3.
18610 if $ac_need_defaults; then
18611 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18612 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18613 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18617 # Create a temporary directory, and hook for its removal unless debugging.
18620 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18621 trap '{ (exit 1); exit 1; }' 1 2 13 15
18624 # Create a (secure) tmp directory for tmp files.
18627 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18628 test -n "$tmp" && test -d "$tmp"
18631 tmp=$TMPDIR/cs$$-$RANDOM
18632 (umask 077 && mkdir $tmp)
18635 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18636 { (exit 1); exit 1; }
18641 cat >>$CONFIG_STATUS <<_ACEOF
18644 # CONFIG_FILES section.
18647 # No need to generate the scripts if there are no CONFIG_FILES.
18648 # This happens for instance when ./config.status config.h
18649 if test -n "\$CONFIG_FILES"; then
18650 # Protect against being on the right side of a sed subst in config.status.
18651 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18652 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18653 s,@SHELL@,$SHELL,;t t
18654 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18655 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18656 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18657 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18658 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18659 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18660 s,@exec_prefix@,$exec_prefix,;t t
18661 s,@prefix@,$prefix,;t t
18662 s,@program_transform_name@,$program_transform_name,;t t
18663 s,@bindir@,$bindir,;t t
18664 s,@sbindir@,$sbindir,;t t
18665 s,@libexecdir@,$libexecdir,;t t
18666 s,@datadir@,$datadir,;t t
18667 s,@sysconfdir@,$sysconfdir,;t t
18668 s,@sharedstatedir@,$sharedstatedir,;t t
18669 s,@localstatedir@,$localstatedir,;t t
18670 s,@libdir@,$libdir,;t t
18671 s,@includedir@,$includedir,;t t
18672 s,@oldincludedir@,$oldincludedir,;t t
18673 s,@infodir@,$infodir,;t t
18674 s,@mandir@,$mandir,;t t
18675 s,@build_alias@,$build_alias,;t t
18676 s,@host_alias@,$host_alias,;t t
18677 s,@target_alias@,$target_alias,;t t
18678 s,@DEFS@,$DEFS,;t t
18679 s,@ECHO_C@,$ECHO_C,;t t
18680 s,@ECHO_N@,$ECHO_N,;t t
18681 s,@ECHO_T@,$ECHO_T,;t t
18682 s,@LIBS@,$LIBS,;t t
18683 s,@configure_args@,$configure_args,;t t
18684 s,@build@,$build,;t t
18685 s,@build_cpu@,$build_cpu,;t t
18686 s,@build_vendor@,$build_vendor,;t t
18687 s,@build_os@,$build_os,;t t
18688 s,@host@,$host,;t t
18689 s,@host_cpu@,$host_cpu,;t t
18690 s,@host_vendor@,$host_vendor,;t t
18691 s,@host_os@,$host_os,;t t
18692 s,@PORTNAME@,$PORTNAME,;t t
18693 s,@docdir@,$docdir,;t t
18694 s,@enable_nls@,$enable_nls,;t t
18695 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18696 s,@default_port@,$default_port,;t t
18697 s,@enable_shared@,$enable_shared,;t t
18698 s,@enable_rpath@,$enable_rpath,;t t
18699 s,@enable_debug@,$enable_debug,;t t
18701 s,@CFLAGS@,$CFLAGS,;t t
18702 s,@LDFLAGS@,$LDFLAGS,;t t
18703 s,@CPPFLAGS@,$CPPFLAGS,;t t
18704 s,@ac_ct_CC@,$ac_ct_CC,;t t
18705 s,@EXEEXT@,$EXEEXT,;t t
18706 s,@OBJEXT@,$OBJEXT,;t t
18710 s,@autodepend@,$autodepend,;t t
18711 s,@INCLUDES@,$INCLUDES,;t t
18712 s,@enable_thread_safety@,$enable_thread_safety,;t t
18713 s,@with_tcl@,$with_tcl,;t t
18714 s,@with_perl@,$with_perl,;t t
18715 s,@with_python@,$with_python,;t t
18716 s,@with_krb4@,$with_krb4,;t t
18717 s,@with_krb5@,$with_krb5,;t t
18718 s,@krb_srvtab@,$krb_srvtab,;t t
18719 s,@with_pam@,$with_pam,;t t
18720 s,@with_rendezvous@,$with_rendezvous,;t t
18721 s,@with_openssl@,$with_openssl,;t t
18722 s,@ELF_SYS@,$ELF_SYS,;t t
18724 s,@FLEX@,$FLEX,;t t
18725 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18726 s,@LN_S@,$LN_S,;t t
18728 s,@with_gnu_ld@,$with_gnu_ld,;t t
18729 s,@ld_R_works@,$ld_R_works,;t t
18730 s,@RANLIB@,$RANLIB,;t t
18731 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18732 s,@LORDER@,$LORDER,;t t
18734 s,@STRIP@,$STRIP,;t t
18735 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18736 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18737 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18738 s,@YACC@,$YACC,;t t
18739 s,@YFLAGS@,$YFLAGS,;t t
18740 s,@PERL@,$PERL,;t t
18741 s,@perl_archlibexp@,$perl_archlibexp,;t t
18742 s,@perl_privlibexp@,$perl_privlibexp,;t t
18743 s,@perl_useshrplib@,$perl_useshrplib,;t t
18744 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18745 s,@PYTHON@,$PYTHON,;t t
18746 s,@python_prefix@,$python_prefix,;t t
18747 s,@python_execprefix@,$python_execprefix,;t t
18748 s,@python_configdir@,$python_configdir,;t t
18749 s,@python_includespec@,$python_includespec,;t t
18750 s,@python_libspec@,$python_libspec,;t t
18751 s,@LIBOBJS@,$LIBOBJS,;t t
18752 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18753 s,@acx_pthread_config@,$acx_pthread_config,;t t
18754 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
18755 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
18756 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
18757 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18758 s,@MSGFMT@,$MSGFMT,;t t
18759 s,@MSGMERGE@,$MSGMERGE,;t t
18760 s,@XGETTEXT@,$XGETTEXT,;t t
18761 s,@localedir@,$localedir,;t t
18762 s,@TCLSH@,$TCLSH,;t t
18763 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18764 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18765 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18766 s,@TCL_LIBS@,$TCL_LIBS,;t t
18767 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18768 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18769 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18770 s,@NSGMLS@,$NSGMLS,;t t
18771 s,@JADE@,$JADE,;t t
18772 s,@have_docbook@,$have_docbook,;t t
18773 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18774 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18775 s,@SGMLSPL@,$SGMLSPL,;t t
18776 s,@vpath_build@,$vpath_build,;t t
18781 cat >>$CONFIG_STATUS <<\_ACEOF
18782 # Split the substitutions into bite-sized pieces for seds with
18783 # small command number limits, like on Digital OSF/1 and HP-UX.
18784 ac_max_sed_lines=48
18785 ac_sed_frag=1 # Number of current file.
18786 ac_beg=1 # First line for current file.
18787 ac_end=$ac_max_sed_lines # Line after last line for current file.
18790 while $ac_more_lines; do
18791 if test $ac_beg -gt 1; then
18792 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18794 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18796 if test ! -s $tmp/subs.frag; then
18797 ac_more_lines=false
18799 # The purpose of the label and of the branching condition is to
18800 # speed up the sed processing (if there are no `@' at all, there
18801 # is no need to browse any of the substitutions).
18802 # These are the two extra sed commands mentioned above.
18804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18805 if test -z "$ac_sed_cmds"; then
18806 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18808 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18810 ac_sed_frag=`expr $ac_sed_frag + 1`
18812 ac_end=`expr $ac_end + $ac_max_sed_lines`
18815 if test -z "$ac_sed_cmds"; then
18818 fi # test -n "$CONFIG_FILES"
18821 cat >>$CONFIG_STATUS <<\_ACEOF
18822 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18825 - | *:- | *:-:* ) # input from stdin
18827 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18828 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18829 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18830 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18831 * ) ac_file_in=$ac_file.in ;;
18834 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18835 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18837 X"$ac_file" : 'X\(//\)[^/]' \| \
18838 X"$ac_file" : 'X\(//\)$' \| \
18839 X"$ac_file" : 'X\(/\)' \| \
18840 . : '\(.\)' 2>/dev/null ||
18842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18844 /^X\(\/\/\)$/{ s//\1/; q; }
18845 /^X\(\/\).*/{ s//\1/; q; }
18847 { case "$ac_dir" in
18848 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18852 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18853 case $as_mkdir_dir in
18854 # Skip DOS drivespec
18855 ?:) as_incr_dir=$as_mkdir_dir ;;
18857 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18858 test -d "$as_incr_dir" ||
18859 mkdir "$as_incr_dir" ||
18860 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18861 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18862 { (exit 1); exit 1; }; }
18869 if test "$ac_dir" != .; then
18870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18871 # A "../" for each directory in $ac_dir_suffix.
18872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18874 ac_dir_suffix= ac_top_builddir=
18878 .) # No --srcdir option. We are building in place.
18880 if test -z "$ac_top_builddir"; then
18883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18885 [\\/]* | ?:[\\/]* ) # Absolute path.
18886 ac_srcdir=$srcdir$ac_dir_suffix;
18887 ac_top_srcdir=$srcdir ;;
18888 *) # Relative path.
18889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18892 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18894 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18895 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18896 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18897 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18901 if test x"$ac_file" != x-; then
18902 { echo "$as_me:$LINENO: creating $ac_file" >&5
18903 echo "$as_me: creating $ac_file" >&6;}
18906 # Let's still pretend it is `configure' which instantiates (i.e., don't
18907 # use $as_me), people would be surprised to read:
18908 # /* config.h. Generated by config.status. */
18909 if test x"$ac_file" = x-; then
18912 configure_input="$ac_file. "
18914 configure_input=$configure_input"Generated from `echo $ac_file_in |
18915 sed 's,.*/,,'` by configure."
18917 # First look for the input files in the build tree, otherwise in the
18919 ac_file_inputs=`IFS=:
18920 for f in $ac_file_in; do
18922 -) echo $tmp/stdin ;;
18924 # Absolute (can't be DOS-style, as IFS=:)
18925 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18926 echo "$as_me: error: cannot find input file: $f" >&2;}
18927 { (exit 1); exit 1; }; }
18930 if test -f "$f"; then
18933 elif test -f "$srcdir/$f"; then
18938 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18939 echo "$as_me: error: cannot find input file: $f" >&2;}
18940 { (exit 1); exit 1; }; }
18943 done` || { (exit 1); exit 1; }
18945 cat >>$CONFIG_STATUS <<_ACEOF
18949 cat >>$CONFIG_STATUS <<\_ACEOF
18951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18952 s,@configure_input@,$configure_input,;t t
18953 s,@srcdir@,$ac_srcdir,;t t
18954 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18955 s,@top_srcdir@,$ac_top_srcdir,;t t
18956 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18957 s,@builddir@,$ac_builddir,;t t
18958 s,@abs_builddir@,$ac_abs_builddir,;t t
18959 s,@top_builddir@,$ac_top_builddir,;t t
18960 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18961 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18963 if test x"$ac_file" != x-; then
18964 mv $tmp/out $ac_file
18972 cat >>$CONFIG_STATUS <<\_ACEOF
18975 # CONFIG_HEADER section.
18978 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18979 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18981 # ac_d sets the value in "#define NAME VALUE" lines.
18982 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18983 ac_dB='[ ].*$,\1#\2'
18986 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18987 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18988 ac_uB='$,\1#\2define\3'
18992 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18993 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18995 - | *:- | *:-:* ) # input from stdin
18997 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18998 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18999 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19000 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19001 * ) ac_file_in=$ac_file.in ;;
19004 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19005 echo "$as_me: creating $ac_file" >&6;}
19007 # First look for the input files in the build tree, otherwise in the
19009 ac_file_inputs=`IFS=:
19010 for f in $ac_file_in; do
19012 -) echo $tmp/stdin ;;
19014 # Absolute (can't be DOS-style, as IFS=:)
19015 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19016 echo "$as_me: error: cannot find input file: $f" >&2;}
19017 { (exit 1); exit 1; }; }
19020 if test -f "$f"; then
19023 elif test -f "$srcdir/$f"; then
19028 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19029 echo "$as_me: error: cannot find input file: $f" >&2;}
19030 { (exit 1); exit 1; }; }
19033 done` || { (exit 1); exit 1; }
19034 # Remove the trailing spaces.
19035 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19039 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19040 # `conftest.undefs', that substitutes the proper values into
19041 # config.h.in to produce config.h. The first handles `#define'
19042 # templates, and the second `#undef' templates.
19043 # And first: Protect against being on the right side of a sed subst in
19044 # config.status. Protect against being in an unquoted here document
19045 # in config.status.
19046 rm -f conftest.defines conftest.undefs
19047 # Using a here document instead of a string reduces the quoting nightmare.
19048 # Putting comments in sed scripts is not portable.
19050 # `end' is used to avoid that the second main sed command (meant for
19051 # 0-ary CPP macros) applies to n-ary macro definitions.
19052 # See the Autoconf documentation for `clear'.
19053 cat >confdef2sed.sed <<\_ACEOF
19058 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19060 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19063 # If some macros were called several times there might be several times
19064 # the same #defines, which is useless. Nevertheless, we may not want to
19065 # sort them, since we want the *last* AC-DEFINE to be honored.
19066 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19067 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19068 rm -f confdef2sed.sed
19070 # This sed command replaces #undef with comments. This is necessary, for
19071 # example, in the case of _POSIX_SOURCE, which is predefined and required
19072 # on some systems where configure will not decide to define it.
19073 cat >>conftest.undefs <<\_ACEOF
19074 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19077 # Break up conftest.defines because some shells have a limit on the size
19078 # of here documents, and old seds have small limits too (100 cmds).
19079 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19080 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19081 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19082 echo ' :' >>$CONFIG_STATUS
19083 rm -f conftest.tail
19084 while grep . conftest.defines >/dev/null
19086 # Write a limited-size here document to $tmp/defines.sed.
19087 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19088 # Speed up: don't consider the non `#define' lines.
19089 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19090 # Work around the forget-to-reset-the-flag bug.
19091 echo 't clr' >>$CONFIG_STATUS
19092 echo ': clr' >>$CONFIG_STATUS
19093 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19095 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19097 mv $tmp/out $tmp/in
19099 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19100 rm -f conftest.defines
19101 mv conftest.tail conftest.defines
19103 rm -f conftest.defines
19104 echo ' fi # egrep' >>$CONFIG_STATUS
19105 echo >>$CONFIG_STATUS
19107 # Break up conftest.undefs because some shells have a limit on the size
19108 # of here documents, and old seds have small limits too (100 cmds).
19109 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19110 rm -f conftest.tail
19111 while grep . conftest.undefs >/dev/null
19113 # Write a limited-size here document to $tmp/undefs.sed.
19114 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19115 # Speed up: don't consider the non `#undef'
19116 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19117 # Work around the forget-to-reset-the-flag bug.
19118 echo 't clr' >>$CONFIG_STATUS
19119 echo ': clr' >>$CONFIG_STATUS
19120 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19122 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19124 mv $tmp/out $tmp/in
19126 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19127 rm -f conftest.undefs
19128 mv conftest.tail conftest.undefs
19130 rm -f conftest.undefs
19132 cat >>$CONFIG_STATUS <<\_ACEOF
19133 # Let's still pretend it is `configure' which instantiates (i.e., don't
19134 # use $as_me), people would be surprised to read:
19135 # /* config.h. Generated by config.status. */
19136 if test x"$ac_file" = x-; then
19137 echo "/* Generated by configure. */" >$tmp/config.h
19139 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19141 cat $tmp/in >>$tmp/config.h
19143 if test x"$ac_file" != x-; then
19144 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19145 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19146 echo "$as_me: $ac_file is unchanged" >&6;}
19148 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19150 X"$ac_file" : 'X\(//\)[^/]' \| \
19151 X"$ac_file" : 'X\(//\)$' \| \
19152 X"$ac_file" : 'X\(/\)' \| \
19153 . : '\(.\)' 2>/dev/null ||
19155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19157 /^X\(\/\/\)$/{ s//\1/; q; }
19158 /^X\(\/\).*/{ s//\1/; q; }
19160 { case "$ac_dir" in
19161 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19165 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19166 case $as_mkdir_dir in
19167 # Skip DOS drivespec
19168 ?:) as_incr_dir=$as_mkdir_dir ;;
19170 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19171 test -d "$as_incr_dir" ||
19172 mkdir "$as_incr_dir" ||
19173 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19174 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19175 { (exit 1); exit 1; }; }
19181 mv $tmp/config.h $ac_file
19185 rm -f $tmp/config.h
19187 # Run the commands associated with the file.
19189 src/include/pg_config.h )
19190 # Update timestamp for pg_config.h (see Makefile.global)
19191 echo >src/include/stamp-h
19196 cat >>$CONFIG_STATUS <<\_ACEOF
19199 # CONFIG_LINKS section.
19202 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
19203 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19204 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19206 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
19207 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
19209 if test ! -r $srcdir/$ac_source; then
19210 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19211 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19212 { (exit 1); exit 1; }; }
19216 # Make relative symlinks.
19217 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
19218 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19219 X"$ac_dest" : 'X\(//\)[^/]' \| \
19220 X"$ac_dest" : 'X\(//\)$' \| \
19221 X"$ac_dest" : 'X\(/\)' \| \
19222 . : '\(.\)' 2>/dev/null ||
19224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19226 /^X\(\/\/\)$/{ s//\1/; q; }
19227 /^X\(\/\).*/{ s//\1/; q; }
19229 { case "$ac_dest_dir" in
19230 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19233 as_dummy="$ac_dest_dir"
19234 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19235 case $as_mkdir_dir in
19236 # Skip DOS drivespec
19237 ?:) as_incr_dir=$as_mkdir_dir ;;
19239 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19240 test -d "$as_incr_dir" ||
19241 mkdir "$as_incr_dir" ||
19242 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
19243 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
19244 { (exit 1); exit 1; }; }
19251 if test "$ac_dest_dir" != .; then
19252 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
19253 # A "../" for each directory in $ac_dir_suffix.
19254 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19256 ac_dir_suffix= ac_top_builddir=
19260 .) # No --srcdir option. We are building in place.
19262 if test -z "$ac_top_builddir"; then
19265 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19267 [\\/]* | ?:[\\/]* ) # Absolute path.
19268 ac_srcdir=$srcdir$ac_dir_suffix;
19269 ac_top_srcdir=$srcdir ;;
19270 *) # Relative path.
19271 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19272 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19274 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
19276 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
19277 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
19278 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
19279 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
19283 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19284 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19287 # Make a symlink if possible; otherwise try a hard link.
19288 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19289 ln $srcdir/$ac_source $ac_dest ||
19290 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
19291 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
19292 { (exit 1); exit 1; }; }
19295 cat >>$CONFIG_STATUS <<\_ACEOF
19298 # CONFIG_COMMANDS section.
19300 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19301 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19302 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19303 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19304 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19305 X"$ac_dest" : 'X\(//\)[^/]' \| \
19306 X"$ac_dest" : 'X\(//\)$' \| \
19307 X"$ac_dest" : 'X\(/\)' \| \
19308 . : '\(.\)' 2>/dev/null ||
19310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19311 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19312 /^X\(\/\/\)$/{ s//\1/; q; }
19313 /^X\(\/\).*/{ s//\1/; q; }
19317 if test "$ac_dir" != .; then
19318 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19319 # A "../" for each directory in $ac_dir_suffix.
19320 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19322 ac_dir_suffix= ac_top_builddir=
19326 .) # No --srcdir option. We are building in place.
19328 if test -z "$ac_top_builddir"; then
19331 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19333 [\\/]* | ?:[\\/]* ) # Absolute path.
19334 ac_srcdir=$srcdir$ac_dir_suffix;
19335 ac_top_srcdir=$srcdir ;;
19336 *) # Relative path.
19337 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19338 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19340 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19342 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19343 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19344 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19345 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19348 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19349 echo "$as_me: executing $ac_dest commands" >&6;}
19351 check_win32_symlinks )
19352 # Links sometimes fail undetected on Mingw -
19353 # so here we detect it and warn the user
19354 for FILE in $CONFIG_LINKS
19356 # test -e works for symlinks in the MinGW console
19357 test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE - please fix by hand" >&5
19358 echo "$as_me: WARNING: *** link for $FILE - please fix by hand" >&2;}
19365 cat >>$CONFIG_STATUS <<\_ACEOF
19367 { (exit 0); exit 0; }
19369 chmod +x $CONFIG_STATUS
19370 ac_clean_files=$ac_clean_files_save
19373 # configure is writing to config.log, and then calls config.status.
19374 # config.status does its own redirection, appending to config.log.
19375 # Unfortunately, on DOS this fails, as config.log is still kept open
19376 # by configure, so config.status won't be able to write to it; its
19377 # output is simply discarded. So we exec the FD to /dev/null,
19378 # effectively closing config.log, so it can be properly (re)opened and
19379 # appended to by config.status. When coming back to configure, we
19380 # need to make the FD available again.
19381 if test "$no_create" != yes; then
19384 $SHELL $CONFIG_STATUS || ac_cs_success=false
19386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19387 # would make configure fail if this is the last instruction.
19388 $ac_cs_success || { (exit 1); exit 1; }